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K,KACA,OAAIuH,GAEJ,YADAg+N,EAAAh+N,EAEA,CACA6uK,EAAAu9F,KACAv4M,EAAAp7D,GAEA3C,QAAA+9D,QAAAp7D,GAAAnC,KAAA+1H,EAAAuqU,EAEA,CACe,SAAAjhc,EAAA+6H,GACf,kBACA,IAAAp5H,EAAA1Q,KACAuvD,EAAAk/C,UACA,WAAAv/F,QAAA,SAAA+9D,EAAAmqK,GACA,IAAA24N,EAAAjmU,EAAAt7B,MAAA99F,EAAA6+C,GACA,SAAAk2E,EAAA5zH,GACAi+b,EAAAC,EAAA9iY,EAAAmqK,EAAA3xG,EAAAuqU,EAAA,OAAAn+b,EACA,CACA,SAAAm+b,EAAAjxb,GACA+wb,EAAAC,EAAA9iY,EAAAmqK,EAAA3xG,EAAAuqU,EAAA,QAAAjxb,EACA,CACA0mH,OAAA,EACA,EACA,CACA","names":["i0","ctx_r0","slotUrl","disclaimer","marketDivision","AppComponent","constructor","logService","configurationService","appInsightsMonitor","this","disclaimerVisible","pageWidthStyling","configurationUrl","isCernerPage","ngOnInit","debug","getCernerPage","getSlotUrl","window","sessionStorage","getItem","getDisclaimerCopy","getConfigType","getIsFiltersLeftSidePanelRequired","static","t","i1","i2","i3","_angular_core__WEBPACK_IMPORTED_MODULE_3__","VBU","selectors","inputs","embedSource","features","CjaTagService","decls","vars","consts","template","rf","ctx","AppComponent_div_0_Template","AppComponent_div_3_Template","BadgesComponent_div_0_div_1_Template","BadgesComponent_div_0_div_2_Template","BadgesComponent_div_0_div_3_Template","BadgesComponent_div_0_div_4_Template","BadgesComponent_div_0_div_5_Template","showImprovedUX","provider","acceptsVideoCalls","setOnlineScheduleBadge","acceptsNewPatients","setAcceptNewPatientBadge","BadgesComponent_div_1_div_1_Template","BadgesComponent_div_1_div_2_Template","BadgesComponent_div_1_div_8_Template","BadgesComponent_div_2_div_1_Template","BadgesComponent_div_2_div_2_Template","BadgesComponent_div_2_div_3_Template","BadgesComponent_div_2_div_4_Template","BadgesComponent","isPrint","isUpdatedProviderDetails","divisionCodes","getDivisionCodes","showOnlineScheduleBadge","length","toString","isBookOnline","providerSchedulingId","ehrCode","externalSystems","find","systemName","toLowerCase","ApiConstants","olsDepartmentId","olsProviderId","onlineBookingAvailability","appointmentTypes","name","olsBlockIt","supportsOnlineBooking","showAcceptNewPatientLabel","_angular_core__WEBPACK_IMPORTED_MODULE_2__","BadgesComponent_div_0_Template","BadgesComponent_div_1_Template","BadgesComponent_div_2_Template","BadgesModule","_angular_core__WEBPACK_IMPORTED_MODULE_0__","$C","G2t","CommonModule","DisclaimerComponent","_r1","ctx_r1","handleCloseClicked","isLoading","docUrl","DocAsapBookingLauncherComponent","sanitizer","blockitSessionService","cjatagservice","launcherButtonText","buttonSize","showDocAsapLauncher","isDocAsapLaunched","showLauncher","systemId","lauchAdobeEvent","isTouchDevice","bypassSecurityTrustResourceUrl","getRuntimeConfiguration","myChartUrl","replace","trim","hideSpinner","blockItUrl","open","docAsapId","matchMedia","matches","history","back","logCJAEvent","event","event_name","event_category","event_action","event_doctor_name","displayFullName","event_doctor_npi","npi","patientEngagement","setTimeout","i4","_angular_core__WEBPACK_IMPORTED_MODULE_4__","srcUrl","DocAsapBookingLauncherComponent_dhcl_modal_4_Template","DocAsapBookingLauncherModule","ButtonModule","ModalModule","LoadingSpinnerModule","emergencyNumber","emergencyCopy","category_r2","linkScheme","EmergencyCareComponent_h3_2_ng_container_2_a_1_Template","EmergencyCareComponent_h3_2_ng_container_2_a_2_Template","EmergencyCareComponent_h3_2_ng_container_2_span_3_Template","EmergencyCareComponent_h3_2_ng_container_2_a_4_Template","type","EmergencyCareComponent_h3_2_ng_container_2_Template","emergencyCareLinkContent","EmergencyCareComponent","_angular_core__WEBPACK_IMPORTED_MODULE_1__","showEmergencyLinkContent","showEmergencyCopy","EmergencyCareComponent_a_1_Template","EmergencyCareComponent_h3_2_Template","link_r3","url","title","isDesktopViewport","ErrorPageComponent_div_0__svg_svg_4_Template","ErrorPageComponent_div_0_p_6_Template","ErrorPageComponent_div_0_a_8_Template","ErrorPageComponent_div_0__svg_svg_9_Template","errorMessage","errorLinks","ErrorPageComponent","titleTagHandlerService","setTitleMetaTags","innerWidth","getErrorLinks","setErrorPageTagTitle","ErrorPageComponent_div_0_Template","legalCopyToolTipInfo","legalCopyToolTip","LegalCopyComponent","getLegalCopyStartText","legalCopy","split","getLegalCopyEndText","LegalCopyComponent_cs_tooltip_4_Template","autoSuggestionLoadingMessage","LocationSearchComponent_ul_8_li_1_Template","locations","location_r4","_r3","$implicit","setSelectedLocation","position_r5","index","setIndex","_c4","highlightedlocation","LocationSearchComponent_ul_9_li_1_li_2_Template","LocationSearchComponent_ul_9_li_1_Template","LocationSearchComponent","onClick","locationInput","nativeElement","contains","target","locationName","selectedLocation","setAutocompleteActive","style","boxShadow","onResize","locationService","setLocation","EventEmitter","locationEnter","closeProviderAutoSuggestionContainer","subject","ReplaySubject","showLoadingMessage","inputInFocus","isToolTipVisible","inputDebounceMS","inputModelChanged","Subject","removeItem","SessionObjectNames","LocationSessionId","results$","pipe","filter","searchText","switchMap","locationSearchTerm","getLocationSuggestionsTyped","tap","subscribe","debounceTime","onChangeSearch","changeBtnStyle","getSearchButton","ngOnDestroy","unsubscribe","ngOnChanges","showTooltip","findGeoLocation","_this","_asyncToGenerator","navigator","geolocation","Promise","res","rej","timeout","getCurrentPosition","clearTimeout","enableHighAccuracy","maximumAge","then","getGeoLocation","catch","getTypedLocationSuggestions","map","response","isValid","result","l","googlePlaceId","address","zip","city","state","neighborhood","selectedLocations","self","findIndex","item","onInputChange","next","val","emit","match","token","uuidv4","setItem","clearSession","location","isZipExist","getLocationDetail","latitude","longitude","isLocationValid","locationSel","value","autocompleteActive","getLocationByIP","LocationConverter","convertTo","handleLocationEnter","handleKeyPress","$event","keyCode","key","preventDefault","closeProviderAutoSuggestion","onFocusLost","locationSuggestionsContainer","relatedTarget","getLocationError","invalidLocation","viewQuery","LocationSearchComponent_ul_8_Template","LocationSearchComponent_ul_9_Template","LocationSearchComponent_span_13_Template","_c2","_c3","trigger","transition","opacity","animate","patientAgeGroups","isProviderSearchResultPage","ageRestrictionRule","PatientAgeRestrictionsComponent","showAgeRestrictionRuleForDH","PatientAgeRestrictionsComponent_div_0_Template","PatientAgeRestrictionsComponent_div_1_Template","undefined","PatientAgeRestrictionsModule","scheduleProviderHandler","card_r3","showDocAsap","docAsapIds","_r4","getPaginatorData","totalPages","pageIndex","searchButtonLink","ProviderCardComponent_div_2_cs_result_card_7_Template","ProviderCardComponent_div_2_div_8_Template","ProviderCardComponent_div_2_div_9_Template","headingText","subHeadingText","suggestedProviderCards","providerCards","searchParams","displaySearchButton","_r6","navigateToCernerSchedulingSpa","launchGuidedFlow","runtimeConfig","envName","guidedFlowProvider","_c1","isCaptchaEnabled","bookingBaseUrl_Cerner","market","useLegacyAPI","showProviderPrefix","ProviderCardComponent_dhcl_modal_3_div_1_dhgf_guided_flow_1_Template","_r7","navigateToSchedulingSpa","bookingBaseUrl","handleNavigateToSchedulingSpa","ProviderCardComponent_dhcl_modal_3_div_2_dhgf_guided_flow_1_Template","_r5","ProviderCardComponent_dhcl_modal_3_div_1_Template","ProviderCardComponent_dhcl_modal_3_div_2_Template","ProviderCardComponent","pageSize","toFixed","updateSuggestedProviderCards","rootEl","resizeService","providerService","filterService","router","urlBuilder","eventPublisherService","fadBaseUrl","scheduleProvider","defaultParams","radius","heading","subHeading","numberOfItems","searchTerm","medGroup","specialties","sliceValue","showCards","document","querySelector","getAttribute","getCaptchaEnabled","getSuggestedProviderCards","onlineSchedulingType","getOnlineSchedulingType","providerSchedulingFeature","getProviderSchedulingFeature","getEmbedSource","initDocAsap","changes","inputParamsChanges","inputParams","currentValue","startsWith","parsedJson","JSON","parse","updateProviders","console","error","currentParams","queryLocation","concatMap","getProviderCards","providers","setProviderGenderFull","getSearchButtonLink","normalizeProviderBeforeScheduling","showGuidedFlowButton","navigateByUrl","firstName","lastName","desiredPageSize","slice","tagName","isMobileViewport","isTabletViewport","cardsContainer","container","width","offsetWidth","params","filtersModel","FiltersModel","medGroupDictionary","getMedGroupCodes","processMedicalGroup","processSpecialties","FiltersModelPartialHelper","setRadiusKeyForDistance","getTypedFilterSearchResults","searchResponse","includes","selectedMedgroups","medGroupList","medGroupItem","code","identifiers","banner","forEach","x","group","push","selected","count","providerMedicalGroup","selectedMedicalGroup","selectedSpecialties","providerSpecialties","build","specialty","toUrlFriendly","getDocAsapIds","results","gender","publish","FadEvent","FadEventTypes","PostApptDetailstoMyAppointment_Cerner","data","tokenInfo","Cerner_MyAppointments_OIDC_Token","PostOidcTokentoMyAppointment_Cerner","ROOT_ELEMENT","i5","i6","i7","i8","_angular_core__WEBPACK_IMPORTED_MODULE_10__","ProviderCardComponent_div_2_Template","ProviderCardComponent_dhcl_modal_3_Template","ProviderDetailsNavigationComponent","fadLinkServer","navigationEmitter","btnContent","locationParam","redirectFromFAL","ngAfterViewInit","bckSearchBtn","focus","returnToResults","checkFadCernerSearchResult","referringUrl","setWindowLocationHref","falLocationNameParam","encodedFalLocationNameParam","encodeURIComponent","falRedirectUrl","falBaseUrl","falElement","err","log","URL","origin","getRedirectToFALinCerner","isSelfHosted","getRedirectURLPathForFALEpic","removeSpecialCharacters","sanitizeHyphens","getRedirectToLocation","checkFadSearchResultURL","navigate","href","ProviderRoleCheckboxComponent","isProviderRoleTypesSelected","includeProviderRoleTypes","selectCheckBox","checkProviderRole","String","outputs","FocusedDirective","csFocused","renderer","selectRootElement","elementRef","scrollIntoViewIfNeeded","behavior","FsC","specialty_r4","specialtyClick","k_r5","handleMouseEnter","activeSpecialtyDropdownIndex","queryHighlight","_c7","seeLessMoreHover","expandLessCick","specialtySliceIndex","suggestions","_c8","ProviderSearchComponent_ul_8_li_1_li_5_Template","ProviderSearchComponent_ul_8_li_1_div_6_Template","provider_r8","goToProvider","checkforPrimarySpeciality","i_r9","activeProviderDropdownIndex","providerHighlight","_r10","keywordSeeAllProviderSearchClick","providerSliceIndex","_r11","ProviderSearchComponent_ul_8_li_3_li_5_Template","ProviderSearchComponent_ul_8_li_3_ng_container_6_Template","ProviderSearchComponent_ul_8_li_3_div_7_Template","enableAutoSuggestionProviders","providerCount","keyword_r13","_r12","keywordClick","j_r14","activeKeywordDropdownIndex","_r15","keywordSliceIndex","keywords","ProviderSearchComponent_ul_8_li_5_li_5_Template","ProviderSearchComponent_ul_8_li_5_div_6_Template","ProviderSearchComponent_ul_8_li_1_Template","ProviderSearchComponent_ul_8_hr_2_Template","ProviderSearchComponent_ul_8_li_3_Template","ProviderSearchComponent_ul_8_hr_4_Template","ProviderSearchComponent_ul_8_li_5_Template","showSpecialtySuggestions","ProviderSearchComponent","providerSuggestionsContainer","noSuggestionsSelected","onMouseMove","lastFocusWasFromKeyboard","onKeyDown","keyEvent","seeLessMoreClicked","seeLessMoreFocused","searchElement","keyDownHandler","tabPressedOnProviderSearch","searchTermChanged","keywordEnter","goToProviderEvent","specialtyChanged","defaultSliceIndex","isFromexpandLessCick","viewPort$","viewPortChanged","setPlaceholderText","getSearchSuggestions","catchError","of","getSearchSuggestionsV2","shouldEnableAutoSuggestionProviders","viewportSize","searchPlaceholder","ViewPortSize","Desktop","getSearchTermDeskTop","Tablet","getSearchTermTablet","getSearchTermMobile","query","forkJoin","getProviderSuggestionsTyped","getKeywordSuggestionsTyped","getSpecialtySuggestionsTyped","getSpecialtyV2SuggestionsTyped","getTypedProviderSuggestions","items","s","reduce","a","b","concat","onlyUnique","updateProviderFullName","ProviderInterfaceHelper","removeProviderNamePrefix","degree","array","indexOf","getTypedKeywordSuggestions","suggestion","textAndQuery","toTitleCase","text","getTypedProviderSuggestionsV2","specialityText","specialities","Set","values","sort","keyword","SingleSpecialityText","primarySpecialty","primarySpeciality","primaryOffice","offices","office","addresses","isPrimaryOffice","highlightString","reg","RegExp","handleKeywordChange","specialtyChosen","querySelectorAll","classList","providerChosen","keywordChosen","selectedProvider","onFocusGained","arrowHandler","increment","specialitySeeMore","providerSeeMore","keywordSeeMore","controlTabFor","getElementById","hideProviderSuggestions","getProviderName","_angular_core__WEBPACK_IMPORTED_MODULE_6__","ProviderSearchComponent_ul_7_Template","ProviderSearchComponent_ul_8_Template","_c5","_c6","QuicklinksSearchComponent_div_6_ng_container_1_Template","quicklinks_r2","_c0","category_r1","QuicklinksSearchComponent_div_8_ng_container_1_Template","category_r3","category_r5","icon","category","ctx_r5","quicklinkClick","QuicklinksSearchComponent_ng_template_10_cs_svg_icon_1_Template","alternateText","QuicklinksSearchComponent","quicklinkCategoryClick","quickLinksCategories","quickLinksButtonAlignment","calcWidth","dynamicWidth","changeButtonAlignment","quickLink","documentElement","setProperty","QuicklinksSearchComponent_div_6_Template","QuicklinksSearchComponent_div_8_Template","QuicklinksSearchComponent_ng_template_10_Template","displayInfo","displayHeadingInvalid","line_r2","phone","displayPhone","RegionalHelplineNumbersComponent_div_3_div_1_Template","helplineNumbers","line_r3","RegionalHelplineNumbersComponent_div_4_div_1_p_1_Template","showinSearchResultsPage","RegionalHelplineNumbersComponent_div_4_div_1_Template","RegionalHelplineNumbersComponent","showMyProviders","showEmergencyCare","RegionalHelplineNumbersComponent_span_1_Template","RegionalHelplineNumbersComponent_span_2_Template","RegionalHelplineNumbersComponent_div_3_Template","RegionalHelplineNumbersComponent_div_4_Template","RegionalHelplineNumbersComponent_div_5_Template","Banner","getAltImageSrc","providerLink","providerTarget","providerImage","isProviderCard","ResultCardComponent_div_3_a_1_Template","ResultCardComponent_div_3_a_2_Template","fadUrl","isFadSpa","displayVideo","ResultCardComponent_div_4_a_1_Template","ResultCardComponent_div_4_a_2_Template","ResultCardComponent_div_4_div_3_Template","showProviderVideoLink","ResultCardComponent_h3_9_a_2_Template","imageUrl_r8","altName","ResultCardComponent_span_10_img_1_Template","logoUrls","_r9","ResultCardComponent_h3_11_a_2_Template","imageUrl_r10","ResultCardComponent_span_12_img_1_Template","speciality_r11","Secondaryspeciality_r12","ratingTooltipText","_r13","rating","totalRatingCount","ResultCardComponent_div_19_div_1_dhcl_tooltip_2_Template","overallRating","showRatingText","showNumReviews","ResultCardComponent_div_19_div_2__svg_svg_2_Template","stars","ResultCardComponent_div_19_div_1_Template","ResultCardComponent_div_19_div_2_Template","loadingRating","ResultCardComponent_div_22_div_1_div_1_div_1__svg_svg_1_Template","ResultCardComponent_div_22_div_1_div_1_div_1__svg_svg_2_Template","providerOffices","phones","ResultCardComponent_div_22_div_1_div_1_div_1_Template","ResultCardComponent_div_22_div_1_div_1_a_2_Template","ResultCardComponent_div_22_div_1_div_1_a_3_Template","showCallToScheduleCTA","_r14","ResultCardComponent_div_22_div_1_div_1_Template","ResultCardComponent_div_22_div_1_div_2_Template","ResultCardComponent_div_22_div_1_div_3_Template","ResultCardComponent_div_22_div_1_div_4_Template","ResultCardComponent_div_22_div_1_cs_patient_age_restrictions_5_Template","ResultCardComponent_div_22_div_1_label_6_Template","showGuidedFlowCTA","showDocAsapCTA","showPatientAgeRestrictions","showTemporarilyUnavailableCTA","_r16","makeAsPreferredProvider","ResultCardComponent_div_22_div_1_Template","ResultCardComponent_div_22_div_2_Template","preferredProviderSelect","hospitalNames","hideExtraContent","ResultCardComponent_div_23_div_1_cs_hospital_affiliations_1_Template","showAffiliations","ResultCardComponent_div_23_div_1_Template","ResultCardComponent_div_24_cs_badges_2_Template","_r17","_r18","ResultCardComponent_div_28_div_1_a_1_Template","ResultCardComponent_div_28_div_1_div_2_Template","ResultCardComponent_div_28_div_1_div_3_Template","ResultCardComponent_div_28_div_1_div_4_Template","ResultCardComponent_div_28_div_1_cs_patient_age_restrictions_5_Template","ResultCardComponent_div_28_div_1_label_6_Template","_r19","ResultCardComponent_div_28_div_1_Template","ResultCardComponent_div_28_div_2_Template","ResultCardComponent","cdRef","securityService","route","preferredProvider","toggleModal","forceDisableBookOnline","showStarRatings","shouldShowStarRatings","defaultProviderRatings","defaultShowStarRatings","getStarRatingBanner","showMedGroupBanner","schedulingType","marketCodes","getMarketCodes","externalSystemsDH","initOlsKY","initOlsDHForBlockIt","showProviderMedGroupLogos","setProviderMedGroupLogos","initCONT","setShowProviderVideoLink","getAgeRestrictionRule","providerChanges","preferredChanges","resultCard","parentNode","clientWidth","detectChanges","providerSpecialities","getProviderTopSpecialities","nonSEOSecondarySpecialities","getProviderNonSEOSpecialities","getRatingsTooltipText","defaultRatingsTooltipText","shouldShowRatingText","shouldShowReviewCount","useNewProviderDetailsRoute","UseNewProviderDetailsRoute","showHospitalAffiliations","showProviderVideoLinkMarketConfig","matchingProvider","getProviderOfficesSortedByDistanceFromSearch","providerImagesCopy","images","y","height","imagesBySizeDecreasing","image","placeholderImage","malePlaceholder","femalePlaceholder","scrollToComments","urlValue","makeURLFriendly","createUrlWithBase","src","blankPlaceholder","hasProviderOfficePhone","urgentCareRoles","getProviderRolesForUrgentCare","urgentCareProvider","roleType","hasBookingLocation","hasMappedApptType","apptType","patientAppointmentType","buttonLabelText","showProviderLogos","shouldShowLogos","videos","video","videoId","substring","host","LogoConstants","fad","mycareteam","chart","getProviderLogoDetailsFAD","buildFullyQualifiedURLs","getProviderLogoDetailsAEM","domain","providerDisplayNameInformation","providerName","showRatingFromQueryString","snapshot","queryParamMap","get","isAcceptQueryString","acceptQueryString","hasShowRatingEnabled","showRatingBanner","showStarRatingsBanner","shouldShowStarRatingsBanner","defaultShowStarRatingBanner","core","ResultCardComponent_div_3_Template","ResultCardComponent_div_4_Template","ResultCardComponent_h3_9_Template","ResultCardComponent_span_10_Template","ResultCardComponent_h3_11_Template","ResultCardComponent_span_12_Template","ResultCardComponent_p_14_Template","ResultCardComponent_p_16_Template","ResultCardComponent_div_19_Template","ResultCardComponent_cs_badges_21_Template","ResultCardComponent_div_22_Template","ResultCardComponent_div_23_Template","ResultCardComponent_div_24_Template","ResultCardComponent_div_25_Template","ResultCardComponent_cs_hospital_affiliations_26_Template","ResultCardComponent_ng_container_27_Template","ResultCardComponent_div_28_Template","ResultCardComponent_cs_in_network_banner_30_Template","firstNetworkProvider","banner_r1","bannerImage","InNetworkBannerComponent_div_2_img_3_Template","header","content","InNetworkBannerComponent","banners","medGroupDict","tenantCode","getTenantCode","generateBanner","showMedGroupLogo","medGroups","medicalGroupIds","logoPathAEM","logoPathFAD","BannerImageTokenHandler","MedGroupLinkTokenHandler","InNetworkBannerComponent_div_2_Template","FormatDistancePipe","transform","distance","decimalDigits","units","EJ8","pure","handleMoreLess","ResultCardLocationListComponent_div_0_div_3_ng_container_1_Template","officeDetails_r5","office_r3","i_r4","ResultCardLocationListComponent_div_0_div_4_div_1_ng_container_1_Template","office_r6","i_r7","ResultCardLocationListComponent_div_0_div_4_div_1_Template","officeAddresses","ResultCardLocationListComponent_div_0_a_2_Template","ResultCardLocationListComponent_div_0_div_3_Template","ResultCardLocationListComponent_div_0_div_4_Template","_r8","ResultCardLocationListComponent_div_1_ng_container_7_div_1_ng_container_1_Template","office_r9","i_r10","ResultCardLocationListComponent_div_1_ng_container_7_div_2_div_1_ng_container_1_Template","office_r11","i_r12","ResultCardLocationListComponent_div_1_ng_container_7_div_2_div_1_Template","ResultCardLocationListComponent_div_1_ng_container_7_div_1_Template","ResultCardLocationListComponent_div_1_ng_container_7_div_2_Template","ResultCardLocationListComponent_div_1_ng_container_8_div_1_ng_container_1_Template","office_r13","i_r14","ResultCardLocationListComponent_div_1_ng_container_8_div_2_div_1_ng_container_1_Template","office_r15","i_r16","ResultCardLocationListComponent_div_1_ng_container_8_div_2_div_1_Template","ResultCardLocationListComponent_div_1_ng_container_8_div_1_Template","ResultCardLocationListComponent_div_1_ng_container_8_div_2_Template","ResultCardLocationListComponent_div_1_div_9_div_2_ng_container_1_Template","phoneDetails_r19","office_r17","i_r18","ResultCardLocationListComponent_div_1_div_9_div_3_div_1_ng_container_1_Template","office_r20","i_r21","ResultCardLocationListComponent_div_1_div_9_div_3_div_1_Template","ResultCardLocationListComponent_div_1_div_9_div_2_Template","ResultCardLocationListComponent_div_1_div_9_div_3_Template","ResultCardLocationListComponent_div_1_div_10_div_2_ng_container_1_Template","directionDetails_r24","office_r22","i_r23","ResultCardLocationListComponent_div_1_div_10_div_3_div_1_ng_container_1_Template","office_r25","i_r26","ResultCardLocationListComponent_div_1_div_10_div_3_div_1_Template","ResultCardLocationListComponent_div_1_div_10_div_2_Template","ResultCardLocationListComponent_div_1_div_10_div_3_Template","_r27","ResultCardLocationListComponent_div_1_div_6_Template","ResultCardLocationListComponent_div_1_ng_container_7_Template","ResultCardLocationListComponent_div_1_ng_container_8_Template","ResultCardLocationListComponent_div_1_div_9_Template","ResultCardLocationListComponent_div_1_div_10_Template","ResultCardLocationListComponent_div_1_div_11_Template","officeNames","i_r28","office_r29","description","ResultCardLocationListComponent_ng_template_2_p_10_span_4_Template","ResultCardLocationListComponent_ng_template_2_p_11_span_2_Template","ResultCardLocationListComponent_ng_template_2_p_11_span_4_Template","ResultCardLocationListComponent_ng_template_2_p_12_span_4_Template","ResultCardLocationListComponent_ng_template_2_p_13_span_2_Template","ResultCardLocationListComponent_ng_template_2_p_13_span_4_Template","ResultCardLocationListComponent_ng_template_2_p_14_span_4_Template","ResultCardLocationListComponent_ng_template_2_div_15_p_1_Template","ResultCardLocationListComponent_ng_template_2_div_15_p_2_Template","distanceMilesFromSearch","ResultCardLocationListComponent_ng_template_2_div_16_div_2_Template","ResultCardLocationListComponent_ng_template_2_div_16_a_4_Template","ResultCardLocationListComponent_ng_template_2_div_16_a_5_Template","isProviderCardContent","ResultCardLocationListComponent_ng_template_2_p_6_Template","ResultCardLocationListComponent_ng_template_2_p_7_Template","ResultCardLocationListComponent_ng_template_2_p_8_Template","ResultCardLocationListComponent_ng_template_2_p_10_Template","ResultCardLocationListComponent_ng_template_2_p_11_Template","ResultCardLocationListComponent_ng_template_2_p_12_Template","ResultCardLocationListComponent_ng_template_2_p_13_Template","ResultCardLocationListComponent_ng_template_2_p_14_Template","ResultCardLocationListComponent_ng_template_2_div_15_Template","ResultCardLocationListComponent_ng_template_2_div_16_Template","office_r31","ResultCardLocationListComponent_ng_template_4_div_1_p_1_Template","ResultCardLocationListComponent_ng_template_4_div_1_p_2_Template","ResultCardLocationListComponent_ng_template_4_div_1_Template","office_r32","ResultCardLocationListComponent_ng_template_6_div_1_Template","ResultCardLocationListComponent_ng_template_6_a_3_Template","ResultCardLocationListComponent_ng_template_6_a_4_Template","ResultCardLocationListComponent","getProviderOfficesSortedByRank","getDirectionText","ResultCardLocationListComponent_div_0_Template","ResultCardLocationListComponent_div_1_Template","ResultCardLocationListComponent_ng_template_2_Template","ResultCardLocationListComponent_ng_template_4_Template","ResultCardLocationListComponent_ng_template_6_Template","HospitalAffiliationsComponent_div_6_ng_container_1_Template","hospitalDetails_r6","hospital_r4","i_r5","HospitalAffiliationsComponent_div_7_div_1_ng_container_1_Template","hospital_r7","i_r8","HospitalAffiliationsComponent_div_7_div_1_Template","affiliations","HospitalAffiliationsComponent_div_9_ng_container_1_Template","hospital_r9","HospitalAffiliationsComponent_div_10_div_1_ng_container_1_Template","hospital_r11","HospitalAffiliationsComponent_div_10_div_1_Template","hospital_r13","HospitalAffiliationsComponent","HospitalAffiliationsComponent_a_3_Template","HospitalAffiliationsComponent_a_4_Template","HospitalAffiliationsComponent_div_6_Template","HospitalAffiliationsComponent_div_7_Template","HospitalAffiliationsComponent_div_9_Template","HospitalAffiliationsComponent_div_10_Template","HospitalAffiliationsComponent_ng_template_11_Template","ResultCardModule","ResizeService","imports","RouterModule","StarRatingModule","TooltipModule","PipesModule","SearchInputComponent_div_13_div_2_ng_container_1_Template","locationError_r2","SearchInputComponent_div_13_div_3_ng_container_1_Template","SearchInputComponent_div_13_div_2_Template","SearchInputComponent_div_13_div_3_Template","ctx_r2","isVMFHMarket","providerRoleTypesSelected","getQuickLinksResults","SearchInputComponent","searchInputs","searchFieldsGroup","showRoundBtn","cookieService","injector","bookOnline","showQuicklinks","includeProviderTypeEmit","searchbutttonClick","isValidSearchLocation","includeProviderRoleTypesCheckbox","searchbtnClick","checkboxSearch","searchHandler","providerSearchActive","specialitySelected","ConfigurationService","blockitService","BlockitSessionService","getBlockItURL","configShowQuickLinks","showquickLinks","includeProviderRoleCheckBox","ShowButtonsbyRows","getAutoSuggestionLoadingMessage","showSearchBtn","showSearchButton","quickLinksKeywordsSearch","quickLinksSpecialitiesSearch","quickLinksHospitalAffiliationsSearch","quickLinksSearch","resetAndSetKeywords","filterQuickLinkMedGroups","buildSearchAndNavigate","queryParams","quickLinkType","videovisits","bookonline","acceptingnew","allVisits","insurances","medgroups","selectedMedGroups","keyEnterHandler","getSearchResults","keywordFromInput","source","setKeywordQueryParams","setLocationQueryParams","pageNumber","locationId","pathname","baseUrl","marketCode","isHospitalBased","getRedirectToFADinCerner","getRedirectURLPathForFADEpic","getRedirectInAEM","handleSpecialtyRemove","SingleSpeciality","specialtySearch","validateLocation","isLocationRequired","getLocationRequiredDefaultValue","getLocationCookieFromBrowser","defaultLocation","suggestionResponse","GlobalParams","isNeighborhoodSearch","checkForNeighborhoodLocation","navigateRoute","addLocationCookieToBrowser","urlQueryParams","URLSearchParams","search","specialtiesQueryParam","QueryParamNames","Specialties","singleSpecialty","join","getPreFilterValues","handleDistanceParam","genderQueryParam","Gender","languageQueryParam","Languages","bookonlineQueryParam","BookOnline","acceptingnewQueryParam","AcceptingNew","videovisitsQueryParam","VideoVisits","allVisitsQueryParam","AllVisits","insurancesQueryParam","Insurances","distanceQueryParam","Distance","affiliationsQueryParam","Affiliations","languages","goToFilters","getSearchResultsBtnclk","setProviderSearchActive","_angular_core__WEBPACK_IMPORTED_MODULE_9__","SearchInputComponent_span_10_Template","SearchInputComponent_div_13_Template","SearchInputComponent_div_14_Template","SearchInputComponent_cs_quicklinks_search_15_Template","SearchInputComponent_ng_template_16_Template","SharedModule","FormsModule","DignityHealthComponentsModule","HttpClientJsonpModule","GuidedFlowModule","SvgIconComponent","SvgIconComponent__svg_svg_0_Template","_r2","stopPropagation","bottom","left","TooltipComponent","toolTipInfo","tooltipContainer","TooltipComponent_span_4_Template","HierarchySecurityService","shouldShowVideos","returnValue","getValue","p","showRatings","useLiveMedgroups","liveMedGroups","some","r","getRatingsFooterText","getRatingsFooterLinkText","getRatingsFooterLink","getRatingsBannerText","getRatingsBannerLinkText","getRatingsBannerLink","shouldShowProviderReviews","parentProperty","childProperty","providerDivision","providerMarket","tenantValue","getTenantValue","divisionValue","getDivisionValue","marketValue","getMarketValue","tenantConfig","getTenantSection","divisionConfig","getDivisions","d","divisionCode","marketConfig","markets","jDH","factory","ɵfac","providedIn","providerDetailsApi","suggestionsBaseApiUrl","locationDetailsApi","providerSearchApi","searchWithoutInputApiUrl","addPagesinUrl","addDistanceinUrl","addSortbyinUrl","addMaxAppointmentsinUrl","addIncludeOptionsinUrl","addIncludeOptionsinUrlForGuidedFlow","addFacetsinUrl","addsearchModeinUrl","addProviderRoleTypes","default","dhmg","DropdownModule","SortDropdownModule","PaginationModule","AvailabilitySelect","None","Today","Next7Days","Next14Days","Next30Days","RouteChanged","SearchResultsLoaded","ProviderLoaded","NavigateToSchedulingOnCerner","ViewVideoClicked","PostFADSearchResults_Cerner","properties","id","uuid","time","Date","toISOString","specversion","mapRouterEventToFadEvent","pageType","mapSearchCriteriaToFadEvent","onlineSchedulingToggle","onlineSchedulingApplied","onlineSchedulingProvidersCount","onlineSchedulingAllVisitToggle","onlineSchedulingAllVisitApplied","onlineSchedulingAllVisitProvidersCount","videoVisitsToggle","videoVisitsApplied","videoVisitsProvidersCount","newPatientsToggle","newPatientsApplied","newPatientsProvidersCount","availabilityTitle","availabilitySelect","providerAvailability","todayCount","next7Count","next14Count","next30Count","specialtyFilterText","availableSpecialties","hospitalFilterText","selectedHospitals","providerHospitals","availableHospitals","medicalGroupTitle","medicalGroupListItems","medicalGroupList","medicalGroupDict","genderSelect","providerGender","femaleCount","maleCount","nonbinaryCount","otherCount","insuranceFilterText","selectedInsurances","providerInsurances","availableInsurances","selectedLanguages","providerLanguages","availableLanguages","searchDone","providerSearchRadius","searchRadius","getRadiusKeyForDistance","getDefaultSearchDistance","getMedGroups","prev","label","localeCompare","isMappingNeeded","radiusValueMapping","hasRadiusKeyForDistance","m","getDistanceForProviderSearchRadiusKey","getDistanceForSearchRadiusKey","isDesktopFiltersSelected","defaultSearchDistance","defaultSearchDistanceWithMedGroup","showSearchRadiusFilter","showInsuranceFilter","isMoreFiltersSelected","showMedicalGroupFilter","isMoreFilters","toClearFilters","isEvent","searchDistance","isMobileView","isDignityHealthDivision","SpecialityToggle","n","tempSpecialties","splice","MedgroupToggle","medgroup","tempMedgroup","HospitalToggle","hospital","tempHospital","enableProviderRoleTypes","InsuranceToggle","insurance","tempInsurance","LanguageToggle","language","tempLanguage","clearDesktopFilters","setSortByValue","newSortByLabel","sortBy","locationCookieData","getProviderOffices","rank","o","ProviderTokenHandler","getToKnowContent","MedGroupTokenHandler","medicalGroupLink","medicalGroupLinkName","logoPath","getProviderLogosAEM","distinctLogoPath","medId","mg","i","logoDetailsList","unique","Map","logo","logoDescription","getProviderLogosFAD","degreeFormatted","getProviderSpecialities","formatProviderDisplayFullName","dynamicContentLinkTokenHandler","dynamicFilterContentDetails","paragraph","learnMoreLink","listSpecialties","SEOFocusedList","filteredSpecialities","nonSEOSpecialities","e","IncludeProviderRoleTypes","SelectedMedicalGroup","PreviousSelectedMediGrpPrvdRole","MedGroupQueryParam","ManualSelection","SelectedMedGroupFiltersModel","SearchFrom","SingleInsurancesText","landingPageHeader","FadLiteSearchLandingComponent","configService","getLandingPageHeader","showRegionalHelplineNumbers","getHelplineHeading","getHelplineHeadingInvalid","getHelplineNumbers","getEmergencyCareLinkScheme","myProvidersLinkContent","myProvidersLinkScheme","getEmergencyCopy","getEmergencyNumber","showLegalCopy","getLegalCopy","getLegalCopyToolTip","getLegalCopyToolTipInfo","setRootElementCss","helpline","elements","body","element","add","hideHeaderForVMFHAEMMobileView","FadLiteSearchLandingComponent_div_1_Template","FadLiteSearchLandingComponent_cs_legal_copy_3_Template","FadLiteSearchLandingComponent_cs_emergency_care_5_Template","FadLiteLocationSearchComponent_ul_8_li_1_Template","FadLiteLocationSearchComponent_ul_9_li_1_li_2_Template","FadLiteLocationSearchComponent_ul_9_li_1_Template","FadLiteLocationSearchComponent","FadLiteLocationSearchComponent_ul_8_Template","FadLiteLocationSearchComponent_ul_9_Template","FadLiteProviderSearchComponent_ul_7_li_1_Template","FadLiteProviderSearchComponent_ul_8_li_1_li_5_Template","FadLiteProviderSearchComponent_ul_8_li_1_div_6_Template","FadLiteProviderSearchComponent_ul_8_li_3_li_5_Template","FadLiteProviderSearchComponent_ul_8_li_3_ng_container_6_Template","FadLiteProviderSearchComponent_ul_8_li_3_div_7_Template","FadLiteProviderSearchComponent_ul_8_li_5_li_5_Template","FadLiteProviderSearchComponent_ul_8_li_5_div_6_Template","FadLiteProviderSearchComponent_ul_8_li_1_Template","FadLiteProviderSearchComponent_ul_8_hr_2_Template","FadLiteProviderSearchComponent_ul_8_li_3_Template","FadLiteProviderSearchComponent_ul_8_hr_4_Template","FadLiteProviderSearchComponent_ul_8_li_5_Template","FadLiteProviderSearchComponent","FadLiteProviderSearchComponent_ul_7_Template","FadLiteProviderSearchComponent_ul_8_Template","FadLiteQuicklinksSearchComponent_div_6_ng_container_1_Template","FadLiteQuicklinksSearchComponent_div_8_ng_container_1_Template","FadLiteQuicklinksSearchComponent_ng_template_10_cs_svg_icon_1_Template","FadLiteQuicklinksSearchComponent","FadLiteQuicklinksSearchComponent_div_6_Template","FadLiteQuicklinksSearchComponent_div_8_Template","FadLiteQuicklinksSearchComponent_ng_template_10_Template","FadLiteSearchInputComponent_div_11_div_2_ng_container_1_Template","FadLiteSearchInputComponent_div_11_div_3_ng_container_1_Template","FadLiteSearchInputComponent_div_11_div_2_Template","FadLiteSearchInputComponent_div_11_div_3_Template","FadLiteSearchInputComponent","urlPrefix","getAemFadUrlPathName","navigateToFad","paramString","Object","entries","pair","FadLiteSearchInputComponent_span_8_Template","FadLiteSearchInputComponent_div_11_Template","FadLiteSearchInputComponent_div_12_Template","FadLiteSearchInputComponent_cs_fad_lite_quicklinks_search_13_Template","FadLiteSearchInputComponent_ng_template_14_Template","FadLiteSearchLandingModule","forChild","path","component","FindDoctorWidgetComponent","showGuidedFlow","existingMedGroup","existingOnlineBooking","queryParamsString","keys","navigatePage","reloadProviderEvent","_angular_core__WEBPACK_IMPORTED_MODULE_5__","FindDoctorWidgetComponent_cs_quicklinks_search_20_Template","singleColumn","FindDoctorWidgetModule","name_r4","navigateToSection","routeName","handleSelectedOfficeChanged","selectedOfficeAddress","showNewSchedulingApp","enableScheduleToAppointmentButton","facets","printPage","ProviderDetailsComponent_div_0_div_5_div_17_div_3_Template","showUpdatedProviderDetailPageUX","showPrintablePdf","onStateChange","isShowProviderVideo","inMyOwnWordsTitle","hideExtraPhilosophyContent","showMoreLessButtonForPhilosophy","hideExtraOwnwordsContent","showMoreLessButtonForOwnwords","insuranceCarriers","educationArray","memberships","awards","showMoreLessButtonForLocationList","hideExtraContentForLocationList","isDesktopViewportForLocationList","hasMoreThanOneOffice","ratingFooterText","ratingsFooterLinkText","ratingsFooterLink","isShowProviderReviews","commentsArrayLength","showMoreLessButton","procedures","conditions","ProviderDetailsComponent_div_0_div_5_cs_provider_details_navigation_3_Template","ProviderDetailsComponent_div_0_div_5_li_10_Template","ProviderDetailsComponent_div_0_div_5_cs_schedule_an_appointment_15_Template","ProviderDetailsComponent_div_0_div_5_div_17_Template","ProviderDetailsComponent_div_0_div_5_cs_get_to_know_19_Template","ProviderDetailsComponent_div_0_div_5_cs_expandable_list_20_Template","ProviderDetailsComponent_div_0_div_5_cs_credentials_21_Template","ProviderDetailsComponent_div_0_div_5_cs_expandable_list_22_Template","ProviderDetailsComponent_div_0_div_5_cs_locations_list_23_Template","ProviderDetailsComponent_div_0_div_5_cs_provider_comments_25_Template","ProviderDetailsComponent_div_0_div_5_cs_expandable_list_27_Template","ProviderDetailsComponent_div_0_div_5_cs_expandable_list_28_Template","ProviderDetailsComponent_div_0_div_5_cs_expandable_list_29_Template","searchResultsOrigin","showBacktoLoctionSearchBtn","navList","showStarRatingsForProviderHero","isSchedulingVisible","displayGetToKnowSection","displayCredentialsSection","hasRatingsData","closeScheduleModal","bookingApptBaseUrl_Cerner","ProviderDetailsComponent_div_0_dhcl_modal_8_div_1_dhgf_guided_flow_1_Template","ProviderDetailsComponent_div_0_dhcl_modal_8_div_2_dhgf_guided_flow_1_Template","ProviderDetailsComponent_div_0_dhcl_modal_8_div_1_Template","ProviderDetailsComponent_div_0_dhcl_modal_8_div_2_Template","getCernerClass","ProviderDetailsComponent_div_0_cs_scroll_to_top_2_Template","ProviderDetailsComponent_div_0_div_5_Template","ProviderDetailsComponent_div_0_cs_error_page_6_Template","ProviderDetailsComponent_div_0_div_7_Template","ProviderDetailsComponent_div_0_dhcl_modal_8_Template","isMyChart","isCerner","apiResponse","showSuggestAnEditLink","suggestAnEditLinkContent","ProviderDetailsComponent_div_1_div_5_div_3_cs_schedule_an_appointment_1_Template","ProviderDetailsComponent_div_1_div_5_div_3_cs_locations_list_2_Template","ProviderDetailsComponent_div_1_div_5_cs_provider_details_navigation_1_Template","ProviderDetailsComponent_div_1_div_5_cs_provider_hero_2_Template","ProviderDetailsComponent_div_1_div_5_div_3_Template","ProviderDetailsComponent_div_1_div_5_cs_get_to_know_5_Template","ProviderDetailsComponent_div_1_div_5_cs_provider_comments_7_Template","ProviderDetailsComponent_div_1_div_5_cs_expandable_list_8_Template","ProviderDetailsComponent_div_1_div_5_cs_expandable_list_9_Template","ProviderDetailsComponent_div_1_div_5_cs_expandable_list_10_Template","ProviderDetailsComponent_div_1_div_5_cs_expandable_list_11_Template","ProviderDetailsComponent_div_1_div_5_cs_credentials_12_Template","ProviderDetailsComponent_div_1_div_5_cs_expandable_list_13_Template","docAsapIsChecked","ProviderDetailsComponent_div_1_cs_scroll_to_top_2_Template","ProviderDetailsComponent_div_1_div_5_Template","ProviderDetailsComponent_div_1_cs_error_page_6_Template","ProviderDetailsComponent_div_1_div_7_Template","ProviderDetailsComponent_div_2_cs_print_page_1_Template","ProviderDetailsComponent","ratingService","cernerModalService","locale","viewportScroller","cjaTagService","showGuidedFlowModal","scrolledToView","showTemporarilyUnavailableCopy","showCallToScheduleCopy","removePageCanonicals","selfUrl","removeStructuredData","videoSchema","providerSchema","faqPageSchema","remove","checkFALRedirection","getShowUpdatedProviderDetailPageUX","renderSchedulingComponent","renderProviderDetails","initGuidedFlow","initSchedulingAppFlow","scrollTo","getInMyOwnWordsTitle","fadBaseURL","falBaseURL","section","scrollIntoView","block","inline","filterInvalidApptTypes","selectedOfficeRank","availableTimes","nextAvailableTimes","providerOffice","matchingOffice","addr","officeAddressId","ngAfterViewChecked","commentSection","shouldHidePhilosophyContent","hiddenContentAvailable","shouldHideOwnWordsContent","providerId","paramMap","routeNpi","exec","mNpi","getProviderDetailsFull","providerResponse","providerEvent","poviderRatingMap","buildSeoSchema","providerProfileViewed","initCredentialInputs","initProviderVideo","setIsBookOnline","processMedicalIds","showSuggestAnEdit","processImage","processLinkAndLogo","providerRatingsAndComments","InitLocationListInputs","suggestAnEditLinkScheme","encodeURI","processShowProviderLogos","getResizedImages","placeholderProviderImage","assign","primaryAddress","primaryLocation","injectCanonicals","updatedProviderUrl","replaceWindowLocation","setProviderPageTitle","setPageCanonicals","strProviderLocation","replaceState","getRatings","getProviderRatings","starRatings","initProviderCommentsInputs","ratingList","comments","author","datePublished","formatDate","mentionTime","reviewBody","comment","reviewRating","bestRating","ratingValue","worstRating","personalInfo","healthPlanNetwork","medicalGroupNames","educationCredentials","certifications","pushEducation","pushOLS","physicianSchema","descrption","addressLocality","addressRegion","postalCode","streetAddress","telephone","faxNumber","faxes","healthPlanNetworkId","hasCredential","alumni","medicalSpecialty","award","isAcceptingNewPatients","knowsLanguage","aggregateRating","reviewCount","totalCommentCount","review","hasOfferCatalog","itemListElement","itemOffered","displayDictionaries","buildSeoSchemaCONT","schoolEducation","medicalSchools","residencies","education","fellowships","internships","providerServices","mainEntity","acceptedAnswer","innerText","stringify","physicianScript","createElement","getElementsByTagName","appendChild","faqPageScript","videoUrl","uploadDate","thumbnailUrl","publishedAt","thumbnails","embedUrl","contentUrl","videoPageScript","yearsOfExperience","philosophy","inMyOwnWords","defaultRatingsFooterText","defaultRatingsFooterLinkText","defaultRatingsFooterLink","concatValuesIntoArray","programName","credentialType","legacy","practicums","providerVideoViewed","parentContainer","childContainer","totalSurveyCount","questionRatings","FALlocation","FALredirecttoFAD","className","print","i9","i10","i11","LOCALE_ID","i12","i13","i14","i15","_angular_core__WEBPACK_IMPORTED_MODULE_18__","ProviderDetailsComponent_div_0_Template","ProviderDetailsComponent_div_1_Template","ProviderDetailsComponent_div_2_Template","fromEventPattern","addHandler","removeHandler","resultSelector","args","isArray","Observable","subscriber","handler","retValue","isFunction","YouTubePlayer_Conditional_0_Template","_load","_isLoading","placeholderButtonLabel","placeholderImageQuality","YouTubePlayerPlaceholder","_getBackgroundImage","quality","ɵcmp","hostAttrs","hostVars","hostBindings","buttonLabel","standalone","styles","encapsulation","changeDetection","YOUTUBE_PLAYER_CONFIG","InjectionToken","coerceTime","numberAttribute","YouTubePlayer","_height","isNaN","_width","_ngZone","platformId","_destroyed","_playerChanges","BehaviorSubject","_nonce","inject","CSP_NONCE","optional","_changeDetectorRef","ChangeDetectorRef","_hasPlaceholder","disableCookies","disablePlaceholder","showBeforeIframeApiLoads","ready","_getLazyEmitter","stateChange","apiChange","playbackQualityChange","playbackRateChange","config","loadApi","_isBrowser","isPlatformBrowser","_conditionallyLoad","_shouldRecreatePlayer","_player","_setSize","suggestedQuality","_setQuality","startSeconds","endSeconds","_cuePlayer","_pendingPlayer","destroy","onYouTubeIframeAPIReady","_existingApiReadyCallback","complete","playVideo","_getPendingState","playbackState","YT","PlayerState","PLAYING","pauseVideo","PAUSED","stopVideo","CUED","seekTo","seconds","allowSeekAhead","seek","mute","muted","unMute","isMuted","_pendingPlayerState","setVolume","volume","getVolume","setPlaybackRate","playbackRate","getPlaybackRate","getAvailablePlaybackRates","getVideoLoadedFraction","getPlayerState","UNSTARTED","getCurrentTime","getPlaybackQuality","getAvailableQualityLevels","getDuration","getVideoUrl","getVideoEmbedCode","Player","_createPlayer","nonce","apiLoaded","script","callback","removeEventListener","addEventListener","async","setAttribute","run","_shouldShowPlaceholder","playerVars","autoplay","change","isFirstChange","list","player","runOutsideAngular","youtubeContainer","whenReady","_applyPendingPlayerState","markForCheck","pendingState","cueVideoById","setSize","setPlaybackQuality","listener","observer","takeUntil","PLATFORM_ID","_t","first","HasDecoratorInputTransform","booleanAttribute","dependencies","YouTubePlayerModule","ɵmod","ɵinj","sectionTitle","insuranceCarriersDisclaimerText","item_r2","ExpandableListComponent_div_0_div_6_p_1_Template","useColumns","listItems","item_r3","ExpandableListComponent_div_0_div_7_p_1_Template","ExpandableListComponent_div_0_div_8_li_2_Template","item_r5","ExpandableListComponent_div_0_div_9_p_1_Template","toggleListExpanded","ExpandableListComponent_div_0_div_1_Template","ExpandableListComponent_div_0_div_2_Template","ExpandableListComponent_div_0_div_3_Template","ExpandableListComponent_div_0_div_6_Template","ExpandableListComponent_div_0_div_7_Template","ExpandableListComponent_div_0_div_8_Template","ExpandableListComponent_div_0_div_9_Template","ExpandableListComponent_div_0_div_10_Template","listCustomClass","isInsuranceSection","isAffiliationSection","isCredentialsSection","isAwardsSection","ExpandableListComponent","setHeight","parseInt","getComputedStyle","expandableList","lineHeight","shouldHide","listContainer","scrollHeight","moreLessExpanded","ExpandableListComponent_div_0_Template","CredentialsComponent","CredentialsComponent_div_5_Template","CredentialsComponent_div_6_Template","CredentialsComponent_div_7_Template","CarePhilosophyComponent_div_0_div_6_Template","CarePhilosophyComponent","CarePhilosophyComponent_div_0_Template","information","PersonalInfoComponent","PersonalInfoComponent_div_0_Template","OwnWordsComponent_div_0_span_2_Template","OwnWordsComponent_div_0_div_6_Template","ownWords","OwnWordsComponent","OwnWordsComponent_div_0_Template","YouTubePlayerComponent","isAnalyticsTriggered","callAdobeService","init","tag","firstScriptTag","insertBefore","ProviderVideoComponent","GetToKnowComponent_div_3_h2_1_Template","GetToKnowComponent_div_3_h2_2_Template","GetToKnowComponent_div_7_p_4_Template","GetToKnowComponent_div_7_p_5_Template","medGrpLinkClicked","getToKnow_r4","GetToKnowComponent_div_13_div_5_Template","GetToKnowComponent","routId","GetToKnowComponent_div_3_Template","GetToKnowComponent_div_5_Template","GetToKnowComponent_div_6_Template","GetToKnowComponent_div_7_Template","GetToKnowComponent_cs_personal_info_8_Template","GetToKnowComponent_cs_care_philosophy_9_Template","GetToKnowComponent_cs_own_words_10_Template","GetToKnowComponent_h3_11_Template","GetToKnowComponent_cs_provider_video_12_Template","GetToKnowComponent_div_13_Template","GetToKnowComponent_cs_expandable_list_14_Template","showMapClick","showMap","GoogleMapsComponent","position","google","maps","LatLng","centerPoint","httpClient","rootElement","markers","isMapRendered","googleMapUrl","setupPins","initGoogleMap","updateMap","largePin","createElementNS","largePinPath","getPropertyValue","pin","pinPath","jsonp","configureMap","mapOptions","center","gestureHandling","mapTypeId","MapTypeId","ROADMAP","zoom","renderMap","labelText","outerHTML","markerOptions","labelOrigin","Point","color","fontFamily","fontSize","fontWeight","options","zIndex","createMap","markerObj","mapDiv","gmap","setCenter","createMarkers","Marker","setMap","displayMap","doShowMap","GoogleMapsComponent_div_0_Template","office_r2","setSelectedOffice","newOfficeDetails_r6","LocationsListComponent_ng_template_7_div_11_div_1_span_5_Template","LocationsListComponent_ng_template_7_div_11_ng_template_2_span_4_Template","LocationsListComponent_ng_template_7_div_11_div_1_Template","LocationsListComponent_ng_template_7_div_11_ng_template_2_Template","noPhoneAndFax_r10","LocationsListComponent_ng_template_7_div_12_span_5_Template","LocationsListComponent_ng_template_7_div_13_p_3_Template","LocationsListComponent_ng_template_7_div_13_p_4_Template","loadAllProvidersForLocation","LocationsListComponent_ng_template_7_span_3_Template","LocationsListComponent_ng_template_7_h3_7_Template","LocationsListComponent_ng_template_7_h3_10_Template","LocationsListComponent_ng_template_7_div_11_Template","LocationsListComponent_ng_template_7_div_12_Template","LocationsListComponent_ng_template_7_div_13_Template","LocationsListComponent_ng_template_7_div_14_Template","LocationsListComponent_ng_template_7_div_15_Template","viewAllLinkNeeded","LocationsListComponent_ng_template_9_span_19_Template","LocationsListComponent_ng_template_9_div_29_Template","LocationsListComponent","selectedOfficeChanged","officeTemplate","changeCount","routeValue","firstElementChild","LocationsListComponent_div_1_Template","LocationsListComponent_div_4_Template","LocationsListComponent_div_5_Template","LocationsListComponent_div_6_Template","LocationsListComponent_ng_template_7_Template","LocationsListComponent_ng_template_9_Template","imageUrl_r3","speciality_r4","nonSeoSpeciality_r5","PrintPageComponent_div_26_div_1_div_3_ng_container_1_Template","officeDetails_r8","PrintPageComponent_div_26_div_1_div_3_Template","item_r9","PrintPageComponent_div_26_div_2_div_3_Template","PrintPageComponent_div_26_div_1_Template","PrintPageComponent_div_26_div_2_Template","PrintPageComponent_div_26_div_3_Template","getToKnow_r10","PrintPageComponent_div_27_div_4_Template","item_r11","PrintPageComponent_div_28_div_4_Template","office_r12","PrintPageComponent_ng_template_29_div_6_span_5_Template","PrintPageComponent_ng_template_29_ng_template_7_span_4_Template","PrintPageComponent_ng_template_29_h3_3_Template","PrintPageComponent_ng_template_29_h3_4_Template","PrintPageComponent_ng_template_29_div_6_Template","PrintPageComponent_ng_template_29_ng_template_7_Template","PrintPageComponent_ng_template_29_div_9_Template","PrintPageComponent_ng_template_29_div_10_Template","noPhoneAndFax_r13","PrintPageComponent","footer","headerImageUrl","getPrintablePdfFooter","getPrintablePdfHeaderImageUrl","PrintPageComponent_div_15_Template","PrintPageComponent_img_20_Template","PrintPageComponent_p_22_Template","PrintPageComponent_p_23_Template","PrintPageComponent_div_24_Template","PrintPageComponent_div_26_Template","PrintPageComponent_div_27_Template","PrintPageComponent_div_28_Template","PrintPageComponent_ng_template_29_Template","questionCommentDetail_r1","responseCount","ProviderCommentsComponent_div_0_div_12_div_1_Template","ProviderCommentsComponent_div_0_div_12_Template","ProviderCommentsComponent_div_0_ng_container_13_Template","userComments_r3","questionCommentDetail_r4","ProviderCommentsComponent_div_1_div_13_div_1_Template","goToRatingFooterLink","ProviderCommentsComponent_div_1_div_15_a_5_Template","ProviderCommentsComponent_div_1_h2_1_Template","ProviderCommentsComponent_div_1_h2_2_Template","ProviderCommentsComponent_div_1_div_13_Template","ProviderCommentsComponent_div_1_div_14_Template","ProviderCommentsComponent_div_1_div_15_Template","ProviderCommentsComponent_div_1_ng_container_16_Template","commentDetail_r6","ProviderCommentsComponent_ng_template_2_div_0_div_4_div_1_span_5_Template","ProviderCommentsComponent_ng_template_2_div_0_div_4_div_1_p_12_Template","ProviderCommentsComponent_ng_template_2_div_0_div_4_div_1_p_14_Template","ProviderCommentsComponent_ng_template_2_div_0_div_4_div_1_p_16_Template","ProviderCommentsComponent_ng_template_2_div_0_div_4_div_1_Template","commentsSliceIndex","toggleReviewComments","ProviderCommentsComponent_ng_template_2_div_0_div_6_a_5_Template","ProviderCommentsComponent_ng_template_2_div_0_div_3_Template","ProviderCommentsComponent_ng_template_2_div_0_div_4_Template","ProviderCommentsComponent_ng_template_2_div_0_div_5_Template","ProviderCommentsComponent_ng_template_2_div_0_div_6_Template","ProviderCommentsComponent_ng_template_2_div_0_div_7_Template","ProviderCommentsComponent_ng_template_2_div_0_Template","ProviderCommentsComponent","ProviderCommentsComponent_div_0_Template","ProviderCommentsComponent_div_1_Template","ProviderCommentsComponent_ng_template_2_Template","SuggestAnEditComponent","handleSuggestEditClick","speciality_r5","nonSEOSpeciality_r6","goToComments","ProviderHeroComponent_div_0_div_2_div_13_div_1_cs_tooltip_2_Template","ProviderHeroComponent_div_0_div_2_div_13_div_2__svg_svg_2_Template","ProviderHeroComponent_div_0_div_2_div_13_div_1_Template","ProviderHeroComponent_div_0_div_2_div_13_div_2_Template","ProviderHeroComponent_div_0_div_2_div_2_Template","ProviderHeroComponent_div_0_div_2_img_8_Template","ProviderHeroComponent_div_0_div_2_p_10_Template","ProviderHeroComponent_div_0_div_2_p_12_Template","ProviderHeroComponent_div_0_div_2_div_13_Template","imageUrl_r9","speciality_r10","nonSEOSpeciality_r11","ProviderHeroComponent_div_0_div_3_div_15_div_1_cs_tooltip_2_Template","ProviderHeroComponent_div_0_div_3_div_15_div_2__svg_svg_2_Template","ProviderHeroComponent_div_0_div_3_div_15_div_1_Template","ProviderHeroComponent_div_0_div_3_div_15_div_2_Template","ProviderHeroComponent_div_0_div_3_img_8_Template","ProviderHeroComponent_div_0_div_3_p_10_Template","ProviderHeroComponent_div_0_div_3_p_12_Template","ProviderHeroComponent_div_0_div_3_div_13_Template","ProviderHeroComponent_div_0_div_3_cs_suggest_an_edit_14_Template","ProviderHeroComponent_div_0_div_3_div_15_Template","notShowSuggestEdit_r14","ProviderHeroComponent_div_0_cs_suggest_an_edit_1_Template","ProviderHeroComponent_div_0_div_2_Template","ProviderHeroComponent_div_0_div_3_Template","ProviderHeroComponent_div_0_ng_template_4_Template","ProviderHeroComponent","ProviderHeroComponent_div_0_Template","bookingUrl_Cerner","ScheduleAnAppointmentComponent_div_0_div_10_div_1_Template","ScheduleAnAppointmentComponent_div_0_div_10_div_2_Template","ScheduleAnAppointmentComponent_div_0_div_10_cs_patient_age_restrictions_3_Template","isCernerPageRedirect","ageRestrictionRuleForDH","ScheduleAnAppointmentComponent_div_0_div_13_cs_patient_age_restrictions_2_Template","ScheduleAnAppointmentComponent_div_0_div_10_Template","ScheduleAnAppointmentComponent_div_0_div_11_Template","ScheduleAnAppointmentComponent_div_0_div_12_Template","ScheduleAnAppointmentComponent_div_0_div_13_Template","ScheduleAnAppointmentComponent","loginLink","newSchedulingAppLink","getAgeRestrictionRuleForDH","providerSupportsOnlineBooking","selectOfficeCarousel","handleTimeSelection","selection","schedAppObject","visitMetadata","appointmentAt","appointmentType","appointmentTypeLabel","extras","clientId","ga","getByName","initialLoadFromPCDE","captchaEnabled","newPatient","scheduleId","returnUrlProfile","facility","facilityAddress","facilityId","facilitySchedulingId","facilityLatitude","facilityLongitude","facilityCity","facilityName","facilityPhoneNumber","facilityState","facilityZip","imageUrl","support","supportLink","supportPhone","termsLink","visitData","btoa","ScheduleAnAppointmentComponent_div_0_Template","ProviderDetailsResolver","resolve","imageUrl_r1","speciality_r2","secondarySpeciality_r3","ctx_r4","ProviderDetailsCardComponent_div_26_div_1_cs_tooltip_2_Template","ProviderDetailsCardComponent_div_26_div_2__svg_svg_2_Template","ProviderDetailsCardComponent_div_26_div_1_Template","ProviderDetailsCardComponent_div_26_div_2_Template","ProviderDetailsCardComponent","hasPhoneNumber","isSchedulable","showRating","ProviderDetailsCardComponent_li_12_Template","ProviderDetailsCardComponent_p_15_Template","ProviderDetailsCardComponent_p_16_Template","ProviderDetailsCardComponent_button_18_Template","ProviderDetailsCardComponent_span_19_Template","ProviderDetailsCardComponent_div_26_Template","ScrollToTopComponent","onWindowScroll","windowScrolled","pageYOffset","changeDetector","parentTop","parent","scrollY","top","checkScrolling","bind","scrollToTop","scroll","ProviderDetailsModule","GoogleMapsModule","InvalidTokenError","Error","prototype","displayHeadingInvalidInfo","SearchLandingComponent","setPageTitle","getDecodedAccessToken","jwtDecode","pos","part","decoded","base64UrlDecode","str","output","b64DecodeUnicode","decodeURIComponent","atob","charCodeAt","toUpperCase","message","SearchLandingComponent_cs_legal_copy_8_Template","SearchLandingComponent_cs_emergency_care_10_Template","SearchLandingComponent_cs_regional_helpline_numbers_12_Template","SearchLandingComponent_cs_my_providers_13_Template","MyProvidersComponent","SearchLandingModule","AccordionModule","FilterDialogModule","AngSlideToggleModule","SearchFilter","AngSlideToggleComponent","contentClosed","switchToggle","disabled","checked","barCheckedBgColor","sliderCheckedColor","barUncheckedBgColor","sliderUncheckedColor","barDisabledBgColor","sliderDisabledColor","clearFilterContent","isFilterProcessing","clearFilterSelection","enableFiltering","filterChange","resetActive","FilterDialogComponent","filterContainer","showDialog","setDialogPosition","showCloseIcon","hideDialog","applyFilters","contentReset","selectionReset","buttonHover","showDialogClick","isProcessing$","isProcessing","showDialogClicked","setProcessingState","emitHover","hover","displayDialog$","FilterDialogComponent__svg_svg_5_Template","FilterDialogComponent_hr_9_Template","FilterDialogComponent_div_10_Template","filterTitle","hideDialogButtons","tooltipInfo","tooltip","AccordionComponent","isCollapsed","ngContentSelectors","AccordionComponent_cs_tooltip_6_Template","AccordionComponent__svg_svg_8_Template","AccordionComponent__svg_svg_9_Template","AvailabilityDialogComponent","selectAvailability","availability","AvailabilityDialogComponent__svg_path_4_Template","AvailabilityDialogComponent__svg_path_11_Template","AvailabilityDialogComponent__svg_path_18_Template","AvailabilityDialogComponent__svg_path_25_Template","insurance_r2","toggleInsurance","CommonMoreFiltersComponent_cs_accordion_1_div_2__svg_svg_2_Template","CommonMoreFiltersComponent_cs_accordion_1_div_2__svg_svg_3_Template","checkInsurance","CommonMoreFiltersComponent_cs_accordion_1_div_2_Template","language_r5","toggleLanguage","CommonMoreFiltersComponent_cs_accordion_2_div_2__svg_svg_2_Template","CommonMoreFiltersComponent_cs_accordion_2_div_2__svg_svg_3_Template","checkLanguage","CommonMoreFiltersComponent_cs_accordion_2_div_2_Template","CommonMoreFiltersComponent","showLanguageFilter","CommonMoreFiltersComponent_cs_accordion_1_Template","CommonMoreFiltersComponent_cs_accordion_2_Template","filtersClicked","clearFilters","showSortAndFilters","MobileFiltersComponent_div_3_span_1_Template","isFilterSelected","handleSortChange","sortDropdowns","selectedSortBy","MobileFiltersComponent_div_11_div_1__svg_svg_6_Template","MobileFiltersComponent_div_11_div_1__svg_svg_7_Template","onlineSchedulingbuttonText","MobileFiltersComponent_div_11_div_1_Template","MobileFiltersComponent_div_11_div_2_Template","MobileFiltersComponent_div_12_div_1__svg_svg_6_Template","MobileFiltersComponent_div_12_div_1__svg_svg_7_Template","videoVisitButtonText","MobileFiltersComponent_div_12_div_1_Template","MobileFiltersComponent_div_12_div_2_Template","MobileFiltersComponent_div_13_div_1__svg_svg_6_Template","MobileFiltersComponent_div_13_div_1__svg_svg_7_Template","MobileFiltersComponent_div_13_div_1_Template","MobileFiltersComponent_div_13_div_2_Template","MobileFiltersComponent_div_14_div_1__svg_svg_6_Template","MobileFiltersComponent_div_14_div_1__svg_svg_7_Template","MobileFiltersComponent_div_14_div_1_Template","MobileFiltersComponent_div_14_div_2_Template","filterLocationName","insurance_r17","MobileFiltersComponent_cs_accordion_17_div_2__svg_svg_2_Template","MobileFiltersComponent_cs_accordion_17_div_2__svg_svg_3_Template","MobileFiltersComponent_cs_accordion_17_div_2_Template","specialty_r19","toggleSpecialty","MobileFiltersComponent_cs_accordion_18_div_2__svg_svg_2_Template","MobileFiltersComponent_cs_accordion_18_div_2__svg_svg_3_Template","checkSpecialty","MobileFiltersComponent_cs_accordion_18_div_2_Template","medicalGroupToolTip","MobileFiltersComponent_cs_accordion_19_div_1_Template","_r20","selectMedicalGroup","medicalGroupHoverText","selectedMedicalGroupName","medgroupItem_r22","_r21","toggleMedgroup","MobileFiltersComponent_cs_accordion_20_div_2__svg_svg_2_Template","MobileFiltersComponent_cs_accordion_20_div_2__svg_svg_3_Template","checkMedgroup","MobileFiltersComponent_cs_accordion_20_div_2_Template","affiliationToolTip","hospital_r24","_r23","toggleHospital","MobileFiltersComponent_cs_accordion_21_div_3__svg_svg_2_Template","MobileFiltersComponent_cs_accordion_21_div_3__svg_svg_3_Template","checkHospital","MobileFiltersComponent_cs_accordion_21_div_1_Template","MobileFiltersComponent_cs_accordion_21_div_3_Template","affiliationHoverText","_r26","selectGender","MobileFiltersComponent_cs_accordion_22_div_16__svg_path_3_Template","MobileFiltersComponent_cs_accordion_22_div_17__svg_path_3_Template","_r25","MobileFiltersComponent_cs_accordion_22__svg_path_5_Template","MobileFiltersComponent_cs_accordion_22__svg_path_12_Template","MobileFiltersComponent_cs_accordion_22_div_16_Template","MobileFiltersComponent_cs_accordion_22_div_17_Template","_r28","displayRadius","_r29","MobileFiltersComponent","defaultSearchDistanceMobile","defaultSearchDistanceWithMG","dialogHeight","isMobileCernerPage","innerHeight","buttonTitle","moreFilters","filtersModelChange","showModal","showLocationName","getMedicalGroupFilterToolTipText","getMedicalGroupFilterHoverText","getHospitalAffiliationFilterToolTipText","getHospitalAffiliationFilterHoverText","getDefaultSearchDistanceWhenMedGroupFilterApplied","showOnlineSchedulingFilter","showVideoVisitsFilter","showAcceptingNewPatientsFilter","showAvailabilityFilter","showSpecialtyFilter","showAffiliationFilter","showGenderFilter","getSortingConfig","option","queryParam","selectedMedgroup","sortByNumber","showMobileFiltersForLeftDesign","alignTop","multipleMedicalGroupSelection","showInsuranceAcceptedFilter","showOnlineSchedulingAllVisitFilter","MobileFiltersComponent_span_1_Template","MobileFiltersComponent__svg_svg_2_Template","MobileFiltersComponent_div_3_Template","MobileFiltersComponent_div_6_Template","MobileFiltersComponent_h2_7_Template","MobileFiltersComponent_h2_8_Template","MobileFiltersComponent_div_10_Template","MobileFiltersComponent_div_11_Template","MobileFiltersComponent_div_12_Template","MobileFiltersComponent_div_13_Template","MobileFiltersComponent_div_14_Template","MobileFiltersComponent_div_15_Template","MobileFiltersComponent_cs_accordion_16_Template","MobileFiltersComponent_cs_accordion_17_Template","MobileFiltersComponent_cs_accordion_18_Template","MobileFiltersComponent_cs_accordion_19_Template","MobileFiltersComponent_cs_accordion_20_Template","MobileFiltersComponent_cs_accordion_21_Template","MobileFiltersComponent_cs_accordion_22_Template","MobileFiltersComponent_cs_accordion_24_Template","MobileFiltersComponent_div_26_Template","filterOnlineScheduling","closeFilterDialog","FiltersComponent_div_2_cs_filter_dialog_9_span_5_Template","applyFilterMessage","LastVideoVisitsProvidersCount","filterVideoVisits","FiltersComponent_div_2_cs_filter_dialog_10_span_5_Template","FiltersComponent_div_2_cs_filter_dialog_10_span_6_Template","filterOnlineSchedulingAllVisit","FiltersComponent_div_2_cs_filter_dialog_11_span_5_Template","applyFilterMessageOnlineSchedulingAllVisit","filterNewPatients","insurance_r8","FiltersComponent_div_2_cs_filter_dialog_13_div_2__svg_svg_2_Template","FiltersComponent_div_2_cs_filter_dialog_13_div_2__svg_svg_3_Template","insuranceReset","filterInsurances","initializeInsurancesDialog","FiltersComponent_div_2_cs_filter_dialog_13_div_2_Template","specialty_r11","FiltersComponent_div_2_cs_filter_dialog_16_div_2__svg_svg_2_Template","FiltersComponent_div_2_cs_filter_dialog_16_div_2__svg_svg_3_Template","specialtyReset","filterSpecialties","initializeSpecialtyDialog","FiltersComponent_div_2_cs_filter_dialog_16_div_2_Template","moreFilterText","FiltersComponent_div_2_div_19_cs_accordion_9__svg_path_5_Template","FiltersComponent_div_2_div_19_cs_accordion_9__svg_path_12_Template","filterMedicalGroup","selectMedGroup","tmp_6_0","moreFiltersClicked","FiltersComponent_div_2_div_19_span_3_Template","FiltersComponent_div_2_div_19_cs_accordion_9_Template","FiltersComponent_div_2_div_19_cs_accordion_11_Template","FiltersComponent_div_2_div_19_cs_accordion_12_Template","moreFilterCount","isAnyFilterSelected","FiltersComponent_div_2_cs_filter_dialog_9_Template","FiltersComponent_div_2_cs_filter_dialog_10_Template","FiltersComponent_div_2_cs_filter_dialog_11_Template","FiltersComponent_div_2_cs_filter_dialog_12_Template","FiltersComponent_div_2_cs_filter_dialog_13_Template","FiltersComponent_div_2_cs_filter_dialog_16_Template","FiltersComponent_div_2_div_19_Template","FiltersComponent_div_2_div_20_Template","FiltersComponent_div_2_div_23_Template","showMoreFilters","isDesktopFilterSelected","handleFilterChange","FiltersComponent_div_6_cs_filter_dialog_1_span_5_Template","FiltersComponent_div_6_cs_filter_dialog_2_span_5_Template","FiltersComponent_div_6_cs_filter_dialog_2_span_6_Template","FiltersComponent_div_6_cs_filter_dialog_3_span_5_Template","_r22","filterAvailability","specialty_r25","_r24","FiltersComponent_div_6_cs_filter_dialog_5_div_2__svg_svg_2_Template","FiltersComponent_div_6_cs_filter_dialog_5_div_2__svg_svg_3_Template","FiltersComponent_div_6_cs_filter_dialog_5_div_2_Template","clearMedGroupFilters","isHoveringOnMedGroup","FiltersComponent_div_6_div_6_div_3_Template","FiltersComponent_div_6_div_6_span_5_Template","tmp_8_0","medgroupItem_r29","FiltersComponent_div_6_cs_filter_dialog_7_div_2__svg_svg_2_Template","FiltersComponent_div_6_cs_filter_dialog_7_div_2__svg_svg_3_Template","filterMedicalGroups","initializeMedicalGroupsDialog","FiltersComponent_div_6_cs_filter_dialog_7_div_2_Template","FiltersComponent_div_6_cs_filter_dialog_7_span_3_Template","hospital_r32","_r31","FiltersComponent_div_6_div_8_div_4__svg_svg_2_Template","FiltersComponent_div_6_div_8_div_4__svg_svg_3_Template","_r30","filterHospitals","initializeAffiliationsDialog","isHoveringOnAffiliation","FiltersComponent_div_6_div_8_div_3_Template","FiltersComponent_div_6_div_8_div_4_Template","FiltersComponent_div_6_div_8_span_5_Template","_r33","filterGender","FiltersComponent_div_6_cs_filter_dialog_9__svg_path_5_Template","FiltersComponent_div_6_cs_filter_dialog_9__svg_path_12_Template","_r34","FiltersModelPartialHelperLocal","filterSearchRadius","FiltersComponent_div_6_div_10_cs_filter_dialog_1_Template","language_r37","_r36","FiltersComponent_div_6_cs_filter_dialog_11_div_2__svg_svg_2_Template","FiltersComponent_div_6_cs_filter_dialog_11_div_2__svg_svg_3_Template","_r35","filterLanguages","initializeLanguageDialog","FiltersComponent_div_6_cs_filter_dialog_11_div_2_Template","_r39","_r40","FiltersComponent_div_6_div_12_cs_accordion_9__svg_path_5_Template","FiltersComponent_div_6_div_12_cs_accordion_9__svg_path_12_Template","_r41","_r38","FiltersComponent_div_6_div_12__svg_svg_3_Template","FiltersComponent_div_6_div_12_cs_accordion_9_Template","FiltersComponent_div_6_div_12_cs_accordion_11_Template","isSelected","_r42","FiltersComponent_div_6_cs_filter_dialog_1_Template","FiltersComponent_div_6_cs_filter_dialog_2_Template","FiltersComponent_div_6_cs_filter_dialog_3_Template","FiltersComponent_div_6_cs_filter_dialog_4_Template","FiltersComponent_div_6_cs_filter_dialog_5_Template","FiltersComponent_div_6_div_6_Template","FiltersComponent_div_6_cs_filter_dialog_7_Template","FiltersComponent_div_6_div_8_Template","FiltersComponent_div_6_cs_filter_dialog_9_Template","FiltersComponent_div_6_div_10_Template","FiltersComponent_div_6_cs_filter_dialog_11_Template","FiltersComponent_div_6_div_12_Template","FiltersComponent_div_6_div_13_Template","FiltersComponent","showMobileFilters","medicalGroupChange","addMedicalGroupItems","closeOnOverlay","getSelectedMedgroup","getMoreFiltersCount","filterMessage","canFilter","filteringActive","handleManualProviderRoleSelectionProcess","Array","selectedGroupName","clearAllSessionVariables","handleDialogDisplay","FiltersComponent_div_2_Template","FiltersComponent_cs_mobile_filters_5_Template","FiltersComponent_div_6_Template","CtaNewSearchComponent","dhMarketText","navigateTo","medItem_r1","logoUrl","MedicalCopyComponent","LogoConstantsObj","logoLegendHeader","getLogoLegendHeader","setMedicalGroupList","provideMedicalGroupList","uniqueList","medicalGroups","has","MedicalCopyComponent_span_4_Template","dynamicFilterContent_r1","DynamicFilterContentComponent_div_0_h3_1_Template","DynamicFilterContentComponent","medicalGroup","dynamicFilterContents","DynamicFilterContentComponent_div_0_Template","dropdown_r3","ctx_r3","itemClickHandler","MultipleCheckboxSearchableDropdownComponent_ul_4_li_5__svg_svg_2_Template","MultipleCheckboxSearchableDropdownComponent_ul_4_li_5__svg_svg_3_Template","MultipleCheckboxSearchableDropdownComponent_ul_4_li_5_span_5_Template","showCount","MultipleCheckboxSearchableDropdownComponent_ul_4_li_5_Template","placeholderInput","filterDropdownList","MultipleCheckboxSearchableDropdownComponent","dropdowns","selectedDropDownValues","selectedItems","oldSelectedItems","noResultsFound","showDropDown","markSelected","dropdown","shiftSelectedEntries","unshift","placeholder","Number","getSelectedDropdowns","inputSearch","searchinput","trackByFn","onSelectedItemClick","objectsAreSame","obj1","obj2","MultipleCheckboxSearchableDropdownComponent_ul_4_Template","searchRadiusSelectedValue","searchRadiusList","isProviderAvailabilityCollapsed","selectedSpecialityValues","selectedMedicalValues","FiltersLeftPanelComponent_div_2_cs_accordion_16_div_1_Template","selectedHospitalAffliations","FiltersLeftPanelComponent_div_2_cs_accordion_17__svg_path_5_Template","FiltersLeftPanelComponent_div_2_cs_accordion_17__svg_path_12_Template","FiltersLeftPanelComponent_div_2_cs_accordion_17__svg_path_19_Template","FiltersLeftPanelComponent_div_2_cs_accordion_17__svg_path_26_Template","FiltersLeftPanelComponent_div_2_div_8_Template","FiltersLeftPanelComponent_div_2_div_9_Template","FiltersLeftPanelComponent_div_2_div_10_Template","FiltersLeftPanelComponent_div_2_div_11_Template","FiltersLeftPanelComponent_div_2_cs_accordion_12_Template","FiltersLeftPanelComponent_div_2_cs_accordion_13_Template","FiltersLeftPanelComponent_div_2_cs_accordion_14_Template","FiltersLeftPanelComponent_div_2_cs_accordion_15_Template","FiltersLeftPanelComponent_div_2_cs_accordion_16_Template","FiltersLeftPanelComponent_div_2_cs_accordion_17_Template","FiltersLeftPanelComponent_div_2_cs_accordion_18_Template","FiltersLeftPanelComponent_div_2_cs_accordion_19_Template","FiltersLeftPanelComponent","locationNameClosed","convertMedicalGroupToFacetList","markSelectedItemsInList","showProceduresPerformedFilter","showConditionsTreatedFilter","FiltersLeftPanelComponent_div_2_Template","SearchResultsComponent_div_2_iframe_7_Template","backSiteSearch","backSearchSiteText","Text","ratingsBannerLink","ratingsBannerLinkText","SearchResultsComponent_div_8_div_1_a_14_Template","closeBanner","ratingBannerText","SearchResultsComponent_div_8_div_1_Template","bannerDisabled","handleMedicalGroupChange","addMedicalGroups","handlelocationNameClosed","selectedSortValue","searchFilters","SearchResultsComponent_div_17_cs_mobile_filters_4_Template","SearchResultsComponent_div_17_div_5_Template","resultsString","isFiltersLeftSidePanelRequired","showSort","showOldSortOption","showSpinnerVmfhProvider","provider_r11","SearchResultsComponent_div_20_cs_result_card_2_Template","providerResults","getMoreResults","item_r15","fuzzySearch","SearchResultsComponent_div_26_div_12_div_1_Template","fuzzySearchList","SearchResultsComponent_div_26_div_13_cs_regional_helpline_numbers_1_Template","providerCardSearchParams","SearchResultsComponent_div_26_ng_container_14_cs_provider_card_1_Template","SearchResultsComponent_div_26_div_11_Template","SearchResultsComponent_div_26_div_12_Template","SearchResultsComponent_div_26_div_13_Template","SearchResultsComponent_div_26_ng_container_14_Template","noResultText","fuzzySearchRecommendationText","fuzzySearchText","isFuzzySearch","hasNoResults","SearchResultsComponent_dhcl_modal_27_div_1_dhgf_guided_flow_1_Template","SearchResultsComponent_dhcl_modal_27_div_2_dhgf_guided_flow_1_Template","SearchResultsComponent_dhcl_modal_27_div_1_Template","SearchResultsComponent_dhcl_modal_27_div_2_Template","SearchResultsComponent","onPageShow","persisted","reload","searchButtonClickEvent","showSpinner","totalResults","resultsLoaded","selectedLocationDisplay","showMoreButton","sanitize","appInsightService","loadingMoreResults","isShowVideo","showLogoLegend","getMultipleMedicalGroupSelection","showBackButton","backtoSearchSiteLink","searchFrom","isFuzzyMatchEnabled","setFALUrl","showOptions","getDefaultSortOption","isBannerDisabled","sortOptions","locationCookieSubscription$","createLocationCookie","urlSubscription$","combineLatest","getStarRatingsBanner","defaultRatingsBannerText","defaultRatingsBannerLinkText","defaultRatingsBannerLink","navigateWithinSearchResults","urlSegments","relativeTo","inPlaceNav","redirectToOpenSreach","embedSourceValue","routeUrl","videoVisitsKeywordTyped","param","fromUrlFriendly","handleSingleSpecialty","createQueryParams","defaultSearchRadius","applySortParams","newUrl","buildUrlForLocationRoute","buildUrlForNormalRoute","medicalGroupMultiple","SetQueryParams","prepareUrl","searchType","medGroupsMapped","mapMedicalGroupTitle","sortByValue","getSortingOptionByValue","sortby","sortNumber","updateSortCaption","sortValue","sortingOptions","selectedValue","isNumeric","sortName","medGroupString","medGroupObject","identifier","setMedGroupSession","removeLocationQueryParamIfExistsInParam","mapMedicalGroupName","mappedName","selectedMedicalGroups","medgroupName","mappedArray","mappedValue","getSearchParamLocationOrLocationCookie","routeSnapshot","term","getSearchType","applySortingFromQueryParams","getSortingOptionByQueryParam","searchSessionId","referrer","getCurrentNavigation","setTileTags","getSearchResultForMedicalGroup","getSearchDetails","createSelectedLocationFromLocationCookie","searchString","searchterm","setKeyword","getSearchResultForSpecialty","getSearchResultForLocation","getSearchResultForTerm","qryPrms","arrLocationDetails","setFiltersFromRoute","locationRequest","createLocationSearchRequest","performLocationSearchByLocationId","locationString","performLocationSearch","replaceWithDash","performLocationAndTermSearch","getAutoCheckBoxSelectionSpecalities","getSpecialtyResult","sessionItem","getSearchFrom","specialityFilters","facet","throwError","selectedMedgroupCount","multipleMedGroups","setMedGroupsInFiltersModel","performMedGroupSearch","genderSelected","performSpecialtySearch","getSelectedLocation","getLocationBasedOnMedGroup","getLocationBasedOnUser","cookieLocation","loc","extractDynamicFilterContent","contents","showContent","extractOnlineSchedulingDetails","extractMedicalGroupDetails","extractSpecialtyDetails","onlineScheduleContents","getOnlineSchedulingContent","medicalGroupContents","getMedicalGroupContent","medicalGroupContent","specialtyGroupContents","getSpecialtyGroupContent","eachSpecialty","filterKeywords","eachItem","filterValue","specialtyContent","medGroupObj","performSearch","headerTitle","li","getFilterStates","setHeadingText","ApiResponseCreator","createObservable","providerSearchResponse","getMedicalGroupLink","getFacetInfo","checkMedicalGroupCollection","providerResponseSwitchMapFunc","sortByName","setNoResultText","recommendations","setSortByDropdownDisplayName","getNetworkProvider","overwriteProviderImageUrl","removeMetaNoIndexName","setNoRecordsTitle","setNoFollowMetaPage","cjaTagServiceForSearchResults","finalize","setPageTitleforNoRecords","setMedicalGrpBasedHeading","setLocationBasedHeading","setBannerDisabledCookie","bannerLinkClick","imagesCopy","img","consolidatedProviderResults","cjaTagServiceForProvidersImpressions","cards","nextElementSibling","getElementsByClassName","openModalForCerner","closeModalForCerner","recommendation","locationText","formatLocation","getShowFuzzyMatch","fuzzyString","siteUrl","cjaTagSearchFilter","serviceLine","searchURL","scheduleFilterDetails","scheduleLocation","scheduleKeyword","scheduleBookOnline","totalResultsCount","eventName","searchResults","providerList","providersImpressions","checkNonFadUrlAccessed","moreResults","getLocationDetailsbyLocationId","selectedMedGroupCount","tempGroup","getMedGroupObject","showHeaderForMedgroups","firstMedGroup","medgroupTitle","medgroupCode","providerRoleTypesEmit","includeProviderRoleType","queryParamList","medGroupFromSession","page","patients","videoCalls","providerNpis","ratings","providerResponseMapFunc","addClassSearchResultsWithSidePanel","i16","i17","i18","SearchResultsComponent_cs_provider_details_navigation_0_Template","SearchResultsComponent_dhcl_modal_1_Template","SearchResultsComponent_div_2_Template","SearchResultsComponent_div_3_Template","SearchResultsComponent_div_6_Template","SearchResultsComponent_ng_container_7_Template","SearchResultsComponent_div_8_Template","SearchResultsComponent_cs_legal_copy_9_Template","SearchResultsComponent_cs_cta_new_search_10_Template","SearchResultsComponent_cs_filters_11_Template","SearchResultsComponent_cs_medical_copy_12_Template","SearchResultsComponent_cs_cta_new_search_13_Template","SearchResultsComponent_cs_filters_left_panel_15_Template","SearchResultsComponent_div_17_Template","SearchResultsComponent_cs_medical_copy_18_Template","SearchResultsComponent_div_19_Template","SearchResultsComponent_div_20_Template","SearchResultsComponent_div_21_Template","SearchResultsComponent_button_22_Template","SearchResultsComponent_button_23_Template","SearchResultsComponent_div_24_Template","SearchResultsComponent_div_26_Template","SearchResultsComponent_dhcl_modal_27_Template","MultiSelectSearchableDropDownModule","SearchResultsModule","storageKey","SchedulingService","http","getLocationsByApptointmentType","locationIds","httpOptions","headers","HttpHeaders","apimSubscriptionKey","locationQuery","httpParams","HttpParams","append","schedulingApiBaseUrl","getV5AuthToken","getV5AppointmentTypes","covidAppointmentTypes","getLocationsByApptointmentTypeV5","locationSourceIds","authToken","system","Authorization","post","v5OpenSlotsEndpoint","validateNotableToken","notableTokenValidationUrl","getHttpOptions","validateCSHToken","cshValidationUrl","getMarketLocations","marketLocations","CovidVaccinationLocationCardComponent","bookAppointment","btnOkClickHandler","CovidVaccinationLocationCardComponent_div_18_Template","tmp_1_0","returnToMyTurn","updateLocation","VaccinationLocationComponent_div_11_div_1_Template","VaccinationLocationComponent_div_11_div_2_Template","VaccinationLocationComponent_div_11_div_3_Template","VaccinationLocationComponent_div_11_div_4_Template","VaccinationLocationComponent_div_11_cs_covid_vaccination_location_card_6_Template","showInvitationOnlyMessage","isMyTurnPatient","apptTypes","mrn","v5Provider","covidPatientInfo","isBookAgain","selectedAppointmentSchedule","VaccinationLocationComponent_dhcl_modal_44_dhgf_guided_flow_1_Template","VaccinationLocationComponent","schedulingService","phoneNo","authCallsFinished","showMyTurnError","v5AppointmentTypes","v5Locations","myTurnV5Location","filterLocationBy50Miles","ref","setAuthToken","initializeRunTimeConfigs","link","initCovidFlow","imgUrl","environmentBaseUrl","covidSupportUseV5","getCovidSupportUseV5","fadContainer","covidVaccinationLocations","initMyTurnFlow","authenticateUser","notableToken","cshToken","postalCd","eMail","emailAddress","dateOfBirth","phoneNumber","MRN","City","State","PostalCd","Market","FirstName","LastName","EmailAddress","DateOfBirth","PhoneNumber","marketLocation","getHeaderDHMGLogo","getLocationsByAppointmentType","getV5Schedule","eventStartTime","getTime","setLocations","appointmentSchedules","clickCovidLauncherBtn","noLocationsFound","el","protocol","hostname","port","providerSchedule","attributes","mlocation","street","formatPhone","sortLocationListByUserLocation","click","locationInfo","setV5Provider","getLocationSuggestions","getTypedLocationDetail","sortLocationsWithDistance","lat","lng","distanceInMiles","calculateDistanceInMiles","lat1","lon1","lat2","lon2","c","Math","cos","asin","sqrt","action","eventTimestamp","eventTimeElapsed","search_schedule_mrn","event_mrn","event_label","event_service_line","search_schedule_book_online","search_schedule_keyword","event_timestamp","event_time_elapsed","patient_fname","patient_lname","patient_dob","patient_email","patient_phone","event_appointment_booking_type","mapLocationIdForCovidBookAgain","marketLoc","logoValue","idx_id","matchingLogo","distinctLogoList","arr","authResults","idxIds","combineDuplicateLocations","model","mappedResults","v5Location","openTimes","sourceId","selectedMarketLocation","mk","appointmentTimes","getV5AppointmentTimes","nextAvailable","getNextV5AppointmentTimes","services","v5Timeslots","onlineBookingDays","timeSlot","splitDate","date","splitTime","minutes","hourOffset","hours","formattedDate","formattedTime","times","at","remoteId","getNextV5AvailableTimeSlotsByApptTypeId","apptTypeId","dateSchedule","timeSchedule","aType","clonedLocation","existingIndex","cl","VaccinationLocationComponent_h1_7_Template","VaccinationLocationComponent_h1_8_Template","VaccinationLocationComponent_h1_9_Template","VaccinationLocationComponent_h1_10_Template","VaccinationLocationComponent_div_11_Template","VaccinationLocationComponent_dhcl_modal_44_Template","VaccinationLocationModule","_a","UNDEFINED","Constructor","Prototype","strFunction","DynInstFuncTable","DynProxyTag","DynClassName","DynInstChkTag","DynAllowInstChkTag","DynProtoDefaultOptions","UnknownValue","str__Proto","DynProtoBaseProto","DynProtoGlobalSettings","DynProtoCurrent","strUseBaseInst","strSetInstFuncs","Obj","_objGetPrototypeOf","getPrototypeOf","_objGetOwnProps","getOwnPropertyNames","_gbl","_getGlobal","globalThis","global","_gblInst","_hasOwnProperty","obj","prop","hasOwnProperty","call","_isObjectOrArrayPrototype","_isObjectArrayOrFunctionPrototype","Function","_getObjProto","newProto","curProto","_forEachProp","func","props","name_1","lp","_isDynamicCandidate","funcName","skipOwn","_throwTypeError","TypeError","_newObject","create","_hasVisited","_populatePrototype","proto","baseInstFuncs","setInstanceFunc","instFuncTable","instFuncs_1","_createDynamicPrototype","dynProtoProxy","instFunc","_getInstFunc","currentDynProtoProxy","canAddInst","objProto","visited","protoFunc","_getProtoFunc","apply","arguments","_getObjName","unknownValue","dynamicProto","theClass","delegateFunc","classProto","_checkPrototype","thisTarget","thisProto","perfOptions","useBaseInst","instFuncs","_getInstanceFuncs","baseFuncs","_getBaseFuncs","_instFuncProxy","funcHost","theFunc","baseProto","strShimFunction","strShimObject","strShimUndefined","strShimPrototype","strShimHasOwnProperty","ObjClass","ObjProto","ObjAssign","ObjCreate","ObjDefineProperty","defineProperty","ObjHasOwnProperty","_cachedGlobal","getGlobal","useCached","throwTypeError","objCreateFn","tmpFunc","__assignFn","extendStaticsFn","setPrototypeOf","__proto__","__extendsFn","__","__spreadArrayFn","to","from","il","j","_DYN_INITIALIZE","_DYN_NAME","_DYN_GET_NOTIFY_MGR","_DYN_IDENTIFIER","_DYN_PUSH","_DYN_IS_INITIALIZED","_DYN_CONFIG","_DYN_INSTRUMENTATION_KEY","_DYN_LOGGER","_DYN_LENGTH","_DYN_TIME","_DYN_PROCESS_NEXT","_DYN_GET_PROCESS_TEL_CONT0","_DYN_ADD_NOTIFICATION_LIS1","_DYN_REMOVE_NOTIFICATION_2","_DYN_STOP_POLLING_INTERNA3","_DYN_ON_COMPLETE","_DYN_GET_PLUGIN","_DYN_FLUSH","_DYN__EXTENSIONS","_DYN_SPLICE","_DYN_TEARDOWN","_DYN_MESSAGE_ID","_DYN_MESSAGE","_DYN_IS_ASYNC","_DYN__DO_TEARDOWN","_DYN_UPDATE","_DYN_GET_NEXT","_DYN_DIAG_LOG","_DYN_SET_NEXT_PLUGIN","_DYN_CREATE_NEW","_DYN_COOKIE_CFG","_DYN_INDEX_OF","_DYN_SUBSTRING","_DYN_USER_AGENT","_DYN_SPLIT","_DYN_SET_ENABLED","_DYN_SUBSTR","_DYN_NODE_TYPE","_DYN_APPLY","_DYN_REPLACE","_DYN_ENABLE_DEBUG_EXCEPTI4","_DYN_LOG_INTERNAL_MESSAGE","_DYN_TO_LOWER_CASE","_DYN_CALL","_DYN_TYPE","_DYN_HANDLER","_DYN_LISTENERS","_DYN_IS_CHILD_EVT","_DYN_GET_CTX","_DYN_SET_CTX","_DYN_COMPLETE","_DYN_TRACE_ID","_DYN_TRACE_FLAGS","_DYN_VERSION","STR_EMPTY","STR_CHANNELS","STR_CORE","STR_CREATE_PERF_MGR","STR_DISABLED","STR_EXTENSION_CONFIG","STR_PROCESS_TELEMETRY","STR_PRIORITY","STR_EVENTS_SENT","STR_EVENTS_DISCARDED","STR_EVENTS_SEND_REQUEST","STR_PERF_EVENT","STR_ERROR_TO_CONSOLE","STR_WARN_TO_CONSOLE","STR_GET_PERF_MGR","strToISOString","cStrEndsWith","strIndexOf","strReduce","cStrTrim","strToString","strConstructor","_objDefineProperty","_objFreeze","freeze","_objKeys","StringProto","_strTrim","_strEndsWith","_dataToISOString","_isArray","_objToString","_fnToString","_objFunctionString","rCamelCase","rNormalizeInvalid","rLeadingNumeric","isUndefined","isNullOrUndefined","isNotNullOrUndefined","isObject","normalizeJsName","isString","_all","letter","objForEachKey","callbackfn","strEndsWith","_strEndsWithPoly","searchLen","valLen","strContains","_isArrayPoly","isError","isNumber","isPlainObject","_toISOStringPoly","getUTCFullYear","pad","num","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","arrForEach","thisArg","len","idx","arrIndexOf","fromIndex","max","abs","arrMap","strTrim","_objKeysHasDontEnumBug","propertyIsEnumerable","_objKeysDontEnums","objKeys","objType","dontEnumsLength","objDefineAccessors","getProp","setProp","descriptor","enumerable","configurable","set","deepFreeze","objFreeze","_doNothing","dateNow","dt","now","getExceptionName","object","setValue","field","valChk","srcChk","theValue","getSetValue","defValue","getCfgValue","defaultValue","isTruthy","_createProxyFunction","srcFunc","originalArguments","proxyFunctionAs","overwriteTarget","proxyFunctions","functionsToProxy","theFuncName","optimizeObject","theObject","objExtend","obj3","obj4","obj5","obj6","theArgs","extended","argLen","deep","isBoolean","arg","isArgArray","isArgObj","newValue","isNewArray","clone","_DYN_INGESTIONENDPOINT","_DYN_TO_STRING","_DYN_REMOVE_ITEM","_DYN_STRINGIFY","_DYN_PATHNAME","_DYN_CORRELATION_HEADER_E0","_DYN_EXCEPTIONS","_DYN_PARSED_STACK","_DYN_PROPERTIES","_DYN_MEASUREMENTS","_DYN_SIZE_IN_BYTES","_DYN_TYPE_NAME","_DYN_SEVERITY_LEVEL","_DYN_PROBLEM_GROUP","_DYN_IS_MANUAL","_DYN__CREATE_FROM_INTERFA1","_DYN_ASSEMBLY","_DYN_FILE_NAME","_DYN_HAS_FULL_STACK","_DYN_LEVEL","_DYN_METHOD","_DYN_LINE","_DYN_DURATION","_DYN_RECEIVED_RESPONSE","strEmpty","stringToBoolOrDefault","msToTimeSpan","totalms","round","ms","sec","floor","min","hour","days","strWindow","strDocument","strNavigator","strLocation","strPerformance","strJSON","strCrypto","strMsCrypto","strMsie","strTrident","strXMLHttpRequest","_isTrident","_navUserAgentCheck","_enableMocks","_useXDomainRequest","_beaconsSupported","_hasProperty","property","supported","getGlobalInst","gbl","hasWindow","getWindow","hasDocument","getDocument","hasNavigator","getNavigator","hasHistory","getLocation","checkForMock","mockLocation","getPerformance","hasJSON","getJSON","isIE","nav","userAgent","getIEVersion","userAgentStr","navigator_1","ua","doc","tridentVer","dumpObj","objectTypeDump","propertyValueDump","stack","isBeaconsSupported","sendBeacon","isFetchSupported","withKeepAlive","isSupported","request","useXDomainRequest","XDomainRequest","isXhrSupported","_debugListener","listenerFuncs","_aiNamespace","_listenerProxyFunc","dbgExt","getDebugExt","ns","disableDbgExt","_getExtensionNamespace","ApplicationInsights","ChromeDbgExt","_sanitizeDiagnosticText","_logToConsole","theConsole","getConsole","logFunc","_InternalLogMessage","msgId","msg","isUserAct","strProps","diagnosticText","dataType","safeGetLogger","DiagnosticLogger","queue","_loggingLevelConsole","_loggingLevelTelemetry","_maxInternalMessageLimit","_enableDebug","_messageCount","_messageLogged","_self","_logInternalMessage","severity","_areInternalMessagesThrottled","logMessage","messageKey","_debugExtMsg","throttleLimitMessage","throttleMessage","_setDefaultsFromConfig","loggingLevelConsole","loggingLevelTelemetry","maxMessageLimit","enableDebug","consoleLoggingLevel","telemetryLoggingLevel","maxInternalMessageLimit","throwInternal","resetInternalMessageCount","__ieDyn","_getLogger","logger","_throwInternal","_warnToConsole","createEnumStyle","enumClass","StorageType","LocalStorage","SessionStorage","_canUseLocalStorage","AI","AI_AND_W3C","W3C","_canUseSessionStorage","_storagePrefix","_getLocalStorageObject","utlCanUseLocalStorage","_getVerifiedStorageObject","storageType","uid","storage","fail","_getSessionStorageObject","utlCanUseSessionStorage","utlSetStoragePrefix","storagePrefix","reset","utlGetSessionStorage","exception","utlSetSessionStorage","PropertiesPluginIdentifier","BreezeChannelIdentifier","DisabledPropertyName","SampleRate","ProcessLegacy","HttpMethod","DEFAULT_BREEZE_ENDPOINT","DEFAULT_BREEZE_PATH","strNotSpecified","strIkey","dataSanitizeKeyAndAddUniqueness","origLength","dataSanitizeKey","uniqueField","dsPadNumber","nameTrunc","dataSanitizeString","maxLength","valueTrunc","dataSanitizeUrl","dataSanitizeInput","dataSanitizeMessage","messageTrunc","dataSanitizeException","exceptionTrunc","dataSanitizeProperties","tempProps_1","dataSanitizeMeasurements","measurements","tempMeasurements_1","measure","dataSanitizeId","input","_msgId","inputTrunc","substr","createTelemetryItem","baseType","envelopeName","customProperties","systemProperties","iKey","telemetryItem","ext","tags","baseData","MAX_NAME_LENGTH","MAX_ID_LENGTH","MAX_PROPERTY_LENGTH","MAX_STRING_LENGTH","MAX_URL_LENGTH","MAX_MESSAGE_LENGTH","MAX_EXCEPTION_LENGTH","sanitizeKey","sanitizeString","sanitizeUrl","sanitizeMessage","sanitizeId","sanitizeInput","padNumber","Event","aiDataContract","ver","envelopeType","Trace","severityLevel","DataPoint","kind","stdDev","Metric","metrics","dataPoint","PageView","durationMs","duration","PageViewPerformance","unused","cs4BaseData","perfTotal","networkConnect","sentRequest","receivedResponse","domProcessing","strError","strStack","strStackDetails","strErrorSrc","strMessage","strDescription","_stringify","convertToString","_formatMessage","theEvent","errorType","evtMessage","filename","lineno","colno","_isStackDetails","details","_convertStackObj","errorStack","_getStackFromErrorObj","errorObj","opera","_getOperaStack","lines","entry","reason","_getErrorType","typeName","_formatErrorCode","Exception","exceptions","_isExceptionInternal","_ExceptionDetails","CreateAutoException","lineNumber","columnNumber","evt","errorSrc","stackDetails","CreateFromInterface","ex","__assign","toInterface","_b","problemGroup","isManual","exceptionDetailsInterface","CreateSimpleException","assembly","fileName","line","formatError","outerId","hasFullStack","parsedStack","_isExceptionDetailsInternal","_parseStack","frames","level_1","totalSizeInBytes_1","frame","theFrame","_StackFrame","regex","test","parsedFrame","right","size","acceptedLeft","acceptedRight","_formatStackTrace","sourceFrame","level","method","sizeInBytes","baseSize","strToGMTString","strToUTCString","strCookie","strExpires","strEnabled","strIsCookieUseDisabled","strDisableCookiesUsage","strConfigCookieMgr","_supportsCookies","_allowUaSameSite","_parsedCookieValue","_doc","_cookieCache","_globalCookieConfig","_isMgrEnabled","cookieMgr","isEnabled","_isIgnoredCookie","cookieMgrCfg","ignoreCookies","safeGetCookieMgr","getCookieMgr","cookieCfg","createCookieMgr","_gblCookieMgr","inst","rootConfig","cookieMgrConfig","_createCookieMgrConfig","cookieDomain","cookiePath","cookieEnabled","_path","_domain","_enabled","enabled","areCookiesSupported","gblManager","maxAgeSec","_isBlockedCookie","blockedCookies","_extractParts","_isIE","expireMs","expiry","setTime","_formatDate","location_1","uaDisallowsSameSiteNone","setCookie","_setCookieValue","_formatCookieValue","getCookie","_getCookieValue","del","purge","delCookie","thePart","theDate","cookieValue","theCookie","UInt32Mask","MaxUInt32","_mwcSeeded","_mwcW","_mwcZ","_autoSeedMwc","_mwcSeed","seedValue","random","random32","signed","getCrypto","getMsCrypto","getRandomValues","Uint32Array","mwcRandom32","newId","number","chars","charAt","version","instanceName","_dataUid","_canAcceptData","createUniqueNamespace","includeVersion","createElmNodeData","accept","addDefault","theCache","_getCache","_createAccessor","kill","strOnPrefix","strAttachEvent","strAddEventHelper","strDetachEvent","strRemoveEventListener","strEvents","strVisibilityChangeEvt","strPageHide","strBeforeUnload","strPageHideNamespace","rRemoveEmptyNs","rRemoveTrailingEmptyNs","_guid","elmNodeData","eventNamespace","_normalizeNamespace","_getEvtNamespace","evtNamespace","theNamespace_1","parsedEvent","_getRegisteredEvents","evtName","aiEvts","registeredEvents","_doDetach","handlerRef","useCapture","_doUnregister","events","unRegFn","capture","mergeEvtNamespace","theNamespace","namespaces","eventOn","_doAttach","registeredEvent","guid","eventOff","evtName_1","found_1","_unregisterEvents","eventCache","evtType","regEvent","_addEventListeners","excludeEvents","added","addEventHandler","w","removeEventListeners","removeEventHandler","addPageHideEventListener","newNamespaces","pageUnloadAdded","_handlePageVisibility","visibilityState","generateW3CId","tmp","hexValues","oct","clockSequenceHi","INVALID_TRACE_ID","INVALID_SPAN_ID","_isValid","invalidValue","_formatValue","createTraceParent","traceId","spanId","flags","isValidTraceId","isValidSpanId","traceFlags","formatTraceParent","_formatFlags","createDomEvent","createEvent","initEvent","RequestHeaders","createValueMap","mapClass","requestContextHeader","requestContextTargetKey","requestContextAppIdFormat","requestIdHeader","traceParentHeader","traceStateHeader","sdkContextHeader","sdkContextHeaderAppIdRequest","requestContextHeaderLowerCase","_document","_htmlAnchorIdx","_htmlAnchorElement","urlParseUrl","anchorIdx","anchorCache","tempAnchor","urlParseHost","inclPort","fullHost","urlParseFullHost","_internalEndpoints","isInternalApplicationInsightsEndpoint","endpointUrl","CorrelationIdHelper","correlationIdPrefix","canIncludeCorrelationHeader","requestUrl","currentHost","disableCorrelationHeaders","correlationHeaderExcludePatterns","requestHost","enableCorsCorrelation","matchExists_1","includedDomains","correlationHeaderDomains","excludedDomains","correlationHeaderExcludedDomains","getCorrelationContext","responseHeader","correlationId","getCorrelationContextValue","keyValues","keyValue","dateTimeUtilsNow","perf","timing","navigationStart","dateTimeUtilsDuration","start","end","createDistributedTraceContextFromTrace","telemetryTrace","parentCtx","trace","getName","setName","getTraceId","traceID","setTraceId","getSpanId","parentID","setSpanId","getTraceFlags","setTraceFlags","newTraceFlags","RemoteDependencyData","absoluteUrl","commandName","success","resultCode","requestAPI","correlationContext","dependencyKind","dependencySource","dependencyTypeName","dependencyFields","AjaxHelperParseDependencyPath","parsedUrl","pathName","strExecutionContextKey","strParentContextKey","strChildrenContextKey","PerfEvent","payloadDetails","isAsync","theDetails_1","accessorDefined","childTime","childEvts","childEvt","exTime","payload","ParentContextKey","ChildrenContextKey","PerfManager","manager","fire","perfEvent","doPerfActiveKey","doPerf","mgrSource","getSource","perfMgr","perfEvt","currentActive","children","pluginStateData","_getPluginState","plugin","initializePlugins","processContext","extensions","pluginState","initPlugins","lastPlugin","proxy","thePlugin","getCfg","sortPlugins","plugins","extA","extB","bHasProcess","strTelemetryPluginChain","strHasRunFlags","strGetTelCtx","_chainId","_createInternalContext","telemetryChain","startAt","_nextProxy","_onComplete","_getNextProxyStart","createTelemetryProxyChain","context","_next","_moveNext","nextProxy","completeDetails","diagLog","getExtCfg","_getExtCfg","getConfig","_getConfig","extConfig","hasNext","getNext","setNext","nextPlugin","iterate","_iterateChain","cb","onComplete","_addOnComplete","that","_i","mergeDefault","theConfig","newConfig_1","cfgValue","createProcessTelemetryContext","internalContext","_processNext","env","_createNew","createProcessTelemetryUnloadContext","unloadState","unload","createProcessTelemetryUpdateContext","updateState","firstProxy","lastProxy_1","newProxy","createTelemetryPluginProxy","chainId","hasProcessTelemetry","hasSetNext","proxyChain","getPlugin","processTelemetry","_processTelemetry","itemCtx","_processChain","_getTelCtx","_callProcessTelemetry","sync","_unloadPlugin","unloadCtx","_callTeardown","hasRun","pluginCore","update","_updatePlugin","updateCtx","_callUpdate","_id","_setNext","processPluginFn","hasRunContext","nextId","hasNextRun","aiInstrumentHooks","cbNames","_arrLoop","fn","_doCallbacks","hooks","callDetails","cbArgs","hookCtx","hook","cbks","orgEx","hookErrorCb","_getOwner","checkPrototype","checkParentProto","owner","_createInstrumentHook","callbacks","aiHook","newFunc","_createFunctionHook","orgArgs","h","funcArgs","_replaceArg","_createArgs","f","rslt","theHook","rm","InstrumentFunc","InstrumentEvent","createUnloadHandlerContainer","handlers","_addHandler","_runHandlers","strGetPlugin","BaseTelemetryPlugin","_isinitialized","_rootCtx","_nextPlugin","_unloadHandlerContainer","_hooks","currentCtx","_setDefaults","pluginChain","_initDefaults","unloadDone","theUnloadCtx","theUnloadState","_unloadCallback","oldHooks","updateDone","theUpdateCtx","_doUpdate","_updateCallback","_addHook","setInitialized","isInitialized","_DYN_DISABLE_EXCEPTION_TR0","_DYN_AUTO_TRACK_PAGE_VISI1","_DYN_OVERRIDE_PAGE_VIEW_D2","_DYN_ENABLE_UNHANDLED_PRO3","_DYN_SAMPLING_PERCENTAGE","_DYN_IS_STORAGE_USE_DISAB4","_DYN_IS_BROWSER_LINK_TRAC5","_DYN_ENABLE_AUTO_ROUTE_TR6","_DYN_NAME_PREFIX","_DYN_DISABLE_FLUSH_ON_BEF7","_DYN_CORE","_DYN_DATA_TYPE","_DYN_ENVELOPE_TYPE","_DYN_TRACK","_DYN_TRACK_PAGE_VIEW","_DYN_TRACK_PREVIOUS_PAGE_9","_DYN_SEND_PAGE_VIEW_INTER10","_DYN_SEND_PAGE_VIEW_PERFO11","_DYN_POPULATE_PAGE_VIEW_P12","_DYN_HREF","_DYN_SEND_EXCEPTION_INTER13","_DYN_EXCEPTION","_DYN_ERROR","_DYN__ONERROR","_DYN_ERROR_SRC","_DYN_LINE_NUMBER","_DYN_COLUMN_NUMBER","_DYN__CREATE_AUTO_EXCEPTI14","_DYN_ADD_TELEMETRY_INITIA15","_DYN_IS_PERFORMANCE_TIMIN16","_DYN_GET_PERFORMANCE_TIMI17","_DYN_NAVIGATION_START","_DYN_SHOULD_COLLECT_DURAT18","_DYN_IS_PERFORMANCE_TIMIN19","_DYN_RESPONSE_START","_DYN_LOAD_EVENT_END","_DYN_RESPONSE_END","_DYN_CONNECT_END","_DYN_PAGE_VISIT_START_TIM20","_isWebWorker","PageViewManager","appInsights","overridePageViewDuration","pageViewPerformanceManager","_logger","queueTimer","itemQueue","pageViewPerformanceSent","_flushChannels","flush","_startTimer","allItems","doFlush","_addQueue","pageView","uri","isWebWorker","WorkerGlobalScope","customDuration","pageViewSent","processed","pageViewPerformance","teardown","botAgentNames","_isPerformanceTimingSupported","_isPerformanceTimingDataReady","domainLookupStart","domLoading","_getPerformanceTiming","_shouldCollectDuration","durations","isGoogleBot","PageViewPerformanceManager","navigationTiming","_getPerformanceNavigationTiming","_isPerformanceNavigationTimingSupported","getEntriesByType","total","network","dom","startTime","requestStart","responseEnd","PageVisitTimeManager","pageVisitTimeTrackingHandler","prevPageVisitDataKeyName","currentPageName","currentPageUrl","prevPageVisitTimeData","restartPageVisitTimer","pageName","pageUrl","prevPageVisitData","stopPageVisitTimer","pageVisitEndTime","pageVisitDataJsonStr","pageVisitTime","utlRemoveSessionStorage","startPageVisitTimer","currPageVisitData","PageVisitData","currPageVisitDataStr","Timing","_events","stop","_dispatchEvent","evnt","dispatchEvent","MinMilliSeconds","_configMilliseconds","_getDefaultConfig","sessionRenewalMs","sessionExpirationMs","disableFlushOnUnload","_updateStorageUsage","utlDisableStorage","utlEnableStorage","AnalyticsPlugin","_super","_eventTracking","_pageTracking","_pageViewManager","_pageViewPerformanceManager","_pageVisitTimeManager","_preInitTelemetryInitializers","_isBrowserLinkTrackingEnabled","_browserLinkInitializerAdded","_enableAutoRouteTracking","_historyListenerAdded","_disableExceptionTracking","_autoExceptionInstrumented","_enableUnhandledPromiseRejectionTracking","_autoUnhandledPromiseInstrumented","_prevUri","_currUri","_evtNamespace","priority","autoRoutePVDelay","_base","processNext","trackEvent","EventTelemetry","startTrackEvent","stopTrackEvent","trackTrace","trackMetric","metric","inPv","refUri","trackPageViewPerformance","inPvp","startTrackPage","stopTrackPage","measurement","theError","trackException","_window","isCrossOriginError","_sendCORSException","errorString","telemetryInitializer","initialize","initializer","_populateDefaults","defaults","trackPageVisitTime","average","sampleCount","PageName","PageUrl","_updateBrowserLinkTracking","_addDefaultTelemetryInitializers","browserLinkPaths_1","envelope","remoteData","_updateExceptionTracking","locn","autoExceptionInstrumented","rsp","_addUnhandledPromiseRejectionTracking","_location","_getReason","autoUnhandledPromiseInstrumented","_updateLocationChange","win","_history","getHistory","pushState","strUndefined","_addHistoryListener","namePrefix","_popstateHandler","_locationChangeHandler","distributedTraceCtx","_getDistributedTraceCtx","getTraceCtx","traceLocationName","hash","_doTeardown","__extends","Version","getDefaultConfig","_aiNameFunc","baseName","aiName","_aiApplication","_aiDevice","_aiLocation","_aiOperation","_aiSession","_aiUser","_aiCloud","_aiInternal","ContextTagKeys","createClassFromInterface","class_1","_this_1","applicationVersion","applicationBuild","applicationTypeId","applicationId","applicationLayer","deviceId","deviceIp","deviceLanguage","deviceLocale","deviceModel","deviceFriendlyName","deviceNetwork","deviceNetworkName","deviceOEMName","deviceOS","deviceOSVersion","deviceRoleInstance","deviceRoleName","deviceScreenResolution","deviceType","deviceMachineName","deviceVMName","deviceBrowser","deviceBrowserVersion","locationIp","locationCountry","locationProvince","locationCity","operationId","operationName","operationParentId","operationRootId","operationSyntheticSource","operationCorrelationVector","sessionId","sessionIsFirst","sessionIsNew","userAccountAcquisitionDate","userAccountId","userId","userStoreRegion","userAuthUserId","userAnonymousUserAcquisitionDate","userAuthenticatedUserAcquisitionDate","cloudName","cloudRole","cloudRoleVer","cloudRoleInstance","cloudEnvironment","cloudLocation","cloudDeploymentUnit","internalNodeName","internalSdkVersion","internalAgentVersion","internalSnippet","internalSdkSrc","Extensions","CtxTagKeys","Envelope","sampleRate","Data","STR_DURATION","_DYN_TAGS","_DYN_DEVICE_TYPE","_DYN_DATA","_DYN_ON_LINE","_DYN_IS_ONLINE","_DYN_ENQUEUE","_DYN_COUNT","_DYN_EVENTS_LIMIT_IN_MEM","_DYN_EMIT_LINE_DELIMITED_0","_DYN_CLEAR","_DYN_BATCH_PAYLOADS","_DYN_MARK_AS_SENT","_DYN_CLEAR_SENT","_DYN_BUFFER_OVERRIDE","_DYN__BUFFER__KEY","_DYN__SENT__BUFFER__KEY","_DYN__MAX__BUFFER__SIZE","_DYN_MAX_BATCH_SIZE_IN_BY1","_DYN_TRIGGER_SEND","_DYN_ONUNLOAD_DISABLE_BEA2","_DYN_IS_BEACON_API_DISABL3","_DYN__SENDER","_DYN__SENDER_CONFIG","_DYN_ENABLE_SESSION_STORA4","_DYN__BUFFER","_DYN_ENDPOINT_URL","_DYN_CUSTOM_HEADERS","_DYN_DISABLE_XHR","_DYN_ONUNLOAD_DISABLE_FET5","_DYN_DISABLE_TELEMETRY","_DYN_BASE_TYPE","_DYN_SAMPLE_RATE","_DYN_CONVERT_UNDEFINED","_DYN__ON_ERROR","_DYN__ON_PARTIAL_SUCCESS","_DYN__ON_SUCCESS","_DYN_ITEMS_ACCEPTED","_DYN_IS_RETRY_DISABLED","_DYN_SET_REQUEST_HEADER","_DYN_MAX_BATCH_INTERVAL","_DYN_EVENTS_SEND_REQUEST","_DYN_DISABLE_INSTRUMENTAT7","_DYN_GET_SAMPLING_SCORE","strBaseType","strBaseData","strProperties","strTrue","_setValueIf","_extractPropsAndMeasurements","_convertPropsUndefinedToCustomDefinedValue","customUndefinedValue","_createEnvelope","iKeyNoDashes","_extractPartAExtensions","envTags","itmExt","itmTags","extUser","user","authId","localId","extApp","app","sesId","extDevice","device","deviceClass","ip","web","browserLang","browserVer","browser","envData","envBaseData","envProps","screenRes","userConsent","extOs","os","extTrace","tgs","tg","theTags","EnvelopeCreator","EnvelopeCreatorInit","EventEnvelopeCreator","customMeasurements","baseTypeSource","eventData","_disableEvents","BaseSendBuffer","_buffer","_bufferFullMessageSent","_get","_set","buffer","getItems","ArraySendBuffer","SessionStorageSendBuffer","bufferItems","_getBuffer","notDeliveredItems","_removePayloadsFromBuffer","payloads","remaining","prefixedKey","bufferJson","buffer_1","_setBuffer","sentElements","BUFFER_KEY","SENT_BUFFER_KEY","MAX_BUFFER_SIZE","Serializer","_serializeObject","circularReferenceCheck","_serializeStringMap","_serializeArray","contract","isRequired","isHidden","isPresent","isObj","sources","expectedType","parseFloat","serialize","HashCodeScoreGenerator","getHashCodeScore","getHashCode","INT_MAX_VALUE","SamplingScoreGenerator","hashCodeGenerator","Sample","samplingRate","samplingScoreGenerator","isSampledIn","samplingPercentage","_getResponseText","xhr","responseText","_getDefaultAppInsightsChannelConfig","retryCodes","EnvelopeTypeCreator","TraceEnvelopeCreator","PageViewEnvelopeCreator","currentContextId","bd","isLoggedIn","pageViewData","PageViewPerformanceEnvelopeCreator","ExceptionEnvelopeCreator","exData","MetricEnvelopeCreator","baseMetricData","DependencyEnvelopeCreator","remoteDepData","responseCode","Sender","_senderConfig","_consecutiveErrors","_retryAt","_paused","_timeoutHandle","_serializer","_stamp_specific_redirects","_headers","_fallbackSender","_syncUnloadSender","_offlineListener","_retryCodes","_syncFetchPayload","_checkResponsStatus","status","responseUrl","countOfItemsInPayload","_appId","_parseResponse","appId","_checkAndUpdateEndPointUrl","_isRetriable","_resendPayload","isOnline","_doUnloadSend","_beaconSender","_doBeaconSend","batch","plainTextBatch","Blob","queued","_onSuccess","droppedPayload","thePayload","_xhrSender","XMLHttpRequest","endPointUrl","headerName","onreadystatechange","_xhrReadyStateChange","onerror","_formatErrorMessageXhr","send","_fetchKeepAliveSender","payloadSize","_doFetchSender","_fetchSender","requestHeaders","Headers","batchLength","ignoreResponse","responseHandled","keepalive","Request","fetch","ok","statusText","itemsReceived","itemsAccepted","errors","linearFactor","payload_1","_setRetryTime","delayInSeconds","backOffSlot","pow","backOffDelay","retryAfterTimeSpan","_setupTimer","retryInterval","timerValue","_clearScheduledTimer","statusCode","_xdrSender","xdr","onload","_xdrOnLoad","_formatErrorMessageXdr","hostingProtocol","lastIndexOf","_sample","pause","resume","callBack","sendReason","onunloadFlush","addHeader","createOfflineListener","parentEvtNamespace","_navigator","_isListening","_onlineStatus","_enableEvents","ononline","_setOnline","_setOffline","_isOnline","isListening","_unload","useSessionStorage","_validateInstrumentationKey","customHeaders","customHeader","senderConfig","sendPostFunc","diagLogger","_isSampledIn","convertUndefined","defaultEnvelopeIkey","aiEnvelope_1","constructEnvelope","doNotSendItem_1","readyState","responseURL","forcedSender","_notifySendRequest","sendRequest","_getNotifyMgr","_notificationManager","ieVer","failed","retry","errors_1","reverse","extracted","orig","parseConnectionString","connectionString","arrReduce","initialValue","fields","kv","kvParts","endpointsuffix","Verbose","Information","Warning","Critical","_addChannelQueue","channelQueue","queueItem","chain","TelemetryInitializerPlugin","_initializers","addTelemetryInitializer","theInitializer","doNotSendItem","telemetryInitializersCount","strValidationError","strNotificationManager","strSdkUnloadingError","defaultInitConfig","_createPerfManager","notificationMgr","_isPluginPresent","exists","BaseCore","_config","_isInitialized","_eventQueue","_perfManager","_cfgPerfManager","_cookieManager","_pluginChain","_configExtensions","_coreExtensions","_channelControl","_channelConfig","_channelQueue","_isUnloading","_telemetryInitializerPlugin","_internalLogsEventName","_unloadHandlers","_traceCtx","_internalLogPoller","_forceStopInternalLogPoller","_startInternalLogTimer","alwaysStart","interval","diagnosticLogInterval","setInterval","clearInterval","_flushInternalLogs","_createTelCtx","theCtx","_getPluginChain","_initPluginChain","theExtensions","_validateExtensions","channelPriority","allExtensions","coreExtensions","extPriorities","extPriority","all","createChannelQueues","channels","extensionQueue_1","_setQueue","createChannelControllerPlugin","_processChannelQueue","theChannels","processFn","waiting","_runChainOnComplete","chainCtx","theUpdateState","getChannel","_getChannel","pluginIdentifier","cbTimeout","doneIterating","cbTimer","doCallback","handled_1","_updateHook","_getPlugin","theExt","removeCb","pluginsToRemove","_removePlugins","removed","thePlugins","removeComplete","newConfigExtensions","newChannelConfig","newQueue","channel","track","_logOrThrowError","notificationManager","_initDebugListener","getDebugListener","_initPerfManager","enablePerfMgr","_initExtConfig","NotificationManager","cfgExtensions","__spreadArray","releaseQueue","getTransmissionControls","controls","_createDummyNotificationManager","setCookieMgr","createPerfMgr","setPerfMgr","eventCnt","eventQueue","pollInternalLogs","unloadComplete","flushComplete","processUnloadCtx","_doUnload","addPlugin","replaceExisting","addCb","existingPlugin","_addPlugin","removedPlugins_1","createNew","createDistributedTraceContext","setTraceCtx","traceCtx","_runListeners","listeners","perfEvtsSendAll","AppInsightsCore","_notifyInvalidEvent","_validateTelemetryItem","STR_PROPERTIES","_DYN_REQUEST_URL","_DYN_INST","_DYN_SPAN_ID","_DYN_CONTEXT","_DYN_ABORTED","_DYN_TRACE_ID0","_DYN_SPAN_ID1","_DYN_INCLUDE_CORRELATION_2","_DYN_CAN_INCLUDE_CORRELAT3","_DYN_GET_ABSOLUTE_URL","_DYN_HEADERS","_DYN_REQUEST_HEADERS","_DYN_APP_ID","_DYN_TRACK_DEPENDENCY_DAT4","_DYN_DISTRIBUTED_TRACING_5","_DYN_START_TIME","_DYN_STATUS","_DYN_STATUS_TEXT","_DYN_HEADER_MAP","_DYN_OPEN_DONE","_DYN_SEND_DONE","_DYN_REQUEST_SENT_TIME","_DYN_ABORT_DONE","_DYN_GET_TRACE_ID","_DYN_GET_TRACE_FLAGS","_DYN_ERROR_STATUS_TEXT","_DYN_STATE_CHANGE_ATTACHE14","_DYN_RESPONSE_FINISHED_TI15","_DYN__CREATE_TRACK_ITEM","_DYN_RESPONSE","_DYN_GET_ALL_RESPONSE_HEA16","_DYN_GET_PART_APROPS","_DYN_GET_CORRELATION_CONT17","_DYN_PERF_MARK","_DYN_PERF_TIMING","_DYN_AJAX_TOTAL_DURATION","_DYN_EVENT_TRACE_CTX","_calcPerfDuration","resourceEntry","_setPerfDuration","_setPerfValue","strPerf","XHRMonitoringState","setRequestHeaderDone","ajaxRecord","completed","requestHeadersSize","responseReceivingDuration","callbackDuration","requestSize","responseStartedTime","callbackFinishedTime","endTime","xhrMonitoringState","clientFailure","getAbsoluteUrl","urlGetAbsoluteUrl","getPathName","urlGetCompleteUrl","ajaxType","enableRequestHeaderTracking","getResponse","ajaxTotalDuration","requestSentTime","responseFinishedTime","dependency","_populatePerfData","ajaxData","propsSet","strStart","strEnd","strDomainLookup","strConnect","strRedirect","strRequest","strResponse","strStartTime","strDomainLookupStart","strDomainLookupEnd","strConnectStart","strConnectEnd","strRequestStart","strRequestEnd","strResponseStart","strResponseEnd","strRedirectStart","strRedirectEnd","strTransferSize","strEncodedBodySize","strDecodedBodySize","strServerTiming","serverTiming","server_1","perfAttempts","headerMap","responseHeaders","responseType","partA","traceExt","AJAX_MONITOR_PREFIX","strDiagLog","AJAX_DATA_CONTAINER","STR_FETCH","ERROR_HEADER","ERROR_PREFIX","ERROR_POSTFIX","ERROR_NOT_SENT","CORRELATION_HEADER_ERROR","CUSTOM_REQUEST_CONTEXT_ERROR","FAILED_TO_CALCULATE_DURATION_ERROR","_markCount","_getAjaxData","ajaxDataId","_isHeaderSet","xh","_getFailedAjaxDiagnosticsMessage","_throwInternalCritical","ajaxMonitorInstance","_throwInternalWarning","_createErrorCallbackFunc","internalMessage","ajaxDiagnosticsMessage","_ajaxDataId","_indexOf","theHandler","_processDependencyContainer","BLOB_CORE","DfltAjaxCorrelationHeaderExDomains","_internalExcludeEndpoints","maxAjaxCallsPerView","disableAjaxTracking","disableFetchTracking","excludeRequestFromAutoTrackingPatterns","distributedTracingMode","enableResponseHeaderTracking","enableAjaxErrorStatusText","enableAjaxPerfTracking","maxAjaxPerfLookupAttempts","ajaxPerfLookupDelay","ignoreHeaders","addRequestContext","addIntEndpoints","_getEmptyConfig","emptyConfig","AjaxMonitor","_fetchInitialized","_xhrInitialized","_currentWindowHost","_enableRequestHeaderTracking","_enableAjaxErrorStatusText","_trackAjaxAttempts","_context","_isUsingW3CHeaders","_isUsingAIHeaders","_markPrefix","_enableAjaxPerfTracking","_maxAjaxCallsPerView","_enableResponseHeaderTracking","_disabledUrls","_disableAjaxTracking","_disableFetchTracking","_excludeRequestFromAutoTrackingPatterns","_addRequestContext","_dependencyHandlerId","_dependencyListeners","_dependencyInitializers","getEmptyConfig","_canIncludeHeaders","rlt","_hookProto","InstrumentProto","_isDisabledRequest","isDisabled","theUrl","theRegex","idx2","_isMonitoredXhrInstance","excludeAjaxDataValidation","ajaxValidation","initialized","_getAjaxCorrelationContext","responseHeadersString","getResponseHeader","_createMarkId","performance_1","mark","markId","getEntriesByName","_findPerfResourceEntry","initiatorType","trackCallback","reportError","perfMark","performance","maxAttempts","retryDelay","attempt","locateResourceTiming","perfTiming","getEntries","entryType","clearMarks","_getFailedFetchDiagnosticsMessage","_reportFetchMetrics","_reportFetchError","failedProps","errorProps","fetchDiagnosticsMessage","sysProperties","_reportDependencyInternal","_getFetchCorrelationContext","initializers","aborted","instrumentationKey","_instrumentXhr","_supportsAjaxMonitoring","strPrototype","abort","xhrData","theOpen","req","_openHandler","spanID","xhrRequestData","ajaxDataCntr","_attachToOnReadyStateChange","_onAjaxComplete","_reportXhrError","ajaxResponse","responseHeaderMap_2","parts","shift","exceptionText","hkErr","v","_addSharedXhrHeaders","_instrumentFetch","_supportsFetch","_global","isPolyfill","polyfill","fetchData","_createFetchRecord","newInit","fetchData_1","responseHeaderMap_1","_populateContext","propExt","trackDependencyData","currentWindowHost","_processDependencyListeners","traceParent","addDependencyListener","dependencyListener","addDependencyInitializer","dependencyInitializer","Application","Device","_DYN_SESSION_MANAGER","_DYN_IS_USER_COOKIE_SET","_DYN_IS_NEW_USER","_DYN_GET_TRACE_CTX","_DYN_TELEMETRY_TRACE","_DYN_APPLY_SESSION_CONTEX0","_DYN_APPLY_APPLICATION_CO1","_DYN_APPLY_DEVICE_CONTEXT","_DYN_APPLY_OPERATION_CONT2","_DYN_APPLY_USER_CONTEXT","_DYN_APPLY_OPERATING_SYST3","_DYN_APPLY_LOCATION_CONTE4","_DYN_APPLY_INTERNAL_CONTE5","_DYN_ACCOUNT_ID","_DYN_SDK_EXTENSION","_DYN_GET_SESSION_ID","_DYN_SESSION_COOKIE_POSTF6","_DYN_USER_COOKIE_POSTFIX","_DYN_ID_LENGTH","_DYN_GET_NEW_ID","_DYN_AUTOMATIC_SESSION","_DYN_AUTHENTICATED_ID","_DYN_SESSION_EXPIRATION_M7","_DYN_SESSION_RENEWAL_MS","_DYN_ACQUISITION_DATE","_DYN_RENEWAL_DATE","_DYN_COOKIE_DOMAIN","_DYN_JOIN","_DYN_COOKIE_SEPARATOR","_DYN_AUTH_USER_COOKIE_NAM8","Internal","sdkVersion","Location","Session","_SessionManager","_storageNamePrefix","_cookieUpdatedTimestamp","acquisitionSpan","renewalSpan","sessionCookiePostfix","_initializeAutomaticSessionWithData","session","sessionData","sessionReset","tokens","acqMs","renewalMs","_setCookie","nowMs","acq","renewalPeriodMs","acqTimeLeftMs","cookie","isExpired","_initializeAutomaticSession","storageValue","utlGetLocalStorage","timeSinceAcqMs","timeSinceRenewalMs","_renew","getNewId","automaticSession","cookieUpdateInterval","backup","_setStorage","renewal","utlSetLocalStorage","TelemetryTrace","parentId","_validateUserInput","User","isNewUser","isUserCookieSet","userCookiePostfix","userCookieName","_generateNewId","_generateNewCookie","acqStr","accountAcquisitionDate","_setUserCookie","utlRemoveStorage","authCookie","authCookieString","decodeURI","setAuthenticatedUserContext","authenticatedUserId","accountId","storeInCookie","clearAuthenticatedUserContext","cookieSeparator","authUserCookieName","strExt","strTags","_removeEmpty","TelemetryContext","defaultConfig","previousTraceCtx","application","internal","autoSession","agentVersion","snippetVer","sdkSrc","applyWebContext","cleanUp","dist_esm_PropertiesPlugin","PropertiesPlugin","_extensionConfig","_distributedTraceCtx","_previousTraceCtx","breezeChannel","_extConfig","theContext","userCtx","_processTelemetryInternal","nullValue","isBrowserLinkTrackingEnabled","_internalSdkSrc","_AUTHENTICATED_USER_CONTEXT","_TRACK","STR_SNIPPET","STR_FLUSH","STR_POLL_INTERNAL_LOGS","STR_GET_PLUGIN","STR_EVT_NAMESPACE","STR_TRACK_EVENT","STR_TRACK_TRACE","STR_TRACK_METRIC","STR_TRACK_PAGE_VIEW","STR_TRACK_EXCEPTION","STR_TRACK_DEPENDENCY_DATA","STR_SET_AUTHENTICATED_USER_CONTEXT","STR_CLEAR_AUTHENTICATED_USER_CONTEXT","_DYN_DIAGNOSTIC_LOG_INTER4","_DYN_QUEUE","_DYN_CONNECTION_STRING","_DYN_APP_INSIGHTS","_DYN_DISABLE_IKEY_DEPRECA18","_DYN_GET_TRANSMISSION_CON19","_DYN_ONUNLOAD_FLUSH","_DYN_ADD_HOUSEKEEPING_BEF20","_ignoreUpdateSnippetProperties","Initialization","snippet","_sender","_snippetVersion","_houseKeepingNamespace","_core","sv","cs","ingest","ingestionendpoint","instrumentationkey","DependenciesPlugin","isErrMessageDisabled","_getSKUDefaults","legacyMode","_updateSnippetProperties","emptyQueue","proxyAssign","chkSet","_loop_1","length_1","appInsightsInstance","performHousekeeping","loadedPlugin","propertiesPlugin","_sessionManager","excludePageUnloadEvents","disablePageUnloadEvents","addPageUnloadEventListener","addEventListeners","isReactNative","product","getSender","removePageUnloadEventListener","removePageHideEventListener","_getCurrentDependencies","cdns","scrpt","currentScript","AppInsightsMonitoringService","enableAutoRouteTracking","loadAppInsights","logPageView","trackPageView","logEvent","logMetric","logException","logTrace","oidcSecurityService","getAuthToken","getToken","getBlockItSessionData","ocpApimSubscriptionKey","appointmentDomainAPI","BypassCiam","userProfile","returnUrl","getBlockItData","blockItToken","booking_form_type","patient","given_name_1","given_name_2","family_name","sex","dob","email","address_1","address_2","postal_code","CernerModalService","cernerModalClass","modalOpened","modalClosed","publishVideoClickedEvent","addScriptTag","adobeDataLayer","view","division","doctor_name","doctor_NPI","site","visitor","loginStatus","subMarket","schedule_filter_details","schedule_location","schedule_book_online","schedule_keyword","schedule_results_count","doctor_name_list","doctor_npi_list","doctor_starRating_list","doctor_ratingCount_list","doctor_commentsCount_list","visitor_loginStatus","event_doctor_hasStarRating","event_doctor_starRating","event_doctor_starRatingCount","event_doctor_hasComments","event_doctor_commentsCount","scriptLoaded","adobeScriptSrc","bodyElement","scriptTag","innerHTML","defaultSearchRadiusWhenMedGroupFilterApplied","locationRequired","defaultTenantCode","defaultDesktopSearchTerm","defaultTabletSearchTerm","defaultMobileSearchTerm","defaultShowProviderCardLogo","defaultShowNewSchedulingApp","defaultCaptchaEnabled","defaultShowSearchRadiusFilter","defaultShowVideoVisitsBanner","defaultShowGuidedFlowButton","defaultInMyOwnWordsTitle","defaultOnlineSchedulingType","defaultproviderSchedulingFeature","defaultDocAsapProviderLookupUrl","defaultShowProviderVideo","defaultShowMedGroupBanner","defaultUseNewProviderDetailsRoute","defaultShowMyProviders","defaultShowMedGroupLogo","defaultDivisions","defaultShowProviderPrefix","defaultUseNewRatingsEndpoint","defaultShowProviderReviews","defaultUseLiveMedGroups","defaultLiveMedGroups","defaultShowContent","defaultOnlineSchedulingContent","defaultMedicalGroupContent","defaultSpecialtyGroupContent","defaultCovidSupportUseV5","defaultMedicalGroupHoverText","defaultMedicalGroupToolTipText","defaultHospitalAffiliationToolTipText","defaultHospitalAffiliationHoverText","defaultDisclaimerCopy","defaultVideoVisitsFilter","defaultAcceptingNewPatientsFilter","defaultAvailabilityFilter","defaultSpecialtyFilter","defaultMedicalGroupFilter","defaultMedicalGroupMoreFilter","defaultHospitalAffiliationFilter","defaultGenderFilter","defaultInsuranceFilter","defaultInsuranceAcceptedFilter","defaultLanguageFilter","defaultSearchRadiusFilter","defaultEmergencyCopy","defaultEmergencyNumber","defaultShowEmergencyCopy","defaultLegalCopy","defaultLegalCopyTooltip","defaultLegalCopyTooltipInfo","defaultShowLegalCopy","defaultEmergencyCare","defaultRegionalHelplineNumbers","defaultHelplineHeading","defaultHelplineHeadingInvalid","defaultLandingPageHeader","defaultHelplineNumbers","defaultLocationSearchCookieName","defaultShowSuggestAnEdit","defaultSuggestAnEditLink","defaultMyProvidersLink","defaultLogLevel","defaultShowQuickLinks","defaultEnableAutoSuggestionProviders","defaultAemUrlPathName","defaultShowButtonsbyRows","defaultShowSearchButton","defaultSearchButton","defaultIsFuzzyMatch","getToKnowDisclaimerText","defaultQuickLinksCategories","defaultERLinkCategories","defaultShowHospitalAffiliations","defaultShowSpecialtySuggestions","defaultShowProviderVideoLink","defaultUseLegacyAPI","defaultInjectCanonicals","defaultIncludeProviderRoleCheckBox","defaultProviderRolesForUrgentCare","defaultAutoCheckBoxSelectionSpecialities","defaultMultipleMedicalGroupSelection","defaultImprovedUX","defaultOnlineSchedulingAllVisit","requiredSearchKeys","warningSearchKeys","defaultMedGroupLegendShow","defaultMedGroupLegendHeader","defaultAutoSuggLocationSearchParams","deafaultTitletags","defaultShowPatientAgeRestrictions","defaultAutoSuggestionLoadingMessage","defaultIsFiltersLeftSidePanelRequired","defaultPrintablePdfFooter","defaultPrintablePdfHeaderUrl","defaultShowPdfPrint","runtimeConfiguration","configuration","initLocationRequired","initDefaultSearchDistance","initDefaultSearchDistanceWhenMedGroupFilterApplied","initSorting","initMedicalGroupFilter","initHospitalAffiliationFilter","initIsFilterLeftSidePanelRequired","linkCanonicals","configType","interfaces","filters","defaultDistance","defaultDistanceMedGroupFilterApplied","sorting","sortingData","setDefaultSearchDistance","setDefaultSearchDistanceWhenMedGroupFilterApplied","setLocationRequiredDefaultValue","tooltipText","hoverText","hospitalAffiliation","searchDistanceFromConfigFile","closestKnownDistance","pop","getIsFilterLeftSidePanelRequiredDefaultValue","setIsFilterLeftSidePanelRequiredDefaultValue","tenant","showProviderVideo","divisions","medgroupDictionary","mG","getActiveMedgroups","onlineScheduling","getDocAsapProviderLookupUrl","docAsapProviderLookupUrl","showProviderCardLogo","providerCardLogo","captcha","guidedFlowButton","showVideoVisitsBanner","videoVisitsBanner","placeholders","desktop","tablet","mobile","dynamicSEOContent","onlineSchedulingContent","specialtyGroupContent","covidSupport","useV5","flat","onlineSchedulingAllVisit","videoVisits","acceptingNewPatients","insurancesAccepted","emergencyCare","linkCategories","invalidSearchHelplineHeading","numbers","landingPage","getLocationSearchCookieName","locationSearchCookieName","suggestAnEdit","myProviders","getLogLevel","logging","logLevel","quickLinks","showButtonsbyRows","categories","hospitalAffiliations","specialtySuggestions","includeVideoLinkOnSearchResults","providerRolesForUrgentCare","aemFadUrlPathName","redirectInAEM","redirectToLocation","redirectToFADinEPIC","redirectToFADinCerner","redirectToFALinCerner","redirectToFALinEPIC","medGroupLegend","show","getAutoSuggLocationSearchParams","autoSuggLocationSearchParams","autoCheckBoxSelectionSpecialities","showTitleTag","titleTag","useNewRatingsEndpoint","providerRatings","printablePdf","headerImagePath","searchButton","iconButton","isFuzzyMatch","getToKnowDisclaimer","acceptStarRatingQuery","extractKeys","jsonObj","keyList","findMissingKeys","searchKeys","fadConfigsJson","missingKeys","CookieService","getRawLocationCookieFromBrowser","locationCookie","unparsedCookie","EventPublisherService","CustomEvent","detail","FadLinkService","CsFadElementName","FadSaasWebElementName","isFadSaasAngularElement","trimTrailingForwardSlash","trimForwardSlashes","FilterService","displayDialog","processing","asObservable","display","LocationService","LogLevel","All","Debug","Info","Warn","Fatal","Off","LogService","writeToLog","optionalParams","configLogLevel","info","warn","fatal","ProviderRatingService","npis","includeComments","pressGaneyRatingsUrl","apiOptions","newApiBaseUrl","ProviderService","Mobile","eventManager","resizeSubject","startWith","windowWidth","setViewportFlags","viewPortSize","onViewPortChanged","TitleTagHandlerService","titleService","metaService","isTagEnabled","canonicals","enable","setSearchToggleFilers","setSearchFilterTitle","setTitle","setPageMeta","formatFilters","cityStateZip","primarySpec","setProviderDetailsMeta","setMetaProperty","providerTitle","discription","setMetaName","removeTag","metaName","metaContent","addTag","updateTag","metaProperty","head","strUrl","splitLocation","titleStr","DOCUMENT","setSanitizedKey","setNonString","setKeyValue","setPipeDelimitedArray","setNonNull","SchedulingComponent","getBaseLocation","root","getRootElement","csFadEl","angularElement","FadAngularElements","equalsIgnoreDash","other","ignoreCase","thisString","stripDash","otherString","replaceWith","searchWith","searchExp","word","stripPeriod","sanitizeSpaces","stripParentheses","trimForwardSlash","replaceAmpersandwithHyphen","FadUrlBuilderStrategy","segments","addSegments","newSegments","UrlSegment","addCityAndStateSegment","addSpecialtySegment","selectedSpeciality","urlSegment","urlBuilderParams","createUrlSegments","UrlSegmentGroup","hasLocationData","MedGroupUrlBuilderStrategy","shouldBuild","LocationUrlBuilderStrategy","LocationAndTermUrlBuilderStrategy","SearchTermUrlBuilderStrategy","SpecialtyUrlBuilderStrategy","super","speciality","toLocaleLowerCase","FadUrlBuilder","builders","defaultBuilder","builder","parentContainerSelector","contentLineHeightSelector","getBoundingClientRect","inFadLiteMode","fadLiteSetting","enableFadLite","hasAttribute","sessionConstant","merge","observables","concurrent","POSITIVE_INFINITY","scheduler","last","isScheduler","mergeAll","fromArray","schedule","taskFn","delay","scheduleBeforeRender","requestAnimationFrame","frameMs","cancelAnimationFrame","_matches","findMatchingIndex","node","defaultIndex","matchingIndex","isElement","nodeType","Node","ELEMENT_NODE","selector","matchesSelector","elProto","Element","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","ComponentNgElementStrategyFactory","componentFactory","ComponentFactoryResolver","resolveComponentFactory","ComponentNgElementStrategy","eventEmitters","emitters","componentRef","viewChangeDetectorRef","inputChanges","hasInputChanges","implementsOnChanges","scheduledChangeDetectionFn","scheduledDestroyFn","initialInputValues","unchangedInputs","propName","ngZone","NgZone","elementZone","Zone","current","connect","runInZone","initializeComponent","disconnect","getInputValue","instance","setInputValue","strictEquals","value1","value2","recordInputChange","delete","scheduleDetectChanges","childInjector","Injector","projectableNodes","extractProjectableNodes","nodes","childNodes","wildcardIndex","ii","ngContentIndex","initializeInputs","initializeOutputs","ApplicationRef","attachView","hostView","clear","templateName","callNgOnChanges","markViewForCheck","pendingChange","previousValue","SimpleChange","changeDetectorRef","NgElement","HTMLElement","ngElementEventsSubscription","invalidTimingValue","exp","ɵRuntimeError","ngDevMode","optimizeGroupPlayer","players","NoopAnimationPlayer","ɵAnimationGroupPlayer","normalizeKeyframes$1","normalizer","keyframes","preStyles","postStyles","normalizedKeyframes","previousOffset","previousKeyframe","kf","offset","isSameOffset","normalizedKeyframe","normalizedProp","normalizedValue","normalizePropertyName","ɵPRE_STYLE","AUTO_STYLE","normalizeStyleValue","animationFailed","listenOnPlayer","onStart","copyAnimationEvent","onDone","onDestroy","phaseName","makeAnimationEvent","triggerName","fromState","toState","totalTime","_data","getOrSetDefaultValue","parseTimelineCommand","command","separatorPos","getParentElement","_CACHED_BODY","_IS_WEBKIT","containsElement","elm1","elm2","invokeQuery","multi","elem","NoopAnimationDriver","validateStyleProperty","getBodyNode","containsVendorPrefix","matchesElement","_element","_selector","computeStyle","easing","previousPlayers","scrubberAccessRequested","ɵprov","AnimationDriver","NOOP","AnimationStyleNormalizer","ONE_SECOND","ENTER_CLASSNAME","LEAVE_CLASSNAME","NG_TRIGGER_CLASSNAME","NG_TRIGGER_SELECTOR","NG_ANIMATING_CLASSNAME","NG_ANIMATING_SELECTOR","resolveTimingValue","_convertTimeValueToMS","unit","resolveTiming","timings","allowNegativeValues","parseTimeExpression","delayMatch","easingVal","containsErrors","startIndex","negativeStepValue","negativeDelayValue","setStyles","formerStyles","camelProp","dashCaseToCamelCase","eraseStyles","_","normalizeAnimationEntry","steps","sequence","PARAM_REGEX","extractStyleParams","lastIndex","interpolateParams","original","varName","localVal","invalidParamValue","DASH_CASE_REGEXP","visitDslNode","AnimationMetadataType","Trigger","visitTrigger","visitState","Transition","visitTransition","Sequence","visitSequence","Group","visitGroup","Animate","visitAnimate","Keyframes","visitKeyframes","Style","visitStyle","Reference","visitReference","AnimateChild","visitAnimateChild","AnimateRef","visitAnimateRef","Query","visitQuery","Stagger","visitStagger","invalidNodeType","DIMENSIONAL_PROP_SET","WebAnimationsStyleNormalizer","propertyName","userProvidedProperty","normalizedProperty","strVal","valAndSuffixMatch","invalidCssUnitValue","ANY_STATE","TRUE_BOOLEAN_VALUES","FALSE_BOOLEAN_VALUES","makeLambdaFromStates","lhs","rhs","LHS_MATCH_BOOLEAN","RHS_MATCH_BOOLEAN","lhsMatch","rhsMatch","SELF_TOKEN_REGEX","buildAnimationAst","driver","metadata","warnings","AnimationAstBuilderVisitor","_driver","AnimationAstBuilderContext","_resetContextStyleTimingState","currentQuerySelector","collectedStyles","currentTime","queryCount","depCount","states","transitions","invalidTrigger","definitions","def","stateDef","invalidDefinition","styleAst","astParams","containsDynamicStyles","missingSubs","sub","invalidState","metadataName","animation","matchers","parseTransitionExpr","transitionValue","expressions","parseInnerTransitionStr","eventStr","parseAnimationAlias","alias","invalidTransitionAlias","invalidExpression","expr","separator","normalizeAnimationOptions","furthestTime","step","innerAst","timingAst","constructTimingAst","makeTimingAst","strValue","ast","dynamic","currentAnimateTimings","styleMetadata","isEmpty","newStyleData","_styleAst","isEmptyStep","_makeStyleAst","_validateStyleAst","metadataStyles","styleTuple","collectedEasing","styleData","tuple","collectedEntry","updateCollectedStyle","invalidParallelAnimation","firstStart","firstEnd","secondStart","secondEnd","validateStyleParams","invalidStyleParams","invalidKeyframes","totalKeyframesWithOffsets","offsets","offsetsOutOfOrder","keyframesOutOfRange","offsetVal","consumeOffset","invalidOffset","keyframeOffsetsOutOfOrder","generatedOffset","keyframesMissingOffsets","limit","animateDuration","durationUpToThisFrame","parentSelector","currentQuery","includeSelf","normalizeSelector","hasAmpersand","originalSelector","invalidStagger","currentTransition","unsupportedCSSPropertiesFound","normalizeParams","createTimelineInstruction","preStyleProps","postStyleProps","subTimeline","ElementInstructionMap","_map","instructions","existingInstructions","ENTER_TOKEN_REGEX","LEAVE_TOKEN_REGEX","buildAnimationTimelines","enterClassName","leaveClassName","startingStyles","finalStyles","subInstructions","AnimationTimelineBuilderVisitor","buildKeyframes","AnimationTimelineContext","currentTimeline","delayNextStep","timelines","timeline","containsAnimation","lastRootTimeline","allowOnlyTimelineStyles","elementInstructions","innerContext","createSubContext","_visitSubInstructions","transformIntoNewTimeline","previousNode","_applyAnimationRefDelays","animationsRefsOptions","animationRefOptions","animationDelay","animationDelayValue","instruction","instructionTimings","appendInstructionToTimeline","updateOptions","subContextCount","snapshotCurrentStyles","DEFAULT_NOOP_PREVIOUS_NODE","applyStylesToKeyframe","innerTimelines","mergeTimelineCollectedStyles","_visitTiming","incrementTime","hasCurrentStyleProperties","forwardFrame","applyEmptyStep","innerTimeline","forwardTime","elms","currentQueryTotal","sameElementTimeline","currentQueryIndex","parentContext","tl","maxTime","currentStaggerTime","startingTime","_enterClassName","_leaveClassName","initialTimeline","TimelineBuilder","skipIfExists","newOptions","optionsToUpdate","newParams","paramsToUpdate","_copyOptions","oldParams","newTime","fork","updatedTimings","SubTimelineBuilder","stretchStartingKeyframe","invalidQuery","_elementTimelineStylesLookup","_previousKeyframe","_currentKeyframe","_keyframes","_styleSummary","_localTimelineStyles","_pendingStyles","_backFill","_currentEmptyStepKeyframe","_globalTimelineStyles","_loadKeyframe","hasPreStyleStep","_updateStyle","flattenStyles","allStyles","allProperties","getFinalKeyframe","details1","details0","finalKeyframes","keyframe","finalKeyframe","preProps","postProps","kf0","kf1","_stretchStartingKeyframe","newKeyframes","startingGap","newFirstKeyframe","oldFirstKeyframe","roundOffset","oldOffset","decimalPoints","mult","createTransitionInstruction","isRemovalTransition","fromStyles","toStyles","queriedElements","EMPTY_OBJECT","AnimationTransitionFactory","_triggerName","_stateStyles","currentState","nextState","oneOrMoreTransitionsMatch","matchFns","buildStyles","stateName","styler","currentOptions","nextOptions","skipAstBuild","transitionAnimationParams","currentStateStyles","nextAnimationParams","nextStateStyles","preStyleMap","postStyleMap","isRemoval","animationOptions","applyParamDefaults","elm","userParams","AnimationStateStyles","combinedParams","AnimationTrigger","_normalizer","transitionFactories","balanceProperties","fallbackTransition","createFallbackTransition","containsQueries","matchTransition","matchStyles","stateMap","key1","key2","EMPTY_INSTRUCTION_MAP","TimelineAnimationEngine","bodyNode","_animations","_playersById","register","registerFailed","_buildPlayer","autoStylesMap","missingOrDestroyedAnimation","createAnimationFailed","_getPlayer","missingPlayer","listen","baseEvent","play","restart","finish","setPosition","QUEUED_CLASSNAME","DISABLED_CLASSNAME","EMPTY_PLAYER_ARRAY","NULL_REMOVAL_STATE","namespaceId","setForRemoval","setForMove","hasAnimation","removedBeforeQueried","NULL_REMOVED_QUERIED_STATE","REMOVAL_FLAG","StateValue","normalizeTriggerValue","absorbOptions","VOID_VALUE","DEFAULT_STATE_VALUE","AnimationTransitionNamespace","hostElement","_engine","_triggers","_queue","_elementListeners","_hostClassName","addClass","phase","missingTrigger","missingEvent","isTriggerEventValid","unsupportedTriggerEvent","triggersWithStates","statesByElement","afterFlush","_getTrigger","unregisteredTrigger","defaultToFallback","TransitionAnimationPlayer","objEquals","k1","k2","playersOnElement","playersByElement","isFallbackTransition","totalQueuedPlayers","removeClass","deregister","clearElementCache","elementPlayers","_signalRemovalForInnerTriggers","fetchNamespacesByElement","triggerLeaveAnimation","afterFlushAnimationsDone","destroyAfterComplete","triggerStates","previousTriggersValues","markElementAsRemoved","processLeaveNode","prepareLeaveAnimationListeners","elementStates","visitedTriggers","removeNode","engine","childElementCount","containsPotentialParentTransition","totalAnimations","currentPlayers","playersByQueriedElement","removalFlag","destroyInnerAnimations","_onRemovalComplete","insertNode","drainQueuedTransitions","microtaskId","destroyed","markedForDestroy","d0","d1","TransitionAnimationEngine","onRemovalComplete","newHostElements","disabledNodes","_namespaceLookup","_namespaceList","_flushFns","_whenQuietFns","namespacesByHostElement","collectedEnterElements","collectedLeaveElements","queuedPlayers","createNamespace","_balanceNamespaceList","collectEnterElement","namespaceList","found","ancestor","ancestorNs","registerTrigger","_fetchNamespace","stateValue","isElementNode","markElementAsDisabled","notify","hostNS","_buildInstruction","subTimelines","skipBuildAst","containerElement","destroyActiveAnimationsForElement","finishActiveQueriedAnimationOnElement","whenRenderingDone","cleanupFns","_flushAnimations","quietFns","triggerTransitionsFailed","skippedPlayers","skippedPlayersMap","queuedInstructions","allPreStyleElements","allPostStyleElements","disabledElementsSet","nodesThatAreDisabled","allTriggerElements","enterNodeMap","buildRootMap","enterNodeMapIds","allLeaveNodes","mergedLeaveNodes","leaveNodesWithoutAnimations","leaveNodeMapIds","leaveNodeMap","allPlayers","erroneousTransitions","nodeIsOrphaned","stringMap","setVal","transitionFailed","allPreviousPlayersMap","animationElementMap","_beforeAnimationBuild","_getPreviousPlayers","prevPlayer","replaceNodes","replacePostStylesAsPre","postStylesMap","cloakAndComputeStyles","preStylesMap","pre","rootPlayers","subPlayers","NO_PARENT_ANIMATION_ELEMENT_DETECTED","overrideTotalTime","parentWithAnimation","parentsToAdd","detectedParent","innerPlayer","_buildAnimation","setRealPlayer","parentPlayers","parentPlayer","playersForElement","syncPlayerEvents","queriedPlayerResults","queriedInnerElements","queriedPlayers","activePlayers","removeNodesAfterAnimationDone","isQueriedElement","toStateValue","queriedElementPlayers","isRemovalAnimation","targetNameSpaceId","targetTriggerName","timelineInstruction","realPlayer","getRealPlayer","beforeDestroy","allQueriedPlayers","allConsumedElements","allSubElements","allNewPlayers","flattenGroupPlayers","finalPlayers","_flattenGroupPlayersRecur","wrappedPlayer","deleteOrUnsetInMap","currentValues","_containsRealPlayer","_queuedCallbacks","triggerCallback","_queueEvent","hasStarted","getPosition","cloakElement","oldValue","valuesMap","elementPropsMap","defaultStyle","cloakVals","failedElements","roots","rootMap","nodeSet","localRootMap","getRoot","postEntry","preEntry","AnimationEngine","_triggerCache","_transitionEngine","_timelineEngine","componentId","cacheKey","triggerBuildFailed","buildTrigger","onInsert","onRemove","disableAnimations","disable","process","eventPhase","SpecialCasedStyles","initialStylesByElement","WeakMap","_startStyles","_endStyles","_state","initialStyles","_initialStyles","filterNonAnimatableStyles","isNonAnimatableStyle","WebAnimationsPlayer","_specialStyles","_onDoneFns","_onStartFns","_onDestroyFns","_initialized","_finished","_started","_originalOnDoneFns","_originalOnStartFns","currentSnapshot","_duration","_delay","_onFinish","_preparePlayerBeforeStart","domPlayer","_triggerWebAnimation","_finalKeyframe","onFinish","_resetDomPlayerState","_convertKeyframesToObject","kfs","fromEntries","cancel","methods","WebAnimationsDriver","validateAnimatableStyleProperty","playerOptions","fill","previousStyles","previousWebAnimationPlayers","allowPreviousPlayerStylesMerge","normalizeKeyframes","balancePreviousStylesIntoKeyframes","startingKeyframe","missingStyleProps","specialStyles","packageNonAnimatableStyles","startStyles","endStyles","DISABLE_ANIMATIONS_FLAG","BaseAnimationRenderer","delegate","_onDestroy","ɵtype","destroyNode","queueMicrotask","namespace","createComment","createText","newChild","refChild","isMove","removeChild","oldChild","isHostElement","selectorOrNode","preserveContent","nextSibling","removeAttribute","setStyle","removeStyle","AnimationRenderer","resolveElementFromTarget","parseTriggerCallbackName","dotIndex","scheduleListenerCallback","AnimationRendererFactory","_zone","_currentId","_microtaskId","_animationCallbacksBuffer","_rendererCache","_cdRecurDepth","createRenderer","cache","onRendererDestroy","animationTriggers","begin","_scheduleCountTask","animationCallbacksBuffer","SHARED_ANIMATION_PROVIDERS","provide","ɵAnimationStyleNormalizer","useFactory","instantiateDefaultStyleNormalizer","ɵWebAnimationsStyleNormalizer","ɵAnimationEngine","useClass","InjectableAnimationEngine","ɵChangeDetectionScheduler","RendererFactory2","instantiateRendererFactory","zone","ɵAnimationRendererFactory","deps","ɵDomRendererFactory2","BROWSER_ANIMATIONS_PROVIDERS","ɵWebAnimationsDriver","ANIMATION_MODULE_TYPE","useValue","BROWSER_NOOP_ANIMATIONS_PROVIDERS","BrowserAnimationsModule","withConfig","ngModule","BrowserModule","getUrlSegmentOrEmptyUrlSegment","routes","loadChildren","__webpack_require__","matcher","fadSearchResultsVanityUrlMatcher","consumed","posParams","fadProviderDetailsUrlMatcher","pathMatch","AppRoutingModule","forRoot","preloadingStrategy","PreloadAllModules","onSameUrlNavigation","scrollPositionRestoration","anchorScrolling","ConfigurationInjectionService","RuntimeConfigJson","noCacheHeader","Pragma","Expires","load","setRootElementCssClass","loadInitialConfiguration","toPromise","jsonConfigUrl","configAndAdobe$","loadRuntimeConfig","setupAdobe","setupAppInsights","setConfigurationElements","reportMissingKeys","getUrlOfFadScript","scriptElement","namedItem","scriptElements","environment","mapConfiguration","theme","colorPalette","colors","locationPinColor","locationPinOutline","locationPinLabel","setFonts","fonts","headElement","fontCssUrl","componentType","fadConfig","requiredMissingKeys","warningMissingKeys","HttpLogInterceptor","intercept","handle","HttpErrorResponse","ErrorEvent","reducers","metaReducers","withLatestFrom","project","lift","WithLatestFromOperator","WithLatestFromSubscriber","OuterSubscriber","destination","toRespond","subscribeToResult","notifyNext","_outerValue","innerValue","outerIndex","notifyComplete","_tryProject","DistinctUntilChangedOperator","compare","keySelector","DistinctUntilChangedSubscriber","Subscriber","hasKey","toSignal","requiresCleanup","manualCleanup","assertInInjectionContext","cleanupRef","DestroyRef","signal","requireSync","rejectErrors","computed","REGISTERED_ACTION_TYPES","createAction","defineType","_as","creator","writable","INIT","ActionsSubject","ACTIONS_SUBJECT_PROVIDERS","_ROOT_STORE_GUARD","_INITIAL_STATE","INITIAL_STATE","REDUCER_FACTORY","_REDUCER_FACTORY","INITIAL_REDUCERS","_INITIAL_REDUCERS","STORE_FEATURES","_STORE_REDUCERS","_FEATURE_REDUCERS","_FEATURE_CONFIGS","_STORE_FEATURES","_FEATURE_REDUCERS_TOKEN","FEATURE_REDUCERS","USER_PROVIDED_META_REDUCERS","META_REDUCERS","_RESOLVED_META_REDUCERS","USER_RUNTIME_CHECKS","_USER_RUNTIME_CHECKS","ACTIVE_RUNTIME_CHECKS","_ACTION_TYPE_UNIQUENESS_CHECK","combineReducers","initialState","reducerKeys","finalReducers","finalReducerKeys","hasChanged","previousStateForKey","nextStateForKey","reducer","compose","functions","reduceRight","composed","createReducerFactory","reducerFactory","ReducerObservable","ReducerManagerDispatcher","UPDATE","ReducerManager","currentReducers","dispatcher","addFeature","feature","addFeatures","reducerDict","createFeatureReducerFactory","addReducers","removeFeature","removeFeatures","removeReducers","addReducer","updateReducers","removeReducer","featureKey","featureKeys","omit","keyToRemove","C","REDUCER_MANAGER_PROVIDERS","useExisting","ScannedActionsSubject","ɵScannedActionsSubject_BaseFactory","SCANNED_ACTIONS_SUBJECT_PROVIDERS","StateObservable","actions$","reducer$","scannedActions","stateAndAction$","observeOn","queueScheduler","scan","reduceState","stateSubscription","stateActionPair","STATE_PROVIDERS","Store","state$","actionsObserver","reducerManager","select","pathOrMapFn","paths","selectSignal","operator","store","dispatch","STORE_PROVIDERS","propsOrPath","source$","mapped$","pathSlices","Boolean","pluck","plucker","currentProp","distinctUntilChanged","RUNTIME_CHECK_URL","isNull","isObjectLike","_createStoreReducers","_createFeatureStore","configs","featureStores","feat","conf","_createFeatureReducers","reducerCollection","_initialStateFactory","_concatMetaReducers","userProvidedMetaReducers","_provideForRootGuard","skipSelf","targetIsFunction","propValue","isFrozen","getUnserializable","isComponent","targetPrototype","throwIfUnserializable","unserializable","unserializablePath","createActiveRuntimeChecks","runtimeChecks","isDevMode","strictStateSerializability","strictActionSerializability","strictStateImmutability","strictActionImmutability","strictActionWithinNgZone","strictActionTypeUniqueness","createSerializationCheckMetaReducer","serializationCheckMetaReducer","checks","ignoreNgrxAction","createImmutabilityCheckMetaReducer","immutabilityCheckMetaReducer","act","createInNgZoneCheckMetaReducer","inNgZoneAssertMetaReducer","isInAngularZone","provideRuntimeChecks","_runtimeChecksFactory","checkForActionTypeUniqueness","_actionTypeUniquenessCheck","duplicates","registrations","_provideStore","Inject","_provideState","featureNameOrSlice","StoreRootModule","scannedActions$","guard","actionCheck","StoreFeatureModule","featureReducers","feats","StoreModule","forFeature","IgnoreElementsOperator","IgnoreElementsSubscriber","MaterializeOperator","MaterializeSubscriber","Notification","createNext","_error","createError","_complete","createComplete","groupBy","elementSelector","durationSelector","subjectSelector","GroupByOperator","GroupBySubscriber","groups","attemptedToUnsubscribe","_group","groupedObservable","GroupedObservable","GroupDurationSubscriber","closed","removeGroup","_unsubscribe","groupSubject","refCountSubscription","_subscribe","subscription","Subscription","InnerRefCountSubscription","exhaustMap","ExhaustMapOperator","ExhaustMapSubscriber","SimpleOuterSubscriber","hasSubscription","hasCompleted","tryNext","_innerSub","innerSubscriber","SimpleInnerSubscriber","innerSubscription","innerSubscribe","notifyError","DeMaterializeOperator","DeMaterializeSubscriber","observe","CREATE_EFFECT_METADATA_KEY","getSourceForInstance","isClass","classOrRecord","getClasses","classesAndRecords","mergeEffects","sourceInstance","globalErrorHandler","effectsErrorHandler","sourceName","observables$","getSourceMetadata","getCreateEffectMetadata","useEffectsErrorHandler","observable$","effectAction$","ignoreElements","materialize","notification","effect","defaultEffectsErrorHandler","errorHandler","retryAttemptLeft","handleError","_ROOT_EFFECTS_GUARD","USER_PROVIDED_EFFECTS","_ROOT_EFFECTS","_ROOT_EFFECTS_INSTANCES","_FEATURE_EFFECTS","_FEATURE_EFFECTS_INSTANCE_GROUPS","EFFECTS_ERROR_HANDLER","ROOT_EFFECTS_INIT","isOnInitEffects","functionName","EffectSources","addEffects","effectSourceInstance","toActions","effectsInstance","isClassInstance","mergeMap","effect$","resolveEffectSource","mergedEffects$","isOnRunEffects","ngrxOnRunEffects","reportInvalidActions","reporter","isAction","getEffectName","isMethod","dematerialize","take","ngrxOnInitEffects","isOnIdentifyEffects","ngrxOnIdentifyEffects","EffectsRunner","isStarted","effectsSubscription","effectSources","EffectsRootModule","runner","rootEffectsInstances","storeRootModule","storeFeatureModule","EffectsFeatureModule","effectsRootModule","effectsInstanceGroups","effectsInstances","EffectsModule","featureEffects","effects","effectsClasses","createEffectsInstances","rootEffects","effectsGroups","userProvidedEffectsGroups","effectsGroup","userProvidedEffectsGroup","effectsTokenOrRecord","isToken","tokenOrRecord","MulticastOperator","subjectFactory","shareSubjectFactory","TimeoutError","TimeoutErrorImpl","TimeoutWithOperator","waitFor","absoluteTimeout","withObservable","TimeoutWithSubscriber","scheduleTimeout","dispatchTimeout","_unsubscribeAndRecycle","SkipOperator","SkipSubscriber","PERFORM_ACTION","ROLLBACK","TOGGLE_ACTION","JUMP_TO_STATE","JUMP_TO_ACTION","IMPORT_STATE","LOCK_CHANGES","PAUSE_RECORDING","PerformAction","timestamp","Refresh","Reset","Rollback","Commit","Sweep","ToggleAction","JumpToState","JumpToAction","actionId","ImportState","nextLiftedState","LockChanges","PauseRecording","STORE_DEVTOOLS_CONFIG","INITIAL_OPTIONS","noMonitor","DEFAULT_NAME","createConfig","optionsInput","DEFAULT_OPTIONS","maxAge","monitor","actionSanitizer","stateSanitizer","logOnly","autoPause","traceLimit","lock","persist","export","import","jump","skip","reorder","connectInZone","difference","second","unliftState","liftedState","computedStates","currentStateIndex","liftAction","sanitizeActions","actions","sanitizedActions","actionIdx","sanitizeAction","sanitizeStates","computedState","sanitizeState","stateIdx","shouldFilterActions","predicate","actionsSafelist","actionsBlocklist","isActionFiltered","safelist","blockedlist","predicateMatch","safelistMatch","escapeRegExp","blocklistMatch","injectZoneConfig","DevtoolsDispatcher","ɵDevtoolsDispatcher_BaseFactory","REDUX_DEVTOOLS_EXTENSION","DevtoolsExtension","devtoolsExtension","zoneConfig","createActionStreams","isLocked","isPaused","sanitizedState","sanitizedAction","nextActionId","sendToReduxDevtools","extensionConnection","sanitizedLiftedState","stagedActionIds","actionsById","getExtensionConfig","createChangesObservable","connection","EMPTY","changes$","share","refCount","multicast","subjectOrSubjectFactory","connectable","connectableObservableDescriptor","start$","stop$","liftedActions$","unwrapAction","due","timeoutWith","isDate","actionsUntilStop$","liftedUntilStop$","eval","extensionOptions","INIT_ACTION","RECOMPUTE_ACTION","computeNextEntry","nextError","recomputeStates","minInvalidatedStateIndex","committedState","skippedActionIds","nextComputedStates","lastIncludedActionId","previousEntry","previousState","previousError","StoreDevtools","reducers$","extension","liftedInitialState","liftInitialState","initialCommittedState","monitorReducer","monitorState","liftReducer","liftReducerWith","initialLiftedState","liftedAction","commitExcessActions","excess","idsToDelete","commitChanges","Infinity","active","actionIds","lastState","cmp","liftedAction$","liftedReducer$","liftedStateSubject","liftedStateSubscription","emitInZone","reducedLiftedState","filterLiftedState","blocklist","filteredStagedActionIds","filteredActionsById","filteredComputedStates","extensionStartSubscription","refresh","liftedState$","performAction","rollback","commit","sweep","toggleAction","jumpToAction","jumpToState","importState","lockChanges","pauseRecording","IS_EXTENSION_OR_MONITOR_PRESENT","createIsExtensionOrMonitorPresent","createReduxDevtoolsExtension","extensionKey","provideStoreDevtools","makeEnvironmentProviders","createStateObservable","devtools","StoreDevtoolsModule","instrument","ROUTER_REQUEST","ROUTER_NAVIGATION","_p","ROUTER_CANCEL","ROUTER_ERROR","ROUTER_NAVIGATED","MinimalRouterStateSerializer","routerState","serializeRoute","outlet","routeConfig","redirectTo","fragment","firstChild","NavigationActionTiming","PreActivation","PostActivation","DEFAULT_ROUTER_FEATURENAME","_ROUTER_CONFIG","ROUTER_CONFIG","_createRouterConfig","stateKey","serializer","navigationActionTiming","FullRouterStateSerializer","pathFromRoot","RouterStateSerializer","RouterTrigger","NONE","ROUTER","STORE","StoreRouterConnectingService","activeRuntimeChecks","lastEvent","setUpStoreStateListener","setUpRouterEventsListener","routerStoreState","storeState","navigateIfNeeded","NavigationStart","isSameUrl","stripTrailingSlash","dispatchNavLate","routesRecognized","dispatchRouterRequest","RoutesRecognized","dispatchRouterNavigation","NavigationCancel","dispatchRouterCancel","NavigationError","dispatchRouterError","NavigationEnd","dispatchRouterNavigated","dispatchRouterAction","lastRoutesRecognized","nextRouterState","urlAfterRedirects","provideRouterStore","ENVIRONMENT_INITIALIZER","StoreRouterConnectingModule","CoreModule","HTTP_INTERCEPTORS","ErrorHandlerService","ErrorHandler","FilterLegacyService","apiBaseUrl","apiConstants","medGroupCode","searchstring","splitAndMapQueryString","splitAndMapAffiliationQueryString","selectedMedgroupList","checkForToggleSpecialtiesHospitals","checkForAvailability","checkForGenderInsuranceAndLanguages","checkForLocationAndDistanceParams","checkForProviderRoleType","checkForSortBy","selectedDistance","checkForMedicalGroupSelection","checkForAutoSelectionCheckBoxSpecialties","checkForOtherConditions","needToIncludeRoleType","findAutoSelectSpecialties","getFacetCount","facetType","facetValue","getFacetValues","getNewAppointmentTypes","getSortingValue","sortParam","convertFilterModelToQueryString","includeProviderRole","setSortByParams","filterModelParam","setLocationParam","selectedOption","sortingOption","mapMedgroupIfNeeded","distanceMapping","providerFilterParam","pmg","medgroupItem","tempParams","getFilteredSearchResults","queryString","medList","FilterNewService","FilterServiceFactory","LocationLegacyService","sessionToken","placeId","detailResponse","LocationNewService","getLocationSearchParams","_suggParams","getLocationDetailInfo","LocationServiceFactory","ProviderLegacyService","addRequiredProviderHttpParams","suggestionType","ProviderNewService","normalizedBookingAvailability","bookingAvailability","normalizedList","officeAddressIdList","dateList","availableDates","datesList","dl","dateValue","dateAvailability","appointmentTime","onlineBookingItem","appItem","appointmentTypeIds","currentDateAvailability","currentTimeAvailability","currentAppointmentAvailability","visitId","ProviderServiceFactory","OverrideUrlSerializer","DefaultUrlSerializer","tree","AuthHelperService","basePath","configureAuth","oidcConfigService","oidcResult","stsServerInfoLookupUrl","oidcConfig","redirectUrl","postLogoutRedirectUri","buildUrl","scope","silentRenew","silentRenewUrl","renewTimeBeforeTokenExpiresInSeconds","customParams","stsServer","endsWith","APP_BASE_HREF","Document","appInitializer","configInjService","authHelper","AppModule","fadLinkService","ngDoBootstrap","appRef","bootstrap","registerCustomElement","customElements","createCustomElement","getComponentInputs","strategyFactory","attributeToPropertyInputs","getDefaultAttributeToPropertyInputs","camelToDashCase","char","NgElementImpl","observedAttributes","ngElementStrategy","_ngElementStrategy","strategy","attributeChangedCallback","attrName","connectedCallback","subscribedToEvents","subscribeToEvents","disconnectedCallback","customEvent","define","APP_INITIALIZER","OidcConfigService","HttpClient","ActivatedRoute","UrlSerializer","resolveOidcConfigService","OidcSecurityService","resolveOidcSecurityService","HttpClientModule","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","stacktrace","parseOpera","parseV8OrIE","parseFFOrSafari","extractLocation","parseOpera9","parseOpera11","parseOpera10","exports","Symbol","toStringTag","__esModule","Log","Global","_testing","setXMLHttpRequest","localStorage","MetadataService","JsonService","_settings","_jsonService","resetSigningKeys","signingKeys","getMetadata","metadataUrl","getJson","metadataSeed","reject","getIssuer","_getMetadataProperty","getAuthorizationEndpoint","getUserInfoEndpoint","getTokenEndpoint","getCheckSessionIframe","getEndSessionEndpoint","getRevocationEndpoint","getKeysEndpoint","getSigningKeys","_metadataUrl","authority","UrlUtility","addQueryParam","parseUrlFragment","u","JoseUtil","jws","KeyUtil","X509","crypto","hextob64u","b64tohex","AllowedSigningAlgs","OidcClientSettings","iterator","client_id","g","client_secret","response_type","redirect_uri","post_logout_redirect_uri","client_authentication","S","prompt","F","E","max_age","ui_locales","acr_values","A","resource","k","response_mode","L","filterProtocolClaims","P","T","loadUserInfo","R","O","staleStateAge","I","N","clockSkew","M","clockService","D","ClockService","U","userInfoJwtIssuer","B","H","mergeClaims","V","K","stateStore","q","WebStorageStateStore","J","ResponseValidatorCtor","W","ResponseValidator","G","MetadataServiceCtor","Y","z","extraQueryParams","$","X","extraTokenParams","Q","_authority","_metadata","_metadataSeed","_signingKeys","_client_id","_client_secret","_response_type","_scope","_redirect_uri","_post_logout_redirect_uri","_client_authentication","_prompt","_display","_max_age","_ui_locales","_acr_values","_resource","_response_mode","_filterProtocolClaims","_loadUserInfo","_staleStateAge","_clockSkew","_clockService","_userInfoJwtIssuer","_mergeClaims","_stateStore","_validator","_metadataService","_extraQueryParams","_extraTokenParams","getEpochTime","prefix","_store","_prefix","getAllKeys","_contentTypes","_XMLHttpRequest","_jwtHandler","setRequestHeader","postForm","SigninRequest","id_token_hint","login_hint","request_uri","request_type","skipUserInfo","isOidc","isCode","SigninState","code_verifier","code_challenge","isOAuth","created","_created","_request_type","toStorageString","fromStorageString","clearStaleState","OidcClient","createSigninRequest","readSigninResponseState","SigninResponse","processSigninResponse","validateSigninResponse","createSignoutRequest","SignoutRequest","readSignoutResponseState","SignoutResponse","ErrorResponse","processSignoutResponse","validateSignoutResponse","settings","validator","metadataService","TokenClient","exchangeCode","grant_type","exchangeRefreshToken","refresh_token","error_description","error_uri","session_state","ReferenceError","_code_verifier","hashString","_code_challenge","hexToBase64Url","_skipUserInfo","msCrypto","Uint8Array","id_token","access_token","token_type","profile","expires_at","expires_in","AccessTokenEvents","accessTokenExpiringNotificationTime","accessTokenExpiringTimer","Timer","accessTokenExpiredTimer","_accessTokenExpiringNotificationTime","_accessTokenExpiring","_accessTokenExpired","addAccessTokenExpiring","removeAccessTokenExpiring","addAccessTokenExpired","removeAccessTokenExpired","_name","_callbacks","raise","SessionMonitor","CheckSessionIFrame","timer","_userManager","_CheckSessionIFrameCtor","_timer","addUserLoaded","_start","addUserUnloaded","_stop","getUser","monitorAnonymousSession","querySessionStatus","sid","_sub","_sid","_checkSessionIFrame","_checkSessionInterval","_stopCheckSessionOnError","_callback","_raiseUserSessionChanged","_raiseUserSignedOut","_raiseUserSignedIn","checkSessionInterval","stopCheckSessionOnError","_url","_interval","_stopOnError","_frame_origin","_frame","visibility","_boundMessageEvent","_message","contentWindow","_session_state","postMessage","TokenRevocationClient","_XMLHttpRequestCtor","revoke","_revoke","CordovaPopupWindow","_promise","_resolve","_reject","popupWindowFeatures","popupWindowTarget","startUrl","_isInAppBrowserInstalled","cordova","require","_popup","InAppBrowser","_exitCallbackEvent","_exitCallback","_loadStartCallbackEvent","_loadStartCallback","promise","_success","_cleanup","close","InMemoryWebStorage","UserManager","CordovaPopupNavigator","CordovaIFrameNavigator","UserInfoService","_userInfoService","_joseUtil","_tokenClient","_processSigninParams","_validateTokens","_processClaims","isOpenIdConnect","getClaims","_processCode","_validateIdTokenAndAccessToken","_validateIdToken","_validateIdTokenAttributes","validateJwtAttributes","_validateAccessToken","_getSigningKeyForJwt","kid","_filterByAlg","alg","_getSigningKeyForJwtWithSingleRetry","parseJwt","validateJwt","kty","at_hash","_getClaimsFromJwt","iss","KEYUTIL","lang","extend","superclass","lib","Base","mixIn","$super","WordArray","words","sigBytes","clamp","ceil","enc","Hex","Latin1","fromCharCode","Utf8","escape","unescape","BufferedBlockAlgorithm","_nDataBytes","_append","_process","blockSize","_minBufferSize","_doProcessBlock","Hasher","cfg","_doReset","_doFinalize","_createHelper","_createHmacHelper","HMAC","algo","x64","Word","high","low","toX32","Base64","SHA256","_hash","HmacSHA256","SHA512","Z","ee","te","re","HmacSHA512","SHA384","HmacSHA384","fromNumber","fromString","appName","am","DB","DM","DV","FV","F1","F2","fromInt","mp","invDigit","mpl","mph","um","mt2","r2","q3","ONE","dlShiftTo","mu","divide","convert","compareTo","mod","revert","divRemTo","mulTo","multiplyTo","sqrTo","squareTo","ZERO","subTo","copyTo","drShiftTo","fromRadix","lShiftTo","rShiftTo","isEven","negate","toRadix","bitLength","modPowInt","multiplyUpperTo","multiplyLowerTo","dAddOffset","chunkSize","LN2","signum","intValue","dMultiply","testBit","bitwiseTo","shiftLeft","isProbablePrime","nextBytes","changeBit","addTo","modInt","millerRabin","subtract","getLowestSetBit","shiftRight","modPow","byteValue","shortValue","toByteArray","equals","and","or","xor","andNot","not","bitCount","setBit","clearBit","flipBit","multiply","remainder","divideAndRemainder","modInverse","gcd","square","appVersion","ne","ie","dmp1","dmq1","coeff","oe","se","curve","zinv","ae","fromBigInteger","infinity","doPublic","setPublic","isPublic","isPrivate","encrypt","encryptOAEP","ce","MessageDigest","Util","getCanonicalAlgName","getHashLength","Fe","hashHex","Ee","toBigInteger","getX","getY","isInfinity","twice","getInfinity","multiplyTwo","getQ","getA","getB","decodePointHex","getByteLength","getEncoded","toByteArrayUnsigned","decodeFrom","decodeFromHex","add2D","twice2D","valueOf","multiply2D","isOnCurve","validate","ue","KJUR","asn1","ASN1Util","integerToByteHex","bigIntToMinTwosComplementsHex","getPEMStringFromHex","ke","newObject","ASN1Object","DERBoolean","DERInteger","DERBitString","DEROctetString","DERNull","DERObjectIdentifier","DEREnumerated","DERUTF8String","DERNumericString","DERPrintableString","DERTeletexString","DERIA5String","DERUTCTime","DERGeneralizedTime","DERVisibleString","DERBMPString","DERSequence","DERSet","DERTaggedObject","explicit","jsonToASN1HEX","getEncodedHex","oidHexToInt","oidIntToHex","getLengthHexFromValue","hV","hTLV","isModified","getFreshValueHex","hL","hT","getValueHex","setByParam","tlv","DERAbstractString","getString","setString","we","setStringHex","hex","DERAbstractTime","localDateToUTC","getTimezoneOffset","zeroPadding","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","ve","setByDateValue","UTC","setByDate","DERAbstractStructured","setByASN1ObjectArray","asn1Array","appendASN1Object","setByBigInteger","setByInteger","setValueHex","bigint","int","setHexValueIncludingUnusedBits","setUnusedBitsAndHexValue","setByBinaryString","setByBooleanArray","newFalseArray","bin","setValueOidString","setValueName","x509","OID","name2oid","setValueNameOrOid","oid","withMillis","millis","sortFlag","sortflag","isExplicit","asn1Object","setASN1Object","tage","tagi","le","he","fe","ge","pe","de","ye","me","_e","be","Re","Me","Se","Oe","xe","Ce","Ae","Le","Pe","Te","Ie","repeat","Ne","je","De","Ue","getLblen","getL","getVblen","getVidx","getV","getTLV","getTLVblen","getNextSiblingIdx","getChildIdx","getNthChildIdx","getIdxbyList","getIdxbyListEx","isContextTag","getTLVbyList","getTLVbyListEx","getVbyList","getVbyListEx","getInt","getOID","Be","getOIDName","oid2name","hextooidstr","dump","ommit_long_octet","isASN1HEX","oidname","x509ExtName","checkStrictDER","isHex","utf8tob64u","b64utoutf8","isInteger","isBase64","isBase64URL","isIntegerArray","isPrintable","isIA5","isMail","DIGESTINFOHEAD","sha1","sha224","sha256","sha384","sha512","md2","md5","ripemd160","DEFAULTPROVIDER","hmacmd5","hmacsha1","hmacsha224","hmacsha256","hmacsha384","hmacsha512","hmacripemd160","MD5withRSA","SHA1withRSA","SHA224withRSA","SHA256withRSA","SHA384withRSA","SHA512withRSA","RIPEMD160withRSA","MD5withECDSA","SHA1withECDSA","SHA224withECDSA","SHA256withECDSA","SHA384withECDSA","SHA512withECDSA","RIPEMD160withECDSA","SHA1withDSA","SHA224withDSA","SHA256withDSA","MD5withRSAandMGF1","SHAwithRSAandMGF1","SHA1withRSAandMGF1","SHA224withRSAandMGF1","SHA256withRSAandMGF1","SHA384withRSAandMGF1","SHA512withRSAandMGF1","RIPEMD160withRSAandMGF1","CRYPTOJSMESSAGEDIGESTNAME","MD5","SHA1","SHA224","RIPEMD160","getDigestInfoHex","getPaddedDigestInfoHex","digestString","digestHex","sha256Hex","sha512Hex","isKey","DSA","ECDSA","prov","SECURERANDOMGEN","getRandomHexOfNbytes","getRandomBigIntegerOfNbytes","getRandomHexOfNbits","getRandomBigIntegerOfNbits","getRandomBigIntegerZeroToMax","getRandomBigIntegerMinToMax","setAlgAndProvider","md","updateString","updateHex","digest","sjcl","codec","toBits","fromBits","algName","provName","HASHLENGTH","Mac","algProv","mac","pass","doFinal","doFinalString","doFinalHex","setPassword","utf8","rstr","b64","b64u","Signature","_setAlgNames","mdAlgName","pubkeyAlgName","_zeroPaddingOfSignature","He","getKey","prvKey","pubKey","sign","sHashHex","ecprvhex","eccurvename","prv","hSign","signWithMessageHashPSS","pssSaltLen","signWithMessageHash","signString","signHex","verify","ecpubhex","pub","verifyWithMessageHashPSS","verifyWithMessageHash","algProvName","initParams","psssaltlen","prvkeypem","prvkeypas","Cipher","getAlgByKeyAndName","decrypt","decryptOAEP","oidhex2name","ECParameterDB","getBigRandom","setNamedCurve","ecparams","prvKeyHex","pubKeyHex","curveName","setPrivateKeyHex","setPublicKeyHex","getPublicKeyXYHex","keylen","getShortNISTPCurveName","generateKeyPairHex","biRSSigToASN1Sig","fromByteArrayUnsigned","serializeSig","verifyHex","parseSigHex","verifyRaw","Bitcoin","parseSig","toByteArraySigned","parseSigCompact","readPKCS5PrvKeyHex","readPKCS8PrvKeyHex","readPKCS8PubKeyHex","readCertPubKeyHex","parseSigHexInHexRS","asn1SigToConcatSig","concatSigToASN1Sig","hexRSSigToASN1Sig","regist","AES","iv","ciphertext","proc","eproc","ivlen","TripleDES","DES","cipher","ivsalt","keyhex","ivhex","parsePKCS5PEM","getKeyAndUnusedIvByPasscodeAndIvsalt","decryptKeyB64","getDecryptedKeyHex","getEncryptedPKCS5PEMFromPrvKeyHex","parseHexOfEncryptedPKCS8","encryptionSchemeAlg","encryptionSchemeIV","pbkdf2Salt","pbkdf2Iter","getPBKDF2KeyHexFromParam","PBKDF2","keySize","iterations","_getPlainPKCS8HexFromEncryptedPKCS8PEM","getKeyFromEncryptedPKCS8PEM","getKeyFromPlainPrivatePKCS8Hex","parsePlainPrivatePKCS8Hex","algparam","algoid","keyidx","getKeyFromPlainPrivatePKCS8PEM","_getKeyFromPublicPKCS8Hex","parsePublicRawRSAKeyHex","parsePublicPKCS8Hex","xy","dp","dq","co","qi","setPrivateEx","setPrivate","crv","We","getPublicKeyFromCertHex","getPublicKeyFromCertPEM","generateKeypair","generate","prvKeyObj","pubKeyObj","getPEM","seq","octstr","bitstr","SubjectPublicKeyInfo","null","getKeyFromCSRPEM","getKeyFromCSRHex","parseCSRHex","p8pubkeyhex","getKeyID","getJWKFromKey","getPosArrayOfChildrenFromHex","getHexValueArrayOfChildrenFromHex","readPrivateKeyFromPEMString","readPKCS5PubKeyHex","readCertHex","getPublicKeyHex","Ve","Ke","qe","Je","AlgorithmIdentifier","PSSNAME2ASN1TLV","HEX2STAG","foffset","aExtInfo","getVersion","getSerialNumberHex","getSignatureAlgorithmField","getAlgorithmIdentifierName","getX500Name","getIssuerHex","getIssuerString","hex2dn","getSubject","getSubjectHex","getSubjectString","getNotBefore","getNotAfter","getPublicKeyIdx","getPublicKeyContentIdx","getPublicKey","getSignatureAlgorithmName","getSignatureValueHex","verifySignature","parseExt","critical","vidx","getExtInfo","getExtBasicConstraints","extname","cA","pathLen","getExtKeyUsage","names","getExtKeyUsageString","getExtKeyUsageBin","KEYUSAGE_NAME","getExtSubjectKeyIdentifier","getExtAuthorityKeyIdentifier","getGeneralNames","issuer","dn","sn","getExtExtKeyUsage","getExtExtKeyUsageName","getExtSubjectAltName","getExtIssuerAltName","getGeneralName","rfc822","dns","getExtSubjectAltName2","getExtCRLDistributionPoints","getDistributionPoint","dpname","getDistributionPointName","full","getExtCRLDistributionPointsURI","getExtAIAInfo","ocsp","caissuer","getExtAuthorityInfoAccess","getExtCertificatePolicies","getPolicyInformation","policyoid","getPolicyQualifierInfo","cps","unotice","getUserNotice","exptext","getDisplayText","getExtCRLNumber","getExtCRLReason","getExtOcspNonce","getExtOcspNoCheck","getExtAdobeTimeStamp","reqauth","getX500NameRule","ds","getX500NameArray","dnarraytostr","getRDN","getAttrTypeAndValue","oid2atype","readCertPEM","getParam","serial","sigalg","notbefore","notafter","sbjpubkey","getExtParamArray","sighex","getExtParam","extn","findExt","updateExtCDPFullURI","updateExtAIAOCSP","updateExtAIACAIssuer","getInfo","dname","doPrivate","signPSS","verifyPSS","SALT_LEN_HLEN","SALT_LEN_MAX","SALT_LEN_RECOVER","hex2rdn","hex2attrTypeValue","getPublicKeyInfoPropOfCertPEM","JWS","isSafeJSONString","parseJWS","parsedJWS","sigvalH","headB64U","payloadB64U","sigvalB64U","si","sigvalBI","headS","payloadS","readSafeJSONString","jwsalg2sigalg","headerObj","payloadObj","headerPP","payloadPP","sigHex","verifyJWT","inArray","includedArray","aud","IntDate","getNow","verifyAt","gracePeriod","nbf","iat","jti","HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","PS256","PS384","PS512","none","getEncodedSignatureValueFromJWS","getJWKthumbprint","getZulu","intDate2UTCString","toUTCString","intDate2Zulu","SecureRandom","rng_seed_time","BigInteger","RSAKey","EDSA","ASN1HEX","CryptoJS","b64toBA","stoBA","BAtos","BAtohex","stohex","stob64","stob64u","b64utos","b64tob64u","b64utob64","hex2b64","b64utohex","utf8tob64","b64toutf8","utf8tohex","hextoutf8","hextorstr","rstrtohex","hextob64","hextob64nl","b64nltohex","hextopem","pemtohex","hextoArrayBuffer","ArrayBuffer","DataView","setUint8","ArrayBuffertohex","byteLength","getUint8","zulutomsec","zulutosec","zulutodate","datetozulu","uricmptohex","hextouricmp","ipv6tohex","hextoipv6","hextoip","iptohex","encodeURIComponentAll","newline_toUnix","newline_toDos","hextoposhex","intarystrtohex","strdiffidx","Buffer","TYPED_ARRAY_SUPPORT","RangeError","isEncoding","write","isBuffer","copy","isView","readUInt16BE","fromByteArray","SlowBuffer","alloc","INSPECT_MAX_BYTES","foo","subarray","kMaxLength","poolSize","_augment","species","allocUnsafe","allocUnsafeSlow","_isBuffer","swap16","swap32","swap64","inspect","isFinite","toJSON","_arr","readUIntLE","readUIntBE","readUInt8","readUInt16LE","readUInt32LE","readUInt32BE","readIntLE","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","read","readFloatBE","readDoubleLE","readDoubleBE","writeUIntLE","writeUIntBE","writeUInt8","writeUInt16LE","writeUInt16BE","writeUInt32LE","writeUInt32BE","writeIntLE","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","NaN","x5c","_validateJwt","azp","scopes","SilentRenewService","UserManagerSettings","UserManagerEvents","_silentRenewService","automaticSilentRenew","startSilentRenew","monitorSession","_sessionMonitor","_tokenRevocationClient","_loadUser","removeUser","storeUser","signinRedirect","_signinStart","_redirectNavigator","useReplaceToNavigate","signinRedirectCallback","_signinEnd","signinPopup","popup_redirect_uri","_signin","_popupNavigator","signinPopupCallback","_signinCallback","signinSilent","_useRefreshToken","includeIdTokenInSilentRenew","validateSubOnSilentRenew","current_sub","_signinSilentIframe","_validateIdTokenFromTokenRefreshToken","auth_time","silent_redirect_uri","_iframeNavigator","silentRequestTimeout","signinSilentCallback","signinCallback","signoutCallback","signoutRedirectCallback","signoutPopupCallback","query_status_response_type","prepare","signoutRedirect","_signoutStart","_signoutEnd","signoutPopup","popup_post_logout_redirect_uri","_signout","revokeAccessTokenOnSignout","_revokeInternal","revokeAccessToken","_revokeAccessTokenInternal","_revokeRefreshTokenInternal","stopSilentRenew","_userStore","_userStoreKey","redirectNavigator","popupNavigator","iframeNavigator","userStore","RedirectNavigator","PopupNavigator","IFrameNavigator","_popup_redirect_uri","_popup_post_logout_redirect_uri","_popupWindowFeatures","_popupWindowTarget","_silent_redirect_uri","_silentRequestTimeout","_automaticSilentRenew","_validateSubOnSilentRenew","_includeIdTokenInSilentRenew","_monitorSession","_monitorAnonymousSession","_query_status_response_type","_revokeAccessTokenOnSignout","PopupWindow","notifyOpener","_checkForPopupClosedTimer","_checkForPopupClosed","opener","IFrameWindow","notifyParent","_timeout","_origin","_userLoaded","_userUnloaded","_silentRenewError","_userSignedIn","_userSignedOut","_userSessionChanged","removeUserLoaded","removeUserUnloaded","addSilentRenewError","removeSilentRenewError","_raiseSilentRenewError","addUserSignedIn","removeUserSignedIn","addUserSignedOut","removeUserSignedOut","addUserSessionChanged","removeUserSessionChanged","_nowFunc","expiration","_timerHandle","_expiration","_tokenExpiring","Reflect","toPrimitive","REFLECT_METADATA_USE_MAP_POLYFILL","_index","_keys","_values","done","throw","return","_cacheKey","_cacheIndex","_find","_key","ArgumentOutOfRangeError","AsyncSubject","ConnectableObservable","EmptyError","NEVER","NotificationKind","ObjectUnsubscribedError","Scheduler","UnsubscriptionError","VirtualAction","VirtualTimeScheduler","animationFrame","animationFrameScheduler","asap","asapScheduler","asyncScheduler","bindCallback","bindNodeCallback","tt","defer","rt","empty","nt","Ge","fromEvent","ot","ut","identity","iif","lt","ft","isObservable","pt","never","vt","noop","observable","onErrorResumeNext","yt","pairs","mt","partition","Et","race","xt","range","kt","scheduled","Pt","using","Rt","Ot","useDeprecatedSynchronousErrorHandling","_parentOrParents","_subscriptions","_ctorUnsubscribe","syncErrorValue","syncErrorThrown","syncErrorThrowable","isStopped","_parentSubscriber","__tryOrSetError","__tryOrUnsub","_isScalar","_trySubscribe","observers","hasError","thrownError","_refCount","_connection","_isComplete","_subject","_value","work","pending","recycleAsyncId","requestAsyncId","execute","_execute","SchedulerAction","hasValue","do","toObservable","undefinedValueNotification","completeNotification","scheduleMessage","_infiniteTimeWindow","_bufferSize","_windowTime","nextInfiniteTimeWindow","nextTimeWindow","_getNow","_trimBufferThenGetEvents","maxFrames","frameTimeFactor","sortActions","callbackFunc","outerValue","_tryResultSelector","Ye","ze","$e","Xe","Qe","Ze","_tryNext","et","it","st","on","off","addListener","removeListener","condition","ct","needIterate","ht","gt","counter","period","bt","pred","wt","St","Ft","Ct","At","hasFirst","subscriptions","Lt","Tt","It","Nt","iterators","Mt","jt","Dt","stillUnsubscribed","notifyInactive","checkIterators","_tryresultSelector","nextResult","isComplete","getArgs","setArgs","getEvalOrigin","evalOrigin","setEvalOrigin","getFileName","getLineNumber","getColumnNumber","getFunctionName","getIsEval","backtrace","maxStackSize","callee","$1","caller","setFunctionName","setFileName","setLineNumber","setColumnNumber","setSource","_array","toSetString","toArray","encode","decode","rest","LEAST_UPPER_BOUND","GREATEST_LOWER_BOUND","_sorted","_last","generatedLine","generatedColumn","unsortedForEach","compareByGeneratedPositionsInflated","sections","getArg","_version","normalize","isAbsolute","relative","_names","_sources","sourceRoot","sourcesContent","_mappings","file","originalLine","originalColumn","column","_sections","consumer","fromSourceMap","__generatedMappings","_parseMappings","__originalMappings","_charIsMappingSeparator","GENERATED_ORDER","ORIGINAL_ORDER","eachMapping","_generatedMappings","_originalMappings","allGeneratedPositionsFor","_findMapping","compareByOriginalPositions","lastColumn","SourceMapConsumer","_sourceRoot","_generateSourcesContent","_file","compareByGeneratedPositionsDeflated","computeColumnSpans","lastGeneratedColumn","originalPositionFor","hasContentsOfAllSources","sourceContentFor","urlParse","scheme","generatedPositionFor","bias","every","_skipValidation","_sourcesContents","generated","addMapping","setSourceContent","_validateMapping","applySourceMap","_serializeMappings","mappings","SourceMapGenerator","sourceContents","fromStringWithSourceMap","prepend","walk","replaceRight","walkSourceContents","fromSetString","toStringWithSourceMap","SourceNode","auth","urlGenerate","sourceCache","ajax","_atob","offline","pinpoint","getMappedLocation","findFunctionName","fromError","generateArtificially","getSync","__stacktraceOriginalFn","deinstrument","report","__decorate","getOwnPropertyDescriptor","decorate","__metadata","OidcSecurityServiceFactory","userMgrFactory","buid","isAemClient","buildClient","useSharedClient","getSharedClient","identityManager","client","singleton","UserManagerFactory","Logger","buildUserManagerSettings","autoUserinfo","silentRenewTimeoutInSeconds","maxIdTokenIatOffsetAllowedInSeconds","tokenRefreshInSeconds","staticCategory","CategoryServiceFactory","setDefaultConfiguration","CategoryConfiguration","Category","__awaiter","requiredConfig","internalConfig","setInternalConfig","getStsServerInfo","json","validateInternalConfig","issuerURI","awaitingKey","maxWaitDelay","userManager","buildUserManager","setUser","userData$","executePromiseAfterCallback","isAuthenticated$","expired","awaitingCallback","authorize","mapAuthOptionsToArgs","checkAuth","getIdToken","logoff","silentLogin","isSafeToProceed","finally","checkForOktaLoginError","setDelay","maxWaitDelayInSecods","silentRequestTimeoutInMS","subscribeEvents","Lifecycle","autoInjectable","injectAll","injectAllWithTransform","injectWithTransform","injectable","instanceCachingFactory","instancePerContainerCachingFactory","isClassProvider","isFactoryProvider","isNormalToken","isTokenProvider","isValueProvider","predicateAwareClassFactory","registry","scoped","Transient","Singleton","ResolutionScoped","ContainerScoped","getOwnMetadata","transformToken","transformArgs","defineMetadata","wrap","reflectMethods","createProxy","Proxy","createHandler","useToken","_registryMap","getAll","ensure","setAll","scopedResolutions","preResolution","postResolution","_registry","interceptors","disposed","disposables","lifecycle","ensureNotDisposed","registerType","registerInstance","registerSingleton","getRegistration","executePreResolutionInterceptor","resolveRegistration","executePostResolutionInterceptor","construct","frequency","resolveAll","getAllRegistrations","isRegistered","clearInstances","createChildContainer","beforeResolution","afterResolution","dispose","sent","trys","ops","resolveParams","multiple","getOwnPropertySymbols","CategoryServiceControlImpl","help","_help","example","_example","showSettings","StringBuilder","_getCategoryService","_getCategories","_processCategory","recursive","logFormat","DateFormatEnum","showCategoryName","showTimestamp","getCategorySettings","dateFormat","formatEnum","showTimeStamp","_applyToCategory","getOriginalCategorySettings","LoggerType","loggerType","CategoryServiceImpl","getInstance","getRootCategories","getCategoryById","LoggerControlImpl","listFactories","_getRuntimeSettingsLoggerFactories","appendLine","TuplePair","getLogGroupRuntimeSettings","logGroupRule","regExp","getLoggerFactoryControl","_getSettings","getRuntimeSettingsForLoggerFactories","LFService","getRuntimeSettings","showLoggerName","_getLogGroupRunTimeSettingsFor","_checkIndex","ExtensionHelper","registered","processMessageFromExtension","enableExtensionIntegration","applyLogLevel","categoryId","sendCategoriesRuntimeUpdateMessage","sendCategoryLogMessage","errorAsStack","formattedMessage","MessageFormatUtils","renderDefaultMessage","messageAsString","resolvedErrorMessage","isResolvedErrorMessage","sendMessage","sendRootCategoriesToExtension","getCategoryAsJSON","_applyLogLevelRecursive","getAllCategories","CategoryLogFormat","LogFormat","DateFormat","Console","MessageBuffer","Custom","Default","YearMonthDayTime","YearDayMonthWithFullTime","YearDayMonthTime","_formatEnum","_dateSeparator","_showTimeStamp","_showLoggerName","_dateFormat","_showCategoryName","AbstractCategoryLogger","_resolvedErrorMessage","_errorAsStack","_categories","_date","_level","_logFormat","_ready","isReady","setReady","allMessages","LinkedList","rootCategory","runtimeSettings","_log","resolved","getRootCategory","createDefaultLogMessage","_getMessageFormatter","formatterLogMessage","_logInternal","getCategoryPath","addTail","processMessages","renderError","getSize","getHead","removeHead","doLog","_children","_logLevel","_parent","registerCategory","loadCategoryLogger","getLogger","currentId","_formatterLogMessage","_loggerType","_callBackLogger","callBackLogger","CategoryConsoleLoggerImpl","CategoryDelegateLoggerImpl","_delegate","CategoryExtensionLoggerImpl","CategoryMessageBufferLoggerImpl","messages","getMessages","CategoryRuntimeSettings","_category","_defaultConfig","_mapState","SimpleMap","_INSTANCE","createOrGetCategoryState","currentRuntimeSettings","originalRuntimeSettings","forEachValue","updateSettings","setConfigurationCategory","getCategoryKey","enableForExtension","createState","put","createLogger","_lazyState","getOriginalRuntimeSettings","getCurrentRuntimeSettings","_createLogger","isLoaded","loadLoggerOnDemand","_delegateLogger","_originalRuntimeSettings","_currentRuntimeSettings","_wrappedLogger","initNewSettings","AbstractLogger","_loggerName","_logGroupRule","_allMessages","_open","_logGroupRuntimeSettings","isTraceEnabled","isDebugEnabled","isInfoEnabled","isWarnEnabled","isErrorEnabled","isFatalEnabled","isOpen","renderDefaultLog4jMessage","createMessage","ConsoleLoggerImpl","_nameCounter","_mapFactories","createLoggerFactory","createNamedLoggerFactory","LoggerFactoryImpl","createDefaultOptions","closeLoggers","getLogGroupSettings","getLogGroupRuntimeSettingsByIndex","getLoggerFactoryRuntimeSettingsByName","LoggerFactoryOptions","addLogGroupRule","LogGroupRule","INSTANCE_SERVICE","DEFAULT_LOGGER_FACTORY_NAME","getDefault","DEFAULT_LOGGER_FACTORY","_regExp","LogGroupRuntimeSettings","dateSeparator","_loggers","_logGroupRuntimeSettingsIndexed","_loggerToLogGroupSettings","configure","_options","logGroupRules","loadLogger","getLogGroupRuntimeSettingsByLoggerName","MessageBufferLoggerImpl","_logGroupRules","setEnabled","__createBinding","__exportStar","getCategoryControl","getLogControl","_previous","addHead","createHeadIfNeeded","previous","getTailNode","getTail","removeTail","_x","_y","JSONHelper","JSONArray","JSONObject","toJSONType","addBoolean","checkName","checkValue","addNumber","addString","addNull","addArray","addObject","objects","categoryToJSON","_categoryToJSON","renderDate","loggerName","module","nextOrObserver","observerOrNext","sink","toSubscriber","rxSubscriberSymbol","emptyObserver","canReportError","promiseCtor","getPromiseCtor","Symbol_observable","operations","pipeFromArray","hostReportError","innerIndex","innerSub","bufferSize","windowTime","ReplayEvent","SubjectSubscription","ObserveOnSubscriber","eventsCount","spliceCount","SubjectSubscriber","AnonymousSubject","subscriberIndex","destinationOrNext","SafeSubscriber","wrappedComplete","UnsubscriptionErrorImpl","flattenUnsubscriptionErrors","subscriptionIndex","errs","_enable_super_gross_mode_that_will_cause_bad_things","subscribeTo","ConnectableSubscriber","higherOrderRefCount","connectableProto","CombineLatestOperator","CombineLatestSubscriber","concatAll","emptyScheduled","forkJoinInternal","emitted","isInteropObservable","scheduleObservable","isPromise","schedulePromise","isArrayLike","scheduleArray","isIterable","Symbol_iterator","scheduleIterable","subscribeToArray","CatchOperator","caught","CatchSubscriber","err2","dueTime","DebounceTimeOperator","DebounceTimeSubscriber","debouncedSubscription","lastValue","clearDebounce","dispatchNext","debouncedNext","defaultIfEmpty","DefaultIfEmptyOperator","DefaultIfEmptySubscriber","FilterOperator","FilterSubscriber","FinallyOperator","FinallySubscriber","hasDefaultValue","throwIfEmpty","MapOperator","MapSubscriber","MergeMapOperator","MergeMapSubscriber","ish","ObserveOnOperator","ObserveOnMessage","RefCountOperator","refCounter","RefCountSubscriber","sharedConnection","accumulator","seed","hasSeed","ScanOperator","ScanSubscriber","_seed","SwitchMapOperator","SwitchMapSubscriber","TakeOperator","TakeSubscriber","notifier","TakeUntilOperator","takeUntilSubscriber","TakeUntilSubscriber","notifierSubscription","seenValue","DoOperator","TapSubscriber","_tapNext","_tapError","_tapComplete","errorFactory","defaultErrorFactory","ThrowIfEmptyOperator","ThrowIfEmptySubscriber","Action","AsyncAction","errorValue","errored","AsyncScheduler","QueueScheduler","QueueAction","getSymbolIterator","rxSubscriber","ArgumentOutOfRangeErrorImpl","EmptyErrorImpl","ObjectUnsubscribedErrorImpl","fns","obs","subscribeToObservable","subscribeToPromise","iterable","subscribeToIterable","InnerSubscriber","outerSubscriber","rnds8","rng","byteToHex","esm_browser_stringify","REGEX","esm_browser_v4","v4","buf","rnds","stateChangeExpr","_position","_onStart","triggerMicrotask","AnimationGroupPlayer","_players","doneCount","destroyCount","startCount","timeAtPosition","longestPlayer","longestSoFar","_DOM","getDOM","setRootDomAdapter","adapter","DomAdapter","PlatformLocation","historyGo","relativePosition","BrowserPlatformLocation","LOCATION_INITIALIZED","getBaseHrefFromDOM","getBaseHref","onPopState","getGlobalEventTarget","onHashChange","newPath","forward","go","getState","joinWithSlash","slashes","pathEndIdx","normalizeQueryParams","LocationStrategy","PathLocationStrategy","_platformLocation","_removeListenerFns","_baseHref","prepareExternalUrl","includeHash","externalUrl","HashLocationStrategy","locationStrategy","_urlChangeListeners","_urlChangeSubscription","_locationStrategy","baseHref","_basePath","_stripOrigin","_stripIndexHtml","ev","isCurrentPathEqualTo","_stripBasePath","strippedUrl","_notifyUrlChangeListeners","onUrlChange","fnIndex","onNext","onThrow","onReturn","createLocation","ɵɵinject","NumberFormatStyle","Decimal","Percent","Currency","Scientific","FormStyle","Format","Standalone","TranslationWidth","Narrow","Abbreviated","Wide","Short","FormatWidth","Medium","Long","Full","NumberSymbol","List","PercentSign","PlusSign","MinusSign","Exponential","SuperscriptingExponent","PerMille","TimeSeparator","CurrencyDecimal","CurrencyGroup","getLocaleDateFormat","getLastDefinedValue","ɵfindLocaleData","ɵLocaleDataIndex","getLocaleTimeFormat","TimeFormat","getLocaleDateTimeFormat","dateTimeFormatData","DateTimeFormat","getLocaleNumberSymbol","symbol","NumberSymbols","checkFullData","ExtraData","LocaleId","extractTime","ISO8601_DATE_REGEX","NAMED_FORMATS","DATE_FORMATS_SPLIT","ZoneWidth","ShortGMT","Extended","DateType","FullYear","Month","Hours","Minutes","Seconds","FractionalSeconds","Day","TranslationType","DayPeriods","Days","Months","Eras","format","timezone","toDate","createDate","parsedNb","isoStringToDate","tzHour","tzMin","dateSetter","setUTCFullYear","setFullYear","timeSetter","setUTCHours","setHours","getNamedFormat","dateTimezoneOffset","timezoneToOffset","convertTimezoneToLocal","reverseValue","addDateMinutes","setMinutes","dateFormatter","getDateFormatter","DATE_FORMATS","formatter","dateStrGetter","dateGetter","weekNumberingYearGetter","weekGetter","timeZoneGetter","year","month","newDate","localeId","getLocaleId","formatValue","shortTime","shortDate","formatDateTime","mediumTime","mediumDate","longTime","longDate","fullTime","fullDate","opt_values","digits","minusSign","negWrap","neg","strNum","getDatePart","getDay","formatFractionalSeconds","milliseconds","localeMinus","form","getDateTranslation","getLocaleMonthNames","formStyle","months","MonthsFormat","MonthsStandalone","getLocaleDayNames","DaysFormat","DaysStandalone","currentHours","currentMinutes","rules","getLocaleExtraDayPeriodRules","rule","dayPeriods","getLocaleExtraDayPeriods","afterFrom","beforeTo","getLocaleDayPeriods","amPm","DayPeriodsFormat","DayPeriodsStandalone","getLocaleEraNames","erasData","JANUARY","THURSDAY","getThursdayThisIsoWeek","datetime","currentDay","deltaToThursday","monthBased","nbDaysBefore1stDayOfMonth","today","thisThurs","firstThurs","getFirstThursdayOfYear","firstDayOfYear","diff","fallback","requestedTimezoneOffset","NUMBER_FORMAT_REGEXP","parseIntAutoRadix","parseCookieValue","cookieStr","eqIndex","cookieName","WS_REGEXP","EMPTY_ARRAY","NgClass","_ngEl","_renderer","initialClasses","klass","ngClass","rawClass","ngDoCheck","_updateState","_applyStateDiff","nextEnabled","changed","touched","stateEntry","_toggleClass","ɵdir","NgForOfContext","ngForOf","even","odd","NgForOf","_ngForOf","_ngForOfDirty","ngForTrackBy","_trackByFn","_viewContainer","_template","_differs","_differ","ngForTemplate","_applyChanges","viewContainer","forEachOperation","adjustedPreviousIndex","currentIndex","previousIndex","createEmbeddedView","move","applyViewChange","ilen","forEachIdentityChange","record","ngTemplateContextGuard","dir","NgIf","templateRef","NgIfContext","_thenTemplateRef","_elseTemplateRef","_thenViewRef","_elseViewRef","ngIf","_updateView","ngIfThen","assertTemplate","ngIfElse","ɵstringify","SwitchView","_viewContainerRef","_templateRef","enforceState","NgSwitch","_defaultViews","_defaultUsed","_caseCount","_lastCaseCheckIndex","_lastCasesMatched","ngSwitch","_ngSwitch","_updateDefaultCases","_addCase","_addDefault","_matchCase","matched","useDefault","defaultView","NgSwitchCase","_view","ngSwitchCase","NgStyle","_ngStyle","ngStyle","_setStyle","nameAndUnit","RendererStyleFlags2","DashCase","forEachRemovedItem","forEachAddedItem","forEachChangedItem","NgTemplateOutlet","_viewRef","ngTemplateOutletContext","ngTemplateOutlet","ngTemplateOutletInjector","_shouldRecreateView","viewContainerRef","viewContext","_createContextForwardProxy","_target","receiver","invalidPipeArgumentError","SubscribableStrategy","createSubscription","updateLatestValue","untracked","PromiseStrategy","_promiseStrategy","_subscribableStrategy","AsyncPipe","_latestValue","markForCheckOnValueUpdate","_subscription","_obj","_strategy","_ref","_dispose","_selectStrategy","_updateLatestValue","ɵisPromise","ɵisSubscribable","ɵpipe","DATE_PIPE_DEFAULT_TIMEZONE","DATE_PIPE_DEFAULT_OPTIONS","DatePipe","defaultTimezone","defaultOptions","DecimalPipe","_locale","digitsInfo","isValue","formatNumber","formatNumberToLocaleString","pattern","groupSymbol","decimalSymbol","isPercent","formattedText","isZero","parsedNumber","parseNumber","integerLen","zeros","numStr","exponent","MAX_DIGITS","toPercent","fractionLen","minInt","minFraction","minFrac","maxFraction","maxFrac","minIntPart","minFractionPart","maxFractionPart","roundNumber","fractionSize","roundAt","digit","dropTrailingZeros","minLen","carry","decimals","lgSize","gSize","negPre","negSuf","posPre","posSuf","parseNumberFormat","patternParts","positive","negative","positiveParts","integer","fraction","ch","trunkLen","getLocaleNumberFormat","NumberFormats","strToNumber","SlicePipe","supports","PLATFORM_BROWSER_ID","PLATFORM_SERVER_ID","isPlatformServer","ViewportScroller","ɵɵdefineInjectable","BrowserViewportScroller","NullViewportScroller","setOffset","getScrollPosition","scrollX","scrollToPosition","scrollToAnchor","elSelected","findAnchorFromDocument","documentResult","getElementsByName","createTreeWalker","attachShadow","treeWalker","NodeFilter","SHOW_ELEMENT","currentNode","shadowRoot","nextNode","scrollToElement","setHistoryScrollRestoration","scrollRestoration","rect","pageXOffset","anchor","XhrFactory","HttpHandler","HttpBackend","normalizedNames","lazyUpdate","lazyInit","maybeSetNormalizedName","setHeaderEntries","op","lcName","copyFrom","applyUpdate","base","toDelete","existing","headerValues","HttpUrlEncodingCodec","encodeKey","standardEncoding","encodeValue","decodeKey","decodeValue","STANDARD_ENCODING_REGEX","STANDARD_ENCODING_REPLACEMENTS","valueToString","updates","cloneFrom","encoder","fromObject","paramParser","rawParams","eqIdx","appendAll","eKey","HttpContext","isArrayBuffer","isBlob","isFormData","FormData","HttpRequest","third","fourth","reportProgress","withCredentials","mightHaveBody","transferCache","urlWithParams","qIdx","serializeBody","isUrlSearchParams","detectContentTypeHeader","setHeaders","setParams","HttpEventType","Sent","UploadProgress","ResponseHeader","DownloadProgress","Response","HttpResponseBase","defaultStatus","HttpStatusCode","Ok","defaultStatusText","HttpHeaderResponse","HttpResponse","Continue","SwitchingProtocols","Processing","EarlyHints","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","addBody","events$","res$","callbackParam","patch","interceptorChainEndFn","finalHandlerFn","adaptLegacyInterceptorToChain","chainTailFn","interceptor","initialRequest","downstreamRequest","HTTP_INTERCEPTOR_FNS","HTTP_ROOT_INTERCEPTOR_FNS","PRIMARY_HTTP_BACKEND","legacyInterceptorFnFactory","pendingTasks","ɵPendingTasks","taskId","foreignDocument","HttpInterceptorHandler","backend","primaryHttpBackend","dedupedInterceptorFns","nextSequencedFn","interceptorFn","chainedInterceptorFn","runInInjectionContext","nextRequestId","JsonpCallbackContext","jsonpCallbackContext","JsonpClientBackend","callbackMap","resolvedPromise","nextCallback","finished","cleanup","removeListeners","implementation","createHTMLDocument","adoptNode","jsonpInterceptorFn","XSSI_PREFIX","HttpXhrBackend","xhrFactory","ɵloadImpl","detectedType","reqBody","headerResponse","partialFromXhr","getAllResponseHeaders","getResponseUrl","onLoad","originalBody","onError","sentHeaders","onDownProgress","progressEvent","loaded","lengthComputable","partialText","onUpProgress","progress","upload","DONE","XSRF_ENABLED","XSRF_COOKIE_NAME","XSRF_HEADER_NAME","HttpXsrfTokenExtractor","HttpXsrfCookieExtractor","platform","lastCookieString","lastToken","parseCount","cookieString","ɵparseCookieValue","xsrfInterceptorFn","lcUrl","HttpFeatureKind","Interceptors","LegacyInterceptors","CustomXsrfConfiguration","NoXsrfProtection","JsonpSupport","RequestsMadeViaParent","Fetch","makeHttpFeature","ɵkind","ɵproviders","provideHttpClient","LEGACY_INTERCEPTOR_FN","withInterceptorsFromDi","withJsonpSupport","defaultEquals","is","activeConsumer","inNotificationPhase","epoch","SIGNAL","setActiveConsumer","REACTIVE_NODE","lastCleanEpoch","dirty","producerNode","producerLastReadVersion","producerIndexOfThis","nextProducerIndex","liveConsumerNode","liveConsumerIndexOfThis","consumerAllowSignalWrites","consumerIsAlwaysLive","producerMustRecompute","producerRecomputeValue","consumerMarkedDirty","consumerOnSignalRead","producerAccessed","assertConsumerNode","consumerIsLive","producerRemoveLiveConsumerAtIndex","producerAddLiveConsumer","producerUpdateValueVersion","consumerPollProducersForChange","producerNotifyConsumers","consumerMarkDirty","producerUpdatesAllowed","consumerBeforeComputation","consumerAfterComputation","prevConsumer","producer","seenVersion","indexOfThis","assertProducerNode","lastIdx","idxProducer","UNSET","COMPUTING","ERRORED","COMPUTED_NODE","equal","computation","throwInvalidWriteToSignalErrorFn","defaultThrowError","throwInvalidWriteToSignalError","postSignalSetFn","signalSetFn","signalValueChanged","producerIncrementEpoch","SIGNAL_NODE","XSS_SECURITY_URL","RuntimeError","formatRuntimeError","noSideEffects","PARAMETERS","makeParamDecorator","parentClass","metaCtor","makeMetadataCtor","ParamDecoratorFactory","annotationInstance","ParamDecorator","annotation","cls","unusedKey","parameters","ngMetadataName","annotationCls","getClosureSafeProperty","objWithPropertyToExtract","fillProperties","overriddenName","newLineIndex","concatStringsWithSpace","before","after","__forward_ref__","forwardRef","forwardRefFn","resolveForwardRef","isForwardRef","opts","ɵɵdefineInjector","getInjectableDef","getOwnDefinition","NG_PROV_DEF","NG_INJECTABLE_DEF","isInjectable","getInjectorDef","NG_INJ_DEF","NG_INJECTOR_DEF","ngInjectableDef","ngInjectorDef","_desc","__NG_ELEMENT_ID__","isEnvironmentProviders","NG_COMP_DEF","NG_DIR_DEF","NG_PIPE_DEF","NG_MOD_DEF","NG_FACTORY_DEF","NG_ELEMENT_ID","NG_ENV_ID","__NG_ENV_ID__","renderStringify","throwProviderNotFoundError","injectorName","InjectFlags","Host","Self","SkipSelf","Optional","_injectImplementation","getInjectImplementation","setInjectImplementation","impl","injectRootLimpMode","notFoundValue","injectableDef","THROW_IF_NOT_FOUND","DI_DECORATOR_FLAG","NG_TEMP_TOKEN_PATH","NEW_LINE","SOURCE","_currentInjector","setCurrentInjector","former","injectInjectorOnly","convertToBitFlags","injectArgs","types","meta","flag","getInjectFlag","attachInjectFlag","decorator","getFactoryDef","throwNotFound","deepForEach","addToArray","removeFromArray","keyValueArraySet","keyValueArray","keyValueArrayIndexOf","arrayInsert2","keyValueArrayGet","_arrayIndexOfSorted","middle","EMPTY_OBJ","INJECTOR$1","INJECTOR_DEF_TYPES","NullInjector","ChangeDetectionStrategy","OnPush","ViewEncapsulation$1","ViewEncapsulation","Emulated","ShadowDom","InputFlags","SignalBased","classIndexOf","classToSearch","startingIndex","foundIndex","setUpAttributes","native","attrs","namespaceURI","attrVal","isAnimationProp","isNameOnlyAttributeMarker","marker","mergeHostAttrs","dst","srcMarker","mergeHostAttribute","markerInsertPosition","dstValue","NG_TEMPLATE_SELECTOR","isCssClassMatching","tNode","cssClassToMatch","isProjectionMode","isInlineTemplate","hasTagAndTypeMatch","currentSelector","isNodeMatchingSelector","mode","nodeAttrs","nameOnlyMarkerIdx","getNameOnlyMarkerIndex","skipToNextSelector","isPositive","selectorAttrValue","attrIndexInNode","findAttrIndexInNode","nodeAttrValue","bindingsMode","maybeAttrName","matchTemplateAttribute","attr","isNodeMatchingSelectorList","isSelectorInSelectorList","selectorListLoop","currentSelectorInList","maybeWrapInNotSelector","isNegativeMode","chunk","stringifyCSSSelector","currentChunk","valueOrMarker","attrValue","ɵɵdefineComponent","componentDefinition","baseDef","getNgDirectiveDef","onPush","directiveDefs","pipeDefs","getStandaloneInjector","signals","schemas","tView","initFeatures","extractDefListOrFactory","getComponentId","componentDef","hashSelectors","exportAs","contentQueries","imul","extractDirectiveDef","getComponentDef","getDirectiveDef","nonNull","ɵɵdefineNgModule","declarations","transitiveCompileScopes","parseAndConvertBindingsForDefinition","declaredInputs","newLookup","minifiedKey","publicName","declaredName","inputFlags","ɵɵdefineDirective","directiveDefinition","ɵɵdefinePipe","pipeDef","getPipeDef$1","isStandalone","getNgModuleDef","ngModuleDef","providersResolver","inputTransforms","inputConfig","setInput","findHostDirectiveDefs","hostDirectives","debugInfo","definition","defExtractor","dep","importProvidersFrom","internalImportProvidersFrom","ɵfromNgModule","checkForStandaloneCmp","providersOut","dedup","injectorTypesWithProviders","collectProviders","internalSource","walkProviderTree","processInjectorTypesWithProviders","typesWithProviders","deepForEachProvider","parents","defType","injDef","cmpDef","isDuplicate","importTypesWithProviders","imported","defProviders","injectorType","USE_VALUE$1","isTypeProvider","INJECTOR_SCOPE","NOT_YET","CIRCULAR","NULL_INJECTOR","getNullInjector","EnvironmentInjector","R3Injector","records","_ngOnDestroyHooks","_onDestroyHooks","forEachSingleProvider","processProvider","makeRecord","injectorDefTypes","assertNotDestroyed","setActiveConsumer$1","service","onDestroyHooks","removeOnDestroy","runInContext","previousInjector","previousInjectImplementation","couldBeInjectableType","injectableDefInScope","injectableDefOrInjectorDefFactory","hydrate","catchInjectorError","injectorErrorName","tokenPath","resolveInjectorInitializers","providerToRecord","providerToFactory","multiRecord","hasOnDestroy","destroyCBIdx","getUndecoratedInjectableFactory","inheritedInjectableDef","getInheritedInjectableDef","ngModuleType","unwrappedProvider","isExistingProvider","classRef","hasDeps","prevInjector","isInInjectionContext","getCurrentInjector","debugFn","HOST","TVIEW","FLAGS","PARENT","NEXT","T_HOST","HYDRATION","CLEANUP","CONTEXT","INJECTOR","ENVIRONMENT","RENDERER","CHILD_HEAD","CHILD_TAIL","DECLARATION_VIEW","DECLARATION_COMPONENT_VIEW","DECLARATION_LCONTAINER","PREORDER_HOOK_FLAGS","QUERIES","ID","EMBEDDED_VIEW_INJECTOR","ON_DESTROY_HOOKS","EFFECTS_TO_SCHEDULE","REACTIVE_TEMPLATE_CONSUMER","HEADER_OFFSET","TYPE","NATIVE","MOVED_VIEWS","CONTAINER_HEADER_OFFSET","LContainerFlags","HasTransplantedViews","isLView","isLContainer","isContentQueryHost","isComponentHost","componentOffset","isDirectiveHost","isComponentDef","isRootView","firstChange","applyValueToInputField","inputSignalNode","privateName","applyValueToInputSignal","ɵɵNgOnChangesFeature","NgOnChangesFeatureImpl","ngOnChangesSetInput","rememberChangeHistoryAndInvokeOnChangesHook","simpleChangesStore","getSimpleChangesStore","setSimpleChangesStore","SIMPLE_CHANGES_STORE","previousChange","ngInherit","profiler","hookOrListener","SVG_NAMESPACE","_ensureDirtyViewsAreAlwaysReachable","unwrapRNode","getNativeByIndex","lView","getNativeByTNode","getTNode","getComponentLViewByIndex","nodeIndex","slotValue","viewAttachedToChangeDetector","getConstant","resetPreOrderHookFlags","markViewForRefresh","markAncestorsForTraversal","requiresRefreshOrTraversal","updateAncestorTraversalFlagsOnAttach","changeDetectionScheduler","getEnsureDirtyViewsAreAlwaysReachable","getLViewParent","storeLViewOnDestroy","onDestroyCallback","instructionState","lFrame","createLFrame","bindingsEnabled","skipHydrationRootTNode","getBindingsEnabled","isInSkipHydrationBlock$1","getLView","getTView","ɵɵrestoreView","viewToRestore","contextLView","ɵɵresetView","getCurrentTNode","currentTNode","getCurrentTNodePlaceholderOk","setCurrentTNode","isParent","isCurrentTNodeParent","setCurrentTNodeAsNotParent","getBindingRoot","bindingRootIndex","bindingStartIndex","getBindingIndex","bindingIndex","nextBindingIndex","incrementBindingIndex","setBindingRootForHostBindings","currentDirectiveIndex","setCurrentDirectiveIndex","getCurrentQueryIndex","setCurrentQueryIndex","getDeclarationTNode","declTNode","enterDI","parentTNode","parentLView","allocLFrame","enterView","newView","newLFrame","inI18n","currentLFrame","childLFrame","child","selectedIndex","elementDepthCount","currentNamespace","leaveViewLight","oldLFrame","leaveDI","leaveView","getSelectedIndex","setSelectedIndex","getSelectedTNode","ɵɵnamespaceSVG","ɵɵnamespaceHTML","namespaceHTMLInternal","_wasLastNodeCreated","wasLastNodeCreated","lastNodeWasCreated","registerPostOrderHooks","directiveStart","directiveEnd","lifecycleHooks","ngAfterContentInit","ngAfterContentChecked","contentHooks","contentCheckHooks","viewHooks","viewCheckHooks","destroyHooks","executeCheckHooks","callHooks","executeInitAndCheckHooks","initPhase","incrementInitPhaseFlags","currentView","currentNodeIndex","nodeIndexLimit","lastNodeIndexFound","callHook","callHookInternal","directive","isInitHook","NO_PARENT_INJECTOR","NodeInjectorFactory","isViewProvider","injectImplementation","resolving","canSeeViewProviders","injectImpl","hasParentInjector","parentLocation","getParentInjectorIndex","getParentInjectorView","startView","viewOffset","getParentInjectorViewOffset","parentView","includeViewProviders","setIncludeViewProviders","BLOOM_MASK","BLOOM_BUCKET_BITS","nextNgElementId","NOT_FOUND","getOrCreateNodeInjectorForNode","existingInjectorIndex","getInjectorIndex","firstCreatePass","injectorIndex","insertBloom","blueprint","parentLoc","getParentInjectorLocation","parentIndex","parentData","declarationViewOffset","lViewCursor","getTNodeFromLView","diPublicInInjector","bloomAdd","bloomHash","notFoundValueOrThrow","lookupTokenUsingModuleInjector","moduleInjector","getOrCreateInjectable","embeddedInjectorValue","lookupTokenUsingEmbeddedInjector","currentLView","nodeInjectorValue","lookupTokenUsingNodeInjector","embeddedViewInjector","embeddedViewInjectorValue","bloomHashBitOrFactory","tokenId","createNodeInjector","previousTView","hostTElementNode","shouldSearchParent","bloomHasToken","searchTokensOnInjector","currentTView","injectableIdx","locateDirectiveOrProvider","getNodeInjectable","canAccessViewProviders","isHostSpecialCase","nodeProviderIndexes","providerIndexes","tInjectables","injectablesStart","directivesStart","cptViewProvidersCount","endIndex","providerTokenOrDef","dirDef","tData","isFactory","throwCyclicDependencyError","stringifyForError","previousIncludeViewProviders","registerPreOrderHooks","directiveIndex","directiveDef","wrappedOnChanges","preOrderHooks","preOrderCheckHooks","injectorView","isFirstHostTNode","NodeInjector","_tNode","_lView","ɵɵgetInheritedFactory","ownConstructor","ownFactory","getFactoryOf","objectPrototype","tViewType","ɵɵinjectAttribute","attrNameToInject","injectAttributeImpl","classes","attrsLength","createInjector","additionalProviders","createInjectorWithoutInjectorInstances","NULL","getOriginalError","_console","originalError","_findOriginalError","INTERNAL_APPLICATION_ERROR_HANDLER","injectDestroyRef","NodeInjectorDestroyRef","removeLViewOnDestroy","injectElementRef","createElementRef","ElementRef","unwrapElementRef","_wrapInTimeout","EventEmitter_","destroyRef","__isAsync","nextFn","errorFn","completeFn","symbolIterator","_results","QueryList","_changes","_emitDistinctChangesOnly","_onDirty","_changesDetected","resultsTree","identityAccessor","newResultFlat","flatten","arrayEquals","valueA","valueB","notifyOnChanges","onDirty","setDirty","hasInSkipHydrationBlockFlag","TRACKED_LVIEWS","uniqueIdCounter","MONKEY_PATCH_KEY_NAME","attachPatchData","registerLView","getFirstLContainer","getNearestLContainer","getNextLContainer","viewOrContainer","setDocument","APP_ID","DEFAULT_APP_ID","PLATFORM_INITIALIZER","_retrieveHydrationInfoImpl","retrieveHydrationInfo","rNode","PRESERVE_HOST_CONTENT","policy$1","policy","trustedHTMLFromString","html","getPolicy$1","trustedTypes","createPolicy","createHTML","createScript","createScriptURL","getPolicy","trustedHTMLFromStringBypass","trustedScriptURLFromStringBypass","SafeValueImpl","changingThisBreaksApplicationSecurity","SafeHtmlImpl","getTypeName","SafeStyleImpl","SafeScriptImpl","SafeUrlImpl","SafeResourceUrlImpl","unwrapSafeValue","allowSanitizationBypassAndThrow","actualType","getSanitizationBypassType","bypassSanitizationTrustHtml","trustedHtml","bypassSanitizationTrustStyle","trustedStyle","bypassSanitizationTrustScript","trustedScript","bypassSanitizationTrustUrl","trustedUrl","bypassSanitizationTrustResourceUrl","trustedResourceUrl","DOMParserHelper","inertDocumentHelper","getInertBodyElement","DOMParser","parseFromString","InertDocumentHelper","defaultDoc","inertDocument","templateEl","SAFE_URL_PATTERN","_sanitizeUrl","tagSet","sets","VOID_ELEMENTS","OPTIONAL_END_TAG_BLOCK_ELEMENTS","OPTIONAL_END_TAG_INLINE_ELEMENTS","VALID_ELEMENTS","URI_ATTRS","VALID_ATTRS","SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS","SanitizingHtmlSerializer","sanitizedSomething","sanitizeChildren","traverseContent","parentNodes","startElement","TEXT_NODE","nodeValue","getFirstChild","endElement","getNextSibling","getNodeName","elAttrs","elAttr","lower","encodeEntities","previousSibling","clobberedElementError","isClobberedElement","childNode","compareDocumentPosition","DOCUMENT_POSITION_CONTAINED_BY","nodeName","SURROGATE_PAIR_REGEXP","NON_ALPHANUMERIC_REGEXP","inertBodyHelper","_sanitizeHtml","unsafeHtmlInput","inertBodyElement","getInertBodyHelper","isDOMParserAvailable","unsafeHtml","mXSSAttempts","parsedHtml","getTemplateContent","isTemplateElement","SecurityContext","HTML","STYLE","SCRIPT","RESOURCE_URL","ɵɵsanitizeHtml","getSanitizer","ɵɵsanitizeStyle","unsafeStyle","ɵɵsanitizeUrl","unsafeUrl","ɵɵsanitizeResourceUrl","unsafeResourceUrl","ɵɵsanitizeUrlOrResourceUrl","getUrlSanitizer","COMMENT_DISALLOWED","COMMENT_DELIMITER","COMMENT_DELIMITER_ESCAPED","ɵɵresolveWindow","ownerDocument","ɵɵresolveDocument","maybeUnwrapFn","Important","_icuContainerIterate","icuContainerIterate","tIcuContainerNode","applyToElementOrContainer","lNodeToHandle","beforeNode","lContainer","nativeAppendChild","nativeInsertBefore","nativeRemoveNode","nativeParent","nativeParentNode","nativeRemoveChild","applyContainer","parentRElement","applyView","createCommentNode","escapeCommentText","createElementNode","detachViewFromDOM","detachMovedView","declarationContainer","movedViews","declarationViewIndex","detachView","removeIndex","indexInContainer","viewToDetach","declarationLContainer","removedLView","removeViewFromDOM","lQueries","destroyLView","destroyViewTree","rootView","lViewOrLContainer","cleanUpView","firstView","consumerDestroy","consumerDestroy$1","executeOnDestroys","toCall","callContext","processCleanups","tCleanup","lCleanup","targetIdx","destroyHooksFn","unregisterLView","getParentRElement","getClosestRElement","nativeAppendOrInsertBefore","getInsertInFrontOfRNode","_getInsertInFrontOfRNodeWithI18n","_processI18nInsertBefore","getInsertInFrontOfRNodeWithNoI18n","childRNode","childTNode","parentRNode","anchorNode","getFirstNativeNode","tNodeType","getBeforeNodeForView","elIcuContainerChild","rNodeOrLContainer","projectionNodes","getProjectionNodes","projection","viewIndexInContainer","nextViewIndex","firstTNodeOfView","applyNodes","isProjection","rawSlotValue","nextRNode","applyProjectionRecursive","projectionNext","tProjectionNode","componentLView","nodeToProjectOrRNodes","nodeToProject","projectedComponentLView","writeDirectClass","setupStaticAttributes","mergedAttrs","writeDirectStyle","NO_CHANGE","ɵɵadvance","delta","selectIndexInternal","checkNoChangesMode","ɵɵdirectiveInject","ɵɵinvalidFactory","writeToDirectiveInput","SIGNAL$1","transformFn","createLView","tHostNode","hydrationInfo","getUniqueLViewId","getOrCreateTNode","createTNodeAtIndex","createTNode","tParent","insertBeforeIndex","directiveStylingLast","propertyBindings","localNames","initialInputs","stylesWithoutHost","residualStyles","classesWithoutHost","residualClasses","classBindings","styleBindings","isInI18nBlock","getCurrentParentTNode","allocExpando","numSlotsToAlloc","allocIdx","executeTemplate","templateFn","prevSelectedIndex","isUpdatePhase","executeContentQueries","createDirectivesInstances","instantiateAllDirectives","addComponentLogic","hostTNode","getOrCreateComponentTView","lViewFlags","componentView","addToViewTree","rendererFactory","setInputsFromAttrs","invokeDirectivesHostBindings","saveResolvedLocalsInData","viewData","localRefExtractor","localIndex","incompleteFirstPass","createTView","directives","pipes","constsOrFactory","ssrId","initialViewLength","createViewBlueprint","queries","expandoStartIndex","hostBindingOpCodes","firstUpdatePass","staticViewQueries","staticContentQueries","components","directiveRegistry","pipeRegistry","_applyRootElementTransformImpl","captureNodeBindings","aliasMap","bindingsResult","hostDirectiveAliasMap","internalName","finalPublicName","addPropertyBinding","bindings","elementPropertyInternal","nativeOnly","dataValue","inputData","setInputsForProperty","markDirtyIfOnPush","viewIndex","childComponentLView","mapPropName","resolveDirectives","localRefs","exportsMap","matchResult","findDirectiveDefMatches","hostDirectiveDefs","hostDirectiveMatches","markAsComponentHost","initializeDirectives","cacheMatchingLocalNames","initTNodeFlags","numberOfDirectives","preOrderHooksFound","preOrderCheckHooksFound","directiveIdx","configureViewWithDirective","saveNameToExportMap","lifeCycleHooks","initializeInputAndOutputAliases","hostDirectiveDefinitionMap","tViewData","tNodeAttrs","inputsFromAttrs","inputsStore","outputsStore","aliasData","aliasedOutputs","generateInitialInputs","elementIndex","getCurrentDirectiveIndex","dirIndex","invokeHostBindingsInCreationMode","directiveFactory","nodeInjectorFactory","registerHostBindingOpCodes","directiveVarsIdx","elementIndx","lastSelectedElementIdx","elementAttributeInternal","setElementAttribute","initialInputData","inputsToStore","createLContainer","hostNative","refreshContentQueries","directiveDefIdx","executeViewQueryFn","viewQueryFn","getOrCreateLViewCleanup","getOrCreateTViewCleanup","textBindingInternal","updateTextNode","renderComponent","hostLView","componentHostIdx","componentTView","syncViewWithBlueprint","hostRNode","renderView","finishViewCreation","renderChildComponents","createAndRenderEmbeddedLView","declarationLView","templateTNode","embeddedTView","embeddedLView","dehydratedView","declarationViewLQueries","shouldAddViewToDom","addLViewToLContainer","addToDOM","insertView","containerLength","trackMovedView","addViewToDOM","parentNativeNode","collectNativeNodes","lNode","collectNativeNodesInLContainer","nodesInSlot","lViewInAContainer","lViewFirstChildTNode","freeConsumers","REACTIVE_LVIEW_CONSUMER_NODE","REACTIVE_NODE$1","MAXIMUM_REFRESH_RERUNS","detectChangesInternal","notifyErrorHandler","detectChangesInViewWhileDirty","detectChangesInView$1","retries","inlineEffectRunner","refreshView","currentConsumer","viewShouldHaveReactiveConsumer","getOrBorrowReactiveLViewConsumer","borrowReactiveLViewConsumer","consumerBeforeComputation$1","setBindingIndex","hooksInitPhaseCompleted","markTransplantedViewsForRefresh","detectChangesInEmbeddedViews","processHostBindingOpCodes","opCode","bindingRootIndx","hostBindingFn","detectChangesInChildComponents","notifyEffect","consumerAfterComputation$1","maybeReturnReactiveLViewConsumer","detectChangesInViewIfAttached","detectChangesInComponent","shouldRefreshView","consumerPollProducersForChange$1","markViewDirty","ViewRef$1","rootNodes","_cdRefInjectingView","_appRef","_attachedToViewContainer","viewRefs","detach","reattach","checkNoChanges","attachToViewContainerRef","detachFromAppRef","attachToAppRef","TemplateRef","injectTemplateRef","ViewEngineTemplateRef","R3TemplateRef","_declarationLView","_declarationTContainer","createEmbeddedViewImpl","createTemplateRef","_findMatchingDehydratedViewImpl","findMatchingDehydratedView","ChangeDetectionScheduler","ComponentRef$1","ComponentFactory$1","_NullComponentFactoryResolver","noComponentFactoryError","ComponentFactoryResolver$1","Renderer2","injectRenderer2","nodeAtIndex","Sanitizer","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","assertNotInReactiveContext","extraContext","getActiveConsumer","getActiveConsumer$1","markedFeatures","performanceMarkFeature","enableLongStackTrace","shouldCoalesceEventChangeDetection","shouldCoalesceRunChangeDetection","hasPendingMacrotasks","hasPendingMicrotasks","isStable","onUnstable","onMicrotaskEmpty","onStable","assertZonePatched","_nesting","_outer","_inner","TaskTrackingZoneSpec","longStackTraceZoneSpec","lastRequestAnimationFrameId","nativeRequestAnimationFrame","getNativeRequestAnimationFrame","isBrowser","nativeCancelAnimationFrame","unpatchedRequestAnimationFrame","__symbol__","unpatchedCancelAnimationFrame","forkInnerZoneWithAngularBehavior","delayChangeDetectionForEventsDelegate","delayChangeDetectionForEvents","isCheckStableRunning","fakeTopEventTask","scheduleEventTask","updateMicroTaskStatus","checkStable","invoke","isAngularZone","onInvokeTask","task","applyThis","applyArgs","shouldBeIgnoredByZone","__ignore_ng_zone__","invokeTask","onEnter","onLeave","onInvoke","onHasTask","hasTaskState","hasTask","_hasPendingMicrotasks","microTask","macroTask","onHandleError","assertInAngularZone","assertNotInAngularZone","runTask","EMPTY_PAYLOAD","cancelTask","runGuarded","NoopNgZone","AfterRenderPhase","EarlyRead","Write","MixedReadWrite","Read","NOOP_AFTER_RENDER_REF","afterNextRender","afterRenderEventManager","AfterRenderEventManager","callbackHandler","AfterRenderCallbackHandlerImpl","unregister","unregisterFn","AfterRenderCallback","callbackFn","executingCallbacks","buckets","deferredCallbacks","bucket","internalCallbacks","executeInternalCallbacks","isNgModule","computeStaticStyling","writeToHost","ComponentFactory","toRefArray","ChainedInjector","parentInjector","refArray","stringifyCSSSelectorList","selectorList","isBoundToModule","rootSelectorOrNode","environmentInjector","realEnvironmentInjector","rootViewInjector","hostRenderer","elementName","locateHostElement","elementOrSelector","applyRootElementTransform","getNamespace","rootFlags","rootTView","rootLView","tElementNode","rootComponentDef","rootDirectives","createRootComponentTNode","createRootComponentView","applyRootComponentStyling","viewRenderer","setRootNodeAttributes","extractAttrsAndClassesFromSelector","projectNodes","nodesforSlot","createRootComponent","hostFeatures","rootTNode","LifecycleHooksFeature","ComponentRef","_rootLView","previousInputValues","ViewContainerRef","injectViewContainerRef","createContainerRef","VE_ViewContainerRef","R3ViewContainerRef","_lContainer","_hostTNode","_hostLView","getViewRefs","indexOrOptions","viewRef","insertImpl","createComponent","componentFactoryOrType","isComponentFactory","isType","ngModuleRef","contextInjector","insert","viewAttachedToContainer","prevIdx","prevLContainer","prevVCRef","adjustedIdx","_adjustIndex","getOrCreateViewRefs","newIndex","viewRefsArr","detachedView","_locateOrCreateAnchorNode","createAnchorNode","commentNode","insertAnchorNode","nativeNextSibling","_populateDehydratedViewsInLContainer","LQuery_","queryList","LQueries_","tQueries","noOfInheritedQueries","viewLQueries","tQuery","getByIndex","indexInDeclarationView","dirtyQueriesWithMatches","getTQuery","TQueryMetadata_","splitQueryMultiSelectors","locator","TQueries_","elementStart","elementEnd","queriesForTemplateRef","childQueryIndex","tqueryClone","tquery","TQuery_","crossesNgTemplate","_appliesToNextNode","_declarationNodeIndex","isApplyingToNode","matchTNode","addMatch","declarationNodeIdx","matchTNodeWithReadOption","getIdxOfMatchingSelector","nodeMatchIdx","directiveOrProviderIdx","tNodeIdx","matchIdx","createResultForNode","matchingIdx","createResultByTNodeType","createSpecialToken","materializeViewResults","queryIndex","lQuery","tQueryMatches","matchedNodeIdx","collectQueryResults","lViewResults","embeddedLViews","createLQuery","storeCleanupWithContext","cleanupFn","createTQuery","getQueryResults","signalFn","createSignal","getter","createSignal$1","signalSetFn$1","updateFn","signalUpdateFn","updater","signalUpdateFn$1","asReadonly","signalAsReadonlyFn","readonlyFn","isWritableSignal","isSignal","ɵɵInheritDefinitionFeature","superType","getSuperType","shouldInheritFields","inheritanceChain","superDef","writeableDef","maybeUnwrapEmpty","superHostBindings","inheritHostBindings","superViewQuery","superContentQueries","inheritViewQuery","inheritContentQueries","mergeInputsWithTransforms","defData","mergeHostAttrsAcrossInheritance","minifiedName","prevViewQuery","prevContentQueries","prevHostBindings","ɵɵInputTransformsFeature","NgModuleRef$1","NgModuleFactory$1","createNgModule","NgModuleRef","_bootstrapComponents","destroyCbs","componentFactoryResolver","_r3Injector","NgModuleFactory","moduleType","EnvironmentNgModuleRefAdapter","debugName","runEnvironmentInitializers","createEnvironmentInjector","PendingTasks","hasPendingTasks","_hasPendingTasks","isListLikeIterable","isJsObject","updateBinding","getBinding","bindingUpdated","bindingUpdated2","exp1","exp2","different","bindingUpdated3","exp3","bindingUpdated4","exp4","ɵɵtemplate","attrsIndex","localRefsIndex","adjustedIndex","templateFirstCreatePass","tViewConsts","_locateOrCreateContainerAnchor","populateDehydratedViewsInLContainer","createContainerAnchorImpl","ɵɵattribute","interpolation1","v0","suffix","interpolation2","v1","interpolation4","v2","v3","ɵɵattributeInterpolate1","interpolatedValue","ɵɵattributeInterpolate4","toTStylingRange","getTStylingRangePrev","tStylingRange","setTStylingRangePrevDuplicate","getTStylingRangeNext","setTStylingRangeNext","setTStylingRangeNextDuplicate","markDuplicates","tStylingKey","isPrevDir","tStylingAtIndex","isMap","cursor","foundDuplicate","tStyleRangeAtCursor","isStylingMatch","tStylingKeyCursor","parserState","textEnd","keyEnd","valueEnd","getLastParsedKey","getLastParsedValue","parseClassNameNext","consumeClassToken","consumeWhitespace","parseStyleNext","consumeStyleKey","consumeSeparator","consumeStyleValue","ch1","ch2","ch3","lastChIndex","consumeQuotedText","resetParserState","quoteCharCode","ɵɵproperty","setDirectiveInputsWhichShadowsStyling","isClassBased","ɵɵstyleProp","checkStylingProperty","ɵɵclassProp","styleStringParser","parseStyle","styleKeyValueArraySet","ɵɵclassMap","checkStylingMap","classKeyValueArraySet","classStringParser","parseClassName","stylingFirstUpdatePass","updateStyling","normalizeSuffix","stringParser","hasStylingInputShadow","isInHostBindings","staticPrefix","updateStylingMap","oldKeyValueArray","newKeyValueArray","oldIndex","oldKey","newKey","setKey","toStylingKeyValueArray","styleKeyValueArray","unwrappedValue","isHostBindings","wrapInStaticStylingKey","stylingKey","hostDirectiveDef","getCurrentDirectiveDef","residual","collectStylingFromTAttrs","collectStylingFromDirectives","templateStylingKey","getTemplateHeadTStylingKey","setTemplateHeadTStylingKey","collectResidual","insertTStylingBinding","tStylingKeyWithStatic","isHostBinding","isClassBinding","tBindings","tmplHead","tmplTail","isKeyDuplicateOfStatic","setTStylingRangePrev","markDuplicateOfResidualStyling","currentDirective","desiredMarker","currentMarker","stringKey","tRange","higherPriorityValue","getTStylingRangeNextDuplicate","findStylingValue","isStylingValuePresent","getTStylingRangePrevDuplicate","applyStyling","isPrevDirection","rawKey","containsStatics","isStylingMap","valueAtLViewIndex","ɵɵclassMapInterpolate1","ɵɵconditional","containerIndex","matchingTemplateIndex","getLContainer","removeLViewFromLContainer","getExistingTNode","getLViewFromLContainer","ɵɵelementStart","elementStartFirstCreatePass","_locateOrCreateElementNode","hasDirectives","isDetachedByI18n","getElementDepthCount","increaseElementDepthCount","ɵɵelementEnd","isSkipHydrationRootTNode","leaveSkipHydrationBlock","decreaseElementDepthCount","hasClassInput","hasStyleInput","ɵɵelement","getNamespace$1","ɵɵelementContainerStart","elementContainerStartFirstCreatePass","_locateOrCreateElementContainerNode","ɵɵelementContainerEnd","ɵɵelementContainer","ɵɵgetCurrentView","localeEn","plural","LOCALE_DATA","findLocaleData","normalizedLocale","normalizeLocale","getLocaleData","parentLocale","getLocalePluralCase","LocaleDataIndex","PluralCase","ng","common","locales","FirstDayOfWeek","WeekendRange","CurrencyCode","CurrencySymbol","CurrencyName","Currencies","Directionality","DEFAULT_LOCALE_ID","LOCALE_ID$1","ɵɵlistener","listenerFn","eventTargetResolver","listenerInternal","isTNodeDirectiveHost","processOutputs","lCleanupIndex","idxOrTargetGetter","existingListener","findExistingListener","cleanupEventName","listenerIdxInLCleanup","__ngLastListenerFn__","__ngNextListenerFn__","wrapListener","propsLength","executeListenerWithErrorHandling","wrapWithPreventDefault","wrapListenerIn_markDirtyAndPreventDefault","nextListenerFn","ɵɵnextContext","nextContextImpl","walkUpViews","nestingLevel","matchingProjectionSlotIndex","projectionSlots","wildcardNgContentIndex","ngProjectAsAttrVal","getProjectAsAttrValue","ngProjectAsAttrIdx","ɵɵprojectionDef","componentNode","projectionHeads","newArray","tails","componentChild","slotIndex","ɵɵprojection","selectorIndex","applyProjection","ɵɵpropertyInterpolate","ɵɵpropertyInterpolate1","ɵɵpropertyInterpolate2","ɵɵpropertyInterpolate4","ɵɵpropertyInterpolate5","interpolation5","ɵɵcontentQuery","createContentQuery","saveContentQueryAndDirectiveIndex","tViewContentQueries","ɵɵviewQuery","createViewQuery","ɵɵqueryRefresh","isCreationMode","ɵɵloadQuery","loadQueryInternal","ɵɵreference","getContextLView","ɵɵstyleMapInterpolate1","ɵɵstyleMap","ɵɵtext","textNative","_locateOrCreateTextNode","createTextNode","ɵɵtextInterpolate","ɵɵtextInterpolate1","interpolated","ɵɵtextInterpolate2","ɵɵtextInterpolate3","interpolation3","ɵɵtextInterpolate4","ɵɵtwoWayProperty","ɵɵtwoWayBindingSet","canWrite","ɵɵtwoWayListener","resolveProvider","lInjectablesBlueprint","providerFactory","beginIndex","existingFactoryIndex","registerDestroyHooksIfSupported","existingProvidersFactoryIndex","existingViewProvidersFactoryIndex","doesViewProvidersFactoryExist","multiFactory","factoryFn","componentProviders","multiFactoryAdd","multiViewProvidersFactoryResolver","multiProvidersFactoryResolver","contextIndex","indexInFactory","providerIsTypeProvider","providerIsClassProvider","existingCallbacksIndex","isComponentProvider","lData","multiResolve","factories","componentCount","multiProviders","ɵɵProvidersFeature","viewProviders","processProvidersFn","StandaloneService","_injector","cachedInjectors","getOrCreateStandaloneInjector","standaloneInjector","ɵɵStandaloneFeature","ɵɵsetComponentScope","ɵɵpureFunction0","slotOffset","pureFn","ɵɵpureFunction1","pureFunction1Internal","ɵɵpureFunction2","pureFunction2Internal","ɵɵpureFunction3","pureFunction3Internal","ɵɵpureFunction5","exp5","getPureFunctionReturnValue","returnValueIndex","lastReturnValue","bindingRoot","ɵɵpipe","pipeName","getPipeDef","pipeFactory","pipeInstance","ɵɵpipeBind1","isPure","ɵɵpipeBind2","ɵɵpipeBind3","ɵɵtemplateRefExtractor","major","minor","TESTABILITY","TESTABILITY_GETTER","_testabilityGetter","Testability","testabilityGetter","_pendingCount","_isZoneStable","taskTrackingZone","setTestabilityGetter","addToWindow","_watchAngularEvents","_runCallbacksIfReady","increasePendingRequestCount","decreasePendingRequestCount","timeoutId","doneCb","getPendingTasks","updateCb","macroTasks","creationLocation","addCallback","whenStable","getPendingRequestCount","registerApplication","unregisterApplication","findProviders","exactMatch","TestabilityRegistry","_applications","testability","unregisterAllApplications","getTestability","getAllTestabilities","getAllRootElements","findTestabilityInTree","findInAncestors","isSubscribable","ApplicationInitStatus","donePromise","appInits","runInitializers","asyncInitPromises","initResult","observableAsPromise","APP_BOOTSTRAP_LISTENER","optionsReducer","objs","_bootstrapListeners","_runningTick","_destroyListeners","_views","internalErrorHandler","afterRenderEffectManager","externalTestViews","beforeRender","afterTick","componentTypes","componentOrFactory","cf","compRef","_loadComponent","tick","_tick","refreshViews","detectChangesInAttachedViews","runs","isFirstPass","detectChangesInViewIfRequired","shouldRecheckView","viewCount","warnIfDestroyed","detectChangesInView","ModuleWithComponentFactories","ngModuleFactory","componentFactories","Compiler","compileModuleSync","compileModuleAsync","compileModuleAndAllComponentsSync","declaration","compileModuleAndAllComponentsAsync","clearCache","clearCacheFor","getModuleId","NgZoneChangeDetectionScheduler","applicationRef","_onMicrotaskEmptySubscription","ngZoneApplicationErrorHandlerFactory","userErrorHandler","ZoneStablePendingTask","getGlobalLocale","$localize","DEFAULT_CURRENCY_CODE","PLATFORM_DESTROY_LISTENERS","PlatformRef","_modules","bootstrapModuleFactory","moduleFactory","getNgZone","ngZoneToUse","getNgZoneOptions","eventCoalescing","runCoalescing","ngZoneEventCoalescing","ngZoneRunCoalescing","moduleRef","createNgModuleRefWithProviders","internalProvideZoneChangeDetection","ngZoneFactory","ngZoneChangeDetectionScheduler","exceptionHandler","_callAndReportToErrorHandler","initStatus","setLocaleId","_moduleDoBootstrap","compilerOptions","compileNgModuleFactory","destroyListeners","_platformInjector","ALLOW_MULTIPLE_PLATFORMS","createPlatformFactory","parentPlatformFactory","desc","extraProviders","getPlatform","platformProviders","createPlatform","publishSignalConfiguration","setThrowInvalidWriteToSignalError","setThrowInvalidWriteToSignalError$1","runPlatformInitializers","createPlatformInjector","assertPlatform","requiredToken","injectChangeDetectorRef","createViewRef","isPipe","DefaultIterableDifferFactory","DefaultIterableDiffer","trackByIdentity","_linkedRecords","_unlinkedRecords","_previousItHead","_itHead","_itTail","_additionsHead","_additionsTail","_movesHead","_movesTail","_removalsHead","_removalsTail","_identityChangesHead","_identityChangesTail","forEachItem","nextIt","nextRemove","addRemoveOffset","moveOffsets","getPreviousIndex","adjPreviousIndex","_nextRemoved","localMovePreviousIndex","localCurrentIndex","forEachPreviousItem","_nextPrevious","_nextAdded","forEachMovedItem","_nextMoved","_nextIdentityChange","collection","check","_reset","itemTrackBy","mayBeDirty","trackById","_verifyReinsertion","_addIdentityChange","_mismatch","iterateListLike","_truncate","isDirty","previousRecord","_prev","_remove","_reinsertAfter","_moveAfter","_addAfter","IterableChangeRecord_","reinsertRecord","_addToMoves","nextRecord","_addToRemovals","_unlink","prevRecord","_prevRemoved","_insertAfter","_DuplicateMap","toIndex","_prevDup","_nextDup","_DuplicateItemRecordList","_head","_tail","atOrAfterIndex","recordList","moveOffset","DefaultKeyValueDifferFactory","DefaultKeyValueDiffer","_records","_mapHead","_appendAfter","_previousMapHead","_changesHead","_changesTail","_nextChanged","_forEach","_maybeAddToChanges","_getOrCreateRecordForKey","_insertBeforeOrAppend","KeyValueChangeRecord_","_addToAdditions","_addToChanges","defaultIterableDiffersFactory","IterableDiffers","copied","defaultKeyValueDiffersFactory","KeyValueDiffers","platformCore","ApplicationModule","fallbackValue","createComputed","createComputed$1","nonReactiveReadsFn","reflectComponentType","BaseControlValueAccessor","_elementRef","onChange","onTouched","registerOnTouched","registerOnChange","setDisabledState","BuiltInControlValueAccessor","ɵBuiltInControlValueAccessor_BaseFactory","NG_VALUE_ACCESSOR","DEFAULT_VALUE_ACCESSOR","DefaultValueAccessor","COMPOSITION_BUFFER_MODE","_compositionMode","_composing","_isAndroid","ɵgetDOM","getUserAgent","writeValue","_handleInput","_compositionStart","_compositionEnd","NG_VALIDATORS","NG_ASYNC_VALIDATORS","nullValidator","control","mergeErrors","arrayOfErrors","executeValidators","validators","normalizeValidators","isValidatorFn","composeValidators","presentValidators","composeAsyncValidators","composeAsync","mergeValidators","controlValidators","dirValidator","makeValidatorsArray","hasValidator","addValidators","currentValidators","validatorsToAdd","removeValidators","AbstractControlDirective","_rawValidators","_rawAsyncValidators","_onDestroyCallbacks","valid","invalid","pristine","untouched","statusChanges","valueChanges","_setValidators","_composedValidatorFn","_setAsyncValidators","_composedAsyncValidatorFn","asyncValidator","_registerOnDestroy","_invokeOnDestroyCallbacks","errorCode","getError","ControlContainer","formDirective","NgControl","valueAccessor","AbstractControlStatus","cd","_cd","isTouched","isUntouched","isPristine","isInvalid","isPending","isSubmitted","submitted","NgControlStatus","VALID","INVALID","PENDING","DISABLED","isOptionsObj","validatorOrOpts","AbstractControl","asyncValidators","_pendingDirty","_hasOwnPendingAsyncValidator","_pendingTouched","_onCollectionChange","_onDisabledChange","_assignValidators","_assignAsyncValidators","validatorFn","asyncValidatorFn","updateOn","_updateOn","setValidators","setAsyncValidators","addAsyncValidators","removeAsyncValidators","hasAsyncValidator","clearValidators","clearAsyncValidators","markAsTouched","onlySelf","markAllAsTouched","_forEachChild","markAsUntouched","_updateTouched","markAsDirty","markAsPristine","_updatePristine","markAsPending","emitEvent","skipPristineCheck","_parentMarkedDirty","_updateValue","_updateAncestors","changeFn","updateValueAndValidity","setParent","getRawValue","_setInitialStatus","_cancelExistingSubscription","_runValidator","_calculateStatus","_runAsyncValidator","_updateTreeValidity","ctrl","_allControlsDisabled","_asyncValidationSubscription","setErrors","_updateControlsErrors","currPath","_initObservables","_anyControlsHaveStatus","_anyControls","_anyControlsDirty","_anyControlsTouched","_registerOnCollectionChange","_setUpdateStrategy","coerceToValidator","coerceToAsyncValidator","CALL_SET_DISABLED_STATE","setDisabledStateDefault","setUpControl","callSetDisabledState","setUpValidators","getControlValidators","getControlAsyncValidators","onValidatorChange","registerOnValidatorChange","setUpViewChangePipeline","_pendingValue","_pendingChange","updateControl","setUpModelChangePipeline","emitModelEvent","viewToModelUpdate","_unregisterOnChange","setUpBlurPipeline","setUpDisabledChangeHandler","onDisabledChange","registerOnDisabledChange","_unregisterOnDisabledChange","emitModelToViewChange","removeListItem","isFormControlState","formState","FormControl","pickValidators","pickAsyncValidators","_onChange","_applyFormState","nonNullable","initialValueIsDefault","emitViewToModelChange","patchValue","_syncPendingControls","formControlBinding$1","NgModel","valueAccessors","_registered","selectValueAccessor","defaultAccessor","builtinAccessor","customAccessor","isBuiltInAccessor","_checkForErrors","_checkName","oldName","removeControl","_getPath","_setUpControl","_updateDisabled","isPropertyUpdated","viewModel","_isStandalone","_setUpStandalone","addControl","_checkParentType","disabledValue","controlName","controlPath","RADIO_VALUE_ACCESSOR","RadioControlValueAccessor","RadioControlRegistry","_accessors","accessor","_isSameGroup","fireUncheck","controlPair","_control","setDisabledStateFired","_fn","formControlName","RANGE_VALUE_ACCESSOR","RangeValueAccessor","ɵRangeValueAccessor_BaseFactory","AbstractValidatorDirective","inputName","normalizeInput","createValidator","MAX_LENGTH_VALIDATOR","MaxLengthValidator","toInteger","maxlength","maxLengthValidator","hasValidLength","requiredLength","actualLength","ɵMaxLengthValidator_BaseFactory","ɵInternalFormsSharedModule","GenericBrowserDomAdapter","ɵDomAdapter","supportsDOMEvents","BrowserDomAdapter","makeCurrent","ɵsetRootDomAdapter","onAndCancel","getDefaultDocument","createHtmlDocument","isShadowRoot","DocumentFragment","getBaseElementHref","baseElement","relativePath","baseURI","resetBaseElement","BrowserXhr","EVENT_MANAGER_PLUGINS","EventManager","_eventNameToPlugin","_plugins","_findPluginFor","getZone","EventManagerPlugin","APP_ID_ATTRIBUTE_NAME","SharedStylesHost","styleRef","hostNodes","styleNodesInDOM","collectServerRenderedStyles","platformIsServer","resetHostNodes","addStyles","changeUsageCount","onStyleAdded","removeStyles","onStyleRemoved","getAllStyles","addHost","hostNode","addStyleToHost","removeHost","styleMap","textContent","styleRefValue","usage","getStyleElement","styleEl","styleElRef","NAMESPACE_URIS","svg","xhtml","xlink","xml","xmlns","math","COMPONENT_REGEX","COMPONENT_VARIABLE","HOST_ATTR","CONTENT_ATTR","REMOVE_STYLES_ON_COMPONENT_DESTROY","shimStylesContent","compId","DomRendererFactory2","sharedStylesHost","removeStylesOnCompDestroy","rendererByCompId","defaultRenderer","DefaultDomRenderer2","getOrCreateRenderer","EmulatedEncapsulationDomRenderer2","applyToHost","NoneEncapsulationDomRenderer","applyStyles","ShadowDomRenderer","throwOnSyntheticProps","isTemplateNode","namespaceUri","setAttributeNS","removeAttributeNS","removeProperty","decoratePreventDefault","eventHandler","hostEl","nodeOrShadowRoot","contentAttr","shimContentAttribute","componentShortId","hostAttr","shimHostAttribute","DomEventsPlugin","MODIFIER_KEYS","_keyMap","Del","Esc","Left","Right","Up","Down","Menu","Scroll","Win","MODIFIER_KEY_GETTERS","alt","altKey","ctrlKey","metaKey","shiftKey","KeyEventsPlugin","parseEventName","outsideHandler","eventCallback","fullKey","domEventName","_normalizeKey","codeIX","modifierName","matchEventFullKeyCode","fullKeyCode","keycode","modifierGetter","keyName","platformBrowser","ɵPLATFORM_BROWSER_ID","initDomAdapter","ɵsetDocument","BROWSER_MODULE_PROVIDERS_MARKER","TESTABILITY_PROVIDERS","ɵTESTABILITY_GETTER","BrowserGetTestability","ɵglobal","getAngularTestability","getAllAngularTestabilities","getAllAngularRootElements","frameworkStabilizers","testabilities","decrement","parentElement","ɵTESTABILITY","BROWSER_MODULE_PROVIDERS","ɵINJECTOR_SCOPE","providersAlreadyPresent","withServerTransition","Meta","_dom","forceCreation","_getOrCreateElement","addTags","getTag","attrSelector","getTags","_parseSelector","_setMetaElementAttributes","removeTagElement","_containsAttributes","_getMetaKeyMap","META_KEYS_MAP","httpEquiv","Title","getTitle","newTitle","DomSanitizer","DomSanitizerImpl","ɵallowSanitizationBypassAndThrow","ɵunwrapSafeValue","ɵ_sanitizeHtml","ɵ_sanitizeUrl","bypassSecurityTrustHtml","ɵbypassSanitizationTrustHtml","bypassSecurityTrustStyle","ɵbypassSanitizationTrustStyle","bypassSecurityTrustScript","ɵbypassSanitizationTrustScript","bypassSecurityTrustUrl","ɵbypassSanitizationTrustUrl","ɵbypassSanitizationTrustResourceUrl","observableFactory","takeLast","TakeLastOperator","TakeLastSubscriber","ring","MapToOperator","MapToSubscriber","PRIMARY_OUTLET","RouteTitleKey","ParamsAsMap","convertToParamMap","defaultUrlMatcher","segmentGroup","hasChildren","segment","shallowEqual","getDataKeys","equalArraysOrString","aSorted","bSorted","wrapIntoObservable","pathCompareMap","exact","equalSegmentGroups","containee","matrixParams","equalPath","matrixParamsMatch","numberOfChildren","subset","containsSegmentGroup","paramCompareMap","equalParams","containsParams","ignored","containsTree","containsSegmentGroupHelper","containeePaths","containerPaths","containeeSegment","UrlTree","_queryParamMap","DEFAULT_SERIALIZER","serializePaths","parameterMap","_parameterMap","serializePath","as","bs","UrlParser","parseRootSegment","parseQueryParams","parseFragment","serializeSegment","serializeQueryParams","strParams","encodeUriQuery","encodeUriFragment","primary","mapChildrenIntoArray","childOutlet","encodeUriString","encodeUriSegment","decodeQuery","serializeMatrixParams","SEGMENT_RE","matchSegments","MATRIX_PARAM_SEGMENT_RE","QUERY_PARAM_RE","QUERY_PARAM_VALUE_RE","consumeOptional","peekStartsWith","parseChildren","parseQueryParam","parseSegment","parseParens","parseMatrixParams","parseParam","matchMatrixKeySegments","valueMatch","matchQueryParams","matchUrlQueryParamValue","decodedKey","decodedVal","currentVal","allowPrimary","outletName","createRoot","rootCandidate","squashSegmentGroup","newChildren","childCandidate","grandChildOutlet","grandChild","mergeTrivialChildren","isUrlTree","createSegmentGroupFromRoute","targetGroup","rootSegmentGroup","createSegmentGroupFromRouteRecursive","currentRoute","childOutlets","childSnapshot","createUrlTreeFromSegmentGroup","commands","computeNavigation","Navigation","numberOfDoubleDots","cmd","cmdIdx","outlets","segmentPath","urlPart","partIndex","toRoot","findStartingPositionForTargetGroup","Position","modifier","isMatrixParams","createPositionApplyingDoubleDots","ci","dd","newSegmentGroup","processChildren","updateSegmentGroupChildren","updateSegmentGroup","isCommandWithOutlets","oldRoot","oldSegmentGroup","qp","replaceSegment","newRoot","oldSegment","newSegment","cmdWithOutlet","prefixedWith","currentCommandIndex","currentPathIndex","noMatch","pathIndex","commandIndex","curr","slicedCommands","createNewSegmentGroup","getOutlets","childrenOfEmptyChild","createNewSegmentChildren","IMPERATIVE_NAVIGATION","EventType","ResolveStart","ResolveEnd","GuardsCheckStart","GuardsCheckEnd","RouteConfigLoadStart","RouteConfigLoadEnd","ChildActivationStart","ChildActivationEnd","ActivationStart","ActivationEnd","NavigationSkipped","RouterEvent","navigationTrigger","restoredState","NavigationCancellationCode","Redirect","SupersededByNewNavigation","NoDataFromResolver","GuardRejected","NavigationSkippedCode","IgnoredSameUrlNavigation","IgnoredByUrlHandlingStrategy","shouldActivate","routerEvent","BeforeActivateRoutes","RedirectRequest","OutletContext","ChildrenOutletContexts","attachRef","contexts","onChildOutletCreated","childName","getOrCreateContext","onChildOutletDestroyed","getContext","onOutletDeactivated","onOutletReAttached","Tree","_root","findNode","siblings","findPath","cc","TreeNode","nodeChildrenAsMap","RouterState","setRouterState","createEmptyState","rootComponent","createEmptyStateSnapshot","activated","ActivatedRouteSnapshot","RouterStateSnapshot","emptyUrl","emptyParams","emptyData","emptyQueryParams","urlSubject","paramsSubject","queryParamsSubject","fragmentSubject","dataSubject","futureSnapshot","_futureSnapshot","_routerState","_paramMap","getInherited","paramsInheritanceStrategy","inherited","loadComponent","_resolvedData","hasStaticTitle","serializeNode","advanceActivatedRoute","nextSnapshot","shallowEqualArrays","equalParamsAndUrlSegments","equalUrlParams","equalSegments","RouterOutlet","_activatedRoute","activateEvents","deactivateEvents","attachEvents","detachEvents","parentContexts","inputBinder","INPUT_BINDER","supportsBindingToComponentInputs","activatedComponentRef","isTrackedInParentContexts","deactivate","initializeOutletWithName","unsubscribeFromRouteData","attach","activateWith","isActivated","activatedRoute","activatedRouteData","bindActivatedRouteToOutletComponent","childContexts","OutletInjector","__ngOutletInjector","RoutedComponentInputBinder","outletDataSubscriptions","subscribeToRouteData","dataSubscription","mirror","createNode","routeReuseStrategy","prevState","shouldReuseRoute","createOrReuseChildren","shouldAttach","detachedRouteHandle","retrieve","createActivatedRoute","NAVIGATION_CANCELING_ERROR","redirectingNavigationError","urlSerializer","redirect","navigationBehaviorOptions","navigationCancelingError","cancellationCode","isNavigationCancelingError","ɵEmptyOutletComponent","standardizeConfig","getOutlet","getClosestRouteInjector","_loadedInjector","ActivateRoutes","futureState","currState","forwardEvent","inputBindingEnabled","activate","futureRoot","currRoot","deactivateChildRoutes","activateChildRoutes","futureNode","currNode","futureChild","childOutletName","deactivateRoutes","deactivateRouteAndItsChildren","future","shouldDetach","detachAndStoreRouteSubtree","deactivateRouteAndOutlet","treeNode","activateRoutes","stored","CanActivate","CanDeactivate","getAllRouteGuards","getChildRouteGuards","getTokenOrFunctionIdentity","tokenOrFunction","ɵisInjectable","futurePath","canDeactivateChecks","canActivateChecks","prevChildren","getRouteGuards","shouldRun","shouldRunGuardsAndResolvers","runGuardsAndResolvers","isEmptyError","INITIAL_VALUE","prioritizedGuardValue","redirectIfUrlTree","NoMatch","AbsoluteRedirect","urlTree","noMatch$1","ApplyRedirects","lineralizeSegments","applyRedirectCommands","newTree","applyRedirectCreateUrlTree","createSegmentGroup","redirectToParams","actualParams","updatedSegments","createSegments","redirectToSegments","actualSegments","findPosParam","findOrReturn","redirectToUrlSegment","consumedSegments","remainingSegments","positionalParamSegments","matchWithChecks","getOrCreateRouteInjectorIfNeeded","currentInjector","runCanMatchGuards","canMatch","canMatchObservables","injectionToken","isCanMatch","createWildcardMatchResult","slicedSegments","containsEmptyPathMatchesWithNamedOutlets","emptyPathMatch","createChildrenForEmptyPaths","containsEmptyPathMatches","addEmptyPathsToChildrenIfNeeded","primarySegment","NoLeftoversInUrl","Recognizer","configLoader","rootComponentType","applyRedirects","absoluteRedirectCount","allowRedirects","noMatchError","recognize","rootNode","routeState","createUrlTreeFromSnapshot","inheritParamsAndData","processSegmentGroup","routeNode","processSegment","sortedConfig","sortByMatchingOutlets","outletChildren","last$1","mergedChildren","mergeEmptyPathMatches","sortActivatedRouteSnapshots","processSegmentAgainstRoute","noLeftoversInUrl","rawSegment","isImmediateMatch","matchSegmentAgainstRoute","expandSegmentAgainstRouteUsingRedirect","getChildConfig","childConfig","getData","_loadedComponent","getResolve","matchedOnOutlet","_loadedRoutes","runCanLoadGuards","canLoad","canLoadObservables","isCanLoad","shouldLoadResult","canLoadFails","hasEmptyPathConfig","mergedNodes","duplicateEmptyPathNode","resultNode","mergedNode","flattenRouteTree","descendants","switchTap","TitleStrategy","buildTitle","pageTitle","getResolvedTitleForRoute","DefaultTitleStrategy","updateTitle","ROUTER_CONFIGURATION","ROUTES","RouterConfigLoader","componentLoaders","childrenLoaders","compiler","onLoadStartListener","loadRunner","maybeUnwrapDefaultExport","onLoadEndListener","loader","factoryOrRoutes","rawRoutes","requireStandaloneComponents","isWrappedDefaultExport","UrlHandlingStrategy","DefaultUrlHandlingStrategy","shouldProcessUrl","extract","newUrlPart","wholeUrl","CREATE_VIEW_TRANSITION","VIEW_TRANSITION_OPTIONS","createViewTransition","transitionOptions","startViewTransition","skipNextTransition","resolveViewTransitionStarted","viewTransitionStarted","createRenderPromise","onViewTransitionCreated","NavigationTransitions","hasRequestedNavigation","navigationId","currentNavigation","lastSuccessfulNavigation","transitionAbortSubject","rootContexts","titleStrategy","urlHandlingStrategy","afterPreactivation","handleNavigationRequest","setupNavigations","initialUrlTree","initialRouterState","currentUrlTree","currentRawUrl","extractedUrl","rawUrl","targetSnapshot","currentRouterState","targetRouterState","guards","guardsResult","overallTransitionState","cancelNavigationTransition","initialUrl","previousNavigation","urlTransition","navigated","isUpdatingInternalState","isUpdatedBrowserUrl","recognize$1","finalUrl","navStart","skipLocationChange","replaceUrl","guardsStart","checkGuards","runCanDeactivateChecks","futureRSS","currRSS","runCanDeactivate","currARS","canDeactivate","canDeactivateObservables","closestInjector","isCanDeactivate","runCanActivateChecks","fireChildActivationStart","fireActivationStart","runCanActivateChild","futureARS","canActivateChildGuardsMapped","getCanActivateChild","canActivateChild","guardsMapped","isCanActivateChild","runCanActivate","canActivate","canActivateObservables","isCanActivate","guardsEnd","resolveStart","dataResolved","resolveData","routesWithResolversToRun","routesNeedingDataUpdates","newRoute","routesProcessed","runResolve","resolveNode","getResolver","resolver","mapTo","resolvedData","resolveEnd","loadComponents","loaders","loadedComponent","createRouterState","isRedirectingNavigationCancelingError","resolveNavigationPromiseOnError","navCancel","isBrowserTriggeredNavigation","RouteReuseStrategy","DefaultRouteReuseStrategy","BaseRouteReuseStrategy","detachedTree","ɵDefaultRouteReuseStrategy_BaseFactory","StateManager","HistoryStateManager","canceledNavigationResolution","urlUpdateStrategy","rawUrlTree","currentPageId","lastSuccessfulId","stateMemento","createStateMemento","getCurrentUrlTree","getRawUrlTree","browserPageId","ɵrouterPageId","getRouterState","registerNonRouterCurrentEntryChangeListener","handleRouterEvent","setBrowserUrl","restoreHistory","generateNgRouterState","navigation","restoringFromCaughtError","targetPagePosition","resetState","resetUrlToCurrentUrlTree","routerPageId","ɵHistoryStateManager_BaseFactory","NavigationResult","COMPLETE","FAILED","REDIRECTING","afterNextNavigation","defaultErrorHandler","exactMatchOptions","subsetMatchOptions","Router","stateManager","isNgZoneEnabled","ɵConsole","navigationTransitions","componentInputBindingEnabled","eventsSubscription","resetConfig","subscribeToNavigationEvents","mergedTree","scheduleNavigation","isPublicRouterEvent","resetRootComponentType","initialNavigation","setUpLocationChangeListener","navigateToSyncWithBrowser","nonRouterCurrentEntryChangeSubscription","stateCopy","parseUrl","serializeUrl","createUrlTree","navigationExtras","queryParamsHandling","preserveFragment","relativeToUrlSegmentGroup","removeEmptyProps","validateCommands","isActive","matchOptions","priorPromise","RouterLink","tabIndexAttribute","onChanges","isAnchorElement","updateHref","setTabIndexIfNotOnNativeEl","newTabIndex","applyAttributeValue","routerLink","button","sanitizedValue","PreloadingStrategy","preload","RouterPreloader","setUpPreloading","processRoutes","injectorForCurrentRoute","injectorForChildren","preloadConfig","loadedChildren$","recursiveLoadChildren$","loadComponent$","ROUTER_SCROLLER","RouterScroller","lastId","lastSource","restoredId","routerEventsSubscription","createScrollEvents","scrollEventsSubscription","consumeScrollEvents","scheduleScrollEvent","routerFeature","getBootstrapListener","bootstrappedComponentRef","bootstrapDone","BOOTSTRAP_DONE","INITIAL_NAVIGATION","ROUTER_PRELOADER","withPreloading","withViewTransitions","skipInitialTransition","ROUTER_FORROOT_GUARD","ROUTER_PROVIDERS","rootRoute","provideForRootGuard","useHash","scrollOffset","provideInitialNavigation","bindToComponentInputs","enableViewTransitions","ROUTER_INITIALIZER","locationInitialized","a0","DatetimePickerComponent_div_3_p_8_Template","noTimesLabel","DatetimePickerComponent_div_3_div_9_button_1_Template","time_r3","selectTime","dateSlot_r4","timeDisplay","selectedTime","DatetimePickerComponent_div_3_div_9_Template","slotStartIndex","DatetimePickerComponent_div_3_button_10_Template","previousSlot","DatetimePickerComponent_div_3_button_11_Template","nextSlot","totalLength","DatetimePickerComponent_div_3_Template","DatePickerComponent_div_3_div_12_button_5_Template","date_r5","setTimeSlot","dayOfMonth","calendar","datePickerCarouselIndex","monthName","DatePickerComponent_div_3_div_12_Template","day_r6","datesByDayOfWeek","DatePickerComponent_div_3_Template","decrementDatepicker","incrementDatepicker","monthRange","DropdownComponent_li_11_div_1__svg_svg_1_Template","DropdownComponent_li_11_div_1__svg_svg_2_Template","DropdownComponent_li_11_div_1__svg_svg_3_Template","DropdownComponent_li_11_div_1_Template","selectedCount","DropdownComponent_li_11_Template","toggleSelectAll","activeDropdownIndex","dropdownId","isMultiSelect","DropdownComponent_li_12_div_1__svg_svg_1_Template","DropdownComponent_li_12_div_1__svg_svg_2_Template","DropdownComponent_li_12_div_1_Template","dropdown_r6","DropdownComponent_li_12_div_4_Template","DropdownComponent_li_12_Template","LoadingSpinnerComponent_div_0_p_10_Template","LoadingSpinnerComponent_div_0_Template","bgColor","fixed","_c9","_c10","ModalComponent_div_0_div_3_Template","modalClicked","ModalComponent_div_0_Template","trapFocusHandler","closeHandler","customClass","hasCloseBtn","PaginationComponent_button_4_Template","page_r2","pagerClickHandler","activePage","SortDropdownComponent_ul_9_li_1__svg_svg_1_Template","SortDropdownComponent_ul_9_li_1_Template","dropdown_r4","showDropdown","SortDropdownComponent_ul_9_Template","dropdownAlignment","Direction","RIGHT","StarRatingComponent__svg_svg_2_Template","star_r1","i_r2","StarRatingComponent_ng_container_3_span_1_Template","StarRatingComponent_ng_container_3_span_2_Template","reviews","StarRatingComponent_ng_container_3_Template","StarRatingComponent_ng_template_4_Template","_c12","_c13","_c14","_c15","TooltipComponent_div_5_span_2_Template","TooltipComponent_div_5_span_5_Template","TooltipComponent_div_5_Template","visible","alignLeft","DatetimePickerComponent","cdr","selectedDate","dateSlots","timeSlotCarouselIndex","loadDateSlots","goToSelectedDate","getIncrementAmount","slides","amount","sortedTimes","initDateRange","dateSlot","dateSlotDate","startDate","endDate","firstAvailableDate","convertTimeToDate","lastAvailableDate","dayDiff","day","possibleDate","expanded","datesToAppend","setDate","slot","activeDateSlots","DatetimePickerModule","DatePickerComponent","disableDates","enableDates","dates","daysInMonth","monthNames","showDatePickerDialog","datepickerDialog","renderCalendar","toggleDatePicker","minMonth","minYear","maxMonth","maxYear","currentDate","dayOfWeek","isDateEnabled","indexMonth","pickFirstAvailable","disabledDate","enableDate","monthView","indexDayOfWeek","calendarDay","DatePickerModule","DropdownComponent","multiChanged","multiTouched","dropdownContainer","dropdownBtn","windowClickHandler","initializeDefaultValue","displayValue","existingSelectedValue","openDropdown","changeEmitter","updateScrollPosition","blurHandler","activeItem","scrollBy","blur","toggleDropdown","selectAll","LoadingSpinnerComponent","ModalComponent","ariaLabelId","closeClicked","dialog","closeBtn","previousActiveElement","showToggleHandler","activeElement","focusLast","focusableElements","getFocusableElements","PaginationComponent","maxShown","fill2","pagerClicked","pagers","prevClickHandler","nextClickHandler","pagerList","sideOffset","leftOffset","rightOffset","getPagerRanger","pagerColors","ProgressBarComponent","valueText","ProgressBarModule","TOP","BOTTOM","LEFT","SortDropdownComponent","showDropdownOnFocus","lastKeyPressed","windowClickhandler","sortParentDropdown","currentActiveElementId","lastElementChildOfSortDropdown","lastElementChild","hideDropdown","StarRatingComponent","newGuid","initStarFill","randomInt","star","noRating_r4","tooltipContent","tooltipArrowTop","tooltipArrowBottom","ratingInfo","showOnHover","toggleTooltip","calculateAlignment","bcr","minEffectiveWidth","adjustAlignment","horAdj","tooltipRight","getRightStyle","tooltipArrowRight","ButtonSize","LARGE","MEDIUM","SMALL","ButtonType","PRIMARY","SECONDARY","ButtonDirective","hasArrow","hasIcon","buttonType","arrowContainer","arrowIcon","initButton","resetButton","buttonKey","TextInputDirective","hasSuccess","noLabel","required","iconContainer","successIcon","errorIcon","initInput","addIconContainer","initIcons","TextInputModule","LuxonError","InvalidDateTimeError","toMessage","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","InvalidArgumentError","ZoneIsAbstractError","DATE_SHORT","DATE_MED","DATE_MED_WITH_WEEKDAY","weekday","DATE_FULL","DATE_HUGE","TIME_SIMPLE","minute","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","timeZoneName","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","hourCycle","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","ianaName","isUniversal","offsetName","ts","formatOffset","otherZone","SystemZone","Intl","resolvedOptions","timeZone","parseZoneInfo","dtfCache","typeToPos","era","ianaZoneCache","IANAZone","resetCache","isValidSpecifier","isValidZone","zoneName","dtf","makeDTF","hour12","adOrBc","formatToParts","partsOffset","formatted","filled","hackyOffset","parsed","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","asTS","over","objToLocalTS","millisecond","intlLFCache","intlDTCache","getCachedDTF","locString","intlNumCache","intlRelCache","sysLocaleCache","weekInfoCache","listStuff","englishFn","intlFn","listingMode","PolyNumberFormatter","intl","forceSimple","padTo","otherOpts","intlOpts","useGrouping","minimumIntegerDigits","inf","getCachedINF","NumberFormat","padStart","roundTo","PolyDateFormatter","originalZone","gmtOffset","offsetZ","setZone","plus","toJSDate","PolyRelFormatter","isEnglish","hasRelative","rtf","getCachedRTF","cacheKeyOpts","RelativeTimeFormat","formatRelativeTime","numeric","narrow","years","quarters","weeks","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit","English","fallbackWeekSettings","firstDay","minimalDays","weekend","Locale","fromOpts","numberingSystem","outputCalendar","weekSettings","defaultToEN","specifiedLocale","Settings","defaultLocale","localeR","systemLocale","numberingSystemR","defaultNumberingSystem","outputCalendarR","defaultOutputCalendar","weekSettingsR","validateWeekSettings","defaultWeekSettings","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","parseLocaleString","localeStr","xIndex","uIndex","selectedStr","smaller","intlConfigString","weekdaysCache","monthsCache","meridiemCache","eraCache","fastNumbersCached","fastNumbers","supportsFastNumbers","alts","redefaultToEN","redefaultToSystem","formatStr","mapMonths","DateTime","utc","weekdays","mapWeekdays","meridiems","eras","matching","dtFormatter","numberFormatter","relFormatter","listFormatter","getCachedLF","ListFormat","getWeekSettings","hasLocaleWeekInfo","getCachedWeekInfo","getWeekInfo","weekInfo","getStartOfWeek","getMinDaysInFirstWeek","getWeekendDays","FixedOffsetZone","utcInstance","parseSpecifier","signedOffset","InvalidZone","normalizeZone","defaultZone","lowered","numberingSystems","arab","arabext","bali","beng","deva","fullwide","gujr","hanidec","khmr","knda","laoo","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt","latn","numberingSystemsUTF16","hanidecChars","digitRegexCache","digitRegex","throwOnInvalid","twoDigitCutoffYear","cutoffYear","resetCaches","resetDigitRegexCache","Invalid","explanation","nonLeapLadder","leapLadder","unitOutOfRange","js","getUTCDay","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","table","month0","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekYear","weekNumber","weeksInWeekYear","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","localWeekday","localWeekNumber","localWeekYear","hasInvalidGregorianData","validYear","validMonth","integerBetween","validDay","hasInvalidTimeData","validHour","validMinute","validSecond","validMillisecond","bestBy","by","best","thing","padded","parseInteger","string","parseFloating","parseMillis","towardZero","factor","trunc","modMonth","floorMod","firstWeekOffset","weekOffset","weekOffsetNext","untruncateYear","offsetFormat","modified","offHourStr","offMinuteStr","offHour","offMin","asNumber","numericValue","normalizeObject","normalized","pick","monthsLong","monthsShort","monthsNarrow","weekdaysLong","weekdaysShort","weekdaysNarrow","erasLong","erasShort","erasNarrow","stringifyTokens","splits","tokenToString","literal","macroTokenToFormatOpts","Formats","DD","DDD","DDDD","ttt","tttt","TT","TTT","TTTT","ff","fff","ffff","FF","FFF","FFFF","Formatter","parseFormat","fmt","currentFull","bracketed","formatOpts","systemLoc","formatWithSystemDefault","formatDateTimeParts","formatInterval","formatRange","formatDateTimeFromString","knownEnglish","useDateTimeFormatter","isOffsetFixed","allowZ","monthForDateTime","weekdayForDateTime","maybeMacro","eraForDateTime","meridiemForDateTime","quarter","formatDurationFromString","dur","tokenToField","realTokens","lildur","mapped","shiftTo","ianaRegex","combineRegexes","regexes","combineExtractors","extractors","mergedVals","mergedZone","patterns","extractor","simpleParse","ret","offsetRegex","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","extractISOWeekData","extractISOOrdinalData","sqlTimeRegex","sqlTimeExtensionRegex","extractISOTime","extractISOOffset","local","fullOffset","extractIANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","force","obsOffsets","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","fromStrings","weekdayStr","rfc2822","extractRFC2822","obsOffset","milOffset","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOYmd","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","extractISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","lowOrderMatrix","casualMatrix","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits","reverseUnits","conversionAccuracy","matrix","Duration","durationToMillis","vals","sum","normalizeValues","conv","rollUp","accurate","isLuxonDuration","fromMillis","normalizeUnit","fromDurationLike","durationLike","isDuration","fromISO","parseISODuration","fromISOTime","parseISOTimeOnly","week","toFormat","fmtOpts","toHuman","unitDisplay","listStyle","toObject","toISO","toISOTime","toMillis","suppressMilliseconds","suppressSeconds","includePrefix","includeOffset","for","invalidReason","minus","mapUnits","reconfigure","rescale","removeZeroes","newVals","shiftToAll","built","accumulated","lastUnit","own","ak","negated","invalidExplanation","eq","Interval","isLuxonInterval","fromDateTimes","builtStart","friendlyDateTime","builtEnd","validateError","validateStartEnd","startIsValid","endIsValid","isInterval","toDuration","startOf","useLocaleWeeks","hasSame","isAfter","dateTime","isBefore","splitAt","dateTimes","sorted","splitBy","divideEqually","numberOfParts","overlaps","abutsStart","abutsEnd","engulfs","intersection","union","intervals","final","sofar","currentCount","ends","toLocaleString","toISODate","mapEndpoints","mapFn","hasDST","isValidIANAZone","locObj","getMinimumDaysInFirstWeek","getWeekendWeekdays","monthsFormat","weekdaysFormat","localeWeek","earlier","later","utcDayStart","toUTC","keepLocalTime","intUnit","deser","parseDigits","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","strings","simple","escapeToken","partTypeStyleToTokenVal","short","long","dayperiod","dayPeriod","hour24","dummyDateTimeCache","expandMacroTokens","maybeExpandMacroToken","formatOptsToTokens","TokenParser","unitForToken","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","disqualifyingUnit","regexString","buildRegex","explainFromTokens","rawMatches","matchIndex","specificOffset","dateTimeFromMatches","toField","df","getDummyDateTime","resolvedOpts","tokenForPart","isSpace","MAX_DATE","unsupportedZone","possiblyCachedWeekData","possiblyCachedLocalWeekData","localWeekData","old","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","interpretationZone","toTechFormat","longFormat","extendedZone","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedWeekUnits","orderedOrdinalUnits","normalizeUnitWithLocalWeeks","weeknumber","weeksnumber","weeknumbers","weekyear","weekyears","quickDT","offsetProvis","guessOffsetForZone","zoneOffsetGuessCache","zoneOffsetTs","diffRelative","calendary","differ","lastOpts","argList","isLuxonDateTime","fromJSDate","zoneToUse","fromSeconds","tsNow","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","defaultValues","objNow","foundFirst","higherOrderInvalid","hasInvalidWeekData","validWeek","validWeekday","hasInvalidOrdinalData","validOrdinal","gregorian","tsFinal","offsetFinal","parseISODate","fromRFC2822","parseRFC2822Date","preprocessRFC2822","fromHTTP","parseHTTPDate","fromFormat","localeToUse","parseFromTokens","fromSQL","parseSQL","isDateTime","parseFormatForOpts","localeOpts","tokenList","expandFormat","isWeekend","monthShort","monthLong","weekdayShort","weekdayLong","offsetNameShort","offsetNameLong","isInDST","getPossibleOffsets","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","isInLeapYear","weeksInLocalWeekYear","resolvedLocaleOptions","toLocal","keepCalendarTime","newTS","offsetGuess","asObj","setLocale","settingWeekStuff","mixed","normalizedUnit","endOf","toLocaleParts","toISOWeekDate","toRFC2822","toHTTP","toSQLDate","toSQLTime","includeZone","includeOffsetSpace","toSQL","toSeconds","toUnixInteger","toBSON","includeConfig","otherDateTime","durOpts","maybeArray","otherIsLater","diffed","highWater","lowestOrder","highOrderDiffs","differs","remainingMillis","lowerOrderUnits","Zt","diffNow","until","inputMs","adjustedToZone","toRelative","padding","toRelativeCalendar","fromFormatExplain","fromStringExplain","buildFormatParser","fromFormatParser","formatParser","dateTimeish","AppointmentTypeCardComponent_div_0_Template","appointmentDetails","CallToScheduleComponent_p_6_Template","CallToScheduleComponent_p_7_Template","formattedOriginalApptTime","a1","a2","InpersonVisitCardComponent_div_0_p_10_Template","locationDetails","departmentName","InpersonVisitCardComponent_div_0_div_13_Template","InpersonVisitCardComponent_div_0_Template","onlineBooking","VideoVisitCardComponent_div_0_div_9_Template","VideoVisitCardComponent_div_0_Template","Step2Component_div_5_dhgf_video_visit_card_1_Template","onlineBookingVisit_r3","selectBooking","selectedItemIndex","Step2Component_div_5_dhgf_inperson_visit_card_2_Template","Step2Component_div_5_Template","Step2Component_div_6_div_3_dhgf_video_visit_card_2_Template","otherVisit_r7","Step2Component_div_6_div_3_dhgf_inperson_visit_card_3_Template","Step2Component_div_6_div_3_Template","Step2Component_div_6_Template","visitsWithNoOnlineScheduling","Step3Component_div_4_div_1_Template","appointmentType_r3","selectAppointmentType","ctx_r6","selectedAppointmentIndex","Step3Component_div_4_Template","appointmentTypeList","Step3Component_div_5_Template","selectedAppointment","Step3Component_div_6_Template","Step3Component_button_8_Template","nextButtonHandler","Step3Component_button_9_Template","continueButtonHandler","SelectAppointmentTimeComponent_dhcl_date_picker_1_Template","onDateSelectionChanged","appointmentSchedule","Step4Component_div_3_Template","Step4Component__svg_svg_9_Template","Step4Component_p_10_Template","Step4Component__svg_svg_11_Template","Step4Component_p_12_Template","Step4Component_div_13_Template","CrossPortalPopupNotificationComponent_div_0_Template","CrossPortalPopupNotificationComponent_div_1_Template","GuidedScheduleFlowComponent_div_0_dhcl_progress_bar_1_Template","activeStep","GuidedScheduleFlowComponent_div_0_button_3_Template","backBtnHandler","GuidedScheduleFlowComponent_div_0_dhgf_cross_portal_popup_notification_5_Template","showStep1Handler","GuidedScheduleFlowComponent_div_0_dhgf_step1_6_Template","establishPatientHandler","getOfficePhoneNumber","appointmentsAvailable","showPopupNotification","GuidedScheduleFlowComponent_div_0_dhgf_step2_7_Template","locationSelectedHandler","visitsWithOnlineScheduling","isLocationAppt","GuidedScheduleFlowComponent_div_0_dhgf_step3_8_Template","showAppointmentTypeDescriptionHandler","appointmentTypeSelectHandler","showApptTypeDescription","GuidedScheduleFlowComponent_div_0_dhgf_step4_9_Template","appointmentSelectionHandler","selectedAppointmentType","GuidedScheduleFlowComponent_div_0_dhgf_stepper_error_10_Template","closeClickedHandler","GuidedScheduleFlowComponent_div_0_dhgf_call_to_schedule_11_Template","GuidedScheduleFlowComponent_div_0_dhgf_find_another_doctor_12_Template","GuidedScheduleFlowComponent_div_0_Template","stepperError","popupNotificationAlreadyDisplayed","isScheduleRetrieved","GuidedScheduleFlowComponent_div_1_span_6_Template","GuidedScheduleFlowComponent_div_1_span_7_Template","GuidedScheduleFlowComponent_div_1_Template","hasNoToken","RescheduleReasonComponent_label_31_span_4_Template","RescheduleReasonComponent_label_31_Template","reasonOther","RescheduleConfirmComponent_img_5_Template","providerImageUrl","providerDetails","RescheduleConfirmComponent_div_22_Template","appointmentSlot","RescheduleConfirmComponent_div_23_Template","RescheduleConfirmComponent_div_32_Template","RescheduleConfirmComponent_div_33_Template","GuidedRescheduleFlowComponent_div_0_dhcl_progress_bar_1_Template","GuidedRescheduleFlowComponent_div_0_button_3_Template","GuidedRescheduleFlowComponent_div_0_dhgf_reschedule_reason_5_Template","rescheduleReasonHandler","rescheduleData","originalApptTime","GuidedRescheduleFlowComponent_div_0_dhgf_step4_6_Template","GuidedRescheduleFlowComponent_div_0_dhgf_reschedule_confirm_7_Template","rescheduleConfirmHandler","GuidedRescheduleFlowComponent_div_0_dhgf_reschedule_success_8_Template","rescheduleDoneHandler","selectedAppointmentTime","GuidedRescheduleFlowComponent_div_0_dhgf_reschedule_error_9_Template","GuidedRescheduleFlowComponent_div_0_dhgf_call_to_schedule_10_Template","GuidedRescheduleFlowComponent_div_0_Template","currentStep","GuidedFlowComponent_dhgf_guided_schedule_flow_0_Template","toggleSpinner","patientDetail","outreachToken","GuidedFlowComponent_dhgf_guided_reschedule_flow_1_Template","rescheduleSuccessHandler","refreshAfterReschedule","clientSecret","captchaSiteKey","GuidedFlowLauncherComponent_div_1_p_17_Template","GuidedFlowLauncherComponent_div_1_Template","callToScheduleHandler","GuidedFlowLauncherComponent_div_2_dhcl_modal_3_dhgf_guided_flow_1_Template","GuidedFlowLauncherComponent_div_2_dhcl_modal_3_Template","GuidedFlowLauncherComponent_div_2_Template","launchGuidedFlowFn","AppointmentTypeCardComponent","AppointmentType","Virtual","InPerson","getAllowedAppointments","existingPatient","videoVisit","providerAppointmentTypes","appointmentList","appointmentRemoteIds","getAppointmentTypes","getProviderAppointmentTypes","appointmentTypeIdsToAllow","applicableProviderAppointments","isApplicableAppointmentType","availableTime","inPerson","getLocations","officeAddress","videoLocation","providerAppointments","providerLocation","appointments","videoAppointments","locationItem","getLocationSchedule","timeSlots","aptSchedule","minDate","maxDate","filterAppointmentTimes","appointment","slotId","identifyPatientTypeByAppointment","appointmentTypeRemoteId","visitType","getFormattedRescheduleTime","timeString","normalizedDate","normalizedTime","getTz","getProviderImage","providerImages","imageType","booking","categoryType","timezoneFormat","AZ","CA","NV","WindowService","locationHref","parentLocationHref","base64Encode","setSessionStorage","CallToScheduleComponent","windowService","isRescheduling","callBtnHandler","EnvironmentService","environmentSubject","environmentObserver","environmentVariables","dev","providerScheduleEndpoint","providerSearchEndpoint","providerTimeslotsEndpoint","appointmentsUrl","rescheduleAppointmentsEndpoint","fadSelfBaseUrl","fadEpicUrl","providerSearchMuleEndpoint","qa1","stg","prd","tst","setEnvironment","getEnvironment","getTenant","setRescheduleSecrets","envKey","FindAnotherDoctorComponent","environmentService","environmentData","btnClickHandler","guidedFlow","Environments","DEV","QA1","STG","PRD","TST","ProviderSearchService","providerSearchLegacyEndpoint","getProviderDetails","getProviderMule","i1$1","schedulingApiEndpoint","providersSearchApimSubscriptionKey","subscriptionKey","getTimeslotsByAppointmentType","providerSlotId","practitionerId","GuidedFlowStartState","Ehrs","EPIC","CERNER","appointmentData","event_facility","booking_type_id","search_schedule_location","search_schedule_booking_flow","isReschedule","linkCovidFlow","Step1Component","providerFullName","providerSpecialty","canBookOnline","statusChange","showStep1","buttonHandler","isNewPatient","InpersonVisitCardComponent","VideoVisitCardComponent","Step2Component","skipSingleLocation","locationSelected","selectedItem","disableNextButton","Step3Component","setState","appointmentTypeSelected","showDescription","AppointmentNotConfirmedComponent","SelectAppointmentTimeComponent","appointmentTimeSelected","initTimes","initCalendarDates","setDefaultSelection","onTimeSelectionChanged","appt","getTimeLabel","hoursString","Step4Component","appointmentSelected","sortAppointmentSchedule","apptTime","isVirtualVisit","CrossPortalPopupNotificationComponent","StepperErrorComponent","closeButtonHandler","GuidedScheduleFlowComponent","isV5","selectedTimeSlotId","appointmentVisit","showNoApptsModal","onProviderChanged","setApplicationStartState","patientStatus","getAvailableLocations","uniqueNoOnlineScheduling","lc","vs","vOnline","unq","getAppointmentSchedule","selectedOffice","getSlotDetails","availableTimeslots","availabilityLoop","progressVal","officeAvailabilityInfo","applicableProviderAppointmentType","visitIdType","isMyTurn","facilityDepartmentName","systemDetails","region","locationIdType","officeAddressIdType","providerIdType","visitDetails","startState","locationSelection","appointmentSelection","i1$2","RescheduleService","rescheduleEndpoint","rescheduleAppointment","RescheduleReasonComponent","reasonChange","showOptionalCopy","i2$1","RescheduleConfirmComponent","confirm","formattedAppointmentTime","isCaptchaValid","siteKey","formatAppointmentTime","renderRecaptcha","grecaptcha","render","sitekey","handleCaptchaResponse","captchaResponse","captchaCheckSucceeded","RescheduleErrorComponent","RescheduleSuccessComponent","newVisitVirtual","newApptTime","modalCloseBtn","closeButtonInitHandler","doneHandler","GuidedRescheduleScreen","SUCCESS","REASON","ERROR","CONFIRMATION","CALL_TO_SCHEDULE","SELECT_TIME","GuidedRescheduleFlowComponent","rescheduleService","rescheduleSuccess","rescheduleReason","resolveOfficeId","loadCaptchaScript","officeId","checkRescheduleSlots","failedReBookHandler","originalAppttimeZone","timeZoneIndex","scheduleTimeZone","scheduleTimeZoneIndex","scheduleTime","systemCode","appointmentDateTime","appointmentId","gecbAppointmentId","oktaAuthToken","appointmentTypeId","patientType","GuidedFlowComponent","providerSearchService","getLocationDetails","setAppointmentsRedirectUrl","removeIATDApptTypes","bindScheduleLocationData","showNoAppointmentsModal","locationData","validateUserDetail","sessionObject","sessionUserToken","userToken","userDetails","sesstionUserDetails","idToken","restrictedTypes","officeAvailibility","GuidedFlowLauncherComponent","asyncGeneratorStep","gen","_throw"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./src/app/app.component.html","./src/app/app.component.ts","./src/app/components/badges/badges.component.html","./src/app/components/badges/badges.component.ts","./src/app/components/badges/badges.module.ts","./src/app/components/disclaimer/disclaimer.component.ts","./src/app/components/disclaimer/disclaimer.component.html","./src/app/components/doc-asap-booking-launcher/doc-asap-booking-launcher.component.html","./src/app/components/doc-asap-booking-launcher/doc-asap-booking-launcher.component.ts","./src/app/components/doc-asap-booking-launcher/doc-asap-booking-launcher.module.ts","./src/app/components/emergency-care/emergency-care.component.html","./src/app/components/emergency-care/emergency-care.component.ts","./src/app/components/error-page/error-page.component.html","./src/app/components/error-page/error-page.component.ts","./src/app/components/legal-copy/legal-copy.component.html","./src/app/components/legal-copy/legal-copy.component.ts","./src/app/components/location-search/location-search.component.html","./src/app/components/location-search/location-search.component.ts","./src/app/components/patient-age-restrictions/patient-age-restrictions.component.html","./src/app/components/patient-age-restrictions/patient-age-restrictions.component.ts","./src/app/components/patient-age-restrictions/patient-age-restrictions.module.ts","./src/app/components/provider-card/provider-card.component.html","./src/app/components/provider-card/provider-card.component.ts","./src/app/components/provider-details-navigation/provider-details-navigation.component.ts","./src/app/components/provider-details-navigation/provider-details-navigation.component.html","./src/app/components/provider-role-checkbox/provider-role-checkbox.component.ts","./src/app/components/provider-role-checkbox/provider-role-checkbox.component.html","./src/app/components/provider-search/focused.directive.ts","./src/app/components/provider-search/provider-search.component.html","./src/app/components/provider-search/provider-search.component.ts","./src/app/components/quicklinks-search/quicklinks-search.component.html","./src/app/components/quicklinks-search/quicklinks-search.component.ts","./src/app/components/regional-helpline-numbers/regional-helpline-numbers.component.html","./src/app/components/regional-helpline-numbers/regional-helpline-numbers.component.ts","./src/app/models/banner.ts","./src/app/components/result-card/result-card.component.html","./src/app/components/result-card/result-card.component.ts","./src/app/components/in-network-banner/in-network-banner.component.html","./src/app/components/in-network-banner/in-network-banner.component.ts","./src/app/pipes/format-distance.pipe.ts","./src/app/components/result-card/result-card-location-list/result-card-location-list.component.html","./src/app/components/result-card/result-card-location-list/result-card-location-list.component.ts","./src/app/components/result-card/hospital-affiliations/hospital-affiliations.component.html","./src/app/components/result-card/hospital-affiliations/hospital-affiliations.component.ts","./src/app/components/result-card/result-card.module.ts","./src/app/components/search-input/search-input.component.html","./src/app/components/search-input/search-input.component.ts","./src/app/components/shared.module.ts","./src/app/components/svg-icon/svg-icon.component.html","./src/app/components/svg-icon/svg-icon.component.ts","./src/app/components/tooltip/tooltip.component.html","./src/app/components/tooltip/tooltip.component.ts","./src/app/components/tooltip/tooltip.module.ts","./src/app/configs/HierarchySecurityService.ts","./src/app/constants/api-constants.new.ts","./src/app/constants/logo-constants.ts","./src/app/dignity-health-components.module.ts","./src/app/global-params.ts","./src/app/models/availability-select.enum.ts","./src/app/models/fad-event-types.ts","./src/app/models/fad-event.ts","./src/app/models/filters.ts","./src/app/models/location.ts","./src/app/models/provider.ts","./src/app/models/stringconst-names.ts","./src/app/pages/fad-lite-search-landing/fad-lite-search-landing.component.html","./src/app/pages/fad-lite-search-landing/fad-lite-search-landing.component.ts","./src/app/components/fad-lite/fad-lite-location-search/fad-lite-location-search.component.html","./src/app/components/fad-lite/fad-lite-location-search/fad-lite-location-search.component.ts","./src/app/components/fad-lite/fad-lite-provider-search/fad-lite-provider-search.component.html","./src/app/components/fad-lite/fad-lite-provider-search/fad-lite-provider-search.component.ts","./src/app/components/fad-lite/fad-lite-quicklinks-search/fad-lite-quicklinks-search.component.html","./src/app/components/fad-lite/fad-lite-quicklinks-search/fad-lite-quicklinks-search.component.ts","./src/app/components/fad-lite/fad-lite-search-input/fad-lite-search-input.component.html","./src/app/components/fad-lite/fad-lite-search-input/fad-lite-search-input.component.ts","./src/app/pages/fad-lite-search-landing/fad-lite-search-landing.module.ts","./src/app/pages/find-doctor-widget/find-doctor-widget.component.html","./src/app/pages/find-doctor-widget/find-doctor-widget.component.ts","./src/app/pages/find-doctor-widget/find-doctor-widget.module.ts","./src/app/pages/provider-details/provider-details.component.html","./src/app/pages/provider-details/provider-details.component.ts","./node_modules/rxjs/_esm2015/internal/observable/fromEventPattern.js","./node_modules/@angular/youtube-player/fesm2022/youtube-player.mjs","./src/app/components/expandable-list/expandable-list.component.html","./src/app/components/expandable-list/expandable-list.component.ts","./src/app/constants/provider-detail-constants.ts","./src/app/components/credentials/credentials.component.html","./src/app/components/credentials/credentials.component.ts","./src/app/components/care-philosophy/care-philosophy.component.html","./src/app/components/care-philosophy/care-philosophy.component.ts","./src/app/components/personal-info/personal-info.component.html","./src/app/components/personal-info/personal-info.component.ts","./src/app/components/own-words/own-words.component.html","./src/app/components/own-words/own-words.component.ts","./src/app/components/you-tube-player/you-tube-player.component.ts","./src/app/components/you-tube-player/you-tube-player.component.html","./src/app/components/provider-video/provider-video.component.ts","./src/app/components/provider-video/provider-video.component.html","./src/app/components/get-to-know/get-to-know.component.html","./src/app/components/get-to-know/get-to-know.component.ts","./src/app/components/google-maps/google-maps.component.html","./src/app/components/google-maps/google-maps.component.ts","./src/app/components/locations-list/locations-list.component.html","./src/app/components/locations-list/locations-list.component.ts","./src/app/components/print-page/print-page.component.html","./src/app/components/print-page/print-page.component.ts","./src/app/components/provider-comments/provider-comments.component.html","./src/app/components/provider-comments/provider-comments.component.ts","./src/app/components/suggest-an-edit/suggest-an-edit.component.ts","./src/app/components/suggest-an-edit/suggest-an-edit.component.html","./src/app/components/provider-hero/provider-hero.component.html","./src/app/components/provider-hero/provider-hero.component.ts","./src/app/components/schedule-an-appointment/schedule-an-appointment.component.html","./src/app/components/schedule-an-appointment/schedule-an-appointment.component.ts","./src/app/resolvers/provider-details.resolver.ts","./src/app/components/provider-details-card/provider-details-card.component.html","./src/app/components/provider-details-card/provider-details-card.component.ts","./src/app/components/scroll-to-top/scroll-to-top.component.ts","./src/app/components/scroll-to-top/scroll-to-top.component.html","./src/app/pages/provider-details/provider-details.module.ts","./node_modules/jwt-decode/build/esm/index.js","./src/app/pages/search-landing/search-landing.component.html","./src/app/pages/search-landing/search-landing.component.ts","./src/app/components/my-providers/my-providers.component.ts","./src/app/components/my-providers/my-providers.component.html","./src/app/pages/search-landing/search-landing.module.ts","./src/app/components/accordion/accordion.module.ts","./src/app/components/filter-dialog/filter-dialog.module.ts","./src/app/components/slide-toggle/ang-slide-toggle.module.ts","./src/app/models/search-filter.ts","./src/app/components/slide-toggle/ang-slide-toggle.component.ts","./src/app/components/slide-toggle/ang-slide-toggle.component.html","./src/app/components/filter-dialog/filter-dialog.component.html","./src/app/components/filter-dialog/filter-dialog.component.ts","./src/app/components/accordion/accordion.component.html","./src/app/components/accordion/accordion.component.ts","./src/app/components/availability-dialog/availability-dialog.component.html","./src/app/components/availability-dialog/availability-dialog.component.ts","./src/app/components/common-more-filters/common-more-filters.component.html","./src/app/components/common-more-filters/common-more-filters.component.ts","./src/app/components/mobile-filters/mobile-filters.component.html","./src/app/components/mobile-filters/mobile-filters.component.ts","./src/app/components/filters/filters.component.html","./src/app/components/filters/filters.component.ts","./src/app/components/cta-new-search/cta-new-search.component.ts","./src/app/components/cta-new-search/cta-new-search.component.html","./src/app/components/medical-copy/medical-copy.component.html","./src/app/components/medical-copy/medical-copy.component.ts","./src/app/components/dynamic-filter-content/dynamic-filter-content.component.html","./src/app/components/dynamic-filter-content/dynamic-filter-content.component.ts","./src/app/components/common/multiple-checkbox-searchable-dropdown/multiple-checkbox-searchable-dropdown.component.html","./src/app/components/common/multiple-checkbox-searchable-dropdown/multiple-checkbox-searchable-dropdown.component.ts","./src/app/components/filters-left-panel/filters-left-panel.component.html","./src/app/components/filters-left-panel/filters-left-panel.component.ts","./src/app/pages/search-results/search-results.component.html","./src/app/pages/search-results/search-results.component.ts","./src/app/components/common/multiple-checkbox-searchable-dropdown/multiple-checkbox-searchable-dropdown.module.ts","./src/app/pages/search-results/search-results.module.ts","./src/app/services/scheduling.service.ts","./src/app/components/covid-vaccination-location-card/covid-vaccination-location-card.component.html","./src/app/components/covid-vaccination-location-card/covid-vaccination-location-card.component.ts","./src/app/pages/vaccination-location/vaccination-location.component.html","./src/app/pages/vaccination-location/vaccination-location.component.ts","./src/app/pages/vaccination-location/vaccination-location.module.ts","./src/app/pipes/pipes.module.ts","./node_modules/@microsoft/dynamicproto-js/lib/dist/esm/dynamicproto-js.js","./node_modules/@microsoft/applicationinsights-shims/dist-esm/Constants.js","./node_modules/@microsoft/applicationinsights-shims/dist-esm/Helpers.js","./node_modules/@microsoft/applicationinsights-shims/dist-esm/TsLibShims.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/__DynamicConstants.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/InternalConstants.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/HelperFuncs.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/__DynamicConstants.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/HelperFuncs.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/EnvUtils.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DbgExtensionUtils.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DiagnosticLogger.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Enums.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/StorageHelperFuncs.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/applicationinsights-common.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/DataSanitizer.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Constants.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/TelemetryItemCreator.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Event.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Trace.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/DataPoint.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Metric.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/PageView.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/PageViewPerformance.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Exception.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/CookieMgr.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/RandomHelper.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/DataCacheHelper.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/EventHelpers.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/CoreUtils.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/W3cTraceParent.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/DomHelperFuncs.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/RequestResponseHeaders.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/UrlHelperFuncs.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Util.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/RemoteDependencyData.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/PerfManager.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryHelpers.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/InstrumentHooks.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js","./node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/__DynamicConstants.js","./node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js","./node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js","./node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js","./node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/Timing.js","./node_modules/@microsoft/applicationinsights-analytics-js/dist-esm/JavaScriptSDK/AnalyticsPlugin.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Interfaces/Contracts/ContextTagKeys.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Interfaces/PartAExtensions.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/Envelope.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Telemetry/Common/Data.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/InternalConstants.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/__DynamicConstants.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/EnvelopeCreator.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/Offline.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/SendBuffer.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/Sender.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/Serializer.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js","./node_modules/@microsoft/applicationinsights-channel-js/dist-esm/TelemetryProcessors/Sample.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/ConnectionStringParser.js","./node_modules/@microsoft/applicationinsights-common/dist-esm/Interfaces/Contracts/SeverityLevel.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/ChannelController.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/BaseCore.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/NotificationManager.js","./node_modules/@microsoft/applicationinsights-core-js/dist-esm/JavaScriptSDK/AppInsightsCore.js","./node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/InternalConstants.js","./node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/__DynamicConstants.js","./node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajaxRecord.js","./node_modules/@microsoft/applicationinsights-dependencies-js/dist-esm/ajax.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Application.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Device.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/__DynamicConstants.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Internal.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Location.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/Session.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/TelemetryTrace.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/Context/User.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/TelemetryContext.js","./node_modules/@microsoft/applicationinsights-properties-js/dist-esm/PropertiesPlugin.js","./node_modules/@microsoft/applicationinsights-web/dist-esm/InternalConstants.js","./node_modules/@microsoft/applicationinsights-web/dist-esm/Initialization.js","./node_modules/@microsoft/applicationinsights-web/dist-esm/__DynamicConstants.js","./src/app/services/app-insights-monitoring.service.ts","./src/app/services/blockit-session.service.ts","./src/app/services/cerner-modal.service.ts","./src/app/services/cja-tag.service.ts","./src/app/services/configuration.service.ts","./src/app/services/cookie.service.ts","./src/app/services/event-publisher.service.ts","./src/app/services/fad-link.service.ts","./src/app/services/filter.service.ts","./src/app/services/location.service.ts","./src/app/models/log-level.ts","./src/app/services/log.service.ts","./src/app/services/provider-rating.service.ts","./src/app/services/provider.service.ts","./src/app/services/resize.service.ts","./src/app/services/title-tag-handler.service.ts","./src/app/utils/api-response.ts","./src/app/utils/http-params-prototypes.ts","./src/app/pages/scheduling/scheduling.component.ts","./src/app/pages/scheduling/scheduling.component.html","./src/app/utils/root-element.ts","./src/app/utils/string-prototypes.ts","./src/app/utils/url/fad-url-builder-strategy.ts","./src/app/utils/url/med-group-url-builder-strategy.ts","./src/app/utils/url/location-url-builder-strategy.ts","./src/app/utils/url/location-and-term-url-builder-strategy.ts","./src/app/utils/url/search-term-url-builder-strategy.ts","./src/app/utils/url/specialty-url-builder-strategy.ts","./src/app/utils/url/fad-url-builder.ts","./src/app/utils/utils.ts","./node_modules/rxjs/_esm2015/internal/observable/merge.js","./node_modules/@angular/elements/fesm2022/elements.mjs","./node_modules/@angular/animations/fesm2022/browser.mjs","./node_modules/@angular/platform-browser/fesm2022/animations.mjs","./src/app/utils/fad-marketing-route-matcher.ts","./src/app/app-routing.module.ts","./src/app/services/configuration-injection.service.ts","./src/app/core/http-interceptors/http-log-interceptor.ts","./src/app/core/core.state.ts","./node_modules/rxjs/_esm2015/internal/operators/withLatestFrom.js","./node_modules/rxjs/_esm2015/internal/operators/distinctUntilChanged.js","./node_modules/@angular/core/fesm2022/rxjs-interop.mjs","./node_modules/@ngrx/store/fesm2022/ngrx-store.mjs","./node_modules/rxjs/_esm2015/internal/operators/pluck.js","./node_modules/rxjs/_esm2015/internal/operators/ignoreElements.js","./node_modules/rxjs/_esm2015/internal/operators/materialize.js","./node_modules/rxjs/_esm2015/internal/operators/groupBy.js","./node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js","./node_modules/rxjs/_esm2015/internal/operators/dematerialize.js","./node_modules/@ngrx/effects/fesm2022/ngrx-effects.mjs","./node_modules/rxjs/_esm2015/internal/operators/multicast.js","./node_modules/rxjs/_esm2015/internal/operators/share.js","./node_modules/rxjs/_esm2015/internal/util/TimeoutError.js","./node_modules/rxjs/_esm2015/internal/operators/timeoutWith.js","./node_modules/rxjs/_esm2015/internal/operators/skip.js","./node_modules/@ngrx/store-devtools/fesm2022/ngrx-store-devtools.mjs","./node_modules/rxjs/_esm2015/internal/operators/timeout.js","./node_modules/rxjs/_esm2015/internal/util/isDate.js","./node_modules/@ngrx/router-store/fesm2022/ngrx-router-store.mjs","./src/app/core/core.module.ts","./src/app/services/error-handler.service.ts","./src/app/constants/api-constants.legacy.ts","./src/app/services/filter/filter.legacy.service.ts","./src/app/services/filter/filter.new.service.ts","./src/app/services/filter/filter.service.factory.ts","./src/app/services/location/location.legacy.service.ts","./src/app/services/location/location.new.service.ts","./src/app/services/location/location.service.factory.ts","./src/app/services/provider/provider.legacy.service.ts","./src/app/services/provider/provider.new.service.ts","./src/app/services/provider/provider.service.factory.ts","./src/app/services/override-url-serializer.service.ts","./src/app/services/auth-helper.service.ts","./src/app/app.module.ts","./src/main.ts","./node_modules/identity-manager-client-library/identity-manager-client.js","./node_modules/rxjs/_esm2015/internal/BehaviorSubject.js","./node_modules/rxjs/_esm2015/internal/Notification.js","./node_modules/rxjs/_esm2015/internal/Observable.js","./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/canReportError.js","./node_modules/rxjs/_esm2015/internal/Observer.js","./node_modules/rxjs/_esm2015/internal/OuterSubscriber.js","./node_modules/rxjs/_esm2015/internal/ReplaySubject.js","./node_modules/rxjs/_esm2015/internal/Subject.js","./node_modules/rxjs/_esm2015/internal/SubjectSubscription.js","./node_modules/rxjs/_esm2015/internal/Subscriber.js","./node_modules/rxjs/_esm2015/internal/util/UnsubscriptionError.js","./node_modules/rxjs/_esm2015/internal/Subscription.js","./node_modules/rxjs/_esm2015/internal/config.js","./node_modules/rxjs/_esm2015/internal/innerSubscribe.js","./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js","./node_modules/rxjs/_esm2015/internal/observable/combineLatest.js","./node_modules/rxjs/_esm2015/internal/observable/concat.js","./node_modules/rxjs/_esm2015/internal/operators/concatAll.js","./node_modules/rxjs/_esm2015/internal/observable/empty.js","./node_modules/rxjs/_esm2015/internal/observable/forkJoin.js","./node_modules/rxjs/_esm2015/internal/observable/from.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js","./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js","./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js","./node_modules/rxjs/_esm2015/internal/util/isIterable.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js","./node_modules/rxjs/_esm2015/internal/observable/fromArray.js","./node_modules/rxjs/_esm2015/internal/observable/of.js","./node_modules/rxjs/_esm2015/internal/observable/throwError.js","./node_modules/rxjs/_esm2015/internal/operators/catchError.js","./node_modules/rxjs/_esm2015/internal/operators/concatMap.js","./node_modules/rxjs/_esm2015/internal/operators/debounceTime.js","./node_modules/rxjs/_esm2015/internal/operators/defaultIfEmpty.js","./node_modules/rxjs/_esm2015/internal/operators/filter.js","./node_modules/rxjs/_esm2015/internal/operators/finalize.js","./node_modules/rxjs/_esm2015/internal/operators/first.js","./node_modules/rxjs/_esm2015/internal/operators/map.js","./node_modules/rxjs/_esm2015/internal/operators/mergeAll.js","./node_modules/rxjs/_esm2015/internal/operators/mergeMap.js","./node_modules/rxjs/_esm2015/internal/operators/observeOn.js","./node_modules/rxjs/_esm2015/internal/operators/refCount.js","./node_modules/rxjs/_esm2015/internal/operators/scan.js","./node_modules/rxjs/_esm2015/internal/operators/startWith.js","./node_modules/rxjs/_esm2015/internal/operators/switchMap.js","./node_modules/rxjs/_esm2015/internal/operators/take.js","./node_modules/rxjs/_esm2015/internal/operators/takeUntil.js","./node_modules/rxjs/_esm2015/internal/util/noop.js","./node_modules/rxjs/_esm2015/internal/operators/tap.js","./node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleArray.js","./node_modules/rxjs/_esm2015/internal/scheduler/Action.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsyncAction.js","./node_modules/rxjs/_esm2015/internal/Scheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/async.js","./node_modules/rxjs/_esm2015/internal/scheduler/queue.js","./node_modules/rxjs/_esm2015/internal/scheduler/QueueScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/QueueAction.js","./node_modules/rxjs/_esm2015/internal/symbol/iterator.js","./node_modules/rxjs/_esm2015/internal/symbol/observable.js","./node_modules/rxjs/_esm2015/internal/symbol/rxSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/ArgumentOutOfRangeError.js","./node_modules/rxjs/_esm2015/internal/util/EmptyError.js","./node_modules/rxjs/_esm2015/internal/util/ObjectUnsubscribedError.js","./node_modules/rxjs/_esm2015/internal/util/hostReportError.js","./node_modules/rxjs/_esm2015/internal/util/identity.js","./node_modules/rxjs/_esm2015/internal/util/isArray.js","./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js","./node_modules/rxjs/_esm2015/internal/util/isFunction.js","./node_modules/rxjs/_esm2015/internal/util/isNumeric.js","./node_modules/rxjs/_esm2015/internal/util/isObject.js","./node_modules/rxjs/_esm2015/internal/util/isPromise.js","./node_modules/rxjs/_esm2015/internal/util/isScheduler.js","./node_modules/rxjs/_esm2015/internal/util/pipe.js","./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToIterable.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToArray.js","./node_modules/rxjs/_esm2015/internal/InnerSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js","./node_modules/uuid/dist/esm-browser/rng.js","./node_modules/uuid/dist/esm-browser/regex.js","./node_modules/uuid/dist/esm-browser/stringify.js","./node_modules/uuid/dist/esm-browser/validate.js","./node_modules/uuid/dist/esm-browser/v4.js","./node_modules/@angular/animations/fesm2022/animations.mjs","./node_modules/@angular/common/fesm2022/common.mjs","./node_modules/@angular/common/fesm2022/http.mjs","./node_modules/@angular/core/fesm2022/primitives/signals.mjs","./node_modules/@angular/core/fesm2022/core.mjs","./node_modules/@angular/forms/fesm2022/forms.mjs","./node_modules/@angular/google-maps/fesm2022/google-maps.mjs","./node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","./node_modules/rxjs/_esm2015/internal/observable/defer.js","./node_modules/rxjs/_esm2015/internal/operators/takeLast.js","./node_modules/rxjs/_esm2015/internal/operators/mapTo.js","./node_modules/@angular/router/fesm2022/router.mjs","./node_modules/rxjs/_esm2015/internal/util/isObservable.js","./node_modules/rxjs/_esm2015/internal/operators/last.js","./node_modules/@dignity-health/ngx-components/fesm2022/dignity-health-ngx-components.mjs","./node_modules/luxon/src/errors.js","./node_modules/luxon/src/impl/formats.js","./node_modules/luxon/src/zone.js","./node_modules/luxon/src/zones/systemZone.js","./node_modules/luxon/src/zones/IANAZone.js","./node_modules/luxon/src/impl/locale.js","./node_modules/luxon/src/impl/english.js","./node_modules/luxon/src/zones/fixedOffsetZone.js","./node_modules/luxon/src/zones/invalidZone.js","./node_modules/luxon/src/impl/zoneUtil.js","./node_modules/luxon/src/impl/util.js","./node_modules/luxon/src/impl/digits.js","./node_modules/luxon/src/settings.js","./node_modules/luxon/src/impl/invalid.js","./node_modules/luxon/src/impl/conversions.js","./node_modules/luxon/src/impl/formatter.js","./node_modules/luxon/src/impl/regexParser.js","./node_modules/luxon/src/duration.js","./node_modules/luxon/src/interval.js","./node_modules/luxon/src/info.js","./node_modules/luxon/src/impl/diff.js","./node_modules/luxon/src/impl/tokenParser.js","./node_modules/luxon/src/datetime.js","./node_modules/@dignity-health/ngx-guided-flow/fesm2022/dignity-health-ngx-guided-flow.mjs","./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"],"sourcesContent":["<div class=\"fad-app-container-close-icon\" *ngIf=\"isCernerPage\">\r\n <a href=\"{{slotUrl}}/my-portal/my-account\" class=\"close cernerCloseBtn\"\r\n ><svg xmlns=\"http://www.w3.org/2000/svg\" x=\"32px\" y=\"32px\" width=\"32\" height=\"32\" viewBox=\"0 0 50 50\">\r\n <path\r\n d=\"M 40.783203 7.2714844 A 2.0002 2.0002 0 0 0 39.386719 7.8867188 L 25.050781 22.222656 L 10.714844 7.8867188 A 2.0002 2.0002 0 0 0 9.2792969 7.2792969 A 2.0002 2.0002 0 0 0 7.8867188 10.714844 L 22.222656 25.050781 L 7.8867188 39.386719 A 2.0002 2.0002 0 1 0 10.714844 42.214844 L 25.050781 27.878906 L 39.386719 42.214844 A 2.0002 2.0002 0 1 0 42.214844 39.386719 L 27.878906 25.050781 L 42.214844 10.714844 A 2.0002 2.0002 0 0 0 40.783203 7.2714844 z\"\r\n ></path>\r\n </svg>\r\n </a>\r\n</div>\r\n<div class=\"fad-app-container\" [ngClass]=\"pageWidthStyling === true ? 'fad-app-container-left-filter': '' \">\r\n <router-outlet></router-outlet>\r\n</div>\r\n<div class=\"disclaimer-container fad-col-sm-12\" *ngIf=\"disclaimerVisible\">\r\n <div class=\"provider-details-container\">\r\n <cs-disclaimer [disclaimer]=\"disclaimer\" [marketDivision]=\"marketDivision\"></cs-disclaimer>\r\n </div>\r\n</div>\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { LogService } from './services/log.service';\r\nimport { ConfigurationService } from './services/configuration.service';\r\nimport { AppInsightsMonitoringService } from './services/app-insights-monitoring.service';\r\nimport { CjaTagService } from './services/cja-tag.service';\r\n\r\n@Component({\r\n selector: 'cs-fad',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss'],\r\n providers: [CjaTagService]\r\n})\r\nexport class AppComponent implements OnInit {\r\n disclaimerVisible = true;\r\n disclaimer: string;\r\n marketDivision: string;\r\n pageWidthStyling = false;\r\n @Input() configurationUrl = './fad-configuration.json';\r\n @Input() embedSource?: string;\r\n isCernerPage=false;\r\n slotUrl: string;\r\n\r\n constructor(\r\n private logService: LogService,\r\n private configurationService: ConfigurationService,\r\n private appInsightsMonitor: AppInsightsMonitoringService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.logService.debug('Application Loaded');\r\n this.isCernerPage=this.configurationService.getCernerPage();\r\n this.slotUrl=this.configurationService.getSlotUrl();\r\n const tokenFromWindowSession =\r\n window.sessionStorage.getItem('CERNER_BCS_WINDOW_TOKEN') ?? '';\r\n if (tokenFromWindowSession !== '') {\r\n this.isCernerPage = false;\r\n }\r\n this.disclaimer = this.configurationService.getDisclaimerCopy();\r\n this.marketDivision = this.configurationService.getConfigType();\r\n this.pageWidthStyling = this.configurationService.getIsFiltersLeftSidePanelRequired();\r\n }\r\n}\r\n","<div *ngIf=\"!isPrint && !isUpdatedProviderDetails\" class=\"badges\" [class.badges-new]=\"!showImprovedUX\">\r\n <div class=\"badge-offers-video-visits appt-badge\" *ngIf=\"!showImprovedUX && provider.acceptsVideoCalls\">\r\n <svg viewBox=\"0 0 23 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M13.4247 0H1.90868C0.854514 0 0 0.835938 0 1.86719V13.1328C0 14.1641 0.854514 15 1.90868 15H13.4247C14.4788 15 15.3333 14.1641 15.3333 13.1328V1.86719C15.3333 0.835938 14.4788 0 13.4247 0ZM20.9875 1.47266L16.6111 4.42578V10.5742L20.9875 13.5234C21.834 14.0938 23 13.5117 23 12.5156V2.48047C23 1.48828 21.838 0.902344 20.9875 1.47266Z\"\r\n />\r\n </svg>\r\n <span class=\"p p2\">Offers video visits</span>\r\n </div>\r\n <div class=\"badge-offers-video-visits-new appt-badge\" *ngIf=\"showImprovedUX && provider.acceptsVideoCalls\">\r\n <svg viewBox=\"0 0 23 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M13.4247 0H1.90868C0.854514 0 0 0.835938 0 1.86719V13.1328C0 14.1641 0.854514 15 1.90868 15H13.4247C14.4788 15 15.3333 14.1641 15.3333 13.1328V1.86719C15.3333 0.835938 14.4788 0 13.4247 0ZM20.9875 1.47266L16.6111 4.42578V10.5742L20.9875 13.5234C21.834 14.0938 23 13.5117 23 12.5156V2.48047C23 1.48828 21.838 0.902344 20.9875 1.47266Z\"\r\n />\r\n </svg>\r\n <span class=\"p p2\">Offers video visits</span>\r\n </div>\r\n <div class=\"badge-online-scheduling appt-badge p p2\" *ngIf=\"setOnlineScheduleBadge()\">\r\n <svg viewBox=\"0 0 16 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M5.42188 11.7031C5.73438 12.0156 6.26563 12.0156 6.57813 11.7031L15.7656 2.51562C16.0781 2.20312 16.0781 1.67188 15.7656 1.35938L14.6406 0.234375C14.3281 -0.078125 13.8281 -0.078125 13.5156 0.234375L6.01563 7.73438L2.48438 4.23438C2.17188 3.92188 1.67188 3.92188 1.35938 4.23438L0.234375 5.35938C-0.078125 5.67188 -0.078125 6.20313 0.234375 6.51563L5.42188 11.7031Z\"\r\n />\r\n </svg>\r\n Online scheduling\r\n </div>\r\n <div class=\"badge-accepts-new-patients appt-badge p p2\" *ngIf=\"provider.acceptsNewPatients || setAcceptNewPatientBadge()\">\r\n <svg viewBox=\"0 0 16 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M5.42188 11.7031C5.73438 12.0156 6.26563 12.0156 6.57813 11.7031L15.7656 2.51562C16.0781 2.20312 16.0781 1.67188 15.7656 1.35938L14.6406 0.234375C14.3281 -0.078125 13.8281 -0.078125 13.5156 0.234375L6.01563 7.73438L2.48438 4.23438C2.17188 3.92188 1.67188 3.92188 1.35938 4.23438L0.234375 5.35938C-0.078125 5.67188 -0.078125 6.20313 0.234375 6.51563L5.42188 11.7031Z\"\r\n />\r\n </svg>\r\n Accepting new patients\r\n </div>\r\n <div class=\"badge-no-new-patients appt-badge p p2\" *ngIf=\"!provider.acceptsNewPatients && !setAcceptNewPatientBadge()\">\r\n <svg viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M7.91028 5.62943L7.55848 5.98122L7.90852 6.33477L11.3128 9.77307L11.3207 9.78105L11.3289 9.78868C11.557 9.99921 11.557 10.3412 11.3289 10.5517L11.3216 10.5585L11.3145 10.5656L10.5656 11.3145L10.5585 11.3216L10.5517 11.3289C10.3412 11.557 9.99921 11.557 9.78868 11.3289L9.7819 11.3216L9.77483 11.3145L6.37057 7.91028L6.01878 7.55848L5.66523 7.90852L2.22693 11.3128L2.21895 11.3207L2.21132 11.3289C2.00079 11.557 1.65878 11.557 1.44825 11.3289L1.44147 11.3216L1.4344 11.3145L0.685468 10.5656L0.6784 10.5585L0.671055 10.5517C0.442982 10.3412 0.442981 9.99921 0.671055 9.78868L0.679314 9.78105L0.687223 9.77307L4.09148 6.33477L4.44152 5.98122L4.08972 5.62943L0.685468 2.22517L0.6784 2.2181L0.671055 2.21132C0.442982 2.00079 0.442982 1.65878 0.671055 1.44825L0.6784 1.44147L0.685468 1.4344L1.4344 0.685468L1.44147 0.6784L1.44825 0.671055C1.65878 0.442982 2.00079 0.442982 2.21132 0.671055L2.21895 0.679314L2.22693 0.687223L5.66523 4.09148L6.01878 4.44152L6.37057 4.08972L9.77483 0.685468L9.7819 0.6784L9.78868 0.671055C9.99921 0.442981 10.3412 0.442982 10.5517 0.671055L10.5585 0.6784L10.5656 0.685468L11.3145 1.4344L11.3216 1.44147L11.3289 1.44825C11.557 1.65878 11.557 2.00079 11.3289 2.21132L11.3216 2.2181L11.3145 2.22517L7.91028 5.62943Z\"\r\n />\r\n </svg>\r\n Not accepting new patients\r\n </div>\r\n</div>\r\n<div *ngIf=\"isPrint && !isUpdatedProviderDetails\" class=\"badges\">\r\n <div class=\"badge-accepts-new-patients appt-badge p p2\" *ngIf=\"provider.acceptsNewPatients || setAcceptNewPatientBadge()\">\r\n <svg viewBox=\"0 0 16 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M5.42188 11.7031C5.73438 12.0156 6.26563 12.0156 6.57813 11.7031L15.7656 2.51562C16.0781 2.20312 16.0781 1.67188 15.7656 1.35938L14.6406 0.234375C14.3281 -0.078125 13.8281 -0.078125 13.5156 0.234375L6.01563 7.73438L2.48438 4.23438C2.17188 3.92188 1.67188 3.92188 1.35938 4.23438L0.234375 5.35938C-0.078125 5.67188 -0.078125 6.20313 0.234375 6.51563L5.42188 11.7031Z\"\r\n />\r\n </svg>\r\n Accepting new patients\r\n </div>\r\n <div class=\"badge-no-new-patients appt-badge p p2\" *ngIf=\"!provider.acceptsNewPatients && !setAcceptNewPatientBadge()\">\r\n <svg viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M7.91028 5.62943L7.55848 5.98122L7.90852 6.33477L11.3128 9.77307L11.3207 9.78105L11.3289 9.78868C11.557 9.99921 11.557 10.3412 11.3289 10.5517L11.3216 10.5585L11.3145 10.5656L10.5656 11.3145L10.5585 11.3216L10.5517 11.3289C10.3412 11.557 9.99921 11.557 9.78868 11.3289L9.7819 11.3216L9.77483 11.3145L6.37057 7.91028L6.01878 7.55848L5.66523 7.90852L2.22693 11.3128L2.21895 11.3207L2.21132 11.3289C2.00079 11.557 1.65878 11.557 1.44825 11.3289L1.44147 11.3216L1.4344 11.3145L0.685468 10.5656L0.6784 10.5585L0.671055 10.5517C0.442982 10.3412 0.442981 9.99921 0.671055 9.78868L0.679314 9.78105L0.687223 9.77307L4.09148 6.33477L4.44152 5.98122L4.08972 5.62943L0.685468 2.22517L0.6784 2.2181L0.671055 2.21132C0.442982 2.00079 0.442982 1.65878 0.671055 1.44825L0.6784 1.44147L0.685468 1.4344L1.4344 0.685468L1.44147 0.6784L1.44825 0.671055C1.65878 0.442982 2.00079 0.442982 2.21132 0.671055L2.21895 0.679314L2.22693 0.687223L5.66523 4.09148L6.01878 4.44152L6.37057 4.08972L9.77483 0.685468L9.7819 0.6784L9.78868 0.671055C9.99921 0.442981 10.3412 0.442982 10.5517 0.671055L10.5585 0.6784L10.5656 0.685468L11.3145 1.4344L11.3216 1.44147L11.3289 1.44825C11.557 1.65878 11.557 2.00079 11.3289 2.21132L11.3216 2.2181L11.3145 2.22517L7.91028 5.62943Z\"\r\n />\r\n </svg>\r\n Not accepting new patients\r\n </div>\r\n <div class=\"badge-offers-video-visits-print appt-badge\">\r\n <svg viewBox=\"0 0 23 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M13.4247 0H1.90868C0.854514 0 0 0.835938 0 1.86719V13.1328C0 14.1641 0.854514 15 1.90868 15H13.4247C14.4788 15 15.3333 14.1641 15.3333 13.1328V1.86719C15.3333 0.835938 14.4788 0 13.4247 0ZM20.9875 1.47266L16.6111 4.42578V10.5742L20.9875 13.5234C21.834 14.0938 23 13.5117 23 12.5156V2.48047C23 1.48828 21.838 0.902344 20.9875 1.47266Z\"\r\n />\r\n </svg>\r\n <span class=\"p p2\">Offers video visits</span>\r\n </div>\r\n <div class=\"badge-online-scheduling appt-badge p p2\" *ngIf=\"setOnlineScheduleBadge()\">\r\n <svg viewBox=\"0 0 16 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M5.42188 11.7031C5.73438 12.0156 6.26563 12.0156 6.57813 11.7031L15.7656 2.51562C16.0781 2.20312 16.0781 1.67188 15.7656 1.35938L14.6406 0.234375C14.3281 -0.078125 13.8281 -0.078125 13.5156 0.234375L6.01563 7.73438L2.48438 4.23438C2.17188 3.92188 1.67188 3.92188 1.35938 4.23438L0.234375 5.35938C-0.078125 5.67188 -0.078125 6.20313 0.234375 6.51563L5.42188 11.7031Z\"\r\n />\r\n </svg>\r\n Online scheduling\r\n </div>\r\n</div>\r\n<div *ngIf=\"isUpdatedProviderDetails && !isPrint\" class=\"badges-details\" role=\"list\">\r\n <div class=\"badge-offers-video-visits-details appt-badge\" *ngIf=\"provider.acceptsVideoCalls\" role=\"listitem\">\r\n <svg viewBox=\"0 0 23 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M13.4247 0H1.90868C0.854514 0 0 0.835938 0 1.86719V13.1328C0 14.1641 0.854514 15 1.90868 15H13.4247C14.4788 15 15.3333 14.1641 15.3333 13.1328V1.86719C15.3333 0.835938 14.4788 0 13.4247 0ZM20.9875 1.47266L16.6111 4.42578V10.5742L20.9875 13.5234C21.834 14.0938 23 13.5117 23 12.5156V2.48047C23 1.48828 21.838 0.902344 20.9875 1.47266Z\"\r\n />\r\n </svg>\r\n <span class=\"p p2\">Offers video visits</span>\r\n </div>\r\n <div\r\n class=\"badge-accepts-new-patients-details appt-badge p p2\"\r\n *ngIf=\"provider.acceptsNewPatients || setAcceptNewPatientBadge()\"\r\n role=\"listitem\"\r\n >\r\n <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z\"\r\n stroke=\"#55a63a\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n Accepting new patients\r\n </div>\r\n <div\r\n class=\"badge-no-new-patients-details appt-badge p p2\"\r\n *ngIf=\"!provider.acceptsNewPatients && !setAcceptNewPatientBadge()\"\r\n role=\"listitem\"\r\n >\r\n <svg viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M7.91028 5.62943L7.55848 5.98122L7.90852 6.33477L11.3128 9.77307L11.3207 9.78105L11.3289 9.78868C11.557 9.99921 11.557 10.3412 11.3289 10.5517L11.3216 10.5585L11.3145 10.5656L10.5656 11.3145L10.5585 11.3216L10.5517 11.3289C10.3412 11.557 9.99921 11.557 9.78868 11.3289L9.7819 11.3216L9.77483 11.3145L6.37057 7.91028L6.01878 7.55848L5.66523 7.90852L2.22693 11.3128L2.21895 11.3207L2.21132 11.3289C2.00079 11.557 1.65878 11.557 1.44825 11.3289L1.44147 11.3216L1.4344 11.3145L0.685468 10.5656L0.6784 10.5585L0.671055 10.5517C0.442982 10.3412 0.442981 9.99921 0.671055 9.78868L0.679314 9.78105L0.687223 9.77307L4.09148 6.33477L4.44152 5.98122L4.08972 5.62943L0.685468 2.22517L0.6784 2.2181L0.671055 2.21132C0.442982 2.00079 0.442982 1.65878 0.671055 1.44825L0.6784 1.44147L0.685468 1.4344L1.4344 0.685468L1.44147 0.6784L1.44825 0.671055C1.65878 0.442982 2.00079 0.442982 2.21132 0.671055L2.21895 0.679314L2.22693 0.687223L5.66523 4.09148L6.01878 4.44152L6.37057 4.08972L9.77483 0.685468L9.7819 0.6784L9.78868 0.671055C9.99921 0.442981 10.3412 0.442982 10.5517 0.671055L10.5585 0.6784L10.5656 0.685468L11.3145 1.4344L11.3216 1.44147L11.3289 1.44825C11.557 1.65878 11.557 2.00079 11.3289 2.21132L11.3216 2.2181L11.3145 2.22517L7.91028 5.62943Z\"\r\n />\r\n </svg>\r\n Not accepting new patients\r\n </div>\r\n <div class=\"badge-online-scheduling-details appt-badge p p2\" *ngIf=\"setOnlineScheduleBadge()\" role=\"listitem\">\r\n <svg viewBox=\"0 0 16 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M5.42188 11.7031C5.73438 12.0156 6.26563 12.0156 6.57813 11.7031L15.7656 2.51562C16.0781 2.20312 16.0781 1.67188 15.7656 1.35938L14.6406 0.234375C14.3281 -0.078125 13.8281 -0.078125 13.5156 0.234375L6.01563 7.73438L2.48438 4.23438C2.17188 3.92188 1.67188 3.92188 1.35938 4.23438L0.234375 5.35938C-0.078125 5.67188 -0.078125 6.20313 0.234375 6.51563L5.42188 11.7031Z\"\r\n />\r\n </svg>\r\n Online scheduling\r\n </div>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.new';\r\nimport { Provider } from '../../models/provider';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-badges',\r\n templateUrl: './badges.component.html',\r\n styleUrls: ['./badges.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class BadgesComponent implements OnInit {\r\n @Input() provider: Provider;\r\n @Input() isPrint = false;\r\n @Input() isUpdatedProviderDetails = false;\r\n showOnlineScheduleBadge: boolean;\r\n divisionCodes: string[];\r\n showImprovedUX: boolean;\r\n constructor(private configurationService: ConfigurationService) {}\r\n\r\n ngOnInit(): void {\r\n this.showImprovedUX = this.configurationService.showImprovedUX();\r\n }\r\n\r\n\r\n setOnlineScheduleBadge() {\r\n this.divisionCodes = this.configurationService.getDivisionCodes();\r\n if (this.divisionCodes.length > 0 && this.divisionCodes[0].toString() === 'Texas') {\r\n this.showOnlineScheduleBadge =\r\n this.provider?.isBookOnline && Boolean(this.provider?.providerSchedulingId) && Boolean(this.provider?.ehrCode);\r\n } \r\n else if (this.divisionCodes.length > 0 && this.divisionCodes[0].toString() === 'Southeast') {\r\n this.showOnlineScheduleBadge =\r\n this.provider?.isBookOnline && Boolean(typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId) !== 'undefined') && Boolean(typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId) !== 'undefined');\r\n }\r\n else if (this.divisionCodes.length > 0 && this.divisionCodes[0].toString() === 'dignity-health') {\r\n this.showOnlineScheduleBadge =\r\n this.provider?.onlineBookingAvailability\r\n && this.provider?.onlineBookingAvailability[0]?.appointmentTypes\r\n && Boolean(typeof this.provider?.onlineBookingAvailability[0]?.appointmentTypes?.find(({ name }) => name.toLowerCase() == 'online scheduling for new patients' || 'online scheduling for all visits' || 'online scheduling for video visits') !== 'undefined')\r\n && Boolean(typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt) !== 'undefined');\r\n }\r\n else {\r\n this.showOnlineScheduleBadge =\r\n this.provider.onlineBookingAvailability && this.provider.onlineBookingAvailability[0]?.supportsOnlineBooking;\r\n }\r\n return this.showOnlineScheduleBadge;\r\n }\r\n\r\n setAcceptNewPatientBadge() {\r\n this.divisionCodes = this.configurationService.getDivisionCodes();\r\n let showAcceptNewPatientLabel = false;\r\n if (this.divisionCodes.length > 0 && this.divisionCodes[0].toString() === 'dignity-health') {\r\n showAcceptNewPatientLabel =\r\n this.provider?.onlineBookingAvailability \r\n && this.provider?.onlineBookingAvailability[0]?.appointmentTypes \r\n && Boolean(typeof this.provider?.onlineBookingAvailability[0]?.appointmentTypes?.find(({ name }) => name.toLowerCase() == 'online scheduling for new patients') !== 'undefined');\r\n \r\n }\r\n \r\n return showAcceptNewPatientLabel;\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { BadgesComponent } from './badges.component';\r\n\r\n@NgModule({\r\n declarations: [BadgesComponent],\r\n imports: [CommonModule],\r\n exports: [BadgesComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class BadgesModule {}\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-disclaimer',\r\n templateUrl: './disclaimer.component.html',\r\n styleUrls: ['./disclaimer.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class DisclaimerComponent {\r\n @Input() disclaimer: string;\r\n @Input() marketDivision: string;\r\n}\r\n","<div class=\"disclaimer-content\">\r\n <p class=\"p {{marketDivision==='vmfh' ? 'p' : 'p2'}}\">{{ disclaimer }}</p>\r\n</div>\r\n","<div class=\"cs-doc-asap-booking-launcher\">\r\n <div>\r\n <button\r\n dhclButton\r\n buttonType=\"primary\"\r\n [buttonSize]=\"buttonSize\"\r\n [hasArrow]=\"launcherButtonText === 'Start here'\"\r\n (click)=\"showLauncher()\"\r\n >\r\n {{ launcherButtonText }}\r\n </button>\r\n\r\n <dhcl-modal\r\n *ngIf=\"showDocAsapLauncher\"\r\n [alignTop]=\"false\"\r\n [customClass]=\"'doc-asap-booking-modal'\"\r\n [closeOnOverlay]=\"false\"\r\n [show]=\"true\"\r\n (closeClicked)=\"handleCloseClicked()\"\r\n >\r\n <dhcl-loading-spinner\r\n class=\"dhcl-loading-spinner\"\r\n [bgColor]=\"'transparent'\"\r\n [showSpinner]=\"isLoading\"\r\n [fixed]=\"false\"\r\n ></dhcl-loading-spinner>\r\n <iframe class=\"doc-asap-iframe\" [src]=\"docUrl\" title=\"\"></iframe>\r\n </dhcl-modal>\r\n </div>\r\n</div>\r\n","import { Component, Input, ViewEncapsulation } from '@angular/core';\r\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.new';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { Provider } from '../../models/provider';\r\nimport { BlockitSessionService } from 'src/app/services/blockit-session.service';\r\nimport { CjaTagService } from 'src/app/services/cja-tag.service';\r\n\r\n@Component({\r\n selector: 'cs-doc-asap-booking-launcher',\r\n templateUrl: './doc-asap-booking-launcher.component.html',\r\n styleUrls: ['./doc-asap-booking-launcher.component.scss'],\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class DocAsapBookingLauncherComponent {\r\n @Input() docAsapId: string;\r\n @Input() launcherButtonText = 'Start here';\r\n @Input() buttonSize: 'small' | 'medium' | 'large' = 'large';\r\n @Input() srcUrl: SafeResourceUrl;\r\n @Input() provider: Provider;\r\n showDocAsapLauncher = false;\r\n olsDepartmentId?: string;\r\n docUrl: SafeResourceUrl;\r\n olsProviderId?: string;\r\n isDocAsapLaunched = false;\r\n olsBlockIt?: string;\r\n isLoading: boolean;\r\n blockItUrl: string;\r\n\r\n constructor(public sanitizer: DomSanitizer, private configurationService: ConfigurationService, private blockitSessionService: BlockitSessionService, private cjatagservice: CjaTagService) {\r\n }\r\n\r\n showLauncher() {\r\n this.olsDepartmentId = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId).systemId : null;\r\n this.olsProviderId = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId).systemId : null;\r\n this.olsBlockIt = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt).systemId : null;\r\n this.lauchAdobeEvent();\r\n if (this.isTouchDevice()) {\r\n if (this.olsDepartmentId && this.olsProviderId) {\r\n this.isLoading = true;\r\n this.showDocAsapLauncher = true;\r\n this.docUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `${this.configurationService.getRuntimeConfiguration().myChartUrl}&dept=${this.olsDepartmentId.replace(/\\s+/g, ' ').trim()}&id=${this.olsProviderId.replace(/\\s+/g, ' ').trim()}`);\r\n this.isDocAsapLaunched = true;\r\n this.hideSpinner();\r\n }\r\n else if (this.olsBlockIt)\r\n {\r\n this.blockItUrl = `${sessionStorage.getItem('blockItUrl')}?slug=${this.olsBlockIt}`;\r\n window.open(this.blockItUrl);\r\n }\r\n else {\r\n window.open(\r\n `https://docasap.com/white-label/specialty_id/0/key_reason/-1/key_doc_id/${this.docAsapId}/key_level/3/key_type/INLINE/key_partner_code/${this.provider.ehrCode}/key_mobile_inline_button/1/iframeWidth/550/iframeHeight/300`\r\n );\r\n }\r\n } else {\r\n // Showing the iframe in the modal causes the current page\r\n // to be added to window.history which disrupts back button functionality.\r\n \r\n if (this.olsDepartmentId && this.olsProviderId)\r\n {\r\n this.isLoading = true;\r\n this.showDocAsapLauncher = true;\r\n this.docUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `${this.configurationService.getRuntimeConfiguration().myChartUrl}&dept=${this.olsDepartmentId.replace(/\\s+/g, ' ').trim()}&id=${this.olsProviderId.replace(/\\s+/g, ' ').trim()}`\r\n );\r\n this.isDocAsapLaunched = true;\r\n this.hideSpinner();\r\n }\r\n else if (this.olsBlockIt) {\r\n this.blockItUrl = `${sessionStorage.getItem('blockItUrl')}?slug=${this.olsBlockIt}`;\r\n window.open(this.blockItUrl);\r\n }\r\n else {\r\n this.showDocAsapLauncher = true;\r\n this.docUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `https://docasap.com/white-label/specialty_id/0/key_reason/-1/key_doc_id/${this.docAsapId}/key_level/3/key_type/INLINE/key_partner_code/${this.provider.ehrCode}/key_mobile_inline_button/1/iframeWidth/550/iframeHeight/300`\r\n );\r\n this.isDocAsapLaunched = true;\r\n }\r\n }\r\n }\r\n\r\n isTouchDevice(): boolean {\r\n return window.matchMedia && window.matchMedia('(any-pointer: coarse)').matches;\r\n }\r\n\r\n handleCloseClicked() {\r\n this.showDocAsapLauncher = false;\r\n // When the modal is closed, trigger a window.history.back() call to pop the duplicate history for the page\r\n // you're currently on off the stack. Although we're going \"back\" the current page should not change.\r\n if(!this.olsDepartmentId && !this.olsProviderId)\r\n {\r\n if (!this.isDocAsapLaunched) {\r\n window.history.back();\r\n }\r\n this.isDocAsapLaunched = false;\r\n }\r\n }\r\n lauchAdobeEvent(): void {\r\n const data = {\r\n event: 'customEvent',\r\n event_name: 'search and schedule:guided booking start',\r\n event_category: 'search and schedule',\r\n event_action: 'guided booking start',\r\n event_doctor_name: this.provider.displayFullName || '',\r\n event_doctor_npi: this.provider.npi || '',\r\n patientEngagement: 'true'\r\n };\r\n this.cjatagservice.logCJAEvent(data);\r\n }\r\n\r\n hideSpinner() {\r\n setTimeout(() => {\r\n this.isLoading = false;\r\n }, 10000);\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { DocAsapBookingLauncherComponent } from '../doc-asap-booking-launcher/doc-asap-booking-launcher.component';\r\nimport { ButtonModule, LoadingSpinnerModule, ModalModule } from '@dignity-health/ngx-components';\r\n\r\n@NgModule({\r\n declarations: [DocAsapBookingLauncherComponent],\r\n imports: [CommonModule, ButtonModule, ModalModule, LoadingSpinnerModule],\r\n exports: [DocAsapBookingLauncherComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class DocAsapBookingLauncherModule {}\r\n","<div class=\"emergency-care-container\">\r\n <a href=\"tel:{{ emergencyNumber }}\" class=\"p p emergency-copy\" *ngIf=\"showEmergencyCopy\"> {{emergencyCopy}} </a>\r\n <h3 class=\"emergency-care-copy\" *ngIf=\"showEmergencyLinkContent\">\r\n For non-life threatening emergencies, visit one of our\r\n <ng-container *ngFor=\"let category of emergencyCareLinkContent\" [ngSwitch]=\"category.type\">\r\n <a class=\"emergency-care-linktext\" *ngSwitchCase=\"'erUrgent'\" target=\"{{isCernerPage?'_blank':''}}\" href=\"{{ category.linkScheme }}\">\r\n ER or urgent care centers\r\n </a>\r\n <a class=\"emergency-care-linktext\" *ngSwitchCase=\"'er'\" href=\"{{ category.linkScheme }}\">ER</a>\r\n <span class=\"emergency-care-linktext\" *ngSwitchCase=\"'er'\">or</span>\r\n <a class=\"emergency-care-linktext\" *ngSwitchCase=\"'express'\" href=\"{{ category.linkScheme }}\">express care centers</a>\r\n </ng-container>\r\n near you.\r\n </h3>\r\n <div class=\"divider\"></div>\r\n</div>\r\n","import { Component, Input,OnInit, ChangeDetectionStrategy } from '@angular/core';\r\nimport { ERLinkCategories } from 'src/app/models/configuration';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-emergency-care',\r\n templateUrl: './emergency-care.component.html',\r\n styleUrls: ['./emergency-care.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class EmergencyCareComponent implements OnInit {\r\n @Input() emergencyCareLinkContent: ERLinkCategories[] = [];\r\n @Input() emergencyCopy: string;\r\n @Input() emergencyNumber: string;\r\n @Input() showEmergencyLinkContent: boolean;\r\n @Input() showEmergencyCopy: boolean;\r\n isCernerPage: boolean;\r\n constructor(\r\n private configurationService: ConfigurationService\r\n ) {}\r\n \r\n ngOnInit(): void {\r\n this.isCernerPage=this.configurationService.getCernerPage();\r\n }\r\n}\r\n","<div class=\"error-container\" *ngIf=\"errorMessage\" (window:resize)=\"(isDesktopViewport)\">\r\n <div class=\"error-header\">\r\n <p class=\"message\">{{ errorMessage }}</p>\r\n <svg class=\"error-icon\" *ngIf=\"isDesktopViewport\" viewBox=\"0 0 335 251\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M141.763 42.7037C145.435 38.7553 149.66 35.2183 152.077 33.2945L156.23 34.6085L286.257 75.7907C287.317 79.37 288.02 83.5998 288.467 87.0994L141.763 42.7037ZM274.975 51.0707C277.146 54.463 279.577 59.5108 281.613 64.1243L230.838 48.0427L210.229 41.5167L274.975 51.0707ZM294.795 70.2486L294.79 70.2405C294.79 70.2405 294.79 70.2389 294.79 70.2372C294.5 69.4746 287.656 51.5065 281.824 43.7137C281.047 42.6746 279.879 41.9818 278.58 41.7899L151.821 23.0852C151.743 23.0738 151.668 23.0803 151.59 23.0738C151.472 23.0608 151.355 23.0575 151.236 23.0527C150.977 23.0445 150.724 23.0575 150.473 23.0884C150.367 23.1014 150.263 23.1112 150.159 23.1307C149.852 23.1893 149.553 23.2738 149.263 23.3877C149.221 23.4039 149.177 23.4121 149.135 23.4299C148.81 23.5682 148.505 23.7454 148.219 23.9471C148.192 23.9682 148.157 23.978 148.128 23.9991C147.617 24.3764 135.549 33.3141 129.292 42.564C128.428 43.8373 128.23 45.4391 128.753 46.8799C129.277 48.3224 130.461 49.438 131.951 49.8868L292.637 98.5138C293.113 98.657 293.603 98.7285 294.089 98.7285C295.178 98.7285 296.253 98.374 297.133 97.6959C298.405 96.7201 299.109 95.1899 299.02 93.6059C298.985 93.0221 298.166 79.2221 294.795 70.2486Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <path\r\n d=\"M209.105 190.299C169.812 163.434 130.009 190.027 129.612 190.299C127.391 191.818 126.823 194.844 128.336 197.069C129.851 199.293 132.884 199.874 135.111 198.358C136.516 197.408 169.899 175.313 203.597 198.353C204.439 198.931 205.399 199.205 206.347 199.205C207.903 199.205 209.433 198.462 210.378 197.08C211.899 194.855 211.33 191.821 209.105 190.299Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <path\r\n d=\"M257.725 23.4564C257.725 20.7666 259.905 18.5842 262.597 18.5842C265.287 18.5842 267.467 20.7666 267.467 23.4564\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <mask id=\"mask0\" mask-type=\"alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"54\" width=\"334\" height=\"196\">\r\n <path d=\"M0 54.1035H333.536V249.755H0V54.1035Z\" fill=\"white\" />\r\n </mask>\r\n <g mask=\"url(#mask0)\">\r\n <path\r\n d=\"M304.807 107.897C303.439 107.066 301.512 106.533 299.486 107.921C299.396 107.978 299.312 108.04 299.226 108.102C299.159 108.152 299.094 108.187 299.027 108.242C298.944 108.312 298.878 108.383 298.801 108.453C298.731 108.518 298.66 108.578 298.593 108.648C297.089 110.133 296.983 111.701 297.318 112.964C297.557 114.192 298.264 115.248 299.239 115.958C314.709 129.303 323.78 148.731 323.78 169.392C323.78 208.325 292.106 239.998 253.174 239.998H70.6987C37.0946 239.998 9.7563 212.659 9.7563 179.057C9.7563 152.751 26.5258 129.509 51.4866 121.221L54.9813 120.061L54.8236 116.384C54.7927 115.656 54.7683 114.924 54.7683 114.187C54.7683 86.4375 77.3434 63.8608 105.095 63.8608C109.588 63.8608 114.008 64.4641 118.301 65.635C118.316 65.6382 118.321 65.635 118.335 65.6382C120.126 66.0985 124.13 66.5522 125.509 62.7436C126.888 58.9382 123.487 57.1397 122.672 56.7299C121.859 56.32 111.092 54.1035 105.095 54.1035C72.2989 54.1035 45.5574 80.5149 45.0191 113.184C17.9475 123.718 -0.000976562 149.749 -0.000976562 179.057C-0.000976562 218.039 31.7151 249.755 70.6987 249.755H253.174C297.487 249.755 333.537 213.705 333.537 169.392C333.537 145.523 322.902 123.097 304.807 107.897Z\"\r\n fill=\"var(--dhcl-color-primary-dark)\"\r\n />\r\n </g>\r\n <path\r\n d=\"M170.13 14.4104C170.13 14.4104 170.572 15.1958 171.513 15.8301C171.515 15.8317 171.517 15.8317 171.517 15.8333C171.733 15.978 171.966 16.1179 172.235 16.235L172.265 16.2382C172.873 16.5098 173.54 16.6675 174.247 16.6675C174.99 16.6675 175.626 16.3423 176.317 16.1911C176.347 16.1813 176.373 16.1764 176.4 16.165C176.712 16.0496 177.002 15.9618 177.277 15.8886C187.021 11.9369 197.572 9.75777 208.471 9.75777C227.236 9.75777 244.552 16.0073 258.504 26.5045L258.506 26.4834C258.506 26.4834 258.649 26.6118 258.901 26.7989C258.908 26.8037 258.916 26.8086 258.924 26.8151C260.066 27.6559 263.347 29.6106 266.141 26.7956C269.143 23.7708 266.678 20.7184 265.995 19.985C250.141 7.49083 230.176 0.000488281 208.471 0.000488281C196.175 0.000488281 184.276 2.48697 173.302 6.98833C171.154 7.75427 169.36 9.40488 169.36 11.7792C169.36 12.7061 169.634 13.5647 170.082 14.3047C170.099 14.3388 170.112 14.3746 170.13 14.4104Z\"\r\n fill=\"var(--dhcl-color-primary-dark)\"\r\n />\r\n <path\r\n d=\"M223.245 136.81C210.2 136.81 200.424 125.812 200.01 125.339C198.237 123.311 198.442 120.229 200.47 118.455C202.493 116.682 205.568 116.886 207.346 118.904C207.507 119.084 214.725 127.053 223.242 127.053C223.349 127.053 223.456 127.051 223.565 127.048C228.27 126.937 232.77 124.251 236.943 119.068C238.634 116.97 241.704 116.637 243.804 118.326C245.901 120.016 246.233 123.088 244.544 125.186C238.466 132.736 231.461 136.644 223.72 136.805C223.562 136.808 223.403 136.81 223.245 136.81Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <path\r\n d=\"M117.542 136.81C104.496 136.81 94.7212 125.812 94.3065 125.339C92.534 123.311 92.7389 120.229 94.7668 118.455C96.7898 116.682 99.8666 116.886 101.642 118.904C101.803 119.084 109.022 127.053 117.539 127.053C117.646 127.053 117.753 127.051 117.862 127.048C122.567 126.937 127.067 124.251 131.239 119.068C132.929 116.97 136.001 116.637 138.1 118.326C140.198 120.016 140.53 123.088 138.84 125.186C132.763 132.736 125.758 136.644 118.017 136.805C117.859 136.808 117.7 136.81 117.542 136.81Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n </svg>\r\n </div>\r\n <div class=\"error-links\">\r\n <p *ngIf=\"errorLinks.length > 0\">Here are some helpful links instead:</p>\r\n <div class=\"links\">\r\n <a *ngFor=\"let link of errorLinks\" href=\"{{ link.url }}\"> {{ link.title }} </a>\r\n </div>\r\n </div>\r\n <svg class=\"error-icon mobile\" *ngIf=\"!isDesktopViewport\" viewBox=\"0 0 335 251\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M141.763 42.7037C145.435 38.7553 149.66 35.2183 152.077 33.2945L156.23 34.6085L286.257 75.7907C287.317 79.37 288.02 83.5998 288.467 87.0994L141.763 42.7037ZM274.975 51.0707C277.146 54.463 279.577 59.5108 281.613 64.1243L230.838 48.0427L210.229 41.5167L274.975 51.0707ZM294.795 70.2486L294.79 70.2405C294.79 70.2405 294.79 70.2389 294.79 70.2372C294.5 69.4746 287.656 51.5065 281.824 43.7137C281.047 42.6746 279.879 41.9818 278.58 41.7899L151.821 23.0852C151.743 23.0738 151.668 23.0803 151.59 23.0738C151.472 23.0608 151.355 23.0575 151.236 23.0527C150.977 23.0445 150.724 23.0575 150.473 23.0884C150.367 23.1014 150.263 23.1112 150.159 23.1307C149.852 23.1893 149.553 23.2738 149.263 23.3877C149.221 23.4039 149.177 23.4121 149.135 23.4299C148.81 23.5682 148.505 23.7454 148.219 23.9471C148.192 23.9682 148.157 23.978 148.128 23.9991C147.617 24.3764 135.549 33.3141 129.292 42.564C128.428 43.8373 128.23 45.4391 128.753 46.8799C129.277 48.3224 130.461 49.438 131.951 49.8868L292.637 98.5138C293.113 98.657 293.603 98.7285 294.089 98.7285C295.178 98.7285 296.253 98.374 297.133 97.6959C298.405 96.7201 299.109 95.1899 299.02 93.6059C298.985 93.0221 298.166 79.2221 294.795 70.2486Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <path\r\n d=\"M209.105 190.299C169.812 163.434 130.009 190.027 129.612 190.299C127.391 191.818 126.823 194.844 128.336 197.069C129.851 199.293 132.884 199.874 135.111 198.358C136.516 197.408 169.899 175.313 203.597 198.353C204.439 198.931 205.399 199.205 206.347 199.205C207.903 199.205 209.433 198.462 210.378 197.08C211.899 194.855 211.33 191.821 209.105 190.299Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <path\r\n d=\"M257.725 23.4564C257.725 20.7666 259.905 18.5842 262.597 18.5842C265.287 18.5842 267.467 20.7666 267.467 23.4564\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <mask id=\"mask0\" mask-type=\"alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"54\" width=\"334\" height=\"196\">\r\n <path d=\"M0 54.1035H333.536V249.755H0V54.1035Z\" fill=\"white\" />\r\n </mask>\r\n <g mask=\"url(#mask0)\">\r\n <path\r\n d=\"M304.807 107.897C303.439 107.066 301.512 106.533 299.486 107.921C299.396 107.978 299.312 108.04 299.226 108.102C299.159 108.152 299.094 108.187 299.027 108.242C298.944 108.312 298.878 108.383 298.801 108.453C298.731 108.518 298.66 108.578 298.593 108.648C297.089 110.133 296.983 111.701 297.318 112.964C297.557 114.192 298.264 115.248 299.239 115.958C314.709 129.303 323.78 148.731 323.78 169.392C323.78 208.325 292.106 239.998 253.174 239.998H70.6987C37.0946 239.998 9.7563 212.659 9.7563 179.057C9.7563 152.751 26.5258 129.509 51.4866 121.221L54.9813 120.061L54.8236 116.384C54.7927 115.656 54.7683 114.924 54.7683 114.187C54.7683 86.4375 77.3434 63.8608 105.095 63.8608C109.588 63.8608 114.008 64.4641 118.301 65.635C118.316 65.6382 118.321 65.635 118.335 65.6382C120.126 66.0985 124.13 66.5522 125.509 62.7436C126.888 58.9382 123.487 57.1397 122.672 56.7299C121.859 56.32 111.092 54.1035 105.095 54.1035C72.2989 54.1035 45.5574 80.5149 45.0191 113.184C17.9475 123.718 -0.000976562 149.749 -0.000976562 179.057C-0.000976562 218.039 31.7151 249.755 70.6987 249.755H253.174C297.487 249.755 333.537 213.705 333.537 169.392C333.537 145.523 322.902 123.097 304.807 107.897Z\"\r\n fill=\"var(--dhcl-color-primary-dark)\"\r\n />\r\n </g>\r\n <path\r\n d=\"M170.13 14.4104C170.13 14.4104 170.572 15.1958 171.513 15.8301C171.515 15.8317 171.517 15.8317 171.517 15.8333C171.733 15.978 171.966 16.1179 172.235 16.235L172.265 16.2382C172.873 16.5098 173.54 16.6675 174.247 16.6675C174.99 16.6675 175.626 16.3423 176.317 16.1911C176.347 16.1813 176.373 16.1764 176.4 16.165C176.712 16.0496 177.002 15.9618 177.277 15.8886C187.021 11.9369 197.572 9.75777 208.471 9.75777C227.236 9.75777 244.552 16.0073 258.504 26.5045L258.506 26.4834C258.506 26.4834 258.649 26.6118 258.901 26.7989C258.908 26.8037 258.916 26.8086 258.924 26.8151C260.066 27.6559 263.347 29.6106 266.141 26.7956C269.143 23.7708 266.678 20.7184 265.995 19.985C250.141 7.49083 230.176 0.000488281 208.471 0.000488281C196.175 0.000488281 184.276 2.48697 173.302 6.98833C171.154 7.75427 169.36 9.40488 169.36 11.7792C169.36 12.7061 169.634 13.5647 170.082 14.3047C170.099 14.3388 170.112 14.3746 170.13 14.4104Z\"\r\n fill=\"var(--dhcl-color-primary-dark)\"\r\n />\r\n <path\r\n d=\"M223.245 136.81C210.2 136.81 200.424 125.812 200.01 125.339C198.237 123.311 198.442 120.229 200.47 118.455C202.493 116.682 205.568 116.886 207.346 118.904C207.507 119.084 214.725 127.053 223.242 127.053C223.349 127.053 223.456 127.051 223.565 127.048C228.27 126.937 232.77 124.251 236.943 119.068C238.634 116.97 241.704 116.637 243.804 118.326C245.901 120.016 246.233 123.088 244.544 125.186C238.466 132.736 231.461 136.644 223.72 136.805C223.562 136.808 223.403 136.81 223.245 136.81Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n <path\r\n d=\"M117.542 136.81C104.496 136.81 94.7212 125.812 94.3065 125.339C92.534 123.311 92.7389 120.229 94.7668 118.455C96.7898 116.682 99.8666 116.886 101.642 118.904C101.803 119.084 109.022 127.053 117.539 127.053C117.646 127.053 117.753 127.051 117.862 127.048C122.567 126.937 127.067 124.251 131.239 119.068C132.929 116.97 136.001 116.637 138.1 118.326C140.198 120.016 140.53 123.088 138.84 125.186C132.763 132.736 125.758 136.644 118.017 136.805C117.859 136.808 117.7 136.81 117.542 136.81Z\"\r\n fill=\"var(--dhcl-color-primary)\"\r\n />\r\n </svg>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { ErrorLink } from 'src/app/models/configuration';\r\nimport { TitleTagHandlerService } from 'src/app/services/title-tag-handler.service';\r\n\r\n@Component({\r\n selector: 'cs-error-page',\r\n templateUrl: './error-page.component.html',\r\n styleUrls: ['./error-page.component.scss']\r\n})\r\nexport class ErrorPageComponent {\r\n @Input() errorMessage = null;\r\n\r\n constructor(private configurationService: ConfigurationService, private titleTagHandlerService: TitleTagHandlerService) { \r\n this.setTitleMetaTags();\r\n }\r\n\r\n get isDesktopViewport(): boolean {\r\n return window.innerWidth > 991;\r\n }\r\n\r\n get errorLinks(): ErrorLink[] {\r\n return this.configurationService.getErrorLinks();\r\n }\r\n\r\n setTitleMetaTags(): void {\r\n this.titleTagHandlerService.setErrorPageTagTitle('Error Page');\r\n }\r\n\r\n}\r\n","<div class=\"legal-content\">\r\n <p class=\"p p2\">\r\n <span>{{ getLegalCopyStartText }}</span>\r\n <cs-tooltip [toolTipInfo]=\"legalCopyToolTipInfo\" *ngIf=\"legalCopyToolTip\">{{ legalCopyToolTip }}</cs-tooltip>\r\n <span>{{getLegalCopyEndText}}</span>\r\n </p>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n\r\n@Component({\r\n selector: 'cs-legal-copy',\r\n templateUrl: './legal-copy.component.html',\r\n styleUrls: ['./legal-copy.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class LegalCopyComponent {\r\n @Input() legalCopy: string;\r\n @Input() legalCopyToolTip: string;\r\n @Input() legalCopyToolTipInfo = '';\r\n\r\n get getLegalCopyStartText(){ \r\n return this.legalCopy && this.legalCopy.split('__icon__')[0];\r\n }\r\n\r\n get getLegalCopyEndText(){\r\n return this.legalCopy && this.legalCopy.split('__icon__')[1];\r\n }\r\n}\r\n","<div class=\"location-search\" [ngClass]=\"{'changeStyle':changeBtnStyle}\" #locationSuggestionsContainer>\r\n <span class=\"location-search-icon\">\r\n <svg viewBox=\"0 0 17 24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M9.92515 20.0837C9.20284 21.0669 7.79716 21.0669 7.07485 20.0837C5.82622 18.3839 4.28559 16.1563 3.06154 13.9812C2.44945 12.8935 1.92663 11.8366 1.5591 10.8779C1.18629 9.90543 1 9.10165 1 8.5C1 4.35786 4.35786 1 8.5 1C12.6421 1 16 4.35786 16 8.5C16 9.10165 15.8137 9.90543 15.4409 10.8779C15.0734 11.8366 14.5505 12.8935 13.9385 13.9812C12.7144 16.1563 11.1738 18.3839 9.92515 20.0837Z\"\r\n />\r\n <path d=\"M8.5 11C9.88071 11 11 9.88071 11 8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5C6 9.88071 7.11929 11 8.5 11Z\" />\r\n </svg>\r\n </span>\r\n <input\r\n #locationInput\r\n type=\"text\"\r\n maxlength=\"80\"\r\n placeholder=\"City or zip\"\r\n [attr.aria-label]=\"getLocationError()\"\r\n [ngClass]=\"{ active: autocompleteActive }\"\r\n [(ngModel)]=\"locationName\"\r\n (ngModelChange)=\"onInputChange($event)\"\r\n (keyup.enter)=\"handleLocationEnter()\"\r\n (keyup.escape)=\"setAutocompleteActive(false)\"\r\n (keydown)=\"handleKeyPress($event)\"\r\n (focus)=\"closeProviderAutoSuggestion()\"\r\n (blur)=\"onFocusLost($event)\"\r\n data-nav-type=\"find a doctor\"\r\n data-nav-element=\"fad search text\"\r\n data-nav-location=\"fad search initiation\"\r\n role=\"combobox\"\r\n aria-autocomplete=\"list\"\r\n [attr.aria-expanded]=\"autocompleteActive\"\r\n [attr.aria-busy]=\"inputInFocus && showLoadingMessage && locationName !== ''\"\r\n />\r\n <ul\r\n *ngIf=\"inputInFocus && showLoadingMessage && locationName !== ''\"\r\n [attr.aria-label]=\"autoSuggestionLoadingMessage\"\r\n class=\"location-suggestions-container\"\r\n >\r\n <li class=\"locations-list\" *ngIf=\"locations.length === 0\">\r\n <ul>\r\n <li class=\"loading-suggestion\" [attr.aria-label]=\"autoSuggestionLoadingMessage\">{{ autoSuggestionLoadingMessage }}</li>\r\n </ul>\r\n </li>\r\n </ul>\r\n <ul *ngIf=\"inputInFocus && autocompleteActive && locationName !== ''\" class=\"location-suggestions-container\">\r\n <li class=\"locations-list\" *ngIf=\"locations.length > 0\">\r\n <ul>\r\n <li\r\n class=\"p p2\"\r\n *ngFor=\"let location of locations ;let position = index\"\r\n (click)=\"setSelectedLocation(location)\"\r\n (keydown.enter)=\"setSelectedLocation(location)\"\r\n (keydown.space)=\"setSelectedLocation(location)\"\r\n (mouseenter)=\"setIndex(position)\"\r\n [attr.aria-selected]=\"highlightedlocation === position\"\r\n [attr.aria-label]=\"location\"\r\n [ngClass]=\"{ selected: highlightedlocation === position }\"\r\n tabindex=\"0\"\r\n >\r\n {{ location.name }}\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n <span class=\"geolocation-icon\">\r\n <svg\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"'use current location'\"\r\n role=\"button\"\r\n viewBox=\"0 0 20 20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n (click)=\"findGeoLocation()\"\r\n (keydown.enter)=\"findGeoLocation()\"\r\n (keyup.escape)=\"showTooltip()\"\r\n >\r\n <path\r\n d=\"M12.3665 18.8776L19.8626 2.63629C20.4872 1.13666 18.863 -0.487554 17.3637 0.137444L1.12242 7.63353C-0.751432 8.50812 -0.126816 11.2566 1.872 11.2566H5.74347C7.40032 11.2566 8.74347 12.5997 8.74347 14.2566V18.128C8.74347 20.1268 11.4919 20.7518 12.3665 18.8776Z\"\r\n />\r\n </svg>\r\n <span class=\"use-current-location-tooltip\" *ngIf=\"isToolTipVisible\">\r\n <p>Use current location</p>\r\n </span>\r\n </span>\r\n</div>\r\n","import { animate, style, transition, trigger } from '@angular/animations';\r\nimport { Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { Observable, ReplaySubject, Subject, Subscription } from 'rxjs';\r\nimport { debounceTime, filter, map, switchMap, tap } from 'rxjs/operators';\r\nimport { LocationByIpResult, LocationConverter, SelectedLocation } from '../../models/location';\r\nimport { ApiResponse } from '../../utils/api-response';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport { LocationService } from '../../services/location.service';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-location-search',\r\n templateUrl: './location-search.component.html',\r\n styleUrls: ['./location-search.component.scss'],\r\n animations: [\r\n trigger('fadeInOut', [\r\n transition(':enter', [style({ opacity: 0 }), animate(500, style({ opacity: 1 }))]),\r\n transition(':leave', [animate(500, style({ opacity: 0 }))])\r\n ])\r\n ]\r\n})\r\nexport class LocationSearchComponent implements OnInit, OnChanges, OnDestroy {\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() invalidLocation: boolean;\r\n @Input() autoSuggestionLoadingMessage: string;\r\n @Output() setLocation = new EventEmitter<SelectedLocation>();\r\n @Output() locationEnter = new EventEmitter<SelectedLocation>();\r\n @Output() closeProviderAutoSuggestionContainer = new EventEmitter<any>();\r\n\r\n autocompleteActive: boolean;\r\n locations: SelectedLocation[] = [];\r\n locationName = '';\r\n highlightedlocation = -1;\r\n results$: Subscription;\r\n subject = new ReplaySubject<string>(1);\r\n showLoadingMessage = false;\r\n inputInFocus = false;\r\n changeBtnStyle:string;\r\n errorMessage:string;\r\n isToolTipVisible = false;\r\n private readonly inputDebounceMS = 300;\r\n private inputModelChanged: Subject<string> = new Subject<string>();\r\n\r\n @ViewChild('locationSuggestionsContainer') locationSuggestionsContainer: ElementRef;\r\n @ViewChild('locationInput') locationInput: ElementRef;\r\n\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n if (this.locationInput && this.locationInput.nativeElement.contains(event.target)) {\r\n if (this.locationName.length > 0 && !this.selectedLocation) {\r\n this.setAutocompleteActive(true);\r\n }\r\n\r\n if (window.innerWidth < 768) {\r\n this.locationInput.nativeElement.style.boxShadow = '0px 2px 8px rgba(77, 82, 90, 0.3)';\r\n }\r\n } else {\r\n this.setAutocompleteActive(false);\r\n this.locationInput.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any) {\r\n if (event.target.innerWidth > 768) {\r\n this.locationInput.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n\r\n constructor(private locationService: LocationService, private configurationService: ConfigurationService) {}\r\n\r\n ngOnInit(): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n\r\n this.results$ = this.subject\r\n .pipe(\r\n filter((searchText) => !!searchText && searchText.length > 0),\r\n switchMap((locationSearchTerm) => this.getLocationSuggestionsTyped(locationSearchTerm)),\r\n tap((locations) => {\r\n this.showLoadingMessage = false;\r\n if (!this.inputInFocus) {\r\n this.setAutocompleteActive(false);\r\n return;\r\n }\r\n this.locations = locations;\r\n this.setAutocompleteActive(this.locations.length > 0);\r\n })\r\n )\r\n .subscribe();\r\n\r\n this.inputModelChanged.pipe(debounceTime(this.inputDebounceMS)).subscribe((event) => this.onChangeSearch(event));\r\n this.changeBtnStyle= this.configurationService.getSearchButton();\r\n\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.results$.unsubscribe();\r\n this.subject.unsubscribe();\r\n }\r\n\r\n ngOnChanges() {\r\n this.locationName = this.selectedLocation?.name ?? '';\r\n }\r\n\r\n showTooltip(){\r\n this.isToolTipVisible = false;\r\n }\r\n\r\n async findGeoLocation() {\r\n this.isToolTipVisible = !this.isToolTipVisible;\r\n if (navigator.geolocation) {\r\n await new Promise<void>((res, rej) => {\r\n const timeout = setTimeout(() => rej(), 8000);\r\n\r\n navigator.geolocation.getCurrentPosition(\r\n () => {\r\n clearTimeout(timeout);\r\n res();\r\n },\r\n () => {\r\n clearTimeout(timeout);\r\n rej();\r\n },\r\n {\r\n enableHighAccuracy: true,\r\n maximumAge: 5000,\r\n timeout: 5000\r\n }\r\n );\r\n })\r\n .then(() => {\r\n this.getGeoLocation();\r\n })\r\n .catch(() => {\r\n this.getGeoLocation();\r\n });\r\n } else {\r\n this.getGeoLocation();\r\n }\r\n }\r\n\r\n getLocationSuggestionsTyped(locationSearchTerm: string): Observable<SelectedLocation[]> {\r\n return this.locationService.getTypedLocationSuggestions(locationSearchTerm).pipe(\r\n map((response) => {\r\n let locations: SelectedLocation[] = [];\r\n if (response.isValid) {\r\n locations = response.result.map(\r\n (l) =>\r\n ({\r\n name: l.locationName,\r\n googlePlaceId: l.googlePlaceId,\r\n address: '',\r\n zip: '',\r\n city: '',\r\n state: '',\r\n neighborhood: ''\r\n } as SelectedLocation)\r\n );\r\n }\r\n return locations;\r\n }),\r\n map((selectedLocations) => selectedLocations.filter(\r\n (l, index, self) => index === self.findIndex((item) => item.name === l.name && item.googlePlaceId === l.googlePlaceId)\r\n ))\r\n );\r\n }\r\n\r\n onInputChange(event) {\r\n this.showLoadingMessage = true;\r\n this.setAutocompleteActive(false);\r\n this.inputModelChanged.next(event);\r\n }\r\n\r\n onChangeSearch(val: string) {\r\n this.locations = [];\r\n this.setLocation.emit({\r\n name: val\r\n } as any);\r\n val = val.replace(/^[^a-zA-Z0-9,]+$/, '');\r\n if (val && val.match(/^ *$/) === null) {\r\n if (window.sessionStorage.getItem(SessionObjectNames.LocationSessionId) === null) {\r\n const token = uuidv4().replace(/-/g, '');\r\n window.sessionStorage.setItem(SessionObjectNames.LocationSessionId, token);\r\n }\r\n this.subject.next(val);\r\n } else {\r\n this.setAutocompleteActive(false);\r\n this.clearSession();\r\n }\r\n }\r\n\r\n setSelectedLocation(location: SelectedLocation) {\r\n const zipPattern = /\\d+/g;\r\n const isZipExist = location.name.match(zipPattern);\r\n this.locationService\r\n .getLocationDetail(location.googlePlaceId)\r\n .pipe(\r\n map((response) => ({\r\n name: location.name,\r\n neighborhood: response.result.neighborhood,\r\n city: response.result.city,\r\n state: response.result.state,\r\n latitude: response.result.latitude,\r\n longitude: response.result.longitude,\r\n zip: isZipExist ? response.result.zip : '',\r\n isLocationValid: true\r\n } as SelectedLocation))\r\n )\r\n .subscribe((locationSel: SelectedLocation) => {\r\n this.setAutocompleteActive(false);\r\n this.setLocation.emit(locationSel);\r\n });\r\n }\r\n\r\n clearSession() {\r\n this.setAutocompleteActive(false);\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n }\r\n\r\n setAutocompleteActive(value: boolean) {\r\n this.autocompleteActive = value;\r\n this.highlightedlocation = -1;\r\n }\r\n\r\n private getGeoLocation() {\r\n this.locationService\r\n .getLocationByIP()\r\n .pipe(map((result: ApiResponse<LocationByIpResult>) => LocationConverter.convertTo(result.result.location)))\r\n .subscribe((location: SelectedLocation) => {\r\n this.showLoadingMessage = false;\r\n this.setLocation.emit(location);});\r\n }\r\n\r\n handleLocationEnter() {\r\n if (this.autocompleteActive && this.highlightedlocation >= 0 && this.highlightedlocation <= this.locations.length) {\r\n this.setSelectedLocation(this.locations[this.highlightedlocation]);\r\n } else if (!this.autocompleteActive) {\r\n this.locationEnter.emit();\r\n }\r\n }\r\n\r\n setIndex(index: number) {\r\n if (index <= -1 || index >= this.locations.length) {\r\n return;\r\n }\r\n\r\n this.highlightedlocation = index;\r\n }\r\n\r\n handleKeyPress($event: KeyboardEvent) {\r\n const keyCode = $event.key.toLowerCase();\r\n\r\n if (keyCode === 'arrowdown') {\r\n $event.preventDefault();\r\n this.setIndex(this.highlightedlocation + 1);\r\n } else if (keyCode === 'arrowup') {\r\n $event.preventDefault();\r\n this.setIndex(this.highlightedlocation - 1);\r\n }\r\n }\r\n\r\n closeProviderAutoSuggestion(): void {\r\n this.inputInFocus = true;\r\n this.closeProviderAutoSuggestionContainer.emit();\r\n }\r\n\r\n onFocusLost(event: FocusEvent | any): void {\r\n if (\r\n (event.target && !this.locationSuggestionsContainer.nativeElement.contains(event.target)) ||\r\n (event.relatedTarget && !this.locationSuggestionsContainer.nativeElement.contains(event.relatedTarget))\r\n ) {\r\n this.inputInFocus = false;\r\n }\r\n }\r\n\r\n getLocationError(): string{\r\n if(!this.invalidLocation && this.selectedLocation?.name !== 'undefined' && this.selectedLocation?.name !== null && this.selectedLocation?.name !== ' ')\r\n {\r\n this.errorMessage = 'We’re unable to recognize this location. Please type a new city or zip in the Location search field.';\r\n }\r\n else{\r\n this.errorMessage = '';\r\n }\r\n return this.errorMessage;\r\n }\r\n}\r\n","<div class=\"age-restrictions\" [class.age-restrictions-new]=\"showImprovedUX\" *ngIf=\"patientAgeGroups != undefined\">\r\n <p class=\"p2\">\r\n <span [class.age-restrictions-text]=\"showImprovedUX\"> Accepting appointments from patients {{ patientAgeGroups }} years of age </span>\r\n </p>\r\n</div>\r\n\r\n<div class=\"age-restrictions-dh\" [class.age-restrictions-new]=\"isProviderSearchResultPage\" *ngIf=\"showAgeRestrictionRuleForDH\">\r\n <p class=\"p2\">\r\n <span> {{ageRestrictionRule}} </span>\r\n </p>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-patient-age-restrictions',\r\n templateUrl: './patient-age-restrictions.component.html',\r\n styleUrls: ['./patient-age-restrictions.component.scss']\r\n})\r\nexport class PatientAgeRestrictionsComponent {\r\n @Input() patientAgeGroups: string;\r\n @Input() showImprovedUX? : boolean;\r\n @Input() showAgeRestrictionRuleForDH? : boolean;\r\n @Input() ageRestrictionRule? : string;\r\n @Input() isProviderSearchResultPage? : boolean;\r\n}\r\n\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { PatientAgeRestrictionsComponent } from './patient-age-restrictions.component';\r\n\r\n@NgModule({\r\n declarations: [PatientAgeRestrictionsComponent],\r\n imports: [\r\n CommonModule\r\n ],\r\n exports: [PatientAgeRestrictionsComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class PatientAgeRestrictionsModule {}\r\n","<div class=\"cards-container\" #container>\r\n <div *ngIf=\"showCards && providerCards.length > 0\">\r\n <div class=\"cards-container-header\">\r\n <span class=\"cards-container-header-title h2\">{{ headingText }}</span>\r\n <span class=\"cards-container-header-description\">{{ subHeadingText }}</span>\r\n </div>\r\n <div class=\"provider-cards\">\r\n <cs-result-card\r\n *ngFor=\"let card of suggestedProviderCards\"\r\n class=\"result-card\"\r\n [provider]=\"card\"\r\n (scheduleProvider)=\"scheduleProviderHandler($event)\"\r\n [showDocAsap]=\"showDocAsap\"\r\n [docAsapIds]=\"docAsapIds\"\r\n >\r\n </cs-result-card>\r\n </div>\r\n <div *ngIf=\"providerCards.length > 3\" class=\"pagination\">\r\n <dhcl-pagination [totalPages]=\"totalPages\" [activePage]=\"pageIndex\" (pagerClicked)=\"getPaginatorData($event)\"> </dhcl-pagination>\r\n </div>\r\n <div *ngIf=\"searchButtonLink && searchParams.displaySearchButton\" class=\"network-search\">\r\n <a href=\"{{ searchButtonLink }}\" target=\"blank\">Search our network</a>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<dhcl-modal\r\n *ngIf=\"onlineSchedulingType === 'GuidedFlow' && launchGuidedFlow && guidedFlowProvider\"\r\n [alignTop]=\"true\"\r\n [customClass]=\"'guided-flow-modal'\"\r\n [closeOnOverlay]=\"true\"\r\n [show]=\"true\"\r\n (closeClicked)=\"launchGuidedFlow = false\"\r\n>\r\n <div *ngIf=\"isCernerPage\">\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"guidedFlowProvider\"\r\n [facets]=\"[]\"\r\n [npi]=\"guidedFlowProvider.npi\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [baseUrl]=\"bookingBaseUrl_Cerner\"\r\n [handleNavigateToSchedulingSpa]=\"true\"\r\n (navigateToSchedulingSpa)=\"navigateToCernerSchedulingSpa($event)\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"launchGuidedFlow = false\"\r\n >\r\n </dhgf-guided-flow>\r\n </div>\r\n <div *ngIf=\"!isCernerPage\">\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"guidedFlowProvider\"\r\n [facets]=\"[]\"\r\n [npi]=\"guidedFlowProvider.npi\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [baseUrl]=\"bookingBaseUrl\"\r\n [handleNavigateToSchedulingSpa]=\"handleNavigateToSchedulingSpa\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"launchGuidedFlow = false\"\r\n >\r\n </dhgf-guided-flow>\r\n </div>\r\n</dhcl-modal>\r\n","import {\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n HostListener,\r\n Inject,\r\n Input,\r\n OnChanges,\r\n OnInit,\r\n Output,\r\n SimpleChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { concatMap, map, tap } from 'rxjs/operators';\r\nimport { FacetSummary, FiltersModel, FiltersModelPartialHelper } from '../../models/filters';\r\nimport { Provider } from '../../models/provider';\r\nimport { SelectedLocation } from '../../models/location';\r\nimport { FilterService } from '../../services/filter.service';\r\nimport { LocationService } from '../../services/location.service';\r\nimport { ProviderService } from '../../services/provider.service';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { UrlBuilderParams } from '../../utils/url/url-builder-params';\r\nimport { FadUrlBuilder } from '../../utils/url/fad-url-builder';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { RuntimeConfiguration } from '../../services/configuration-injection.service';\r\nimport { ROOT_ELEMENT } from 'src/app/utils/utils';\r\nimport { MedgroupDictionary } from 'src/app/models/configuration';\r\nimport { EventPublisherService } from '../../services/event-publisher.service';\r\nimport { FadEvent } from '../../models/fad-event';\r\nimport { FadEventTypes } from 'src/app/models/fad-event-types';\r\n\r\nexport interface ProviderCardParams {\r\n radius: number;\r\n location: string;\r\n searchTerm: string;\r\n heading: string;\r\n subHeading: string;\r\n numberOfItems: number;\r\n medGroup: string;\r\n displaySearchButton: boolean;\r\n specialties: string;\r\n}\r\n\r\n@Component({\r\n selector: 'cs-provider-card',\r\n templateUrl: './provider-card.component.html',\r\n styleUrls: ['./provider-card.component.scss']\r\n})\r\nexport class ProviderCardComponent implements OnChanges, OnInit {\r\n @Input() configurationUrl = './fad-configuration.json';\r\n @Input() inputParams: ProviderCardParams;\r\n @Input() fadBaseUrl = '';\r\n @Input() bookingBaseUrl = '';\r\n @Input() handleNavigateToSchedulingSpa: boolean;\r\n @Input() market = '';\r\n @Output() scheduleProvider: EventEmitter<Provider> = new EventEmitter<Provider>();\r\n @Output() navigateToSchedulingSpa: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n @ViewChild('container') container: ElementRef;\r\n isCernerPage=false;\r\n\r\n readonly defaultParams = {\r\n radius: 25,\r\n heading: 'Find a Provider near you',\r\n subHeading: 'This list has been handpicked just for you. You may also search our networks by clicking the button below.',\r\n numberOfItems: 12,\r\n displaySearchButton: true,\r\n searchTerm: null,\r\n medGroup: null,\r\n specialties: null\r\n } as ProviderCardParams;\r\n\r\n searchParams: ProviderCardParams = { ...this.defaultParams };\r\n\r\n headingText: string;\r\n subHeadingText: string;\r\n launchGuidedFlow = false;\r\n guidedFlowProvider: Provider;\r\n runtimeConfig: RuntimeConfiguration;\r\n onlineSchedulingType: string;\r\n\r\n searchButtonLink: string;\r\n\r\n providerCards: Provider[] = [];\r\n suggestedProviderCards: Provider[] = [];\r\n selectedLocation: SelectedLocation;\r\n pageSize: number;\r\n sliceValue = 0;\r\n pageIndex = 0;\r\n isCaptchaEnabled: boolean;\r\n docAsapIds: { npi: number; docAsapId: number }[] = [];\r\n showDocAsap = false;\r\n public showCards: boolean;\r\n providerSchedulingFeature: boolean;\r\n width: number;\r\n embedSource: string;\r\n showProviderPrefix = this.configurationService.showProviderPrefix();\r\n medGroupDictionary: MedgroupDictionary[];\r\n useLegacyAPI: boolean;\r\n bookingBaseUrl_Cerner = 'https://mocka.dignityhealth.me';\r\n get totalPages() {\r\n return (this.providerCards.length / this.pageSize).toFixed(0);\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize() {\r\n this.updateSuggestedProviderCards();\r\n }\r\n constructor(\r\n @Inject(ROOT_ELEMENT) public rootEl: HTMLElement,\r\n private resizeService: ResizeService,\r\n public providerService: ProviderService,\r\n private locationService: LocationService,\r\n private filterService: FilterService,\r\n private configurationService: ConfigurationService,\r\n private router: Router,\r\n private urlBuilder: FadUrlBuilder,\r\n private eventPublisherService: EventPublisherService\r\n\r\n ) {\r\n this.showCards = true;\r\n this.runtimeConfig = configurationService.getRuntimeConfiguration();\r\n this.useLegacyAPI = this.configurationService?.useLegacyAPI();\r\n this.isCaptchaEnabled =\r\n document.querySelector('#captcha-enabled')?.getAttribute('value') === 'true' || configurationService.getCaptchaEnabled();\r\n }\r\n\r\n private updateSuggestedProviderCards() {\r\n this.suggestedProviderCards = this.getSuggestedProviderCards();\r\n }\r\n\r\n ngOnInit(): void {\r\n this.onlineSchedulingType = this.configurationService.getOnlineSchedulingType();\r\n this.providerSchedulingFeature = this.configurationService.getProviderSchedulingFeature();\r\n this.embedSource = this.configurationService.getEmbedSource();\r\n if (this.onlineSchedulingType === 'ThirdParty') {\r\n this.initDocAsap();\r\n }\r\n this.isCernerPage=this.configurationService.getCernerPage();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n const inputParamsChanges = changes.inputParams;\r\n if (!inputParamsChanges?.currentValue) {\r\n return;\r\n }\r\n if (inputParamsChanges.currentValue.toString().startsWith('{')) {\r\n try {\r\n const parsedJson = JSON.parse(inputParamsChanges.currentValue);\r\n this.updateProviders(parsedJson);\r\n } catch (Exception) {\r\n if (console) {\r\n console.error('Could not parse Json. Check for well formed Json.');\r\n }\r\n this.updateProviders(this.defaultParams);\r\n }\r\n } else {\r\n this.updateProviders(inputParamsChanges.currentValue);\r\n }\r\n }\r\n\r\n private updateProviders(currentParams: ProviderCardParams): void {\r\n if (!currentParams) {\r\n return;\r\n }\r\n // start with defaults, and override with whatever was passed in.\r\n this.searchParams = { ...this.defaultParams, ...currentParams };\r\n this.headingText = this.searchParams.heading;\r\n this.subHeadingText = this.searchParams.subHeading;\r\n\r\n this.locationService\r\n .queryLocation(this.searchParams.location)\r\n .pipe(\r\n tap((location) => (this.selectedLocation = location)),\r\n concatMap((location) => this.getProviderCards(location, this.searchParams)),\r\n tap((providers) => {\r\n this.providerCards = providers;\r\n this.setProviderGenderFull();\r\n this.updateSuggestedProviderCards();\r\n this.searchButtonLink = this.getSearchButtonLink();\r\n /**\r\n * This is here to force 'change detection' to run without\r\n * calling cdr.detectChange() which would also cause ngOnChange to fire.\r\n * This is only needed when updating the list of provider cards when changing parameters.\r\n * Without this, the card list in *ngFor is not getting updated even though we have updated\r\n * the property it is bound to.\r\n */\r\n this.showCards = false;\r\n setTimeout(() => (this.showCards = true));\r\n })\r\n )\r\n .subscribe();\r\n }\r\n\r\n getPaginatorData(event: number) {\r\n this.pageIndex = event;\r\n this.sliceValue = this.pageIndex * this.pageSize;\r\n this.updateSuggestedProviderCards();\r\n }\r\n\r\n scheduleProviderHandler(provider: Provider) {\r\n this.guidedFlowProvider = this.providerService.normalizeProviderBeforeScheduling(provider);\r\n this.launchGuidedFlow = this.configurationService.showGuidedFlowButton();\r\n if (!this.launchGuidedFlow) {\r\n this.router.navigateByUrl(\r\n `/${provider.npi}-${provider.firstName.replace(/ /g, '-').toLowerCase()}-${provider.lastName.replace(/ /g, '-').toLowerCase()}`\r\n );\r\n }\r\n }\r\n\r\n private getSuggestedProviderCards(): Provider[] {\r\n const itemsToDisplay = this.searchParams.numberOfItems;\r\n this.providerCards = this.providerCards.slice(0, itemsToDisplay);\r\n let desiredPageSize;\r\n if (this.rootEl.tagName.toLowerCase() !== 'fad-provider-cards') {\r\n if (this.resizeService.isMobileViewport) {\r\n desiredPageSize = 1;\r\n } else {\r\n desiredPageSize = this.resizeService.isTabletViewport ? 2 : 3;\r\n }\r\n } else {\r\n const cardsContainer = this.container.nativeElement;\r\n this.width = cardsContainer?.offsetWidth;\r\n if (this.width < 766){\r\n desiredPageSize = 1;\r\n } else { \r\n desiredPageSize = this.width > 767 && this.width < 992 ? 2 : 3;\r\n }\r\n } // Reset the user back to the first Page when changing ViewPort\r\n if (this.pageSize !== desiredPageSize) {\r\n this.pageIndex = 0;\r\n this.sliceValue = 0;\r\n }\r\n this.pageSize = desiredPageSize;\r\n return this.providerCards.slice(this.sliceValue, this.sliceValue + this.pageSize);\r\n }\r\n\r\n private getProviderCards(location: SelectedLocation, params: ProviderCardParams): Observable<Provider[]> {\r\n const filtersModel = new FiltersModel(this.configurationService);\r\n this.medGroupDictionary = this.configurationService.getMedGroupCodes();\r\n this.processMedicalGroup(params, filtersModel);\r\n this.processSpecialties(params, filtersModel);\r\n FiltersModelPartialHelper.setRadiusKeyForDistance(filtersModel, params.radius);\r\n return this.filterService.getTypedFilterSearchResults(params.searchTerm, location, filtersModel, '').pipe(\r\n map((searchResponse) => {\r\n if (!searchResponse || !searchResponse.isValid) {\r\n return [] as Provider[];\r\n } else {\r\n return searchResponse.result.providers;\r\n }\r\n })\r\n );\r\n }\r\n\r\n private processMedicalGroup(params: ProviderCardParams, filtersModel: FiltersModel) {\r\n if(params.medGroup)\r\n {\r\n if (params.medGroup.includes('|')) {\r\n const selectedMedgroups: FacetSummary[] = [];\r\n const medGroupList: string[] = params.medGroup.split('|');\r\n let medGroupItem: MedgroupDictionary = {\r\n code: '',\r\n identifiers: '',\r\n url: '',\r\n title: '',\r\n city: '',\r\n state: '',\r\n latitude: '',\r\n longitude: '',\r\n banner: undefined\r\n };\r\n medGroupList.forEach((x: string) => {\r\n medGroupItem = this.medGroupDictionary.filter((group: MedgroupDictionary) => group.identifiers?.toLowerCase() === x.toLowerCase())[0];\r\n selectedMedgroups.push({\r\n name: medGroupItem.title,\r\n selected: true,\r\n count: 0\r\n });\r\n });\r\n filtersModel.providerMedicalGroup = [...selectedMedgroups];\r\n filtersModel.selectedMedicalGroup = [...selectedMedgroups];\r\n }\r\n else {\r\n filtersModel.providerMedicalGroup.push({ name: params.medGroup } as FacetSummary);\r\n }\r\n }\r\n }\r\n\r\n private processSpecialties(params: ProviderCardParams, filtersModel: FiltersModel) {\r\n if(params.specialties)\r\n {\r\n if (params.specialties.includes('|')) {\r\n const selectedSpecialties: FacetSummary[] = [];\r\n const speciltyList: string[] = params.specialties.split('|');\r\n speciltyList.forEach((x: string) => {\r\n selectedSpecialties.push({\r\n name: x,\r\n selected: true,\r\n count: 0\r\n });\r\n });\r\n filtersModel.providerSpecialties = [...selectedSpecialties];\r\n filtersModel.selectedSpecialties = [...selectedSpecialties];\r\n }\r\n else {\r\n filtersModel.providerSpecialties.push({ name: params.specialties } as FacetSummary);\r\n filtersModel.selectedSpecialties.push({ name: params.specialties } as FacetSummary);\r\n }\r\n }\r\n }\r\n\r\n private getSearchButtonLink() {\r\n let url = this.urlBuilder.build(\r\n {\r\n medGroup: this.searchParams.medGroup != '' ? this.searchParams.medGroup : '',\r\n searchTerm: this.searchParams.searchTerm,\r\n selectedLocation: this.selectedLocation,\r\n specialty: this.searchParams.specialties != '' ? this.searchParams.specialties : '' \r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n ); \r\n\r\n if (this.searchParams.medGroup && this.selectedLocation?.city && this.selectedLocation?.state) {\r\n url = `${url}?location=${this.selectedLocation.city.toUrlFriendly()}-${this.selectedLocation.state.toUrlFriendly()}`;\r\n }\r\n \r\n if(this.searchParams.medGroup && (this.searchParams.specialties != null && this.searchParams.specialties != '')) {\r\n url = `${url}?specialties=${this.searchParams.specialties.toUrlFriendly()}`;\r\n }\r\n\r\n return url;\r\n }\r\n\r\n initDocAsap(): void {\r\n this.showDocAsap = true;\r\n if (this.providerSchedulingFeature) {\r\n this.docAsapIds = [];\r\n } else {\r\n this.providerService.getDocAsapIds().subscribe((results: { npi: number; docAsapId: number }[]) => {\r\n this.docAsapIds = results || [];\r\n });\r\n }\r\n }\r\n\r\n setProviderGenderFull() {\r\n this.providerCards.forEach((provider) => {\r\n if (provider.gender?.toLowerCase() === 'm') {\r\n provider.gender = 'Male';\r\n } else if (provider.gender?.toLowerCase() === 'f') {\r\n provider.gender = 'Female';\r\n } else {\r\n provider.gender = null;\r\n }\r\n });\r\n }\r\n\r\n navigateToCernerSchedulingSpa(event: any): void {\r\n //<------The below code is used in cerner Page to get token from my-appointment-spa----->\r\n\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n if (event) {\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostApptDetailstoMyAppointment_Cerner,\r\n data: event\r\n })\r\n );\r\n } \r\n const tokenInfo = window.sessionStorage.getItem(\r\n this.runtimeConfig.Cerner_MyAppointments_OIDC_Token\r\n );\r\n if (tokenInfo) {\r\n \r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostOidcTokentoMyAppointment_Cerner,\r\n data: tokenInfo\r\n })\r\n );\r\n }\r\n \r\n }\r\n}\r\n","import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { Location } from '@angular/common';\r\nimport { RuntimeConfiguration } from '../../services/configuration-injection.service';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'cs-provider-details-navigation',\r\n templateUrl: './provider-details-navigation.component.html',\r\n styleUrls: ['./provider-details-navigation.component.scss']\r\n})\r\nexport class ProviderDetailsNavigationComponent implements OnInit,AfterViewInit {\r\n @Input() referringUrl: string;\r\n @Input() redirectFromFAL: boolean;\r\n @Output() navigationEmitter = new EventEmitter();\r\n runtimeConfig: RuntimeConfiguration;\r\n btnContent = ' Back to search results';\r\n isCernerPage: boolean;\r\n @ViewChild('bckSearchbtn') bckSearchBtn: ElementRef;\r\n constructor(\r\n private location: Location,\r\n public fadLinkServer: FadLinkService,\r\n public configurationService: ConfigurationService,\r\n public router: Router\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.runtimeConfig = this.configurationService.getRuntimeConfiguration();\r\n this.isCernerPage = this.configurationService.getCernerPage();\r\n const locationParam = sessionStorage.getItem('falLocationDetailsParam');\r\n if (this.redirectFromFAL || sessionStorage.getItem('FAL_Provider_redirectto-fad') === 'true') {\r\n if (locationParam !== null && locationParam.length > 0) {\r\n this.btnContent = ' Back to location details page';\r\n }\r\n sessionStorage.removeItem('FALredirecttoFAD');\r\n sessionStorage.removeItem('FAL_Provider_redirectto-fad');\r\n }\r\n }\r\n ngAfterViewInit() {\r\n if (this.isCernerPage) {\r\n this.bckSearchBtn.nativeElement.focus();\r\n }\r\n }\r\n returnToResults() {\r\n // Shouldn't we remove from Session Storage immediately during ngOnInit? That way we don't risk it being left in session storage.\r\n // There are definitely some bugs where the button shows up when it shouldn't.\r\n // Also, this component shouldn't get an ngIf around it. It should simply decide if it's going to put any contents in the html based on\r\n // the searchResultsOrigin being in session storage or not.\r\n // If it's not, then it can simply remove itself using ViewContainerRef .detach or .remove\r\n if (this.isCernerPage) {\r\n this.checkFadCernerSearchResult();\r\n return;\r\n }\r\n sessionStorage.removeItem('searchResultsOrigin');\r\n if (this.referringUrl) {\r\n this.setWindowLocationHref(this.referringUrl);\r\n } else if (sessionStorage.getItem('SchedApp_redirectto-fad') && !this.referringUrl) {\r\n this.setWindowLocationHref(sessionStorage.getItem('SchedApp_redirectto-fad'));\r\n } else if (window.sessionStorage.getItem('nonFadUrlAccessed') && window.sessionStorage.getItem('fadSearchResultsUrl')) {\r\n window.sessionStorage.removeItem('nonFadUrlAccessed');\r\n this.setWindowLocationHref(window.sessionStorage.getItem('fadSearchResultsUrl'));\r\n } else if (this.redirectFromFAL) {\r\n const falLocationNameParam = sessionStorage.getItem('falLocationDetailsParam');\r\n const encodedFalLocationNameParam = encodeURIComponent(falLocationNameParam);\r\n let falRedirectUrl = `${this.runtimeConfig.falBaseUrl}${encodedFalLocationNameParam}`;\r\n\r\n let embedSource = '';\r\n try {\r\n embedSource = this.configurationService.getEmbedSource();\r\n if (!embedSource) {\r\n const falElement = document.querySelector('fal-saas');\r\n if (falElement) {\r\n embedSource = falElement.getAttribute('embedsource');\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n if (embedSource === 'cerner') {\r\n const domain = new URL(this.runtimeConfig.falBaseUrl);\r\n falRedirectUrl = `${domain.origin}/${this.configurationService.getRedirectToFALinCerner()}/${encodedFalLocationNameParam}`;\r\n } else if (!this.fadLinkServer.isSelfHosted() || embedSource === 'mychart') {\r\n if (embedSource === 'mychart') {\r\n falRedirectUrl = `${this.configurationService.getRedirectURLPathForFALEpic()}/${falLocationNameParam\r\n .removeSpecialCharacters()\r\n .sanitizeHyphens()}`;\r\n } else {\r\n falRedirectUrl = `${this.configurationService.getRedirectToLocation()}${encodedFalLocationNameParam}`;\r\n }\r\n }\r\n\r\n window.sessionStorage.removeItem('FALredirecttoFAD');\r\n window.sessionStorage.removeItem('falLocationDetailsParam');\r\n // Removing Session used for filters opration of medical group\r\n sessionStorage.removeItem('includeProviderRoleTypes');\r\n sessionStorage.removeItem('selectedMedicalGroup');\r\n sessionStorage.removeItem('PreviousSelectedMediGrpPrvdRole');\r\n sessionStorage.removeItem('medGroupQueryParam');\r\n sessionStorage.removeItem('manualSelection');\r\n sessionStorage.removeItem('SelectedMedGroupFiltersModel');\r\n window.open(falRedirectUrl, '_self');\r\n } else {\r\n this.checkFadSearchResultURL();\r\n }\r\n }\r\n private checkFadSearchResultURL() {\r\n if (window.sessionStorage.getItem('fadSearchResultsUrl')) {\r\n this.setWindowLocationHref(window.sessionStorage.getItem('fadSearchResultsUrl'));\r\n } else {\r\n this.location.back();\r\n }\r\n }\r\n private checkFadCernerSearchResult() {\r\n if (window.sessionStorage.getItem('cernerfadSearchUrl') && window.sessionStorage.getItem('cernerfadSearchUrl').toString().includes('t')) {\r\n this.router.navigateByUrl(window.sessionStorage.getItem('cernerfadSearchUrl'));\r\n }\r\n else\r\n {\r\n window.sessionStorage.setItem('cernerfadSearchUrl','');\r\n this.router.navigate(['']);\r\n }\r\n }\r\n private setWindowLocationHref(url: string): void {\r\n window.location.href = url;\r\n }\r\n}\r\n","<div>\r\n <a href=\"javascript:void(0)\" (click)=\"returnToResults()\">\r\n <button #bckSearchbtn class=\"search-results-return\" aria-hidden=\"true\" tabindex=\"-1\">\r\n <svg viewBox=\"0 0 9 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M8 1L1 8L8 15\" />\r\n </svg>\r\n {{btnContent}}\r\n </button>\r\n </a>\r\n</div>\r\n","import { Component, EventEmitter, Input, OnChanges, Output } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-provider-role-checkbox',\r\n templateUrl: './provider-role-checkbox.component.html',\r\n styleUrls: ['./provider-role-checkbox.component.scss']\r\n})\r\nexport class ProviderRoleCheckboxComponent implements OnChanges {\r\n @Input() selectCheckBox: boolean;\r\n\r\n isProviderRoleTypesSelected = false;\r\n\r\n @Output() includeProviderRoleTypes = new EventEmitter<boolean>();\r\n\r\n ngOnChanges(): void {\r\n this.isProviderRoleTypesSelected = this.selectCheckBox;\r\n }\r\n\r\n checkProviderRole(): void {\r\n this.isProviderRoleTypesSelected = !this.isProviderRoleTypesSelected;\r\n sessionStorage.setItem('manualSelection', String(this.isProviderRoleTypesSelected));\r\n this.includeProviderRoleTypes.emit(this.isProviderRoleTypesSelected);\r\n }\r\n}\r\n","<div class=\"checkbox\">\r\n <span>\r\n <div>\r\n <label class=\"container\">\r\n <input type=\"checkbox\" [checked]=\"isProviderRoleTypesSelected\" id=\"urgent-care\" (change)=\"checkProviderRole()\" />\r\n Include hospital-based and urgent care providers\r\n <span class=\"checkmark\"></span>\r\n </label>\r\n </div>\r\n </span>\r\n</div>\r\n","import { Directive, Input, Renderer2, ElementRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[csFocused]'\r\n})\r\nexport class FocusedDirective {\r\n @Input()\r\n set csFocused(value: boolean) {\r\n if (value) {\r\n const element = this.renderer.selectRootElement(this.elementRef.nativeElement, true);\r\n element.scrollIntoViewIfNeeded({ behavior: 'smooth' });\r\n }\r\n }\r\n\r\n constructor(private elementRef: ElementRef, private renderer: Renderer2) {}\r\n}\r\n","<div class=\"provider-search\" [ngClass]=\"{'ps-changeStyle':changeBtnStyle}\" #providerSuggestionsContainer>\r\n <span class=\"provider-search-icon\">\r\n <svg viewBox=\"0 0 18 19\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31253C2.81252 9.8016 4.82697 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.7981 11.8126 7.31253C11.8126 4.82346 9.79811 2.8125 7.31254 2.8125C4.82347 2.8125 2.81252 4.82696 2.81252 7.31253Z\"\r\n />\r\n </svg>\r\n </span>\r\n <input\r\n maxlength=\"80\"\r\n data-nav-type=\"find a doctor\"\r\n data-nav-element=\"fad search text\"\r\n [ngClass]=\"{ active: autocompleteActive }\"\r\n data-nav-location=\"fad search initiation\"\r\n type=\"text\"\r\n [(ngModel)]=\"searchTerm\"\r\n (ngModelChange)=\"onInputChange($event)\"\r\n [placeholder]=\"this.searchPlaceholder\"\r\n (focus)=\"onFocusGained()\"\r\n (blur)=\"onFocusLost($event)\"\r\n (keyup.enter)=\"handleKeywordChange()\"\r\n (keyup.escape)=\"setAutocompleteActive(false)\"\r\n (keydown)=\"keyDownHandler($event)\"\r\n role=\"combobox\"\r\n aria-autocomplete=\"list\"\r\n [attr.aria-expanded]=\"autocompleteActive\"\r\n [attr.aria-busy]=\"inputInFocus && showLoadingMessage && searchTerm !== '' && !autocompleteActive\"\r\n tabindex=\"0\"\r\n #search\r\n />\r\n <ul\r\n *ngIf=\"inputInFocus && showLoadingMessage && searchTerm !== '' && !autocompleteActive\"\r\n [attr.aria-label]=\"autoSuggestionLoadingMessage\"\r\n class=\"provider-suggestions-container\"\r\n >\r\n <li class=\"providers-list\" role=\"option\">\r\n <ul>\r\n <li class=\"loading-suggestion\" [attr.aria-label]=\"autoSuggestionLoadingMessage\">{{ autoSuggestionLoadingMessage }}</li>\r\n </ul>\r\n </li>\r\n </ul>\r\n <ul\r\n *ngIf=\"inputInFocus && autocompleteActive && searchTerm !== ''\"\r\n aria-label=\"Specialties Providers Keywords\"\r\n class=\"provider-suggestions-container\"\r\n >\r\n <li class=\"specialties-list\" *ngIf=\"showSpecialtySuggestions && suggestions.specialties.length > 0\">\r\n <h3><p>Specialties</p></h3>\r\n <ul>\r\n <li\r\n *ngFor=\"let specialty of suggestions.specialties.slice(0, specialtySliceIndex); let k = index\"\r\n (click)=\"specialtyClick(specialty)\"\r\n (keydown.enter)=\"specialtyClick(specialty)\"\r\n (keydown.space)=\"specialtyClick(specialty)\"\r\n [innerHTML]=\"queryHighlight(specialty)\"\r\n [csFocused]=\"activeSpecialtyDropdownIndex === k\"\r\n [class.focused]=\"activeSpecialtyDropdownIndex === k\"\r\n [attr.aria-selected]=\"activeSpecialtyDropdownIndex === k\"\r\n [ngClass]=\"{ selected: activeSpecialtyDropdownIndex === k }\"\r\n (mouseenter)=\"handleMouseEnter(k, 'specialty')\"\r\n [attr.aria-label]=\"specialty\"\r\n tabindex=\"0\"\r\n id=\"{{'specialty_' + k}}\"\r\n ></li>\r\n </ul>\r\n <div class=\"show-more-less\" *ngIf=\"suggestions.specialties.length > 3\">\r\n <a\r\n href=\"javascript:;\"\r\n role=\"button\"\r\n [attr.aria-label]=\" specialtySliceIndex < suggestions.specialties.length ? 'Show more specialties' : 'Show less specialties'\"\r\n (mouseenter)=\"seeLessMoreHover('specialty')\"\r\n (click)=\"expandLessCick('specialty')\"\r\n #specialitySeeMore\r\n >\r\n {{ specialtySliceIndex < suggestions.specialties.length ? 'More' : 'Less' }}\r\n <svg\r\n class=\"more-arrow\"\r\n [ngClass]=\"{ 'less-arrow': specialtySliceIndex === suggestions.specialties.length }\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </li>\r\n <hr\r\n aria-hidden=\"true\"\r\n *ngIf=\"(showSpecialtySuggestions && suggestions.specialties.length > 0) && (suggestions.providers.length > 0 || suggestions.keywords.length > 0)\"\r\n />\r\n <li class=\"providers-list\" *ngIf=\"suggestions.providers.length > 0\">\r\n <h3><p>Providers</p></h3>\r\n <ul>\r\n <li\r\n *ngFor=\"let provider of suggestions.providers.slice(0, providerSliceIndex); let i = index\"\r\n (click)=\"goToProvider(provider.npi, provider.firstName, provider.lastName, checkforPrimarySpeciality(provider))\"\r\n (keydown.enter)=\"goToProvider(provider.npi, provider.firstName, provider.lastName, checkforPrimarySpeciality(provider))\"\r\n (keydown.space)=\"goToProvider(provider.npi, provider.firstName, provider.lastName, checkforPrimarySpeciality(provider))\"\r\n [innerHTML]=\"providerHighlight(provider)\"\r\n [csFocused]=\"activeProviderDropdownIndex === i\"\r\n [class.focused]=\"activeProviderDropdownIndex === i\"\r\n [attr.aria-selected]=\"activeProviderDropdownIndex === i\"\r\n [attr.aria-label]=\"getProviderName(provider)\"\r\n [ngClass]=\"{ selected: activeProviderDropdownIndex === i }\"\r\n (mouseenter)=\"handleMouseEnter(i, 'provider')\"\r\n tabindex=\"0\"\r\n id=\"{{'provider_' + i}}\"\r\n >\r\n <a></a>\r\n </li>\r\n </ul>\r\n <ng-container *ngIf=\"enableAutoSuggestionProviders && providerSliceIndex > 3 && providerCount > 10\">\r\n <div class=\"show-all-providers\">\r\n <a\r\n href=\"javascript:;\"\r\n [attr.aria-label]=\"providerSliceIndex < suggestions.providers.length ? '' : 'See all providers'\"\r\n (click)=\"keywordSeeAllProviderSearchClick()\"\r\n #seeAllproviders\r\n >\r\n {{ providerSliceIndex < suggestions.providers.length ? '' : 'See all providers'}}\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"></svg>\r\n </a>\r\n </div>\r\n </ng-container>\r\n <div class=\"show-more-less\" *ngIf=\"suggestions.providers.length > 3\">\r\n <a\r\n href=\"javascript:;\"\r\n role=\"button\"\r\n [attr.aria-label]=\"providerSliceIndex < suggestions.providers.length ? 'Show more providers' : 'Show less providers'\"\r\n (mouseenter)=\"seeLessMoreHover('provider')\"\r\n (click)=\"expandLessCick('provider')\"\r\n #providerSeeMore\r\n >\r\n {{ providerSliceIndex < suggestions.providers.length ? 'More' : 'Less' }}\r\n <svg\r\n class=\"more-arrow\"\r\n [ngClass]=\"{ 'less-arrow': providerSliceIndex === suggestions.providers.length }\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </li>\r\n <hr aria-hidden=\"true\" *ngIf=\"suggestions.providers.length > 0 && suggestions.keywords.length > 0\" />\r\n <li class=\"keywords-list\" *ngIf=\"suggestions.keywords.length > 0\">\r\n <h3><p>Keywords</p></h3>\r\n <ul>\r\n <li\r\n *ngFor=\"let keyword of suggestions.keywords.slice(0, keywordSliceIndex); let j = index\"\r\n (click)=\"keywordClick(keyword)\"\r\n (keydown.enter)=\"keywordClick(keyword)\"\r\n (keydown.space)=\"keywordClick(keyword)\"\r\n [innerHTML]=\"queryHighlight(keyword)\"\r\n [csFocused]=\"activeKeywordDropdownIndex === j\"\r\n [class.focused]=\"activeKeywordDropdownIndex === j\"\r\n [attr.aria-selected]=\"activeKeywordDropdownIndex === j\"\r\n [ngClass]=\"{ selected: activeKeywordDropdownIndex === j }\"\r\n (mouseenter)=\"handleMouseEnter(j, 'keyword')\"\r\n [attr.aria-label]=\"keyword\"\r\n tabindex=\"0\"\r\n id=\"{{'keyword_' + j}}\"\r\n ></li>\r\n </ul>\r\n <div class=\"show-more-less\" *ngIf=\"suggestions.keywords.length > 3\">\r\n <a\r\n href=\"javascript:;\"\r\n role=\"button\"\r\n [attr.aria-label]=\"keywordSliceIndex < suggestions.keywords.length ? 'Show more keywords' : 'Show less keywords'\"\r\n (mouseenter)=\"seeLessMoreHover('keyword')\"\r\n (click)=\"expandLessCick('keyword')\"\r\n #keywordSeeMore\r\n >\r\n {{ keywordSliceIndex < suggestions.keywords.length ? 'More' : 'Less' }}\r\n <svg\r\n class=\"more-arrow\"\r\n [ngClass]=\"{ 'less-arrow': keywordSliceIndex === suggestions.keywords.length }\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </li>\r\n </ul>\r\n</div>\r\n","import {\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n HostListener,\r\n Input,\r\n OnDestroy,\r\n OnInit,\r\n Output,\r\n SimpleChanges,\r\n ViewChild, OnChanges\r\n} from '@angular/core';\r\nimport { forkJoin, Observable, of, ReplaySubject, Subject, Subscription } from 'rxjs';\r\nimport { catchError, debounceTime, filter, switchMap, tap } from 'rxjs/operators';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport {\r\n KeywordSuggestion,\r\n KeywordSuggestionResponse,\r\n Provider,\r\n ProviderInterfaceHelper,\r\n ProviderSuggestionResponse,\r\n ProviderSuggestionV2Response,\r\n ProviderTextV2\r\n} from '../../models/provider';\r\nimport { ProviderOffice } from '../../models/provider-office';\r\nimport { SearchSuggestions } from '../../models/search-suggestions';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { ProviderService } from '../../services/provider.service';\r\nimport { ResizeService, ViewPortSize } from '../../services/resize.service';\r\nimport { ApiResponse } from '../../utils/api-response';\r\nimport './../../utils/string-prototypes';\r\nimport { Router } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'cs-provider-search',\r\n templateUrl: './provider-search.component.html',\r\n styleUrls: ['./provider-search.component.scss']\r\n})\r\nexport class ProviderSearchComponent implements OnInit, OnDestroy, OnChanges {\r\n @Input() searchTerm: string;\r\n @Input() hideProviderSuggestions: boolean;\r\n @Input() autoSuggestionLoadingMessage: string;\r\n @Output() searchTermChanged = new EventEmitter<string>();\r\n @Output() keywordEnter = new EventEmitter<string>();\r\n @Output() goToProviderEvent = new EventEmitter<any>();\r\n @Output() specialtyChanged = new EventEmitter<string>();\r\n @Output() tabPressedOnProviderSearch = new EventEmitter<any>();\r\n\r\n suggestions: SearchSuggestions = {\r\n providers: [],\r\n keywords: [],\r\n specialties: []\r\n };\r\n autocompleteActive = false;\r\n providerSliceIndex = 3;\r\n keywordSliceIndex = 3;\r\n specialtySliceIndex = 3;\r\n searchPlaceholder: string;\r\n showSpecialtySuggestions: boolean;\r\n activeProviderDropdownIndex = -1;\r\n activeKeywordDropdownIndex = -1;\r\n activeSpecialtyDropdownIndex = -1;\r\n defaultSliceIndex = 2;\r\n lastFocusWasFromKeyboard = false;\r\n seeLessMoreClicked = false;\r\n seeLessMoreFocused = false;\r\n isFromexpandLessCick = false;\r\n enableAutoSuggestionProviders: boolean;\r\n providerCount = 0;\r\n useLegacyAPI = false;\r\n viewPort$: Subscription;\r\n results$: Subscription;\r\n subject = new ReplaySubject<string>(1);\r\n showLoadingMessage = false;\r\n inputInFocus = false;\r\n changeBtnStyle:string;\r\n private readonly inputDebounceMS = 300;\r\n private readonly noSuggestionsSelected = -1;\r\n private inputModelChanged: Subject<string> = new Subject<string>();\r\n\r\n @ViewChild('providerSuggestionsContainer') providerSuggestionsContainer: ElementRef;\r\n @ViewChild('search') searchElement: ElementRef;\r\n @ViewChild('specialitySeeMore') specialitySeeMore: ElementRef;\r\n @ViewChild('providerSeeMore') providerSeeMore: ElementRef;\r\n @ViewChild('keywordSeeMore') keywordSeeMore: ElementRef;\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n if (!this.providerSuggestionsContainer.nativeElement.contains(event.target)) {\r\n this.autocompleteActive = false;\r\n this.providerSliceIndex = 3;\r\n this.keywordSliceIndex = 3;\r\n this.specialtySliceIndex = 3;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n } else if (\r\n this.searchTerm &&\r\n this.searchTerm !== ' ' &&\r\n (this.suggestions.providers.length > 0 || this.suggestions.keywords.length > 0 || this.suggestions.specialties.length > 0)\r\n ) {\r\n this.autocompleteActive = true;\r\n }\r\n }\r\n\r\n @HostListener('window:mousemove', ['$event'])\r\n onMouseMove() {\r\n this.lastFocusWasFromKeyboard = false;\r\n }\r\n\r\n @HostListener('window:keydown', ['$event'])\r\n onKeyDown(keyEvent: KeyboardEvent) {\r\n const keyCode = keyEvent.key.toLowerCase();\r\n if (keyCode === 'arrowdown' || keyCode === 'arrowup') {\r\n if (this.seeLessMoreClicked) {\r\n if (this.seeLessMoreFocused) {\r\n this.seeLessMoreFocused = false;\r\n this.searchElement.nativeElement.focus();\r\n this.keyDownHandler(keyEvent);\r\n } else {\r\n this.seeLessMoreFocused = true;\r\n }\r\n }\r\n }\r\n if (keyCode === 'tab' && this.autocompleteActive) {\r\n this.tabPressedOnProviderSearch.emit();\r\n }\r\n }\r\n\r\n constructor(\r\n private providerService: ProviderService,\r\n private resizeService: ResizeService,\r\n private configurationService: ConfigurationService,\r\n private router: Router\r\n ) {\r\n this.useLegacyAPI = this.configurationService.useLegacyAPI();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.results$.unsubscribe();\r\n this.subject.unsubscribe();\r\n this.viewPort$.unsubscribe();\r\n }\r\n\r\n ngOnInit(): void {\r\n this.viewPort$ = this.resizeService.viewPortChanged.pipe(tap((result: ViewPortSize) => this.setPlaceholderText(result))).subscribe();\r\n\r\n\r\n this.results$ = this.subject\r\n .pipe(\r\n filter((searchText) => !!searchText && searchText.length > 0),\r\n switchMap((searchTerm) => {\r\n if (!this.useLegacyAPI) {\r\n return this.getSearchSuggestionsV2(searchTerm).pipe(\r\n catchError(() => of(undefined))\r\n );\r\n } else {\r\n return this.getSearchSuggestions(searchTerm).pipe(\r\n catchError(() => of(undefined))\r\n );\r\n }\r\n }),\r\n tap(() => {\r\n this.showLoadingMessage = false;\r\n if (!this.inputInFocus) {\r\n this.setAutocompleteActive(false);\r\n return;\r\n }\r\n this.setAutocompleteActive(\r\n this.suggestions.providers.length > 0 || this.suggestions.keywords.length > 0 || this.suggestions.specialties.length > 0\r\n );\r\n })\r\n )\r\n .subscribe();\r\n\r\n this.enableAutoSuggestionProviders = this.configurationService.shouldEnableAutoSuggestionProviders();\r\n this.inputModelChanged.pipe(debounceTime(this.inputDebounceMS)).subscribe((event) => this.onChangeSearch(event));\r\n this.showSpecialtySuggestions = this.configurationService.showSpecialtySuggestions();\r\n this.changeBtnStyle= this.configurationService.getSearchButton();\r\n }\r\n\r\n setPlaceholderText(viewportSize: ViewPortSize) {\r\n if (viewportSize === ViewPortSize.Desktop) {\r\n this.searchPlaceholder = this.configurationService.getSearchTermDeskTop();\r\n } else {\r\n this.searchPlaceholder = viewportSize === ViewPortSize.Tablet\r\n ? this.configurationService.getSearchTermTablet()\r\n : this.configurationService.getSearchTermMobile();\r\n }\r\n }\r\n\r\n getSearchSuggestions(\r\n query: string\r\n ): Observable<\r\n [ApiResponse<ProviderSuggestionResponse>, ApiResponse<KeywordSuggestionResponse>, ApiResponse<ProviderSuggestionResponse>]\r\n > {\r\n return forkJoin([\r\n this.getProviderSuggestionsTyped(query),\r\n this.getKeywordSuggestionsTyped(query),\r\n this.getSpecialtySuggestionsTyped(query)\r\n ]);\r\n }\r\n\r\n getSearchSuggestionsV2(\r\n query: string\r\n ): Observable<\r\n [ApiResponse<ProviderSuggestionResponse>, ApiResponse<KeywordSuggestionResponse>, ApiResponse<ProviderSuggestionV2Response>]\r\n > {\r\n return forkJoin([\r\n this.getProviderSuggestionsTyped(query),\r\n this.getKeywordSuggestionsTyped(query),\r\n this.getSpecialtyV2SuggestionsTyped(query)\r\n ]);\r\n }\r\n\r\n getProviderSuggestionsTyped(query: string): Observable<ApiResponse<ProviderSuggestionResponse>> {\r\n return this.providerService.getTypedProviderSuggestions(query, 'provider').pipe(\r\n tap((response) => {\r\n let providers: Provider[] = [];\r\n if (response.isValid) {\r\n this.providerCount = response.result.providerCount;\r\n providers = response.result.items\r\n .map((s) => s.providers)\r\n .reduce((a: Provider[], b: Provider[]) => a.concat(b.filter(this.onlyUnique)), []);\r\n }\r\n providers.forEach((provider: Provider) => {\r\n this.updateProviderFullName(provider);\r\n });\r\n this.suggestions.providers = providers;\r\n })\r\n );\r\n }\r\n\r\n updateProviderFullName(provider: Provider): void {\r\n if (!this.configurationService.showProviderPrefix()) {\r\n provider.displayFullName = ProviderInterfaceHelper.removeProviderNamePrefix(provider.firstName, provider.lastName, provider.degree);\r\n }\r\n }\r\n\r\n private onlyUnique<T>(value: T, index, array: T[]): boolean {\r\n return array.indexOf(value) === index;\r\n }\r\n\r\n getKeywordSuggestionsTyped(query: string): Observable<ApiResponse<KeywordSuggestionResponse>> {\r\n return this.providerService.getTypedKeywordSuggestions(query).pipe(\r\n tap((response) => {\r\n let keywords: string[] = [];\r\n if (response.isValid) {\r\n keywords = response.result.items\r\n .map((suggestion: KeywordSuggestion) => suggestion.textAndQuery.toTitleCase())\r\n .filter(this.onlyUnique);\r\n }\r\n this.suggestions.keywords = keywords;\r\n })\r\n );\r\n }\r\n\r\n getSpecialtySuggestionsTyped(query: string): Observable<ApiResponse<ProviderSuggestionResponse>> {\r\n return this.providerService.getTypedProviderSuggestions(query, 'specialty').pipe(\r\n tap((response) => {\r\n let specialties: string[] = [];\r\n if (response.isValid) {\r\n specialties = response.result.items.map((s) => s.text).filter(this.onlyUnique);\r\n }\r\n this.suggestions.specialties = specialties;\r\n })\r\n );\r\n }\r\n\r\n getSpecialtyV2SuggestionsTyped(query: string): Observable<ApiResponse<ProviderSuggestionV2Response>> {\r\n return this.providerService.getTypedProviderSuggestionsV2(query).pipe(\r\n tap((response) => {\r\n let specialityText: ProviderTextV2[] = [];\r\n const specialities: string[] = [];\r\n if (response.isValid && response.result.items.length > 0) {\r\n specialityText = response.result.items\r\n .map((s) => s.text)\r\n .reduce((a: ProviderTextV2[], b: ProviderTextV2[]) => (!this.useLegacyAPI ? [...a, ...b] : b.concat([...new Set(a).values()])));\r\n }\r\n specialityText.forEach((text: ProviderTextV2) => {\r\n if (!specialities.includes(text.specialty)) {\r\n specialities.push(text.specialty);\r\n }\r\n });\r\n this.suggestions.specialties = !this.useLegacyAPI ? [...specialities] : [...new Set(specialities)].sort();\r\n })\r\n );\r\n }\r\n\r\n onInputChange(event) {\r\n this.showLoadingMessage = true;\r\n this.setAutocompleteActive(false);\r\n this.inputModelChanged.next(event);\r\n }\r\n\r\n onChangeSearch(val: string) {\r\n this.providerSliceIndex = 3;\r\n this.keywordSliceIndex = 3;\r\n this.specialtySliceIndex = 3;\r\n this.suggestions = {\r\n providers: [],\r\n keywords: [],\r\n specialties: []\r\n };\r\n\r\n this.searchTermChanged.emit(val);\r\n\r\n val = val.replace(/^[^a-zA-Z0-9&-]+$/, '');\r\n if (val && val.match(/^ *$/) === null) {\r\n this.subject.next(val);\r\n this.searchTermChanged.emit(val);\r\n } else {\r\n this.setAutocompleteActive(false);\r\n }\r\n }\r\n\r\n setAutocompleteActive(value: boolean) {\r\n if (value === true) {\r\n if (this.suggestions.specialties.length > 0) {\r\n this.activeSpecialtyDropdownIndex = 0;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.suggestions.providers.length > 0) {\r\n this.activeProviderDropdownIndex = 0;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.suggestions.keywords.length > 0) {\r\n this.activeKeywordDropdownIndex = 0;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n }\r\n }\r\n\r\n this.autocompleteActive = value;\r\n }\r\n\r\n keywordClick(keyword: string) {\r\n this.autocompleteActive = false;\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpecialityText);\r\n this.searchTerm = keyword;\r\n this.searchTermChanged.emit(keyword);\r\n this.searchElement.nativeElement.focus();\r\n }\r\n\r\n keywordSeeAllProviderSearchClick() {\r\n this.autocompleteActive = false;\r\n this.keywordEnter.emit(this.searchTerm);\r\n this.searchElement.nativeElement.focus();\r\n }\r\n\r\n specialtyClick(specialty: string) {\r\n sessionStorage.removeItem('prevSpecialityisAutoTgrChkbx');\r\n this.autocompleteActive = false;\r\n window.sessionStorage.setItem(SessionObjectNames.SingleSpecialityText, specialty);\r\n this.specialtyChanged.emit(specialty);\r\n }\r\n\r\n goToProvider(npi: string | number, firstName: string, lastName: string, primarySpecialty: string) {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpecialityText);\r\n sessionStorage.setItem('searchResultsOrigin', 'true');\r\n this.goToProviderEvent.emit({ npi, firstName, lastName, primarySpecialty });\r\n }\r\n\r\n checkforPrimarySpeciality(provider): any {\r\n let primarySpeciality: any;\r\n if (!this.useLegacyAPI) {\r\n primarySpeciality = provider.primarySpecialty[0].specialty;\r\n } else {\r\n primarySpeciality = provider.primarySpecialty;\r\n }\r\n return primarySpeciality;\r\n }\r\n\r\n providerHighlight(provider: Provider) {\r\n let primaryOffice = null;\r\n provider.offices?.forEach((office: ProviderOffice) => {\r\n office.addresses.forEach((address: OfficeAddress) => {\r\n if (address.isPrimaryOffice) {\r\n primaryOffice = address;\r\n }\r\n });\r\n });\r\n let highlightString = `${provider.displayFullName}`;\r\n if (primaryOffice) {\r\n highlightString += `, ${primaryOffice.city}, ${primaryOffice.state}`;\r\n } else if (provider.offices && provider.offices.length > 0) {\r\n const office = provider.offices[0].addresses[0];\r\n highlightString += `, ${office.city}, ${office.state}`;\r\n }\r\n\r\n const reg = new RegExp(this.searchTerm, 'ig');\r\n return highlightString.replace(reg, (match: any) => `<i>${match}</i>`);\r\n }\r\n\r\n queryHighlight(highlightString: string) {\r\n const reg = new RegExp(this.searchTerm, 'ig');\r\n return highlightString.replace(reg, (match: any) => `<i>${match}</i>`);\r\n }\r\n\r\n handleKeywordChange() {\r\n if (this.seeLessMoreClicked) {\r\n this.seeLessMoreClicked = false;\r\n return;\r\n }\r\n this.seeLessMoreClicked = false;\r\n let specialtyChosen = false;\r\n document.querySelectorAll('.specialties-list li').forEach((item) => {\r\n if (!specialtyChosen) {\r\n specialtyChosen = item.classList.contains('selected');\r\n }\r\n });\r\n\r\n let providerChosen = false;\r\n document.querySelectorAll('.providers-list li').forEach((item) => {\r\n if (!providerChosen) {\r\n providerChosen = item.classList.contains('selected');\r\n }\r\n });\r\n\r\n let keywordChosen = false;\r\n document.querySelectorAll('.keywords-list li').forEach((item) => {\r\n if (!keywordChosen) {\r\n keywordChosen = item.classList.contains('selected');\r\n }\r\n });\r\n\r\n if (providerChosen && this.autocompleteActive) {\r\n const selectedProvider = this.suggestions.providers[this.activeProviderDropdownIndex];\r\n this.goToProvider(selectedProvider.npi, selectedProvider.firstName, selectedProvider.lastName, selectedProvider.primarySpecialty);\r\n } else if (keywordChosen && this.autocompleteActive) {\r\n const selectedKeyword = this.suggestions.keywords[this.activeKeywordDropdownIndex];\r\n this.keywordClick(selectedKeyword);\r\n } else if (specialtyChosen && this.autocompleteActive) {\r\n const selectedSpecialty = this.suggestions.specialties[this.activeSpecialtyDropdownIndex];\r\n this.specialtyClick(selectedSpecialty);\r\n } else {\r\n this.keywordEnter.emit(this.searchTerm);\r\n }\r\n this.autocompleteActive = false;\r\n }\r\n\r\n onFocusGained(): void {\r\n this.inputInFocus = true;\r\n }\r\n\r\n onFocusLost(event: FocusEvent | any) {\r\n if (\r\n (event.target && !this.providerSuggestionsContainer.nativeElement.contains(event.target)) ||\r\n (event.relatedTarget && !this.providerSuggestionsContainer.nativeElement.contains(event.relatedTarget))\r\n ) {\r\n this.inputInFocus = false;\r\n }\r\n }\r\n\r\n keyDownHandler(keyEvent: KeyboardEvent): void {\r\n const keyCode = keyEvent.key.toLowerCase();\r\n if (keyCode === 'arrowdown') {\r\n keyEvent.preventDefault();\r\n this.arrowHandler(1);\r\n } else if (keyCode === 'arrowup') {\r\n keyEvent.preventDefault();\r\n this.arrowHandler(-1);\r\n }\r\n }\r\n\r\n handleMouseEnter(index: number, type: string): void {\r\n if (!this.lastFocusWasFromKeyboard) {\r\n if (this.seeLessMoreClicked) {\r\n this.seeLessMoreClicked = false;\r\n this.seeLessMoreFocused = false;\r\n this.searchElement.nativeElement.focus();\r\n }\r\n if (type == 'specialty') {\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = index;\r\n } else if (type == 'provider') {\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = index;\r\n } else {\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = index;\r\n }\r\n }\r\n }\r\n\r\n arrowHandler(increment: number): void {\r\n this.lastFocusWasFromKeyboard = true;\r\n this.seeLessMoreClicked = false;\r\n if (this.activeSpecialtyDropdownIndex > this.noSuggestionsSelected) {\r\n if (this.activeSpecialtyDropdownIndex + increment === -1) {\r\n this.activeSpecialtyDropdownIndex = 0;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeSpecialtyDropdownIndex + increment < this.specialtySliceIndex) {\r\n this.activeSpecialtyDropdownIndex += increment;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeSpecialtyDropdownIndex + increment === this.specialtySliceIndex && this.specialitySeeMore) {\r\n this.activeSpecialtyDropdownIndex += increment;\r\n this.seeLessMoreClicked = true;\r\n this.specialitySeeMore.nativeElement.focus();\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = 0;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n }\r\n } else if (this.activeProviderDropdownIndex > this.noSuggestionsSelected) {\r\n if (this.activeProviderDropdownIndex + increment === -1) {\r\n if (this.specialitySeeMore) {\r\n this.seeLessMoreClicked = true;\r\n this.specialitySeeMore.nativeElement.focus();\r\n this.activeSpecialtyDropdownIndex = this.specialtySliceIndex;\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.specialtySliceIndex - 1;\r\n }\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeProviderDropdownIndex + increment < this.providerSliceIndex) {\r\n this.activeProviderDropdownIndex += increment;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeProviderDropdownIndex + increment === this.providerSliceIndex && this.providerSeeMore) {\r\n this.activeProviderDropdownIndex += increment;\r\n this.seeLessMoreClicked = true;\r\n this.providerSeeMore.nativeElement.focus();\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = 0;\r\n }\r\n } else if (this.activeKeywordDropdownIndex > this.noSuggestionsSelected) {\r\n if (this.activeKeywordDropdownIndex + increment === -1) {\r\n if (this.providerSeeMore) {\r\n this.seeLessMoreClicked = true;\r\n this.providerSeeMore.nativeElement.focus();\r\n this.activeProviderDropdownIndex = this.providerSliceIndex;\r\n } else {\r\n this.activeProviderDropdownIndex = this.providerSliceIndex - 1;\r\n }\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeKeywordDropdownIndex + increment < this.keywordSliceIndex) {\r\n this.activeProviderDropdownIndex += this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex += increment;\r\n } else if (this.activeKeywordDropdownIndex + increment === this.keywordSliceIndex && this.keywordSeeMore) {\r\n this.activeKeywordDropdownIndex += increment;\r\n this.seeLessMoreClicked = true;\r\n this.keywordSeeMore.nativeElement.focus();\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n if (this.keywordSeeMore) {\r\n this.activeKeywordDropdownIndex = this.keywordSliceIndex;\r\n this.seeLessMoreClicked = true;\r\n this.keywordSeeMore.nativeElement.focus();\r\n } else {\r\n this.activeKeywordDropdownIndex = this.keywordSliceIndex - 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n expandLessCick(type) {\r\n this.seeLessMoreFocused = false;\r\n this.isFromexpandLessCick = true;\r\n let controlTabFor = null;\r\n if (type === 'specialty') {\r\n this.specialtySliceIndex = this.specialtySliceIndex < this.suggestions?.specialties?.length ? this.suggestions.specialties.length : 3;\r\n this.activeSpecialtyDropdownIndex = this.defaultSliceIndex;\r\n if(this.specialtySliceIndex > 3) {\r\n controlTabFor = 'specialty_3';\r\n }\r\n } else if (type === 'provider') {\r\n this.providerSliceIndex = this.providerSliceIndex < this.suggestions?.providers?.length ? this.suggestions.providers.length : 3;\r\n this.activeProviderDropdownIndex = this.defaultSliceIndex;\r\n if(this.providerSliceIndex > 3) {\r\n controlTabFor = 'provider_3';\r\n }\r\n } else {\r\n this.keywordSliceIndex = this.keywordSliceIndex < this.suggestions?.keywords?.length ? this.suggestions.keywords.length : 3;\r\n this.activeKeywordDropdownIndex = this.defaultSliceIndex;\r\n if(this.keywordSliceIndex > 3) {\r\n controlTabFor = 'keyword_3';\r\n }\r\n }\r\n setTimeout(() => {\r\n if (controlTabFor != null) {\r\n document.getElementById(controlTabFor).focus();\r\n } else {\r\n this.searchElement.nativeElement.focus();\r\n }\r\n\r\n }, 0);\r\n }\r\n\r\n seeLessMoreHover(type) {\r\n if (this.isFromexpandLessCick) {\r\n this.isFromexpandLessCick = false;\r\n return;\r\n }\r\n this.seeLessMoreClicked = true;\r\n this.seeLessMoreFocused = true;\r\n\r\n setTimeout(() => {\r\n this.lastFocusWasFromKeyboard = true;\r\n }, 1000);\r\n if (type === 'specialty') {\r\n this.activeSpecialtyDropdownIndex = this.specialtySliceIndex;\r\n this.specialitySeeMore.nativeElement.focus();\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (type === 'provider') {\r\n this.activeProviderDropdownIndex = this.providerSliceIndex;\r\n this.providerSeeMore.nativeElement.focus();\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else {\r\n this.activeKeywordDropdownIndex = this.keywordSliceIndex;\r\n this.keywordSeeMore.nativeElement.focus();\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes?.hideProviderSuggestions?.currentValue) {\r\n this.setAutocompleteActive(false);\r\n }\r\n }\r\n\r\n getProviderName(provider: Provider): string {\r\n return `${provider.firstName} ${provider.lastName}`;\r\n }\r\n}\r\n","<div class=\"search-quicklinks\">\r\n <div class=\"fad-suggetion-lead-label\">\r\n <span class=\"p p2\">Or choose from these categories:</span>\r\n </div>\r\n <div class=\"link-list\">\r\n <div class=\"mobile-row\">\r\n <div *ngFor=\"let category of quickLinksCategories?.slice(0, 2)\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"quicklinks ; context : {category: category}\"></ng-container>\r\n </div>\r\n </div>\r\n <div class=\"mobile-row\">\r\n <div *ngFor=\"let category of quickLinksCategories?.slice(2)\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"quicklinks ; context : {category: category}\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"quicklinks-divider\"></div>\r\n\r\n<ng-template #quicklinks let-category=\"category\">\r\n <div class=\"search-quicklinks-item p p2\" [ngClass]='{\"search-quicklinks-item-icon\": !!category.icon}' (click)=\"quicklinkClick(category)\">\r\n <cs-svg-icon *ngIf=\"!!category.icon\" [name]=\"category.icon\"></cs-svg-icon>\r\n <span data-nav-type=\"find a doctor\" data-nav-element=\"fad search suggestion\" data-nav-location=\"fad search initiation\"\r\n >{{ !!category.alternateText ? category.alternateText : category.value }}</span\r\n >\r\n </div>\r\n</ng-template>\r\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { QuickLinksCategories } from 'src/app/models/configuration';\r\n\r\n@Component({\r\n selector: 'cs-quicklinks-search',\r\n templateUrl: './quicklinks-search.component.html',\r\n styleUrls: ['./quicklinks-search.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class QuicklinksSearchComponent implements OnInit {\r\n @Output() quicklinkCategoryClick = new EventEmitter<QuickLinksCategories>();\r\n @Input() quickLinksCategories: QuickLinksCategories[] = [];\r\n @Input() quickLinksButtonAlignment = false;\r\n\r\n calcWidth = 'calc(50% - 20px)';\r\n dynamicWidth = '100%';\r\n\r\n ngOnInit(): void {\r\n this.changeButtonAlignment();\r\n }\r\n\r\n quicklinkClick(quickLink: QuickLinksCategories) {\r\n this.quicklinkCategoryClick.emit(quickLink);\r\n }\r\n\r\n changeButtonAlignment() {\r\n document.documentElement.style.setProperty('--width',\r\n this.quickLinksButtonAlignment ? this.dynamicWidth : this.calcWidth);\r\n }\r\n}\r\n","<div class=\"regional-helpline\" [ngClass]=\"{ 'full-width': !showMyProviders }\">\r\n <span class=\"regional-helpline-header\" *ngIf=\"!showinSearchResultsPage\">{{ displayInfo }}</span>\r\n <span class=\"need-help-helpline-header h2\" *ngIf=\"showinSearchResultsPage\">{{ displayHeadingInvalid }}</span>\r\n <div class=\"regional-helpline-items\" *ngIf=\"this.helplineNumbers.length > 1\">\r\n <div *ngFor=\"let line of helplineNumbers\" class=\"helpline-item\">\r\n <div class=\"row visibledevice\">\r\n <div class=\"column heading\">\r\n <p class=\"helpline-heading heading1 p p2\">{{ line.heading }}</p>\r\n </div>\r\n <div class=\"column\">\r\n <a href=\"tel:{{ line.phone }}\" class=\"helpline-phone p p2\"> {{ line.displayPhone }} </a>\r\n </div>\r\n </div>\r\n\r\n <p class=\"helpline-heading visibletablet p p3\">{{ line.heading }}</p>\r\n <p class=\"helpline-phone-desktop visibletablet p p2\">{{ line.displayPhone }}</p>\r\n </div>\r\n </div>\r\n <div class=\"regional-helpline-items\" *ngIf=\"this.helplineNumbers.length == 1\">\r\n <div *ngFor=\"let line of helplineNumbers\" class=\"helpline-item\">\r\n <p *ngIf=\"showinSearchResultsPage\" class=\"helpline-heading p p2\">{{ line.heading }}</p>\r\n <p class=\"helpline-phone-desktop visibledesktop p p2\">{{ line.displayPhone }}</p>\r\n <a href=\"tel:{{ line.phone }}\" class=\"helpline-phone visibledevice p p2\">{{ line.displayPhone }}</a>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"helplinks-divider\" *ngIf=\"showEmergencyCare && showMyProviders\"></div>\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-regional-helpline-numbers',\r\n templateUrl: './regional-helpline-numbers.component.html',\r\n styleUrls: ['./regional-helpline-numbers.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class RegionalHelplineNumbersComponent {\r\n @Input() showinSearchResultsPage = false;\r\n @Input() helplineNumbers: {\r\n heading?: string;\r\n phone?: string;\r\n }[] = [];\r\n @Input() displayInfo: string;\r\n @Input() displayHeadingInvalid: string;\r\n @Input() showMyProviders: boolean;\r\n @Input() showEmergencyCare: boolean;\r\n @Input() isDesktopViewport: boolean;\r\n}\r\n","export class Banner {\r\n firstProviderInNetwork?: boolean;\r\n bannerImage?: string;\r\n marketName?: string;\r\n header?: string;\r\n content?: string;\r\n learnMoreContent?: string;\r\n medicalGroupLinkName?: string;\r\n medicalGroupLink?: string;\r\n}\r\n","<div class=\"provider-info-card\" role=\"application\" [class.result-card]=\"!showImprovedUX && !resizeService.isDesktopViewport\" #resultCard>\r\n <div class=\"basic-info\">\r\n <div class=\"img-holder\" *ngIf=\"!showProviderVideoLinkMarketConfig\">\r\n <a\r\n routerLink=\"{{ providerLink }}\"\r\n target=\"{{ providerTarget }}\"\r\n (click)=\"$event.preventDefault(); goToProvider()\"\r\n *ngIf=\"fadUrl.isFadSpa\"\r\n [attr.aria-label]=\"providerDisplayNameInformation(provider.displayFullName)\"\r\n tabindex=\"0\"\r\n >\r\n <img\r\n src=\"{{ providerImage }}\"\r\n class=\"provider-image\"\r\n [ngClass]=\"{ 'provider-cards': isProviderCard }\"\r\n (error)=\"getAltImageSrc($event)\"\r\n alt=\"\"\r\n loading=\"lazy\"\r\n />\r\n </a>\r\n <a\r\n href=\"{{ providerLink }}\"\r\n target=\"{{ providerTarget }}\"\r\n (click)=\"$event.preventDefault(); goToProvider()\"\r\n *ngIf=\"!fadUrl.isFadSpa\"\r\n [attr.aria-label]=\"providerDisplayNameInformation(provider.displayFullName)\"\r\n tabindex=\"0\"\r\n >\r\n <img\r\n src=\"{{ providerImage }}\"\r\n class=\"provider-image\"\r\n [ngClass]=\"{ 'provider-cards': isProviderCard }\"\r\n (error)=\"getAltImageSrc($event)\"\r\n alt=\"\"\r\n loading=\"lazy\"\r\n /></a>\r\n </div>\r\n <div class=\"img-holder\" *ngIf=\"showProviderVideoLinkMarketConfig\">\r\n <a\r\n routerLink=\"{{ providerLink }}\"\r\n target=\"{{ providerTarget }}\"\r\n (click)=\"$event.preventDefault(); goToProvider()\"\r\n tabindex=\"-1\"\r\n [attr.aria-label]=\"providerDisplayNameInformation(provider.displayFullName)\"\r\n *ngIf=\"fadUrl.isFadSpa\"\r\n tabindex=\"0\"\r\n >\r\n <img\r\n src=\"{{ providerImage }}\"\r\n class=\"provider-image\"\r\n [ngClass]=\"{ 'provider-cards': isProviderCard }\"\r\n (error)=\"getAltImageSrc($event)\"\r\n alt=\"\"\r\n aria-hidden=\"true\"\r\n loading=\"lazy\"\r\n />\r\n </a>\r\n <a\r\n href=\"{{ providerLink }}\"\r\n target=\"{{ providerTarget }}\"\r\n (click)=\"$event.preventDefault(); goToProvider()\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"providerDisplayNameInformation(provider.displayFullName)\"\r\n *ngIf=\"!fadUrl.isFadSpa\"\r\n >\r\n <img\r\n src=\"{{ providerImage }}\"\r\n class=\"provider-image\"\r\n [ngClass]=\"{ 'provider-cards': isProviderCard }\"\r\n (error)=\"getAltImageSrc($event)\"\r\n alt=\"\"\r\n aria-hidden=\"true\"\r\n loading=\"lazy\"\r\n /></a>\r\n <!-- Need to add video property in place of youtube url -->\r\n <div\r\n class=\"video-button\"\r\n (click)=\"displayVideo()\"\r\n (keydown.enter)=\"displayVideo()\"\r\n *ngIf=\"showProviderVideoLink\"\r\n role=\"button\"\r\n tabindex=\"0\"\r\n attr.aria-label=\"View Video of {{provider?.displayFullName}}\"\r\n >\r\n <svg width=\"80\" height=\"24\" viewBox=\"0 0 80 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M0 0H80V22C80 23.1046 79.1046 24 78 24H2C0.895429 24 0 23.1046 0 22V0Z\" fill=\"#F5F5F5\"></path>\r\n <circle cx=\"12\" cy=\"12\" r=\"7\"></circle>\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10 16V8L16 12.0002L10 16Z\" fill=\"white\"></path>\r\n <text x=\"24\" y=\"16\" fill=\"#626567\" font-size=\"10px\">View Video</text>\r\n </svg>\r\n </div>\r\n </div>\r\n\r\n <div class=\"card-information\">\r\n <div class=\"result-card-header\">\r\n <div class=\"provider-info\">\r\n <div class=\"provider-name-header\">\r\n <h3 class=\"h3\" *ngIf=\"fadUrl.isFadSpa\" aria-hidden=\"true\">\r\n <div\r\n class=\"provider-name\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n >\r\n <a\r\n routerLink=\"{{ providerLink }}\"\r\n target=\"{{ providerTarget }}\"\r\n (click)=\"$event.preventDefault(); goToProvider()\"\r\n class=\"provider-name\"\r\n *ngIf=\"fadUrl.isFadSpa\"\r\n >\r\n <span aria-hidden=\"true\">{{ provider.displayFullName }}</span></a\r\n >\r\n </div>\r\n </h3>\r\n <span *ngIf=\"fadUrl.isFadSpa\">\r\n <img\r\n *ngFor=\"let imageUrl of logoUrls\"\r\n src=\"{{ imageUrl.url }}\"\r\n alt=\"{{ imageUrl?.altName }}\"\r\n class=\"provider-logo\"\r\n loading=\"lazy\"\r\n tabindex=\"0\"\r\n /></span>\r\n <h3 class=\"h3\" *ngIf=\"!fadUrl.isFadSpa\">\r\n <div\r\n class=\"provider-name\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n >\r\n <a\r\n href=\"{{ providerLink }}\"\r\n target=\"{{ providerTarget }}\"\r\n (click)=\"$event.preventDefault(); goToProvider()\"\r\n class=\"provider-name h3\"\r\n *ngIf=\"!fadUrl.isFadSpa\"\r\n >\r\n {{ provider.displayFullName }}\r\n </a>\r\n </div>\r\n </h3>\r\n <span *ngIf=\"!fadUrl.isFadSpa\">\r\n <img\r\n *ngFor=\"let imageUrl of logoUrls\"\r\n src=\"{{ imageUrl.url }}\"\r\n alt=\"{{ imageUrl?.altName }}\"\r\n class=\"provider-logo\"\r\n loading=\"lazy\"\r\n tabindex=\"0\"\r\n /></span>\r\n </div>\r\n <div class=\"provider-specialty-m\">\r\n <p *ngFor=\"let speciality of providerSpecialities\" class=\"p1\">{{ speciality }}</p>\r\n </div>\r\n <div class=\"provider-specialty-m\" style=\"margin-top: auto\">\r\n <p *ngFor=\"let Secondaryspeciality of nonSEOSecondarySpecialities\" class=\"p1\">{{ Secondaryspeciality }}</p>\r\n </div>\r\n <div class=\"desktop-container\">\r\n <div\r\n [class.new-star-ratting]=\"showImprovedUX\"\r\n tabindex=\"0\"\r\n role=\"link\"\r\n [attr.aria-label]=\"'Average stars ' + provider.rating?.overallRating.value + 'out of 5 and ' + (provider.rating?.totalRatingCount) + ' reviews'\"\r\n >\r\n <div *ngIf=\"showStarRatings && showStarRatingsBanner\">\r\n <div *ngIf=\"provider.rating\" class=\"provider-rating\" [ngClass]=\"{ 'has-rating': provider.rating?.totalRatingCount > 0 }\">\r\n <dhcl-star-rating\r\n [reviews]=\"provider.rating?.totalRatingCount\"\r\n [rating]=\"provider.rating?.overallRating.value\"\r\n (click)=\"provider.rating?.totalRatingCount !== 0 ? goToProvider(true) : false\"\r\n [showRatingText]=\"showRatingText\"\r\n [showNumReviews]=\"showNumReviews\"\r\n ></dhcl-star-rating>\r\n <dhcl-tooltip\r\n *ngIf=\"provider.rating?.totalRatingCount === 0 || provider.rating?.overallRating.value === 0\"\r\n class=\"rating-tooltip\"\r\n >\r\n {{ ratingTooltipText }}\r\n </dhcl-tooltip>\r\n </div>\r\n <div *ngIf=\"provider.loadingRating\" class=\"stars-container\">\r\n <div class=\"stars\">\r\n <svg\r\n *ngFor=\"let star of stars; let i = index\"\r\n width=\"18\"\r\n height=\"16\"\r\n viewBox=\"0 0 18 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <defs>\r\n <linearGradient\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n y1=\"100%\"\r\n x2=\"0\"\r\n y2=\"100%\"\r\n id=\"grad107b5e38-b154-4ba7-931d-08d12ec9961f-4\"\r\n x1=\"1%\"\r\n >\r\n <stop stop-color=\"#727779\" offset=\"0%\"></stop>\r\n <stop stop-color=\"var(--dhcl-color-yellow)\" offset=\"0%\"></stop>\r\n </linearGradient>\r\n </defs>\r\n <path\r\n d=\"M8.67027 0.871503C8.85549 0.376165 9.55613 0.376166 9.74135 0.871502L11.1349 4.59828C11.3558 5.18902 11.9084 5.59051 12.5385 5.61804L16.5135 5.79174C17.0418 5.81482 17.2583 6.48117 16.8444 6.81039L13.7307 9.28736C13.2371 9.67999 13.0261 10.3296 13.1946 10.9374L14.2577 14.7715C14.399 15.2811 13.8322 15.6929 13.3912 15.4011L10.0733 13.2051C9.54734 12.8571 8.86428 12.8571 8.33834 13.2051L5.02041 15.4011C4.57941 15.6929 4.01258 15.2811 4.15389 14.7715L5.21704 10.9374C5.38556 10.3296 5.17448 9.67999 4.68092 9.28736L1.56717 6.81039C1.15331 6.48117 1.36982 5.81482 1.89815 5.79174L5.87315 5.61804C6.50323 5.59051 7.05584 5.18902 7.27674 4.59828L8.67027 0.871503Z\"\r\n fill=\"url(#grad107b5e38-b154-4ba7-931d-08d12ec9961f-4)\"\r\n stroke=\"#DE7925\"\r\n ></path>\r\n </svg>\r\n </div>\r\n <em class=\"loading-test\">Loading ratings...</em>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"provider-badge\">\r\n <cs-badges [provider]=\"provider\" *ngIf=\"!isMobileViewport\"></cs-badges>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isMobileViewport\" class=\"desktop-scheduling\">\r\n <div *ngIf=\"!preferredProviderSelect\" class=\"launch-btn-container\">\r\n <div class=\"schedule-call\" *ngIf=\"showCallToScheduleCTA\">\r\n <div *ngIf=\"resizeService.isDesktopViewport\" class=\"desktop-call p\" [class.desktop-call-old]=\"!showImprovedUX\">\r\n <svg *ngIf=\"showImprovedUX\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4191L15.9809 12.1691C16.0622 11.816 15.8778 11.4535 15.5465 11.3097L12.0465 9.8097C11.7403 9.67845 11.3809 9.76595 11.1715 10.0253L9.62154 11.9191C7.22466 10.7941 5.23091 8.82845 4.08404 6.38158L5.97779 4.83158C6.23716 4.61908 6.32466 4.26283 6.19341 3.95658L4.69341 0.456576C4.54654 0.122201 4.18404 -0.0621745 3.83091 0.0190755L0.580913 0.769076C0.243413 0.847201 -0.000337601 1.1472 -0.000337601 1.50033C-0.000337601 9.50345 6.48404 16.0003 14.4997 16.0003C14.8497 16.0003 15.1528 15.7597 15.2309 15.4191Z\"\r\n fill=\"#0071C2\"\r\n />\r\n </svg>\r\n <svg *ngIf=\"!showImprovedUX\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4191L15.9809 12.1691C16.0622 11.816 15.8778 11.4535 15.5465 11.3097L12.0465 9.8097C11.7403 9.67845 11.3809 9.76595 11.1715 10.0253L9.62154 11.9191C7.22466 10.7941 5.23091 8.82845 4.08404 6.38158L5.97779 4.83158C6.23716 4.61908 6.32466 4.26283 6.19341 3.95658L4.69341 0.456576C4.54654 0.122201 4.18404 -0.0621745 3.83091 0.0190755L0.580913 0.769076C0.243413 0.847201 -0.000337601 1.1472 -0.000337601 1.50033C-0.000337601 9.50345 6.48404 16.0003 14.4997 16.0003C14.8497 16.0003 15.1528 15.7597 15.2309 15.4191Z\"\r\n fill=\"#4D525A\"\r\n />\r\n </svg>\r\n Call to schedule an appointment\r\n </div>\r\n <a\r\n href=\"tel:{{ providerOffices[0]?.phones[0] }}\"\r\n class=\"tablet-call p p2\"\r\n *ngIf=\"resizeService.isTabletViewport && showCallToScheduleCTA && !showImprovedUX\"\r\n data-event-name=\"click-to-call\"\r\n data-event-detail=\"engagement|click to call|generic\"\r\n >\r\n <span>\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4191L15.9809 12.1691C16.0622 11.816 15.8778 11.4535 15.5465 11.3097L12.0465 9.8097C11.7403 9.67845 11.3809 9.76595 11.1715 10.0253L9.62154 11.9191C7.22466 10.7941 5.23091 8.82845 4.08404 6.38158L5.97779 4.83158C6.23716 4.61908 6.32466 4.26283 6.19341 3.95658L4.69341 0.456576C4.54654 0.122201 4.18404 -0.0621745 3.83091 0.0190755L0.580913 0.769076C0.243413 0.847201 -0.000337601 1.1472 -0.000337601 1.50033C-0.000337601 9.50345 6.48404 16.0003 14.4997 16.0003C14.8497 16.0003 15.1528 15.7597 15.2309 15.4191Z\"\r\n />\r\n </svg>\r\n Call to schedule\r\n </span>\r\n </a>\r\n <a\r\n href=\"tel:{{ providerOffices[0]?.phones[0] }}\"\r\n class=\"table-call-new p p2\"\r\n *ngIf=\"resizeService.isTabletViewport && showCallToScheduleCTA && showImprovedUX\"\r\n data-event-name=\"click-to-call\"\r\n data-event-detail=\"engagement|click to call|generic\"\r\n >\r\n <span>\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4191L15.9809 12.1691C16.0622 11.816 15.8778 11.4535 15.5465 11.3097L12.0465 9.8097C11.7403 9.67845 11.3809 9.76595 11.1715 10.0253L9.62154 11.9191C7.22466 10.7941 5.23091 8.82845 4.08404 6.38158L5.97779 4.83158C6.23716 4.61908 6.32466 4.26283 6.19341 3.95658L4.69341 0.456576C4.54654 0.122201 4.18404 -0.0621745 3.83091 0.0190755L0.580913 0.769076C0.243413 0.847201 -0.000337601 1.1472 -0.000337601 1.50033C-0.000337601 9.50345 6.48404 16.0003 14.4997 16.0003C14.8497 16.0003 15.1528 15.7597 15.2309 15.4191Z\"\r\n fill=\"#4D525A\"\r\n />\r\n </svg>\r\n Call to schedule an appointment\r\n </span>\r\n </a>\r\n </div>\r\n <div *ngIf=\"showGuidedFlowCTA\" class=\"launcher-button\">\r\n <button dhclButton buttonType=\"primary\" buttonSize=\"small\" (click)=\"launchGuidedFlow() \" [attr.aria-label]=\"buttonLabelText\">\r\n Schedule an appointment\r\n </button>\r\n </div>\r\n <div *ngIf=\"showDocAsapCTA\">\r\n <cs-doc-asap-booking-launcher\r\n [srcUrl]=\"srcUrl\"\r\n [docAsapId]=\"docAsapId\"\r\n [buttonSize]=\"'small'\"\r\n [launcherButtonText]=\"'Schedule an appointment'\"\r\n [provider]=\"provider\"\r\n ></cs-doc-asap-booking-launcher>\r\n </div>\r\n\r\n <div class=\"launcher-button\" *ngIf=\"showImprovedUX\">\r\n <button dhclButton buttonType=\"secondary\" çlass=\"profile-button\" buttonSize=\"small\" (click)=\"goToProvider()\">\r\n View Profile\r\n </button>\r\n </div>\r\n <cs-patient-age-restrictions\r\n *ngIf=\"(showPatientAgeRestrictions && showGuidedFlowCTA) || (showAgeRestrictionRuleForDH)\"\r\n [showImprovedUX]=\"showImprovedUX\"\r\n [patientAgeGroups]=\"provider.patientAgeGroups\"\r\n [showAgeRestrictionRuleForDH]=\"showAgeRestrictionRuleForDH\"\r\n [ageRestrictionRule]=\"ageRestrictionRule\"\r\n [isProviderSearchResultPage]=\"true\"\r\n ></cs-patient-age-restrictions>\r\n <label class=\"unavailable-text\" *ngIf=\"showTemporarilyUnavailableCTA\"> Online scheduling is temporarily unavailable </label>\r\n </div>\r\n <div *ngIf=\"preferredProviderSelect\" class=\"launcher-button\">\r\n <button dhclButton buttonType=\"primary\" buttonSize=\"small\" (click)=\"makeAsPreferredProvider()\">Select</button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"additional-information\" *ngIf=\"!isMobileViewport && !showImprovedUX\">\r\n <div class=\"affiliations-locations\" *ngIf=\"showAffiliations && provider.hospitalNames.length > 0\">\r\n <cs-hospital-affiliations\r\n *ngIf=\"showAffiliations && !showImprovedUX && provider.hospitalNames.length > 0\"\r\n [affiliations]=\"provider.hospitalNames\"\r\n [hideExtraContent]=\"hideExtraContent\"\r\n >\r\n </cs-hospital-affiliations>\r\n </div>\r\n <div class=\"locations\" [class.location-container]=\"!(showAffiliations && provider.hospitalNames.length > 0)\">\r\n <cs-result-card-location-list [provider]=\"provider\" [isProviderCardContent]=\"isProviderCard\"> </cs-result-card-location-list>\r\n </div>\r\n </div>\r\n <div class=\"provider-specialty-info\" [class.provider-info-new]=\"showImprovedUX\" *ngIf=\"!isProviderCard && isMobileViewport\">\r\n <div class=\"provider-specialty-m\">\r\n <cs-badges [provider]=\"provider\" *ngIf=\"isMobileViewport\"></cs-badges>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"additional-information\" *ngIf=\"!isMobileViewport && showImprovedUX\">\r\n <cs-result-card-location-list [provider]=\"provider\" [isProviderCardContent]=\"isProviderCard\"> </cs-result-card-location-list>\r\n </div>\r\n\r\n <cs-hospital-affiliations\r\n [affiliations]=\"provider.hospitalNames\"\r\n *ngIf=\"!showImprovedUX && !isProviderCard && isMobileViewport && showAffiliations && provider.hospitalNames.length > 0\"\r\n [hideExtraContent]=\"hideExtraContent\"\r\n >\r\n </cs-hospital-affiliations>\r\n <ng-container *ngIf=\"isMobileViewport\">\r\n <cs-result-card-location-list\r\n [provider]=\"provider\"\r\n [isProviderCardContent]=\"isProviderCard\"\r\n class=\"result-card-locations\"\r\n ></cs-result-card-location-list>\r\n </ng-container>\r\n <div *ngIf=\"isMobileViewport\" class=\"mobile-scheduling\">\r\n <div *ngIf=\"!preferredProviderSelect\" class=\"launch-btn-container\">\r\n <a\r\n href=\"tel:{{ providerOffices[0]?.phones[0] }}\"\r\n data-event-name=\"click-to-call\"\r\n data-event-detail=\"engagement|click to call|generic\"\r\n class=\"schedule-call p p2\"\r\n [class.schedule-call-new]=\"showImprovedUX\"\r\n *ngIf=\"showCallToScheduleCTA\"\r\n >\r\n <span>\r\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4191L15.9809 12.1691C16.0622 11.816 15.8778 11.4535 15.5465 11.3097L12.0465 9.8097C11.7403 9.67845 11.3809 9.76595 11.1715 10.0253L9.62154 11.9191C7.22466 10.7941 5.23091 8.82845 4.08404 6.38158L5.97779 4.83158C6.23716 4.61908 6.32466 4.26283 6.19341 3.95658L4.69341 0.456576C4.54654 0.122201 4.18404 -0.0621745 3.83091 0.0190755L0.580913 0.769076C0.243413 0.847201 -0.000337601 1.1472 -0.000337601 1.50033C-0.000337601 9.50345 6.48404 16.0003 14.4997 16.0003C14.8497 16.0003 15.1528 15.7597 15.2309 15.4191Z\"\r\n />\r\n </svg>\r\n Call to schedule\r\n </span>\r\n </a>\r\n <div *ngIf=\"showGuidedFlowCTA\" class=\"launcher-button\">\r\n <button dhclButton buttonType=\"primary\" buttonSize=\"small\" (click)=\"launchGuidedFlow()\">Schedule an appointment</button>\r\n </div>\r\n <div class=\"launcher-button\" *ngIf=\"showImprovedUX\">\r\n <button dhclButton buttonType=\"secondary\" çlass=\"profile-button\" buttonSize=\"small\" (click)=\"goToProvider()\">View Profile</button>\r\n </div>\r\n <div *ngIf=\"showDocAsapCTA\" style=\"margin: 15px 0\">\r\n <cs-doc-asap-booking-launcher\r\n [srcUrl]=\"srcUrl\"\r\n [docAsapId]=\"docAsapId\"\r\n [buttonSize]=\"'small'\"\r\n [launcherButtonText]=\"'Schedule an appointment'\"\r\n [provider]=\"provider\"\r\n ></cs-doc-asap-booking-launcher>\r\n </div>\r\n <cs-patient-age-restrictions\r\n *ngIf=\"(showPatientAgeRestrictions && showGuidedFlowCTA) || (showAgeRestrictionRuleForDH)\"\r\n [patientAgeGroups]=\"'provider.patientAgeGroups'\"\r\n [showImprovedUX]=\"showImprovedUX\"\r\n [showAgeRestrictionRuleForDH]=\"showAgeRestrictionRuleForDH\"\r\n [ageRestrictionRule]=\"ageRestrictionRule\"\r\n ></cs-patient-age-restrictions>\r\n <label class=\"unavailable-text\" *ngIf=\"showTemporarilyUnavailableCTA\"> Online scheduling is temporarily unavailable </label>\r\n </div>\r\n <div *ngIf=\"preferredProviderSelect\" class=\"launcher-button\">\r\n <button dhclButton buttonType=\"primary\" buttonSize=\"small\" (click)=\"makeAsPreferredProvider()\">Select</button>\r\n </div>\r\n </div>\r\n <div>\r\n <cs-in-network-banner *ngIf=\"showMedGroupBanner && provider.firstNetworkProvider\" [provider]=\"provider\"></cs-in-network-banner>\r\n </div>\r\n</div>\r\n","import {\r\n AfterViewInit,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n Input,\r\n OnChanges,\r\n OnInit,\r\n Output,\r\n SimpleChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Banner } from '../../models/banner';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport { Provider, ProviderInterfaceHelper } from '../../models/provider';\r\nimport { ProviderImage } from '../../models/provider-image';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { FadLinkService } from '../../services/fad-link.service';\r\nimport { OnlineBookingAvailability } from '../../models/online-booking-availability';\r\nimport { AppointmentType } from '../../models/appointment-type';\r\nimport { HierarchySecurityService } from '../../configs/HierarchySecurityService';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\r\nimport { LogoConstants } from 'src/app/constants/logo-constants';\r\nimport { ProviderVideo } from 'src/app/models/provider-video';\r\nimport { ApiConstants } from '../../constants/api-constants.new';\r\nimport { LogoDetails } from 'src/app/models/configuration';\r\n@Component({\r\n selector: 'cs-result-card',\r\n templateUrl: './result-card.component.html',\r\n styleUrls: ['./result-card.component.scss']\r\n})\r\nexport class ResultCardComponent implements AfterViewInit, OnInit, OnChanges {\r\n @Input() provider: Provider;\r\n @Input() showDocAsap = false;\r\n @Input() docAsapIds: { npi: number; docAsapId: number }[] = [];\r\n @Input() preferredProviderSelect = false;\r\n\r\n @ViewChild('resultCard') resultCard: ElementRef;\r\n\r\n @Output() scheduleProvider: EventEmitter<Provider> = new EventEmitter<Provider>();\r\n @Output() preferredProvider: EventEmitter<string> = new EventEmitter<string>();\r\n @Output() toggleModal: EventEmitter<string> = new EventEmitter<string>();\r\n\r\n hideExtraContent = true;\r\n isProviderCard: boolean;\r\n banner: Banner = new Banner();\r\n docAsapId?: string;\r\n showProviderLogos: boolean;\r\n logoUrls: LogoDetails[] = [];\r\n ratingTooltipText: string;\r\n schedulingType: string;\r\n providerSchedulingFeature: boolean;\r\n showMedGroupBanner: boolean;\r\n showRatingText: boolean;\r\n showNumReviews: boolean;\r\n showStarRatingsBanner: boolean;\r\n showStarRatings: boolean;\r\n providerSpecialities: string[];\r\n useNewProviderDetailsRoute: boolean;\r\n showAffiliations: boolean;\r\n srcUrl: SafeResourceUrl;\r\n divisionCodes: string[];\r\n showProviderVideoLinkMarketConfig: boolean;\r\n showProviderVideoLink: boolean;\r\n forceDisableBookOnline = false;\r\n showImprovedUX: boolean;\r\n\r\n nonSEOSecondarySpecialities: string[];\r\n videoId: string;\r\n stars = [1,2,3,4,5];\r\n olsDepartmentId?: string;\r\n olsProviderId?: string;\r\n olsBlockIt?: string;\r\n ageRestrictionRule: string;\r\n showAgeRestrictionRuleForDH: boolean;\r\n\r\n constructor(\r\n private router: Router,\r\n private cdRef: ChangeDetectorRef,\r\n public resizeService: ResizeService,\r\n public fadUrl: FadLinkService,\r\n private securityService: HierarchySecurityService,\r\n private configurationService: ConfigurationService,\r\n public sanitizer: DomSanitizer,\r\n public route: ActivatedRoute\r\n ) {}\r\n\r\n ngOnInit() {\r\n this.showImprovedUX = this.configurationService.showImprovedUX();\r\n this.showStarRatings =\r\n this.securityService.shouldShowStarRatings(this.provider) ?? this.configurationService.defaultProviderRatings.defaultShowStarRatings;\r\n this.getStarRatingBanner();\r\n this.showMedGroupBanner = this.configurationService.showMedGroupBanner();\r\n this.schedulingType = this.configurationService.getOnlineSchedulingType();\r\n this.providerSchedulingFeature = this.configurationService.getProviderSchedulingFeature();\r\n const marketCodes = this.configurationService?.getMarketCodes().length > 0 ? this.configurationService?.getMarketCodes()[0] : null;\r\n const divisionCodes = this.configurationService?.getDivisionCodes().length > 0 ? this.configurationService.getDivisionCodes()[0] : null;\r\n const externalSystems = this.provider?.externalSystems?.length > 0 && \r\n (typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId) !== 'undefined' \r\n && typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId) != 'undefined') ? true : false;\r\n\r\n const externalSystemsDH = this.provider?.externalSystems?.length > 0\r\n &&\r\n (typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt) !== 'undefined') ? true : false;\r\n\r\n if (this.schedulingType === 'ThirdParty' \r\n && this.providerSchedulingFeature \r\n && externalSystems\r\n && marketCodes?.toLowerCase() == 'kentucky' && this.provider?.isBookOnline) {\r\n this.initOlsKY();\r\n }\r\n else if (this.schedulingType === 'ThirdParty'\r\n && externalSystemsDH\r\n && divisionCodes?.toLowerCase() == 'dignity-health' \r\n && Boolean(typeof this.provider?.onlineBookingAvailability[0]?.appointmentTypes?.find(({ name }) => name.toLowerCase() == 'online scheduling for new patients' || 'online scheduling for all visits' || 'online scheduling for video visits') !== 'undefined')) {\r\n this.initOlsDHForBlockIt();\r\n }\r\n else {\r\n this.initDocAsap();\r\n }\r\n this.showProviderMedGroupLogos();\r\n this.setProviderMedGroupLogos();\r\n this.updateProviderFullName();\r\n this.initCONT();\r\n this.setShowProviderVideoLink();\r\n if (!this.configurationService.useLegacyAPI() && this.configurationService.getOnlineSchedulingType() === 'none') {\r\n this.forceDisableBookOnline = true;\r\n }\r\n this.provider.loadingRating = true;\r\n this.getAgeRestrictionRule();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (!changes) {\r\n return;\r\n }\r\n this.showStarRatings =\r\n this.securityService.shouldShowStarRatings(this.provider) ?? this.configurationService.defaultProviderRatings.defaultShowStarRatings;\r\n this.getStarRatingBanner();\r\n const providerChanges = changes?.provider;\r\n const preferredChanges = changes?.preferredProviderSelect;\r\n\r\n if (preferredChanges !== undefined && preferredChanges.currentValue && typeof preferredChanges.currentValue === 'string') {\r\n this.preferredProviderSelect = preferredChanges.currentValue === 'true';\r\n }\r\n\r\n if (providerChanges !== undefined && providerChanges.currentValue && providerChanges.currentValue.toString().startsWith('{')) {\r\n try {\r\n this.provider = JSON.parse(providerChanges.currentValue);\r\n } catch (Exception) {\r\n if (console) {\r\n console.error('Could not parse Json. Check for well formed Json.');\r\n }\r\n }\r\n }\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.isProviderCard = !!this.resultCard.nativeElement.parentNode && this.resultCard.nativeElement.parentNode.clientWidth > 0;\r\n this.cdRef.detectChanges();\r\n }\r\n\r\n initCONT(): void {\r\n this.providerSpecialities = ProviderInterfaceHelper.getProviderTopSpecialities(this.provider);\r\n this.nonSEOSecondarySpecialities = ProviderInterfaceHelper.getProviderNonSEOSpecialities(this.provider, this.providerSpecialities);\r\n this.ratingTooltipText =\r\n this.securityService.getRatingsTooltipText(this.provider) ??\r\n this.configurationService.defaultProviderRatings.defaultRatingsTooltipText;\r\n this.showRatingText = this.securityService.shouldShowRatingText(this.provider);\r\n this.showNumReviews = this.securityService.shouldShowReviewCount(this.provider);\r\n this.useNewProviderDetailsRoute = this.configurationService.UseNewProviderDetailsRoute();\r\n this.showAffiliations = this.configurationService.showHospitalAffiliations();\r\n this.divisionCodes = this.configurationService.getDivisionCodes();\r\n this.showProviderVideoLinkMarketConfig = this.configurationService.showProviderVideoLink();\r\n }\r\n\r\n initOlsKY() {\r\n this.showDocAsap = true;\r\n this.olsDepartmentId = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId).systemId : null;\r\n this.olsProviderId = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId).systemId : null;\r\n if (this.olsDepartmentId && this.olsProviderId)\r\n {\r\n this.srcUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `${this.configurationService.getRuntimeConfiguration().myChartUrl}&dept=${this.olsDepartmentId.replace(/\\s+/g, ' ').trim()}&id=${this.olsProviderId.replace(/\\s+/g, ' ').trim()}`\r\n );\r\n }\r\n }\r\n\r\n initOlsDHForBlockIt(): void {\r\n this.showDocAsap = true;\r\n this.olsBlockIt = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt).systemId : null;\r\n if (this.olsBlockIt) {\r\n this.srcUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `${this.configurationService.getRuntimeConfiguration().blockItUrl}${this.olsBlockIt}`\r\n );\r\n }\r\n }\r\n\r\n initDocAsap() {\r\n if (this.schedulingType === 'ThirdParty') {\r\n this.showDocAsap = true;\r\n if (this.providerSchedulingFeature) {\r\n this.docAsapId = this.provider?.isBookOnline ? this.provider?.providerSchedulingId ?? null : null;\r\n } else {\r\n const matchingProvider = this.docAsapIds.find((provider: { npi: number; docAsapId: number }) => this.provider.npi.toString() === provider.npi.toString());\r\n\r\n if (matchingProvider) {\r\n this.docAsapId = matchingProvider.docAsapId.toString();\r\n } else {\r\n this.docAsapId = null;\r\n }\r\n }\r\n if (this.docAsapId && this.provider.ehrCode) {\r\n this.srcUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `https://docasap.com/white-label/specialty_id/0/key_reason/-1/key_doc_id/${this.docAsapId}/key_level/3/key_type/INLINE/key_partner_code/${this.provider.ehrCode}/key_mobile_inline_button/0/iframeWidth/550/iframeHeight/300/key_lazy_loading/0`\r\n );\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n get isMobileViewport() {\r\n return this.resizeService.isMobileViewport || this.isProviderCard;\r\n }\r\n\r\n get providerOffices(): OfficeAddress[] {\r\n return ProviderInterfaceHelper.getProviderOfficesSortedByDistanceFromSearch(this.provider);\r\n }\r\n\r\n get providerImage() {\r\n const providerImagesCopy = this.provider.images?.slice();\r\n providerImagesCopy.sort((x: ProviderImage, y: ProviderImage) => y.width * y.height - x.width * x.height);\r\n const imagesBySizeDecreasing =\r\n providerImagesCopy?.length > 0\r\n ? providerImagesCopy.filter((image: ProviderImage) => image.height === 160 && image.width === 120)\r\n : [];\r\n\r\n const placeholderImage: ProviderImage = {\r\n url:\r\n this.provider.gender?.toLowerCase() === 'male'\r\n ? this.configurationService.malePlaceholder\r\n : this.configurationService.femalePlaceholder\r\n };\r\n\r\n const providerImage = imagesBySizeDecreasing[0] ?? placeholderImage;\r\n providerImage.url = providerImage.url?.replace(/^http:\\/\\//i, 'https://');\r\n\r\n return providerImage.url;\r\n }\r\n\r\n get providerTarget() {\r\n if (this.fadUrl.isFadSpa) {\r\n return '_self';\r\n } else {\r\n return '_blank';\r\n }\r\n }\r\n\r\n goToProvider(scrollToComments = false) {\r\n if (scrollToComments) {\r\n sessionStorage.setItem('scrollToComments', 'true');\r\n } else {\r\n sessionStorage.removeItem('scrollToComments');\r\n }\r\n\r\n if (this.fadUrl.isFadSpa) {\r\n sessionStorage.setItem('searchResultsOrigin', 'true');\r\n this.router.navigateByUrl(this.providerLink).then();\r\n } else {\r\n window.open(this.providerLink, '_blank');\r\n }\r\n }\r\n\r\n get providerLink() {\r\n if (this.useNewProviderDetailsRoute && this.provider.primarySpecialty) {\r\n const urlValue = `/${\r\n this.provider.primarySpecialty && this.provider.primarySpecialty.makeURLFriendly()\r\n }/${this.provider.firstName?.makeURLFriendly()}-${this.provider.lastName?.makeURLFriendly()}-${this.provider.npi}`;\r\n return this.fadUrl.createUrlWithBase(urlValue);\r\n }\r\n const url = `/${this.provider.npi}-${this.provider.firstName?.makeURLFriendly()}-${this.provider.lastName?.makeURLFriendly()}`;\r\n return this.fadUrl.createUrlWithBase(url);\r\n }\r\n\r\n launchGuidedFlow() {\r\n this.scheduleProvider.emit(this.provider);\r\n }\r\n\r\n makeAsPreferredProvider() {\r\n this.preferredProvider.emit(this.provider.npi.toString());\r\n }\r\n\r\n getAltImageSrc(event: any) {\r\n event.target.src =\r\n this.provider.gender?.toLowerCase() === 'male'\r\n ? this.configurationService.malePlaceholder\r\n : this.provider.gender?.toLowerCase() === 'female'\r\n ? this.configurationService.femalePlaceholder\r\n : this.configurationService.blankPlaceholder;\r\n }\r\n\r\n get hasProviderOfficePhone(): boolean {\r\n return ProviderInterfaceHelper.hasProviderOfficePhone(this.provider);\r\n }\r\n\r\n get showCallToScheduleCTA(): boolean {\r\n const urgentCareRoles = this.configurationService.getProviderRolesForUrgentCare();\r\n let urgentCareProvider = false;\r\n if (this.provider?.roleType) {\r\n urgentCareProvider = urgentCareRoles.includes(this.provider.roleType);\r\n }\r\n if (!(this.showGuidedFlowCTA || this.showDocAsapCTA)) {\r\n if (this.providerOffices[0]?.phones && this.providerOffices[0]?.phones[0]) {\r\n return !urgentCareProvider;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n get showGuidedFlowCTA(): boolean {\r\n if (this.schedulingType === 'GuidedFlow') {\r\n const hasBookingLocation = (this.provider.onlineBookingAvailability || []).find((location: OnlineBookingAvailability) => location.supportsOnlineBooking);\r\n\r\n const hasMappedApptType = (this.provider.onlineBookingAvailability || []).find((location: OnlineBookingAvailability) => (location.appointmentTypes || []).find((apptType: AppointmentType) => !!apptType.patientAppointmentType));\r\n\r\n const hasPhoneNumber = this.providerOffices[0]?.phones && this.providerOffices[0]?.phones[0];\r\n if (this.provider.isBookOnline && hasBookingLocation && hasMappedApptType && hasPhoneNumber) \r\n {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n get showPatientAgeRestrictions(): boolean {\r\n return this.configurationService.showPatientAgeRestrictions() && Boolean(this.provider?.patientAgeGroups);\r\n }\r\n\r\n get buttonLabelText(): string {\r\n return `Schedule an appointment with ${this.provider.displayFullName} ${this.showPatientAgeRestrictions ? 'and accepting appointments from patients '+ this.provider.patientAgeGroups +' years of age' : '' }`;\r\n }\r\n\r\n get showDocAsapCTA(): boolean {\r\n return (this.schedulingType === 'ThirdParty' && Boolean(this.docAsapId) && Boolean(this.provider?.ehrCode)) ||\r\n (this.schedulingType === 'ThirdParty' && \r\n Boolean(this.olsDepartmentId) && \r\n Boolean(this.olsProviderId)) || (this.schedulingType === 'ThirdParty' &&\r\n Boolean(this.olsBlockIt));\r\n }\r\n\r\n get showTemporarilyUnavailableCTA(): boolean {\r\n return (\r\n this.showCallToScheduleCTA && this.provider.isBookOnline && !this.forceDisableBookOnline && this.configurationService.useLegacyAPI()\r\n );\r\n }\r\n\r\n public showProviderMedGroupLogos() {\r\n this.showProviderLogos = this.securityService.shouldShowLogos(this.provider);\r\n }\r\n\r\n public setShowProviderVideoLink() {\r\n this.showProviderVideoLink = this.provider.videos?.length > 0 && this.configurationService.showProviderVideoLink();\r\n if (this.showProviderVideoLink) {\r\n this.provider.videos?.forEach((video: ProviderVideo) => {\r\n if (!this.videoId) {\r\n if(video.url.trim() != '') {\r\n this.videoId = video?.url?.split('?v=')[1]?.substring(0, 11);\r\n this.showProviderVideoLink = true;\r\n } else {\r\n this.showProviderVideoLink = false;\r\n }\r\n }\r\n });\r\n }\r\n }\r\n public setProviderMedGroupLogos() {\r\n if (this.showProviderLogos) {\r\n if (\r\n !window.location.host.toLowerCase().includes(LogoConstants.fad) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.mycareteam) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.chart) &&\r\n !this.fadUrl.isSelfHosted()\r\n ) {\r\n this.logoUrls = ProviderInterfaceHelper.getProviderLogoDetailsAEM(this.provider, this.configurationService.getMedGroupCodes());\r\n } else {\r\n this.logoUrls = ProviderInterfaceHelper.getProviderLogoDetailsFAD(this.provider, this.configurationService.getMedGroupCodes());\r\n this.buildFullyQualifiedURLs();\r\n }\r\n }\r\n }\r\n\r\n buildFullyQualifiedURLs(): void {\r\n const fadBaseUrl = this.configurationService.getRuntimeConfiguration().fadBaseUrl;\r\n const domain = new URL(fadBaseUrl);\r\n this.logoUrls.forEach((x) => x.url = domain.origin + x.url);\r\n }\r\n\r\n updateProviderFullName(): void {\r\n if (!this.configurationService.showProviderPrefix()) {\r\n this.provider.displayFullName = ProviderInterfaceHelper.removeProviderNamePrefix(this.provider.firstName, this.provider.lastName, this.provider.degree);\r\n }\r\n }\r\n \r\n displayVideo(): void {\r\n this.toggleModal.emit('https://www.youtube.com/embed/' + this.videoId);\r\n }\r\n\r\n providerDisplayNameInformation(providerName: string): string {\r\n return providerName + ' image icon';\r\n }\r\n\r\n getStarRatingBanner() {\r\n const showRatingFromQueryString = this.route.snapshot.queryParamMap.get('showRating');\r\n const isAcceptQueryString = this.configurationService.acceptQueryString();\r\n // set the session\r\n if (showRatingFromQueryString) {\r\n sessionStorage.setItem('showRating', showRatingFromQueryString);\r\n }\r\n const hasShowRatingEnabled = sessionStorage.getItem('showRating');\r\n if (hasShowRatingEnabled && isAcceptQueryString != undefined) {\r\n if (hasShowRatingEnabled === 'true' && isAcceptQueryString) {\r\n this.showRatingBanner();\r\n }\r\n }\r\n else if (isAcceptQueryString == undefined) {\r\n this.showRatingBanner();\r\n }\r\n }\r\n \r\n showRatingBanner() {\r\n this.showStarRatingsBanner =\r\n this.securityService.shouldShowStarRatingsBanner(this.provider) ??\r\n this.configurationService.defaultProviderRatings.defaultShowStarRatingBanner;\r\n }\r\n\r\n getAgeRestrictionRule() : void {\r\n if (this.divisionCodes.length > 0 && this.divisionCodes[0]?.toLowerCase() == 'dignity-health' && this.olsBlockIt) {\r\n this.ageRestrictionRule = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == 'agerule') !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == 'agerule').systemId : null;\r\n if (this.ageRestrictionRule != null && this.ageRestrictionRule != undefined) {\r\n this.showAgeRestrictionRuleForDH = true;\r\n }\r\n }\r\n }\r\n}\r\n","<div class=\"banner-info-card\">\r\n <div class=\"card-information\">\r\n <div class=\"banner-card-header\" *ngFor=\"let banner of banners\">\r\n <div>\r\n <div\r\n class=\"banner-header\"\r\n [ngClass]=\"{\r\n 'dh-banner': divisionCodes.includes('dignity-health'),\r\n 'chi-banner': !divisionCodes.includes('dignity-health')\r\n }\"\r\n >\r\n <img *ngIf=\"showProviderLogos && banner.bannerImage\" src=\"{{ banner.bannerImage }}\" alt=\"\" class=\"banner-image\" />\r\n {{ banner.header }}\r\n </div>\r\n <p [innerHTML]=\"banner.content\" class=\"banner-description\"></p>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, OnInit, Input } from '@angular/core';\r\nimport { Provider, ProviderInterfaceHelper } from '../../models/provider';\r\nimport { Banner } from '../../models/banner';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { MedgroupDictionary } from '../../models/configuration';\r\nimport { LogoConstants } from 'src/app/constants/logo-constants';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\n\r\n@Component({\r\n selector: 'cs-in-network-banner',\r\n templateUrl: './in-network-banner.component.html',\r\n styleUrls: ['./in-network-banner.component.scss']\r\n})\r\nexport class InNetworkBannerComponent implements OnInit {\r\n @Input() provider: Provider;\r\n banner: Banner;\r\n divisionCode: string;\r\n divisionCodes: string[];\r\n banners: Banner[] = [];\r\n showProviderLogos: boolean;\r\n tenantCode: string;\r\n medGroupDict: MedgroupDictionary[] = [];\r\n\r\n constructor(private configurationService: ConfigurationService, private fadLinkServer: FadLinkService) {}\r\n\r\n ngOnInit(): void {\r\n this.tenantCode = this.configurationService.getTenantCode();\r\n this.divisionCodes = this.configurationService.getDivisionCodes();\r\n this.medGroupDict = this.configurationService.getMedGroupCodes();\r\n this.showProviderMedGroupLogos();\r\n this.generateBanner();\r\n }\r\n\r\n private showProviderMedGroupLogos() {\r\n this.showProviderLogos = this.configurationService.showMedGroupLogo();\r\n }\r\n\r\n generateBanner(): Banner[] {\r\n this.banners = [];\r\n const medGroups = [];\r\n\r\n if (this.divisionCodes.includes('dignity-health')) {\r\n this.provider.medicalGroupIds.forEach((value: string) => {\r\n if (medGroups.length < 1 && this.medGroupDict.find((x) => x.code === value)) {\r\n medGroups.push(value);\r\n } else {\r\n return;\r\n }\r\n });\r\n } else {\r\n this.medGroupDict.forEach((group) => {\r\n medGroups.push(group.code);\r\n });\r\n }\r\n\r\n medGroups.forEach((value: string) => {\r\n const medGroup = this.medGroupDict.find((x) => x.code === value);\r\n if (medGroup.banner) {\r\n let banner = medGroup.banner as Banner;\r\n\r\n if (!this.showProviderLogos || !medGroup.logoPathAEM || !medGroup.logoPathFAD) {\r\n banner.content = banner.content?.replace(/<img[a-zA-Z0-9!@#$%^&*)(\\\\\" {}+=._-]+>/g, '');\r\n }\r\n\r\n if (\r\n !window.location.host.toLowerCase().includes(LogoConstants.fad) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.mycareteam) &&\r\n !this.fadLinkServer.isSelfHosted()\r\n ) {\r\n banner = ProviderInterfaceHelper.BannerImageTokenHandler(medGroup.logoPathAEM, banner);\r\n banner = ProviderInterfaceHelper.MedGroupLinkTokenHandler(banner);\r\n banner.bannerImage = medGroup.logoPathAEM;\r\n } else {\r\n banner = ProviderInterfaceHelper.BannerImageTokenHandler(medGroup.logoPathFAD, banner);\r\n banner = ProviderInterfaceHelper.MedGroupLinkTokenHandler(banner);\r\n banner.bannerImage = medGroup.logoPathFAD;\r\n }\r\n\r\n this.banners.push(banner);\r\n } else {\r\n this.banners = [];\r\n }\r\n });\r\n return this.banners;\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'formatDistance'\r\n})\r\nexport class FormatDistancePipe implements PipeTransform {\r\n transform(distance: number, decimalDigits = 1, units = 'mi'): string {\r\n if (distance === null || distance === undefined) {\r\n return '';\r\n }\r\n return `${distance.toFixed(decimalDigits)} ${units}`;\r\n }\r\n}\r\n","<div *ngIf=\"!showImprovedUX\" class=\"locations-list reused-component\">\r\n Locations\r\n <a\r\n role=\"button\"\r\n tabindex=\"0\"\r\n (keydown.enter)=\"handleMoreLess()\"\r\n (click)=\"handleMoreLess()\"\r\n class=\"more-locations\"\r\n *ngIf=\"officeAddresses.length > 1\"\r\n >\r\n {{ hideExtraContent ? 'View more' : 'View less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n <div *ngFor=\"let office of officeAddresses.slice(0, 1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && officeAddresses.length > 1\">\r\n <div *ngFor=\"let office of officeAddresses.slice(1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div *ngIf=\"showImprovedUX\" class=\"locations-list-new reused-component\">\r\n <div class=\"detials-sections\">\r\n <div class=\"location-detail\">\r\n <div class=\"location-header\">\r\n <div>Locations</div>\r\n <div class=\"view-more-container-mobile\" *ngIf=\"officeAddresses.length > 1 && resizeService.isMobileViewport\">\r\n <a role=\"button\" tabindex=\"0\" (keydown.enter)=\"handleMoreLess()\" (click)=\"handleMoreLess()\" class=\"more-locations\">\r\n {{ hideExtraContent ? 'View more' : 'View less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"resizeService.isDesktopViewport\">\r\n <div *ngFor=\"let office of officeAddresses.slice(0, 1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && officeAddresses.length > 1\">\r\n <div *ngFor=\"let office of officeAddresses.slice(1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"!resizeService.isDesktopViewport\">\r\n <div *ngFor=\"let office of officeAddresses.slice(0, 1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && officeAddresses.length > 1\">\r\n <div *ngFor=\"let office of officeAddresses.slice(1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n <div class=\"phone-detail\" *ngIf=\"resizeService.isDesktopViewport\">\r\n Phone\r\n <div *ngFor=\"let office of officeAddresses.slice(0, 1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"phoneDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && officeAddresses.length > 1\">\r\n <div *ngFor=\"let office of officeAddresses.slice(1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"phoneDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"direction-detail\" *ngIf=\"resizeService.isDesktopViewport\">\r\n Directions\r\n <div *ngFor=\"let office of officeAddresses.slice(0, 1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"directionDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && officeAddresses.length > 1\">\r\n <div *ngFor=\"let office of officeAddresses.slice(1); let i = index\" class=\"office\">\r\n <ng-container *ngTemplateOutlet=\"directionDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"view-more-container\" *ngIf=\"officeAddresses.length > 1 && !resizeService.isMobileViewport\">\r\n <a role=\"button\" tabindex=\"0\" (keydown.enter)=\"handleMoreLess()\" (click)=\"handleMoreLess()\" class=\"more-locations\">\r\n {{ hideExtraContent ? 'View more' : 'View less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n</div>\r\n\r\n<ng-template #officeDetails let-office=\"office\" let-i=\"i\">\r\n <div class=\"rank-icon\">\r\n <svg viewBox=\"0 0 12 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M5.36976 15.6722C5.65073 16.1093 6.30634 16.1093 6.58732 15.6722C11.1454 9.1161 11.9883 8.42927 11.9883 5.99415C11.9883 2.68488 9.30342 0 5.99415 0C2.65366 0 0 2.68488 0 5.99415C0 8.42927 0.811707 9.1161 5.36976 15.6722Z\"\r\n />\r\n </svg>\r\n </div>\r\n <div class=\"office-details\">\r\n <div class=\"office-address\">\r\n <div class=\"office-name\">\r\n <p *ngIf=\"!office.name\" class=\"p p2\">{{ provider.officeNames[i] }}</p>\r\n <p *ngIf=\"office.name && (office.name.length == 1 ? !office.name.includes('.') : true)\" class=\"p p2\">{{ office.name }}</p>\r\n <p *ngIf=\"office.description && (office.description.length == 1 ? !office.description.includes('.') : true)\" class=\"p p2\">\r\n {{ office.description }}\r\n </p>\r\n </div>\r\n <div class=\"street\">\r\n <p *ngIf=\"resizeService.isMobileViewport\" class=\"p3\">\r\n {{ office.address }}<br />\r\n {{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }}\r\n </p>\r\n <p *ngIf=\"!resizeService.isMobileViewport && isProviderCardContent && office.phones?.length\" class=\"p2\">\r\n {{ office.address }}<span *ngIf=\"office.address\">, </span> {{ office.city }}<span *ngIf=\"office.city\">, </span> {{ office.state }}\r\n {{ office.zip }}\r\n </p>\r\n <p *ngIf=\"!resizeService.isMobileViewport && isProviderCardContent && !office.phones?.length\" class=\"p2\">\r\n {{ office.address }}<br />\r\n {{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }}\r\n </p>\r\n <p *ngIf=\"!resizeService.isMobileViewport && !isProviderCardContent && office.phones?.length\" class=\"p2\">\r\n {{ office.address }}<span *ngIf=\"office.address\">, </span> {{ office.city }}<span *ngIf=\"office.city\">, </span> {{ office.state }}\r\n {{ office.zip }}\r\n </p>\r\n <p *ngIf=\"!resizeService.isMobileViewport && !isProviderCardContent && !office.phones?.length\" class=\"p2\">\r\n {{ office.address }}<br />\r\n {{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }}\r\n </p>\r\n </div>\r\n <div class=\"contact-number phone\" *ngIf=\"office.phones && (!showImprovedUX || !resizeService.isDesktopViewport)\">\r\n <p *ngIf=\"!resizeService.isDesktopViewport\" class=\"p3\">\r\n <a href=\"tel:{{ office.phones }}\">{{ office.phones }}</a>\r\n </p>\r\n <p *ngIf=\"resizeService.isDesktopViewport\" class=\"p2\">{{ office.phones }}</p>\r\n </div>\r\n </div>\r\n <div class=\"right-info\" *ngIf=\"!showImprovedUX || !resizeService.isDesktopViewport\">\r\n <div>\r\n <div *ngIf=\"!this.isProviderCardContent\" class=\"proximity-display\">{{ office.distanceMilesFromSearch | formatDistance }}</div>\r\n </div>\r\n <div class=\"get-directions\">\r\n <a\r\n *ngIf=\"!office.name\"\r\n [attr.aria-label]=\"getDirectionText(provider.officeNames[i])\"\r\n href=\"https://www.google.com/maps/search/{{ office.address }} {{ office.city }} {{ office.state }} {{ office.zip }}\"\r\n target=\"_blank\"\r\n >Get directions</a\r\n >\r\n <a\r\n *ngIf=\"office.name && (office.name.length == 1 ? !office.name.includes('.') : true)\"\r\n [attr.aria-label]=\"getDirectionText(office.name)\"\r\n href=\"https://www.google.com/maps/search/{{ office.address }} {{ office.city }} {{ office.state }} {{ office.zip }}\"\r\n target=\"_blank\"\r\n >Get directions</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #phoneDetails let-office=\"office\" let-i=\"i\">\r\n <div class=\"phone-details\">\r\n <div class=\"contact-number phone\" *ngIf=\"office.phones\">\r\n <p *ngIf=\"!resizeService.isDesktopViewport\" class=\"p3\">\r\n <a href=\"tel:{{ office.phones }}\">{{ office.phones }}</a>\r\n </p>\r\n <p *ngIf=\"resizeService.isDesktopViewport\" class=\"p2\">{{ office.phones }}</p>\r\n </div>\r\n </div>\r\n</ng-template>\r\n<ng-template #directionDetails let-office=\"office\" let-i=\"i\">\r\n <div class=\"direction-details\">\r\n <div *ngIf=\"!this.isProviderCardContent\" class=\"proximity-display\">{{ office.distanceMilesFromSearch | formatDistance }}</div>\r\n <div class=\"get-directions\">\r\n <a\r\n *ngIf=\"!office.name\"\r\n [attr.aria-label]=\"getDirectionText(provider.officeNames[i])\"\r\n href=\"https://www.google.com/maps/search/{{ office.address }} {{ office.city }} {{ office.state }} {{ office.zip }}\"\r\n target=\"_blank\"\r\n >Get directions</a\r\n >\r\n <a\r\n *ngIf=\"office.name && (office.name.length == 1 ? !office.name.includes('.') : true)\"\r\n [attr.aria-label]=\"getDirectionText(office.name)\"\r\n href=\"https://www.google.com/maps/search/{{ office.address }} {{ office.city }} {{ office.state }} {{ office.zip }}\"\r\n target=\"_blank\"\r\n >Get directions</a\r\n >\r\n </div>\r\n </div>\r\n</ng-template>\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { OfficeAddress } from '../../../models/office-address';\r\nimport { Provider, ProviderInterfaceHelper } from '../../../models/provider';\r\nimport { ResizeService } from '../../../services/resize.service';\r\nimport { ConfigurationService } from '../../../services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-result-card-location-list',\r\n templateUrl: './result-card-location-list.component.html',\r\n styleUrls: ['./result-card-location-list.component.scss']\r\n})\r\nexport class ResultCardLocationListComponent implements OnInit{\r\n @Input() provider: Provider;\r\n @Input() isProviderCardContent = false;\r\n hideExtraContent = true;\r\n officeAddresses: OfficeAddress[] = [];\r\n showImprovedUX: boolean;\r\n\r\n constructor(private router: Router, public resizeService: ResizeService, private configurationService: ConfigurationService ) {}\r\n\r\n ngOnInit(): void {\r\n if (this.provider) {\r\n this.officeAddresses = ProviderInterfaceHelper.getProviderOfficesSortedByRank(this.provider);\r\n }\r\n this.showImprovedUX = this.configurationService.showImprovedUX();\r\n }\r\n \r\n handleMoreLess(): void {\r\n this.hideExtraContent = !this.hideExtraContent;\r\n }\r\n\r\n goToProvider() {\r\n sessionStorage.setItem('searchResultsOrigin', 'true');\r\n this.router.navigateByUrl(\r\n `/${this.provider.npi}-${this.provider.firstName.makeURLFriendly()}-${this.provider.lastName.makeURLFriendly()}`\r\n );\r\n }\r\n getDirectionText(value: string) {\r\n return 'Get directions to ' + value;\r\n }\r\n}\r\n","<div class=\"fad-col-sm-12 affiliation-container\">\r\n <div class=\"affiliation-header\">\r\n Hospital affiliations\r\n <a (click)=\"hideExtraContent = !hideExtraContent\" class=\"more-affiliations visibledesktop\" *ngIf=\"affiliations.length > 2\">\r\n {{ hideExtraContent ? 'View more' : 'View less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n <a (click)=\"hideExtraContent = !hideExtraContent\" class=\"more-affiliations visibledevice\" *ngIf=\"affiliations.length > 1\">\r\n {{ hideExtraContent ? 'View more' : 'View less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n <div class=\"visibledesktop\">\r\n <div *ngFor=\"let hospital of affiliations.slice(0, 2); let i = index\" class=\"hospital\">\r\n <ng-container *ngTemplateOutlet=\"hospitalDetails; context: { hospital: hospital, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && affiliations.length > 2\">\r\n <div *ngFor=\"let hospital of affiliations.slice(2); let i = index\" class=\"more-hospitals\">\r\n <ng-container *ngTemplateOutlet=\"hospitalDetails; context: { hospital: hospital, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"visibledevice\">\r\n <div *ngFor=\"let hospital of affiliations.slice(0, 1); let i = index\" class=\"hospital\">\r\n <ng-container *ngTemplateOutlet=\"hospitalDetails; context: { hospital: hospital, i: i }\"></ng-container>\r\n </div>\r\n <div *ngIf=\"!hideExtraContent && affiliations.length > 1\">\r\n <div *ngFor=\"let hospital of affiliations.slice(1); let i = index\" class=\"more-hospitals\">\r\n <ng-container *ngTemplateOutlet=\"hospitalDetails; context: { hospital: hospital, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #hospitalDetails let-hospital=\"hospital\" let-i=\"i\">\r\n <div class=\"name-columns\">\r\n <p #expandableList>{{ hospital }}</p>\r\n </div>\r\n</ng-template>\r\n","import { Component, Input, ViewChild, ElementRef, ChangeDetectionStrategy } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-hospital-affiliations',\r\n templateUrl: './hospital-affiliations.component.html',\r\n styleUrls: ['./hospital-affiliations.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class HospitalAffiliationsComponent {\r\n @Input() affiliations: string[] = [];\r\n @Input() hideExtraContent: boolean;\r\n\r\n @ViewChild('expandableList') expandableList: ElementRef;\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { ButtonModule, StarRatingModule, TooltipModule } from '@dignity-health/ngx-components';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { BadgesModule } from '../badges/badges.module';\r\nimport { DocAsapBookingLauncherModule } from '../doc-asap-booking-launcher/doc-asap-booking-launcher.module';\r\nimport { InNetworkBannerComponent } from '../in-network-banner/in-network-banner.component';\r\nimport { ResultCardLocationListComponent } from './result-card-location-list/result-card-location-list.component';\r\nimport { ResultCardComponent } from './result-card.component';\r\nimport { PipesModule } from '../../pipes/pipes.module';\r\nimport { HospitalAffiliationsComponent } from './hospital-affiliations/hospital-affiliations.component';\r\nimport { PatientAgeRestrictionsModule } from '../patient-age-restrictions/patient-age-restrictions.module';\r\n\r\n@NgModule({\r\n declarations: [\r\n ResultCardComponent,\r\n ResultCardLocationListComponent,\r\n InNetworkBannerComponent,\r\n HospitalAffiliationsComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n BadgesModule,\r\n ButtonModule,\r\n RouterModule,\r\n DocAsapBookingLauncherModule,\r\n StarRatingModule,\r\n TooltipModule,\r\n PipesModule,\r\n PatientAgeRestrictionsModule\r\n ],\r\n exports: [ResultCardComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\r\n providers: [ResizeService]\r\n})\r\nexport class ResultCardModule {}\r\n","<div class=\"search-fields\">\r\n <div class=\"search-fields-group\" #searchFieldsGroup>\r\n <fieldset class=\"provider-search-field\" #searchInputs tabindex=\"0\">\r\n <legend class=\"sr-only\">Search for a Provider</legend>\r\n <cs-provider-search\r\n [searchTerm]=\"keyword\"\r\n [hideProviderSuggestions]=\"hideProviderSuggestions\"\r\n [autoSuggestionLoadingMessage]=\"autoSuggestionLoadingMessage\"\r\n (searchTermChanged)=\"keywordFromInput($event)\"\r\n (keywordEnter)=\"keyEnterHandler($event)\"\r\n (goToProviderEvent)=\"goToProvider($event)\"\r\n (specialtyChanged)=\"goToFilters($event)\"\r\n (tabPressedOnProviderSearch)=\"setProviderSearchActive()\"\r\n >\r\n </cs-provider-search>\r\n <cs-location-search\r\n [selectedLocation]=\"selectedLocation\"\r\n [invalidLocation]=\"isValidSearchLocation\"\r\n [autoSuggestionLoadingMessage]=\"autoSuggestionLoadingMessage\"\r\n (setLocation)=\"selectedLocation = $event\"\r\n (locationEnter)=\"getSearchResultsBtnclk()\"\r\n (closeProviderAutoSuggestionContainer)=\"closeProviderAutoSuggestionContainer()\"\r\n ></cs-location-search>\r\n\r\n <button\r\n data-nav-type=\"find a doctor\"\r\n (click)=\"getSearchResultsBtnclk()\"\r\n data-nav-element=\"fad search button\"\r\n data-nav-location=\"fad search initiation\"\r\n aria-label=\"Search available providers\"\r\n class=\"search-button\"\r\n [ngClass]=\"{'search-btn':showRoundBtn}\"\r\n >\r\n <span *ngIf=\"showSearchBtn\">\r\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31254C2.81252 9.80161 4.82698 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.79811 11.8126 7.31254C11.8126 4.82347 9.79811 2.81252 7.31254 2.81252C4.82347 2.81252 2.81252 4.82698 2.81252 7.31254Z\"\r\n fill=\"white\"\r\n />\r\n </svg>\r\n </span>\r\n <span>{{showRoundBtn}}</span>\r\n </button>\r\n </fieldset>\r\n </div>\r\n\r\n <div *ngIf=\"!isValidSearchLocation && selectedLocation?.name !== 'undefined'\" class=\"search-fields-group\">\r\n <div class=\"provider-search-field\">\r\n <div *ngIf=\"!isVMFHMarket\" class=\"no-location-error\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"locationError\"></ng-container>\r\n </div>\r\n <div *ngIf=\"isVMFHMarket\" class=\"no-location-error-vmfh\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"locationError\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"provider-role-checkbox\" *ngIf=\"includeProviderRoleTypesCheckbox\">\r\n <cs-provider-role-checkbox [selectCheckBox]=\"includeProviderRoleTypes\" (includeProviderRoleTypes)=\"providerRoleTypesSelected($event)\">\r\n </cs-provider-role-checkbox>\r\n </div>\r\n\r\n <cs-quicklinks-search\r\n (quicklinkCategoryClick)=\"getQuickLinksResults($event)\"\r\n [quickLinksCategories]=\"quickLinksCategories\"\r\n [quickLinksButtonAlignment]=\"quickLinksButtonAlignment\"\r\n *ngIf=\"configShowQuickLinks && showQuicklinks\"\r\n >\r\n </cs-quicklinks-search>\r\n</div>\r\n\r\n<ng-template #locationError>\r\n <span>\r\n <svg viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15 7.5C15 3.3871 11.6129 0 7.5 0C3.35685 0 0 3.3871 0 7.5C0 11.6431 3.35685 15 7.5 15C11.6129 15 15 11.6431 15 7.5ZM7.5 9.0121C8.25605 9.0121 8.89113 9.64718 8.89113 10.4032C8.89113 11.1895 8.25605 11.7944 7.5 11.7944C6.71371 11.7944 6.10887 11.1895 6.10887 10.4032C6.10887 9.64718 6.71371 9.0121 7.5 9.0121ZM6.16935 4.02218C6.13911 3.81048 6.32056 3.62903 6.53226 3.62903H8.4375C8.64919 3.62903 8.83064 3.81048 8.8004 4.02218L8.58871 8.13508C8.55847 8.34677 8.40726 8.46774 8.22581 8.46774H6.74395C6.5625 8.46774 6.41129 8.34677 6.38105 8.13508L6.16935 4.02218Z\"\r\n />\r\n </svg>\r\n </span>\r\n <span class=\"no-location-text\">\r\n We’re unable to recognize this location. Please type a new city or zip in the Location search field.</span\r\n >\r\n</ng-template>\r\n","import { Component, ElementRef, EventEmitter, HostListener, Injector, Input, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { ActivatedRoute, Params, Router } from '@angular/router';\r\nimport { map } from 'rxjs/operators';\r\nimport { GlobalParams } from 'src/app/global-params';\r\nimport { QueryParamNames, SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { RuntimeConfiguration } from 'src/app/services/configuration-injection.service';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\nimport { ApiResponse } from 'src/app/utils/api-response';\r\nimport { QuickLinksCategories } from '../../models/configuration';\r\nimport { FacetSummary, FiltersModel } from '../../models/filters';\r\nimport { LocationConverter, LocationSuggestionResult, SelectedLocation } from '../../models/location';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { CookieService } from '../../services/cookie.service';\r\nimport { LocationService } from '../../services/location.service';\r\nimport { FadUrlBuilder } from '../../utils/url/fad-url-builder';\r\nimport { UrlBuilderParams } from '../../utils/url/url-builder-params';\r\nimport { BlockitSessionService } from 'src/app/services/blockit-session.service';\r\n\r\n@Component({\r\n selector: 'cs-search-input',\r\n templateUrl: './search-input.component.html',\r\n styleUrls: ['./search-input.component.scss']\r\n})\r\nexport class SearchInputComponent implements OnInit {\r\n @Input() keyword = '';\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() bookOnline = false;\r\n @Input() showQuicklinks = true;\r\n @Input() filtersModel: FiltersModel;\r\n @Input() fadBaseUrl = '';\r\n @Input() includeProviderRoleTypes = false;\r\n @Output() includeProviderTypeEmit = new EventEmitter<boolean>();\r\n @Output() searchbutttonClick = new EventEmitter<boolean>();\r\n\r\n runtimeConfig: RuntimeConfiguration;\r\n configShowQuickLinks: boolean;\r\n isValidSearchLocation = true;\r\n useNewProviderDetailsRoute;\r\n quickLinksCategories: QuickLinksCategories[] = [];\r\n isLocationRequired: boolean;\r\n includeProviderRoleTypesCheckbox = false;\r\n\r\n searchbtnClick = 'btnClickSearch';\r\n checkboxSearch = 'checkboxSearch';\r\n\r\n searchHandler = this.searchbtnClick;\r\n quickLinksButtonAlignment = false;\r\n providerSearchActive = true;\r\n hideProviderSuggestions = false;\r\n autoSuggestionLoadingMessage = '';\r\n specialitySelected = false;\r\n showSearchBtn:boolean;\r\n showRoundBtn:string;\r\n isVMFHMarket:boolean;\r\n blockitService: BlockitSessionService;\r\n configurationService: ConfigurationService;\r\n @ViewChild('searchFieldsGroup') searchFieldsGroup: ElementRef;\r\n @ViewChild('searchInputs') searchInputs: ElementRef;\r\n\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent): void {\r\n if (!this.searchInputs.nativeElement.contains(event.target)) {\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = 'none';\r\n } else {\r\n if (window.innerWidth > 767) {\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = '0px 2px 8px rgba(77, 82, 90, 0.3)';\r\n }\r\n if(this.showRoundBtn){\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any): void {\r\n if (event.target.innerWidth < 768) {\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n\r\n constructor(\r\n private router: Router,\r\n private cookieService: CookieService,\r\n private urlBuilder: FadUrlBuilder,\r\n private locationService: LocationService,\r\n private fadLinkServer: FadLinkService,\r\n private route: ActivatedRoute,\r\n private injector : Injector\r\n ) {\r\n this.configurationService = this.injector.get<ConfigurationService>(ConfigurationService);\r\n this.blockitService = this.injector.get<BlockitSessionService>(BlockitSessionService);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.blockitService.getBlockItURL();\r\n this.runtimeConfig = this.configurationService.getRuntimeConfiguration();\r\n this.configShowQuickLinks = this.configurationService.showquickLinks();\r\n this.useNewProviderDetailsRoute = this.configurationService.UseNewProviderDetailsRoute();\r\n\r\n this.quickLinksCategories = this.configurationService.quickLinksCategories();\r\n this.includeProviderRoleTypesCheckbox = this.configurationService.includeProviderRoleCheckBox();\r\n this.quickLinksButtonAlignment = this.configurationService.ShowButtonsbyRows();\r\n this.autoSuggestionLoadingMessage = this.configurationService.getAutoSuggestionLoadingMessage();\r\n this.showSearchBtn = this.configurationService.showSearchButton();\r\n this.showRoundBtn= this.configurationService.getSearchButton();\r\n this.isVMFHMarket = this.configurationService.getMarketCodes().includes('vmfh');\r\n }\r\n\r\n getQuickLinksResults(quickLink: QuickLinksCategories): void {\r\n switch (quickLink.type.toLowerCase()) {\r\n case 'keywords':\r\n this.quickLinksKeywordsSearch(quickLink);\r\n break;\r\n case 'specialities':\r\n this.quickLinksSpecialitiesSearch(quickLink.value);\r\n break;\r\n case 'affiliations':\r\n this.quickLinksHospitalAffiliationsSearch(quickLink.value);\r\n break;\r\n default:\r\n this.quickLinksSearch(quickLink);\r\n break;\r\n }\r\n }\r\n\r\n private quickLinksKeywordsSearch(quickLink: QuickLinksCategories) {\r\n this.resetAndSetKeywords(quickLink.value);\r\n const queryParams: Params = {};\r\n this.filterQuickLinkMedGroups(quickLink.medGroup);\r\n this.buildSearchAndNavigate(queryParams);\r\n }\r\n\r\n private quickLinksSpecialitiesSearch(specialties: string) {\r\n this.resetAndSetKeywords('');\r\n const queryParams: Params = {};\r\n if (specialties.includes('|')) {\r\n queryParams.specialties = specialties;\r\n this.buildSearchAndNavigate(queryParams);\r\n } else {\r\n this.keyword = specialties;\r\n this.buildSearchAndNavigate(queryParams, true);\r\n }\r\n }\r\n\r\n private quickLinksHospitalAffiliationsSearch(affiliations: string) {\r\n this.resetAndSetKeywords('');\r\n const queryParams: Params = {};\r\n\r\n queryParams.affiliations = affiliations.replace('\\'', '');\r\n\r\n this.buildSearchAndNavigate(queryParams);\r\n }\r\n\r\n private quickLinksSearch(quickLink: QuickLinksCategories) {\r\n const quickLinkType= quickLink?.type;\r\n this.resetAndSetKeywords('');\r\n const queryParams: Params = {};\r\n if (quickLinkType === 'videovisits') {\r\n queryParams.videovisits = true;\r\n }\r\n if (quickLinkType === 'bookonline') {\r\n queryParams.bookonline = true;\r\n }\r\n if (quickLinkType === 'acceptingnew') {\r\n queryParams.acceptingnew = true;\r\n this.filterQuickLinkMedGroups(quickLink.medGroup);\r\n }\r\n if (quickLinkType === 'allVisits') {\r\n queryParams.allVisits = true;\r\n }\r\n if (quickLinkType === 'insurances') {\r\n queryParams.insurances = true;\r\n }\r\n this.buildSearchAndNavigate(queryParams);\r\n }\r\n\r\n filterQuickLinkMedGroups(medgroups: string[]): void{\r\n if (medgroups && medgroups.length > 1) {\r\n const selectedMedGroups: FacetSummary[] = [];\r\n medgroups.forEach(x=> {\r\n const selectedMedgroup: FacetSummary = {\r\n name: x,\r\n count: 0,\r\n selected: true\r\n };\r\n selectedMedGroups.push(selectedMedgroup);\r\n });\r\n this.filtersModel.providerMedicalGroup = selectedMedGroups;\r\n }\r\n }\r\n\r\n /**\r\n * The way this is written, it's possible to double navigate. It would be better to have one thing that builds up the urls,\r\n * and only navigate once. Do not call navigate more than once in the method.\r\n */\r\n\r\n keyEnterHandler(value): void {\r\n this.specialitySelected = false;\r\n this.searchHandler = this.searchbtnClick;\r\n this.getSearchResults(value);\r\n }\r\n\r\n keywordFromInput(value): void {\r\n this.specialitySelected = false;\r\n this.keyword = value;\r\n }\r\n\r\n getSearchResults(searchTerm = '', source = 'search'): void {\r\n this.resetAndSetKeywords(searchTerm !== '' ? searchTerm : this.keyword);\r\n let queryParams: Params = {};\r\n if (this.searchHandler === this.checkboxSearch) {\r\n const snapshot = this.route.snapshot;\r\n queryParams = { ...snapshot.queryParams };\r\n }\r\n this.setKeywordQueryParams(queryParams);\r\n this.setLocationQueryParams(queryParams);\r\n \r\n if (this.includeProviderRoleTypes) {\r\n queryParams.includeProviderRoleTypes = this.includeProviderRoleTypes;\r\n }\r\n this.filtersModel.pageNumber = 1;\r\n\r\n if ((queryParams.includeProviderRoleTypes === 'true' || queryParams.includeProviderRoleTypes) && !this.includeProviderRoleTypes) {\r\n delete queryParams.includeProviderRoleTypes;\r\n }\r\n\r\n if (sessionStorage.getItem('LocationIdFromFAL') && sessionStorage.getItem('LocationIdFromFAL') !== '' && source === 'checkbox') {\r\n const locationId = sessionStorage.getItem('LocationIdFromFAL');\r\n const pathname = window.location.pathname;\r\n const baseUrl = this.configurationService.getRuntimeConfiguration().fadBaseUrl;\r\n const marketCode = this.configurationService.getMarketCodes()[0];\r\n const isHospitalBased = this.route.snapshot.queryParams.isHospitalBased;\r\n if (pathname.includes('/l/location-')) {\r\n let url = `${baseUrl}${marketCode}/l/location-${locationId}?FALredirecttoFAD=true${\r\n isHospitalBased === 'true' ? '' : '&isHospitalBased=true'\r\n }`;\r\n if (this.configurationService.getEmbedSource() === 'cerner') {\r\n url = `${\r\n this.runtimeConfig.fadBaseUrl\r\n }${this.configurationService.getRedirectToFADinCerner()}/l/location-${locationId}?FALredirecttoFAD=true${\r\n isHospitalBased === 'true' ? '' : '&isHospitalBased=true'\r\n }`;\r\n } else if (!this.fadLinkServer.isSelfHosted() || this.configurationService.getEmbedSource() === 'mychart') {\r\n if (this.configurationService.getEmbedSource() === 'mychart') {\r\n url = `${this.configurationService.getRedirectURLPathForFADEpic()}/l/location-${locationId}?FALredirecttoFAD=true${\r\n isHospitalBased === 'true' ? '' : '&isHospitalBased=true'\r\n }`;\r\n } else {\r\n url = `${this.configurationService.getRedirectInAEM()}/l/location-${locationId}?FALredirecttoFAD=true${\r\n isHospitalBased === 'true' ? '' : '&isHospitalBased=true'\r\n }`;\r\n }\r\n }\r\n window.open(url, '_self');\r\n return;\r\n }\r\n }\r\n\r\n this.handleSpecialtyRemove();\r\n\r\n if (this.filtersModel.providerMedicalGroup) {\r\n sessionStorage.setItem('includeProviderRoleTypes', 'false');\r\n }\r\n \r\n this.buildSearchAndNavigate(queryParams, this.specialitySelected);\r\n }\r\n\r\n private handleSpecialtyRemove():void {\r\n if(this.specialitySelected) {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n }\r\n \r\n if(this.filtersModel.selectedSpecialties && this.filtersModel.selectedSpecialties.length <= 0) {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpeciality);\r\n }\r\n\r\n }\r\n\r\n private setKeywordQueryParams(queryParams:Params):void{\r\n const Keyword=this.keyword.trim().toLowerCase().replace(/\\s/g, '');\r\n\r\n switch(Keyword){\r\n case 'videovisits':\r\n queryParams.videovisits = true;\r\n this.keyword = '';\r\n break;\r\n\r\n case 'bookonline':\r\n case 'onlinescheduling':\r\n queryParams.bookonline = true;\r\n this.keyword = '';\r\n break;\r\n\r\n case 'allVisits':\r\n queryParams.allVisits = true;\r\n this.keyword = '';\r\n break;\r\n\r\n case 'insurances':\r\n queryParams.insurances = true;\r\n this.keyword = '';\r\n break;\r\n\r\n case 'acceptingnewpatients':\r\n queryParams.acceptingnew = true;\r\n this.keyword = '';\r\n break;\r\n }\r\n\r\n }\r\n private setLocationQueryParams(queryParams:Params):void{\r\n if (\r\n this.selectedLocation?.city &&\r\n this.selectedLocation?.state &&\r\n this.filtersModel.providerMedicalGroup &&\r\n this.filtersModel.providerMedicalGroup.length > 0\r\n ) {\r\n queryParams.location = `${this.selectedLocation.city.toLowerCase()}-${this.selectedLocation.state.toLowerCase()}`;\r\n } else if (this.selectedLocation?.name && this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n queryParams.location = `${this.selectedLocation.name.toLowerCase()}`;\r\n }\r\n }\r\n\r\n goToProvider($event) {\r\n if (this.useNewProviderDetailsRoute) {\r\n this.router\r\n .navigateByUrl(\r\n `/${$event.primarySpecialty.makeURLFriendly()}/${$event.firstName.makeURLFriendly()}-${$event.lastName.makeURLFriendly()}-${\r\n $event.npi\r\n }`\r\n )\r\n .then();\r\n return;\r\n }\r\n this.router.navigateByUrl(`/${$event.npi}-${$event.firstName.makeURLFriendly()}-${$event.lastName.makeURLFriendly()}`).then();\r\n }\r\n\r\n private resetAndSetKeywords(keywords: string) {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n this.keyword = keywords;\r\n if (!this.filtersModel?.providerMedicalGroup) {\r\n this.filtersModel = new FiltersModel(this.configurationService);\r\n }\r\n }\r\n\r\n private buildSearchAndNavigate(queryParams: Params, specialtySearch = false) {\r\n if (!this.selectedLocation?.name) {\r\n this.isLocationRequired = this.configurationService.getLocationRequiredDefaultValue();\r\n if (this.isLocationRequired) {\r\n this.selectedLocation = LocationConverter.convertTo(this.cookieService.getLocationCookieFromBrowser());\r\n if (!this.selectedLocation) {\r\n this.locationService\r\n .getLocationByIP()\r\n .pipe(\r\n map((response) => LocationConverter.convertTo(response.result.location))\r\n )\r\n .subscribe((defaultLocation) => {\r\n this.selectedLocation = defaultLocation;\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n });\r\n } else {\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n }\r\n } else {\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n }\r\n } else {\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n }\r\n }\r\n\r\n private validateLocation(queryParams: Params, location: SelectedLocation, specialtySearch = false): void {\r\n if (!!location && location?.name?.trim() !== '') {\r\n this.locationService\r\n .getTypedLocationSuggestions(location.name)\r\n .subscribe((suggestionResponse: ApiResponse<LocationSuggestionResult[]>) => {\r\n GlobalParams.isNeighborhoodSearch = this.checkForNeighborhoodLocation(location);\r\n\r\n if (suggestionResponse.isValid && suggestionResponse.result.length > 0) {\r\n this.isValidSearchLocation = true;\r\n this.navigateRoute(queryParams, this.selectedLocation, specialtySearch);\r\n } else {\r\n this.isValidSearchLocation = false;\r\n }\r\n });\r\n } else if ((location === undefined || location?.name === '' || location == null) && !this.isLocationRequired) {\r\n this.isValidSearchLocation = true;\r\n this.navigateRoute(queryParams, this.selectedLocation, specialtySearch);\r\n } else {\r\n this.isValidSearchLocation = false;\r\n }\r\n }\r\n\r\n private navigateRoute(queryParams: Params, location: SelectedLocation, specialtySearch = false): void {\r\n this.cookieService.addLocationCookieToBrowser(location);\r\n const urlQueryParams = new URLSearchParams(window.location.search);\r\n const specialtiesQueryParam = urlQueryParams.get(QueryParamNames.Specialties);\r\n\r\n const singleSpecialty = window.sessionStorage.getItem(SessionObjectNames.SingleSpeciality);\r\n if (queryParams === null) {\r\n queryParams = {};\r\n }\r\n \r\n let url = '';\r\n if (specialtiesQueryParam == null && singleSpecialty && singleSpecialty !== '' && this.keyword === '') {\r\n specialtySearch = true;\r\n this.keyword = singleSpecialty;\r\n } else {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpeciality);\r\n }\r\n\r\n if (this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n url = this.urlBuilder.build(\r\n {\r\n medGroup:\r\n this.filtersModel.providerMedicalGroup?.length > 1\r\n ? this.filtersModel.providerMedicalGroup.map((x) => x.name).join('|')\r\n : this.filtersModel.providerMedicalGroup[0].name,\r\n searchTerm: specialtySearch ? null : this.keyword,\r\n selectedLocation: location,\r\n specialty: specialtySearch ? this.keyword : null\r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n );\r\n } else {\r\n url = this.urlBuilder.build(\r\n {\r\n medGroup: '',\r\n searchTerm: specialtySearch ? null : this.keyword,\r\n selectedLocation: location,\r\n specialty: specialtySearch ? this.keyword : null\r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n );\r\n }\r\n\r\n if (specialtiesQueryParam != null) {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpeciality);\r\n queryParams.specialties = specialtiesQueryParam;\r\n }\r\n\r\n queryParams = this.getPreFilterValues(urlQueryParams, queryParams);\r\n \r\n this.handleDistanceParam(queryParams, location, specialtySearch);\r\n\r\n this.router.navigate([url], {\r\n queryParams\r\n });\r\n }\r\n\r\n private handleDistanceParam(queryParams: Params, location: SelectedLocation, specialtySearch = false) : void {\r\n if (specialtySearch) {\r\n this.keyword = '';\r\n }\r\n\r\n if (!this.selectedLocation?.name)\r\n {delete queryParams.distance;}\r\n }\r\n\r\n getPreFilterValues(urlQueryParams: URLSearchParams, queryParams: Params): Params {\r\n const genderQueryParam = urlQueryParams.get(QueryParamNames.Gender);\r\n const languageQueryParam = urlQueryParams.get(QueryParamNames.Languages);\r\n const bookonlineQueryParam = urlQueryParams.get(QueryParamNames.BookOnline);\r\n const acceptingnewQueryParam = urlQueryParams.get(QueryParamNames.AcceptingNew);\r\n const videovisitsQueryParam = urlQueryParams.get(QueryParamNames.VideoVisits);\r\n const allVisitsQueryParam = urlQueryParams.get(QueryParamNames.AllVisits);\r\n const insurancesQueryParam = urlQueryParams.get(QueryParamNames.Insurances);\r\n const distanceQueryParam = urlQueryParams.get(QueryParamNames.Distance);\r\n const affiliationsQueryParam = urlQueryParams.get(QueryParamNames.Affiliations);\r\n\r\n if(languageQueryParam !=null) {\r\n queryParams.languages = languageQueryParam;\r\n }\r\n if(bookonlineQueryParam !=null) {\r\n queryParams.bookonline = bookonlineQueryParam;\r\n }\r\n if(acceptingnewQueryParam !=null) {\r\n queryParams.acceptingnew = acceptingnewQueryParam;\r\n }\r\n if(videovisitsQueryParam !=null) {\r\n queryParams.videovisits = videovisitsQueryParam;\r\n }\r\n if(allVisitsQueryParam !=null) {\r\n queryParams.allVisits = allVisitsQueryParam;\r\n }\r\n if(insurancesQueryParam !=null) {\r\n queryParams.insurances = insurancesQueryParam;\r\n }\r\n if(distanceQueryParam !=null) {\r\n queryParams.distance = distanceQueryParam;\r\n }\r\n if (genderQueryParam != null) {\r\n queryParams.gender = genderQueryParam;\r\n }\r\n if (affiliationsQueryParam != null) {\r\n queryParams.affiliations = affiliationsQueryParam;\r\n }\r\n return queryParams;\r\n }\r\n goToFilters($event: string): void {\r\n this.filtersModel = new FiltersModel(this.configurationService);\r\n this.keyword = `${$event}`;\r\n this.specialitySelected = true;\r\n }\r\n\r\n checkForNeighborhoodLocation(location: SelectedLocation): boolean {\r\n if (location.neighborhood || (location.name && location.name.split(',').length >= 3)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n providerRoleTypesSelected($event: boolean): void {\r\n this.includeProviderRoleTypes = $event;\r\n this.searchHandler = this.checkboxSearch;\r\n this.includeProviderTypeEmit.emit(this.includeProviderRoleTypes);\r\n sessionStorage.setItem('includeProviderRoleTypes', String($event));\r\n this.getSearchResults('', 'checkbox');\r\n }\r\n\r\n getSearchResultsBtnclk(): void {\r\n this.isValidSearchLocation = true;\r\n this.searchHandler = this.searchbtnClick;\r\n this.getSearchResults();\r\n this.searchbutttonClick.emit(true);\r\n }\r\n\r\n setProviderSearchActive(): void {\r\n this.providerSearchActive = true;\r\n this.hideProviderSuggestions = false;\r\n }\r\n\r\n closeProviderAutoSuggestionContainer(): void {\r\n if (this.providerSearchActive) {\r\n this.hideProviderSuggestions = true;\r\n }\r\n }\r\n\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { HttpClientJsonpModule } from '@angular/common/http';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { TooltipModule } from './tooltip/tooltip.module';\r\nimport { GuidedFlowModule } from '@dignity-health/ngx-guided-flow';\r\nimport { DignityHealthComponentsModule } from '../dignity-health-components.module';\r\nimport { BadgesModule } from './badges/badges.module';\r\nimport { DisclaimerComponent } from './disclaimer/disclaimer.component';\r\nimport { EmergencyCareComponent } from './emergency-care/emergency-care.component';\r\nimport { ExpandableListComponent } from './expandable-list/expandable-list.component';\r\nimport { LegalCopyComponent } from './legal-copy/legal-copy.component';\r\nimport { LocationSearchComponent } from './location-search/location-search.component';\r\nimport { ProviderCardComponent } from './provider-card/provider-card.component';\r\nimport { ProviderDetailsNavigationComponent } from './provider-details-navigation/provider-details-navigation.component';\r\nimport { ProviderRoleCheckboxComponent } from './provider-role-checkbox/provider-role-checkbox.component';\r\nimport { FocusedDirective } from './provider-search/focused.directive';\r\nimport { ProviderSearchComponent } from './provider-search/provider-search.component';\r\nimport { QuicklinksSearchComponent } from './quicklinks-search/quicklinks-search.component';\r\nimport { RegionalHelplineNumbersComponent } from './regional-helpline-numbers/regional-helpline-numbers.component';\r\nimport { ResultCardModule } from './result-card/result-card.module';\r\nimport { ScrollToTopComponent } from './scroll-to-top/scroll-to-top.component';\r\nimport { SearchInputComponent } from './search-input/search-input.component';\r\nimport { SvgIconComponent } from './svg-icon/svg-icon.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n LegalCopyComponent,\r\n EmergencyCareComponent,\r\n ProviderSearchComponent,\r\n LocationSearchComponent,\r\n QuicklinksSearchComponent,\r\n SvgIconComponent,\r\n ProviderDetailsNavigationComponent,\r\n ExpandableListComponent,\r\n DisclaimerComponent,\r\n ProviderRoleCheckboxComponent,\r\n SearchInputComponent,\r\n RegionalHelplineNumbersComponent,\r\n FocusedDirective,\r\n ScrollToTopComponent,\r\n ProviderCardComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n TooltipModule,\r\n FormsModule,\r\n ResultCardModule,\r\n DignityHealthComponentsModule,\r\n HttpClientJsonpModule,\r\n BadgesModule\r\n ],\r\n exports: [\r\n LegalCopyComponent,\r\n EmergencyCareComponent,\r\n ProviderSearchComponent,\r\n LocationSearchComponent,\r\n QuicklinksSearchComponent,\r\n SvgIconComponent,\r\n ProviderDetailsNavigationComponent,\r\n ExpandableListComponent,\r\n DisclaimerComponent,\r\n ProviderRoleCheckboxComponent,\r\n SearchInputComponent,\r\n RegionalHelplineNumbersComponent,\r\n TooltipModule,\r\n BadgesModule,\r\n FocusedDirective,\r\n DignityHealthComponentsModule,\r\n ResultCardModule,\r\n HttpClientJsonpModule,\r\n ScrollToTopComponent,\r\n ProviderCardComponent,\r\n GuidedFlowModule\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class SharedModule {}\r\n","<svg *ngIf='name === \"videocam\"' viewBox=\"0 0 23 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M13.4247 0H1.90868C0.854514 0 0 0.835938 0 1.86719V13.1328C0 14.1641 0.854514 15 1.90868 15H13.4247C14.4788 15 15.3333 14.1641 15.3333 13.1328V1.86719C15.3333 0.835938 14.4788 0 13.4247 0ZM20.9875 1.47266L16.6111 4.42578V10.5742L20.9875 13.5234C21.834 14.0938 23 13.5117 23 12.5156V2.48047C23 1.48828 21.838 0.902344 20.9875 1.47266Z\"\r\n />\r\n</svg>\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-svg-icon',\r\n templateUrl: './svg-icon.component.html',\r\n styleUrls: ['./svg-icon.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SvgIconComponent {\r\n // Add new icons by adding a new union of string literals. Ex: 'videocam' | 'checkbox' | 'up_arrow'\r\n // https://exploringjs.com/tackling-ts/ch_enum-alternatives.html#unions-of-string-literal-types\r\n @Input() name: 'videocam';\r\n}\r\n","<div class=\"cs-tooltip-container\" #tooltipContainer>\r\n <svg\r\n viewBox=\"0 0 20 20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n [attr.aria-label]=\"toolTipInfo\"\r\n tabindex=\"0\"\r\n (click)=\"showTooltip = !showTooltip; $event.stopPropagation()\"\r\n (keyup.enter)=\"showTooltip = !showTooltip; $event.stopPropagation()\"\r\n (blur)=\"onFocusLost($event)\"\r\n role=\"button\"\r\n aria-describedby=\"tooltip-content\"\r\n >\r\n <path\r\n d=\"M10 0C4.47754 0 0 4.47915 0 10C0 15.5241 4.47754 20 10 20C15.5225 20 20 15.5241 20 10C20 4.47915 15.5225 0 10 0ZM10 4.43548C10.9353 4.43548 11.6935 5.19371 11.6935 6.12903C11.6935 7.06435 10.9353 7.82258 10 7.82258C9.06468 7.82258 8.30645 7.06435 8.30645 6.12903C8.30645 5.19371 9.06468 4.43548 10 4.43548ZM12.2581 14.6774C12.2581 14.9446 12.0414 15.1613 11.7742 15.1613H8.22581C7.95859 15.1613 7.74194 14.9446 7.74194 14.6774V13.7097C7.74194 13.4425 7.95859 13.2258 8.22581 13.2258H8.70968V10.6452H8.22581C7.95859 10.6452 7.74194 10.4285 7.74194 10.1613V9.19355C7.74194 8.92633 7.95859 8.70968 8.22581 8.70968H10.8065C11.0737 8.70968 11.2903 8.92633 11.2903 9.19355V13.2258H11.7742C12.0414 13.2258 12.2581 13.4425 12.2581 13.7097V14.6774Z\"\r\n />\r\n </svg>\r\n <span\r\n [ngStyle]=\"{ bottom: bottom != null ? bottom : '15px', left: left != null ? left : '-20px' }\"\r\n class=\"cs-tooltip-content\"\r\n *ngIf=\"showTooltip\"\r\n (click)=\"$event.stopPropagation()\"\r\n role=\"tooltip\"\r\n aria-live=\"polite\"\r\n id=\"tooltip-content\"\r\n >\r\n <ng-content></ng-content>\r\n </span>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, ElementRef, HostListener, Input, ViewChild } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-tooltip',\r\n templateUrl: './tooltip.component.html',\r\n styleUrls: ['./tooltip.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class TooltipComponent {\r\n showTooltip: boolean;\r\n @Input() bottom;\r\n @Input() left;\r\n @Input() toolTipInfo = '';\r\n @ViewChild('tooltipContainer') tooltipContainer: ElementRef;\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n if (!this.tooltipContainer.nativeElement.contains(event.target)) {\r\n this.showTooltip = false;\r\n }\r\n } \r\n onFocusLost(event: any) {\r\n this.showTooltip = false;\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { TooltipComponent } from './tooltip.component';\r\n\r\n@NgModule({\r\n declarations: [TooltipComponent],\r\n imports: [CommonModule],\r\n exports: [TooltipComponent]\r\n})\r\nexport class TooltipModule {}\r\n","import { Provider } from '../models/provider';\r\nimport { Injectable } from '@angular/core';\r\nimport { ConfigurationService } from '../services/configuration.service';\r\nimport { ProviderVideo } from '../models/provider-video';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class HierarchySecurityService {\r\n constructor(private configurationService: ConfigurationService) {}\r\n\r\n public shouldShowVideos(provider: Provider): boolean {\r\n if (provider.videos.length <= 0) {\r\n return false;\r\n }\r\n let returnValue = true;\r\n provider.videos?.forEach((video: ProviderVideo) => {\r\n if(video.url.trim() === '') {\r\n returnValue = false;\r\n } else {\r\n returnValue = true;\r\n } \r\n });\r\n\r\n if (!returnValue) {\r\n return returnValue;\r\n }\r\n\r\n return !!this.getValue<boolean>(provider, 'showProviderVideo');\r\n }\r\n\r\n public shouldShowLogos(provider: Provider): boolean {\r\n if (\r\n !this.configurationService.getMedGroupCodes().find((p) => provider.medicalGroupIds?.includes(p.code))?.logoPathAEM ||\r\n !this.configurationService.getMedGroupCodes().find((p) => provider.medicalGroupIds?.includes(p.code))?.logoPathFAD\r\n ) {\r\n return false;\r\n }\r\n\r\n return !!this.getValue<boolean>(provider, 'showMedGroupLogo');\r\n }\r\n\r\n public shouldShowStarRatings(provider: Provider): boolean {\r\n const showRatings = !!this.getValue<boolean>(provider, 'providerRatings', 'showStarRatings');\r\n const useLiveMedgroups = !!this.getValue<boolean>(provider, 'providerRatings', 'useLiveMedGroups');\r\n const liveMedGroups = this.getValue<string[]>(provider, 'providerRatings', 'liveMedGroups');\r\n\r\n if (showRatings === false) {return false;}\r\n else if (showRatings === true && useLiveMedgroups === false) {return true;}\r\n else if (useLiveMedgroups && !liveMedGroups) {return false;}\r\n\r\n return liveMedGroups?.some((r) => provider.medicalGroupIds?.indexOf(r) >= 0);\r\n }\r\n\r\n public getRatingsFooterText(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsFooterText') ?? null;\r\n }\r\n\r\n public getRatingsFooterLinkText(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsFooterLinkText') ?? null;\r\n }\r\n\r\n public getRatingsFooterLink(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsFooterLink') ?? null;\r\n }\r\n\r\n public getRatingsBannerText(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsBannerText') ?? null;\r\n }\r\n\r\n public getRatingsBannerLinkText(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsBannerLinkText') ?? null;\r\n }\r\n\r\n public getRatingsBannerLink(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsBannerLink') ?? null;\r\n }\r\n\r\n public getRatingsTooltipText(provider: Provider): string {\r\n return this.getValue<string>(provider, 'providerRatings', 'ratingsTooltipText') ?? null;\r\n }\r\n\r\n public shouldShowStarRatingsBanner(provider: Provider): boolean {\r\n return !!this.getValue<boolean>(provider, 'providerRatings', 'showStarRatingsBanner');\r\n }\r\n\r\n public shouldShowRatingText(provider: Provider): boolean {\r\n return !!this.getValue<boolean>(provider, 'providerRatings', 'showRatingText');\r\n }\r\n \r\n public shouldShowProviderReviews(provider: Provider): boolean {\r\n return !!this.getValue<boolean>(provider, 'providerRatings', 'showProviderReviews');\r\n }\r\n\r\n public shouldShowReviewCount(provider: Provider): boolean {\r\n return !!this.getValue<boolean>(provider, 'providerRatings', 'showReviewCount');\r\n }\r\n\r\n private getValue<T>(provider: Provider, parentProperty: string, childProperty: string = null): T {\r\n const providerDivision = provider.divisionCodes?.[0];\r\n const providerMarket = provider.marketCodes?.[0];\r\n\r\n const tenantValue: T = this.getTenantValue<T>(parentProperty, childProperty);\r\n const divisionValue: T = this.getDivisionValue<T>(providerDivision, parentProperty, childProperty);\r\n const marketValue: T = this.getMarketValue<T>(providerDivision, providerMarket, parentProperty, childProperty);\r\n\r\n if (marketValue !== undefined) {\r\n return marketValue;\r\n }\r\n if (divisionValue !== undefined) {\r\n return divisionValue;\r\n }\r\n return tenantValue ? tenantValue : undefined;\r\n }\r\n\r\n private getTenantValue<T>(parentProperty: string, childProperty: string = null): T {\r\n const tenantConfig = this.configurationService.getTenantSection();\r\n\r\n if (parentProperty && childProperty) {\r\n return tenantConfig[parentProperty] ? tenantConfig[parentProperty][childProperty] : undefined;\r\n }\r\n\r\n return tenantConfig[parentProperty] ?? undefined;\r\n }\r\n\r\n private getDivisionValue<T>(providerDivision: string, parentProperty: string, childProperty: string = null): T {\r\n const divisionConfig = this.configurationService.getDivisions().find((d) => d.divisionCode === providerDivision);\r\n if (!divisionConfig) {\r\n return undefined;\r\n }\r\n\r\n if (parentProperty && childProperty) {\r\n return divisionConfig[parentProperty] ? divisionConfig[parentProperty][childProperty] : undefined;\r\n }\r\n\r\n return divisionConfig[parentProperty] ?? undefined;\r\n }\r\n\r\n private getMarketValue<T>(providerDivision: string, providerMarket: string, parentProperty: string, childProperty: string = null): T {\r\n const divisionConfig = this.configurationService.getDivisions().find((d) => d.divisionCode === providerDivision);\r\n if (!divisionConfig) {\r\n return undefined;\r\n }\r\n const marketConfig = divisionConfig.markets?.find((d) => d.marketCode === providerMarket);\r\n if (!marketConfig) {\r\n return undefined;\r\n }\r\n\r\n if (parentProperty && childProperty) {\r\n return marketConfig[parentProperty] ? marketConfig[parentProperty][childProperty] : undefined;\r\n }\r\n\r\n return marketConfig[parentProperty] ?? undefined;\r\n }\r\n}\r\n","export const ApiConstants = {\r\n providerDetailsApi: 'providers/',\r\n suggestionsBaseApiUrl: 'suggestions/',\r\n locationDetailsApi: 'geolocation',\r\n providerSearchApi: 'providers/search',\r\n searchWithoutInputApiUrl:\r\n '&page=1&distance=10&sortby=Default&include=ExtendedData,OnlineBookingSupport,NextAvailableTimes,AvailableTimes&maxAppointments=5&facets=all:0&searchMode=All',\r\n addPagesinUrl: 'page=',\r\n addDistanceinUrl: '&distance=',\r\n addSortbyinUrl: '&sortby=Default',\r\n addMaxAppointmentsinUrl: 'maxAppointments=5',\r\n addIncludeOptionsinUrl: '&include=ExtendedData,OnlineBookingSupport,NextAvailableTimes,AvailableTimes&maxAppointments=5',\r\n addIncludeOptionsinUrlForGuidedFlow: '&include=ExtendedData,OnlineBookingSupport,NextAvailableTimes,AvailableTimes',\r\n addFacetsinUrl: '&facets=all:0',\r\n addsearchModeinUrl: '&searchMode=All',\r\n addProviderRoleTypes: '&providerRoleTypes=Urgent Care|Hospital Based|Non-hospital Based',\r\n olsDepartmentId: 'olsdepartmentid',\r\n olsProviderId: 'olsproviderid',\r\n olsBlockIt:'blockit'\r\n};\r\n","export const LogoConstants = {\r\n default: '/assets/logos/dh_r_hrz_rgb_grd_pos 1.png',\r\n dhmg: '/assets/logos/dh_r_hrz_rgb_grd_pos.png',\r\n 'dignity generic': '/assets/logos/dh_r_hrz_rgb_grd_pos 1.png',\r\n 'dhmg arizona': '/assets/logos/dh_r_hrz_rgb_grd_pos_arizona.png',\r\n 'dhmg nevada': '/assets/logos/dh_r_hrz_rgb_grd_pos_nevada.png',\r\n fad: 'fad',\r\n mycareteam: 'mycareteam',\r\n chart: 'chart'\r\n};\r\n","import { NgModule } from '@angular/core';\r\nimport {\r\n ButtonModule,\r\n DropdownModule,\r\n LoadingSpinnerModule,\r\n ModalModule,\r\n SortDropdownModule,\r\n PaginationModule,\r\n StarRatingModule,\r\n TooltipModule\r\n} from '@dignity-health/ngx-components';\r\n\r\n@NgModule({\r\n imports: [\r\n ButtonModule,\r\n ModalModule,\r\n DropdownModule,\r\n SortDropdownModule,\r\n StarRatingModule,\r\n LoadingSpinnerModule,\r\n PaginationModule,\r\n TooltipModule\r\n ],\r\n exports: [\r\n ButtonModule,\r\n ModalModule,\r\n DropdownModule,\r\n SortDropdownModule,\r\n StarRatingModule,\r\n LoadingSpinnerModule,\r\n PaginationModule,\r\n TooltipModule\r\n ]\r\n})\r\nexport class DignityHealthComponentsModule {}\r\n","export class GlobalParams {\r\n public static isNeighborhoodSearch = false;\r\n}\r\n","export enum AvailabilitySelect {\r\n None = '',\r\n Today = 'Today',\r\n Next7Days = 'Next 7 days',\r\n Next14Days = 'Next 14 days',\r\n Next30Days = 'Next 30 days'\r\n}\r\n","export enum FadEventTypes {\r\n RouteChanged = 'CommonSpirit.FindADoctor.RouteChanged',\r\n SearchResultsLoaded = 'CommonSpirit.FindADoctor.SearchResultsLoaded',\r\n ProviderLoaded = 'CommonSpirit.FindADoctor.ProviderLoaded',\r\n NavigateToSchedulingOnCerner = 'CommonSpirit.FindADoctor.NavigateToSchedulingOnCerner',\r\n ViewVideoClicked = 'CommonSpirit.FindADoctor.SearchResults.ViewVideoClicked',\r\n PostOidcTokentoMyAppointment_Cerner='CommonSpirit.MyAppointment.PostToken',\r\n PostApptDetailstoMyAppointment_Cerner='CommonSpirit.MyAppointment.ApptDetails',\r\n PostFADSearchResults_Cerner='CommonSpirit.MyAppointment.RedirectToFAD'\r\n}\r\n","import * as uuid from 'uuid';\r\nimport { RouterEvent } from '@angular/router';\r\nimport { FadEventTypes } from './fad-event-types';\r\nimport { SelectedLocation } from './location';\r\n\r\nexport class FadEvent {\r\n /**\r\n * [REQUIRED] Identifies the event. Producers MUST ensure that `source` + `id`\r\n * is unique for each distinct event. If a duplicate event is re-sent (e.g. due\r\n * to a network error) it MAY have the same `id`. Consumers MAY assume that\r\n * Events with identical `source` and `id` are duplicates.\r\n * @required Non-empty string. Unique within producer.\r\n * @example An event counter maintained by the producer\r\n * @example A UUID\r\n */\r\n id: string;\r\n\r\n /**\r\n * [REQUIRED] The version of the CloudEvents specification which the event\r\n * uses. This enables the interpretation of the context. Compliant event\r\n * producers MUST use a value of `1.0` when referring to this version of the\r\n * specification.\r\n * @required MUST be a non-empty string.\r\n */\r\n specversion: string;\r\n\r\n /**\r\n * [REQUIRED] Identifies the context in which an event happened. Often this\r\n * will include information such as the type of the event source, the\r\n * organization publishing the event or the process that produced the event. The\r\n * exact syntax and semantics behind the data encoded in the URI is defined by\r\n * the event producer.\r\n * Producers MUST ensure that `source` + `id` is unique for each distinct event.\r\n * An application MAY assign a unique `source` to each distinct producer, which\r\n * makes it easy to produce unique IDs since no other producer will have the same\r\n * source. The application MAY use UUIDs, URNs, DNS authorities or an\r\n * application-specific scheme to create unique `source` identifiers.\r\n * A source MAY include more than one producer. In that case the producers MUST\r\n * collaborate to ensure that `source` + `id` is unique for each distinct event.\r\n * @required Non-empty URI-reference\r\n */\r\n // source: string;\r\n\r\n /**\r\n * [REQUIRED] This attribute contains a value describing the type of event\r\n * related to the originating occurrence. Often this attribute is used for\r\n * routing, observability, policy enforcement, etc. The format of this is\r\n * producer defined and might include information such as the version of the\r\n * `type` - see\r\n * [Versioning of Attributes in the Primer](primer.md#versioning-of-attributes)\r\n * for more information.\r\n * @required MUST be a non-empty string\r\n * @should SHOULD be prefixed with a reverse-DNS name. The prefixed domain dictates the\r\n * organization which defines the semantics of this event type.\r\n * @example com.github.pull.create\r\n * @example com.example.object.delete.v2\r\n */\r\n type: string;\r\n\r\n /**\r\n * [OPTIONAL] Content type of `data` value. This attribute enables `data` to\r\n * carry any type of content, whereby format and encoding might differ from that\r\n * of the chosen event format. For example, an event rendered using the\r\n * [JSON envelope](./json-format.md#3-envelope) format might carry an XML payload\r\n * in `data`, and the consumer is informed by this attribute being set to\r\n * \"application/xml\". The rules for how `data` content is rendered for different\r\n * `datacontenttype` values are defined in the event format specifications; for\r\n * example, the JSON event format defines the relationship in\r\n * [section 3.1](./json-format.md#31-handling-of-data).\r\n */\r\n // datacontenttype?: string;\r\n\r\n /**\r\n * [OPTIONAL] Identifies the schema that `data` adheres to. Incompatible\r\n * changes to the schema SHOULD be reflected by a different URI. See\r\n * [Versioning of Attributes in the Primer](primer.md#versioning-of-attributes)\r\n * for more information.\r\n * If present, MUST be a non-empty URI.\r\n */\r\n // dataschema?: string;\r\n\r\n /**\r\n * [OPTIONAL] This describes the subject of the event in the context of the\r\n * event producer (identified by `source`). In publish-subscribe scenarios, a\r\n * subscriber will typically subscribe to events emitted by a `source`, but the\r\n * `source` identifier alone might not be sufficient as a qualifier for any\r\n * specific event if the `source` context has internal sub-structure.\r\n *\r\n * Identifying the subject of the event in context metadata (opposed to only in\r\n * the `data` payload) is particularly helpful in generic subscription filtering\r\n * scenarios where middleware is unable to interpret the `data` content. In the\r\n * above example, the subscriber might only be interested in blobs with names\r\n * ending with '.jpg' or '.jpeg' and the `subject` attribute allows for\r\n * constructing a simple and efficient string-suffix filter for that subset of\r\n * events.\r\n *\r\n * If present, MUST be a non-empty string.\r\n * @example \"https://example.com/storage/tenant/container\"\r\n * @example \"mynewfile.jpg\"\r\n */\r\n // subject?: string;\r\n\r\n /**\r\n * [OPTIONAL] Timestamp of when the occurrence happened. If the time of the\r\n * occurrence cannot be determined then this attribute MAY be set to some other\r\n * time (such as the current time) by the CloudEvents producer, however all\r\n * producers for the same `source` MUST be consistent in this respect. In other\r\n * words, either they all use the actual time of the occurrence or they all use\r\n * the same algorithm to determine the value used.\r\n * @example \"2020-08-08T14:48:09.769Z\"\r\n */\r\n time?: string;\r\n\r\n /**\r\n * [OPTIONAL] The event payload. This specification does not place any restriction\r\n * on the type of this information. It is encoded into a media format which is\r\n * specified by the datacontenttype attribute (e.g. application/json), and adheres\r\n * to the dataschema format when those respective attributes are present.\r\n */\r\n data?: Record<string, unknown | string | number | boolean> | string | number | boolean | null | unknown;\r\n\r\n /**\r\n * [OPTIONAL] The event payload encoded as base64 data. This is used when the\r\n * data is in binary form.\r\n * @see https://github.com/cloudevents/spec/blob/v1.0/json-format.md#31-handling-of-data\r\n */\r\n // data_base64?: string;\r\n\r\n constructor(event) {\r\n // copy the incoming event so that we can delete properties as we go\r\n // everything left after we have deleted know properties becomes an extension\r\n const properties = { ...event };\r\n\r\n this.id = (properties.id as string) || uuid.v4();\r\n delete properties.id;\r\n\r\n this.time = properties.time || new Date().toISOString();\r\n delete properties.time;\r\n\r\n this.type = properties.type;\r\n delete properties.type;\r\n\r\n this.specversion = properties.specversion || '1.0';\r\n delete properties.specversion;\r\n\r\n this.data = properties.data;\r\n delete properties.data;\r\n }\r\n}\r\n\r\nexport function mapRouterEventToFadEvent(event: RouterEvent) {\r\n let url = event.url;\r\n\r\n // Strip query parameters\r\n if (url.indexOf('?') > -1) {\r\n url = url.substring(0, url.indexOf('?'));\r\n }\r\n\r\n // Strip anchors\r\n if (url.indexOf('#') > -1) {\r\n url = url.substring(0, url.indexOf('#'));\r\n }\r\n\r\n // Determine active page route\r\n let type = 'ProviderDetails';\r\n if (url === '/') {\r\n type = 'SearchLanding';\r\n } else if (url === '/find-doctor-widget') {\r\n type = 'SearchWidget';\r\n } else if (url === '/covid-vaccine/launch') {\r\n type = 'Other';\r\n } else if (url === '/fad-lite') {\r\n type = 'SearchWidget';\r\n } else if (url.length === 2 || (url.length >= 3 && url[2] === '/')) {\r\n type = 'SearchResults';\r\n }\r\n\r\n return new FadEvent({\r\n type: FadEventTypes.RouteChanged,\r\n data: {\r\n url: event.url,\r\n pageType: type\r\n }\r\n });\r\n}\r\n\r\nexport function mapSearchCriteriaToFadEvent(keywords: string, location: SelectedLocation, medGroup: string | undefined) {\r\n return new FadEvent({\r\n type: FadEventTypes.SearchResultsLoaded,\r\n data: {\r\n keywords: keywords ? keywords : undefined,\r\n location: location\r\n ? {\r\n neighborhood: location.neighborhood ? location.neighborhood : undefined,\r\n city: location.city ? location.city : undefined,\r\n state: location.state ? location.state : undefined,\r\n zip: location.zip ? location.zip : undefined\r\n }\r\n : undefined,\r\n medGroup: medGroup ? medGroup : undefined\r\n }\r\n });\r\n}\r\n","import { AvailabilitySelect } from './availability-select.enum';\r\nimport { MedGroup } from './medgroup';\r\nimport { ConfigurationService } from '../services/configuration.service';\r\nimport { SelectedLocation } from './location';\r\nimport { MedgroupDictionary } from './configuration';\r\n\r\nexport interface MedicalGroup {\r\n label: string;\r\n value: string;\r\n url: string;\r\n enableProviderRoleTypes?: boolean;\r\n}\r\n\r\nexport interface FacetSummary {\r\n name: string;\r\n count: number;\r\n selected: boolean;\r\n code?: string;\r\n}\r\n\r\nexport class FiltersModel {\r\n constructor(configurationService: ConfigurationService) {\r\n // Currently, we are storing the 0/20/40/60/80/100 in the FiltersModel which corresponds to the values in the slider control.\r\n this.providerSearchRadius = this.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(\r\n configurationService.getDefaultSearchDistance()\r\n );\r\n this.medicalGroupList = FiltersModelPartialHelper.getMedGroups(configurationService.getMedGroupCodes());\r\n this.medicalGroupList.sort((prev, next) => prev.label.localeCompare(next.label));\r\n this.medicalGroupDict = configurationService.getMedGroupCodes();\r\n this.selectedMedicalGroup = [];\r\n this.providerMedicalGroup = [];\r\n }\r\n\r\n isMappingNeeded(): boolean {\r\n return this.medicalGroupDict.filter((s: MedGroup) => (\r\n s.code !== s.title\r\n )).length > 0;\r\n }\r\n\r\n onlineSchedulingToggle = false;\r\n onlineSchedulingApplied = false;\r\n onlineSchedulingProvidersCount = 0;\r\n\r\n onlineSchedulingAllVisitToggle = false;\r\n onlineSchedulingAllVisitApplied = false;\r\n onlineSchedulingAllVisitProvidersCount = 0;\r\n\r\n videoVisitsToggle = false;\r\n videoVisitsApplied = false;\r\n videoVisitsProvidersCount = 0;\r\n\r\n newPatientsToggle = false;\r\n newPatientsApplied = false;\r\n newPatientsProvidersCount = 0;\r\n\r\n availabilityTitle = 'Availability';\r\n availabilitySelect: AvailabilitySelect = AvailabilitySelect.None;\r\n providerAvailability: AvailabilitySelect = AvailabilitySelect.None;\r\n todayCount = 0;\r\n next7Count = 0;\r\n next14Count = 0;\r\n next30Count = 0;\r\n\r\n specialtyFilterText = 'Specialty';\r\n selectedSpecialties: FacetSummary[] = [];\r\n providerSpecialties: FacetSummary[] = [];\r\n availableSpecialties: FacetSummary[] = [];\r\n\r\n hospitalFilterText = 'Hospital Affiliation';\r\n selectedHospitals: FacetSummary[] = [];\r\n providerHospitals: FacetSummary[] = [];\r\n availableHospitals: FacetSummary[] = [];\r\n\r\n medicalGroupTitle = 'Medical group';\r\n providerMedicalGroup: FacetSummary[] = [];\r\n selectedMedicalGroup: FacetSummary[] = [];\r\n medicalGroupListItems: MedicalGroup[] = [];\r\n medicalGroupList: MedicalGroup[] = [];\r\n medicalGroupDict: MedgroupDictionary[] = [];\r\n\r\n genderSelect = '';\r\n providerGender = '';\r\n femaleCount = 0;\r\n maleCount = 0;\r\n nonbinaryCount = 0;\r\n otherCount = 0;\r\n locationName = '';\r\n\r\n insuranceFilterText = 'Insurances accepted';\r\n selectedInsurances: FacetSummary[] = [];\r\n providerInsurances: FacetSummary[] = [];\r\n availableInsurances: FacetSummary[] = [];\r\n\r\n selectedLanguages: FacetSummary[] = [];\r\n providerLanguages: FacetSummary[] = [];\r\n availableLanguages: FacetSummary[] = [];\r\n\r\n searchRadius: number;\r\n providerSearchRadius: number;\r\n\r\n pageNumber: number;\r\n includeProviderRoleType?: boolean;\r\n\r\n searchDone = false;\r\n sortBy: string;\r\n sortByNumber: number;\r\n}\r\n\r\nexport class FiltersModelPartialHelper {\r\n static radiusValueMapping = [\r\n {\r\n key: 0,\r\n value: 1\r\n },\r\n {\r\n key: 20,\r\n value: 5\r\n },\r\n {\r\n key: 40,\r\n value: 10\r\n },\r\n {\r\n key: 60,\r\n value: 25\r\n },\r\n {\r\n key: 80,\r\n value: 50\r\n },\r\n {\r\n key: 100,\r\n value: 100\r\n }\r\n ];\r\n public static hasRadiusKeyForDistance(distance: number): boolean {\r\n return FiltersModelPartialHelper.radiusValueMapping.some((m) => m.value === distance);\r\n }\r\n\r\n public static getRadiusKeyForDistance(distance: number) {\r\n return FiltersModelPartialHelper.radiusValueMapping.find((m) => m.value === distance)?.key;\r\n }\r\n\r\n public static setRadiusKeyForDistance(filtersModel: Partial<FiltersModel>, distance: number) {\r\n filtersModel.searchRadius = filtersModel.providerSearchRadius = this.getRadiusKeyForDistance(distance);\r\n }\r\n\r\n public static getDistanceForProviderSearchRadiusKey(filtersModel: Partial<FiltersModel>): number | undefined {\r\n return FiltersModelPartialHelper.radiusValueMapping.find((m) => m.key === filtersModel.providerSearchRadius)?.value;\r\n }\r\n\r\n public static getDistanceForSearchRadiusKey(filtersModel: Partial<FiltersModel>): number | undefined {\r\n return FiltersModelPartialHelper.radiusValueMapping.find((m) => m.key === filtersModel.searchRadius)?.value;\r\n }\r\n\r\n public static isDesktopFiltersSelected(\r\n filtersModel: Partial<FiltersModel>,\r\n selectedLocation: SelectedLocation,\r\n defaultSearchDistance: number,\r\n defaultSearchDistanceWithMedGroup: number,\r\n showSearchRadiusFilter: boolean,\r\n showInsuranceFilter: boolean\r\n ) {\r\n return (\r\n filtersModel.providerGender !== '' ||\r\n (showInsuranceFilter && filtersModel.providerInsurances && filtersModel.providerInsurances.length > 0) ||\r\n (filtersModel.providerLanguages && filtersModel.providerLanguages.length > 0) ||\r\n (showSearchRadiusFilter &&\r\n selectedLocation &&\r\n filtersModel.providerSearchRadius !== this.getRadiusKeyForDistance(defaultSearchDistance) &&\r\n (filtersModel.providerMedicalGroup.length === 0)) ||\r\n (showSearchRadiusFilter &&\r\n selectedLocation &&\r\n filtersModel.providerSearchRadius !== this.getRadiusKeyForDistance(defaultSearchDistanceWithMedGroup) &&\r\n filtersModel.providerMedicalGroup.length > 0)\r\n );\r\n }\r\n\r\n public static isMoreFiltersSelected(\r\n filtersModel: Partial<FiltersModel>,\r\n selectedLocation: SelectedLocation,\r\n defaultSearchDistance: number,\r\n defaultSearchDistanceWithMedGroup: number,\r\n showSearchRadiusFilter: boolean,\r\n showInsuranceFilter: boolean,\r\n showMedicalGroupFilter: boolean\r\n ) {\r\n return (\r\n filtersModel.genderSelect !== '' ||\r\n (showInsuranceFilter && filtersModel.selectedInsurances && filtersModel.selectedInsurances.length > 0) ||\r\n (showMedicalGroupFilter && filtersModel.selectedMedicalGroup && filtersModel.selectedMedicalGroup.length > 0) ||\r\n (filtersModel.selectedLanguages && filtersModel.selectedLanguages.length > 0) ||\r\n (showSearchRadiusFilter &&\r\n selectedLocation &&\r\n filtersModel.searchRadius !== FiltersModelPartialHelper.getRadiusKeyForDistance(defaultSearchDistance) &&\r\n (filtersModel.selectedMedicalGroup.length === 0)) ||\r\n (showSearchRadiusFilter &&\r\n selectedLocation &&\r\n filtersModel.searchRadius !== FiltersModelPartialHelper.getRadiusKeyForDistance(defaultSearchDistanceWithMedGroup) &&\r\n filtersModel.selectedMedicalGroup.length > 0)\r\n );\r\n }\r\n\r\n public static isMoreFilters(\r\n filtersModel: Partial<FiltersModel>,\r\n selectedLocation: SelectedLocation,\r\n defaultSearchDistance: number,\r\n showSearchRadiusFilter: boolean,\r\n showInsuranceFilter: boolean\r\n ){\r\n return(\r\n filtersModel.genderSelect !== '' ||\r\n (showInsuranceFilter && filtersModel.selectedInsurances && filtersModel.selectedInsurances.length > 0) ||\r\n (filtersModel.selectedLanguages && filtersModel.selectedLanguages.length > 0) ||\r\n (showSearchRadiusFilter &&\r\n selectedLocation &&\r\n filtersModel.searchRadius !== FiltersModelPartialHelper.getRadiusKeyForDistance(defaultSearchDistance))\r\n );\r\n }\r\n\r\n public static toClearFilters(filtersModel: Partial<FiltersModel>, isEvent: boolean, searchDistance: number = null, isMobileView = false, isDignityHealthDivision = false) {\r\n filtersModel.genderSelect = '';\r\n filtersModel.selectedInsurances = !isDignityHealthDivision?[]:filtersModel.selectedInsurances;\r\n filtersModel.selectedLanguages = [];\r\n filtersModel.selectedMedicalGroup = isDignityHealthDivision?[]:filtersModel.selectedMedicalGroup;\r\n if (isMobileView) {\r\n filtersModel.selectedHospitals = [];\r\n filtersModel.selectedMedicalGroup = [];\r\n }\r\n\r\n if (isEvent) {\r\n filtersModel.searchRadius = searchDistance;\r\n\r\n filtersModel.providerGender = filtersModel.genderSelect;\r\n filtersModel.providerInsurances = [...filtersModel.selectedInsurances];\r\n filtersModel.providerLanguages = [...filtersModel.selectedLanguages];\r\n filtersModel.providerMedicalGroup = [...filtersModel.selectedMedicalGroup];\r\n if (isMobileView) {\r\n filtersModel.providerHospitals = [...filtersModel.selectedHospitals];\r\n filtersModel.providerMedicalGroup = [...filtersModel.selectedMedicalGroup];\r\n }\r\n }\r\n }\r\n\r\n public static SpecialityToggle(specialty: any, filtersModel: Partial<FiltersModel>) {\r\n\r\n if (!filtersModel.selectedSpecialties.map((n) => n.name).includes(specialty.name)) {\r\n filtersModel.selectedSpecialties.push(specialty);\r\n } else {\r\n const tempSpecialties = filtersModel.selectedSpecialties.filter((s) => s.name === specialty.name)[0];\r\n filtersModel.selectedSpecialties.splice(filtersModel.selectedSpecialties.indexOf(tempSpecialties), 1);\r\n }\r\n }\r\n\r\n public static MedgroupToggle(medgroup: any, filtersModel: Partial<FiltersModel>) {\r\n if (!filtersModel.selectedMedicalGroup.map((n) => n.name).includes(medgroup.label)) {\r\n filtersModel.selectedMedicalGroup.push({ name: medgroup.label, count: 0, selected: true });\r\n } else {\r\n const tempMedgroup = filtersModel.selectedMedicalGroup.filter((s) => s.name === medgroup.label)[0];\r\n filtersModel.selectedMedicalGroup.splice(filtersModel.selectedMedicalGroup.indexOf(tempMedgroup), 1);\r\n }\r\n\r\n if (filtersModel.providerMedicalGroup.length === 0) {\r\n filtersModel.medicalGroupTitle = 'Medical group';\r\n } else if (filtersModel.providerMedicalGroup.length === 1) {\r\n filtersModel.medicalGroupTitle = filtersModel.providerMedicalGroup[0].name;\r\n } else {\r\n filtersModel.medicalGroupTitle = filtersModel.providerMedicalGroup.length.toString() + ' Medical groups';\r\n }\r\n }\r\n\r\n public static HospitalToggle(hospital: any, filtersModel: Partial<FiltersModel>) {\r\n if (!filtersModel.selectedHospitals.map((n) => n.name).includes(hospital.name)) {\r\n filtersModel.selectedHospitals.push(hospital);\r\n } else {\r\n const tempHospital = filtersModel.selectedHospitals.filter((s) => s.name === hospital.name)[0];\r\n filtersModel.selectedHospitals.splice(filtersModel.selectedHospitals.indexOf(tempHospital), 1);\r\n }\r\n }\r\n\r\n public static genderSelect(filtersModel: Partial<FiltersModel>, gender: string) {\r\n if (filtersModel.genderSelect === gender) {\r\n filtersModel.genderSelect = '';\r\n } else {\r\n filtersModel.genderSelect = gender;\r\n }\r\n }\r\n\r\n public static getMedGroups(medGroup: MedgroupDictionary[]) {\r\n return medGroup.map((group: MedGroup) => ({\r\n label: group.title,\r\n value: group.code,\r\n url: group.url,\r\n enableProviderRoleTypes: group.enableProviderRoleTypes ?? false\r\n }));\r\n }\r\n\r\n public static InsuranceToggle(insurance: any, filtersModel: Partial<FiltersModel>) {\r\n if (!filtersModel.selectedInsurances.map((n) => n.name).includes(insurance.name)) {\r\n filtersModel.selectedInsurances.push(insurance);\r\n } else {\r\n const tempInsurance = filtersModel.selectedInsurances.filter((s) => s.name === insurance.name)[0];\r\n filtersModel.selectedInsurances.splice(filtersModel.selectedInsurances.indexOf(tempInsurance), 1);\r\n }\r\n }\r\n public static LanguageToggle(language: any, filtersModel: Partial<FiltersModel>) {\r\n if (!filtersModel.selectedLanguages.map((n) => n.name).includes(language.name)) {\r\n filtersModel.selectedLanguages.push(language);\r\n } else {\r\n const tempLanguage = filtersModel.selectedLanguages.filter((s) => s.name === language.name)[0];\r\n filtersModel.selectedLanguages.splice(filtersModel.selectedLanguages.indexOf(tempLanguage), 1);\r\n }\r\n }\r\n\r\n public static clearDesktopFilters(filtersModel: Partial<FiltersModel>, searchDistance: number = null) {\r\n filtersModel.genderSelect = '';\r\n filtersModel.locationName = '';\r\n filtersModel.selectedInsurances = [];\r\n filtersModel.selectedLanguages = [];\r\n filtersModel.searchRadius = searchDistance;\r\n filtersModel.providerGender = filtersModel.genderSelect;\r\n filtersModel.providerInsurances = [...filtersModel.selectedInsurances];\r\n filtersModel.providerLanguages = [...filtersModel.selectedLanguages];\r\n filtersModel.onlineSchedulingApplied = false;\r\n filtersModel.videoVisitsApplied = false;\r\n filtersModel.newPatientsApplied = false;\r\n filtersModel.providerMedicalGroup = [];\r\n filtersModel.providerSpecialties = [];\r\n filtersModel.selectedSpecialties = [];\r\n filtersModel.specialtyFilterText = 'Specialty';\r\n filtersModel.providerAvailability = filtersModel.availabilitySelect = AvailabilitySelect.None;\r\n filtersModel.availabilityTitle = 'Availability';\r\n filtersModel.selectedHospitals = [];\r\n filtersModel.providerHospitals=[];\r\n filtersModel.insuranceFilterText = 'Insurances accepted';\r\n filtersModel.onlineSchedulingAllVisitApplied = false;\r\n }\r\n\r\n public static setSortByValue(filtersModel: Partial<FiltersModel>, newSortByLabel: string): void {\r\n if (filtersModel.sortBy === newSortByLabel) {\r\n filtersModel.sortBy = '';\r\n } else {\r\n filtersModel.sortBy = newSortByLabel;\r\n }\r\n }\r\n\r\n}\r\n","export interface SelectedLocation extends LocationCookieData {\r\n address: string;\r\n googlePlaceId: string;\r\n isLocationValid: boolean;\r\n}\r\n\r\nexport interface LocationByIpResult {\r\n ip: string;\r\n location: LocationByIpLocationData;\r\n}\r\n\r\nexport interface LocationByIpLocationData extends LocationCookieData {\r\n ip: string;\r\n}\r\n\r\nexport interface LocationCookieData {\r\n neighborhood: string;\r\n city: string;\r\n latitude: number;\r\n longitude: number;\r\n name: string;\r\n state: string;\r\n zip: string;\r\n}\r\n\r\nexport class LocationConverter {\r\n public static convertTo(locationCookieData: LocationCookieData): SelectedLocation {\r\n if (!locationCookieData || (!locationCookieData.city && !locationCookieData.state)) {\r\n return null;\r\n }\r\n return {\r\n name: locationCookieData.name,\r\n neighborhood: locationCookieData.neighborhood,\r\n city: locationCookieData.city,\r\n state: locationCookieData.state,\r\n latitude: locationCookieData.latitude,\r\n longitude: locationCookieData.longitude,\r\n zip: locationCookieData.zip,\r\n isLocationValid: true\r\n } as SelectedLocation;\r\n }\r\n}\r\n\r\nexport interface LocationSuggestionResult {\r\n locationName: string;\r\n googlePlaceId: string;\r\n sessionToken: string;\r\n}\r\n\r\nexport interface LocationDetailResult {\r\n neighborhood: string;\r\n city: string;\r\n country: string;\r\n latitude: number;\r\n longitude: number;\r\n name: string;\r\n sessionToken: string;\r\n state: string;\r\n zip: string;\r\n}\r\n","import { OnlineBookingAvailability } from './online-booking-availability';\r\nimport { ProviderImage } from './provider-image';\r\nimport { ProviderOffice } from './provider-office';\r\nimport { Membership } from './membership';\r\nimport { OfficeAddress } from './office-address';\r\nimport { MedGroup } from './medgroup';\r\nimport { ProviderVideo } from './provider-video';\r\nimport { LogoDetails, MedgroupDictionary } from './configuration';\r\nimport { Banner } from './banner';\r\nimport { ProviderRating } from './provider-rating';\r\nimport { DynamicFilterContentDetails } from './DynamicFilterContentDetails';\r\nimport * as SEOFocusedList from '../SEOFocusList/seo-focus-specialties.json';\r\nimport { ExternalSystems } from './externalSystems';\r\n\r\nexport interface ProviderSuggestionResponse {\r\n items: ProviderSuggestion[];\r\n providerCount: number;\r\n}\r\n\r\nexport interface ProviderSuggestionV2Response extends Omit<ProviderSuggestionResponse, 'items'> {\r\n items: ProviderV2Suggestion[];\r\n}\r\n\r\nexport interface ProviderSuggestion {\r\n text: string;\r\n providers: Provider[];\r\n}\r\n\r\nexport interface ProviderV2Suggestion extends Omit<ProviderSuggestion, 'text'> {\r\n text: ProviderTextV2[];\r\n}\r\n\r\nexport interface KeywordSuggestionResponse {\r\n items: KeywordSuggestion[];\r\n}\r\n\r\nexport interface KeywordSuggestion {\r\n text: string;\r\n textAndQuery: string;\r\n}\r\n\r\nexport interface Provider {\r\n id: string;\r\n npi: number;\r\n practitionerId?: string;\r\n displayLastName?: string;\r\n firstName?: string;\r\n middleName?: string;\r\n lastName?: string;\r\n displayFullName?: string;\r\n gender?: string;\r\n onlineBookingAvailability?: OnlineBookingAvailability[];\r\n recordNumber?: number;\r\n images?: ProviderImage[];\r\n offices?: ProviderOffice[];\r\n primarySpecialty?: string;\r\n specialties?: string[];\r\n languages?: string[];\r\n procedures?: string[];\r\n conditions?: string[];\r\n insuranceCarriers?: string[];\r\n insurancePlans?: string[];\r\n acceptsNewPatients?: boolean;\r\n medicalGroupNames?: string[];\r\n medicalGroupIds?: string[];\r\n yearsOfExperience?: number;\r\n hasReviews?: boolean;\r\n acceptsVideoCalls?: boolean;\r\n isBookOnline?: boolean;\r\n practiceNames?: string[];\r\n hospitalNames?: string[];\r\n officeNames?: string[];\r\n sourceSystem?: string;\r\n sourceSystemId?: string;\r\n providerUpdateTime?: Date;\r\n availabilityUpdateTime?: Date;\r\n searchScore?: number;\r\n providerType?: string;\r\n serviceLines?: string[];\r\n serviceNames?: string[];\r\n philosophy?: string;\r\n inMyOwnWords?: string;\r\n degree?: string;\r\n medicalSchools?: string[];\r\n residencies?: string[];\r\n fellowships?: string[];\r\n internships?: string[];\r\n practicums?: string[];\r\n certifications?: string[];\r\n awards?: string[];\r\n memberships?: Membership[];\r\n onlineBookingOfficeId?: string;\r\n providerURL?: string;\r\n firstNetworkProvider?: boolean;\r\n videos?: ProviderVideo[];\r\n divisionCodes?: string[];\r\n marketCodes?: string[];\r\n rating?: ProviderRating;\r\n providerSchedulingId?: string;\r\n personalInfo?: string;\r\n ehrCode?: string;\r\n roleType?: string;\r\n providerIdType?: string;\r\n patientAgeGroups?: string;\r\n education?: string[];\r\n externalSystems?: ExternalSystems[];\r\n loadingRating?: boolean;\r\n}\r\n\r\nexport interface ProviderTextV2 {\r\n specialty: string;\r\n subSpecialty: string;\r\n id: number;\r\n domainSpecialtyId: number;\r\n specialtyFullName: string;\r\n abbreviation: string;\r\n subSpecialtyFullName: string;\r\n isPrimary: boolean;\r\n createdDate: Date;\r\n modifiedDate: Date;\r\n externalCode: string;\r\n specialtyGroups: [];\r\n clinicalTerms: [];\r\n identifiers: [];\r\n}\r\n\r\nexport class ProviderInterfaceHelper {\r\n static getProviderOfficesSortedByDistanceFromSearch(provider: Provider): OfficeAddress[] {\r\n const providerOffices = ProviderInterfaceHelper.getProviderOffices(provider);\r\n\r\n providerOffices.sort((x: OfficeAddress, y: OfficeAddress) => x.distanceMilesFromSearch < y.distanceMilesFromSearch ? -1 : 1);\r\n\r\n return providerOffices;\r\n }\r\n\r\n static getProviderOfficesSortedByRank(provider: Provider): OfficeAddress[] {\r\n const officeAddresses = this.getProviderOffices(provider);\r\n officeAddresses.sort((a: OfficeAddress, b: OfficeAddress) => a.rank - b.rank);\r\n return officeAddresses;\r\n }\r\n\r\n static getProviderOffices(provider: Provider): OfficeAddress[] {\r\n const providerOffices: OfficeAddress[] = [];\r\n\r\n provider.offices?.forEach((office: ProviderOffice) => {\r\n office.addresses.forEach((a: OfficeAddress) => {\r\n if (\r\n !providerOffices.some(\r\n (o) => o.longitude === a.longitude && o.latitude === a.latitude && o.address.toLowerCase() === a.address.toLowerCase()\r\n )\r\n ) {\r\n const address: OfficeAddress = { ...a };\r\n address.name = a?.name ?? office.name;\r\n address.id = office?.id ?? office.id;\r\n providerOffices.push(address);\r\n }\r\n });\r\n });\r\n\r\n return providerOffices;\r\n }\r\n\r\n static hasProviderOfficePhone(provider: Provider): boolean {\r\n return !!ProviderInterfaceHelper.getProviderOfficesSortedByDistanceFromSearch(provider)[0]?.phones;\r\n }\r\n\r\n static ProviderTokenHandler(provider: Provider, getToKnowContent: string): string {\r\n return getToKnowContent.replace(/\\{(providerDisplayFullNamePlaceHolder)\\}/g, provider.displayFullName.toString());\r\n }\r\n\r\n static MedGroupTokenHandler(medGroup: MedGroup, getToKnowContent: string): string {\r\n getToKnowContent = getToKnowContent\r\n .replace(/\\{(medGroupUrlPlaceHolder)\\}/g, medGroup.url)\r\n .replace(/\\{(medGroupTitlePlaceHolder)\\}/g, medGroup.title);\r\n return getToKnowContent;\r\n }\r\n\r\n static MedGroupLinkTokenHandler(banner: Banner): Banner {\r\n banner.content = banner?.content\r\n ?.replace(/\\{(bannerMedicalGroupLinkPlaceholder)\\}/g, banner?.medicalGroupLink)\r\n .replace(/\\{(bannerMedicalGroupNamePlaceholder)\\}/g, banner?.medicalGroupLinkName);\r\n return banner;\r\n }\r\n\r\n static BannerImageTokenHandler(logoPath: string, banner: Banner): Banner {\r\n banner.content = banner?.content?.replace(/\\{(bannerImagePlaceHolder)\\}/g, logoPath);\r\n return banner;\r\n }\r\n\r\n static getProviderLogosAEM(provider: Provider, medGroupDictionary: MedgroupDictionary[]): string[] {\r\n const distinctLogoPath =\r\n provider.medicalGroupIds\r\n ?.map((medId) => medGroupDictionary.find((mg) => mg.code === medId)?.logoPathAEM?.trim())\r\n .filter((url) => !!url) ?? [];\r\n\r\n return distinctLogoPath.filter((n, i) => distinctLogoPath.indexOf(n) === i);\r\n }\r\n\r\n static getProviderLogoDetailsAEM(provider: Provider, medGroupDictionary: MedgroupDictionary[]): LogoDetails[] {\r\n const logoDetailsList: LogoDetails[] = [];\r\n const distinctLogoPath =\r\n provider.medicalGroupIds\r\n ?.map((medId) => medGroupDictionary.find((mg) => mg.code === medId));\r\n \r\n const unique = [...new Map(distinctLogoPath.map((m) => [m.logoPathAEM, m])).values()]; \r\n \r\n for(const logo of unique) {\r\n if((logo?.logoPathAEM != null && logo?.logoPathAEM.trim() != '')) {\r\n logoDetailsList.push({ altName: logo?.logoDescription, url: logo?.logoPathAEM });\r\n }\r\n } \r\n return logoDetailsList;\r\n }\r\n\r\n static getProviderLogosFAD(provider: Provider, medGroupDictionary: MedgroupDictionary[]): string[] {\r\n const distinctLogoPath =\r\n provider.medicalGroupIds\r\n ?.map((medId) => medGroupDictionary.find((mg) => mg.code === medId)?.logoPathFAD?.trim())\r\n .filter((url) => !!url) ?? [];\r\n\r\n return distinctLogoPath.filter((n, i) => distinctLogoPath.indexOf(n) === i);\r\n }\r\n\r\n static getProviderLogoDetailsFAD(provider: Provider, medGroupDictionary: MedgroupDictionary[]): LogoDetails[] {\r\n const logoDetailsList: LogoDetails[] = [];\r\n const distinctLogoPath =\r\n provider.medicalGroupIds\r\n ?.map((medId) => medGroupDictionary.find((mg) => mg.code === medId));\r\n \r\n const unique = [...new Map(distinctLogoPath.map((m) => [m.logoPathFAD, m])).values()]; \r\n for(const logo of unique) {\r\n if((logo?.logoPathFAD != null && logo?.logoPathFAD.trim() != '')) {\r\n logoDetailsList.push({ altName: logo?.logoDescription, url: logo?.logoPathFAD });\r\n }\r\n } \r\n return logoDetailsList;\r\n }\r\n\r\n static removeProviderNamePrefix(firstName?: string, lastName?: string, degree?: string): string {\r\n let degreeFormatted = '';\r\n if (degree) {\r\n degreeFormatted = `, ${degree}`;\r\n }\r\n return `${firstName} ${lastName}${degreeFormatted}`;\r\n }\r\n\r\n static getProviderSpecialities(provider: Provider): string[] {\r\n const providerSpecialities = [];\r\n\r\n if (provider.specialties.length > 0) {\r\n provider.specialties.forEach((value: string) => {\r\n providerSpecialities.push(value);\r\n });\r\n } else {\r\n providerSpecialities.push(provider.primarySpecialty);\r\n }\r\n\r\n return providerSpecialities;\r\n }\r\n\r\n static formatProviderDisplayFullName(provider: Provider): string {\r\n // Formatting displayFullName\r\n return provider.degree\r\n ? `${provider.firstName} ${provider.lastName}, ${provider.degree}`\r\n : `${provider.firstName} ${provider.lastName}`;\r\n }\r\n\r\n static dynamicContentLinkTokenHandler(dynamicFilterContentDetails: DynamicFilterContentDetails): DynamicFilterContentDetails {\r\n dynamicFilterContentDetails.paragraph = dynamicFilterContentDetails?.paragraph?.replace(\r\n /\\{(learnMoreLinkPlaceholder)\\}/g,\r\n dynamicFilterContentDetails?.learnMoreLink ?? ''\r\n );\r\n\r\n return dynamicFilterContentDetails;\r\n }\r\n\r\n static getProviderTopSpecialities(provider: Provider): string[] {\r\n const providerSpecialities: any = [];\r\n providerSpecialities.push(provider.primarySpecialty);\r\n if (provider.specialties.length > 1) {\r\n const listSpecialties = (SEOFocusedList as any).default;\r\n const filteredSpecialities =\r\n listSpecialties['specialties'].length > 0\r\n ? provider.specialties.filter((x) => listSpecialties['specialties'].indexOf(x) > -1 && x !== provider.primarySpecialty)\r\n : [];\r\n if (filteredSpecialities.length > 0) {\r\n providerSpecialities.push(filteredSpecialities[0]);\r\n } else {\r\n providerSpecialities.push(provider.specialties.filter((x) => x !== provider.primarySpecialty)[0]);\r\n }\r\n }\r\n return providerSpecialities;\r\n }\r\n\r\n static getProviderNonSEOSpecialities(provider: Provider, specialities: string[]): string[] {\r\n const nonSEOSpecialities: any = [];\r\n if (provider.specialties.length > 1 && specialities.length > 1) {\r\n nonSEOSpecialities.push(\r\n provider.specialties.filter(function(e) {\r\n return this.indexOf(e) < 0;\r\n }, specialities)\r\n );\r\n }\r\n return nonSEOSpecialities[0];\r\n }\r\n}\r\n","export enum SessionObjectNames {\r\n SingleSpeciality = 'singleSpecialty',\r\n LocationSessionId = 'location-sessionId',\r\n IncludeProviderRoleTypes = 'includeProviderRoleTypes',\r\n SelectedMedicalGroup = 'selectedMedicalGroup',\r\n PreviousSelectedMediGrpPrvdRole = 'PreviousSelectedMediGrpPrvdRole',\r\n MedGroupQueryParam = 'medGroupQueryParam',\r\n ManualSelection = 'manualSelection',\r\n SelectedMedGroupFiltersModel = 'SelectedMedGroupFiltersModel',\r\n SingleSpecialityText = 'singleSpecialityText',\r\n SearchFrom = 'searchFrom',\r\n SingleInsurancesText = 'singleInsurancesText'\r\n}\r\n\r\nexport enum QueryParamNames {\r\n Specialties = 'specialties',\r\n Gender = 'gender',\r\n Languages = 'languages',\r\n BookOnline = 'bookonline',\r\n AcceptingNew = 'acceptingnew',\r\n VideoVisits = 'videovisits',\r\n Distance = 'distance',\r\n AllVisits = 'allVisits',\r\n Insurances = 'insurances',\r\n Affiliations = 'affiliations',\r\n}\r\n","<div class=\"search-box-module our-doctors\">\r\n <div class=\"search-box-heading\" *ngIf=\"hideHeaderForVMFHAEMMobileView\">\r\n <h1 class=\"heading-text\">{{ landingPageHeader }}</h1>\r\n </div>\r\n <div>\r\n <cs-legal-copy\r\n *ngIf=\"showLegalCopy\"\r\n [legalCopy]=\"legalCopy\"\r\n [legalCopyToolTip]=\"legalCopyToolTip\"\r\n [legalCopyToolTipInfo]=\"legalCopyToolTipInfo\"\r\n ></cs-legal-copy>\r\n <cs-fad-lite-search-input></cs-fad-lite-search-input>\r\n <cs-emergency-care\r\n *ngIf=\"showEmergencyCare || showEmergencyCopy\"\r\n [showEmergencyLinkContent]=\"showEmergencyCare\"\r\n [showEmergencyCopy]=\"showEmergencyCopy\"\r\n [emergencyCareLinkContent]=\"emergencyCareLinkContent\"\r\n [emergencyCopy]=\"emergencyCopy\"\r\n [emergencyNumber]=\"emergencyNumber\"\r\n ></cs-emergency-care>\r\n </div>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { ERLinkCategories } from '../../models/configuration';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\n\r\n@Component({\r\n selector: 'cs-fad-lite-search-landing',\r\n templateUrl: './fad-lite-search-landing.component.html',\r\n styleUrls: ['./fad-lite-search-landing.component.scss']\r\n})\r\nexport class FadLiteSearchLandingComponent implements OnInit {\r\n showMyProviders: boolean;\r\n landingPageHeader: string;\r\n showLegalCopy: boolean;\r\n legalCopy: string;\r\n legalCopyToolTip: string;\r\n legalCopyToolTipInfo: string;\r\n showEmergencyCare: boolean;\r\n showEmergencyCopy: boolean;\r\n showRegionalHelplineNumbers: boolean;\r\n helplineNumbers: any[];\r\n isDesktopViewport: boolean;\r\n displayInfo: string;\r\n displayHeadingInvalid: string;\r\n emergencyCareLinkContent: ERLinkCategories[] = [];\r\n myProvidersLinkContent: string;\r\n emergencyCopy: string;\r\n emergencyNumber: string;\r\n constructor(private resizeService: ResizeService, private configService: ConfigurationService) { }\r\n\r\n ngOnInit(): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.SearchFrom);\r\n this.showMyProviders = this.configService.showMyProviders();\r\n this.landingPageHeader = this.configService.getLandingPageHeader();\r\n this.showEmergencyCare = this.configService.showEmergencyCare();\r\n this.showRegionalHelplineNumbers = this.configService.showRegionalHelplineNumbers();\r\n this.displayInfo = this.configService.getHelplineHeading();\r\n this.displayHeadingInvalid = this.configService.getHelplineHeadingInvalid();\r\n this.isDesktopViewport = this.resizeService.isDesktopViewport;\r\n if (this.configService.getHelplineNumbers().length > 0) {\r\n this.helplineNumbers = this.configService.getHelplineNumbers();\r\n } else {\r\n this.helplineNumbers = [\r\n {\r\n heading: 'Arizona',\r\n phone: '(855) 697-0781'\r\n },\r\n {\r\n heading: 'California',\r\n phone: '(866) 914-3627'\r\n },\r\n {\r\n heading: 'Nevada',\r\n phone: '(866) 984-3627'\r\n }\r\n ];\r\n }\r\n this.getHelplineNumbers();\r\n this.emergencyCareLinkContent = this.configService.getEmergencyCareLinkScheme();\r\n this.myProvidersLinkContent = this.configService.myProvidersLinkScheme();\r\n this.showEmergencyCare = this.configService.showEmergencyCare();\r\n this.showEmergencyCopy = this.configService.showEmergencyCopy();\r\n this.emergencyCopy = this.configService.getEmergencyCopy();\r\n this.emergencyNumber = this.configService.getEmergencyNumber();\r\n this.showLegalCopy = this.configService.showLegalCopy();\r\n this.legalCopy = this.configService.getLegalCopy();\r\n this.legalCopyToolTip = this.configService.getLegalCopyToolTip();\r\n this.legalCopyToolTipInfo = this.configService.getLegalCopyToolTipInfo();\r\n this.setRootElementCss();\r\n }\r\n\r\n getHelplineNumbers() {\r\n this.helplineNumbers.forEach((helpline: any) => {\r\n const cleaned = helpline.phone.toString().replace(/\\D/g, '');\r\n const match = cleaned.match(/^(\\d{3})(\\d{3})(\\d{4})$/);\r\n if (match) {\r\n helpline.displayPhone = `(${match[1]}) ${match[2]}-${match[3]}`;\r\n helpline.phone = `+1${match[0]}`;\r\n } else {\r\n return;\r\n }\r\n });\r\n }\r\n setRootElementCss() {\r\n try {\r\n const elements = document.body.querySelectorAll<HTMLElement>('fad-saas');\r\n if (elements) {\r\n elements.forEach(element => {\r\n\r\n element.classList.add('fad-root-element');\r\n });\r\n }\r\n }\r\n catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n get hideHeaderForVMFHAEMMobileView() {\r\n return !(this.resizeService.isMobileViewport && window.location.host.toLowerCase().includes('vmfh'));\r\n }\r\n}\r\n","<div class=\"location-search\" [ngClass]=\"{'changeStyle':changeBtnStyle}\" #locationSuggestionsContainer>\r\n <span class=\"location-search-icon\">\r\n <svg viewBox=\"0 0 17 24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M9.92515 20.0837C9.20284 21.0669 7.79716 21.0669 7.07485 20.0837C5.82622 18.3839 4.28559 16.1563 3.06154 13.9812C2.44945 12.8935 1.92663 11.8366 1.5591 10.8779C1.18629 9.90543 1 9.10165 1 8.5C1 4.35786 4.35786 1 8.5 1C12.6421 1 16 4.35786 16 8.5C16 9.10165 15.8137 9.90543 15.4409 10.8779C15.0734 11.8366 14.5505 12.8935 13.9385 13.9812C12.7144 16.1563 11.1738 18.3839 9.92515 20.0837Z\"\r\n />\r\n <path d=\"M8.5 11C9.88071 11 11 9.88071 11 8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5C6 9.88071 7.11929 11 8.5 11Z\" />\r\n </svg>\r\n </span>\r\n <input\r\n #locationInput\r\n type=\"text\"\r\n maxlength=\"80\"\r\n placeholder=\"City or zip\"\r\n [attr.aria-label]=\"getLocationError()\"\r\n [ngClass]=\"{ active: autocompleteActive }\"\r\n [(ngModel)]=\"locationName\"\r\n (ngModelChange)=\"onInputChange($event)\"\r\n (keyup.enter)=\"handleLocationEnter()\"\r\n (keyup.escape)=\"setAutocompleteActive(false)\"\r\n (keydown)=\"handleKeyPress($event)\"\r\n (focus)=\"closeProviderAutoSuggestion()\"\r\n (blur)=\"onFocusLost($event)\"\r\n data-nav-type=\"find a doctor\"\r\n data-nav-element=\"fad search text\"\r\n data-nav-location=\"fad search initiation\"\r\n role=\"combobox\"\r\n aria-autocomplete=\"list\"\r\n [attr.aria-expanded]=\"autocompleteActive\"\r\n [attr.aria-busy]=\"inputInFocus && showLoadingMessage && locationName !== ''\"\r\n />\r\n <ul\r\n *ngIf=\"inputInFocus && showLoadingMessage && locationName !== ''\"\r\n [attr.aria-label]=\"autoSuggestionLoadingMessage\"\r\n class=\"location-suggestions-container\"\r\n >\r\n <li class=\"locations-list\" *ngIf=\"locations.length === 0\">\r\n <ul>\r\n <li class=\"loading-suggestion\" [attr.aria-label]=\"autoSuggestionLoadingMessage\">{{ autoSuggestionLoadingMessage }}</li>\r\n </ul>\r\n </li>\r\n </ul>\r\n <ul *ngIf=\"inputInFocus && autocompleteActive && locationName !== ''\" class=\"location-suggestions-container\">\r\n <li class=\"locations-list\" *ngIf=\"locations.length > 0\">\r\n <ul>\r\n <li\r\n class=\"p p2\"\r\n *ngFor=\"let location of locations ;let position = index\"\r\n (click)=\"setSelectedLocation(location)\"\r\n (mouseenter)=\"setIndex(position)\"\r\n [attr.aria-selected]=\"highlightedlocation === position\"\r\n [attr.aria-label]=\"location\"\r\n [ngClass]=\"{ selected: highlightedlocation === position }\"\r\n tabindex=\"0\"\r\n >\r\n {{ location.name }}\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n <span class=\"geolocation-icon\">\r\n <svg\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"'use current location'\"\r\n role=\"button\"\r\n viewBox=\"0 0 20 20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n (click)=\"findGeoLocation()\"\r\n >\r\n <path\r\n d=\"M12.3665 18.8776L19.8626 2.63629C20.4872 1.13666 18.863 -0.487554 17.3637 0.137444L1.12242 7.63353C-0.751432 8.50812 -0.126816 11.2566 1.872 11.2566H5.74347C7.40032 11.2566 8.74347 12.5997 8.74347 14.2566V18.128C8.74347 20.1268 11.4919 20.7518 12.3665 18.8776Z\"\r\n />\r\n </svg>\r\n <span class=\"use-current-location-tooltip\">\r\n <p>Use current location</p>\r\n </span>\r\n </span>\r\n</div>\r\n","import { animate, style, transition, trigger } from '@angular/animations';\r\nimport { Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { Observable, ReplaySubject, Subject, Subscription } from 'rxjs';\r\nimport { debounceTime, filter, map, switchMap, tap } from 'rxjs/operators';\r\nimport { LocationByIpResult, LocationConverter, SelectedLocation } from '../../../models/location';\r\nimport { ApiResponse } from '../../../utils/api-response';\r\nimport { v4 as uuidv4 } from 'uuid';\r\nimport { LocationService } from '../../../services/location.service';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-fad-lite-location-search',\r\n templateUrl: './fad-lite-location-search.component.html',\r\n styleUrls: ['./fad-lite-location-search.component.scss'],\r\n animations: [\r\n trigger('fadeInOut', [\r\n transition(':enter', [style({ opacity: 0 }), animate(500, style({ opacity: 1 }))]),\r\n transition(':leave', [animate(500, style({ opacity: 0 }))])\r\n ])\r\n ]\r\n})\r\nexport class FadLiteLocationSearchComponent implements OnInit, OnChanges, OnDestroy {\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() invalidLocation: boolean;\r\n @Input() autoSuggestionLoadingMessage: string;\r\n @Output() setLocation = new EventEmitter<SelectedLocation>();\r\n @Output() locationEnter = new EventEmitter<SelectedLocation>();\r\n @Output() closeProviderAutoSuggestionContainer = new EventEmitter<any>();\r\n\r\n autocompleteActive: boolean;\r\n locations: SelectedLocation[] = [];\r\n locationName = '';\r\n highlightedlocation = -1;\r\n results$: Subscription;\r\n subject = new ReplaySubject<string>(1);\r\n showLoadingMessage = false;\r\n inputInFocus = false;\r\n changeBtnStyle:string;\r\n errorMessage:string;\r\n private readonly inputDebounceMS = 300;\r\n private inputModelChanged: Subject<string> = new Subject<string>();\r\n\r\n @ViewChild('locationSuggestionsContainer') locationSuggestionsContainer: ElementRef;\r\n @ViewChild('locationInput') locationInput: ElementRef;\r\n\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n if (this.locationInput && this.locationInput.nativeElement.contains(event.target)) {\r\n if (this.locationName.length > 0 && !this.selectedLocation) {\r\n this.setAutocompleteActive(true);\r\n }\r\n\r\n if (window.innerWidth < 768) {\r\n this.locationInput.nativeElement.style.boxShadow = '0px 2px 8px rgba(77, 82, 90, 0.3)';\r\n }\r\n } else {\r\n this.setAutocompleteActive(false);\r\n this.locationInput.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any) {\r\n if (event.target.innerWidth > 768) {\r\n this.locationInput.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n\r\n constructor(private locationService: LocationService, private configurationService: ConfigurationService) {}\r\n\r\n ngOnInit(): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n\r\n this.results$ = this.subject\r\n .pipe(\r\n filter((searchText) => !!searchText && searchText.length > 0),\r\n switchMap((locationSearchTerm) => this.getLocationSuggestionsTyped(locationSearchTerm)),\r\n tap((locations) => {\r\n this.showLoadingMessage = false;\r\n if (!this.inputInFocus) {\r\n this.setAutocompleteActive(false);\r\n return;\r\n }\r\n this.locations = locations;\r\n this.setAutocompleteActive(this.locations.length > 0);\r\n })\r\n )\r\n .subscribe();\r\n\r\n this.inputModelChanged.pipe(debounceTime(this.inputDebounceMS)).subscribe((event) => this.onChangeSearch(event));\r\n this.changeBtnStyle= this.configurationService.getSearchButton();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.results$.unsubscribe();\r\n this.subject.unsubscribe();\r\n }\r\n\r\n ngOnChanges() {\r\n this.locationName = this.selectedLocation?.name ?? '';\r\n }\r\n\r\n async findGeoLocation() {\r\n if (navigator.geolocation) {\r\n await new Promise<void>((res, rej) => {\r\n const timeout = setTimeout(() => rej(), 8000);\r\n\r\n navigator.geolocation.getCurrentPosition(\r\n () => {\r\n clearTimeout(timeout);\r\n res();\r\n },\r\n () => {\r\n clearTimeout(timeout);\r\n rej();\r\n },\r\n {\r\n enableHighAccuracy: true,\r\n maximumAge: 5000,\r\n timeout: 5000\r\n }\r\n );\r\n })\r\n .then(() => {\r\n this.getGeoLocation();\r\n })\r\n .catch(() => {\r\n this.getGeoLocation();\r\n });\r\n } else {\r\n this.getGeoLocation();\r\n }\r\n }\r\n\r\n getLocationSuggestionsTyped(locationSearchTerm: string): Observable<SelectedLocation[]> {\r\n return this.locationService.getTypedLocationSuggestions(locationSearchTerm).pipe(\r\n map((response) => {\r\n let locations: SelectedLocation[] = [];\r\n if (response.isValid) {\r\n locations = response.result.map(\r\n (l) =>\r\n ({\r\n name: l.locationName,\r\n googlePlaceId: l.googlePlaceId,\r\n address: '',\r\n zip: '',\r\n city: '',\r\n state: '',\r\n neighborhood: ''\r\n } as SelectedLocation)\r\n );\r\n }\r\n return locations;\r\n }),\r\n map((selectedLocations) => selectedLocations.filter(\r\n (l, index, self) => index === self.findIndex((item) => item.name === l.name && item.googlePlaceId === l.googlePlaceId)\r\n ))\r\n );\r\n }\r\n\r\n onInputChange(event) {\r\n this.showLoadingMessage = true;\r\n this.setAutocompleteActive(false);\r\n this.inputModelChanged.next(event);\r\n }\r\n\r\n onChangeSearch(val: string) {\r\n this.locations = [];\r\n this.setLocation.emit({\r\n name: val\r\n } as any);\r\n val = val.replace(/^[^a-zA-Z0-9,]+$/, '');\r\n if (val && val.match(/^ *$/) === null) {\r\n if (window.sessionStorage.getItem(SessionObjectNames.LocationSessionId) === null) {\r\n const token = uuidv4().replace(/-/g, '');\r\n window.sessionStorage.setItem(SessionObjectNames.LocationSessionId, token);\r\n }\r\n this.subject.next(val);\r\n } else {\r\n this.setAutocompleteActive(false);\r\n this.clearSession();\r\n }\r\n }\r\n\r\n setSelectedLocation(location: SelectedLocation) {\r\n const zipPattern = /\\d+/g;\r\n const isZipExist = location.name.match(zipPattern);\r\n this.locationService\r\n .getLocationDetail(location.googlePlaceId)\r\n .pipe(\r\n map((response) => ({\r\n name: location.name,\r\n neighborhood: response.result.neighborhood,\r\n city: response.result.city,\r\n state: response.result.state,\r\n latitude: response.result.latitude,\r\n longitude: response.result.longitude,\r\n zip: isZipExist ? response.result.zip : '',\r\n isLocationValid: true\r\n } as SelectedLocation))\r\n )\r\n .subscribe((locationSel: SelectedLocation) => {\r\n this.setAutocompleteActive(false);\r\n this.setLocation.emit(locationSel);\r\n });\r\n }\r\n\r\n clearSession() {\r\n this.setAutocompleteActive(false);\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n }\r\n\r\n setAutocompleteActive(value: boolean) {\r\n this.autocompleteActive = value;\r\n this.highlightedlocation = -1;\r\n }\r\n\r\n private getGeoLocation() {\r\n this.locationService\r\n .getLocationByIP()\r\n .pipe(map((result: ApiResponse<LocationByIpResult>) => LocationConverter.convertTo(result.result.location)))\r\n .subscribe((location: SelectedLocation) => {\r\n this.showLoadingMessage = false;\r\n this.setLocation.emit(location);});\r\n }\r\n\r\n handleLocationEnter() {\r\n if (this.autocompleteActive && this.highlightedlocation >= 0 && this.highlightedlocation <= this.locations.length) {\r\n this.setSelectedLocation(this.locations[this.highlightedlocation]);\r\n } else if (!this.autocompleteActive) {\r\n this.locationEnter.emit();\r\n }\r\n }\r\n\r\n setIndex(index: number) {\r\n if (index <= -1 || index >= this.locations.length) {\r\n return;\r\n }\r\n\r\n this.highlightedlocation = index;\r\n }\r\n\r\n handleKeyPress($event: KeyboardEvent) {\r\n const keyCode = $event.key.toLowerCase();\r\n\r\n if (keyCode === 'arrowdown') {\r\n $event.preventDefault();\r\n this.setIndex(this.highlightedlocation + 1);\r\n } else if (keyCode === 'arrowup') {\r\n $event.preventDefault();\r\n this.setIndex(this.highlightedlocation - 1);\r\n }\r\n }\r\n\r\n closeProviderAutoSuggestion(): void {\r\n this.inputInFocus = true;\r\n this.closeProviderAutoSuggestionContainer.emit();\r\n }\r\n\r\n onFocusLost(event: FocusEvent | any): void {\r\n if (\r\n (event.target && !this.locationSuggestionsContainer.nativeElement.contains(event.target)) ||\r\n (event.relatedTarget && !this.locationSuggestionsContainer.nativeElement.contains(event.relatedTarget))\r\n ) {\r\n this.inputInFocus = false;\r\n }\r\n }\r\n\r\n getLocationError(): string{\r\n if(!this.invalidLocation && this.selectedLocation?.name !== 'undefined' && this.selectedLocation?.name !== null && this.selectedLocation?.name !== ' ')\r\n {\r\n this.errorMessage = 'We’re unable to recognize this location. Please type a new city or zip in the Location search field.';\r\n }\r\n else{\r\n this.errorMessage = '';\r\n }\r\n return this.errorMessage;\r\n }\r\n}\r\n","<div class=\"provider-search\" [ngClass]=\"{'ps-changeStyle':changeBtnStyle}\" #providerSuggestionsContainer>\r\n <span class=\"provider-search-icon\">\r\n <svg viewBox=\"0 0 18 19\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31253C2.81252 9.8016 4.82697 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.7981 11.8126 7.31253C11.8126 4.82346 9.79811 2.8125 7.31254 2.8125C4.82347 2.8125 2.81252 4.82696 2.81252 7.31253Z\"\r\n />\r\n </svg>\r\n </span>\r\n <input\r\n maxlength=\"80\"\r\n data-nav-type=\"find a doctor\"\r\n data-nav-element=\"fad search text\"\r\n [ngClass]=\"{ active: autocompleteActive }\"\r\n data-nav-location=\"fad search initiation\"\r\n type=\"text\"\r\n [(ngModel)]=\"searchTerm\"\r\n (ngModelChange)=\"onInputChange($event)\"\r\n [placeholder]=\"this.searchPlaceholder\"\r\n (blur)=\"onFocusLost($event)\"\r\n (keyup.enter)=\"handleKeywordChange()\"\r\n (keyup.escape)=\"setAutocompleteActive(false)\"\r\n (keydown)=\"keyDownHandler($event)\"\r\n role=\"combobox\"\r\n aria-autocomplete=\"list\"\r\n [attr.aria-expanded]=\"autocompleteActive\"\r\n [attr.aria-busy]=\"inputInFocus && showLoadingMessage && searchTerm !== '' && !autocompleteActive\"\r\n (focus)=\"onFocusGained()\"\r\n tabindex=\"0\"\r\n #search\r\n />\r\n <ul\r\n *ngIf=\"inputInFocus && showLoadingMessage && searchTerm !== ''\"\r\n [attr.aria-label]=\"autoSuggestionLoadingMessage\"\r\n class=\"provider-suggestions-container\"\r\n >\r\n <li\r\n role=\"option\"\r\n class=\"providers-list\"\r\n *ngIf=\"(showSpecialtySuggestions && suggestions.specialties.length === 0) || suggestions.providers.length === 0\"\r\n >\r\n <ul>\r\n <li class=\"loading-suggestion\" [attr.aria-label]=\"autoSuggestionLoadingMessage\">{{ autoSuggestionLoadingMessage }}</li>\r\n </ul>\r\n </li>\r\n </ul>\r\n <ul\r\n *ngIf=\"inputInFocus && autocompleteActive && searchTerm !== ''\"\r\n aria-label=\"Specialties Providers Keywords\"\r\n class=\"provider-suggestions-container\"\r\n >\r\n <li class=\"specialties-list\" *ngIf=\"showSpecialtySuggestions && suggestions.specialties.length > 0\">\r\n <h3><p>Specialties</p></h3>\r\n <ul>\r\n <li\r\n *ngFor=\"let specialty of suggestions.specialties.slice(0, specialtySliceIndex); let k = index\"\r\n (click)=\"specialtyClick(specialty)\"\r\n [innerHTML]=\"queryHighlight(specialty)\"\r\n [csFocused]=\"activeSpecialtyDropdownIndex === k\"\r\n [class.focused]=\"activeSpecialtyDropdownIndex === k\"\r\n [attr.aria-selected]=\"activeSpecialtyDropdownIndex === k\"\r\n [ngClass]=\"{ selected: activeSpecialtyDropdownIndex === k }\"\r\n (mouseenter)=\"handleMouseEnter(k, 'specialty')\"\r\n [attr.aria-label]=\"specialty\"\r\n tabindex=\"0\"\r\n ></li>\r\n </ul>\r\n <div class=\"show-more-less\" *ngIf=\"suggestions.specialties.length > 3\">\r\n <a\r\n href=\"javascript:;\"\r\n role=\"button\"\r\n [attr.aria-label]=\" specialtySliceIndex < suggestions.specialties.length ? 'Show more specialties' : 'Show less specialties'\"\r\n (mouseenter)=\"seeLessMoreHover('specialty')\"\r\n (click)=\"expandLessCick('specialty')\"\r\n #specialitySeeMore\r\n >\r\n {{ specialtySliceIndex < suggestions.specialties.length ? 'More' : 'Less' }}\r\n <svg\r\n class=\"more-arrow\"\r\n [ngClass]=\"{ 'less-arrow': specialtySliceIndex === suggestions.specialties.length }\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </li>\r\n <hr\r\n *ngIf=\"(showSpecialtySuggestions && suggestions.specialties.length > 0) && (suggestions.providers.length > 0 || suggestions.keywords.length > 0)\"\r\n />\r\n <li class=\"providers-list\" *ngIf=\"suggestions.providers.length > 0\">\r\n <h3><p>Providers</p></h3>\r\n <ul>\r\n <li\r\n *ngFor=\"let provider of suggestions.providers.slice(0, providerSliceIndex); let i = index\"\r\n (click)=\"goToProvider(provider.npi, provider.firstName, provider.lastName, checkforPrimarySpeciality(provider))\"\r\n [innerHTML]=\"providerHighlight(provider)\"\r\n [csFocused]=\"activeProviderDropdownIndex === i\"\r\n [class.focused]=\"activeProviderDropdownIndex === i\"\r\n [attr.aria-selected]=\"activeProviderDropdownIndex === i\"\r\n [attr.aria-label]=\"getProviderName(provider)\"\r\n [ngClass]=\"{ selected: activeProviderDropdownIndex === i }\"\r\n (mouseenter)=\"handleMouseEnter(i, 'provider')\"\r\n tabindex=\"0\"\r\n >\r\n <a></a>\r\n </li>\r\n </ul>\r\n <ng-container *ngIf=\"enableAutoSuggestionProviders && providerSliceIndex > 3 && providerCount > 10\">\r\n <div class=\"show-all-providers\">\r\n <a href=\"javascript:;\" (click)=\"keywordSeeAllProviderSearchClick()\" #seeAllproviders>\r\n {{ providerSliceIndex < suggestions.providers.length ? '' : 'See all providers'}}\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"></svg>\r\n </a>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"show-more-less\" *ngIf=\"suggestions.providers.length > 3\">\r\n <a\r\n href=\"javascript:;\"\r\n role=\"button\"\r\n [attr.aria-label]=\"providerSliceIndex < suggestions.providers.length ? 'Show more providers' : 'Show less providers'\"\r\n (mouseenter)=\"seeLessMoreHover('provider')\"\r\n (click)=\"expandLessCick('provider')\"\r\n #providerSeeMore\r\n >\r\n {{ providerSliceIndex < suggestions.providers.length ? 'More' : 'Less' }}\r\n <svg\r\n class=\"more-arrow\"\r\n [ngClass]=\"{ 'less-arrow': providerSliceIndex === suggestions.providers.length }\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </li>\r\n <hr *ngIf=\"suggestions.providers.length > 0 && suggestions.keywords.length > 0\" />\r\n <li class=\"keywords-list\" *ngIf=\"suggestions.keywords.length > 0\">\r\n <h3><p>Keywords</p></h3>\r\n <ul>\r\n <li\r\n *ngFor=\"let keyword of suggestions.keywords.slice(0, keywordSliceIndex); let j = index\"\r\n (click)=\"keywordClick(keyword)\"\r\n [innerHTML]=\"queryHighlight(keyword)\"\r\n [csFocused]=\"activeKeywordDropdownIndex === j\"\r\n [class.focused]=\"activeKeywordDropdownIndex === j\"\r\n [attr.aria-selected]=\"activeKeywordDropdownIndex === j\"\r\n [ngClass]=\"{ selected: activeKeywordDropdownIndex === j }\"\r\n (mouseenter)=\"handleMouseEnter(j, 'keyword')\"\r\n [attr.aria-label]=\"keyword\"\r\n tabindex=\"0\"\r\n ></li>\r\n </ul>\r\n <div class=\"show-more-less\" *ngIf=\"suggestions.keywords.length > 3\">\r\n <a\r\n href=\"javascript:;\"\r\n role=\"button\"\r\n [attr.aria-label]=\"keywordSliceIndex < suggestions.keywords.length ? 'Show more keywords' : 'Show less keywords'\"\r\n (mouseenter)=\"seeLessMoreHover('keyword')\"\r\n (click)=\"expandLessCick('keyword')\"\r\n #keywordSeeMore\r\n >\r\n {{ keywordSliceIndex < suggestions.keywords.length ? 'More' : 'Less' }}\r\n <svg\r\n class=\"more-arrow\"\r\n [ngClass]=\"{ 'less-arrow': keywordSliceIndex === suggestions.keywords.length }\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path d=\"M1 1L6 6L11 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n </li>\r\n </ul>\r\n</div>\r\n","import {\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n HostListener,\r\n Input,\r\n OnDestroy,\r\n OnInit,\r\n Output,\r\n SimpleChanges,\r\n ViewChild, OnChanges\r\n} from '@angular/core';\r\nimport { ProviderService } from '../../../services/provider.service';\r\nimport { SearchSuggestions } from '../../../models/search-suggestions';\r\nimport {\r\n KeywordSuggestion,\r\n KeywordSuggestionResponse,\r\n Provider,\r\n ProviderInterfaceHelper,\r\n ProviderSuggestionResponse,\r\n ProviderSuggestionV2Response,\r\n ProviderTextV2\r\n} from '../../../models/provider';\r\nimport { ProviderOffice } from '../../../models/provider-office';\r\nimport { OfficeAddress } from '../../../models/office-address';\r\nimport { catchError, debounceTime, filter, switchMap, tap } from 'rxjs/operators';\r\nimport { ApiResponse } from '../../../utils/api-response';\r\nimport { forkJoin, Observable, of, ReplaySubject, Subject, Subscription } from 'rxjs';\r\nimport '../../../utils/string-prototypes';\r\nimport { ConfigurationService } from '../../../services/configuration.service';\r\nimport { ResizeService, ViewPortSize } from '../../../services/resize.service';\r\nimport { HierarchySecurityService } from '../../../configs/HierarchySecurityService';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\n\r\n@Component({\r\n selector: 'cs-fad-lite-provider-search',\r\n templateUrl: './fad-lite-provider-search.component.html',\r\n styleUrls: ['./fad-lite-provider-search.component.scss']\r\n})\r\nexport class FadLiteProviderSearchComponent implements OnInit, OnDestroy, OnChanges {\r\n @Input() searchTerm: string;\r\n @Input() hideProviderSuggestions: boolean;\r\n @Input() autoSuggestionLoadingMessage: string;\r\n @Output() searchTermChanged = new EventEmitter<string>();\r\n @Output() keywordEnter = new EventEmitter<string>();\r\n @Output() goToProviderEvent = new EventEmitter<any>();\r\n @Output() specialtyChanged = new EventEmitter<string>();\r\n @Output() tabPressedOnProviderSearch = new EventEmitter<any>();\r\n\r\n suggestions: SearchSuggestions = {\r\n providers: [],\r\n keywords: [],\r\n specialties: []\r\n };\r\n autocompleteActive: boolean;\r\n providerSliceIndex = 3;\r\n keywordSliceIndex = 3;\r\n specialtySliceIndex = 3;\r\n searchPlaceholder: string;\r\n showSpecialtySuggestions: boolean;\r\n activeProviderDropdownIndex = -1;\r\n activeKeywordDropdownIndex = -1;\r\n activeSpecialtyDropdownIndex = -1;\r\n defaultSliceIndex = 2;\r\n lastFocusWasFromKeyboard = false;\r\n seeLessMoreClicked = false;\r\n seeLessMoreFocused = false;\r\n isFromexpandLessCick = false;\r\n enableAutoSuggestionProviders: boolean;\r\n providerCount = 0;\r\n viewPort$: Subscription;\r\n results$: Subscription;\r\n subject = new ReplaySubject<string>(1);\r\n showLoadingMessage = false;\r\n inputInFocus = false;\r\n changeBtnStyle:string;\r\n private readonly inputDebounceMS = 300;\r\n private readonly noSuggestionsSelected = -1;\r\n private inputModelChanged: Subject<string> = new Subject<string>();\r\n\r\n @ViewChild('providerSuggestionsContainer') providerSuggestionsContainer: ElementRef;\r\n @ViewChild('search') searchElement: ElementRef;\r\n @ViewChild('specialitySeeMore') specialitySeeMore: ElementRef;\r\n @ViewChild('providerSeeMore') providerSeeMore: ElementRef;\r\n @ViewChild('keywordSeeMore') keywordSeeMore: ElementRef;\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n if (!this.providerSuggestionsContainer.nativeElement.contains(event.target)) {\r\n this.autocompleteActive = false;\r\n this.providerSliceIndex = 3;\r\n this.keywordSliceIndex = 3;\r\n this.specialtySliceIndex = 3;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n } else if (\r\n this.searchTerm &&\r\n this.searchTerm !== ' ' &&\r\n (this.suggestions.providers.length > 0 || this.suggestions.keywords.length > 0 || this.suggestions.specialties.length > 0)\r\n ) {\r\n this.autocompleteActive = true;\r\n }\r\n }\r\n\r\n @HostListener('window:mousemove', ['$event'])\r\n onMouseMove() {\r\n this.lastFocusWasFromKeyboard = false;\r\n }\r\n\r\n @HostListener('window:keydown', ['$event'])\r\n onKeyDown(keyEvent: KeyboardEvent) {\r\n const keyCode = keyEvent.key.toLowerCase();\r\n if (keyCode === 'arrowdown' || keyCode === 'arrowup') {\r\n if (this.seeLessMoreClicked) {\r\n if (this.seeLessMoreFocused) {\r\n this.seeLessMoreFocused = false;\r\n this.searchElement.nativeElement.focus();\r\n this.keyDownHandler(keyEvent);\r\n } else {\r\n this.seeLessMoreFocused = true;\r\n }\r\n }\r\n }\r\n if (keyCode === 'tab' && this.autocompleteActive) {\r\n this.tabPressedOnProviderSearch.emit();\r\n }\r\n }\r\n useLegacyAPI = false;\r\n constructor(\r\n private providerService: ProviderService,\r\n private resizeService: ResizeService,\r\n private configurationService: ConfigurationService,\r\n private securityService: HierarchySecurityService\r\n ) {\r\n this.useLegacyAPI = this.configurationService?.useLegacyAPI();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.results$.unsubscribe();\r\n this.subject.unsubscribe();\r\n this.viewPort$.unsubscribe();\r\n }\r\n\r\n ngOnInit(): void {\r\n this.enableAutoSuggestionProviders = this.configurationService.shouldEnableAutoSuggestionProviders();\r\n this.viewPort$ = this.resizeService.viewPortChanged.pipe(tap((result: ViewPortSize) => this.setPlaceholderText(result))).subscribe();\r\n\r\n this.results$ = this.subject\r\n .pipe(\r\n filter((searchText) => !!searchText && searchText.length > 0),\r\n switchMap((searchTerm) => {\r\n if (!this.useLegacyAPI) {\r\n return this.getSearchSuggestionsV2(searchTerm).pipe(\r\n catchError(() => of(undefined))\r\n );\r\n } else {\r\n return this.getSearchSuggestions(searchTerm).pipe(\r\n catchError(() => of(undefined))\r\n );\r\n }\r\n }),\r\n tap(() => {\r\n this.showLoadingMessage = false;\r\n if (!this.inputInFocus) {\r\n this.setAutocompleteActive(false);\r\n return;\r\n }\r\n this.setAutocompleteActive(\r\n this.suggestions.providers.length > 0 || this.suggestions.keywords.length > 0 || this.suggestions.specialties.length > 0\r\n );\r\n })\r\n )\r\n .subscribe();\r\n\r\n this.inputModelChanged.pipe(debounceTime(this.inputDebounceMS)).subscribe((event) => this.onChangeSearch(event));\r\n this.showSpecialtySuggestions = this.configurationService.showSpecialtySuggestions();\r\n this.changeBtnStyle= this.configurationService.getSearchButton();\r\n }\r\n\r\n setPlaceholderText(viewportSize: ViewPortSize) {\r\n if (viewportSize === ViewPortSize.Desktop) {\r\n this.searchPlaceholder = this.configurationService.getSearchTermDeskTop();\r\n } else {\r\n this.searchPlaceholder =\r\n viewportSize === ViewPortSize.Tablet\r\n ? this.configurationService.getSearchTermTablet()\r\n : this.configurationService.getSearchTermMobile();\r\n }\r\n }\r\n\r\n getSearchSuggestions(\r\n query: string\r\n ): Observable<\r\n [ApiResponse<ProviderSuggestionResponse>, ApiResponse<KeywordSuggestionResponse>, ApiResponse<ProviderSuggestionResponse>]\r\n > {\r\n return forkJoin([\r\n this.getProviderSuggestionsTyped(query),\r\n this.getKeywordSuggestionsTyped(query),\r\n this.getSpecialtySuggestionsTyped(query)\r\n ]);\r\n }\r\n\r\n getSearchSuggestionsV2(\r\n query: string\r\n ): Observable<\r\n [ApiResponse<ProviderSuggestionResponse>, ApiResponse<KeywordSuggestionResponse>, ApiResponse<ProviderSuggestionV2Response>]\r\n > {\r\n return forkJoin([\r\n this.getProviderSuggestionsTyped(query),\r\n this.getKeywordSuggestionsTyped(query),\r\n this.getSpecialtyV2SuggestionsTyped(query)\r\n ]);\r\n }\r\n\r\n getProviderSuggestionsTyped(query: string): Observable<ApiResponse<ProviderSuggestionResponse>> {\r\n return this.providerService.getTypedProviderSuggestions(query, 'provider').pipe(\r\n tap((response) => {\r\n let providers: Provider[] = [];\r\n if (response.isValid) {\r\n this.providerCount = response.result.providerCount;\r\n providers = response.result.items\r\n .map((s) => s.providers)\r\n .reduce((a: Provider[], b: Provider[]) => a.concat(b.filter(this.onlyUnique)), []);\r\n }\r\n providers.forEach((provider: Provider) => {\r\n this.updateProviderFullName(provider);\r\n });\r\n this.suggestions.providers = providers;\r\n })\r\n );\r\n }\r\n\r\n updateProviderFullName(provider: Provider): void {\r\n if (!this.configurationService.showProviderPrefix()) {\r\n provider.displayFullName = ProviderInterfaceHelper.removeProviderNamePrefix(provider.firstName, provider.lastName, provider.degree);\r\n }\r\n }\r\n\r\n private onlyUnique<T>(value: T, index, array: T[]): boolean {\r\n return array.indexOf(value) === index;\r\n }\r\n\r\n keywordSeeAllProviderSearchClick() {\r\n this.autocompleteActive = false;\r\n this.keywordEnter.emit(this.searchTerm);\r\n this.searchElement.nativeElement.focus();\r\n }\r\n\r\n getKeywordSuggestionsTyped(query: string): Observable<ApiResponse<KeywordSuggestionResponse>> {\r\n return this.providerService.getTypedKeywordSuggestions(query).pipe(\r\n tap((response) => {\r\n let keywords: string[] = [];\r\n if (response.isValid) {\r\n keywords = response.result.items\r\n .map((suggestion: KeywordSuggestion) => suggestion.textAndQuery.toTitleCase())\r\n .filter(this.onlyUnique);\r\n }\r\n this.suggestions.keywords = keywords;\r\n })\r\n );\r\n }\r\n\r\n getSpecialtySuggestionsTyped(query: string): Observable<ApiResponse<ProviderSuggestionResponse>> {\r\n return this.providerService.getTypedProviderSuggestions(query, 'specialty').pipe(\r\n tap((response) => {\r\n let specialties: string[] = [];\r\n if (response.isValid) {\r\n specialties = response.result.items.map((s) => s.text).filter(this.onlyUnique);\r\n }\r\n this.suggestions.specialties = specialties;\r\n })\r\n );\r\n }\r\n\r\n getSpecialtyV2SuggestionsTyped(query: string): Observable<ApiResponse<ProviderSuggestionV2Response>> {\r\n return this.providerService.getTypedProviderSuggestionsV2(query).pipe(\r\n tap((response) => {\r\n let specialityText: ProviderTextV2[] = [];\r\n const specialities: string[] = [];\r\n if (response.isValid && response.result.items.length > 0) {\r\n specialityText = response.result.items\r\n .map((s) => s.text)\r\n .reduce((a: ProviderTextV2[], b: ProviderTextV2[]) => (!this.useLegacyAPI ? [...a, ...b] : b.concat([...new Set(a).values()])));\r\n }\r\n specialityText.forEach((text: ProviderTextV2) => {\r\n if (!specialities.includes(text.specialty)) {\r\n specialities.push(text.specialty);\r\n }\r\n });\r\n this.suggestions.specialties = !this.useLegacyAPI ? [...specialities] : [...new Set(specialities)].sort();\r\n })\r\n );\r\n }\r\n\r\n onInputChange(event) {\r\n this.showLoadingMessage = true;\r\n this.setAutocompleteActive(false);\r\n this.inputModelChanged.next(event);\r\n }\r\n\r\n onChangeSearch(val: string) {\r\n this.providerSliceIndex = 3;\r\n this.keywordSliceIndex = 3;\r\n this.specialtySliceIndex = 3;\r\n this.suggestions = {\r\n providers: [],\r\n keywords: [],\r\n specialties: []\r\n };\r\n\r\n this.searchTermChanged.emit(val);\r\n\r\n val = val.replace(/^[^a-zA-Z0-9&-]+$/, '');\r\n if (val && val.match(/^ *$/) === null) {\r\n this.subject.next(val);\r\n this.searchTermChanged.emit(val);\r\n } else {\r\n this.setAutocompleteActive(false);\r\n }\r\n }\r\n\r\n setAutocompleteActive(value: boolean) {\r\n if (value === true) {\r\n if (this.suggestions.specialties.length > 0) {\r\n this.activeSpecialtyDropdownIndex = 0;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.suggestions.providers.length > 0) {\r\n this.activeProviderDropdownIndex = 0;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.suggestions.keywords.length > 0) {\r\n this.activeKeywordDropdownIndex = 0;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n }\r\n }\r\n\r\n this.autocompleteActive = value;\r\n }\r\n\r\n keywordClick(keyword: string) {\r\n this.autocompleteActive = false;\r\n this.searchTerm = keyword;\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpecialityText);\r\n this.searchTermChanged.emit(keyword);\r\n this.searchElement.nativeElement.focus();\r\n }\r\n\r\n checkforPrimarySpeciality(provider): any {\r\n let primarySpeciality: any;\r\n if (!this.useLegacyAPI) {\r\n primarySpeciality = provider.primarySpecialty[0].specialty;\r\n } else {\r\n primarySpeciality = provider.primarySpecialty;\r\n }\r\n return primarySpeciality;\r\n }\r\n\r\n specialtyClick(specialty: string) {\r\n this.autocompleteActive = false;\r\n window.sessionStorage.setItem(SessionObjectNames.SingleSpecialityText, specialty);\r\n this.specialtyChanged.emit(specialty);\r\n }\r\n\r\n goToProvider(npi: string | number, firstName: string, lastName: string, primarySpecialty: string) {\r\n sessionStorage.setItem('searchResultsOrigin', 'true');\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpecialityText);\r\n this.goToProviderEvent.emit({ npi, firstName, lastName, primarySpecialty });\r\n }\r\n\r\n providerHighlight(provider: Provider) {\r\n let primaryOffice = null;\r\n provider.offices?.forEach((office: ProviderOffice) => {\r\n office.addresses.forEach((address: OfficeAddress) => {\r\n if (address.isPrimaryOffice) {\r\n primaryOffice = address;\r\n }\r\n });\r\n });\r\n let highlightString = `${provider.displayFullName}`;\r\n if (primaryOffice) {\r\n highlightString += `, ${primaryOffice.city}, ${primaryOffice.state}`;\r\n } else if (provider.offices && provider.offices.length > 0) {\r\n const office = provider.offices[0].addresses[0];\r\n highlightString += `, ${office.city}, ${office.state}`;\r\n }\r\n\r\n const reg = new RegExp(this.searchTerm, 'ig');\r\n return highlightString.replace(reg, (match: any) => `<i>${match}</i>`);\r\n }\r\n\r\n queryHighlight(highlightString: string) {\r\n const reg = new RegExp(this.searchTerm, 'ig');\r\n return highlightString.replace(reg, (match: any) => `<i>${match}</i>`);\r\n }\r\n\r\n handleKeywordChange() {\r\n if (this.seeLessMoreClicked) {\r\n this.seeLessMoreClicked = false;\r\n return;\r\n }\r\n this.seeLessMoreClicked = false;\r\n let specialtyChosen = false;\r\n document.querySelectorAll('.specialties-list li').forEach((item) => {\r\n if (!specialtyChosen) {\r\n specialtyChosen = item.classList.contains('selected');\r\n }\r\n });\r\n\r\n let providerChosen = false;\r\n document.querySelectorAll('.providers-list li').forEach((item) => {\r\n if (!providerChosen) {\r\n providerChosen = item.classList.contains('selected');\r\n }\r\n });\r\n\r\n let keywordChosen = false;\r\n document.querySelectorAll('.keywords-list li').forEach((item) => {\r\n if (!keywordChosen) {\r\n keywordChosen = item.classList.contains('selected');\r\n }\r\n });\r\n\r\n if (providerChosen && this.autocompleteActive) {\r\n const selectedProvider = this.suggestions.providers[this.activeProviderDropdownIndex];\r\n this.goToProvider(selectedProvider.npi, selectedProvider.firstName, selectedProvider.lastName, selectedProvider.primarySpecialty);\r\n } else if (keywordChosen && this.autocompleteActive) {\r\n const selectedKeyword = this.suggestions.keywords[this.activeKeywordDropdownIndex];\r\n this.keywordClick(selectedKeyword);\r\n } else if (specialtyChosen && this.autocompleteActive) {\r\n const selectedSpecialty = this.suggestions.specialties[this.activeSpecialtyDropdownIndex];\r\n this.specialtyClick(selectedSpecialty);\r\n } else {\r\n this.keywordEnter.emit(this.searchTerm);\r\n }\r\n this.autocompleteActive = false;\r\n }\r\n\r\n keyDownHandler(keyEvent: KeyboardEvent): void {\r\n const keyCode = keyEvent.key.toLowerCase();\r\n\r\n if (keyCode === 'arrowdown') {\r\n keyEvent.preventDefault();\r\n this.arrowHandler(1);\r\n } else if (keyCode === 'arrowup') {\r\n keyEvent.preventDefault();\r\n this.arrowHandler(-1);\r\n }\r\n }\r\n\r\n handleMouseEnter(index: number, type: string): void {\r\n if (!this.lastFocusWasFromKeyboard) {\r\n if (this.seeLessMoreClicked) {\r\n this.seeLessMoreClicked = false;\r\n this.seeLessMoreFocused = false;\r\n this.searchElement.nativeElement.focus();\r\n }\r\n if (type == 'specialty') {\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = index;\r\n } else if (type == 'provider') {\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = index;\r\n } else {\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = index;\r\n }\r\n }\r\n }\r\n\r\n arrowHandler(increment: number): void {\r\n this.lastFocusWasFromKeyboard = true;\r\n this.seeLessMoreClicked = false;\r\n if (this.activeSpecialtyDropdownIndex > this.noSuggestionsSelected) {\r\n if (this.activeSpecialtyDropdownIndex + increment === -1) {\r\n this.activeSpecialtyDropdownIndex = 0;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeSpecialtyDropdownIndex + increment < this.specialtySliceIndex) {\r\n this.activeSpecialtyDropdownIndex += increment;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeSpecialtyDropdownIndex + increment === this.specialtySliceIndex && this.specialitySeeMore) {\r\n this.activeSpecialtyDropdownIndex += increment;\r\n this.seeLessMoreClicked = true;\r\n this.specialitySeeMore.nativeElement.focus();\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = 0;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n }\r\n } else if (this.activeProviderDropdownIndex > this.noSuggestionsSelected) {\r\n if (this.activeProviderDropdownIndex + increment === -1) {\r\n if (this.specialitySeeMore) {\r\n this.seeLessMoreClicked = true;\r\n this.specialitySeeMore.nativeElement.focus();\r\n this.activeSpecialtyDropdownIndex = this.specialtySliceIndex;\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.specialtySliceIndex - 1;\r\n }\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeProviderDropdownIndex + increment < this.providerSliceIndex) {\r\n this.activeProviderDropdownIndex += increment;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeProviderDropdownIndex + increment === this.providerSliceIndex && this.providerSeeMore) {\r\n this.activeProviderDropdownIndex += increment;\r\n this.seeLessMoreClicked = true;\r\n this.providerSeeMore.nativeElement.focus();\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = 0;\r\n }\r\n } else if (this.activeKeywordDropdownIndex > this.noSuggestionsSelected) {\r\n if (this.activeKeywordDropdownIndex + increment === -1) {\r\n if (this.providerSeeMore) {\r\n this.seeLessMoreClicked = true;\r\n this.providerSeeMore.nativeElement.focus();\r\n this.activeProviderDropdownIndex = this.providerSliceIndex;\r\n } else {\r\n this.activeProviderDropdownIndex = this.providerSliceIndex - 1;\r\n }\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (this.activeKeywordDropdownIndex + increment < this.keywordSliceIndex) {\r\n this.activeProviderDropdownIndex += this.noSuggestionsSelected;\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex += increment;\r\n } else if (this.activeKeywordDropdownIndex + increment === this.keywordSliceIndex && this.keywordSeeMore) {\r\n this.activeKeywordDropdownIndex += increment;\r\n this.seeLessMoreClicked = true;\r\n this.keywordSeeMore.nativeElement.focus();\r\n } else {\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n if (this.keywordSeeMore) {\r\n this.activeKeywordDropdownIndex = this.keywordSliceIndex;\r\n this.seeLessMoreClicked = true;\r\n this.keywordSeeMore.nativeElement.focus();\r\n } else {\r\n this.activeKeywordDropdownIndex = this.keywordSliceIndex - 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n expandLessCick(type) {\r\n this.seeLessMoreFocused = false;\r\n this.isFromexpandLessCick = true;\r\n if (type === 'specialty') {\r\n this.specialtySliceIndex = this.specialtySliceIndex < this.suggestions?.specialties?.length ? this.suggestions.specialties.length : 3;\r\n this.activeSpecialtyDropdownIndex = this.defaultSliceIndex;\r\n } else if (type === 'provider') {\r\n this.providerSliceIndex = this.providerSliceIndex < this.suggestions?.providers?.length ? this.suggestions.providers.length : 3;\r\n this.activeProviderDropdownIndex = this.defaultSliceIndex;\r\n } else {\r\n this.keywordSliceIndex = this.keywordSliceIndex < this.suggestions?.keywords?.length ? this.suggestions.keywords.length : 3;\r\n this.activeKeywordDropdownIndex = this.defaultSliceIndex;\r\n }\r\n setTimeout(() => {\r\n this.searchElement.nativeElement.focus();\r\n }, 0);\r\n }\r\n\r\n seeLessMoreHover(type) {\r\n if (this.isFromexpandLessCick) {\r\n this.isFromexpandLessCick = false;\r\n return;\r\n }\r\n this.seeLessMoreClicked = true;\r\n this.seeLessMoreFocused = true;\r\n\r\n setTimeout(() => {\r\n this.lastFocusWasFromKeyboard = true;\r\n }, 1000);\r\n if (type === 'specialty') {\r\n this.activeSpecialtyDropdownIndex = this.specialtySliceIndex;\r\n this.specialitySeeMore.nativeElement.focus();\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else if (type === 'provider') {\r\n this.activeProviderDropdownIndex = this.providerSliceIndex;\r\n this.providerSeeMore.nativeElement.focus();\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeKeywordDropdownIndex = this.noSuggestionsSelected;\r\n } else {\r\n this.activeKeywordDropdownIndex = this.keywordSliceIndex;\r\n this.keywordSeeMore.nativeElement.focus();\r\n this.activeSpecialtyDropdownIndex = this.noSuggestionsSelected;\r\n this.activeProviderDropdownIndex = this.noSuggestionsSelected;\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes?.hideProviderSuggestions?.currentValue) {\r\n this.setAutocompleteActive(false);\r\n }\r\n }\r\n\r\n onFocusGained(): void {\r\n this.inputInFocus = true;\r\n }\r\n\r\n onFocusLost(event: FocusEvent | any): void {\r\n if (\r\n (event.target && !this.providerSuggestionsContainer.nativeElement.contains(event.target)) ||\r\n (event.relatedTarget && !this.providerSuggestionsContainer.nativeElement.contains(event.relatedTarget))\r\n ) {\r\n this.inputInFocus = false;\r\n }\r\n }\r\n\r\n getProviderName(provider: Provider): string {\r\n return `${provider.firstName} ${provider.lastName}`;\r\n }\r\n}\r\n","<div class=\"search-quicklinks\">\r\n <div class=\"fad-suggetion-lead-label\">\r\n <span class=\"p p2\">Or choose from these categories:</span>\r\n </div>\r\n <div class=\"link-list\">\r\n <div class=\"mobile-row\">\r\n <div *ngFor=\"let category of quickLinksCategories?.slice(0, 2)\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"quicklinks ; context : {category: category}\"></ng-container>\r\n </div>\r\n </div>\r\n <div class=\"mobile-row\">\r\n <div *ngFor=\"let category of quickLinksCategories?.slice(2)\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"quicklinks ; context : {category: category}\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"quicklinks-divider\"></div>\r\n\r\n<ng-template #quicklinks let-category=\"category\">\r\n <div\r\n class=\"search-quicklinks-item p p2\"\r\n [ngClass]='{\"search-quicklinks-item-icon\": !!category.icon}'\r\n role=\"link\"\r\n (click)=\"quicklinkClick(category)\"\r\n >\r\n <cs-svg-icon *ngIf=\"!!category.icon\" [name]=\"category.icon\"></cs-svg-icon>\r\n <span data-nav-type=\"find a doctor\" data-nav-element=\"fad search suggestion\" data-nav-location=\"fad search initiation\"\r\n >{{ !!category.alternateText ? category.alternateText : category.value }}</span\r\n >\r\n </div>\r\n</ng-template>\r\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { QuickLinksCategories } from 'src/app/models/configuration';\r\n\r\n@Component({\r\n selector: 'cs-fad-lite-quicklinks-search',\r\n templateUrl: './fad-lite-quicklinks-search.component.html',\r\n styleUrls: ['./fad-lite-quicklinks-search.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class FadLiteQuicklinksSearchComponent implements OnInit {\r\n @Output() quicklinkCategoryClick = new EventEmitter<QuickLinksCategories>();\r\n @Input() quickLinksCategories: QuickLinksCategories[] = [];\r\n @Input() quickLinksButtonAlignment = false;\r\n\r\n calcWidth = 'calc(50% - 20px)';\r\n dynamicWidth = '100%';\r\n\r\n ngOnInit(): void { \r\n this.changeButtonAlignment();\r\n }\r\n\r\n quicklinkClick(quickLink: QuickLinksCategories) {\r\n this.quicklinkCategoryClick.emit(quickLink);\r\n }\r\n\r\n changeButtonAlignment() {\r\n document.documentElement.style.setProperty('--width',\r\n this.quickLinksButtonAlignment ? this.dynamicWidth : this.calcWidth);\r\n }\r\n}\r\n","<div class=\"search-fields\">\r\n <div class=\"search-fields-group\" #searchFieldsGroup>\r\n <div class=\"provider-search-field\" #searchInputs>\r\n <cs-fad-lite-provider-search\r\n [searchTerm]=\"keyword\"\r\n [hideProviderSuggestions]=\"hideProviderSuggestions\"\r\n [autoSuggestionLoadingMessage]=\"autoSuggestionLoadingMessage\"\r\n (searchTermChanged)=\"keyword = $event\"\r\n (keywordEnter)=\"keyEnterHandler($event)\"\r\n (goToProviderEvent)=\"goToProvider($event)\"\r\n (specialtyChanged)=\"goToFilters($event)\"\r\n (tabPressedOnProviderSearch)=\"setProviderSearchActive()\"\r\n >\r\n </cs-fad-lite-provider-search>\r\n <cs-fad-lite-location-search\r\n [selectedLocation]=\"selectedLocation\"\r\n [invalidLocation]=\"isValidSearchLocation\"\r\n [autoSuggestionLoadingMessage]=\"autoSuggestionLoadingMessage\"\r\n (setLocation)=\"selectedLocation = $event\"\r\n (locationEnter)=\"getSearchResults()\"\r\n (closeProviderAutoSuggestionContainer)=\"closeProviderAutoSuggestionContainer()\"\r\n ></cs-fad-lite-location-search>\r\n </div>\r\n\r\n <button\r\n data-nav-type=\"find a doctor\"\r\n (click)=\"getSearchResults()\"\r\n data-nav-element=\"fad search button\"\r\n data-nav-location=\"fad search initiation\"\r\n aria-label=\"Search available providers\"\r\n class=\"search-button\"\r\n [ngClass]=\"{'search-btn':showRoundBtn}\"\r\n >\r\n <span *ngIf=\"showSearchBtn\">\r\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31254C2.81252 9.80161 4.82698 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.79811 11.8126 7.31254C11.8126 4.82347 9.79811 2.81252 7.31254 2.81252C4.82347 2.81252 2.81252 4.82698 2.81252 7.31254Z\"\r\n fill=\"white\"\r\n />\r\n </svg>\r\n </span>\r\n <span>{{showRoundBtn}}</span>\r\n </button>\r\n </div>\r\n\r\n <div *ngIf=\"!isValidSearchLocation && selectedLocation?.name !== 'undefined'\" class=\"search-fields-group\">\r\n <div class=\"provider-search-field\">\r\n <div *ngIf=\"!isVMFHMarket\" class=\"no-location-error\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"locationError\"></ng-container>\r\n </div>\r\n <div *ngIf=\"isVMFHMarket\" class=\"no-location-error-vmfh\" tabindex=\"0\">\r\n <ng-container *ngTemplateOutlet=\"locationError\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"provider-role-checkbox\" *ngIf=\"includeProviderRoleTypesCheckbox\">\r\n <cs-provider-role-checkbox [selectCheckBox]=\"includeProviderRoleTypes\" (includeProviderRoleTypes)=\"providerRoleTypesSelected($event)\">\r\n </cs-provider-role-checkbox>\r\n </div>\r\n\r\n <cs-fad-lite-quicklinks-search\r\n (quicklinkCategoryClick)=\"getQuickLinksResults($event)\"\r\n [quickLinksCategories]=\"quickLinksCategories\"\r\n [quickLinksButtonAlignment]=\"quickLinksButtonAlignment\"\r\n *ngIf=\"configShowQuickLinks && showQuicklinks\"\r\n >\r\n </cs-fad-lite-quicklinks-search>\r\n</div>\r\n\r\n<ng-template #locationError>\r\n <span>\r\n <svg viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15 7.5C15 3.3871 11.6129 0 7.5 0C3.35685 0 0 3.3871 0 7.5C0 11.6431 3.35685 15 7.5 15C11.6129 15 15 11.6431 15 7.5ZM7.5 9.0121C8.25605 9.0121 8.89113 9.64718 8.89113 10.4032C8.89113 11.1895 8.25605 11.7944 7.5 11.7944C6.71371 11.7944 6.10887 11.1895 6.10887 10.4032C6.10887 9.64718 6.71371 9.0121 7.5 9.0121ZM6.16935 4.02218C6.13911 3.81048 6.32056 3.62903 6.53226 3.62903H8.4375C8.64919 3.62903 8.83064 3.81048 8.8004 4.02218L8.58871 8.13508C8.55847 8.34677 8.40726 8.46774 8.22581 8.46774H6.74395C6.5625 8.46774 6.41129 8.34677 6.38105 8.13508L6.16935 4.02218Z\"\r\n />\r\n </svg>\r\n </span>\r\n <span class=\"no-location-text\">\r\n We’re unable to recognize this location. Please type a new city or zip in the Location search field.</span\r\n >\r\n</ng-template>\r\n","import { Component, ElementRef, HostListener, Input, OnInit, ViewChild } from '@angular/core';\r\nimport { Params, Router } from '@angular/router';\r\nimport { FacetSummary, FiltersModel } from '../../../models/filters';\r\nimport { LocationConverter, LocationSuggestionResult, SelectedLocation } from '../../../models/location';\r\nimport { Provider } from '../../../models/provider';\r\nimport { CookieService } from '../../../services/cookie.service';\r\nimport { ConfigurationService } from '../../../services/configuration.service';\r\nimport { FadUrlBuilder } from '../../../utils/url/fad-url-builder';\r\nimport { UrlBuilderParams } from '../../../utils/url/url-builder-params';\r\nimport { QuickLinksCategories } from '../../../models/configuration';\r\nimport { LocationService } from '../../../services/location.service';\r\nimport { map } from 'rxjs/operators';\r\nimport { ApiResponse } from 'src/app/utils/api-response';\r\nimport { GlobalParams } from 'src/app/global-params';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\n\r\n@Component({\r\n selector: 'cs-fad-lite-search-input',\r\n templateUrl: './fad-lite-search-input.component.html',\r\n styleUrls: ['./fad-lite-search-input.component.scss']\r\n})\r\nexport class FadLiteSearchInputComponent implements OnInit {\r\n @Input() keyword = '';\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() bookOnline = false;\r\n @Input() showQuicklinks = true;\r\n @Input() filtersModel: FiltersModel;\r\n @Input() fadBaseUrl = '';\r\n @Input() includeProviderRoleTypes = false;\r\n configShowQuickLinks: boolean;\r\n isValidSearchLocation = true;\r\n useNewProviderDetailsRoute;\r\n quickLinksCategories: QuickLinksCategories[] = [];\r\n quickLinksButtonAlignment = false;\r\n isLocationRequired: boolean;\r\n urlPrefix = 'find-a-doctor';\r\n includeProviderRoleTypesCheckbox = false;\r\n providerSearchActive = true;\r\n hideProviderSuggestions = false;\r\n autoSuggestionLoadingMessage = '';\r\n specialitySelected = false;\r\n showSearchBtn:boolean;\r\n showRoundBtn:string;\r\n isVMFHMarket:boolean;\r\n @ViewChild('searchFieldsGroup') searchFieldsGroup: ElementRef;\r\n @ViewChild('searchInputs') searchInputs: ElementRef;\r\n\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent): void {\r\n if (!this.searchInputs.nativeElement.contains(event.target)) {\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = 'none';\r\n } else {\r\n if (window.innerWidth > 767) {\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = '0px 2px 8px rgba(77, 82, 90, 0.3)';\r\n }\r\n if(this.showRoundBtn){\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any): void {\r\n if (event.target.innerWidth < 768) {\r\n this.searchFieldsGroup.nativeElement.style.boxShadow = 'none';\r\n }\r\n }\r\n\r\n constructor(\r\n private router: Router,\r\n private cookieService: CookieService,\r\n private configurationService: ConfigurationService,\r\n private urlBuilder: FadUrlBuilder,\r\n private locationService: LocationService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.configShowQuickLinks = this.configurationService.showquickLinks();\r\n this.useNewProviderDetailsRoute = this.configurationService.UseNewProviderDetailsRoute();\r\n\r\n this.quickLinksCategories = this.configurationService.quickLinksCategories();\r\n this.urlPrefix = this.configurationService.getAemFadUrlPathName();\r\n\r\n if (location.pathname?.includes('/fad-lite')) {\r\n this.urlPrefix = location.pathname.replace('/fad-lite', '');\r\n if (this.urlPrefix.startsWith('/')) {\r\n this.urlPrefix = this.urlPrefix.substring(1);\r\n }\r\n }\r\n this.quickLinksButtonAlignment = this.configurationService.ShowButtonsbyRows();\r\n this.includeProviderRoleTypesCheckbox = this.configurationService.includeProviderRoleCheckBox();\r\n this.autoSuggestionLoadingMessage = this.configurationService.getAutoSuggestionLoadingMessage();\r\n this.showSearchBtn = this.configurationService.showSearchButton();\r\n this.showRoundBtn= this.configurationService.getSearchButton();\r\n this.isVMFHMarket = this.configurationService.getMarketCodes().includes('vmfh');\r\n }\r\n\r\n getQuickLinksResults(quickLink: QuickLinksCategories): void {\r\n switch (quickLink.type.toLowerCase()) {\r\n case 'keywords':\r\n this.quickLinksKeywordsSearch(quickLink);\r\n break;\r\n case 'specialities':\r\n this.quickLinksSpecialitiesSearch(quickLink.value);\r\n break;\r\n case 'affiliations':\r\n this.quickLinksHospitalAffiliationsSearch(quickLink.value);\r\n break;\r\n default:\r\n this.quickLinksSearch(quickLink);\r\n break;\r\n }\r\n }\r\n\r\n private quickLinksKeywordsSearch(quickLink: QuickLinksCategories) {\r\n this.resetAndSetKeywords(quickLink.value);\r\n const queryParams: Params = {};\r\n this.filterQuickLinkMedGroups(quickLink.medGroup);\r\n this.buildSearchAndNavigate(queryParams);\r\n }\r\n\r\n private quickLinksSpecialitiesSearch(specialties: string) {\r\n this.resetAndSetKeywords('');\r\n const queryParams: Params = {};\r\n if (specialties.includes('|')) {\r\n queryParams.specialties = specialties;\r\n this.buildSearchAndNavigate(queryParams);\r\n } else {\r\n this.keyword = specialties;\r\n this.buildSearchAndNavigate(queryParams, true);\r\n }\r\n }\r\n\r\n private quickLinksHospitalAffiliationsSearch(affiliations: string) {\r\n this.resetAndSetKeywords('');\r\n const queryParams: Params = {};\r\n\r\n queryParams.affiliations = affiliations.replace('\\'', '');\r\n\r\n this.buildSearchAndNavigate(queryParams);\r\n }\r\n\r\n private quickLinksSearch(quickLink: QuickLinksCategories) {\r\n const quickLinkType= quickLink?.type;\r\n this.resetAndSetKeywords('');\r\n const queryParams: Params = {};\r\n if (quickLinkType === 'videovisits') {\r\n queryParams.videovisits = true;\r\n }\r\n if (quickLinkType === 'bookonline') {\r\n queryParams.bookonline = true;\r\n }\r\n if (quickLinkType === 'acceptingnew') {\r\n queryParams.acceptingnew = true;\r\n this.filterQuickLinkMedGroups(quickLink.medGroup);\r\n }\r\n this.buildSearchAndNavigate(queryParams);\r\n }\r\n\r\n\r\n filterQuickLinkMedGroups(medgroups: string[]): void{\r\n if (medgroups && medgroups.length > 1) {\r\n const selectedMedGroups: FacetSummary[] = [];\r\n medgroups.forEach(medgroup=> {\r\n const selectedMedgroup: FacetSummary = {\r\n name: medgroup,\r\n count: 0,\r\n selected: true\r\n };\r\n selectedMedGroups.push(selectedMedgroup);\r\n });\r\n this.filtersModel.providerMedicalGroup = selectedMedGroups;\r\n }\r\n }\r\n\r\n /**\r\n * The way this is written, it's possible to double navigate. It would be better to have one thing that builds up the urls,\r\n * and only navigate once. Do not call navigate more than once in the method.\r\n */\r\n\r\n keyEnterHandler(value): void {\r\n this.specialitySelected = false;\r\n this.getSearchResults(value);\r\n }\r\n\r\n getSearchResults(searchTerm = ''): void {\r\n this.isValidSearchLocation=true;\r\n this.resetAndSetKeywords(searchTerm !== '' ? searchTerm : this.keyword);\r\n const queryParams: Params = {};\r\n\r\n if (this.keyword.trim().toLowerCase().replace(/\\s/g, '') === 'videovisits') {\r\n queryParams.videovisits = true;\r\n this.keyword = '';\r\n }\r\n\r\n if (\r\n this.selectedLocation?.city &&\r\n this.selectedLocation?.state &&\r\n this.filtersModel.providerMedicalGroup &&\r\n this.filtersModel.providerMedicalGroup.length > 0\r\n ) {\r\n queryParams.location = `${this.selectedLocation.city.toLowerCase()}-${this.selectedLocation.state.toLowerCase()}`;\r\n } else if (this.selectedLocation?.name && this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n queryParams.location = `${this.selectedLocation.name.toLowerCase()}`;\r\n }\r\n\r\n if (\r\n this.keyword.trim().toLowerCase().replace(/\\s/g, '') === 'bookonline' ||\r\n this.keyword.trim().toLowerCase().replace(/\\s/g, '') === 'onlinescheduling'\r\n ) {\r\n queryParams.bookonline = true;\r\n this.keyword = '';\r\n }\r\n if (this.keyword.trim().toLowerCase().replace(/\\s/g, '') === 'acceptingnewpatients') {\r\n queryParams.acceptingnew = true;\r\n this.keyword = '';\r\n }\r\n if (this.includeProviderRoleTypes) {\r\n queryParams.includeProviderRoleTypes = this.includeProviderRoleTypes;\r\n }\r\n this.filtersModel.pageNumber = 1;\r\n if(this.specialitySelected) {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n }\r\n this.buildSearchAndNavigate(queryParams, this.specialitySelected);\r\n }\r\n\r\n goToProvider($event: Provider): void {\r\n if (this.useNewProviderDetailsRoute) {\r\n this.navigateToFad(\r\n `/${\r\n this.urlPrefix\r\n }/${$event.primarySpecialty.makeURLFriendly()}/${$event.firstName.makeURLFriendly()}-${$event.lastName.makeURLFriendly()}-${\r\n $event.npi\r\n }`\r\n );\r\n return;\r\n }\r\n this.navigateToFad(`/${this.urlPrefix}/${$event.npi}-${$event.firstName.makeURLFriendly()}-${$event.lastName.makeURLFriendly()}`);\r\n }\r\n\r\n private resetAndSetKeywords(keywords: string) {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n this.keyword = keywords;\r\n if (!this.filtersModel?.providerMedicalGroup) {\r\n this.filtersModel = new FiltersModel(this.configurationService);\r\n }\r\n }\r\n\r\n private buildSearchAndNavigate(queryParams: Params, specialtySearch = false) {\r\n if (!this.selectedLocation?.name) {\r\n this.isLocationRequired = this.configurationService.getLocationRequiredDefaultValue();\r\n if (this.isLocationRequired) {\r\n this.selectedLocation = LocationConverter.convertTo(this.cookieService.getLocationCookieFromBrowser());\r\n if (!this.selectedLocation) {\r\n this.locationService\r\n .getLocationByIP()\r\n .pipe(\r\n map((response) => LocationConverter.convertTo(response.result.location))\r\n )\r\n .subscribe((defaultLocation) => {\r\n this.selectedLocation = defaultLocation;\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n });\r\n } else {\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n }\r\n } else {\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n }\r\n } else {\r\n this.validateLocation(queryParams, this.selectedLocation, specialtySearch);\r\n }\r\n }\r\n\r\n private validateLocation(queryParams: Params, location: SelectedLocation, specialtySearch = false): void {\r\n if (!!location && location?.name !== '') {\r\n this.locationService\r\n .getTypedLocationSuggestions(location.name)\r\n .subscribe((suggestionResponse: ApiResponse<LocationSuggestionResult[]>) => {\r\n GlobalParams.isNeighborhoodSearch = this.checkForNeighborhoodLocation(location);\r\n\r\n if (suggestionResponse.isValid && suggestionResponse.result.length > 0) {\r\n this.isValidSearchLocation = true;\r\n this.navigateRoute(queryParams, this.selectedLocation, specialtySearch);\r\n } else {\r\n this.isValidSearchLocation = false;\r\n }\r\n });\r\n } else if ((location === undefined || location?.name === '' || location == null) && !this.isLocationRequired) {\r\n this.isValidSearchLocation = true;\r\n this.navigateRoute(queryParams, this.selectedLocation, specialtySearch);\r\n } else {\r\n this.isValidSearchLocation = false;\r\n }\r\n }\r\n\r\n private navigateRoute(queryParams: Params, location: SelectedLocation, specialtySearch = false): void {\r\n this.cookieService.addLocationCookieToBrowser(location);\r\n let url = '';\r\n if (this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n url = this.urlBuilder.build(\r\n {\r\n medGroup:\r\n this.filtersModel.providerMedicalGroup?.length > 1\r\n ? this.filtersModel.providerMedicalGroup.map((x) => x.name).join('|')\r\n : this.filtersModel.providerMedicalGroup[0].name,\r\n searchTerm: specialtySearch ? null : this.keyword,\r\n selectedLocation: location,\r\n specialty: specialtySearch ? this.keyword : null\r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n );\r\n } else {\r\n url = this.urlBuilder.build(\r\n {\r\n medGroup: '',\r\n searchTerm: specialtySearch ? null : this.keyword,\r\n selectedLocation: location,\r\n specialty: specialtySearch ? this.keyword : null\r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n ); \r\n }\r\n\r\n if (specialtySearch) {\r\n this.keyword = '';\r\n }\r\n if (url.startsWith('/')) {\r\n this.navigateToFad(this.urlPrefix + url, queryParams);\r\n } else {\r\n this.navigateToFad(this.urlPrefix + '/' + url, queryParams);\r\n }\r\n }\r\n\r\n navigateToFad(url: string, queryParams: Params = null): void {\r\n const paramString = queryParams\r\n ? Object.entries(queryParams)\r\n .map((pair) => pair.map(encodeURIComponent).join('='))\r\n .join('&')\r\n : null;\r\n const finalUrl = url + (paramString ? '?' + paramString : '');\r\n window.location.href = finalUrl;\r\n }\r\n\r\n goToFilters($event): void {\r\n this.filtersModel = new FiltersModel(this.configurationService);\r\n this.keyword = `${$event}`;\r\n this.specialitySelected = true;\r\n }\r\n\r\n checkForNeighborhoodLocation(location: SelectedLocation): boolean {\r\n if (location.neighborhood || (location.name && location.name.split(',').length >= 3)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n providerRoleTypesSelected($event: boolean): void {\r\n this.includeProviderRoleTypes = $event;\r\n sessionStorage.setItem('includeProviderRoleTypes', String($event));\r\n this.getSearchResults();\r\n }\r\n\r\n setProviderSearchActive(): void {\r\n this.providerSearchActive = true;\r\n this.hideProviderSuggestions = false;\r\n }\r\n\r\n closeProviderAutoSuggestionContainer(): void {\r\n if(this.providerSearchActive) {\r\n this.hideProviderSuggestions = true;\r\n }\r\n }\r\n}\r\n","import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FadLiteSearchLandingComponent } from './fad-lite-search-landing.component';\r\nimport { SharedModule } from 'src/app/components/shared.module';\r\nimport { FadLiteLocationSearchComponent } from 'src/app/components/fad-lite/fad-lite-location-search/fad-lite-location-search.component';\r\nimport { FadLiteProviderSearchComponent } from 'src/app/components/fad-lite/fad-lite-provider-search/fad-lite-provider-search.component';\r\nimport { FadLiteQuicklinksSearchComponent } from 'src/app/components/fad-lite/fad-lite-quicklinks-search/fad-lite-quicklinks-search.component';\r\nimport { FadLiteSearchInputComponent } from 'src/app/components/fad-lite/fad-lite-search-input/fad-lite-search-input.component';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@NgModule({\r\n declarations: [FadLiteSearchLandingComponent,\r\n FadLiteLocationSearchComponent,\r\n FadLiteProviderSearchComponent,\r\n FadLiteQuicklinksSearchComponent,\r\n FadLiteSearchInputComponent],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n FormsModule,\r\n RouterModule.forChild([\r\n {\r\n path: '',\r\n component: FadLiteSearchLandingComponent\r\n }\r\n ])\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class FadLiteSearchLandingModule {}\r\n","<div id=\"divFindDoctorVisit\" class=\"fad-widget\" [class]=\"{ 'fad-widget-single-column': singleColumn }\">\r\n <div class=\"search-box-module our-doctors\">\r\n <div class=\"search-box-heading\">\r\n <svg viewBox=\"0 0 75 75\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M59.7991 21.6244C59.6667 21.7841 59.526 21.937 59.4034 22.1042C57.2151 25.0872 57.4347 29.3529 59.9161 32.0749C60.6883 32.9218 60.9659 33.894 60.5936 35.0104C60.0351 36.6852 58.2141 37.1155 57.0061 35.8563C55.5572 34.3456 54.5301 32.561 54.0092 30.5154C52.7598 25.6075 53.6539 21.189 57.1476 17.5084C59.331 15.208 62.0657 14.1716 65.1989 14.4746C67.9501 14.7407 70.2084 16.0606 71.9927 18.2028C74.1596 20.8046 75.113 23.8555 74.9894 27.265C74.8716 30.5051 73.7679 33.3363 71.6051 35.7138C70.8262 36.5699 69.9249 36.7864 69.0468 36.3393C68.1649 35.89 67.6051 34.7104 67.7763 33.6792C67.8779 33.0659 68.1385 32.5485 68.5609 32.0971C71.2626 29.2095 71.3074 24.4373 68.6627 21.4953C68.4199 21.2252 68.1382 20.992 67.8194 20.786C67.8518 20.8448 67.8761 20.9109 67.9178 20.9619C69.4949 22.8887 69.1366 26.2401 67.0093 27.758C66.6236 28.0333 66.5006 28.3479 66.5014 28.8188C66.5143 36.4194 66.538 44.0202 66.5051 51.6208C66.4588 62.3566 58.9143 71.9615 48.7209 74.3623C46.4273 74.9024 44.1097 75.1106 41.775 74.944C36.6607 74.5792 32.1295 72.6783 28.2377 69.2425C24.353 65.813 21.8822 61.4898 20.7241 56.3709C20.3695 54.804 20.2491 53.2073 20.231 51.6009C20.2238 50.9592 20.1937 50.3178 20.1865 49.6761C20.1838 49.4311 20.1121 49.3245 19.8499 49.292C16.7647 48.9107 13.861 47.938 11.1982 46.2939C5.39681 42.7116 1.78396 37.5062 0.458126 30.6729C0.208127 29.3844 0.158217 28.0552 0.0071386 26.7458C-0.0372258 26.3609 0.125993 26.2704 0.474463 26.274C2.57248 26.2948 4.67079 26.3048 6.76896 26.2962C7.12597 26.2946 7.22594 26.3971 7.24048 26.7666C7.37252 30.1373 8.32951 33.2247 10.3781 35.8914C12.8195 39.0696 15.9359 41.1776 19.8581 41.8562C28.9398 43.4279 36.0255 37.1728 37.5889 29.8229C37.8087 28.789 37.8589 27.7172 37.9868 26.6627C37.9989 26.5632 38.0036 26.4626 38.0136 26.3396H45.1851C45.1452 27.091 45.1347 27.8195 45.0632 28.5416C44.8131 31.0701 44.2631 33.5304 43.19 35.8262C39.9598 42.7361 34.7566 47.1711 27.4543 48.9188C26.7398 49.09 26.0093 49.1929 25.2831 49.3077C25.0886 49.3384 25.0035 49.3908 24.9951 49.6096C24.7806 55.2398 26.3074 60.2352 30.1763 64.3309C32.9314 67.2473 36.2689 69.1006 40.1896 69.7756C45.7135 70.7268 50.6786 69.3741 55.0116 65.7633C58.5952 62.7772 60.7379 58.8749 61.45 54.1807C61.6087 53.1338 61.6679 52.0616 61.6706 51.0007C61.6904 43.5541 61.6808 36.1074 61.6918 28.6607C61.6924 28.2772 61.587 28.033 61.276 27.7993C59.4569 26.4316 58.8485 24.1005 59.7256 21.9716C59.768 21.8685 59.8084 21.7645 59.8497 21.661C59.8328 21.6488 59.8159 21.6366 59.7991 21.6244Z\"\r\n />\r\n <path\r\n d=\"M5.6905 28.8366H3.36703C2.39669 28.8366 1.42589 28.8192 0.456003 28.8457C0.104526 28.8553 -0.00345791 28.7272 8.38358e-05 28.3377C0.0139345 26.8217 0.00546514 25.3055 0.00546514 23.7893V11.431C0.00546514 7.18241 1.96581 4.22552 5.57828 3.06377C6.13166 2.88594 6.71363 2.82501 7.27593 2.67859C7.48191 2.62503 7.73131 2.53852 7.85547 2.36807C8.85848 0.991583 10.1712 0.269956 11.6962 0.0600246C13.1834 -0.144414 14.5899 0.169024 15.8968 1.06711C18.7324 3.01605 18.8608 7.11031 16.1341 9.28876C13.6213 11.2962 9.80841 10.8599 7.89374 8.22039C7.82023 8.11929 7.62983 8.04599 7.5173 8.07534C6.67294 8.29557 5.64589 9.19229 5.66056 10.5909C5.69716 14.0662 5.67039 17.5423 5.67341 21.0181C5.67538 23.4341 5.6846 25.8503 5.6905 28.2665C5.6908 28.4357 5.6905 28.6048 5.6905 28.8366Z\"\r\n />\r\n <path\r\n d=\"M38.2731 19.3287C38.2729 16.4544 38.2458 13.5794 38.2846 10.7058C38.3037 9.29725 37.447 8.41537 36.4893 8.08043C36.2919 8.01142 36.1604 8.06155 36.0076 8.25743C34.6093 10.0514 32.8246 10.7015 30.7633 10.4926C29.5838 10.3729 28.5172 9.91389 27.5857 9.07733C25.252 6.98173 25.2935 3.41352 27.6709 1.3823C29.8748 -0.500606 33.1673 -0.456486 35.3168 1.49371C35.5512 1.70641 35.7964 1.93336 35.9579 2.21267C36.1754 2.58847 36.4723 2.65301 36.8181 2.70366C39.026 3.02709 40.9341 4.03189 42.406 5.97779C43.4206 7.31872 43.9208 8.88575 43.9168 10.6586C43.9154 11.302 43.9156 11.9456 43.9172 12.5891C43.9302 17.8218 43.9395 23.0547 43.9648 28.2873C43.9668 28.7067 43.891 28.853 43.4928 28.8462C41.9102 28.8179 40.3269 28.8253 38.744 28.8413C38.383 28.8451 38.2648 28.7086 38.2666 28.2952C38.2788 25.3064 38.2732 22.3176 38.2731 19.3287Z\"\r\n />\r\n </svg>\r\n <h1 class=\"heading-text\">{{ landingPageHeader }}</h1>\r\n </div>\r\n <div class=\"search-fields\">\r\n <div class=\"search-fields-group\" #searchFieldsGroup>\r\n <div class=\"provider-search-field\" #searchInputs>\r\n <cs-provider-search\r\n [searchTerm]=\"keyword\"\r\n (searchTermChanged)=\"keyword = $event\"\r\n (keywordEnter)=\"getSearchResults()\"\r\n (goToProviderEvent)=\"reloadProviderEvent($event)\"\r\n >\r\n </cs-provider-search>\r\n <cs-location-search\r\n [selectedLocation]=\"selectedLocation\"\r\n (setLocation)=\"selectedLocation = $event\"\r\n (locationEnter)=\"getSearchResults()\"\r\n ></cs-location-search>\r\n </div>\r\n\r\n <button\r\n data-nav-type=\"find a doctor\"\r\n (click)=\"getSearchResults()\"\r\n data-nav-element=\"fad search button\"\r\n data-nav-location=\"fad search initiation\"\r\n aria-label=\"Search available providers\"\r\n class=\"search-button\"\r\n >\r\n <span>\r\n <svg width=\"18\" height=\"19\" viewBox=\"0 0 18 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31254C2.81252 9.80161 4.82698 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.79811 11.8126 7.31254C11.8126 4.82347 9.79811 2.81252 7.31254 2.81252C4.82347 2.81252 2.81252 4.82698 2.81252 7.31254Z\"\r\n fill=\"white\"\r\n />\r\n </svg>\r\n </span>\r\n </button>\r\n </div>\r\n <cs-quicklinks-search (quicklinkCategoryClick)=\"getSearchResults($event)\" *ngIf=\"configShowQuickLinks && showQuicklinks\">\r\n </cs-quicklinks-search>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, Input, OnInit, ViewChild, ElementRef, HostListener } from '@angular/core';\r\nimport { Location } from '@angular/common';\r\nimport { SelectedLocation } from '../../models/location';\r\nimport { FiltersModel } from '../../models/filters';\r\nimport { Params, Router } from '@angular/router';\r\nimport { CookieService } from '../../services/cookie.service';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { FadUrlBuilder } from '../../utils/url/fad-url-builder';\r\nimport { UrlBuilderParams } from '../../utils/url/url-builder-params';\r\nimport { QuickLinksCategories } from '../../../app/models/configuration';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\n\r\n@Component({\r\n selector: 'cs-find-doctor-widget',\r\n templateUrl: './find-doctor-widget.component.html',\r\n styleUrls: ['./find-doctor-widget.component.scss']\r\n})\r\nexport class FindDoctorWidgetComponent implements OnInit {\r\n landingPageHeader: string;\r\n\r\n @Input() singleColumn: boolean;\r\n @Input() configurationUrl = './fad-configuration.json';\r\n @Input() fadBaseUrl = '';\r\n @Input() referringUrl = '';\r\n @Input() showGuidedFlow: string | boolean = false;\r\n @Input() keyword = '';\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() bookOnline = false;\r\n @Input() showQuicklinks = true;\r\n // Would anyone really pass a filters model in the input?\r\n @Input() filtersModel: FiltersModel;\r\n searchFieldsGroup: HTMLElement;\r\n configShowQuickLinks: boolean;\r\n quickLinksCategories: QuickLinksCategories[] = [];\r\n\r\n @ViewChild('searchInputs') searchInputs: ElementRef;\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n this.searchFieldsGroup = document.querySelector('div.search-fields-group');\r\n if (this.searchFieldsGroup?.style) {\r\n if (!this.searchInputs.nativeElement.contains(event.target)) {\r\n this.searchFieldsGroup.style.boxShadow = 'none';\r\n } else {\r\n if (window.innerWidth > 767) {\r\n this.searchFieldsGroup.style.boxShadow = '0px 2px 8px rgba(77, 82, 90, 0.3)';\r\n }\r\n }\r\n }\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any) {\r\n this.searchFieldsGroup = document.querySelector('div.search-fields-group');\r\n if (this.searchFieldsGroup?.style) {\r\n if (event.target.innerWidth < 768) {\r\n this.searchFieldsGroup.style.boxShadow = 'none';\r\n }\r\n }\r\n }\r\n\r\n constructor(\r\n private location: Location,\r\n private configurationService: ConfigurationService,\r\n private router: Router,\r\n private cookieService: CookieService,\r\n private urlBuilder: FadUrlBuilder\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.searchFieldsGroup = document.querySelector('div.search-fields-group');\r\n this.configShowQuickLinks = this.configurationService.showquickLinks();\r\n this.landingPageHeader = this.configurationService.getLandingPageHeader();\r\n\r\n this.quickLinksCategories = this.configurationService.quickLinksCategories();\r\n }\r\n\r\n getSearchResults(searchTerm = ''): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.LocationSessionId);\r\n this.keyword = searchTerm !== '' ? searchTerm : this.keyword;\r\n const existingMedGroup = this.filtersModel?.providerMedicalGroup;\r\n const existingOnlineBooking = this.filtersModel?.onlineSchedulingApplied;\r\n this.filtersModel = new FiltersModel(this.configurationService);\r\n this.filtersModel.providerMedicalGroup = this.filtersModel.selectedMedicalGroup = existingMedGroup;\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle = existingOnlineBooking;\r\n\r\n if (this.selectedLocation) {\r\n this.cookieService.addLocationCookieToBrowser(this.selectedLocation);\r\n }\r\n let url = '';\r\n\r\n if (this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n url = this.urlBuilder.build(\r\n {\r\n medGroup: this.filtersModel.providerMedicalGroup.length > 1 ? this.filtersModel.providerMedicalGroup.map(x=>x.name).join('|')\r\n : this.filtersModel.providerMedicalGroup[0].name,\r\n searchTerm: this.keyword,\r\n selectedLocation: this.selectedLocation\r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n );\r\n } else {\r\n url = this.urlBuilder.build(\r\n {\r\n medGroup: '',\r\n searchTerm: this.keyword,\r\n selectedLocation: this.selectedLocation\r\n } as UrlBuilderParams,\r\n this.fadBaseUrl\r\n );\r\n }\r\n\r\n const queryParams: Params = {};\r\n if (this.filtersModel.providerMedicalGroup?.length > 0 && this.selectedLocation?.city && this.selectedLocation?.state) {\r\n queryParams.location = `${this.selectedLocation.city.toUrlFriendly()}-${this.selectedLocation.state.toUrlFriendly()}`;\r\n }\r\n if(this.filtersModel.providerMedicalGroup?.length > 1) {\r\n queryParams.medgroup = this.filtersModel.providerMedicalGroup.map(x=>x.name).join('|').toString();\r\n }\r\n const queryParamsString = Object.keys(queryParams)\r\n .map((key) => `${key}=${queryParams[key]}`)\r\n .join('&');\r\n this.navigatePage(queryParamsString ? `${url}?${queryParamsString}` : url);\r\n }\r\n\r\n navigatePage(url: string) {\r\n window.location.href = url;\r\n }\r\n\r\n reloadProviderEvent($event) {\r\n window.location.href = `${this.fadBaseUrl}/${$event.npi}-${$event.firstName.makeURLFriendly()}-${$event.lastName.makeURLFriendly()}`;\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { SharedModule } from 'src/app/components/shared.module';\r\nimport { FindDoctorWidgetComponent } from './find-doctor-widget.component';\r\n\r\n@NgModule({\r\n declarations: [FindDoctorWidgetComponent],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n RouterModule.forChild([\r\n {\r\n path: '',\r\n component: FindDoctorWidgetComponent\r\n }\r\n ])\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class FindDoctorWidgetModule {}\r\n","<div *ngIf=\"showUpdatedProviderDetailPageUX\">\r\n <div class=\"cs-provider-nonprintable\">\r\n <cs-scroll-to-top *ngIf=\"!isMyChart && !isCerner\" [windowScrolled]=\"false\"></cs-scroll-to-top>\r\n <div class=\"provider-details-content\">\r\n <dhcl-loading-spinner [showSpinner]=\"!apiResponse\" id=\"dhclLoadingSpinner\"></dhcl-loading-spinner>\r\n <div class=\"provider-details-container\" *ngIf=\"provider\">\r\n <div class=\"title-container\">\r\n <div class=\"detail-nav-btn\">\r\n <cs-provider-details-navigation\r\n [referringUrl]=\"referringUrl\"\r\n [redirectFromFAL]=\"redirectFromFAL\"\r\n *ngIf=\"searchResultsOrigin || referringUrl || showBacktoLoctionSearchBtn\"\r\n >\r\n </cs-provider-details-navigation>\r\n </div>\r\n <div class=\"detail-nav-header\">\r\n <h1>{{ provider.displayFullName }}</h1>\r\n </div>\r\n </div>\r\n <div class=\"provider-panel\">\r\n <div class=\"left-panel shadow-break\">\r\n <ul class=\"nav-bar\">\r\n <li *ngFor=\"let name of navList\">\r\n <a\r\n tabindex=\"0\"\r\n role=\"button\"\r\n (keydown.enter)=\"navigateToSection(name.routeName)\"\r\n (keydown.space)=\"navigateToSection(name.routeName)\"\r\n (click)=\"navigateToSection(name.routeName)\"\r\n >{{name.routeName}}</a\r\n >\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"right-panel\">\r\n <cs-provider-details-card\r\n [provider]=\"provider\"\r\n [providerImage]=\"providerImage\"\r\n [logoUrls]=\"logoUrls\"\r\n [providerSpecialities]=\"providerSpecialities\"\r\n [nonSEOSecondarySpecialities]=\"nonSEOSecondarySpecialities\"\r\n [ratingTooltipText]=\"ratingTooltipText\"\r\n [showNumReviews]=\"showNumReviews\"\r\n [showRatingText]=\"showRatingText\"\r\n [officeAddresses]=\"officeAddresses\"\r\n [showRating]=\"showStarRatingsForProviderHero\"\r\n [isSchedulable]=\"enableScheduleToAppointmentButton\"\r\n (scheduleProvider)=\"scheduleProviderHandler($event)\"\r\n ></cs-provider-details-card>\r\n </div>\r\n </div>\r\n <div class=\"provider-panel\">\r\n <div class=\"left-panel\">\r\n <cs-schedule-an-appointment\r\n [onlineSchedulingType]=\"onlineSchedulingType\"\r\n [srcUrl]=\"srcUrl\"\r\n [provider]=\"provider\"\r\n [selectedOfficeAddress]=\"selectedOfficeAddress\"\r\n [showDocAsap]=\"showDocAsap\"\r\n [showGuidedFlow]=\"showGuidedFlow\"\r\n [showNewSchedulingApp]=\"showNewSchedulingApp\"\r\n [enableScheduleToAppointmentButton]=\"enableScheduleToAppointmentButton\"\r\n [facets]=\"facets\"\r\n (selectedOfficeChanged)=\"handleSelectedOfficeChanged($event)\"\r\n [docAsapId]=\"docAsapId\"\r\n [olsDepartmentId]=\"olsDepartmentId\"\r\n [olsProviderId]=\"olsProviderId\"\r\n [olsBlockIt]=\"olsBlockIt\"\r\n *ngIf=\"(provider.offices?.length > 0 || (docAsapId && showDocAsap) || (olsDepartmentId && olsProviderId && showDocAsap) || (olsBlockIt && showDocAsap)) && isSchedulingVisible\"\r\n >\r\n </cs-schedule-an-appointment>\r\n </div>\r\n <div class=\"right-panel\">\r\n <div class=\"badges-container\" *ngIf=\"provider\">\r\n <div>\r\n <cs-badges [provider]=\"provider\" [isUpdatedProviderDetails]=\"showUpdatedProviderDetailPageUX\"></cs-badges>\r\n </div>\r\n <div class=\"print\" *ngIf=\"showPrintablePdf\" (click)=\"printPage()\">\r\n <a\r\n ><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M19.2545 8.31169H16.9498V5.81818C16.9498 5.61039 16.8777 5.4026 16.7337 5.22078L12.1001 0.233766C11.9561 0.077922 11.764 0 11.5479 0H3.8413C3.40916 0 3.07304 0.363636 3.07304 0.831169V8.33766H0.768261C0.336114 8.33766 0 8.7013 0 9.16883V15.8442C0 16.3117 0.336114 16.6753 0.768261 16.6753H3.07304V19.1688C3.07304 19.6364 3.40916 20 3.8413 20H16.1575C16.5896 20 16.9257 19.6364 16.9257 19.1688V16.6753H19.2305C19.6627 16.6753 19.9988 16.3117 19.9988 15.8442V9.14286C20.0228 8.67532 19.6867 8.31169 19.2545 8.31169ZM12.3162 2.83117L14.3089 4.98701H12.3162V2.83117ZM4.60957 1.63636H9.21913C10.0594 1.63636 10.7557 2.38961 10.7557 3.2987V5.81818C10.7557 6.28571 11.0918 6.64935 11.5239 6.64935H15.3652V8.31169H4.60957V1.63636ZM15.4132 18.3117H4.60957V15.8961H15.3892V18.3117H15.4132Z\"\r\n fill=\"#0071C2\"\r\n />\r\n </svg>\r\n <span>Print</span></a\r\n >\r\n </div>\r\n </div>\r\n <div class=\"info-line-break\"></div>\r\n <cs-get-to-know\r\n [provider]=\"provider\"\r\n [videoId]=\"videoId\"\r\n (callAdobeService)=\"onStateChange(provider)\"\r\n *ngIf=\"displayGetToKnowSection()\"\r\n [getToKnowContent]=\"getToKnowContent\"\r\n [isShowProviderVideo]=\"isShowProviderVideo\"\r\n [showHospitalAffiliations]=\"showHospitalAffiliations\"\r\n [inMyOwnWordsTitle]=\"inMyOwnWordsTitle\"\r\n [hideExtraPhilosophyContent]=\"hideExtraPhilosophyContent\"\r\n [showMoreLessButtonForPhilosophy]=\"showMoreLessButtonForPhilosophy\"\r\n [hideExtraOwnwordsContent]=\"hideExtraOwnwordsContent\"\r\n [showMoreLessButtonForOwnwords]=\"showMoreLessButtonForOwnwords\"\r\n [isUpdatedProviderDetails]=\"showUpdatedProviderDetailPageUX\"\r\n [routId]=\"'About'\"\r\n >\r\n </cs-get-to-know>\r\n <cs-expandable-list\r\n *ngIf=\"provider.insuranceCarriers.length > 0\"\r\n [sectionTitle]=\"'Insurance carriers accepted'\"\r\n [listItems]=\"provider.insuranceCarriers\"\r\n [isInsuranceSection]=\"true\"\r\n [routId]=\"'Insurance'\"\r\n ></cs-expandable-list>\r\n <cs-credentials\r\n [provider]=\"provider\"\r\n [educationArray]=\"educationArray\"\r\n [memberships]=\"memberships\"\r\n *ngIf=\"displayCredentialsSection()\"\r\n ></cs-credentials>\r\n <cs-expandable-list\r\n *ngIf=\"provider.awards.length > 0\"\r\n [sectionTitle]=\"'Awards and recognitions'\"\r\n [listItems]=\"provider.awards\"\r\n [isAwardsSection]=\"true\"\r\n ></cs-expandable-list>\r\n <cs-locations-list\r\n [provider]=\"provider\"\r\n [centerPoint]=\"selectedOfficeAddress\"\r\n [officeAddresses]=\"officeAddresses\"\r\n [showMoreLessButton]=\"showMoreLessButtonForLocationList\"\r\n [hideExtraContent]=\"hideExtraContentForLocationList\"\r\n [isDesktopViewport]=\"isDesktopViewportForLocationList\"\r\n [hasMoreThanOneOffice]=\"hasMoreThanOneOffice\"\r\n [divisionCodes]=\"divisionCodes\"\r\n (selectedOfficeChanged)=\"handleSelectedOfficeChanged($event)\"\r\n *ngIf=\"officeAddresses?.length > 0\"\r\n [isUpdatedProviderDetails]=\"showUpdatedProviderDetailPageUX\"\r\n [routId]=\"'Locations'\"\r\n >\r\n </cs-locations-list>\r\n <div class=\"patients-saying-section\">\r\n <cs-provider-comments\r\n [provider]=\"provider\"\r\n [ratingFooterText]=\"ratingFooterText\"\r\n [ratingsFooterLinkText]=\"ratingsFooterLinkText\"\r\n [ratingsFooterLink]=\"ratingsFooterLink\"\r\n [isShowProviderReviews]=\"isShowProviderReviews\"\r\n [commentsArrayLength]=\"commentsArrayLength\"\r\n [showMoreLessButton]=\"showMoreLessButton\"\r\n [isMobileView]=\"resizeService.isMobileViewport\"\r\n *ngIf=\"hasRatingsData(provider)\"\r\n [isUpdatedProviderDetails]=\"showUpdatedProviderDetailPageUX\"\r\n [routId]=\"'Reviews'\"\r\n >\r\n </cs-provider-comments>\r\n </div>\r\n <div class=\"speciality\" id=\"Specialties\">\r\n <cs-expandable-list *ngIf=\"provider.specialties.length > 0\" [sectionTitle]=\"'Specialties'\" [listItems]=\"provider.specialties\">\r\n </cs-expandable-list>\r\n <cs-expandable-list\r\n *ngIf=\"provider.procedures.length > 0\"\r\n [sectionTitle]=\"'Procedures performed'\"\r\n [listItems]=\"provider.procedures\"\r\n ></cs-expandable-list>\r\n <cs-expandable-list\r\n *ngIf=\"provider.conditions.length > 0\"\r\n [sectionTitle]=\"'Conditions treated'\"\r\n [listItems]=\"provider.conditions\"\r\n ></cs-expandable-list>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <cs-error-page *ngIf=\"errorMessage !=''\" [errorMessage]=\"errorMessage\"></cs-error-page>\r\n </div>\r\n <div class=\"disclaimer-container fad-col-sm-12\" *ngIf=\"!searchResultsOrigin && configurationUrl.includes('media')\">\r\n <cs-disclaimer [disclaimer]=\"disclaimer\"></cs-disclaimer>\r\n </div>\r\n </div>\r\n <dhcl-modal\r\n *ngIf=\"onlineSchedulingType === 'GuidedFlow' && launchGuidedFlow && guidedFlowProvider\"\r\n [alignTop]=\"true\"\r\n [customClass]=\"getCernerClass('guided-flow-modal')\"\r\n [closeOnOverlay]=\"false\"\r\n [show]=\"true\"\r\n (closeClicked)=\"closeScheduleModal()\"\r\n role=\"dialog\"\r\n aria-labelledby=\"stepTitle\"\r\n >\r\n <div *ngIf=\"isCernerPage\">\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"guidedFlowProvider\"\r\n [facets]=\"[]\"\r\n [npi]=\"guidedFlowProvider.npi\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [baseUrl]=\"bookingApptBaseUrl_Cerner\"\r\n [handleNavigateToSchedulingSpa]=\"true\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"closeScheduleModal()\"\r\n >\r\n </dhgf-guided-flow>\r\n </div>\r\n <div *ngIf=\"!isCernerPage\">\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"guidedFlowProvider\"\r\n [facets]=\"[]\"\r\n [npi]=\"guidedFlowProvider.npi\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [handleNavigateToSchedulingSpa]=\"handleNavigateToSchedulingSpa\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"closeScheduleModal()\"\r\n >\r\n </dhgf-guided-flow>\r\n </div>\r\n </dhcl-modal>\r\n</div>\r\n<div *ngIf=\"!showUpdatedProviderDetailPageUX\">\r\n <div class=\"cs-provider-nonprintable\">\r\n <cs-scroll-to-top *ngIf=\"!isMyChart && !isCerner\" [windowScrolled]=\"false\"></cs-scroll-to-top>\r\n <div class=\"provider-details-content\">\r\n <dhcl-loading-spinner [showSpinner]=\"!apiResponse\" id=\"dhclLoadingSpinner\"></dhcl-loading-spinner>\r\n <div class=\"provider-details-container old-container\" *ngIf=\"provider\">\r\n <cs-provider-details-navigation\r\n [referringUrl]=\"referringUrl\"\r\n [redirectFromFAL]=\"redirectFromFAL\"\r\n *ngIf=\"searchResultsOrigin || referringUrl || showBacktoLoctionSearchBtn\"\r\n >\r\n </cs-provider-details-navigation>\r\n <cs-provider-hero\r\n [provider]=\"provider\"\r\n [referringUrl]=\"referringUrl\"\r\n [providerImage]=\"providerImage\"\r\n [showSuggestAnEditLink]=\"showSuggestAnEditLink\"\r\n [isMobileViewport]=\"resizeService.isMobileViewport\"\r\n [logoUrls]=\"logoUrls\"\r\n [ratingTooltipText]=\"ratingTooltipText\"\r\n [showRatingText]=\"showRatingText\"\r\n [showNumReviews]=\"showNumReviews\"\r\n [showStarRatings]=\"showStarRatingsForProviderHero\"\r\n [showStarRatingsBanner]=\"showStarRatingsBanner\"\r\n [providerSpecialities]=\"providerSpecialities\"\r\n [suggestAnEditLinkContent]=\"suggestAnEditLinkContent\"\r\n [malePlaceholder]=\"malePlaceholder\"\r\n [femalePlaceholder]=\"femalePlaceholder\"\r\n [nonSEOSecondarySpecialities]=\"nonSEOSecondarySpecialities\"\r\n *ngIf=\"provider.displayFullName || provider.primarySpecialty\"\r\n [showPrintablePdf]=\"showPrintablePdf\"\r\n >\r\n </cs-provider-hero>\r\n <div *ngIf=\"!showDocAsap || (showDocAsap && docAsapIsChecked)\" class=\"schedule-app-container\">\r\n <cs-schedule-an-appointment\r\n [onlineSchedulingType]=\"onlineSchedulingType\"\r\n [srcUrl]=\"srcUrl\"\r\n [provider]=\"provider\"\r\n [selectedOfficeAddress]=\"selectedOfficeAddress\"\r\n [showDocAsap]=\"showDocAsap\"\r\n [showGuidedFlow]=\"showGuidedFlow\"\r\n [showNewSchedulingApp]=\"showNewSchedulingApp\"\r\n [enableScheduleToAppointmentButton]=\"enableScheduleToAppointmentButton\"\r\n [facets]=\"facets\"\r\n (selectedOfficeChanged)=\"handleSelectedOfficeChanged($event)\"\r\n [docAsapId]=\"docAsapId\"\r\n [olsDepartmentId]=\"olsDepartmentId\"\r\n [olsProviderId]=\"olsProviderId\"\r\n [olsBlockIt]=\"olsBlockIt\"\r\n *ngIf=\"(provider.offices?.length > 0 || (docAsapId && showDocAsap) || (olsDepartmentId && olsProviderId && showDocAsap) || (olsBlockIt && showDocAsap)) && isSchedulingVisible\"\r\n >\r\n </cs-schedule-an-appointment>\r\n <cs-locations-list\r\n [provider]=\"provider\"\r\n [centerPoint]=\"selectedOfficeAddress\"\r\n [officeAddresses]=\"officeAddresses\"\r\n [showMoreLessButton]=\"showMoreLessButtonForLocationList\"\r\n [hideExtraContent]=\"hideExtraContentForLocationList\"\r\n [isDesktopViewport]=\"isDesktopViewportForLocationList\"\r\n [hasMoreThanOneOffice]=\"hasMoreThanOneOffice\"\r\n [divisionCodes]=\"divisionCodes\"\r\n (selectedOfficeChanged)=\"handleSelectedOfficeChanged($event)\"\r\n *ngIf=\"officeAddresses?.length > 0\"\r\n >\r\n </cs-locations-list>\r\n </div>\r\n <div class=\"get-to-know-section\">\r\n <cs-get-to-know\r\n [provider]=\"provider\"\r\n [videoId]=\"videoId\"\r\n (callAdobeService)=\"onStateChange(provider)\"\r\n *ngIf=\"displayGetToKnowSection()\"\r\n [getToKnowContent]=\"getToKnowContent\"\r\n [isShowProviderVideo]=\"isShowProviderVideo\"\r\n [showHospitalAffiliations]=\"showHospitalAffiliations\"\r\n [inMyOwnWordsTitle]=\"inMyOwnWordsTitle\"\r\n [hideExtraPhilosophyContent]=\"hideExtraPhilosophyContent\"\r\n [showMoreLessButtonForPhilosophy]=\"showMoreLessButtonForPhilosophy\"\r\n [hideExtraOwnwordsContent]=\"hideExtraOwnwordsContent\"\r\n [showMoreLessButtonForOwnwords]=\"showMoreLessButtonForOwnwords\"\r\n >\r\n </cs-get-to-know>\r\n </div>\r\n <div class=\"patients-saying-section\">\r\n <cs-provider-comments\r\n [provider]=\"provider\"\r\n [ratingFooterText]=\"ratingFooterText\"\r\n [ratingsFooterLinkText]=\"ratingsFooterLinkText\"\r\n [ratingsFooterLink]=\"ratingsFooterLink\"\r\n [isShowProviderReviews]=\"isShowProviderReviews\"\r\n [commentsArrayLength]=\"commentsArrayLength\"\r\n [showMoreLessButton]=\"showMoreLessButton\"\r\n *ngIf=\"hasRatingsData(provider)\"\r\n >\r\n </cs-provider-comments>\r\n </div>\r\n\r\n <cs-expandable-list\r\n *ngIf=\"provider.insuranceCarriers.length > 0\"\r\n [sectionTitle]=\"'Insurance carriers accepted'\"\r\n [listItems]=\"provider.insuranceCarriers\"\r\n [isInsuranceSection]=\"true\"\r\n ></cs-expandable-list>\r\n <cs-expandable-list\r\n style=\"display: none\"\r\n *ngIf=\"provider.specialties.length > 0\"\r\n [sectionTitle]=\"'Specialties'\"\r\n [listItems]=\"provider.specialties\"\r\n >\r\n </cs-expandable-list>\r\n <cs-expandable-list\r\n *ngIf=\"provider.procedures.length > 0\"\r\n [sectionTitle]=\"'Procedures performed'\"\r\n [listItems]=\"provider.procedures\"\r\n ></cs-expandable-list>\r\n <cs-expandable-list\r\n *ngIf=\"provider.conditions.length > 0\"\r\n [sectionTitle]=\"'Conditions treated'\"\r\n [listItems]=\"provider.conditions\"\r\n ></cs-expandable-list>\r\n <cs-credentials\r\n [provider]=\"provider\"\r\n [educationArray]=\"educationArray\"\r\n [memberships]=\"memberships\"\r\n *ngIf=\"displayCredentialsSection()\"\r\n ></cs-credentials>\r\n <cs-expandable-list\r\n *ngIf=\"provider.awards.length > 0\"\r\n [sectionTitle]=\"'Awards and recognitions'\"\r\n [listItems]=\"provider.awards\"\r\n [isAwardsSection]=\"true\"\r\n ></cs-expandable-list>\r\n </div>\r\n <cs-error-page *ngIf=\"errorMessage !=''\" [errorMessage]=\"errorMessage\"></cs-error-page>\r\n </div>\r\n <div class=\"disclaimer-container fad-col-sm-12\" *ngIf=\"!searchResultsOrigin && configurationUrl.includes('media')\">\r\n <cs-disclaimer [disclaimer]=\"disclaimer\"></cs-disclaimer>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"cs-provider-printable\" *ngIf=\"provider\">\r\n <cs-print-page\r\n [provider]=\"provider\"\r\n [malePlaceholder]=\"malePlaceholder\"\r\n [femalePlaceholder]=\"femalePlaceholder\"\r\n [providerImage]=\"providerImage\"\r\n [logoUrls]=\"logoUrls\"\r\n [providerSpecialities]=\"providerSpecialities\"\r\n [divisionCodes]=\"divisionCodes\"\r\n [centerPoint]=\"selectedOfficeAddress\"\r\n [officeAddresses]=\"officeAddresses\"\r\n [getToKnowContent]=\"getToKnowContent\"\r\n [nonSEOSecondarySpecialities]=\"nonSEOSecondarySpecialities\"\r\n *ngIf=\"(provider.displayFullName || provider.primarySpecialty) && displayGetToKnowSection()\"\r\n ></cs-print-page>\r\n</div>\r\n","import { AfterViewChecked, Component, Inject, Input, LOCALE_ID, OnChanges, OnDestroy, OnInit } from '@angular/core';\r\nimport { formatDate, Location, ViewportScroller } from '@angular/common';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport { Provider, ProviderInterfaceHelper } from '../../models/provider';\r\nimport { ProviderImage } from '../../models/provider-image';\r\nimport { ProviderService } from '../../services/provider.service';\r\nimport { HierarchySecurityService } from '../../configs/HierarchySecurityService';\r\nimport { ProviderRatingService } from '../../services/provider-rating.service';\r\nimport { tap } from 'rxjs/operators';\r\nimport { EventPublisherService } from '../../services/event-publisher.service';\r\nimport { FadEventTypes } from '../../models/fad-event-types';\r\nimport { FadEvent } from '../../models/fad-event';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { LogService } from '../../services/log.service';\r\nimport { ProviderVideo } from 'src/app/models/provider-video';\r\nimport { hiddenContentAvailable } from '../../utils/utils';\r\nimport { ResizeService } from 'src/app/services/resize.service';\r\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\r\nimport { ProviderOffice } from 'src/app/models/provider-office';\r\nimport { OnlineBookingAvailability } from 'src/app/models/online-booking-availability';\r\nimport { AppointmentType } from 'src/app/models/appointment-type';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\nimport { LogoConstants } from 'src/app/constants/logo-constants';\r\nimport { TitleTagHandlerService } from 'src/app/services/title-tag-handler.service';\r\nimport { ApiResponse } from 'src/app/utils/api-response';\r\nimport { ProviderSearchResponse } from 'src/app/services/filter.service';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.new';\r\nimport { LogoDetails } from 'src/app/models/configuration';\r\nimport { RuntimeConfiguration } from 'src/app/services/configuration-injection.service';\r\nimport { CernerModalService } from 'src/app/services/cerner-modal.service';\r\nimport { BlockitSessionService } from 'src/app/services/blockit-session.service';\r\nimport { CjaTagService } from '../../services/cja-tag.service';\r\n\r\n@Component({\r\n selector: 'cs-provider-details',\r\n templateUrl: './provider-details.component.html',\r\n styleUrls: ['./provider-details.component.scss']\r\n})\r\nexport class ProviderDetailsComponent implements OnInit, OnChanges, AfterViewChecked, OnDestroy {\r\n @Input() npi: string;\r\n @Input() configurationUrl = './fad-configuration.json';\r\n @Input() referringUrl = '';\r\n showGuidedFlow: string | boolean = false;\r\n showNewSchedulingApp: string | boolean = false;\r\n showDocAsap: string | boolean = false;\r\n docAsapId?: string;\r\n providerSchedulingFeature?: boolean;\r\n apiResponse = false;\r\n errorMessage = '';\r\n showGuidedFlowModal = false;\r\n searchResultsOrigin: boolean;\r\n provider: Provider;\r\n facets: any[];\r\n physicianSchema: any;\r\n faqPageSchema: any;\r\n primaryAddress: OfficeAddress;\r\n selectedOfficeAddress: OfficeAddress;\r\n officeAddresses: OfficeAddress[] = [];\r\n config: any;\r\n docAsapIsChecked = false;\r\n isShowProviderVideo = false;\r\n showStarRatings = false;\r\n scrolledToView = false;\r\n disclaimer: string;\r\n showUpdatedProviderDetailPageUX = false;\r\n getToKnowDisclaimer: string;\r\n navList: any[] = [\r\n { routeName: 'About' },\r\n { routeName: 'Locations' },\r\n { routeName: 'Reviews' },\r\n { routeName: 'Specialties' }\r\n ];\r\n\r\n launchGuidedFlow: boolean;\r\n guidedFlowProvider: Provider;\r\n runtimeConfig: RuntimeConfiguration;\r\n isCaptchaEnabled: boolean;\r\n market: string;\r\n embedSource: string;\r\n showProviderPrefix: boolean;\r\n\r\n //inputs for provider comments\r\n ratingFooterText: string;\r\n ratingsFooterLinkText: string;\r\n ratingsFooterLink: string;\r\n isShowProviderReviews = false;\r\n showMoreLessButton: boolean;\r\n commentsArrayLength: number;\r\n\r\n //inputs for provider credetials\r\n educationArray: any[] = [];\r\n memberships: string[];\r\n\r\n //input for provider video\r\n videoId: string;\r\n\r\n //input for get to know\r\n getToKnowContent = [];\r\n divisionCodes: string[];\r\n showHospitalAffiliations = false;\r\n inMyOwnWordsTitle: string;\r\n hideExtraPhilosophyContent = true;\r\n showMoreLessButtonForPhilosophy = false;\r\n hideExtraOwnwordsContent = true;\r\n showMoreLessButtonForOwnwords = false;\r\n\r\n //input for provider hero\r\n providerImage: ProviderImage;\r\n showSuggestAnEditLink: boolean;\r\n logoUrls: LogoDetails[] = [];\r\n showProviderLogos: boolean;\r\n ratingTooltipText: string;\r\n showRatingText: boolean;\r\n showNumReviews: boolean;\r\n showStarRatingsForProviderHero: boolean;\r\n showStarRatingsBanner: boolean;\r\n useNewProviderDetailsRoute: boolean;\r\n providerSpecialities: string[];\r\n suggestAnEditLinkContent: string;\r\n malePlaceholder: string;\r\n femalePlaceholder: string;\r\n //inputs for LocationList component\r\n hideExtraContentForLocationList = true;\r\n showMoreLessButtonForLocationList = false;\r\n centerPoint: OfficeAddress;\r\n isDesktopViewportForLocationList = false;\r\n hasMoreThanOneOffice = false;\r\n\r\n //input for schedule an appointment\r\n srcUrl: SafeResourceUrl;\r\n officeNames: Array<string> = [];\r\n showTemporarilyUnavailableCopy = false;\r\n showCallToScheduleCopy = false;\r\n selectedOfficeRank: number;\r\n onlineSchedulingType: string;\r\n nonSEOSecondarySpecialities: string[];\r\n\r\n fadBaseURL: URL;\r\n enableScheduleToAppointmentButton = true;\r\n falBaseURL: string;\r\n showBacktoLoctionSearchBtn = false;\r\n redirectFromFAL = false;\r\n olsDepartmentId?: string;\r\n olsProviderId?: string;\r\n useLegacyAPI = false;\r\n showPrintablePdf = false;\r\n selfUrl: string;\r\n videoSchema: any;\r\n isCernerPage=false;\r\n bookingApptBaseUrl_Cerner = 'https://mocka.dignityhealth.me';\r\n olsBlockIt: string;\r\n constructor(\r\n public sanitizer: DomSanitizer,\r\n private route: ActivatedRoute,\r\n private providerService: ProviderService,\r\n private securityService: HierarchySecurityService,\r\n private ratingService: ProviderRatingService,\r\n private eventPublisherService: EventPublisherService,\r\n private configurationService: ConfigurationService,\r\n private cernerModalService: CernerModalService,\r\n private logService: LogService,\r\n public resizeService: ResizeService,\r\n private fadLinkServer: FadLinkService,\r\n @Inject(LOCALE_ID) private locale: string,\r\n private titleTagHandlerService: TitleTagHandlerService,\r\n private router: Router,\r\n private viewportScroller: ViewportScroller,\r\n private location: Location,\r\n private blockitService: BlockitSessionService,\r\n private cjaTagService: CjaTagService\r\n ) {\r\n this.useLegacyAPI = this.configurationService?.useLegacyAPI();\r\n this.useNewProviderDetailsRoute = this.configurationService.UseNewProviderDetailsRoute();\r\n this.runtimeConfig = configurationService.getRuntimeConfiguration();\r\n this.isCaptchaEnabled =\r\n document.querySelector('#captcha-enabled')?.getAttribute('value') === 'true' || configurationService.getCaptchaEnabled();\r\n this.market = this.configurationService.getConfigType() || '';\r\n this.embedSource = this.configurationService.getEmbedSource();\r\n this.showProviderPrefix = this.configurationService.showProviderPrefix();\r\n }\r\n ngOnDestroy(): void {\r\n this.titleTagHandlerService.removePageCanonicals(this.selfUrl);\r\n this.removeStructuredData();\r\n }\r\n removeStructuredData(): void {\r\n const videoSchema = document.getElementById('videoSchema');\r\n const providerSchema = document.getElementById('physicianSchema');\r\n const faqPageSchema = document.getElementById('faqPageSchema');\r\n if (videoSchema != null) {\r\n videoSchema.remove();\r\n }\r\n if (providerSchema != null) {\r\n providerSchema.remove();\r\n }\r\n if (faqPageSchema != null) {\r\n faqPageSchema.remove();\r\n }\r\n }\r\n\r\n ngOnInit(): void {\r\n this.blockitService.getBlockItURL();\r\n this.checkFALRedirection();\r\n this.showUpdatedProviderDetailPageUX = this.configurationService.getShowUpdatedProviderDetailPageUX();\r\n this.onlineSchedulingType = this.configurationService.getOnlineSchedulingType();\r\n this.renderSchedulingComponent();\r\n this.renderProviderDetails();\r\n this.initGuidedFlow();\r\n this.initSchedulingAppFlow();\r\n window.scrollTo(0, 0);\r\n this.disclaimer = this.configurationService.getDisclaimerCopy();\r\n this.divisionCodes = this.configurationService.getDivisionCodes();\r\n this.inMyOwnWordsTitle = this.configurationService.getInMyOwnWordsTitle();\r\n this.fadBaseURL = new URL(this.configurationService.getRuntimeConfiguration().fadBaseUrl);\r\n this.falBaseURL = this.configurationService.getRuntimeConfiguration().falBaseUrl;\r\n this.enableScheduleToAppointmentButton = this.onlineSchedulingType === 'GuidedFlow' ? true : false;\r\n this.showPrintablePdf = this.configurationService?.showPrintablePdf && this.configurationService?.showPrintablePdf();\r\n this.isCernerPage=this.configurationService.getCernerPage();\r\n }\r\n\r\n public navigateToSection(section: string): void {\r\n const sectionElement: HTMLElement = document.getElementById(section);\r\n sectionElement.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' });\r\n }\r\n\r\n get isMyChart(): boolean {\r\n return this.configurationService.getEmbedSource() != null && this.configurationService.getEmbedSource() === 'mychart';\r\n }\r\n\r\n get isCerner(): boolean {\r\n return this.configurationService.getEmbedSource() != null && this.configurationService.getEmbedSource() === 'cerner';\r\n }\r\n\r\n get isSchedulingVisible(): boolean {\r\n const urgentCareRoles: string[] = this.configurationService.getProviderRolesForUrgentCare();\r\n if (this.provider.roleType && this.provider.roleType !== '') {\r\n return !urgentCareRoles.includes(this.provider.roleType);\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n ngOnChanges(): void {\r\n this.renderSchedulingComponent();\r\n }\r\n\r\n renderSchedulingComponent(): void {\r\n if (this.selectedOfficeAddress && this.provider) {\r\n this.filterInvalidApptTypes();\r\n this.showTemporarilyUnavailableCopy = this.provider.isBookOnline && !this.selectedOfficeAddress.supportsOnlineBooking;\r\n this.showCallToScheduleCopy = !this.provider.isBookOnline || (this.showDocAsap && !this.docAsapId);\r\n this.provider.offices.forEach((office: ProviderOffice) => {\r\n office.addresses.forEach((address: OfficeAddress) => {\r\n address.name = office.name;\r\n this.officeNames.push(office.name);\r\n\r\n if (!this.officeAddresses.includes(address)) {\r\n this.officeAddresses.push(address);\r\n }\r\n });\r\n });\r\n this.officeAddresses.sort((a: OfficeAddress, b: OfficeAddress) => a.rank - b.rank);\r\n this.selectedOfficeRank = this.officeAddresses.indexOf(this.selectedOfficeAddress) + 1;\r\n }\r\n }\r\n\r\n filterInvalidApptTypes(): void {\r\n (this.provider.onlineBookingAvailability || []).forEach((location: OnlineBookingAvailability) => {\r\n location.appointmentTypes = (location.appointmentTypes || []).filter((apptType: AppointmentType) => apptType.patientAppointmentType && apptType.patientAppointmentType !== '');\r\n\r\n if (location.appointmentTypes.length === 0) {\r\n location.availableTimes = [];\r\n location.nextAvailableTimes = [];\r\n location.supportsOnlineBooking = false;\r\n\r\n this.provider.offices.forEach((providerOffice: ProviderOffice) => {\r\n const matchingOffice = providerOffice.addresses.find((addr: OfficeAddress) => addr.id === location.officeAddressId);\r\n\r\n if (matchingOffice) {\r\n matchingOffice.supportsOnlineBooking = false;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n ngAfterViewChecked(): void {\r\n if (sessionStorage.getItem('scrollToComments') === 'true') {\r\n const commentSection: HTMLElement = document.querySelector('div.provider-comments-container');\r\n if (commentSection && !this.scrolledToView) {\r\n commentSection.scrollIntoView();\r\n sessionStorage.removeItem('scrollToComments');\r\n this.scrolledToView = true;\r\n }\r\n }\r\n\r\n const shouldHidePhilosophyContent = this.hiddenContentAvailable('philosophy-content', '.philosophy-content');\r\n this.hideExtraPhilosophyContent = shouldHidePhilosophyContent;\r\n this.showMoreLessButtonForPhilosophy = shouldHidePhilosophyContent;\r\n\r\n const shouldHideOwnWordsContent = this.hiddenContentAvailable('ownwords-content', '.ownwords-content p');\r\n this.hideExtraOwnwordsContent = shouldHideOwnWordsContent;\r\n this.showMoreLessButtonForOwnwords = shouldHideOwnWordsContent;\r\n }\r\n\r\n renderProviderDetails(): void {\r\n const providerId = this.route.snapshot.paramMap.get('providerId');\r\n const regexMatch = /(\\d+)/s;\r\n const routeNpi = regexMatch.exec(providerId);\r\n const mNpi = routeNpi !== null ? routeNpi && routeNpi[0] : providerId;\r\n\r\n this.providerService\r\n .getProviderDetailsFull(this.npi ?? mNpi)\r\n .pipe(\r\n tap((providerResponse: ApiResponse<ProviderSearchResponse>) => {\r\n let provider = providerResponse.result?.providers[0];\r\n const facets = providerResponse.result?.facets;\r\n if (provider) {\r\n provider = this.providerService.normalizeProviderBeforeScheduling(provider);\r\n this.providerEvent(provider);\r\n }\r\n\r\n this.facets = facets;\r\n this.provider = provider;\r\n const marketCodes = this.configurationService.getMarketCodes().length > 0 ? this.configurationService.getMarketCodes()[0] : null;\r\n const divisionCodes = this.configurationService?.getDivisionCodes().length > 0 ? this.configurationService.getDivisionCodes()[0] : null;\r\n const externalSystems = this.provider?.externalSystems?.length > 0\r\n &&\r\n (typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId) !== 'undefined'\r\n && typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId) !== 'undefined') ? true : false;\r\n\r\n const externalSystemsDH = this.provider?.externalSystems?.length > 0\r\n &&\r\n (typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt) !== 'undefined') ? true : false;\r\n\r\n if (this.configurationService.getOnlineSchedulingType() === 'ThirdParty'\r\n&& this.provider?.externalSystems?.length > 0\r\n && marketCodes?.toLowerCase() == 'kentucky'\r\n && externalSystems && this.provider?.isBookOnline) {\r\n this.initOlsKY();\r\n }\r\n else if (this.configurationService.getOnlineSchedulingType() === 'ThirdParty'\r\n&& this.provider?.externalSystems?.length > 0\r\n && divisionCodes?.toLowerCase() == 'dignity-health'\r\n && externalSystemsDH) {\r\n this.initOlsDHForBlockIt();\r\n }\r\n else {\r\n this.initDocAsap();\r\n }\r\n if (this.provider) {\r\n this.provider.loadingRating = true;\r\n this.poviderRatingMap([this.npi ?? mNpi]);\r\n this.setProviderGenderFull();\r\n this.buildSeoSchema(this.provider);\r\n this.updateProviderFullName();\r\n this.cjaTagService.providerProfileViewed(this.provider);\r\n this.initCredentialInputs();\r\n this.initProviderVideo();\r\n this.setIsBookOnline();\r\n\r\n this.isShowProviderVideo = this.securityService.shouldShowVideos(this.provider);\r\n this.showHospitalAffiliations = this.configurationService.showHospitalAffiliations() && this.provider.hospitalNames?.length > 0;\r\n this.processMedicalIds();\r\n\r\n this.provider.acceptsVideoCalls = !!this.provider.acceptsVideoCalls;\r\n this.showSuggestAnEditLink = this.configurationService.showSuggestAnEdit();\r\n this.processImage();\r\n\r\n this.ratingTooltipText =\r\n this.securityService.getRatingsTooltipText(this.provider) ??\r\n this.configurationService.defaultProviderRatings.defaultRatingsTooltipText;\r\n this.providerSpecialities = ProviderInterfaceHelper.getProviderTopSpecialities(this.provider);\r\n this.nonSEOSecondarySpecialities = ProviderInterfaceHelper.getProviderNonSEOSpecialities(\r\n this.provider,\r\n this.providerSpecialities\r\n );\r\n this.processLinkAndLogo();\r\n this.cjaTagService.providerRatingsAndComments(this.provider);\r\n this.malePlaceholder = this.configurationService.malePlaceholder;\r\n this.femalePlaceholder = this.configurationService.femalePlaceholder;\r\n this.InitLocationListInputs();\r\n } else {\r\n this.errorMessage = 'Sorry, this page could not be found';\r\n }\r\n\r\n // Do this last because it makes the spinner stop and\r\n // our e2e tests wait for the spinner to stop before inspecting the page.\r\n // This was causing several timing related false test failures.\r\n this.apiResponse = true;\r\n })\r\n )\r\n .subscribe(\r\n (result) => result,\r\n () => {\r\n this.apiResponse = true;\r\n this.errorMessage = 'Sorry, something went wrong';\r\n }\r\n );\r\n\r\n this.searchResultsOrigin = sessionStorage.getItem('searchResultsOrigin') === 'true';\r\n }\r\n\r\n processLinkAndLogo(): void{\r\n this.suggestAnEditLinkContent = this.configurationService\r\n .suggestAnEditLinkScheme()\r\n ?.replace(/\\{(0)\\}/, this.provider.npi.toString());\r\n this.suggestAnEditLinkContent = this.suggestAnEditLinkContent.replace(/\\{(1)\\}/, this.provider.displayFullName);\r\n if (this.suggestAnEditLinkContent) {\r\n this.suggestAnEditLinkContent += this.referringUrl;\r\n }\r\n this.suggestAnEditLinkContent = encodeURI(this.suggestAnEditLinkContent);\r\n this.showProviderLogos = this.securityService.shouldShowLogos(this.provider);\r\n if (this.showProviderLogos) {\r\n this.processShowProviderLogos();\r\n }\r\n }\r\n\r\n processImage(): void {\r\n const imagesBySizeDecreasing = this.getResizedImages();\r\n const placeholderProviderImage: ProviderImage = {\r\n url:\r\n this.provider.gender?.toLowerCase() === 'male'\r\n ? this.configurationService.malePlaceholder\r\n : this.provider.gender?.toLowerCase() === 'female'\r\n ? this.configurationService.femalePlaceholder\r\n : this.configurationService.blankPlaceholder\r\n };\r\n\r\n this.providerImage = imagesBySizeDecreasing[0] ?? placeholderProviderImage;\r\n this.providerImage.url = this.providerImage.url?.replace(/^http:\\/\\//i, 'https://');\r\n }\r\n\r\n getResizedImages(): ProviderImage[] {\r\n const providerImagesCopy = this.provider.images?.slice();\r\n providerImagesCopy.sort((x: ProviderImage, y: ProviderImage) => y.width * y.height - x.width * x.height);\r\n\r\n return providerImagesCopy?.length > 0\r\n ? providerImagesCopy.filter((image: ProviderImage) => image.height === 160 && image.width === 120)\r\n : [];\r\n }\r\n\r\n setIsBookOnline(): void {\r\n if (!this.useLegacyAPI && this.configurationService.getOnlineSchedulingType() === 'none') {\r\n this.provider.isBookOnline = false;\r\n }\r\n }\r\n\r\n processShowProviderLogos(): void {\r\n if (\r\n !window.location.host.toLowerCase().includes(LogoConstants.fad) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.mycareteam) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.chart) &&\r\n !this.fadLinkServer.isSelfHosted() &&\r\n !this.falBaseURL?.toLowerCase().includes(window.location.host.toLowerCase())\r\n ) {\r\n this.logoUrls = ProviderInterfaceHelper.getProviderLogoDetailsAEM(this.provider, this.configurationService.getMedGroupCodes());\r\n } else {\r\n this.logoUrls = ProviderInterfaceHelper.getProviderLogoDetailsFAD(this.provider, this.configurationService.getMedGroupCodes());\r\n this.logoUrls.forEach((x) => x.url = this.fadBaseURL.origin + x.url);\r\n\r\n }\r\n }\r\n\r\n processMedicalIds(): void {\r\n this.provider.medicalGroupIds?.forEach((value: string) => {\r\n const medGroup = this.configurationService.getMedGroupCodes().find((x) => x.code === value);\r\n if (medGroup?.getToKnowContent) {\r\n let getToKnowContent = medGroup.getToKnowContent;\r\n getToKnowContent = ProviderInterfaceHelper.ProviderTokenHandler(this.provider, getToKnowContent);\r\n getToKnowContent = ProviderInterfaceHelper.MedGroupTokenHandler(Object.assign(medGroup), getToKnowContent);\r\n if (\r\n !window.location.host.toLowerCase().includes(LogoConstants.fad) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.mycareteam) &&\r\n !window.location.host.toLowerCase().includes(LogoConstants.chart) &&\r\n !this.fadLinkServer.isSelfHosted()\r\n ) {\r\n this.getToKnowContent.push({\r\n content: getToKnowContent,\r\n logo: medGroup.logoPathAEM\r\n });\r\n } else {\r\n this.getToKnowContent.push({\r\n content: getToKnowContent,\r\n logo: this.fadBaseURL.origin + medGroup.logoPathFAD\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n providerEvent(provider: Provider): void {\r\n this.officeAddresses = ProviderInterfaceHelper.getProviderOfficesSortedByRank(provider);\r\n this.primaryAddress = this.selectedOfficeAddress =\r\n this.officeAddresses.filter((a) => a.isPrimaryOffice === true)[0] ?? this.officeAddresses[0];\r\n\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.ProviderLoaded,\r\n data: {\r\n displayFullName: provider.displayFullName,\r\n primarySpecialty: provider.primarySpecialty,\r\n primaryLocation: this.primaryAddress\r\n ? {\r\n city: this.primaryAddress.city,\r\n state: this.primaryAddress.state,\r\n zip: this.primaryAddress.zip\r\n }\r\n : undefined\r\n }\r\n })\r\n );\r\n\r\n if(this.configurationService.injectCanonicals()) {\r\n if(this.useNewProviderDetailsRoute) {\r\n const providerUrl = `${window.location.origin}/${provider.primarySpecialty.makeURLFriendly()}/${provider.firstName.makeURLFriendly()}-${provider.lastName.makeURLFriendly()}-${provider.npi}`;\r\n if(providerUrl != window.location.href) {\r\n const updatedProviderUrl = `${provider.primarySpecialty.makeURLFriendly()}/${provider.firstName.makeURLFriendly()}-${provider.lastName.toUrlFriendly()}-${provider.npi}`;\r\n this.replaceWindowLocation(updatedProviderUrl);\r\n }\r\n } else {\r\n const providerUrl = `${window.location.origin}/${provider.npi}/${provider.firstName.makeURLFriendly()}-${provider.lastName.makeURLFriendly()}`;\r\n if(providerUrl != window.location.href) {\r\n const updatedProviderUrl = `${provider.npi}-${provider.firstName.makeURLFriendly()}-${provider.lastName.makeURLFriendly()}`;\r\n this.replaceWindowLocation(updatedProviderUrl);\r\n }\r\n }\r\n }\r\n this.selfUrl = window.location.href;\r\n this.titleTagHandlerService.setProviderPageTitle(provider);\r\n this.titleTagHandlerService.setPageCanonicals(window.location.href);\r\n }\r\n\r\n replaceWindowLocation(strProviderLocation: string): void {\r\n this.location.replaceState(strProviderLocation);\r\n }\r\n\r\n poviderRatingMap(mNpi: string[]) {\r\n if (this.configurationService.acceptQueryString()) {\r\n if (sessionStorage.getItem('showRating') === 'true') {\r\n this.getRatings(mNpi);\r\n }\r\n }\r\n else if (this.configurationService.acceptQueryString() == undefined) {\r\n this.getRatings(mNpi);\r\n }\r\n }\r\n getRatings(mNpi: string[]) {\r\n this.showStarRatingsForProviderHero =\r\n this.securityService.shouldShowStarRatings(this.provider) ?? this.configurationService.defaultProviderRatings.defaultShowStarRatings;\r\n this.showStarRatingsBanner =\r\n this.securityService.shouldShowStarRatingsBanner(this.provider) ??\r\n this.configurationService.defaultProviderRatings.defaultShowStarRatingBanner;\r\n this.ratingService.getProviderRatings(mNpi, true).subscribe((starRatings) => {\r\n if (starRatings) {\r\n this.showStarRatings = this.securityService.shouldShowStarRatings(this.provider);\r\n if (this.showStarRatings) {\r\n this.provider.rating = starRatings[0];\r\n }\r\n }\r\n this.provider.loadingRating = false;\r\n this.showRatingText = this.securityService.shouldShowRatingText(this.provider);\r\n this.showNumReviews = this.securityService.shouldShowReviewCount(this.provider);\r\n this.initProviderCommentsInputs();\r\n });\r\n }\r\n\r\n buildSeoSchema(provider: Provider): void {\r\n const ratingList = provider?.rating?.comments.map((x) => ({\r\n '@type': 'Review',\r\n author: x.source,\r\n datePublished: formatDate(x.mentionTime, 'yyyy-MM-dd', this.locale),\r\n reviewBody: x.comment,\r\n reviewRating: {\r\n '@type': 'Rating',\r\n bestRating: '5',\r\n ratingValue: x.overallRating?.value,\r\n worstRating: '0'\r\n }\r\n }));\r\n const personalInfo = provider.personalInfo?.length > 0 ? provider.personalInfo : '';\r\n const healthPlanNetwork = provider.medicalGroupNames?.length > 0 ? provider.medicalGroupNames : [];\r\n const educationCredentials = { '@type':'EducationalOccupationalCredential' , name: provider.certifications };\r\n\r\n const schoolEducation = [];\r\n this.pushEducation(provider);\r\n const alumni = { '@type':'Person',name:schoolEducation };\r\n\r\n const providerServices = [];\r\n this.pushOLS(provider);\r\n \r\n const hasOfferCatalog = { '@type':'OfferCatalog',\r\n name: 'Appointment Services',\r\n itemListElement:[{ '@type':'Offer',\r\n itemOffered:{ '@type':'Service',\r\n name:providerServices } }] };\r\n this.physicianSchema = {\r\n '@context': 'https://schema.org/',\r\n '@type': '[Physician]',\r\n name: provider.displayFullName,\r\n descrption: personalInfo,\r\n url: window.location.href,\r\n address: {\r\n '@type': 'PostalAddress',\r\n addressLocality: this.primaryAddress?.city,\r\n addressRegion: this.primaryAddress?.state,\r\n postalCode: this.primaryAddress?.zip,\r\n streetAddress: this.primaryAddress?.address,\r\n telephone: this.primaryAddress?.phones,\r\n faxNumber: this.primaryAddress?.faxes,\r\n name: this.primaryAddress?.name\r\n },\r\n healthPlanNetworkId: healthPlanNetwork,\r\n hasCredential: educationCredentials,\r\n alumni: alumni,\r\n telephone: this.primaryAddress?.phones?.length > 0 ? this.primaryAddress.phones[0] : null,\r\n medicalSpecialty: {\r\n '@type': 'MedicalSpecialty',\r\n name: provider.specialties\r\n },\r\n image: provider.images.filter((image: ProviderImage) => image.height === 160 && image.width === 120)[0]?.url,\r\n award: this.provider.awards,\r\n isAcceptingNewPatients: provider.acceptsNewPatients,\r\n knowsLanguage: provider.languages,\r\n aggregateRating:\r\n this.showStarRatings && this.hasRatingsData(provider)\r\n ? {\r\n '@type': 'AggregateRating',\r\n bestRating: '5',\r\n ratingValue: provider.rating.overallRating.value,\r\n worstRating: '0',\r\n reviewCount: provider.rating.totalCommentCount\r\n }\r\n : null,\r\n review: this.showStarRatings && this.hasRatingsData(provider) ? ratingList : null,\r\n hasOfferCatalog: hasOfferCatalog\r\n };\r\n\r\n if (this.showStarRatings && this.hasRatingsData(provider)) {\r\n this.physicianSchema.aggregateRating = {\r\n '@type': 'AggregateRating',\r\n bestRating: '5',\r\n ratingValue: provider.rating.overallRating.value,\r\n worstRating: '0',\r\n reviewCount: provider.rating.totalCommentCount\r\n };\r\n }\r\n\r\n if (this.showStarRatings && this.hasRatingsData(provider) && ratingList.length > 0) {\r\n this.physicianSchema.review = ratingList;\r\n }\r\n this.displayDictionaries(provider);\r\n this.buildSeoSchemaCONT(provider);\r\n }\r\n\r\n pushEducation(provider: Provider): void {\r\n const schoolEducation = [];\r\n if (provider.medicalSchools != null && provider.medicalSchools.length > 0) { \r\n schoolEducation.push(...provider.medicalSchools);\r\n }\r\n\r\n if (provider.residencies != null && provider.residencies.length > 0) { \r\n schoolEducation.push(...provider.residencies);\r\n }\r\n\r\n if (provider.education != null && provider.education.length > 0) { \r\n schoolEducation.push(...provider.education);\r\n }\r\n \r\n if (provider.fellowships != null && provider.fellowships.length > 0) { \r\n schoolEducation.push(...provider.fellowships);\r\n }\r\n \r\n if (provider.internships != null && provider.internships.length > 0) { \r\n schoolEducation.push(...provider.internships);\r\n }\r\n }\r\n\r\n pushOLS(provider: Provider): void {\r\n const providerServices = [];\r\n if (provider.acceptsVideoCalls != null && provider.acceptsVideoCalls) { \r\n providerServices.push('Video Visits');\r\n }\r\n \r\n if (provider.onlineBookingAvailability != null && provider.onlineBookingAvailability[0]?.supportsOnlineBooking) { \r\n providerServices.push('Online Scheduling');\r\n }\r\n \r\n if (!!provider.acceptsNewPatients != null && provider.acceptsNewPatients) { \r\n providerServices.push('Accepting new patient');\r\n }\r\n }\r\n\r\n displayDictionaries(provider: Provider): void {\r\n const mainEntity = [];\r\n\r\n if (provider.insuranceCarriers?.length > 0) {\r\n mainEntity.push({\r\n '@type': 'Question',\r\n name: 'Insurance Carriers',\r\n acceptedAnswer: {\r\n '@type': 'Answer',\r\n text: provider.insuranceCarriers?.join(';')\r\n }\r\n });\r\n }\r\n\r\n if (provider.specialties?.length > 0) {\r\n mainEntity.push({\r\n '@type': 'Question',\r\n name: 'Specialties',\r\n acceptedAnswer: {\r\n '@type': 'Answer',\r\n text: provider.specialties?.join(';')\r\n }\r\n });\r\n }\r\n\r\n if (provider.procedures?.length > 0) {\r\n mainEntity.push({\r\n '@type': 'Question',\r\n name: 'Procedures Performed',\r\n acceptedAnswer: {\r\n '@type': 'Answer',\r\n text: provider.procedures?.join(';')\r\n }\r\n });\r\n }\r\n\r\n if (provider.conditions?.length > 0) {\r\n mainEntity.push({\r\n '@type': 'Question',\r\n name: 'Conditions treated',\r\n acceptedAnswer: {\r\n '@type': 'Answer',\r\n text: provider.conditions?.join(';')\r\n }\r\n });\r\n }\r\n\r\n if (provider.awards?.length > 0) {\r\n mainEntity.push({\r\n '@type': 'Question',\r\n name: 'Awards',\r\n acceptedAnswer: {\r\n '@type': 'Answer',\r\n text: provider.awards?.join(';')\r\n }\r\n });\r\n }\r\n\r\n this.faqPageSchema = {\r\n '@context': 'https://schema.org',\r\n '@type': 'FAQPage',\r\n mainEntity\r\n };\r\n }\r\n\r\n buildSeoSchemaCONT(provider: Provider): void {\r\n if (!document.getElementById('physicianSchema')) {\r\n const physicianScript = document.createElement('script');\r\n physicianScript.type = 'application/ld+json';\r\n physicianScript.id = 'physicianSchema';\r\n physicianScript.innerText = JSON.stringify(this.physicianSchema);\r\n document.getElementsByTagName('head')[0].appendChild(physicianScript);\r\n } else {\r\n document.getElementById('physicianSchema').innerText = JSON.stringify(this.physicianSchema);\r\n }\r\n\r\n if (!document.getElementById('faqPageSchema')) {\r\n const faqPageScript = document.createElement('script');\r\n faqPageScript.type = 'application/ld+json';\r\n faqPageScript.id = 'faqPageSchema';\r\n faqPageScript.innerText = JSON.stringify(this.faqPageSchema);\r\n document.getElementsByTagName('head')[0].appendChild(faqPageScript);\r\n } else {\r\n document.getElementById('faqPageSchema').innerText = JSON.stringify(this.faqPageSchema);\r\n }\r\n\r\n if(provider.videos?.length > 0) {\r\n let videoUrl = '';\r\n let description = `Watch this video to learn more about ${provider.displayFullName}`;\r\n let uploadDate = '';\r\n let thumbnailUrl = '';\r\n\r\n if(this.provider.offices.length > 0) {\r\n description = description + ` at ${provider.offices[0].name}`; \r\n }\r\n\r\n provider.videos?.forEach((video: ProviderVideo) => {\r\n if(video.url.trim() != '') {\r\n videoUrl = video?.url;\r\n uploadDate = video?.publishedAt;\r\n thumbnailUrl = video?.thumbnails?.url;\r\n }\r\n });\r\n\r\n this.videoSchema = {\r\n '@context': 'https://schema.org/',\r\n '@type': 'VideoObject',\r\n embedUrl: videoUrl,\r\n description: description,\r\n name: this.provider.displayFullName,\r\n contentUrl: videoUrl,\r\n uploadDate: uploadDate,\r\n thumbnailUrl: thumbnailUrl\r\n };\r\n\r\n if (!document.getElementById('videoSchema')) {\r\n const videoPageScript = document.createElement('script');\r\n videoPageScript.type = 'application/ld+json';\r\n videoPageScript.id = 'videoSchema';\r\n videoPageScript.innerText = JSON.stringify(this.videoSchema);\r\n document.getElementsByTagName('head')[0].appendChild(videoPageScript);\r\n } else {\r\n document.getElementById('videoSchema').innerText = JSON.stringify(this.videoSchema);\r\n }\r\n }\r\n }\r\n \r\n setProviderGenderFull(): void {\r\n if (this.provider) {\r\n if (typeof this.provider.gender != 'undefined' && this.provider.gender?.toLowerCase() === 'm') {\r\n this.provider.gender = 'Male';\r\n } else if (typeof this.provider.gender != 'undefined' && this.provider.gender?.toLowerCase() === 'f') {\r\n this.provider.gender = 'Female';\r\n } else if (typeof this.provider.gender != 'undefined' && this.provider.gender?.toLowerCase() === 'n') {\r\n this.provider.gender = 'Non-Binary';\r\n } else if (typeof this.provider.gender != 'undefined' && this.provider.gender?.toLowerCase() === 'o') {\r\n this.provider.gender = 'Other';\r\n } else {\r\n this.provider.gender = null;\r\n }\r\n }\r\n }\r\n\r\n displayGetToKnowSection(): boolean {\r\n return (\r\n (this.provider.languages.length > 0 ||\r\n this.provider.gender.length > 0 ||\r\n this.provider.yearsOfExperience > 0 ||\r\n this.provider.philosophy.length > 0 ||\r\n this.provider.inMyOwnWords.length > 0 ||\r\n this.provider.hospitalNames?.length > 0) &&\r\n this.provider.displayFullName.length > 0\r\n );\r\n }\r\n\r\n displayCredentialsSection(): boolean {\r\n return (\r\n this.provider.medicalSchools.length > 0 ||\r\n this.provider.residencies.length > 0 ||\r\n this.provider.fellowships.length > 0 ||\r\n this.provider.internships.length > 0 ||\r\n this.provider.certifications.length > 0 ||\r\n this.provider.memberships?.length > 0 ||\r\n this.provider.education?.length > 0\r\n );\r\n }\r\n\r\n handleSelectedOfficeChanged(office: OfficeAddress): void {\r\n this.selectedOfficeAddress = office;\r\n }\r\n\r\n initGuidedFlow(): void {\r\n this.showGuidedFlow = this.configurationService.getOnlineSchedulingType() === 'GuidedFlow'; // Get Value Injected into App Root\r\n }\r\n\r\n initOlsKY(): void {\r\n this.showDocAsap = true;\r\n this.docAsapIsChecked = true;\r\n this.olsDepartmentId = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsDepartmentId).systemId : null;\r\n this.olsProviderId = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsProviderId).systemId : null;\r\n if (this.olsDepartmentId && this.olsProviderId)\r\n {\r\n this.srcUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `${this.configurationService.getRuntimeConfiguration().myChartUrl}&dept=${this.olsDepartmentId.replace(/\\s+/g, ' ').trim()}&id=${this.olsProviderId.replace(/\\s+/g, ' ').trim()}`\r\n );\r\n }\r\n }\r\n\r\n initOlsDHForBlockIt(): void {\r\n this.showDocAsap = true;\r\n this.docAsapIsChecked = true;\r\n this.olsBlockIt = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt) !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == ApiConstants.olsBlockIt).systemId : null;\r\n if (this.olsBlockIt) {\r\n this.srcUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `${this.configurationService.getRuntimeConfiguration().blockItUrl}${this.olsBlockIt}`\r\n );\r\n }\r\n }\r\n\r\n initDocAsap(): void {\r\n this.providerSchedulingFeature = this.configurationService.getProviderSchedulingFeature();\r\n if (this.configurationService.getOnlineSchedulingType() === 'ThirdParty') {\r\n this.showDocAsap = true;\r\n this.docAsapIsChecked = true;\r\n if (this.providerSchedulingFeature) {\r\n this.docAsapId = this.provider?.isBookOnline ? this.provider?.providerSchedulingId ?? null : null;\r\n this.logService.error('from api: ' + this.docAsapId); //Note: will be removed after testing\r\n } else {\r\n this.providerService.getDocAsapIds().subscribe(\r\n (docAsapIds: { npi: number; docAsapId: number }[]) => {\r\n const matchingProvider = docAsapIds.find((provider: { npi: number; docAsapId: number }) => this.provider.npi.toString() === provider.npi.toString());\r\n if (matchingProvider) {\r\n this.docAsapId = matchingProvider.docAsapId.toString();\r\n }\r\n },\r\n (err) => {\r\n this.logService.error(err);\r\n this.docAsapIsChecked = true;\r\n }\r\n );\r\n this.logService.error('from ids.json:' + this.docAsapId); //Note: will be removed after testing\r\n }\r\n }\r\n\r\n if (this.docAsapId && this.provider.ehrCode) {\r\n this.srcUrl = this.sanitizer.bypassSecurityTrustResourceUrl(\r\n `https://docasap.com/white-label/specialty_id/0/key_reason/-1/key_doc_id/${this.docAsapId}/key_level/3/key_type/INLINE/key_partner_code/${this.provider.ehrCode}/key_mobile_inline_button/0/iframeWidth/550/iframeHeight/300/key_lazy_loading/0`\r\n );\r\n }\r\n }\r\n\r\n initSchedulingAppFlow(): void {\r\n this.showNewSchedulingApp = this.configurationService.showNewSchedulingApp();\r\n }\r\n\r\n initProviderCommentsInputs(): void {\r\n this.ratingFooterText =\r\n this.securityService.getRatingsFooterText(this.provider) ?? this.configurationService.defaultProviderRatings.defaultRatingsFooterText;\r\n this.ratingsFooterLinkText =\r\n this.securityService.getRatingsFooterLinkText(this.provider) ??\r\n this.configurationService.defaultProviderRatings.defaultRatingsFooterLinkText;\r\n this.ratingsFooterLink =\r\n this.securityService.getRatingsFooterLink(this.provider) ?? this.configurationService.defaultProviderRatings.defaultRatingsFooterLink;\r\n this.isShowProviderReviews = this.securityService.shouldShowProviderReviews(this.provider);\r\n this.commentsArrayLength = this.provider.rating?.comments.length;\r\n this.showMoreLessButton = this.commentsArrayLength >= 6;\r\n }\r\n\r\n InitLocationListInputs(): void {\r\n this.showMoreLessButtonForLocationList = this.hideExtraContentForLocationList = this.officeAddresses.length > 2;\r\n this.isDesktopViewportForLocationList = window.innerWidth > 991;\r\n this.hasMoreThanOneOffice = this.officeAddresses?.length > 1;\r\n }\r\n\r\n initCredentialInputs(): void {\r\n if (this.useLegacyAPI) {\r\n this.concatValuesIntoArray('education', true);\r\n this.concatValuesIntoArray('fellowships', true);\r\n this.concatValuesIntoArray('residencies', true);\r\n this.concatValuesIntoArray('practicums', true);\r\n this.concatValuesIntoArray('internships', true);\r\n this.concatValuesIntoArray('medicalSchools', true);\r\n } else {\r\n this.concatValuesIntoArray('education', false);\r\n this.concatValuesIntoArray('fellowships', false);\r\n this.concatValuesIntoArray('residencies', false);\r\n this.concatValuesIntoArray('practicums', false);\r\n this.concatValuesIntoArray('internships', false);\r\n this.concatValuesIntoArray('medicalSchools', false);\r\n }\r\n this.memberships = this.provider.memberships?.map((p) => p.programName) ?? [];\r\n }\r\n\r\n concatValuesIntoArray(credentialType: string, legacy: boolean): void {\r\n switch (credentialType) {\r\n case 'education': {\r\n if (this.provider.education !== undefined && this.provider.education?.length > 0) {\r\n if (legacy) {\r\n this.educationArray = this.educationArray.concat(this.provider.education);\r\n } else {\r\n this.educationArray = this.educationArray.concat(this.provider.education?.map((a) => '<b>Professional Education:</b> ' + a));\r\n }\r\n }\r\n break;\r\n }\r\n case 'fellowships': {\r\n if (this.provider.fellowships !== undefined && this.provider.fellowships?.length > 0) {\r\n if (legacy) {\r\n this.educationArray = this.educationArray.concat(this.provider.fellowships);\r\n } else {\r\n this.educationArray = this.educationArray.concat(this.provider.fellowships?.map((a) => '<b>Fellowship:</b> ' + a));\r\n }\r\n }\r\n break;\r\n }\r\n case 'residencies': {\r\n if (this.provider.residencies !== undefined && this.provider.residencies?.length > 0) {\r\n if (legacy) {\r\n this.educationArray = this.educationArray.concat(this.provider.residencies);\r\n } else {\r\n this.educationArray = this.educationArray.concat(this.provider.residencies?.map((a) => '<b>Residency:</b> ' + a));\r\n }\r\n }\r\n break;\r\n }\r\n case 'practicums': {\r\n if (this.provider.practicums !== undefined && this.provider.practicums?.length > 0) {\r\n this.educationArray = this.educationArray.concat(this.provider.practicums);\r\n }\r\n break;\r\n }\r\n case 'internships': {\r\n if (this.provider.internships !== undefined && this.provider.internships?.length > 0) {\r\n this.educationArray = this.educationArray.concat(this.provider.internships);\r\n }\r\n break;\r\n }\r\n case 'medicalSchools': {\r\n if (this.provider.medicalSchools !== undefined && this.provider.medicalSchools?.length > 0) {\r\n if (legacy) {\r\n this.educationArray = this.educationArray.concat(this.provider.medicalSchools);\r\n } else {\r\n this.educationArray = this.educationArray.concat(this.provider.medicalSchools?.map((a) => '<b>Medical School:</b> ' + a));\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n\r\n initProviderVideo(): void {\r\n this.provider.videos?.forEach((video: ProviderVideo) => {\r\n if (!this.videoId) {\r\n if(video.url.trim() != '') {\r\n this.videoId = video?.url?.split('?v=')[1].substring(0, 11);\r\n }\r\n }\r\n });\r\n }\r\n\r\n onStateChange(provider: Provider): void {\r\n this.cjaTagService.providerVideoViewed(provider);\r\n }\r\n\r\n updateProviderFullName(): void {\r\n if (!this.configurationService.showProviderPrefix()) {\r\n this.provider.displayFullName = ProviderInterfaceHelper.removeProviderNamePrefix(\r\n this.provider.firstName,\r\n this.provider.lastName,\r\n this.provider.degree\r\n );\r\n }\r\n }\r\n\r\n hiddenContentAvailable(parentContainer: string, childContainer: string): boolean {\r\n return hiddenContentAvailable(parentContainer, childContainer);\r\n }\r\n\r\n hasRatingsData(provider: Provider): boolean {\r\n if (\r\n provider?.rating?.totalRatingCount >= 30 &&\r\n provider?.rating?.totalSurveyCount >= 30 &&\r\n provider?.rating?.overallRating?.value > 0 &&\r\n provider.rating?.overallRating?.questionRatings !== null\r\n ) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n private checkFALRedirection(): void {\r\n const snapshot = this.route.snapshot;\r\n const params = { ...snapshot.queryParams };\r\n if (params.FALlocation) {\r\n window.sessionStorage.removeItem('falLocationDetailsParam');\r\n window.sessionStorage.setItem('falLocationDetailsParam', params.FALlocation);\r\n if (this.route.snapshot.queryParams.FALredirecttoFAD === 'true') {\r\n if (params.FALlocation !== null && params.FALlocation.length > 0) {\r\n this.showBacktoLoctionSearchBtn = true;\r\n }\r\n this.redirectFromFAL = true;\r\n }\r\n delete params.FALlocation;\r\n this.router.navigate([], { queryParams: params });\r\n }\r\n }\r\n\r\n scheduleProviderHandler(provider: Provider): void {\r\n if(this.isCernerPage)\r\n {\r\n //<------The below code is used in cerner Page to focus on Schedule Appointment Modal Popup----->\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostApptDetailstoMyAppointment_Cerner,\r\n data: 'RescheduleAppointment'\r\n })\r\n );\r\n }\r\n this.guidedFlowProvider = this.providerService.normalizeProviderBeforeScheduling(provider);\r\n this.launchGuidedFlow = this.configurationService.showGuidedFlowButton();\r\n }\r\n\r\n closeScheduleModal() {\r\n this.launchGuidedFlow = false;\r\n }\r\n\r\n get handleNavigateToSchedulingSpa(): boolean {\r\n return (\r\n this.configurationService.getEmbedSource() === 'cerner' ||\r\n this.configurationService.getEmbedSource() === 'mychart' ||\r\n this.fadLinkServer.isSelfHosted()\r\n );\r\n }\r\n\r\n navigateToSchedulingSpa(event: any): void {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n if (event) {\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.NavigateToSchedulingOnCerner,\r\n data: event\r\n })\r\n );\r\n }\r\n\r\n if(this.isCernerPage)\r\n {\r\n //<------The below code is used in cerner Page to get token from my-appointment-spa----->\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostApptDetailstoMyAppointment_Cerner,\r\n data: event\r\n })\r\n );\r\n const tokenInfo = window.sessionStorage.getItem(\r\n this.runtimeConfig.Cerner_MyAppointments_OIDC_Token\r\n );\r\n if (tokenInfo) {\r\n \r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostOidcTokentoMyAppointment_Cerner,\r\n data: tokenInfo\r\n })\r\n );\r\n }\r\n }\r\n }\r\n\r\n getCernerClass(className: string): string {\r\n return this.cernerModalService.getCernerClass(className);\r\n }\r\n \r\n printPage() {\r\n window.print();\r\n }\r\n}\r\n","import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nexport function fromEventPattern(addHandler, removeHandler, resultSelector) {\n if (resultSelector) {\n return fromEventPattern(addHandler, removeHandler).pipe(map(args => isArray(args) ? resultSelector(...args) : resultSelector(args)));\n }\n return new Observable(subscriber => {\n const handler = (...e) => subscriber.next(e.length === 1 ? e[0] : e);\n let retValue;\n try {\n retValue = addHandler(handler);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!isFunction(removeHandler)) {\n return undefined;\n }\n return () => removeHandler(handler, retValue);\n });\n}\n","import * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, InjectionToken, numberAttribute, inject, CSP_NONCE, ChangeDetectorRef, PLATFORM_ID, booleanAttribute, Inject, Output, ViewChild, NgModule } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Subject, BehaviorSubject, fromEventPattern, of, Observable } from 'rxjs';\nimport { switchMap, takeUntil } from 'rxjs/operators';\n\nclass YouTubePlayerPlaceholder {\n /** Gets the background image showing the placeholder. */\n _getBackgroundImage() {\n let url;\n if (this.quality === 'low') {\n url = `https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg`;\n }\n else if (this.quality === 'high') {\n url = `https://i.ytimg.com/vi/${this.videoId}/maxresdefault.jpg`;\n }\n else {\n url = `https://i.ytimg.com/vi_webp/${this.videoId}/sddefault.webp`;\n }\n return `url(${url})`;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayerPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.2.0\", type: YouTubePlayerPlaceholder, isStandalone: true, selector: \"youtube-player-placeholder\", inputs: { videoId: \"videoId\", width: \"width\", height: \"height\", isLoading: \"isLoading\", buttonLabel: \"buttonLabel\", quality: \"quality\" }, host: { properties: { \"class.youtube-player-placeholder-loading\": \"isLoading\", \"style.background-image\": \"_getBackgroundImage()\", \"style.width.px\": \"width\", \"style.height.px\": \"height\" }, classAttribute: \"youtube-player-placeholder\" }, ngImport: i0, template: `\n <button type=\"button\" class=\"youtube-player-placeholder-button\" [attr.aria-label]=\"buttonLabel\">\n <svg\n height=\"100%\"\n version=\"1.1\"\n viewBox=\"0 0 68 48\"\n focusable=\"false\"\n aria-hidden=\"true\">\n <path d=\"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z\" fill=\"#f00\"></path>\n <path d=\"M 45,24 27,14 27,34\" fill=\"#fff\"></path>\n </svg>\n </button>\n `, isInline: true, styles: [\".youtube-player-placeholder{display:flex;align-items:center;justify-content:center;width:100%;overflow:hidden;cursor:pointer;background-color:#000;background-position:center center;background-size:cover;transition:box-shadow 300ms ease;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,.8)}.youtube-player-placeholder-button{transition:opacity 300ms ease;-moz-appearance:none;-webkit-appearance:none;background:none;border:none;padding:0;display:flex}.youtube-player-placeholder-button svg{width:68px;height:48px}.youtube-player-placeholder-loading{box-shadow:none}.youtube-player-placeholder-loading .youtube-player-placeholder-button{opacity:0}\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayerPlaceholder, decorators: [{\n type: Component,\n args: [{ selector: 'youtube-player-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `\n <button type=\"button\" class=\"youtube-player-placeholder-button\" [attr.aria-label]=\"buttonLabel\">\n <svg\n height=\"100%\"\n version=\"1.1\"\n viewBox=\"0 0 68 48\"\n focusable=\"false\"\n aria-hidden=\"true\">\n <path d=\"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z\" fill=\"#f00\"></path>\n <path d=\"M 45,24 27,14 27,34\" fill=\"#fff\"></path>\n </svg>\n </button>\n `, standalone: true, host: {\n 'class': 'youtube-player-placeholder',\n '[class.youtube-player-placeholder-loading]': 'isLoading',\n '[style.background-image]': '_getBackgroundImage()',\n '[style.width.px]': 'width',\n '[style.height.px]': 'height',\n }, styles: [\".youtube-player-placeholder{display:flex;align-items:center;justify-content:center;width:100%;overflow:hidden;cursor:pointer;background-color:#000;background-position:center center;background-size:cover;transition:box-shadow 300ms ease;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,.8)}.youtube-player-placeholder-button{transition:opacity 300ms ease;-moz-appearance:none;-webkit-appearance:none;background:none;border:none;padding:0;display:flex}.youtube-player-placeholder-button svg{width:68px;height:48px}.youtube-player-placeholder-loading{box-shadow:none}.youtube-player-placeholder-loading .youtube-player-placeholder-button{opacity:0}\"] }]\n }], propDecorators: { videoId: [{\n type: Input\n }], width: [{\n type: Input\n }], height: [{\n type: Input\n }], isLoading: [{\n type: Input\n }], buttonLabel: [{\n type: Input\n }], quality: [{\n type: Input\n }] } });\n\n/// <reference types=\"youtube\" />\n/** Injection token used to configure the `YouTubePlayer`. */\nconst YOUTUBE_PLAYER_CONFIG = new InjectionToken('YOUTUBE_PLAYER_CONFIG');\nconst DEFAULT_PLAYER_WIDTH = 640;\nconst DEFAULT_PLAYER_HEIGHT = 390;\n/** Coercion function for time values. */\nfunction coerceTime(value) {\n return value == null ? value : numberAttribute(value, 0);\n}\n/**\n * Angular component that renders a YouTube player via the YouTube player\n * iframe API.\n * @see https://developers.google.com/youtube/iframe_api_reference\n */\nclass YouTubePlayer {\n /** Height of video player */\n get height() {\n return this._height;\n }\n set height(height) {\n this._height = height == null || isNaN(height) ? DEFAULT_PLAYER_HEIGHT : height;\n }\n /** Width of video player */\n get width() {\n return this._width;\n }\n set width(width) {\n this._width = width == null || isNaN(width) ? DEFAULT_PLAYER_WIDTH : width;\n }\n constructor(_ngZone, platformId) {\n this._ngZone = _ngZone;\n this._destroyed = new Subject();\n this._playerChanges = new BehaviorSubject(undefined);\n this._nonce = inject(CSP_NONCE, { optional: true });\n this._changeDetectorRef = inject(ChangeDetectorRef);\n this._isLoading = false;\n this._hasPlaceholder = true;\n this._height = DEFAULT_PLAYER_HEIGHT;\n this._width = DEFAULT_PLAYER_WIDTH;\n /** Whether cookies inside the player have been disabled. */\n this.disableCookies = false;\n /**\n * By default the player shows a placeholder image instead of loading the YouTube API which\n * improves the initial page load performance. This input allows for the behavior to be disabled.\n */\n this.disablePlaceholder = false;\n /**\n * Whether the iframe will attempt to load regardless of the status of the api on the\n * page. Set this to true if you don't want the `onYouTubeIframeAPIReady` field to be\n * set on the global window.\n */\n this.showBeforeIframeApiLoads = false;\n /** Outputs are direct proxies from the player itself. */\n this.ready = this._getLazyEmitter('onReady');\n this.stateChange = this._getLazyEmitter('onStateChange');\n this.error = this._getLazyEmitter('onError');\n this.apiChange = this._getLazyEmitter('onApiChange');\n this.playbackQualityChange = this._getLazyEmitter('onPlaybackQualityChange');\n this.playbackRateChange = this._getLazyEmitter('onPlaybackRateChange');\n const config = inject(YOUTUBE_PLAYER_CONFIG, { optional: true });\n this.loadApi = config?.loadApi ?? true;\n this.disablePlaceholder = !!config?.disablePlaceholder;\n this.placeholderButtonLabel = config?.placeholderButtonLabel || 'Play video';\n this.placeholderImageQuality = config?.placeholderImageQuality || 'standard';\n this._isBrowser = isPlatformBrowser(platformId);\n }\n ngAfterViewInit() {\n this._conditionallyLoad();\n }\n ngOnChanges(changes) {\n if (this._shouldRecreatePlayer(changes)) {\n this._conditionallyLoad();\n }\n else if (this._player) {\n if (changes['width'] || changes['height']) {\n this._setSize();\n }\n if (changes['suggestedQuality']) {\n this._setQuality();\n }\n if (changes['startSeconds'] || changes['endSeconds'] || changes['suggestedQuality']) {\n this._cuePlayer();\n }\n }\n }\n ngOnDestroy() {\n this._pendingPlayer?.destroy();\n if (this._player) {\n this._player.destroy();\n window.onYouTubeIframeAPIReady = this._existingApiReadyCallback;\n }\n this._playerChanges.complete();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#playVideo */\n playVideo() {\n if (this._player) {\n this._player.playVideo();\n }\n else {\n this._getPendingState().playbackState = YT.PlayerState.PLAYING;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#pauseVideo */\n pauseVideo() {\n if (this._player) {\n this._player.pauseVideo();\n }\n else {\n this._getPendingState().playbackState = YT.PlayerState.PAUSED;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#stopVideo */\n stopVideo() {\n if (this._player) {\n this._player.stopVideo();\n }\n else {\n // It seems like YouTube sets the player to CUED when it's stopped.\n this._getPendingState().playbackState = YT.PlayerState.CUED;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#seekTo */\n seekTo(seconds, allowSeekAhead) {\n if (this._player) {\n this._player.seekTo(seconds, allowSeekAhead);\n }\n else {\n this._getPendingState().seek = { seconds, allowSeekAhead };\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#mute */\n mute() {\n if (this._player) {\n this._player.mute();\n }\n else {\n this._getPendingState().muted = true;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#unMute */\n unMute() {\n if (this._player) {\n this._player.unMute();\n }\n else {\n this._getPendingState().muted = false;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#isMuted */\n isMuted() {\n if (this._player) {\n return this._player.isMuted();\n }\n if (this._pendingPlayerState) {\n return !!this._pendingPlayerState.muted;\n }\n return false;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#setVolume */\n setVolume(volume) {\n if (this._player) {\n this._player.setVolume(volume);\n }\n else {\n this._getPendingState().volume = volume;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getVolume */\n getVolume() {\n if (this._player) {\n return this._player.getVolume();\n }\n if (this._pendingPlayerState && this._pendingPlayerState.volume != null) {\n return this._pendingPlayerState.volume;\n }\n return 0;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#setPlaybackRate */\n setPlaybackRate(playbackRate) {\n if (this._player) {\n return this._player.setPlaybackRate(playbackRate);\n }\n else {\n this._getPendingState().playbackRate = playbackRate;\n }\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getPlaybackRate */\n getPlaybackRate() {\n if (this._player) {\n return this._player.getPlaybackRate();\n }\n if (this._pendingPlayerState && this._pendingPlayerState.playbackRate != null) {\n return this._pendingPlayerState.playbackRate;\n }\n return 0;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getAvailablePlaybackRates */\n getAvailablePlaybackRates() {\n return this._player ? this._player.getAvailablePlaybackRates() : [];\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getVideoLoadedFraction */\n getVideoLoadedFraction() {\n return this._player ? this._player.getVideoLoadedFraction() : 0;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getPlayerState */\n getPlayerState() {\n if (!this._isBrowser || !window.YT) {\n return undefined;\n }\n if (this._player) {\n return this._player.getPlayerState();\n }\n if (this._pendingPlayerState && this._pendingPlayerState.playbackState != null) {\n return this._pendingPlayerState.playbackState;\n }\n return YT.PlayerState.UNSTARTED;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getCurrentTime */\n getCurrentTime() {\n if (this._player) {\n return this._player.getCurrentTime();\n }\n if (this._pendingPlayerState && this._pendingPlayerState.seek) {\n return this._pendingPlayerState.seek.seconds;\n }\n return 0;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getPlaybackQuality */\n getPlaybackQuality() {\n return this._player ? this._player.getPlaybackQuality() : 'default';\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getAvailableQualityLevels */\n getAvailableQualityLevels() {\n return this._player ? this._player.getAvailableQualityLevels() : [];\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getDuration */\n getDuration() {\n return this._player ? this._player.getDuration() : 0;\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getVideoUrl */\n getVideoUrl() {\n return this._player ? this._player.getVideoUrl() : '';\n }\n /** See https://developers.google.com/youtube/iframe_api_reference#getVideoEmbedCode */\n getVideoEmbedCode() {\n return this._player ? this._player.getVideoEmbedCode() : '';\n }\n /**\n * Loads the YouTube API and sets up the player.\n * @param playVideo Whether to automatically play the video once the player is loaded.\n */\n _load(playVideo) {\n // Don't do anything if we're not in a browser environment.\n if (!this._isBrowser) {\n return;\n }\n if (!window.YT || !window.YT.Player) {\n if (this.loadApi) {\n this._isLoading = true;\n loadApi(this._nonce);\n }\n else if (this.showBeforeIframeApiLoads && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error('Namespace YT not found, cannot construct embedded youtube player. ' +\n 'Please install the YouTube Player API Reference for iframe Embeds: ' +\n 'https://developers.google.com/youtube/iframe_api_reference');\n }\n this._existingApiReadyCallback = window.onYouTubeIframeAPIReady;\n window.onYouTubeIframeAPIReady = () => {\n this._existingApiReadyCallback?.();\n this._ngZone.run(() => this._createPlayer(playVideo));\n };\n }\n else {\n this._createPlayer(playVideo);\n }\n }\n /** Loads the player depending on the internal state of the component. */\n _conditionallyLoad() {\n // If the placeholder isn't shown anymore, we have to trigger a load.\n if (!this._shouldShowPlaceholder()) {\n this._load(false);\n }\n else if (this.playerVars?.autoplay === 1) {\n // If it's an autoplaying video, we have to hide the placeholder and start playing.\n this._load(true);\n }\n }\n /** Whether to show the placeholder element. */\n _shouldShowPlaceholder() {\n if (this.disablePlaceholder) {\n return false;\n }\n // Since we don't load the API on the server, we show the placeholder permanently.\n if (!this._isBrowser) {\n return true;\n }\n return this._hasPlaceholder && !!this.videoId && !this._player;\n }\n /** Gets an object that should be used to store the temporary API state. */\n _getPendingState() {\n if (!this._pendingPlayerState) {\n this._pendingPlayerState = {};\n }\n return this._pendingPlayerState;\n }\n /**\n * Determines whether a change in the component state\n * requires the YouTube player to be recreated.\n */\n _shouldRecreatePlayer(changes) {\n const change = changes['videoId'] ||\n changes['playerVars'] ||\n changes['disableCookies'] ||\n changes['disablePlaceholder'];\n return !!change && !change.isFirstChange();\n }\n /**\n * Creates a new YouTube player and destroys the existing one.\n * @param playVideo Whether to play the video once it loads.\n */\n _createPlayer(playVideo) {\n this._player?.destroy();\n this._pendingPlayer?.destroy();\n // A player can't be created if the API isn't loaded,\n // or there isn't a video or playlist to be played.\n if (typeof YT === 'undefined' || (!this.videoId && !this.playerVars?.list)) {\n return;\n }\n // Important! We need to create the Player object outside of the `NgZone`, because it kicks\n // off a 250ms setInterval which will continually trigger change detection if we don't.\n const player = this._ngZone.runOutsideAngular(() => new YT.Player(this.youtubeContainer.nativeElement, {\n videoId: this.videoId,\n host: this.disableCookies ? 'https://www.youtube-nocookie.com' : undefined,\n width: this.width,\n height: this.height,\n // Calling `playVideo` on load doesn't appear to actually play\n // the video so we need to trigger it through `playerVars` instead.\n playerVars: playVideo ? { ...(this.playerVars || {}), autoplay: 1 } : this.playerVars,\n }));\n const whenReady = () => {\n // Only assign the player once it's ready, otherwise YouTube doesn't expose some APIs.\n this._ngZone.run(() => {\n this._isLoading = false;\n this._hasPlaceholder = false;\n this._player = player;\n this._pendingPlayer = undefined;\n player.removeEventListener('onReady', whenReady);\n this._playerChanges.next(player);\n this._setSize();\n this._setQuality();\n if (this._pendingPlayerState) {\n this._applyPendingPlayerState(player, this._pendingPlayerState);\n this._pendingPlayerState = undefined;\n }\n // Only cue the player when it either hasn't started yet or it's cued,\n // otherwise cuing it can interrupt a player with autoplay enabled.\n const state = player.getPlayerState();\n if (state === YT.PlayerState.UNSTARTED || state === YT.PlayerState.CUED || state == null) {\n this._cuePlayer();\n }\n this._changeDetectorRef.markForCheck();\n });\n };\n this._pendingPlayer = player;\n player.addEventListener('onReady', whenReady);\n }\n /** Applies any state that changed before the player was initialized. */\n _applyPendingPlayerState(player, pendingState) {\n const { playbackState, playbackRate, volume, muted, seek } = pendingState;\n switch (playbackState) {\n case YT.PlayerState.PLAYING:\n player.playVideo();\n break;\n case YT.PlayerState.PAUSED:\n player.pauseVideo();\n break;\n case YT.PlayerState.CUED:\n player.stopVideo();\n break;\n }\n if (playbackRate != null) {\n player.setPlaybackRate(playbackRate);\n }\n if (volume != null) {\n player.setVolume(volume);\n }\n if (muted != null) {\n muted ? player.mute() : player.unMute();\n }\n if (seek != null) {\n player.seekTo(seek.seconds, seek.allowSeekAhead);\n }\n }\n /** Cues the player based on the current component state. */\n _cuePlayer() {\n if (this._player && this.videoId) {\n this._player.cueVideoById({\n videoId: this.videoId,\n startSeconds: this.startSeconds,\n endSeconds: this.endSeconds,\n suggestedQuality: this.suggestedQuality,\n });\n }\n }\n /** Sets the player's size based on the current input values. */\n _setSize() {\n this._player?.setSize(this.width, this.height);\n }\n /** Sets the player's quality based on the current input values. */\n _setQuality() {\n if (this._player && this.suggestedQuality) {\n this._player.setPlaybackQuality(this.suggestedQuality);\n }\n }\n /** Gets an observable that adds an event listener to the player when a user subscribes to it. */\n _getLazyEmitter(name) {\n // Start with the stream of players. This way the events will be transferred\n // over to the new player if it gets swapped out under-the-hood.\n return this._playerChanges.pipe(\n // Switch to the bound event. `switchMap` ensures that the old event is removed when the\n // player is changed. If there's no player, return an observable that never emits.\n switchMap(player => {\n return player\n ? fromEventPattern((listener) => {\n player.addEventListener(name, listener);\n }, (listener) => {\n // The API seems to throw when we try to unbind from a destroyed player and it doesn't\n // expose whether the player has been destroyed so we have to wrap it in a try/catch to\n // prevent the entire stream from erroring out.\n try {\n player?.removeEventListener?.(name, listener);\n }\n catch { }\n })\n : of();\n }), \n // By default we run all the API interactions outside the zone\n // so we have to bring the events back in manually when they emit.\n source => new Observable(observer => source.subscribe({\n next: value => this._ngZone.run(() => observer.next(value)),\n error: error => observer.error(error),\n complete: () => observer.complete(),\n })), \n // Ensures that everything is cleared out on destroy.\n takeUntil(this._destroyed));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayer, deps: [{ token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"17.2.0\", type: YouTubePlayer, isStandalone: true, selector: \"youtube-player\", inputs: { videoId: \"videoId\", height: [\"height\", \"height\", numberAttribute], width: [\"width\", \"width\", numberAttribute], startSeconds: [\"startSeconds\", \"startSeconds\", coerceTime], endSeconds: [\"endSeconds\", \"endSeconds\", coerceTime], suggestedQuality: \"suggestedQuality\", playerVars: \"playerVars\", disableCookies: [\"disableCookies\", \"disableCookies\", booleanAttribute], loadApi: [\"loadApi\", \"loadApi\", booleanAttribute], disablePlaceholder: [\"disablePlaceholder\", \"disablePlaceholder\", booleanAttribute], showBeforeIframeApiLoads: [\"showBeforeIframeApiLoads\", \"showBeforeIframeApiLoads\", booleanAttribute], placeholderButtonLabel: \"placeholderButtonLabel\", placeholderImageQuality: \"placeholderImageQuality\" }, outputs: { ready: \"ready\", stateChange: \"stateChange\", error: \"error\", apiChange: \"apiChange\", playbackQualityChange: \"playbackQualityChange\", playbackRateChange: \"playbackRateChange\" }, viewQueries: [{ propertyName: \"youtubeContainer\", first: true, predicate: [\"youtubeContainer\"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `\n @if (_shouldShowPlaceholder()) {\n <youtube-player-placeholder\n [videoId]=\"videoId!\"\n [width]=\"width\"\n [height]=\"height\"\n [isLoading]=\"_isLoading\"\n [buttonLabel]=\"placeholderButtonLabel\"\n [quality]=\"placeholderImageQuality\"\n (click)=\"_load(true)\"/>\n }\n <div [style.display]=\"_shouldShowPlaceholder() ? 'none' : ''\">\n <div #youtubeContainer></div>\n </div>\n `, isInline: true, dependencies: [{ kind: \"component\", type: YouTubePlayerPlaceholder, selector: \"youtube-player-placeholder\", inputs: [\"videoId\", \"width\", \"height\", \"isLoading\", \"buttonLabel\", \"quality\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayer, decorators: [{\n type: Component,\n args: [{\n selector: 'youtube-player',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [YouTubePlayerPlaceholder],\n template: `\n @if (_shouldShowPlaceholder()) {\n <youtube-player-placeholder\n [videoId]=\"videoId!\"\n [width]=\"width\"\n [height]=\"height\"\n [isLoading]=\"_isLoading\"\n [buttonLabel]=\"placeholderButtonLabel\"\n [quality]=\"placeholderImageQuality\"\n (click)=\"_load(true)\"/>\n }\n <div [style.display]=\"_shouldShowPlaceholder() ? 'none' : ''\">\n <div #youtubeContainer></div>\n </div>\n `,\n }]\n }], ctorParameters: () => [{ type: i0.NgZone }, { type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }], propDecorators: { videoId: [{\n type: Input\n }], height: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], width: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], startSeconds: [{\n type: Input,\n args: [{ transform: coerceTime }]\n }], endSeconds: [{\n type: Input,\n args: [{ transform: coerceTime }]\n }], suggestedQuality: [{\n type: Input\n }], playerVars: [{\n type: Input\n }], disableCookies: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], loadApi: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], disablePlaceholder: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], showBeforeIframeApiLoads: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], placeholderButtonLabel: [{\n type: Input\n }], placeholderImageQuality: [{\n type: Input\n }], ready: [{\n type: Output\n }], stateChange: [{\n type: Output\n }], error: [{\n type: Output\n }], apiChange: [{\n type: Output\n }], playbackQualityChange: [{\n type: Output\n }], playbackRateChange: [{\n type: Output\n }], youtubeContainer: [{\n type: ViewChild,\n args: ['youtubeContainer', { static: true }]\n }] } });\nlet apiLoaded = false;\n/** Loads the YouTube API from a specified URL only once. */\nfunction loadApi(nonce) {\n if (apiLoaded) {\n return;\n }\n // We can use `document` directly here, because this logic doesn't run outside the browser.\n const url = 'https://www.youtube.com/iframe_api';\n const script = document.createElement('script');\n const callback = (event) => {\n script.removeEventListener('load', callback);\n script.removeEventListener('error', callback);\n if (event.type === 'error') {\n apiLoaded = false;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.error(`Failed to load YouTube API from ${url}`);\n }\n }\n };\n script.addEventListener('load', callback);\n script.addEventListener('error', callback);\n script.src = url;\n script.async = true;\n if (nonce) {\n script.setAttribute('nonce', nonce);\n }\n // Set this immediately to true so we don't start loading another script\n // while this one is pending. If loading fails, we'll flip it back to false.\n apiLoaded = true;\n document.body.appendChild(script);\n}\n\nclass YouTubePlayerModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayerModule, imports: [YouTubePlayer], exports: [YouTubePlayer] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayerModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: YouTubePlayerModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [YouTubePlayer],\n exports: [YouTubePlayer],\n }]\n }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { YOUTUBE_PLAYER_CONFIG, YouTubePlayer, YouTubePlayerModule };\n","<div class=\"list-container\" *ngIf=\"listItems.length > 0\" [ngClass]=\"listCustomClass\">\r\n <div class=\"list-header fad-col-sm-12\" *ngIf=\"sectionTitle\">\r\n <h2>{{ sectionTitle }}<br /></h2>\r\n </div>\r\n <div class=\"insurance-disclaimer fad-col-sm-12\" *ngIf=\"isInsuranceSection\">\r\n <svg class=\"info-icon\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M16.25 8.25C16.25 3.8629 12.6371 0.25 8.25 0.25C3.83065 0.25 0.25 3.8629 0.25 8.25C0.25 12.6694 3.83065 16.25 8.25 16.25C12.6371 16.25 16.25 12.6694 16.25 8.25ZM8.25 9.8629C9.05645 9.8629 9.73387 10.5403 9.73387 11.3468C9.73387 12.1855 9.05645 12.8306 8.25 12.8306C7.41129 12.8306 6.76613 12.1855 6.76613 11.3468C6.76613 10.5403 7.41129 9.8629 8.25 9.8629ZM6.83065 4.54032C6.79839 4.31452 6.99194 4.12097 7.21774 4.12097H9.25C9.47581 4.12097 9.66935 4.31452 9.6371 4.54032L9.41129 8.92742C9.37903 9.15323 9.21774 9.28226 9.02419 9.28226H7.44355C7.25 9.28226 7.08871 9.15323 7.05645 8.92742L6.83065 4.54032Z\"\r\n />\r\n </svg>\r\n <p>{{ insuranceCarriersDisclaimerText }}</p>\r\n </div>\r\n <div class=\"affiliations-description\" *ngIf=\"isAffiliationSection\">\r\n <p>Below is a list of facilities where this provider is credentialed and approved to perform procedures.</p>\r\n </div>\r\n <div #listContainer class=\"fad-col-sm-12 item-list\" [ngClass]=\"{ 'show-less-content': hideExtraContent }\">\r\n <div [ngClass]=\"{ 'item-columns': useColumns }\" *ngIf=\"!isAffiliationSection && !isCredentialsSection && !isAwardsSection\" role=\"list\">\r\n <p #expandableList *ngFor=\"let item of listItems\" role=\"listitem\">{{ item }}</p>\r\n <p></p>\r\n </div>\r\n <div *ngIf=\"isAffiliationSection\" class=\"item-columns\">\r\n <p #expandableList *ngFor=\"let item of listItems\">{{ item }}</p>\r\n </div>\r\n <div *ngIf=\"isCredentialsSection\" class=\"credentials-list\">\r\n <ul>\r\n <li #expandableList *ngFor=\"let item of listItems\" [innerHtml]=\"item\"></li>\r\n </ul>\r\n </div>\r\n <div [ngClass]=\"{ 'item-columns': useColumns }\" *ngIf=\"isAwardsSection\" class=\"awards-columns\">\r\n <p #expandableList *ngFor=\"let item of listItems\">{{ item }}</p>\r\n </div>\r\n </div>\r\n <div class=\"show-more-less\" *ngIf=\"showMoreLessButton\">\r\n <a href=\"javascript:;\" (click)=\"toggleListExpanded()\">\r\n {{ hideExtraContent ? 'More' : 'Less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 1L10.5067 10.4933L1.01426 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n</div>\r\n","import { AfterViewInit, Component, ElementRef, HostListener, Input, ViewChild, OnInit } from '@angular/core';\r\nimport { providerDetailConstants } from '../../constants/provider-detail-constants';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-expandable-list',\r\n templateUrl: './expandable-list.component.html',\r\n styleUrls: ['./expandable-list.component.scss']\r\n})\r\nexport class ExpandableListComponent implements AfterViewInit, OnInit {\r\n @Input() sectionTitle = '';\r\n @Input() listItems = [];\r\n @Input() isInsuranceSection = false;\r\n @Input() useColumns = true;\r\n @Input() isAffiliationSection = false;\r\n @Input() isCredentialsSection = false;\r\n @Input() isAwardsSection = false;\r\n hideExtraContent = true;\r\n moreLessExpanded = false;\r\n listCustomClass: string;\r\n showMoreLessButton: boolean;\r\n isCernerPage: boolean;\r\n insuranceCarriersDisclaimerText = providerDetailConstants.InsuranceCarriersDisclaimer;\r\n\r\n @ViewChild('expandableList') expandableList: ElementRef;\r\n @ViewChild('listContainer') listContainer: ElementRef;\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize() {\r\n if(!this.isCernerPage){\r\n\r\n const setHeight =\r\n parseInt(window.getComputedStyle(this.expandableList.nativeElement).lineHeight, 10) * (this.isAffiliationSection ? 3 : 6) +\r\n (this.isCredentialsSection ? 6 * 8 : 0);\r\n const containerHeight = parseInt(this.listContainer.nativeElement.scrollHeight, 10);\r\n\r\n const shouldHide = containerHeight > setHeight;\r\n\r\n this.hideExtraContent = shouldHide && !this.moreLessExpanded;\r\n this.showMoreLessButton = shouldHide;\r\n this.listContainer.nativeElement.style.height = this.hideExtraContent ? `${setHeight}px` : '';\r\n \r\n }\r\n }\r\n constructor(\r\n private configurationService: ConfigurationService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.isCernerPage=this.configurationService.getCernerPage();\r\n }\r\n\r\n ngAfterViewInit() {\r\n setTimeout(() => {\r\n const setHeight =\r\n parseInt(window.getComputedStyle(this.expandableList.nativeElement).lineHeight, 10) * (this.isAffiliationSection ? 3 : 6) +\r\n (this.isCredentialsSection ? 6 * 8 : 0); // 8 is credential section li padding bottom\r\n const containerHeight = parseInt(this.listContainer.nativeElement.scrollHeight, 10);\r\n const shouldHide = containerHeight > setHeight;\r\n\r\n this.hideExtraContent = shouldHide && !this.moreLessExpanded;\r\n this.showMoreLessButton = shouldHide;\r\n this.listContainer.nativeElement.style.height = this.hideExtraContent ? `${setHeight}px` : '';\r\n this.listCustomClass = this.sectionTitle.toLowerCase().replace(/ /g, '-');\r\n });\r\n }\r\n\r\n toggleListExpanded() {\r\n this.hideExtraContent = !this.hideExtraContent;\r\n this.moreLessExpanded = !this.moreLessExpanded;\r\n\r\n const setHeight =\r\n parseInt(window.getComputedStyle(this.expandableList.nativeElement).lineHeight, 10) * (this.isAffiliationSection ? 3 : 6) +\r\n (this.isCredentialsSection ? 6 * 8 : 0);\r\n this.listContainer.nativeElement.style.height = this.hideExtraContent ? `${setHeight}px` : '';\r\n }\r\n}\r\n","export const providerDetailConstants = {\r\n InsuranceCarriersDisclaimer: 'Always check with your healthcare provider for the most up-to-date information'\r\n};\r\n","<div class=\"credentials-container\">\r\n <div class=\"provider-credentials fad-col-sm-12\">\r\n <h2>Credentials<br /></h2>\r\n <div class=\"cred-column\" *ngIf=\"provider.certifications.length > 0\">\r\n <div class=\"certifications-container\">\r\n <div class=\"certifications-header\">\r\n <h3>Board Certifications<br /></h3>\r\n </div>\r\n <cs-expandable-list [isCredentialsSection]=\"true\" [listItems]=\"provider.certifications\" [useColumns]=\"false\"></cs-expandable-list>\r\n </div>\r\n </div>\r\n <div class=\"cred-column\" *ngIf=\"educationArray.length > 0\">\r\n <div class=\"education-container\">\r\n <div class=\"education-header\">\r\n <h3>Education<br /></h3>\r\n </div>\r\n <cs-expandable-list [isCredentialsSection]=\"true\" [listItems]=\"educationArray\" [useColumns]=\"false\"></cs-expandable-list>\r\n </div>\r\n </div>\r\n <div class=\"cred-column\" *ngIf=\"memberships.length > 0\">\r\n <div class=\"membership-container\">\r\n <div class=\"membership-header\">\r\n <h3>Memberships<br /></h3>\r\n </div>\r\n <cs-expandable-list [isCredentialsSection]=\"true\" [listItems]=\"memberships\" [useColumns]=\"false\"></cs-expandable-list>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\nimport { Provider } from '../../models/provider';\r\n\r\n@Component({\r\n selector: 'cs-credentials',\r\n templateUrl: './credentials.component.html',\r\n styleUrls: ['./credentials.component.scss']\r\n})\r\nexport class CredentialsComponent {\r\n @Input() provider: Provider;\r\n @Input() educationArray: any[];\r\n @Input() memberships: string[];\r\n}\r\n","<div class=\"provider-stat fad-col-sm-12 provider-philosophy\" *ngIf=\"philosophy\">\r\n <h3>\r\n Care philosophy<br />\r\n <div class=\"philosophy-content\" [ngClass]=\"{ 'show-less-content': hideExtraContent }\">\r\n <p [innerHTML]=\"philosophy\"></p>\r\n </div>\r\n </h3>\r\n <div class=\"show-more-less\" *ngIf=\"showMoreLessButton\">\r\n <a href=\"javascript:;\" (click)=\"hideExtraContent = !hideExtraContent; moreLessExpanded = !moreLessExpanded\">\r\n {{ hideExtraContent ? 'More' : 'Less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 1L10.5067 10.4933L1.01426 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-care-philosophy',\r\n templateUrl: './care-philosophy.component.html',\r\n styleUrls: ['./care-philosophy.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CarePhilosophyComponent {\r\n @Input() philosophy: string;\r\n @Input() hideExtraContent: boolean;\r\n moreLessExpanded = false;\r\n @Input() showMoreLessButton: boolean;\r\n}\r\n","<div class=\"provider-stat fad-col-sm-12 provider-personal-info\" *ngIf=\"information\">\r\n <h3>\r\n Personal Information<br />\r\n <div class=\"personal-info-content\">\r\n <p [innerHTML]=\"information\"></p>\r\n </div>\r\n </h3>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-personal-info',\r\n templateUrl: './personal-info.component.html',\r\n styleUrls: ['./personal-info.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class PersonalInfoComponent {\r\n @Input() information: string;\r\n}\r\n","<div class=\"provider-stat fad-col-sm-12 provider-ownwords\" *ngIf=\"ownWords\">\r\n <h3>\r\n <span *ngIf=\"inMyOwnWordsTitle\">{{ inMyOwnWordsTitle }}</span>\r\n <div class=\"ownwords-content\" [ngClass]=\"{ 'show-less-content': hideExtraContent }\">\r\n <p [innerHTML]=\"ownWords\"></p>\r\n <p></p>\r\n </div>\r\n </h3>\r\n <div class=\"show-more-less\" *ngIf=\"showMoreLessButton\">\r\n <a href=\"javascript:;\" (click)=\"hideExtraContent = !hideExtraContent; moreLessExpanded = !moreLessExpanded\">\r\n {{ hideExtraContent ? 'More' : 'Less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 1L10.5067 10.4933L1.01426 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-own-words',\r\n templateUrl: './own-words.component.html',\r\n styleUrls: ['./own-words.component.scss']\r\n})\r\nexport class OwnWordsComponent {\r\n @Input() ownWords: string;\r\n @Input() hideExtraContent = true;\r\n @Input() showMoreLessButton = false;\r\n @Input() inMyOwnWordsTitle: string;\r\n moreLessExpanded = false;\r\n}\r\n","import { Component, Input, Output, ViewChild, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\r\nimport { YouTubePlayer } from '@angular/youtube-player';\r\nimport { Provider } from '../../models/provider';\r\n\r\n@Component({\r\n selector: 'cs-you-tube-player',\r\n templateUrl: './you-tube-player.component.html',\r\n styleUrls: ['./you-tube-player.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class YouTubePlayerComponent {\r\n @Input() videoId: any;\r\n @Input() provider: Provider;\r\n @ViewChild('player') player: YouTubePlayer;\r\n playerVars: YT.PlayerVars;\r\n isAnalyticsTriggered = false;\r\n @Output() callAdobeService = new EventEmitter<Provider>();\r\n constructor() {\r\n this.init();\r\n }\r\n\r\n init(): void {\r\n const tag = document.createElement('script');\r\n tag.src = 'https://www.youtube.com/iframe_api';\r\n const firstScriptTag = document.getElementsByTagName('script')[0];\r\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\r\n }\r\n\r\n onStateChange(event: YT.OnStateChangeEvent) {\r\n if (event.data === 1 && !this.isAnalyticsTriggered) {\r\n this.callAdobeService.emit(this.provider);\r\n this.isAnalyticsTriggered = true;\r\n }\r\n }\r\n}\r\n","<youtube-player #player [videoId]=\"videoId\" [playerVars]=\"playerVars\" (stateChange)=\"onStateChange($event)\"></youtube-player>\r\n","import { Component, Input, ViewEncapsulation, ChangeDetectionStrategy, Output, EventEmitter } from '@angular/core';\r\nimport { Provider } from '../../models/provider';\r\n\r\n@Component({\r\n selector: 'cs-provider-video',\r\n templateUrl: './provider-video.component.html',\r\n styleUrls: ['./provider-video.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ProviderVideoComponent {\r\n @Input() provider: Provider;\r\n @Input() videoId: string;\r\n @Output() callAdobeService = new EventEmitter<Provider>();\r\n\r\n onStateChange(provider) {\r\n this.callAdobeService.emit(provider);\r\n }\r\n}\r\n","<div class=\"provider-video-section\">\r\n <cs-you-tube-player [provider]=\"provider\" [videoId]=\"videoId\" (callAdobeService)=\"onStateChange($event)\"></cs-you-tube-player>\r\n</div>\r\n","<div class=\"get-to-know-container\" id=\"{{routId}}\">\r\n <div>\r\n <div [ngClass]=\"{ 'get-to-know-container-has-video': isShowProviderVideo }\">\r\n <div class=\"provider-stat fad-col-sm-12\" *ngIf=\"provider.displayFullName\">\r\n <h2 *ngIf=\"!isUpdatedProviderDetails\">Get to know {{ provider.displayFullName }}</h2>\r\n <h2 *ngIf=\"isUpdatedProviderDetails\">About</h2>\r\n </div>\r\n <div class=\"provider-stat fad-col-sm-12\">\r\n <div class=\"fad-col-sm-2 provider-languages\" *ngIf=\"provider.languages.length > 0\">\r\n <div class=\"languages-header\">\r\n <h3>Languages<br /></h3>\r\n </div>\r\n <cs-expandable-list [listItems]=\"provider.languages\" [useColumns]=\"false\"></cs-expandable-list>\r\n </div>\r\n <div class=\"fad-col-sm-2 provider-gender\" *ngIf=\"provider.gender\">\r\n <h3>Gender<br /></h3>\r\n <div role=\"list\">\r\n <p role=\"listitem\">{{ provider.gender }}</p>\r\n </div>\r\n </div>\r\n <div class=\"fad-col-sm-2 provider-experience\" *ngIf=\"provider.yearsOfExperience\">\r\n <h3>\r\n Experience<br />\r\n <p *ngIf=\"provider.yearsOfExperience > 1\">{{ provider.yearsOfExperience }} years</p>\r\n <p *ngIf=\"provider.yearsOfExperience == 1\">{{ provider.yearsOfExperience }} year</p>\r\n </h3>\r\n </div>\r\n </div>\r\n <cs-personal-info *ngIf=\"provider.personalInfo\" [information]=\"provider.personalInfo\"> </cs-personal-info>\r\n <cs-care-philosophy\r\n [philosophy]=\"provider.philosophy\"\r\n [hideExtraContent]=\"hideExtraPhilosophyContent\"\r\n [showMoreLessButton]=\"showMoreLessButtonForPhilosophy\"\r\n *ngIf=\"provider.philosophy\"\r\n ></cs-care-philosophy>\r\n <cs-own-words\r\n [ownWords]=\"provider.inMyOwnWords\"\r\n [inMyOwnWordsTitle]=\"inMyOwnWordsTitle\"\r\n [hideExtraContent]=\"hideExtraOwnwordsContent\"\r\n [showMoreLessButton]=\"showMoreLessButtonForOwnwords\"\r\n *ngIf=\"provider.inMyOwnWords\"\r\n >\r\n </cs-own-words>\r\n </div>\r\n <h3 class=\"provider-name\" *ngIf=\"isUpdatedProviderDetails && isShowProviderVideo\">{{ provider.displayFullName }}</h3>\r\n <cs-provider-video\r\n [ngClass]=\"{ 'fix-center': isUpdatedProviderDetails }\"\r\n [provider]=\"provider\"\r\n [videoId]=\"videoId\"\r\n (callAdobeService)=\"onStateChange($event)\"\r\n *ngIf=\"isShowProviderVideo\"\r\n ></cs-provider-video>\r\n </div>\r\n <div class=\"provider-stat fad-col-sm-12\" *ngIf=\"getToKnowContent.length > 0\">\r\n <h3>Medical Group<br /></h3>\r\n <div role=\"list\">\r\n <div *ngFor=\"let getToKnow of getToKnowContent\" role=\"listitem\">\r\n <img class=\"provider-logo\" src=\"{{ getToKnow.logo }}\" alt=\"\" loading=\"lazy\" />\r\n <p class=\"medgroup-content\" [innerHTML]=\"getToKnow.content\" (click)=\"medGrpLinkClicked()\"></p>\r\n </div>\r\n </div>\r\n </div>\r\n <cs-expandable-list\r\n *ngIf=\"showHospitalAffiliations\"\r\n [sectionTitle]=\"'Hospital Affiliations'\"\r\n [listItems]=\"provider.hospitalNames\"\r\n [isAffiliationSection]=\"true\"\r\n ></cs-expandable-list>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { Provider } from '../../models/provider';\r\n\r\n@Component({\r\n selector: 'cs-get-to-know',\r\n templateUrl: './get-to-know.component.html',\r\n styleUrls: ['./get-to-know.component.scss']\r\n})\r\nexport class GetToKnowComponent {\r\n @Input() provider: Provider;\r\n @Input() videoId: string;\r\n @Input() getToKnowContent: any;\r\n @Input() isShowProviderVideo: boolean;\r\n @Input() showHospitalAffiliations: boolean;\r\n @Input() inMyOwnWordsTitle: string;\r\n @Input() hideExtraPhilosophyContent: boolean;\r\n @Input() showMoreLessButtonForPhilosophy: boolean;\r\n @Input() hideExtraOwnwordsContent: boolean;\r\n @Input() showMoreLessButtonForOwnwords: boolean;\r\n @Input() isUpdatedProviderDetails = false;\r\n @Input() routId: string;\r\n @Output() callAdobeService = new EventEmitter<Provider>();\r\n\r\n onStateChange(provider) {\r\n this.callAdobeService.emit(provider);\r\n }\r\n\r\n medGrpLinkClicked() {\r\n //save the access of non fad url in session and navigate to suggestAnEditLink\r\n if (!window.sessionStorage.getItem('nonFadUrlAccessed')) {\r\n window.sessionStorage.setItem('nonFadUrlAccessed', 'true');\r\n }\r\n }\r\n}\r\n","<div class=\"google-maps-container\" *ngIf=\"apiLoaded | async\">\r\n <h2 class=\"locations-label\">Locations</h2>\r\n <a\r\n tabindex=\"0\"\r\n (click)=\"showMapClick()\"\r\n [attr.aria-label]=\"displayMap(this.showMap)\"\r\n class=\"map-toggle p p2\"\r\n [ngClass]=\"{hideMap: this.showMap}\"\r\n (keydown.enter)=\"showMapClick()\"\r\n (keydown.space)=\"showMapClick()\"\r\n role=\"button\"\r\n >\r\n <svg viewBox=\"0 0 21 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M20 0C19.9286 0 19.8571 0.0357143 19.7857 0.0714286L13.7143 2.28571L7.57143 0.142857C7.35714 0.0714286 7.03571 0.0357143 6.82143 0C6.60714 0 6.35714 0.0714286 6.10714 0.142857L0.714286 2C0.321429 2.17857 0 2.64286 0 3.07143V15.4286C0 15.7857 0.25 16 0.535714 16C0.607143 16 0.678571 16 0.75 15.9643L6.85714 13.7143L13 15.8929C13.1786 15.9643 13.5 16 13.7143 16C13.8929 16 14.2143 15.9643 14.4286 15.8929L19.8214 14.0357C20.2143 13.8571 20.5714 13.3929 20.5714 12.9643V0.607143C20.5714 0.25 20.2857 0 20 0ZM8 2.10714L12.5714 3.71429V13.9286L8 12.3214V2.10714ZM1.71429 13.8214V3.5L6.28571 1.89286V12.1071H6.25L1.71429 13.8214ZM18.8571 12.5357L14.2857 14.1429V3.92857L18.8571 2.21429V12.5357Z\"\r\n />\r\n </svg>\r\n {{ this.showMap ? 'Hide Map' : 'Show Map' }}\r\n </a>\r\n <div class=\"maps-container\" [style.display]=\"showMap ? 'block' : 'none'\">\r\n <div #mapContainer id=\"map\" class=\"fad-location-map\"></div>\r\n </div>\r\n</div>\r\n","import { Component, OnInit, Input, OnChanges, ViewChild, Inject, ElementRef } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { catchError, map } from 'rxjs/operators';\r\nimport { Observable, of } from 'rxjs';\r\n\r\nimport { ROOT_ELEMENT } from '../../utils/utils';\r\nimport { LogService } from '../../services/log.service';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport { RuntimeConfiguration } from 'src/app/services/configuration-injection.service';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\nexport class MarkerObject {\r\n constructor(public options: google.maps.MarkerOptions, public address: OfficeAddress) {}\r\n}\r\n\r\n@Component({\r\n selector: 'cs-google-maps',\r\n templateUrl: './google-maps.component.html',\r\n styleUrls: ['./google-maps.component.scss']\r\n})\r\nexport class GoogleMapsComponent implements OnInit, OnChanges {\r\n @ViewChild('mapContainer', { static: false }) gmap: ElementRef;\r\n @Input() officeAddresses: OfficeAddress[] = [];\r\n @Input() centerPoint: OfficeAddress;\r\n public runtimeConfig: RuntimeConfiguration;\r\n\r\n map: google.maps.Map;\r\n mapOptions: google.maps.MapOptions;\r\n markers: MarkerObject[] = [];\r\n\r\n largePin: SVGElement;\r\n pin: SVGElement;\r\n\r\n showMap = false;\r\n isMapRendered = false;\r\n apiLoaded: Observable<boolean>;\r\n\r\n googleMapUrl = '';\r\n\r\n /**\r\n * Map position\r\n * @readonly\r\n * @type {google.maps.LatLng}\r\n * @memberof GoogleMapsComponent\r\n */\r\n get position(): google.maps.LatLng {\r\n const lat = this.centerPoint.latitude;\r\n const long = this.centerPoint.longitude;\r\n return new google.maps.LatLng(lat, long);\r\n }\r\n\r\n constructor(private httpClient: HttpClient, private logService: LogService, @Inject(ROOT_ELEMENT) public rootElement: HTMLElement, private configurationService: ConfigurationService) {\r\n this.googleMapUrl = configurationService.getRuntimeConfiguration()?.googleMapUrl;\r\n }\r\n\r\n ngOnInit(): void {\r\n this.setupPins();\r\n this.initGoogleMap();\r\n }\r\n\r\n ngOnChanges(): void {\r\n if (this.markers.length > 0) {\r\n this.updateMap();\r\n }\r\n }\r\n\r\n setupPins(): void {\r\n this.largePin = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\r\n this.largePin.setAttribute('width', '39');\r\n this.largePin.setAttribute('height', '51');\r\n this.largePin.setAttribute('fill', 'none');\r\n this.largePin.setAttribute('viewBox', '0 0 39 51');\r\n this.largePin.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\r\n const largePinPath = document.createElement('path');\r\n largePinPath.setAttribute(\r\n 'd',\r\n 'M17.6771 47.7552C18.4974 49.0313 20.4115 49.0313 21.2318 47.7552C34.5391 28.6146 37 26.6094 37 19.5C37 9.83854 29.1615 2 19.5 2C9.7474 2 2 9.83854 2 19.5C2 26.6094 4.36979 28.6146 17.6771 47.7552Z'\r\n );\r\n largePinPath.setAttribute('fill', this.rootElement?.style.getPropertyValue('--location-pin-color'));\r\n largePinPath.setAttribute('stroke', this.rootElement?.style.getPropertyValue('--location-pin-outline'));\r\n largePinPath.setAttribute('stroke-width', '3');\r\n this.largePin.appendChild(largePinPath);\r\n this.pin = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\r\n this.pin.setAttribute('width', '27');\r\n this.pin.setAttribute('height', '37');\r\n this.pin.setAttribute('fill', 'none');\r\n this.pin.setAttribute('viewBox', '0 0 27 37');\r\n this.pin.setAttribute('xmlns', 'http://www.w3.org/2000/svg');\r\n const pinPath = document.createElement('path');\r\n pinPath.setAttribute(\r\n 'd',\r\n 'M12.0938 35.7969C12.7266 36.7812 14.2031 36.7812 14.8359 35.7969C25.1016 21.0312 27 19.4844 27 14C27 6.54688 20.9531 0.5 13.5 0.5C5.97656 0.5 0 6.54688 0 14C0 19.4844 1.82812 21.0312 12.0938 35.7969Z'\r\n );\r\n pinPath.setAttribute('fill', this.rootElement?.style.getPropertyValue('--location-pin-color'));\r\n this.pin.appendChild(pinPath);\r\n }\r\n\r\n initGoogleMap(): void {\r\n this.apiLoaded = this.httpClient.jsonp(this.googleMapUrl, 'callback').pipe(\r\n map(() => {\r\n this.configureMap();\r\n return true;\r\n }),\r\n catchError((err) => {\r\n this.logService.error(err);\r\n return of(false);\r\n })\r\n );\r\n }\r\n\r\n configureMap(): void {\r\n this.mapOptions = {\r\n center: this.position,\r\n gestureHandling: 'greedy',\r\n mapTypeId: google.maps.MapTypeId.ROADMAP,\r\n zoom: 10\r\n };\r\n }\r\n\r\n renderMap(): void {\r\n this.officeAddresses.forEach((address: OfficeAddress, index: number) => {\r\n const labelText = this.officeAddresses.length > 1 ? (this.officeAddresses.indexOf(address) + 1).toString() : null;\r\n const pin = index === 0 ? this.largePin.outerHTML : this.pin.outerHTML;\r\n const markerOptions = {\r\n position: new google.maps.LatLng(address.latitude, address.longitude),\r\n icon: {\r\n url: `data:image/svg+xml,${encodeURIComponent(pin)}`,\r\n labelOrigin: new google.maps.Point(index === 0 ? 20 : 14, index === 0 ? 20 : 15)\r\n },\r\n map: this.map,\r\n label: labelText\r\n ? {\r\n text: labelText,\r\n color: this.rootElement.style.getPropertyValue('--location-pin-label'),\r\n fontFamily: this.rootElement.style.getPropertyValue('--dhcl-font-family'),\r\n fontSize: '12px',\r\n fontWeight: 'normal'\r\n }\r\n : null\r\n };\r\n this.markers.push({ options: markerOptions, address } as MarkerObject);\r\n });\r\n\r\n if (this.markers.length > 0) {\r\n this.markers[0].options.zIndex = 10;\r\n }\r\n this.createMap();\r\n }\r\n\r\n updateMap(): void {\r\n if (this.centerPoint && this.markers.length > 1) {\r\n this.markers.forEach((markerObj: MarkerObject) => {\r\n if (markerObj.address.address === this.centerPoint.address && markerObj.address.id === this.centerPoint.id) {\r\n markerObj.options.icon = {\r\n url: `data:image/svg+xml,${encodeURIComponent(this.largePin.outerHTML)}`,\r\n labelOrigin: new google.maps.Point(20, 20)\r\n };\r\n markerObj.options.zIndex = 10;\r\n } else {\r\n markerObj.options.icon = {\r\n url: `data:image/svg+xml,${encodeURIComponent(this.pin.outerHTML)}`,\r\n labelOrigin: new google.maps.Point(14, 15)\r\n };\r\n markerObj.options.zIndex = 1;\r\n }\r\n });\r\n\r\n this.createMap();\r\n }\r\n }\r\n\r\n showMapClick(): void {\r\n if (!this.showMap && !this.isMapRendered) {\r\n this.renderMap();\r\n this.isMapRendered = true;\r\n }\r\n this.showMap = !this.showMap;\r\n }\r\n\r\n /**\r\n * Create map and markers.\r\n * @memberof GoogleMapsComponent\r\n */\r\n createMap(): void {\r\n const mapDiv = this.gmap?.nativeElement as HTMLElement;\r\n this.map = new google.maps.Map(mapDiv, this.mapOptions);\r\n this.map.setCenter(this.position);\r\n this.createMarkers();\r\n }\r\n\r\n /**\r\n * Add markers on google map.\r\n * @memberof GoogleMapsComponent\r\n */\r\n createMarkers(): void {\r\n this.markers.forEach((m) => {\r\n const marker = new google.maps.Marker({ ...m.options });\r\n marker.setMap(this.map);\r\n });\r\n }\r\n\r\n displayMap(doShowMap: boolean): string {\r\n return doShowMap ? 'Hide Map' : 'Show Map'; \r\n }\r\n}\r\n","<div class=\"locations-container\" [ngClass]=\"isUpdatedProviderDetails?'update-container-style':''\" id=\"{{routId}}\">\r\n <div *ngIf=\"isUpdatedProviderDetails\" class=\"info-line-break\"></div>\r\n <cs-google-maps [officeAddresses]=\"officeAddresses\" [centerPoint]=\"centerPoint\"> </cs-google-maps>\r\n <div\r\n class=\"office-list\"\r\n [ngClass]=\"{\r\n 'show-less-content': hideExtraContent,\r\n 'has-more-than-one-office': hasMoreThanOneOffice,\r\n 'has-only-one-office': !hasMoreThanOneOffice,\r\n 'update-officelist-style': isUpdatedProviderDetails && hasMoreThanOneOffice,\r\n 'one-officelist-style': isUpdatedProviderDetails && !hasMoreThanOneOffice\r\n }\"\r\n >\r\n <div\r\n (click)=\"setSelectedOffice(office)\"\r\n [ngClass]=\"isUpdatedProviderDetails?'new-office':'office'\"\r\n *ngFor=\"let office of officeAddresses; let i = index\"\r\n >\r\n <ng-container\r\n [ngTemplateOutlet]=\"isUpdatedProviderDetails ? newOfficeDetails : officeDetails\"\r\n [ngTemplateOutletContext]=\"{ office: office, i: i }\"\r\n ></ng-container>\r\n </div>\r\n </div>\r\n <div class=\"show-more-less\" *ngIf=\"showMoreLessButton\">\r\n <a href=\"javascript:;\" (click)=\"handleMoreLess()\">\r\n {{ hideExtraContent ? 'More' : 'Less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': !hideExtraContent }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 1L10.5067 10.4933L1.01426 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n <div *ngIf=\"isUpdatedProviderDetails\" class=\"info-line-break\"></div>\r\n</div>\r\n\r\n<ng-template #officeDetails let-office=\"office\" let-i=\"i\">\r\n <div class=\"rank-icon\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M12.0938 35.2969C12.7266 36.2812 14.2031 36.2812 14.8359 35.2969C25.1016 20.5312 27 18.9844 27 13.5C27 6.04688 20.9531 0 13.5 0C5.97656 0 0 6.04688 0 13.5C0 18.9844 1.82812 20.5312 12.0938 35.2969Z\"\r\n />\r\n </svg>\r\n <span *ngIf=\"officeAddresses.length > 1\" class=\"rank-number\">{{ i + 1 }}</span>\r\n </div>\r\n <div class=\"office-details\">\r\n <div class=\"office-address\">\r\n <div class=\"office-name\">\r\n <h3\r\n class=\"office-name-text\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n *ngIf=\"office.name && (office.name.length == 1 ? !office.name.includes('.') : true)\"\r\n >\r\n {{ office.name }}\r\n </h3>\r\n <h3>{{office.description}}</h3>\r\n <h3\r\n class=\"office-name-text\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n *ngIf=\"!office.name\"\r\n >\r\n {{ provider.officeNames[0] }}\r\n </h3>\r\n </div>\r\n <div class=\"street\" *ngIf=\"isDesktopViewport\">\r\n <div *ngIf=\"office.phones?.length > 0 || office.faxes?.length > 0; else noPhoneAndFax\">\r\n <p>\r\n {{ office.address }}, <span> {{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }} </span>\r\n </p>\r\n </div>\r\n <ng-template #noPhoneAndFax>\r\n <p>{{ office.address }}</p>\r\n <p>{{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }}</p>\r\n </ng-template>\r\n </div>\r\n <div class=\"address\" *ngIf=\"!isDesktopViewport\">\r\n <p>{{ office.address }}</p>\r\n <p>{{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }}</p>\r\n </div>\r\n <div class=\"contact-number phone\" *ngIf=\"office.phones?.length > 0\">\r\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2314 15.4191L15.9814 12.1691C16.0627 11.816 15.8783 11.4535 15.547 11.3097L12.047 9.8097C11.7408 9.67845 11.3814 9.76595 11.172 10.0253L9.62203 11.9191C7.22515 10.7941 5.2314 8.82845 4.08453 6.38158L5.97828 4.83158C6.23765 4.61908 6.32515 4.26283 6.1939 3.95658L4.6939 0.456576C4.54703 0.122201 4.18453 -0.0621745 3.8314 0.0190755L0.581401 0.769076C0.243901 0.847201 0.000150681 1.1472 0.000150681 1.50033C0.000150681 9.50345 6.48453 16.0003 14.5002 16.0003C14.8502 16.0003 15.1533 15.7597 15.2314 15.4191Z\"\r\n />\r\n </svg>\r\n <p *ngIf=\"!isDesktopViewport\">\r\n <a href=\"tel:{{ office.phones }}\">{{ office.phones }}</a>\r\n </p>\r\n <p *ngIf=\"isDesktopViewport\">{{ office.phones }}</p>\r\n </div>\r\n <div class=\"contact-number fax\" *ngIf=\"office.faxes?.length > 0\">\r\n <p>Fax: {{ office.faxes }}</p>\r\n </div>\r\n <div class=\"view-all-providers\" *ngIf=\"viewAllLinkNeeded\">\r\n <a tabindex=\"0\" (click)=\"loadAllProvidersForLocation(office.id)\">View all providers at this location</a>\r\n </div>\r\n <div class=\"get-directions p p2\">\r\n <a\r\n tabindex=\"0\"\r\n href=\"https://www.google.com/maps/search/{{ office.address }} {{ office.city }} {{ office.state }} {{ office.zip }}\"\r\n target=\"_blank\"\r\n >Get Directions</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #newOfficeDetails let-office=\"office\" let-i=\"i\">\r\n <div class=\"office-inner\">\r\n <div class=\"office-info\">\r\n <svg width=\"19\" height=\"28\" viewBox=\"0 0 19 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M8.51042 27.4673C8.95573 28.1776 9.99479 28.1776 10.4401 27.4673C17.6641 16.8137 19 15.6976 19 11.7405C19 6.36293 14.7448 2 9.5 2C4.20573 2 0 6.36293 0 11.7405C0 15.6976 1.28646 16.8137 8.51042 27.4673Z\"\r\n fill=\"#55a63a\"\r\n />\r\n <text x=\"5.3\" y=\"18.7\" fill=\"white\">{{i+1}}</text>\r\n </svg>\r\n <h3>{{ office.name }}</h3>\r\n <h3>{{office.description}}</h3>\r\n </div>\r\n <div class=\"office-address\">\r\n <div class=\"address-container\">\r\n <div class=\"address\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M2.41345 9.74448C1.81811 9.51296 1.52043 9.39719 1.43353 9.23039C1.35819 9.08579 1.35809 8.91354 1.43326 8.76886C1.51997 8.60195 1.8175 8.48584 2.41258 8.25361L19.3003 1.66327C19.8375 1.45364 20.1061 1.34883 20.2777 1.40616C20.4268 1.45596 20.5437 1.57292 20.5935 1.72197C20.6509 1.8936 20.5461 2.16219 20.3364 2.69937L13.7461 19.5871C13.5139 20.1822 13.3977 20.4797 13.2308 20.5664C13.0862 20.6416 12.9139 20.6415 12.7693 20.5662C12.6025 20.4793 12.4867 20.1816 12.2552 19.5862L9.6271 12.8282C9.58011 12.7074 9.55661 12.647 9.52031 12.5961C9.48815 12.551 9.44871 12.5115 9.40361 12.4794C9.35273 12.4431 9.29231 12.4196 9.17146 12.3726L2.41345 9.74448Z\"\r\n stroke=\"#4D525A\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <p class=\"p1\">\r\n {{ office.address }},<span> {{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }} </span>\r\n </p>\r\n </div>\r\n <div class=\"phone\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M8.38028 8.85335C9.07627 10.303 10.0251 11.6616 11.2266 12.8632C12.4282 14.0648 13.7869 15.0136 15.2365 15.7096C15.3612 15.7694 15.4235 15.7994 15.5024 15.8224C15.7828 15.9041 16.127 15.8454 16.3644 15.6754C16.4313 15.6275 16.4884 15.5704 16.6027 15.4561C16.9523 15.1064 17.1271 14.9316 17.3029 14.8174C17.9658 14.3864 18.8204 14.3864 19.4833 14.8174C19.6591 14.9316 19.8339 15.1064 20.1835 15.4561L20.3783 15.6509C20.9098 16.1824 21.1755 16.4481 21.3198 16.7335C21.6069 17.301 21.6069 17.9713 21.3198 18.5389C21.1755 18.8242 20.9098 19.09 20.3783 19.6214L20.2207 19.779C19.6911 20.3087 19.4263 20.5735 19.0662 20.7757C18.6667 21.0001 18.0462 21.1615 17.588 21.1601C17.1751 21.1589 16.8928 21.0788 16.3284 20.9186C13.295 20.0576 10.4326 18.4332 8.04466 16.0452C5.65668 13.6572 4.03221 10.7948 3.17124 7.76144C3.01103 7.19699 2.93092 6.91477 2.9297 6.50182C2.92833 6.0436 3.08969 5.42311 3.31411 5.0236C3.51636 4.66357 3.78117 4.39876 4.3108 3.86913L4.46843 3.7115C4.99987 3.18006 5.2656 2.91433 5.55098 2.76999C6.11854 2.48292 6.7888 2.48292 7.35636 2.76999C7.64174 2.91433 7.90747 3.18006 8.43891 3.7115L8.63378 3.90637C8.98338 4.25597 9.15819 4.43078 9.27247 4.60655C9.70347 5.26945 9.70347 6.12403 9.27247 6.78692C9.15819 6.96269 8.98338 7.1375 8.63378 7.4871C8.51947 7.60142 8.46231 7.65857 8.41447 7.72538C8.24446 7.96281 8.18576 8.30707 8.26748 8.58743C8.29048 8.66632 8.32041 8.72866 8.38028 8.85335Z\"\r\n stroke=\"#4D525A\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <p class=\"p1 phone-number\">{{ office.phones }}</p>\r\n <p class=\"p1 phone-number-link\">\r\n <a href=\"tel:{{ office.phones }}\">{{ office.phones }}</a>\r\n </p>\r\n </div>\r\n <div class=\"fax\" *ngIf=\"office.faxes?.length > 0\">\r\n <p>Fax:</p>\r\n <p>{{ office?.faxes }}</p>\r\n </div>\r\n <div class=\"address-link\">\r\n <div><a tabindex=\"0\" (click)=\"loadAllProvidersForLocation(office.id)\">View all providers at this location</a></div>\r\n <div>\r\n <a\r\n tabindex=\"0\"\r\n href=\"https://www.google.com/maps/search/{{ office.address }} {{ office.city }} {{ office.state }} {{ office.zip }}\"\r\n target=\"_blank\"\r\n >Get Directions</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template>\r\n","import { Component, EventEmitter, HostListener, Input, Output } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport { Provider } from '../../models/provider';\r\n\r\n@Component({\r\n selector: 'cs-locations-list',\r\n templateUrl: './locations-list.component.html',\r\n styleUrls: ['./locations-list.component.scss']\r\n})\r\nexport class LocationsListComponent {\r\n @Input() provider: Provider;\r\n\r\n @Input() officeAddresses: OfficeAddress[] = [];\r\n @Output() selectedOfficeChanged = new EventEmitter<OfficeAddress>();\r\n\r\n @Input() hideExtraContent = true;\r\n @Input() showMoreLessButton = false;\r\n @Input() centerPoint: OfficeAddress;\r\n @Input() isDesktopViewport = false;\r\n @Input() hasMoreThanOneOffice = false;\r\n @Input() divisionCodes: string[];\r\n @Input() isUpdatedProviderDetails = false;\r\n @Input() routId: '';\r\n officeTemplate = 'OfficeDetails';\r\n changeCount: number;\r\n moreLessExpanded = false;\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any): void {\r\n this.isDesktopViewport = event.target.innerWidth > 991;\r\n }\r\n\r\n constructor(public route: Router, private fadLinkServer: FadLinkService, private configurationService: ConfigurationService) {\r\n if(this.isUpdatedProviderDetails) {\r\n this.officeTemplate = 'newofficeDetails';\r\n }\r\n \r\n }\r\n \r\n setSelectedOffice(office: OfficeAddress): void {\r\n this.changeCount++;\r\n this.centerPoint = office;\r\n this.selectedOfficeChanged.emit(office);\r\n }\r\n\r\n handleMoreLess(): void {\r\n this.hideExtraContent = !this.hideExtraContent;\r\n this.moreLessExpanded = !this.moreLessExpanded;\r\n }\r\n\r\n loadAllProvidersForLocation(locationId: string): void {\r\n const baseUrl = this.configurationService.getRuntimeConfiguration().fadBaseUrl;\r\n\r\n const marketCode = this.configurationService.getMarketCodes()[0];\r\n let routeValue = '';\r\n let embedSource = '';\r\n try {\r\n embedSource = this.configurationService.getEmbedSource();\r\n if (!embedSource) {\r\n const falElement = document.querySelector('fal-saas');\r\n if (falElement) {\r\n embedSource = falElement.getAttribute('embedsource');\r\n }\r\n }\r\n }\r\n catch (err) {\r\n console.log(err);\r\n }\r\n if (embedSource === 'cerner') {\r\n routeValue = `${baseUrl}${this.configurationService.getRedirectToFADinCerner()}/l/location-${locationId}`;\r\n }\r\n else if (embedSource === 'mychart') {\r\n routeValue = `${this.configurationService.getRedirectURLPathForFADEpic()}/l/location-${locationId}`;\r\n }\r\n else if(document.body.firstElementChild?.firstElementChild?.tagName === 'FAL-SAAS' || \r\n document.body.firstElementChild?.tagName === 'CS-FAD' || \r\n document.body.firstElementChild?.tagName === 'FAD-SAAS') {\r\n routeValue = `${baseUrl}${marketCode}/l/location-${locationId}`;\r\n }\r\n else {\r\n routeValue = `${this.configurationService.getRedirectInAEM()}/l/location-${locationId}`;\r\n }\r\n window.sessionStorage.setItem('LocationIdFromFAL', locationId);\r\n window.open(routeValue, '_self');\r\n }\r\n\r\n\r\n get viewAllLinkNeeded(): boolean {\r\n const markets = this.configurationService.getMarketCodes();\r\n return markets.includes('vmfh');\r\n }\r\n\r\n \r\n}\r\n","<div class=\"page-header\" style=\"text-align: center\">\r\n <img src=\"{{ headerImageUrl }}\" alt=\"\" />\r\n <div class=\"border\"></div>\r\n</div>\r\n\r\n<div class=\"page-footer\">\r\n <div class=\"border\"></div>\r\n <p class=\"p3\">{{ footer }}</p>\r\n</div>\r\n\r\n<table aria-label=\"Provider details\">\r\n <th scope=\"col\">\r\n <tr>\r\n <td>\r\n <div class=\"page-header-space\"></div>\r\n </td>\r\n </tr>\r\n </th>\r\n <tbody class=\"body\">\r\n <tr>\r\n <td>\r\n <div class=\"provider-image-container\" *ngIf=\"providerImage\">\r\n <img class=\"provider-image\" src=\"{{ providerImage.url }}\" alt=\"{{ provider.displayFullName }}\" (error)=\"getAltImageSrc($event)\" />\r\n </div>\r\n <div class=\"provider-heading\">\r\n <div class=\"provider-name\">\r\n <h3>\r\n {{ provider.displayFullName }}\r\n <img *ngFor=\"let imageUrl of logoUrls\" src=\"{{ imageUrl?.url }}\" alt=\"{{ imageUrl?.altName }}\" class=\"provider-logo\" />\r\n <div class=\"provider-specialty\">\r\n <p *ngFor=\"let speciality of providerSpecialities\" class=\"p1\">{{ speciality }}</p>\r\n <p *ngFor=\"let nonSeoSpeciality of nonSEOSecondarySpecialities\" class=\"p1\">{{ nonSeoSpeciality }}</p>\r\n </div>\r\n </h3>\r\n </div>\r\n </div>\r\n <div *ngIf=\"provider.personalInfo != null && provider.personalInfo != ''\">\r\n <p [innerHTML]=\"provider.personalInfo\"></p>\r\n </div>\r\n <cs-badges [isPrint]=\"true\" [provider]=\"provider\"></cs-badges>\r\n <div class=\"office-details\" *ngIf=\"officeAddresses\">\r\n <div *ngIf=\"officeAddresses.length > 0\">\r\n <h2>Locations</h2>\r\n <div class=\"office\" *ngFor=\"let office of officeAddresses; let i = index\">\r\n <ng-container *ngTemplateOutlet=\"officeDetails; context: { office: office, i: i }\"></ng-container>\r\n </div>\r\n </div>\r\n <div *ngIf=\"provider.languages.length > 0\">\r\n <h2>Languages</h2>\r\n <div *ngFor=\"let item of provider.languages\">\r\n <p>{{item}}</p>\r\n </div>\r\n </div>\r\n <div *ngIf=\"provider.gender\">\r\n <h2>Gender</h2>\r\n <p>{{provider.gender}}</p>\r\n </div>\r\n </div>\r\n <div class=\"medical-group\" *ngIf=\"getToKnowContent.length > 0\">\r\n <h2><strong>Medical group</strong></h2>\r\n <div *ngFor=\"let getToKnow of getToKnowContent\" class=\"getToKnowContent\">\r\n <img class=\"provider-logo\" src=\"{{ getToKnow.logo }}\" alt=\"\" />\r\n <p [innerHTML]=\"getToKnow.content\"></p>\r\n </div>\r\n </div>\r\n <div class=\"board-cert\" *ngIf=\"provider.certifications.length > 0\">\r\n <h2><strong>Board certifications</strong></h2>\r\n <div *ngFor=\"let item of provider.certifications\">\r\n <p>{{item}}</p>\r\n </div>\r\n </div>\r\n <ng-template #officeDetails let-office=\"office\" let-i=\"i\">\r\n <div class=\"office-details\">\r\n <div class=\"office-address\">\r\n <div class=\"office-name\">\r\n <h3\r\n class=\"office-name-text\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n *ngIf=\"office.name && (office.name.length == 1 ? !office.name.includes('.') : true)\"\r\n >\r\n {{ office.name }}\r\n </h3>\r\n <h3\r\n class=\"office-name-text\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n *ngIf=\"!office.name\"\r\n >\r\n {{ provider.officeNames[0] }}\r\n </h3>\r\n </div>\r\n <div class=\"street\">\r\n <div *ngIf=\"office.phones?.length > 0 || office.faxes?.length > 0; else noPhoneAndFax\">\r\n <p>\r\n {{ office.address }},\r\n <span> {{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }} </span>\r\n </p>\r\n </div>\r\n <ng-template #noPhoneAndFax>\r\n <p>{{ office.address }}</p>\r\n <p>{{ office.city }}<span *ngIf=\"office.city\">, </span>{{ office.state }} {{ office.zip }}</p>\r\n </ng-template>\r\n </div>\r\n <div class=\"contact-number phone invoca-phone\" *ngIf=\"office.phones?.length > 0\">\r\n <p>{{ office.phones }}</p>\r\n </div>\r\n <div class=\"contact-number fax\" *ngIf=\"office.faxes?.length > 0\">\r\n <p>Fax: {{ office.faxes }}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </td>\r\n </tr>\r\n </tbody>\r\n <tfoot>\r\n <tr>\r\n <td>\r\n <div class=\"page-footer-space\"></div>\r\n </td>\r\n </tr>\r\n </tfoot>\r\n</table>\r\n","/* eslint-disable @angular-eslint/no-empty-lifecycle-method */\r\n/* eslint-disable @typescript-eslint/no-empty-function */\r\nimport { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\r\nimport { LogoDetails } from '../../models/configuration';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport { Provider } from '../../models/provider';\r\nimport { ProviderImage } from '../../models/provider-image';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-print-page',\r\n templateUrl: './print-page.component.html',\r\n styleUrls: ['./print-page.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class PrintPageComponent implements OnInit {\r\n @Input() provider: Provider;\r\n @Input() providerImage: ProviderImage;\r\n @Input() logoUrls: LogoDetails[] = [];\r\n @Input() providerSpecialities: string[];\r\n @Input() divisionCodes: string[];\r\n @Input() officeAddresses: OfficeAddress[] = [];\r\n @Input() centerPoint: OfficeAddress;\r\n @Input() getToKnowContent: any;\r\n @Input() nonSEOSecondarySpecialities: string[];\r\n @Input() malePlaceholder: string;\r\n @Input() femalePlaceholder: string;\r\n footer = '';\r\n headerImageUrl = '';\r\n \r\n getAltImageSrc(event: any) {\r\n event.target.src =\r\n this.provider.gender?.toLowerCase() === 'male'\r\n ? this.malePlaceholder\r\n : this.provider.gender?.toLowerCase() === 'female'\r\n ? this.femalePlaceholder\r\n : this.configurationService.blankPlaceholder;\r\n }\r\n\r\n constructor(private configurationService: ConfigurationService ) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.footer = this.configurationService.getPrintablePdfFooter();\r\n this.headerImageUrl = this.configurationService.getPrintablePdfHeaderImageUrl();\r\n console.log(this.headerImageUrl);\r\n }\r\n}\r\n","<div id=\"fad-comments\" class=\"provider-comments-container-new\" *ngIf=\"isUpdatedProviderDetails && !isMobileView\" id=\"{{routId}}\">\r\n <h2 class=\"patient-saying\">Patient Reviews</h2>\r\n <div class=\"rating-comments\">\r\n <div class=\"ratings-container\">\r\n <p class=\"overall-rating\">Overall rating</p>\r\n <p class=\"rating-value\">{{ provider.rating.overallRating.value }}</p>\r\n <dhcl-star-rating\r\n [rating]=\"provider.rating.overallRating.value\"\r\n reviews=\"1\"\r\n showNumReviews=\"false\"\r\n showRatingText=\"false\"\r\n ></dhcl-star-rating>\r\n <p class=\"rating-count p3\">{{ provider.rating?.totalRatingCount }} ratings</p>\r\n </div>\r\n <div role=\"list\" *ngIf=\"provider.rating.overallRating.questionRatings\" class=\"questionaire\">\r\n <div role=\"listitem\" *ngFor=\"let questionCommentDetail of provider.rating.overallRating.questionRatings\">\r\n <div>\r\n <p class=\"p2\">{{ questionCommentDetail.name }}</p>\r\n <div class=\"rating\">\r\n <dhcl-star-rating\r\n [reviews]=\"questionCommentDetail.responseCount\"\r\n [rating]=\"questionCommentDetail.value\"\r\n showNumReviews=\"false\"\r\n ></dhcl-star-rating>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"line-break\"></div>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"userComments\"></ng-container>\r\n </div>\r\n</div>\r\n<div\r\n id=\"fad-comments\"\r\n class=\"provider-comments-container\"\r\n id=\"{{routId}}\"\r\n *ngIf=\"!isUpdatedProviderDetails || (isUpdatedProviderDetails && isMobileView)\"\r\n>\r\n <h2 *ngIf=\"!isUpdatedProviderDetails\" class=\"patient-saying\">What patients are saying</h2>\r\n <h2 *ngIf=\"isUpdatedProviderDetails\" class=\"patient-saying\">Patient Reviews</h2>\r\n <div class=\"rating-comments\">\r\n <div class=\"ratings-container\" [ngClass]=\"{ 'center-container': isUpdatedProviderDetails }\">\r\n <p class=\"overall-rating\">Overall rating</p>\r\n <p class=\"rating-value\">{{ provider.rating.overallRating.value }}</p>\r\n <dhcl-star-rating\r\n [rating]=\"provider.rating.overallRating.value\"\r\n reviews=\"1\"\r\n showNumReviews=\"false\"\r\n showRatingText=\"false\"\r\n ></dhcl-star-rating>\r\n <p class=\"rating-count p3\">{{ provider.rating?.totalRatingCount }} ratings</p>\r\n <div class=\"divider\"></div>\r\n <div *ngIf=\"provider.rating.overallRating.questionRatings\">\r\n <div *ngFor=\"let questionCommentDetail of provider.rating.overallRating.questionRatings\">\r\n <div class=\"overall-comment-text\">\r\n <p class=\"p2\">{{ questionCommentDetail.name }}</p>\r\n <div class=\"rating\">\r\n <dhcl-star-rating\r\n [reviews]=\"questionCommentDetail.responseCount\"\r\n [rating]=\"questionCommentDetail.value\"\r\n showNumReviews=\"false\"\r\n ></dhcl-star-rating>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"ratingFooterText && !isUpdatedProviderDetails\" class=\"divider\"></div>\r\n <div *ngIf=\"ratingFooterText && !isUpdatedProviderDetails\" class=\"ratings-disclaimer\">\r\n <svg class=\"info-icon\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M6 0C2.68652 0 0 2.68749 0 6C0 9.31446 2.68652 12 6 12C9.3135 12 12 9.31446 12 6C12 2.68749 9.3135 0 6 0ZM6 2.66129C6.56118 2.66129 7.0161 3.11623 7.0161 3.67742C7.0161 4.23861 6.56118 4.69355 6 4.69355C5.43881 4.69355 4.98387 4.23861 4.98387 3.67742C4.98387 3.11623 5.43881 2.66129 6 2.66129ZM7.35486 8.80644C7.35486 8.96676 7.22484 9.09678 7.06452 9.09678H4.93549C4.77515 9.09678 4.64516 8.96676 4.64516 8.80644V8.22582C4.64516 8.0655 4.77515 7.93548 4.93549 7.93548H5.22581V6.38712H4.93549C4.77515 6.38712 4.64516 6.2571 4.64516 6.09678V5.51613C4.64516 5.3558 4.77515 5.22581 4.93549 5.22581H6.4839C6.64422 5.22581 6.77418 5.3558 6.77418 5.51613V7.93548H7.06452C7.22484 7.93548 7.35486 8.0655 7.35486 8.22582V8.80644Z\"\r\n fill=\"#4D525A\"\r\n />\r\n </svg>\r\n <p class=\"p3\">\r\n {{ ratingFooterText }}\r\n <a\r\n *ngIf=\"ratingsFooterLinkText && ratingsFooterLink\"\r\n href=\"{{ ratingsFooterLink }}\"\r\n (click)=\"$event.preventDefault(); goToRatingFooterLink()\"\r\n >{{ ratingsFooterLinkText }}</a\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n <ng-container *ngTemplateOutlet=\"userComments\"></ng-container>\r\n </div>\r\n</div>\r\n<ng-template #userComments>\r\n <div class=\"comments-section\" *ngIf=\"isShowProviderReviews\">\r\n <h3 class=\"comment-header.fad-col-sm-2\">Comments ({{ provider.rating.totalCommentCount }})</h3>\r\n <div class=\"provider-comments\" *ngIf=\"commentsArrayLength === 0\">\r\n <p class=\"no-comments p2\">There are currently no comments for this provider.</p>\r\n </div>\r\n <div role=\"list\" class=\"provider-comments\" *ngIf=\"commentsArrayLength > 0\">\r\n <div role=\"listitem\" *ngFor=\"let commentDetail of provider.rating.comments.slice(0, commentsSliceIndex)\">\r\n <div\r\n class=\"rating\"\r\n tabindex=\"0\"\r\n [attr.aria-label]=\"(commentDetail.overallRating?.value) + ' out of 5 stars. Review from ' + (commentDetail.source) + ' ' + (commentDetail.comment) + ' on ' + (commentDetail.mentionTime | date)\"\r\n >\r\n <dhcl-star-rating\r\n [rating]=\"commentDetail.overallRating?.value\"\r\n showRatingText=\"false\"\r\n showNumReviews=\"false\"\r\n reviews=\"1\"\r\n ></dhcl-star-rating>\r\n <div style=\"display: flex; flex-direction: row\">\r\n <span *ngIf=\"!isUpdatedProviderDetails\" class=\"date\">{{ commentDetail.mentionTime | date }}</span>\r\n </div>\r\n <div class=\"comment-text\">\r\n <span><p aria-hidden=\"true\">{{ commentDetail.comment }}</p></span>\r\n <div style=\"display: flex; flex-direction: row\">\r\n <span\r\n ><p *ngIf=\"isUpdatedProviderDetails\" class=\"comment-footer p2\" aria-hidden=\"true\">\r\n {{ commentDetail.mentionTime | date }}\r\n </p></span\r\n >\r\n <span><p *ngIf=\"isUpdatedProviderDetails\" class=\"comment-footer\" aria-hidden=\"true\">•</p></span>\r\n <span><p *ngIf=\"isUpdatedProviderDetails\" class=\"comment-footer p2\" aria-hidden=\"true\">{{ commentDetail.source}}</p></span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"show-more-less\" *ngIf=\"showMoreLessButton\">\r\n <a href=\"javascript:;\" role=\"button\" (click)=\"toggleReviewComments()\">\r\n {{ !moreLessExpanded ? 'More' : 'Less' }}\r\n <svg class=\"more-arrow\" [ngClass]=\"{ 'less-arrow': moreLessExpanded }\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 1L10.5067 10.4933L1.01426 1\" />\r\n </svg>\r\n </a>\r\n </div>\r\n <div *ngIf=\"ratingFooterText && isUpdatedProviderDetails\" class=\"ratings-disclaimer-new\">\r\n <svg class=\"info-icon\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M6 0C2.68652 0 0 2.68749 0 6C0 9.31446 2.68652 12 6 12C9.3135 12 12 9.31446 12 6C12 2.68749 9.3135 0 6 0ZM6 2.66129C6.56118 2.66129 7.0161 3.11623 7.0161 3.67742C7.0161 4.23861 6.56118 4.69355 6 4.69355C5.43881 4.69355 4.98387 4.23861 4.98387 3.67742C4.98387 3.11623 5.43881 2.66129 6 2.66129ZM7.35486 8.80644C7.35486 8.96676 7.22484 9.09678 7.06452 9.09678H4.93549C4.77515 9.09678 4.64516 8.96676 4.64516 8.80644V8.22582C4.64516 8.0655 4.77515 7.93548 4.93549 7.93548H5.22581V6.38712H4.93549C4.77515 6.38712 4.64516 6.2571 4.64516 6.09678V5.51613C4.64516 5.3558 4.77515 5.22581 4.93549 5.22581H6.4839C6.64422 5.22581 6.77418 5.3558 6.77418 5.51613V7.93548H7.06452C7.22484 7.93548 7.35486 8.0655 7.35486 8.22582V8.80644Z\"\r\n fill=\"#0071C2\"\r\n />\r\n </svg>\r\n <p class=\"p3\">\r\n {{ ratingFooterText }}\r\n <a\r\n *ngIf=\"ratingsFooterLinkText && ratingsFooterLink\"\r\n href=\"{{ ratingsFooterLink }}\"\r\n (click)=\"$event.preventDefault(); goToRatingFooterLink()\"\r\n >{{ ratingsFooterLinkText }}</a\r\n >\r\n </p>\r\n </div>\r\n <div *ngIf=\"ratingFooterText && isUpdatedProviderDetails\" class=\"divider\"></div>\r\n </div>\r\n</ng-template>\r\n","import { Component, Input } from '@angular/core';\r\nimport { Provider } from '../../models/provider';\r\n\r\n@Component({\r\n selector: 'cs-provider-comments',\r\n templateUrl: './provider-comments.component.html',\r\n styleUrls: ['./provider-comments.component.scss']\r\n})\r\nexport class ProviderCommentsComponent {\r\n @Input() provider: Provider;\r\n moreLessExpanded = false;\r\n commentsSliceIndex = 5;\r\n @Input() showMoreLessButton: boolean;\r\n @Input() commentsArrayLength: number;\r\n @Input() ratingFooterText: string;\r\n @Input() ratingsFooterLinkText: string;\r\n @Input() ratingsFooterLink: string;\r\n @Input() isShowProviderReviews = false;\r\n @Input() isUpdatedProviderDetails = false;\r\n @Input() routId: '';\r\n @Input() isMobileView: false;\r\n\r\n goToRatingFooterLink() {\r\n window.open(this.ratingsFooterLink, '_blank');\r\n }\r\n\r\n toggleReviewComments() {\r\n this.moreLessExpanded = !this.moreLessExpanded;\r\n this.commentsSliceIndex = this.moreLessExpanded ? this.commentsArrayLength : 5;\r\n if (!this.moreLessExpanded) {\r\n const comments = document.querySelector('div.provider-comments');\r\n comments?.scrollIntoView();\r\n }\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-suggest-an-edit',\r\n templateUrl: './suggest-an-edit.component.html',\r\n styleUrls: ['./suggest-an-edit.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SuggestAnEditComponent {\r\n @Input() suggestAnEditLinkContent: string;\r\n\r\n handleSuggestEditClick() {\r\n //save the access of non fad url in session and navigate to suggestAnEditLink\r\n if (!window.sessionStorage.getItem('nonFadUrlAccessed')) {\r\n window.sessionStorage.setItem('nonFadUrlAccessed', 'true');\r\n }\r\n }\r\n}\r\n","<div class=\"suggest-an-edit-container\" (click)=\"handleSuggestEditClick()\">\r\n <a class=\"p p3\" href=\"{{ suggestAnEditLinkContent }}\"\r\n >Suggest an edit\r\n <span class=\"suggest-an-edit-tooltip\">\r\n <p>Help us keep this provider's info up to date</p>\r\n </span>\r\n </a>\r\n</div>\r\n","<div class=\"provider-hero-container\" *ngIf=\"provider\">\r\n <cs-suggest-an-edit\r\n [suggestAnEditLinkContent]=\"suggestAnEditLinkContent\"\r\n *ngIf=\"showSuggestAnEditLink && !isDesktopViewport; else notShowSuggestEdit\"\r\n >\r\n </cs-suggest-an-edit>\r\n\r\n <div class=\"basic-info-mobile\" *ngIf=\"isMobileViewport\">\r\n <div class=\"provider-image-container-m mobile\">\r\n <div class=\"print\" *ngIf=\"showPrintablePdf\">\r\n <a (click)=\"printPage()\"\r\n ><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M19.2545 8.31169H16.9498V5.81818C16.9498 5.61039 16.8777 5.4026 16.7337 5.22078L12.1001 0.233766C11.9561 0.077922 11.764 0 11.5479 0H3.8413C3.40916 0 3.07304 0.363636 3.07304 0.831169V8.33766H0.768261C0.336114 8.33766 0 8.7013 0 9.16883V15.8442C0 16.3117 0.336114 16.6753 0.768261 16.6753H3.07304V19.1688C3.07304 19.6364 3.40916 20 3.8413 20H16.1575C16.5896 20 16.9257 19.6364 16.9257 19.1688V16.6753H19.2305C19.6627 16.6753 19.9988 16.3117 19.9988 15.8442V9.14286C20.0228 8.67532 19.6867 8.31169 19.2545 8.31169ZM12.3162 2.83117L14.3089 4.98701H12.3162V2.83117ZM4.60957 1.63636H9.21913C10.0594 1.63636 10.7557 2.38961 10.7557 3.2987V5.81818C10.7557 6.28571 11.0918 6.64935 11.5239 6.64935H15.3652V8.31169H4.60957V1.63636ZM15.4132 18.3117H4.60957V15.8961H15.3892V18.3117H15.4132Z\"\r\n fill=\"#0071C2\"\r\n />\r\n </svg>\r\n <span>Print</span></a\r\n >\r\n </div>\r\n <img\r\n class=\"provider-image-mobile\"\r\n src=\"{{ providerImage.url }}\"\r\n alt=\"{{ provider.displayFullName }}\"\r\n (error)=\"getAltImageSrc($event)\"\r\n />\r\n </div>\r\n <div class=\"provider-heading-mobile\">\r\n <div class=\"provider-name\">\r\n <h1>\r\n {{ provider.displayFullName }}\r\n <img *ngFor=\"let imageUrl of logoUrls\" src=\"{{ imageUrl }}\" alt=\"\" class=\"provider-logo\" />\r\n <div class=\"provider-specialty-m\">\r\n <p *ngFor=\"let speciality of providerSpecialities\" class=\"p1\">{{ speciality }}</p>\r\n </div>\r\n </h1>\r\n </div>\r\n <div class=\"provider-specialty-m\">\r\n <p *ngFor=\"let nonSEOSpeciality of nonSEOSecondarySpecialities\" class=\"p1\">{{ nonSEOSpeciality }}</p>\r\n </div>\r\n <div *ngIf=\"showStarRatings && showStarRatingsBanner\">\r\n <div *ngIf=\"provider.rating\" class=\"provider-rating-m\" [ngClass]=\"{ 'has-rating': provider.rating?.totalRatingCount > 0 }\">\r\n <dhcl-star-rating\r\n [reviews]=\"provider.rating?.totalRatingCount\"\r\n [rating]=\"provider.rating?.overallRating.value\"\r\n [showRatingText]=\"showRatingText\"\r\n [showNumReviews]=\"showNumReviews\"\r\n (click)=\"provider.rating?.totalRatingCount !== 0 ? goToComments() : false\"\r\n ></dhcl-star-rating>\r\n <cs-tooltip *ngIf=\"provider.rating?.totalRatingCount === 0 || provider.rating?.overallRating.value === 0\" class=\"rating-tooltip\">\r\n {{ ratingTooltipText }}\r\n </cs-tooltip>\r\n </div>\r\n <div *ngIf=\"provider.loadingRating\" class=\"stars-container-mobile\">\r\n <div class=\"stars\">\r\n <svg\r\n *ngFor=\"let star of stars; let i = index\"\r\n width=\"18\"\r\n height=\"16\"\r\n viewBox=\"0 0 18 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <defs>\r\n <linearGradient\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n y1=\"100%\"\r\n x2=\"0\"\r\n y2=\"100%\"\r\n id=\"grad107b5e38-b154-4ba7-931d-08d12ec9961f-4\"\r\n x1=\"1%\"\r\n >\r\n <stop stop-color=\"#727779\" offset=\"0%\"></stop>\r\n <stop stop-color=\"var(--dhcl-color-yellow)\" offset=\"0%\"></stop>\r\n </linearGradient>\r\n </defs>\r\n <path\r\n d=\"M8.67027 0.871503C8.85549 0.376165 9.55613 0.376166 9.74135 0.871502L11.1349 4.59828C11.3558 5.18902 11.9084 5.59051 12.5385 5.61804L16.5135 5.79174C17.0418 5.81482 17.2583 6.48117 16.8444 6.81039L13.7307 9.28736C13.2371 9.67999 13.0261 10.3296 13.1946 10.9374L14.2577 14.7715C14.399 15.2811 13.8322 15.6929 13.3912 15.4011L10.0733 13.2051C9.54734 12.8571 8.86428 12.8571 8.33834 13.2051L5.02041 15.4011C4.57941 15.6929 4.01258 15.2811 4.15389 14.7715L5.21704 10.9374C5.38556 10.3296 5.17448 9.67999 4.68092 9.28736L1.56717 6.81039C1.15331 6.48117 1.36982 5.81482 1.89815 5.79174L5.87315 5.61804C6.50323 5.59051 7.05584 5.18902 7.27674 4.59828L8.67027 0.871503Z\"\r\n fill=\"url(#grad107b5e38-b154-4ba7-931d-08d12ec9961f-4)\"\r\n stroke=\"#DE7925\"\r\n ></path>\r\n </svg>\r\n </div>\r\n <em class=\"loading-text\">Loading ratings...</em>\r\n </div>\r\n </div>\r\n <div class=\"provider-bagdes-m\">\r\n <cs-badges [provider]=\"provider\"></cs-badges>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"basic-info\" *ngIf=\"!isMobileViewport\">\r\n <div class=\"provider-image-container\">\r\n <img class=\"provider-image\" src=\"{{ providerImage.url }}\" alt=\"{{ provider.displayFullName }}\" (error)=\"getAltImageSrc($event)\" />\r\n </div>\r\n <div class=\"provider-heading\">\r\n <div class=\"provider-name\">\r\n <div>\r\n <h1 style=\"width: 100%\">\r\n {{ provider.displayFullName }}\r\n <img *ngFor=\"let imageUrl of logoUrls\" src=\"{{ imageUrl?.url }}\" alt=\"{{ imageUrl?.altName }}\" class=\"provider-logo\" />\r\n <div class=\"provider-specialty\">\r\n <p *ngFor=\"let speciality of providerSpecialities\" class=\"p1\">{{ speciality }}</p>\r\n </div>\r\n </h1>\r\n <div class=\"provider-specialty\">\r\n <p *ngFor=\"let nonSEOSpeciality of nonSEOSecondarySpecialities\" class=\"p1\">{{ nonSEOSpeciality }}</p>\r\n </div>\r\n </div>\r\n <div class=\"print\" *ngIf=\"showPrintablePdf\">\r\n <a (click)=\"printPage()\"\r\n ><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M19.2545 8.31169H16.9498V5.81818C16.9498 5.61039 16.8777 5.4026 16.7337 5.22078L12.1001 0.233766C11.9561 0.077922 11.764 0 11.5479 0H3.8413C3.40916 0 3.07304 0.363636 3.07304 0.831169V8.33766H0.768261C0.336114 8.33766 0 8.7013 0 9.16883V15.8442C0 16.3117 0.336114 16.6753 0.768261 16.6753H3.07304V19.1688C3.07304 19.6364 3.40916 20 3.8413 20H16.1575C16.5896 20 16.9257 19.6364 16.9257 19.1688V16.6753H19.2305C19.6627 16.6753 19.9988 16.3117 19.9988 15.8442V9.14286C20.0228 8.67532 19.6867 8.31169 19.2545 8.31169ZM12.3162 2.83117L14.3089 4.98701H12.3162V2.83117ZM4.60957 1.63636H9.21913C10.0594 1.63636 10.7557 2.38961 10.7557 3.2987V5.81818C10.7557 6.28571 11.0918 6.64935 11.5239 6.64935H15.3652V8.31169H4.60957V1.63636ZM15.4132 18.3117H4.60957V15.8961H15.3892V18.3117H15.4132Z\"\r\n fill=\"#0071C2\"\r\n />\r\n </svg>\r\n <span>Print</span></a\r\n >\r\n </div>\r\n <cs-suggest-an-edit\r\n [suggestAnEditLinkContent]=\"suggestAnEditLinkContent\"\r\n *ngIf=\"showSuggestAnEditLink && isDesktopViewport; else notShowSuggestEdit\"\r\n >\r\n </cs-suggest-an-edit>\r\n </div>\r\n <div *ngIf=\"showStarRatings\">\r\n <div *ngIf=\"provider.rating\" class=\"provider-rating\" [ngClass]=\"{ 'has-rating': provider.rating?.totalRatingCount > 0 }\">\r\n <dhcl-star-rating\r\n [reviews]=\"provider.rating?.totalRatingCount\"\r\n [rating]=\"provider.rating?.overallRating.value\"\r\n [showRatingText]=\"showRatingText\"\r\n [showNumReviews]=\"showNumReviews\"\r\n (click)=\"provider.rating?.totalRatingCount !== 0 ? goToComments() : false\"\r\n ></dhcl-star-rating>\r\n <cs-tooltip *ngIf=\"provider.rating?.totalRatingCount === 0 || provider.rating?.overallRating.value === 0\" class=\"rating-tooltip\">\r\n {{ ratingTooltipText }}\r\n </cs-tooltip>\r\n </div>\r\n <div *ngIf=\"provider.loadingRating\" class=\"stars-container\">\r\n <div class=\"stars\">\r\n <svg\r\n *ngFor=\"let star of stars; let i = index\"\r\n width=\"18\"\r\n height=\"16\"\r\n viewBox=\"0 0 18 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <defs>\r\n <linearGradient\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n y1=\"100%\"\r\n x2=\"0\"\r\n y2=\"100%\"\r\n id=\"grad107b5e38-b154-4ba7-931d-08d12ec9961f-4\"\r\n x1=\"1%\"\r\n >\r\n <stop stop-color=\"#727779\" offset=\"0%\"></stop>\r\n <stop stop-color=\"var(--dhcl-color-yellow)\" offset=\"0%\"></stop>\r\n </linearGradient>\r\n </defs>\r\n <path\r\n d=\"M8.67027 0.871503C8.85549 0.376165 9.55613 0.376166 9.74135 0.871502L11.1349 4.59828C11.3558 5.18902 11.9084 5.59051 12.5385 5.61804L16.5135 5.79174C17.0418 5.81482 17.2583 6.48117 16.8444 6.81039L13.7307 9.28736C13.2371 9.67999 13.0261 10.3296 13.1946 10.9374L14.2577 14.7715C14.399 15.2811 13.8322 15.6929 13.3912 15.4011L10.0733 13.2051C9.54734 12.8571 8.86428 12.8571 8.33834 13.2051L5.02041 15.4011C4.57941 15.6929 4.01258 15.2811 4.15389 14.7715L5.21704 10.9374C5.38556 10.3296 5.17448 9.67999 4.68092 9.28736L1.56717 6.81039C1.15331 6.48117 1.36982 5.81482 1.89815 5.79174L5.87315 5.61804C6.50323 5.59051 7.05584 5.18902 7.27674 4.59828L8.67027 0.871503Z\"\r\n fill=\"url(#grad107b5e38-b154-4ba7-931d-08d12ec9961f-4)\"\r\n stroke=\"#DE7925\"\r\n ></path>\r\n </svg>\r\n </div>\r\n <em class=\"loading-text\">Loading ratings...</em>\r\n </div>\r\n </div>\r\n <div>\r\n <cs-badges [provider]=\"provider\"></cs-badges>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-template #notShowSuggestEdit>\r\n <div class=\"no-show-suggest-edit\"></div>\r\n </ng-template>\r\n</div>\r\n","import { Component, Input, HostListener, ChangeDetectionStrategy } from '@angular/core';\r\nimport { LogoDetails } from 'src/app/models/configuration';\r\nimport { Provider } from '../../models/provider';\r\nimport { ProviderImage } from '../../models/provider-image';\r\n\r\n@Component({\r\n selector: 'cs-provider-hero',\r\n templateUrl: './provider-hero.component.html',\r\n styleUrls: ['./provider-hero.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ProviderHeroComponent {\r\n @Input() provider: Provider;\r\n @Input() referringUrl: string;\r\n @Input() providerImage: ProviderImage;\r\n @Input() showSuggestAnEditLink: boolean;\r\n @Input() isMobileViewport: boolean;\r\n @Input() logoUrls: LogoDetails[] = [];\r\n @Input() ratingTooltipText: string;\r\n @Input() showRatingText: boolean;\r\n @Input() showNumReviews: boolean;\r\n @Input() showStarRatings: boolean;\r\n @Input() showStarRatingsBanner: boolean;\r\n @Input() providerSpecialities: string[];\r\n @Input() suggestAnEditLinkContent: string;\r\n @Input() malePlaceholder: string;\r\n @Input() femalePlaceholder: string;\r\n isDesktopViewport: boolean;\r\n @Input() nonSEOSecondarySpecialities: string[];\r\n stars = [1,2,3,4,5];\r\n @Input() showPrintablePdf: boolean;\r\n \r\n @HostListener('window:resize', ['$event'])\r\n onResize(event: any) {\r\n this.isDesktopViewport = event.target.innerWidth > 767;\r\n }\r\n\r\n getAltImageSrc(event: any) {\r\n event.target.src = this.provider.gender?.toLowerCase() === 'male' ? this.malePlaceholder : this.femalePlaceholder;\r\n }\r\n\r\n goToComments() {\r\n const commentSection: HTMLElement = document.querySelector('div.provider-comments-container');\r\n commentSection?.scrollIntoView();\r\n }\r\n \r\n printPage() {\r\n window.print();\r\n }\r\n}\r\n","<div class=\"appointment-container\" *ngIf=\"selectedOfficeAddress?.phones?.length > 0\">\r\n <h2 class=\"h h2\">\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 28 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <g id=\"Calendar\">\r\n <g id=\"Group 6\">\r\n <mask id=\"mask0\" mask-type=\"alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"27\" height=\"30\">\r\n <path\r\n id=\"Clip 5\"\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M7.41877 0.320946C6.73258 0.322341 6.22338 0.858853 6.21425 1.5942C6.21004 1.96397 6.21355 2.33234 6.21355 2.73769H5.83148C5.06101 2.73769 4.29124 2.73211 3.52078 2.73978C1.51419 2.75653 0.160073 4.13304 0.160073 6.14932C0.15937 12.8149 0.15937 19.4798 0.160073 26.1454C0.160073 28.2523 1.50435 29.6205 3.5889 29.6219C5.22395 29.6226 6.859 29.6233 8.49335 29.6233H13.8951C17.0654 29.6226 20.2358 29.6212 23.4069 29.6191C23.6976 29.6191 23.9961 29.6058 24.2792 29.5437C25.8208 29.204 26.8441 27.923 26.8448 26.3156C26.8469 24.0858 26.8476 21.8568 26.8483 19.6277V13.0758C26.8483 10.7477 26.8476 8.41885 26.8476 6.09002C26.8476 6.0356 26.8469 5.98118 26.8448 5.92606C26.7802 4.18327 25.5019 2.84374 23.7749 2.75653C23.1898 2.72792 22.602 2.73141 22.0148 2.73629C21.7451 2.73769 21.4747 2.73978 21.2043 2.73769C21.0786 2.73699 20.9515 2.73769 20.7935 2.73769C20.7935 2.32955 20.7998 1.96048 20.792 1.59141C20.7773 0.853271 20.2639 0.318155 19.5805 0.321643C18.8957 0.325829 18.39 0.861643 18.3823 1.59839C18.3795 1.96676 18.3823 2.33583 18.3823 2.71885H8.62469C8.62469 2.33234 8.63031 1.96397 8.62399 1.5949C8.61134 0.857457 8.10145 0.320946 7.42158 0.320946C7.42017 0.320946 7.41947 0.320946 7.41877 0.320946ZM19.6402 8.28699C20.2709 8.26885 20.7773 7.73792 20.7906 7.05908C20.8026 6.44931 20.7934 5.83955 20.7934 5.18652H22.1377C22.6266 5.18652 23.114 5.17954 23.6021 5.19001C24.0727 5.19838 24.4231 5.51094 24.4281 5.98257C24.4428 7.54257 24.4337 9.10396 24.4337 10.6905H2.57472C2.57472 9.09001 2.56629 7.51815 2.57963 5.94559C2.58385 5.52838 2.92448 5.20048 3.34027 5.19489C4.28281 5.18094 5.22465 5.19071 6.21355 5.19071C6.21355 5.73489 6.21004 6.26582 6.21565 6.79675C6.21776 6.9921 6.21776 7.19303 6.26341 7.38071C6.4102 7.9842 6.96646 8.35257 7.59014 8.28141C8.13375 8.21931 8.59238 7.71838 8.61907 7.14001C8.63311 6.82466 8.62469 6.50722 8.62539 6.18978C8.62539 5.87373 8.62539 5.55838 8.62539 5.21513H18.3851C18.3851 5.84582 18.3732 6.47652 18.3872 7.10652C18.4034 7.78606 18.9322 8.28768 19.6009 8.28768C19.6135 8.28768 19.6269 8.28768 19.6402 8.28699ZM17.9497 17.167C17.9497 16.4142 18.5551 15.8037 19.3017 15.8037C20.0483 15.8037 20.6544 16.4142 20.6544 17.167C20.6544 17.9198 20.0483 18.5295 19.3017 18.5295C18.5551 18.5295 17.9497 17.9198 17.9497 17.167ZM12.1518 17.167C12.1518 16.4142 12.7573 15.8037 13.5039 15.8037C14.2511 15.8037 14.8566 16.4142 14.8566 17.167C14.8566 17.9198 14.2511 18.5295 13.5039 18.5295C12.7573 18.5295 12.1518 17.9198 12.1518 17.167ZM6.35331 17.167C6.35331 16.4142 6.95943 15.8037 7.70602 15.8037C8.45331 15.8037 9.05943 16.4142 9.05943 17.167C9.05943 17.9198 8.45331 18.5295 7.70602 18.5295C6.95943 18.5295 6.35331 17.9198 6.35331 17.167ZM17.9497 22.7909C17.9497 22.0382 18.5551 21.4284 19.3017 21.4284C20.0483 21.4284 20.6544 22.0382 20.6544 22.7909C20.6544 23.5437 20.0483 24.1535 19.3017 24.1535C18.5551 24.1535 17.9497 23.5437 17.9497 22.7909ZM12.1518 22.7909C12.1518 22.0382 12.7573 21.4284 13.5039 21.4284C14.2511 21.4284 14.8566 22.0382 14.8566 22.7909C14.8566 23.5437 14.2511 24.1535 13.5039 24.1535C12.7573 24.1535 12.1518 23.5437 12.1518 22.7909ZM6.35331 22.7909C6.35331 22.0382 6.95943 21.4284 7.70602 21.4284C8.45331 21.4284 9.05943 22.0382 9.05943 22.7909C9.05943 23.5437 8.45331 24.1535 7.70602 24.1535C6.95943 24.1535 6.35331 23.5437 6.35331 22.7909Z\"\r\n fill=\"white\"\r\n />\r\n </mask>\r\n <g mask=\"url(#mask0)\">\r\n <path\r\n id=\"fill-4\"\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M-3.35229 33.1116H30.3601V-3.16743H-3.35229V33.1116Z\"\r\n fill=\"#ED711C\"\r\n />\r\n </g>\r\n </g>\r\n </g>\r\n </svg>\r\n Schedule an appointment\r\n </h2>\r\n <div *ngIf=\"onlineSchedulingType !== 'ThirdParty' || (showDocAsap && !docAsapId && !olsDepartmentId && !olsProviderId && !olsBlockIt)\">\r\n <div *ngIf=\"isCernerPageRedirect\">\r\n <dhgf-guided-flow-launcher\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"provider\"\r\n [facets]=\"facets\"\r\n [npi]=\"provider.npi\"\r\n [showGuidedFlowModal]=\"true\"\r\n [selectedOfficeAddress]=\"selectedOfficeAddress\"\r\n [primaryOffice]=\"selectedOfficeAddress\"\r\n [showNewSchedulingApp]=\"showNewSchedulingApp\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [handleNavigateToSchedulingSpa]=\"true\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [enableScheduleToAppointmentButton]=\"enableScheduleToAppointmentButton\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [baseUrl]=\"bookingUrl_Cerner\"\r\n >\r\n </dhgf-guided-flow-launcher>\r\n </div>\r\n <div *ngIf=\"!isCernerPageRedirect\">\r\n <dhgf-guided-flow-launcher\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"provider\"\r\n [facets]=\"facets\"\r\n [npi]=\"provider.npi\"\r\n [showGuidedFlowModal]=\"true\"\r\n [selectedOfficeAddress]=\"selectedOfficeAddress\"\r\n [primaryOffice]=\"selectedOfficeAddress\"\r\n [showNewSchedulingApp]=\"showNewSchedulingApp\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [handleNavigateToSchedulingSpa]=\"handleNavigateToSchedulingSpa\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [enableScheduleToAppointmentButton]=\"enableScheduleToAppointmentButton\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showPatientAgeRestrictions]=\"showPatientAgeRestrictions\"\r\n >\r\n </dhgf-guided-flow-launcher>\r\n </div>\r\n\r\n <cs-patient-age-restrictions\r\n *ngIf=\"showPatientAgeRestrictions\"\r\n [patientAgeGroups]=\"provider.patientAgeGroups\"\r\n ></cs-patient-age-restrictions>\r\n </div>\r\n\r\n <div *ngIf=\"showDocAsap && docAsapId && provider.ehrCode\" style=\"margin: 15px 0\">\r\n <cs-doc-asap-booking-launcher [srcUrl]=\"srcUrl\" [docAsapId]=\"docAsapId\" [provider]=\"provider\"></cs-doc-asap-booking-launcher>\r\n </div>\r\n <div *ngIf=\"showDocAsap && olsProviderId && olsDepartmentId\" style=\"margin: 15px 0\">\r\n <cs-doc-asap-booking-launcher [srcUrl]=\"srcUrl\" [provider]=\"provider\"></cs-doc-asap-booking-launcher>\r\n </div>\r\n <div *ngIf=\"showDocAsap && olsBlockIt\" style=\"margin: 15px 0\">\r\n <cs-doc-asap-booking-launcher [srcUrl]=\"srcUrl\" [provider]=\"provider\"></cs-doc-asap-booking-launcher>\r\n <cs-patient-age-restrictions\r\n *ngIf=\"showAgeRestrictionRuleForDH\"\r\n [patientAgeGroups]=\"provider.patientAgeGroups\"\r\n [showAgeRestrictionRuleForDH]=\"showAgeRestrictionRuleForDH\"\r\n [ageRestrictionRule]=\"ageRestrictionRuleForDH\"\r\n ></cs-patient-age-restrictions>\r\n </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';\r\nimport { SafeResourceUrl } from '@angular/platform-browser';\r\nimport { FadEvent } from 'src/app/models/fad-event';\r\nimport { FadEventTypes } from 'src/app/models/fad-event-types';\r\nimport { ProviderOffice } from 'src/app/models/provider-office';\r\nimport { EventPublisherService } from 'src/app/services/event-publisher.service';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\nimport { AppointmentTime } from '../../models/appointment-time';\r\nimport { OfficeAddress } from '../../models/office-address';\r\nimport { Provider } from '../../models/provider';\r\nimport { RuntimeConfiguration } from '../../services/configuration-injection.service';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\n\r\ndeclare const ga: any;\r\n\r\n@Component({\r\n selector: 'cs-schedule-an-appointment',\r\n templateUrl: './schedule-an-appointment.component.html',\r\n styleUrls: ['./schedule-an-appointment.component.scss']\r\n})\r\nexport class ScheduleAnAppointmentComponent implements OnInit{\r\n @Input() provider: Provider;\r\n @Input() selectedOfficeAddress: OfficeAddress;\r\n @Input() showGuidedFlow = false;\r\n @Input() docAsapId?: string;\r\n @Input() srcUrl?: SafeResourceUrl;\r\n @Input() showDocAsap = false;\r\n @Input() facets: any[] = [];\r\n @Input() showNewSchedulingApp = false;\r\n @Input() enableScheduleToAppointmentButton = true;\r\n @Output() selectedOfficeChanged = new EventEmitter<any>();\r\n @Input() onlineSchedulingType: string;\r\n @Input() olsProviderId?: string;\r\n @Input() olsDepartmentId?: string;\r\n @Input() olsBlockIt?: string;\r\n\r\n runtimeConfig: RuntimeConfiguration;\r\n officeAddresses: OfficeAddress[] = [];\r\n officeNames: Array<string> = [];\r\n showTemporarilyUnavailableCopy = false;\r\n showCallToScheduleCopy = false;\r\n selectedOfficeRank: number;\r\n market: string;\r\n loginLink = '/login?flow=sched_flow&returnUrl=/ourdoctors/provider/bookyourappointment';\r\n newSchedulingAppLink = '/ourdoctors/provider/bookyourappointment';\r\n isCaptchaEnabled: boolean;\r\n embedSource: string;\r\n useLegacyAPI: boolean;\r\n isCernerPageRedirect=false;\r\n bookingUrl_Cerner = 'https://mocka.dignityhealth.me';\r\n ageRestrictionRuleForDH : string;\r\n showAgeRestrictionRuleForDH: boolean;\r\n\r\n constructor(\r\n private configService: ConfigurationService,\r\n private eventPublisherService: EventPublisherService,\r\n private fadLinkServer: FadLinkService\r\n ) {\r\n this.runtimeConfig = this.configService.getRuntimeConfiguration();\r\n this.isCaptchaEnabled =\r\n document.querySelector('#captcha-enabled')?.getAttribute('value') === 'true' || configService.getCaptchaEnabled();\r\n this.market = this.configService.getConfigType() || '';\r\n this.embedSource = this.configService.getEmbedSource();\r\n this.useLegacyAPI = this.configService.useLegacyAPI();\r\n this.isCernerPageRedirect=this.configService.getCernerPage();\r\n\r\n }\r\n\r\n ngOnInit() {\r\n this.getAgeRestrictionRuleForDH();\r\n }\r\n\r\n get handleNavigateToSchedulingSpa(): boolean {\r\n return (\r\n this.configService.getEmbedSource() === 'cerner' ||\r\n this.configService.getEmbedSource() === 'mychart' ||\r\n this.fadLinkServer.isSelfHosted()\r\n );\r\n }\r\n\r\n get showPatientAgeRestrictions(): boolean {\r\n return (\r\n this.configService.showPatientAgeRestrictions() &&\r\n Boolean(this.provider?.patientAgeGroups) &&\r\n Boolean(this.provider?.isBookOnline) &&\r\n this.providerSupportsOnlineBooking() &&\r\n this.configService.getOnlineSchedulingType() === 'GuidedFlow'\r\n );\r\n }\r\n\r\n providerSupportsOnlineBooking(): boolean {\r\n if (!this.provider || !this.provider.offices || this.provider.offices.length === 0) {\r\n return false;\r\n }\r\n\r\n let supportsOnlineBooking = false;\r\n this.provider.offices.forEach((office: ProviderOffice) => {\r\n const hasOfficeWithOnlineBooking = office.addresses.find((location: OfficeAddress) => location.supportsOnlineBooking);\r\n if (hasOfficeWithOnlineBooking) {\r\n supportsOnlineBooking = true;\r\n }\r\n });\r\n\r\n return supportsOnlineBooking;\r\n }\r\n\r\n selectOfficeCarousel(office: OfficeAddress): void {\r\n this.selectedOfficeAddress = office;\r\n this.selectedOfficeAddress.name = office.name;\r\n this.selectedOfficeRank = this.officeAddresses.indexOf(office) + 1;\r\n this.selectedOfficeChanged.emit(office);\r\n }\r\n\r\n handleTimeSelection(selection: { time: AppointmentTime; extras: any }): void {\r\n const schedAppObject = {\r\n visitMetadata: {\r\n appointmentAt: selection.time.time,\r\n appointmentType: selection.time.appointmentTypes[0].id,\r\n appointmentTypeLabel: selection.extras.appointmentTypeLabel,\r\n clientId:\r\n typeof ga === 'undefined' || typeof ga.getByName('tm_ga') === 'undefined'\r\n ? 'error with ga'\r\n : ga.getByName('tm_ga').get('clientId').toString(),\r\n initialLoadFromPCDE: true,\r\n captchaEnabled: this.isCaptchaEnabled,\r\n newPatient: !selection.time.appointmentTypes[0].id.startsWith('established'),\r\n scheduleId: selection.extras.scheduleId,\r\n returnUrlProfile: window.location.href\r\n },\r\n facility: {\r\n facilityAddress: this.selectedOfficeAddress.address,\r\n facilityId: selection.extras.facilitySchedulingId,\r\n facilityLatitude: this.selectedOfficeAddress.latitude,\r\n facilityLongitude: this.selectedOfficeAddress.longitude,\r\n facilityCity: this.selectedOfficeAddress.city,\r\n facilityName: this.selectedOfficeAddress.name,\r\n facilityPhoneNumber: this.selectedOfficeAddress.phones[0],\r\n facilityState: this.selectedOfficeAddress.state,\r\n facilityZip: this.selectedOfficeAddress.zip\r\n },\r\n provider: {\r\n npi: this.provider.npi,\r\n name: this.provider.displayFullName,\r\n acceptsNewPatients: this.provider.acceptsNewPatients,\r\n imageUrl: this.provider.images[0].url,\r\n specialty: this.provider.primarySpecialty\r\n },\r\n support: {\r\n supportLink: 'https://webchat.chat4help.net/DignityMyHome/?chatUsername=username&skill=4146152381',\r\n supportPhone: '(844) 274-8497',\r\n termsLink: 'https://terms.dignityhealth.org/cm/content.asp?pid=4&lid=4&facility_id=2'\r\n }\r\n };\r\n\r\n const base64 = window.btoa(JSON.stringify(schedAppObject));\r\n const visitData = {\r\n data: base64\r\n };\r\n window.sessionStorage.setItem('SchedApp_visit', JSON.stringify(visitData));\r\n\r\n if (this.showNewSchedulingApp === true) {\r\n this.setWindowLocationHref(this.newSchedulingAppLink);\r\n } else {\r\n this.setWindowLocationHref(this.loginLink);\r\n }\r\n }\r\n\r\n setWindowLocationHref(url: string): string {\r\n window.location.href = url;\r\n return url;\r\n }\r\n\r\n navigateToSchedulingSpa(event: any): void {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n if (event) {\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.NavigateToSchedulingOnCerner,\r\n data: event\r\n })\r\n );\r\n }\r\n\r\n if(this.isCernerPageRedirect)\r\n {\r\n //<------The below code is used in cerner Page to get token from my-appointment-spa----->\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostApptDetailstoMyAppointment_Cerner,\r\n data: event\r\n })\r\n );\r\n const tokenInfo = window.sessionStorage.getItem(\r\n this.runtimeConfig.Cerner_MyAppointments_OIDC_Token\r\n );\r\n if (tokenInfo) {\r\n \r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostOidcTokentoMyAppointment_Cerner,\r\n data: tokenInfo\r\n })\r\n );\r\n }\r\n }\r\n }\r\n\r\n getAgeRestrictionRuleForDH() : void {\r\n\r\n const divisionCodes = this.configService?.getDivisionCodes().length > 0 ? this.configService.getDivisionCodes()[0] : null;\r\n if (divisionCodes != null && divisionCodes.toLowerCase() == 'dignity-health') {\r\n this.ageRestrictionRuleForDH = typeof this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == 'agerule') !== 'undefined' ? this.provider?.externalSystems?.find(({ systemName }) => systemName.toLowerCase() == 'agerule').systemId : null;\r\n if (this.ageRestrictionRuleForDH != null && this.ageRestrictionRuleForDH != undefined) {\r\n this.showAgeRestrictionRuleForDH = true;\r\n }\r\n }\r\n }\r\n}\r\n","import { inject, Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, ResolveFn } from '@angular/router';\r\nimport { ProviderService } from '../services/provider.service';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class ProviderDetailsResolver {\r\n constructor(private providerService: ProviderService) {}\r\n\r\n resolve(route: ActivatedRouteSnapshot): Observable<any> {\r\n const providerId = route.paramMap.get('providerId');\r\n const regexMatch = /(\\d+)/s;\r\n const match = regexMatch.exec(providerId);\r\n return this.providerService.getProviderDetailsFull(match[0]);\r\n }\r\n}\r\nexport const providerDetailsResolver : ResolveFn<Observable<any>> = route => inject(ProviderDetailsResolver).resolve(route);\r\n","<div class=\"new-card\">\r\n <div class=\"card-container\">\r\n <div class=\"provider\">\r\n <div class=\"provider-photo\">\r\n <img src=\"{{ providerImage?.url }}\" alt=\"\" (error)=\"getAltImageSrc($event)\" />\r\n </div>\r\n <div class=\"provider-info\">\r\n <div class=\"info-header\">\r\n <div class=\"header-name\">\r\n <div class=\"name\">\r\n <h2>{{provider?.displayFullName}}</h2>\r\n <ul>\r\n <li *ngFor=\"let imageUrl of logoUrls\">\r\n <img src=\"{{ imageUrl?.url }}\" alt=\"{{ imageUrl?.altName }}\" class=\"provider-logo\" />\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"speciality\">\r\n <div class=\"provider-specialty\" role=\"list\">\r\n <p *ngFor=\"let speciality of providerSpecialities\" class=\"p1\" role=\"listitem\">{{ speciality }}</p>\r\n <p *ngFor=\"let secondarySpeciality of nonSEOSecondarySpecialities\" class=\"p1\" role=\"listitem\">{{ secondarySpeciality }}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"header-button\">\r\n <button *ngIf=\"showGuidedFlowCTA\" dhclButton buttonType=\"primary\" buttonSize=\"small\" (click)=\"launchGuidedFlow()\">\r\n Schedule an appointment\r\n </button>\r\n <span *ngIf=\"!showGuidedFlowCTA\">\r\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4191L15.9809 12.1691C16.0622 11.816 15.8778 11.4535 15.5465 11.3097L12.0465 9.8097C11.7403 9.67845 11.3809 9.76595 11.1715 10.0253L9.62154 11.9191C7.22466 10.7941 5.23091 8.82845 4.08404 6.38158L5.97779 4.83158C6.23716 4.61908 6.32466 4.26283 6.19341 3.95658L4.69341 0.456576C4.54654 0.122201 4.18404 -0.0621745 3.83091 0.0190755L0.580913 0.769076C0.243413 0.847201 -0.000337601 1.1472 -0.000337601 1.50033C-0.000337601 9.50345 6.48404 16.0003 14.4997 16.0003C14.8497 16.0003 15.1528 15.7597 15.2309 15.4191Z\"\r\n fill=\"#0071c2\"\r\n />\r\n </svg>\r\n Call to schedule an appointment\r\n </span>\r\n <svg width=\"28\" height=\"30\" viewBox=\"0 0 28 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <mask id=\"mask0_498_32315\" style=\"mask-type: alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"28\" height=\"30\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M8.0275 0.320801C7.34132 0.322196 6.83212 0.858708 6.82299 1.59406C6.81877 1.96382 6.82229 2.3322 6.82229 2.73755H6.44021C5.66974 2.73755 4.89998 2.73196 4.12951 2.73964C2.12292 2.75638 0.768807 4.13289 0.768807 6.14917C0.768104 12.8148 0.768104 19.4796 0.768807 26.1452C0.768807 28.2522 2.11309 29.6203 4.19764 29.6217C5.83269 29.6224 7.46774 29.6231 9.10209 29.6231H14.5038C17.6742 29.6224 20.8445 29.621 24.0156 29.6189C24.3064 29.6189 24.6049 29.6057 24.8879 29.5436C26.4295 29.2038 27.4529 27.9229 27.4536 26.3155C27.4557 24.0857 27.4564 21.8566 27.4571 19.6275V13.0757C27.4571 10.7475 27.4564 8.41871 27.4564 6.08987C27.4564 6.03545 27.4557 5.98103 27.4536 5.92592C27.3889 4.18313 26.1107 2.84359 24.3836 2.75638C23.7986 2.72778 23.2107 2.73127 22.6236 2.73615C22.3539 2.73755 22.0835 2.73964 21.8131 2.73755C21.6873 2.73685 21.5602 2.73755 21.4022 2.73755C21.4022 2.32941 21.4085 1.96034 21.4008 1.59127C21.386 0.853126 20.8726 0.31801 20.1892 0.321498C19.5045 0.325685 18.9988 0.861498 18.991 1.59824C18.9882 1.96661 18.991 2.33568 18.991 2.71871H9.23342C9.23342 2.3322 9.23904 1.96382 9.23272 1.59475C9.22008 0.857312 8.71018 0.320801 8.03031 0.320801C8.02891 0.320801 8.02821 0.320801 8.0275 0.320801ZM20.2489 8.28684C20.8796 8.2687 21.386 7.73777 21.3994 7.05894C21.4113 6.44917 21.4022 5.8394 21.4022 5.18638H22.7465C23.2353 5.18638 23.7227 5.1794 24.2108 5.18987C24.6814 5.19824 25.0319 5.5108 25.0368 5.98242C25.0515 7.54242 25.0424 9.10382 25.0424 10.6903H3.18345C3.18345 9.08987 3.17502 7.518 3.18837 5.94545C3.19258 5.52824 3.53322 5.20033 3.949 5.19475C4.89155 5.1808 5.83338 5.19056 6.82228 5.19056C6.82228 5.73475 6.81877 6.26568 6.82439 6.79661C6.8265 6.99196 6.8265 7.19289 6.87215 7.38056C7.01894 7.98405 7.57519 8.35242 8.19887 8.28126C8.74248 8.21917 9.20111 7.71824 9.2278 7.13987C9.24185 6.82452 9.23342 6.50707 9.23412 6.18963C9.23412 5.87359 9.23412 5.55824 9.23412 5.21498H18.9939C18.9939 5.84568 18.9819 6.47638 18.996 7.10638C19.0121 7.78591 19.541 8.28754 20.2096 8.28754C20.2222 8.28754 20.2356 8.28754 20.2489 8.28684ZM18.5584 17.1668C18.5584 16.414 19.1638 15.8036 19.9104 15.8036C20.657 15.8036 21.2631 16.414 21.2631 17.1668C21.2631 17.9196 20.657 18.5294 19.9104 18.5294C19.1638 18.5294 18.5584 17.9196 18.5584 17.1668ZM12.7606 17.1668C12.7606 16.414 13.366 15.8036 14.1126 15.8036C14.8599 15.8036 15.4653 16.414 15.4653 17.1668C15.4653 17.9196 14.8599 18.5294 14.1126 18.5294C13.366 18.5294 12.7606 17.9196 12.7606 17.1668ZM6.96204 17.1668C6.96204 16.414 7.56816 15.8036 8.31475 15.8036C9.06204 15.8036 9.66817 16.414 9.66817 17.1668C9.66817 17.9196 9.06204 18.5294 8.31475 18.5294C7.56816 18.5294 6.96204 17.9196 6.96204 17.1668ZM18.5584 22.7908C18.5584 22.038 19.1638 21.4282 19.9104 21.4282C20.657 21.4282 21.2631 22.038 21.2631 22.7908C21.2631 23.5436 20.657 24.1534 19.9104 24.1534C19.1638 24.1534 18.5584 23.5436 18.5584 22.7908ZM12.7606 22.7908C12.7606 22.038 13.366 21.4282 14.1126 21.4282C14.8599 21.4282 15.4653 22.038 15.4653 22.7908C15.4653 23.5436 14.8599 24.1534 14.1126 24.1534C13.366 24.1534 12.7606 23.5436 12.7606 22.7908ZM6.96204 22.7908C6.96204 22.038 7.56816 21.4282 8.31475 21.4282C9.06204 21.4282 9.66817 22.038 9.66817 22.7908C9.66817 23.5436 9.06204 24.1534 8.31475 24.1534C7.56816 24.1534 6.96204 23.5436 6.96204 22.7908Z\"\r\n fill=\"white\"\r\n />\r\n </mask>\r\n <g mask=\"url(#mask0_498_32315)\">\r\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M-2.74359 33.1116H30.9688V-3.16748H-2.74359V33.1116Z\" fill=\"#55a63a\" />\r\n </g>\r\n </svg>\r\n </div>\r\n </div>\r\n <div class=\"info-line-break\"></div>\r\n <div *ngIf=\"showRating\" class=\"info-star-rating\">\r\n <div *ngIf=\"provider?.rating\" class=\"provider-rating\" [ngClass]=\"{ 'has-rating': provider?.rating?.totalRatingCount > 0 }\">\r\n <dhcl-star-rating\r\n [reviews]=\"provider?.rating?.totalRatingCount\"\r\n [rating]=\"provider?.rating?.overallRating.value\"\r\n [showRatingText]=\"showRatingText\"\r\n [showNumReviews]=\"showNumReviews\"\r\n (click)=\"provider?.rating?.totalRatingCount !== 0 ? goToComments() : false\"\r\n tabindex=\"0\"\r\n role=\"link\"\r\n [attr.aria-label]=\"'Average stars ' + provider.rating?.overallRating.value + 'out of 5 and ' + (provider.rating?.totalRatingCount) + ' reviews'\"\r\n ></dhcl-star-rating>\r\n <cs-tooltip\r\n *ngIf=\"provider?.rating?.totalRatingCount === 0 || provider?.rating?.overallRating.value === 0\"\r\n class=\"rating-tooltip\"\r\n >\r\n {{ ratingTooltipText }}\r\n </cs-tooltip>\r\n </div>\r\n <div *ngIf=\"!provider?.rating\" class=\"stars-container\">\r\n <div class=\"stars\">\r\n <svg\r\n *ngFor=\"let star of stars; let i = index\"\r\n width=\"18\"\r\n height=\"16\"\r\n viewBox=\"0 0 18 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <defs>\r\n <linearGradient\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n y1=\"100%\"\r\n x2=\"0\"\r\n y2=\"100%\"\r\n id=\"grad107b5e38-b154-4ba7-931d-08d12ec9961f-4\"\r\n x1=\"1%\"\r\n >\r\n <stop stop-color=\"#727779\" offset=\"0%\"></stop>\r\n <stop stop-color=\"var(--dhcl-color-yellow)\" offset=\"0%\"></stop>\r\n </linearGradient>\r\n </defs>\r\n <path\r\n d=\"M8.67027 0.871503C8.85549 0.376165 9.55613 0.376166 9.74135 0.871502L11.1349 4.59828C11.3558 5.18902 11.9084 5.59051 12.5385 5.61804L16.5135 5.79174C17.0418 5.81482 17.2583 6.48117 16.8444 6.81039L13.7307 9.28736C13.2371 9.67999 13.0261 10.3296 13.1946 10.9374L14.2577 14.7715C14.399 15.2811 13.8322 15.6929 13.3912 15.4011L10.0733 13.2051C9.54734 12.8571 8.86428 12.8571 8.33834 13.2051L5.02041 15.4011C4.57941 15.6929 4.01258 15.2811 4.15389 14.7715L5.21704 10.9374C5.38556 10.3296 5.17448 9.67999 4.68092 9.28736L1.56717 6.81039C1.15331 6.48117 1.36982 5.81482 1.89815 5.79174L5.87315 5.61804C6.50323 5.59051 7.05584 5.18902 7.27674 4.59828L8.67027 0.871503Z\"\r\n fill=\"url(#grad107b5e38-b154-4ba7-931d-08d12ec9961f-4)\"\r\n stroke=\"#DE7925\"\r\n ></path>\r\n </svg>\r\n </div>\r\n <em class=\"loading-text\">Loading ratings...</em>\r\n </div>\r\n </div>\r\n <div class=\"info-contact\">\r\n <div class=\"contact-phone\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M8.38028 8.85335C9.07627 10.303 10.0251 11.6616 11.2266 12.8632C12.4282 14.0648 13.7869 15.0136 15.2365 15.7096C15.3612 15.7694 15.4235 15.7994 15.5024 15.8224C15.7828 15.9041 16.127 15.8454 16.3644 15.6754C16.4313 15.6275 16.4884 15.5704 16.6027 15.4561C16.9523 15.1064 17.1271 14.9316 17.3029 14.8174C17.9658 14.3864 18.8204 14.3864 19.4833 14.8174C19.6591 14.9316 19.8339 15.1064 20.1835 15.4561L20.3783 15.6509C20.9098 16.1824 21.1755 16.4481 21.3198 16.7335C21.6069 17.301 21.6069 17.9713 21.3198 18.5389C21.1755 18.8242 20.9098 19.09 20.3783 19.6214L20.2207 19.779C19.6911 20.3087 19.4263 20.5735 19.0662 20.7757C18.6667 21.0001 18.0462 21.1615 17.588 21.1601C17.1751 21.1589 16.8928 21.0788 16.3284 20.9186C13.295 20.0576 10.4326 18.4332 8.04466 16.0452C5.65668 13.6572 4.03221 10.7948 3.17124 7.76144C3.01103 7.19699 2.93092 6.91477 2.9297 6.50182C2.92833 6.0436 3.08969 5.42311 3.31411 5.0236C3.51636 4.66357 3.78117 4.39876 4.3108 3.86913L4.46843 3.7115C4.99987 3.18006 5.2656 2.91433 5.55098 2.76999C6.11854 2.48292 6.7888 2.48292 7.35636 2.76999C7.64174 2.91433 7.90747 3.18006 8.43891 3.7115L8.63378 3.90637C8.98338 4.25597 9.15819 4.43078 9.27247 4.60655C9.70347 5.26945 9.70347 6.12403 9.27247 6.78692C9.15819 6.96269 8.98338 7.1375 8.63378 7.4871C8.51947 7.60142 8.46231 7.65857 8.41447 7.72538C8.24446 7.96281 8.18576 8.30707 8.26748 8.58743C8.29048 8.66632 8.32041 8.72866 8.38028 8.85335Z\"\r\n stroke=\"#0071C2\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n />\r\n </svg>\r\n <span class=\"phone-lable\">\r\n <p class=\"p1\">\r\n <strong\r\n ><a\r\n href=\"tel:{{ officeAddresses[0]?.phones[0] }}\"\r\n [attr.aria-label]=\"'Call Phone Number ' + officeAddresses[0]?.phones[0] \"\r\n >\r\n Call\r\n </a></strong\r\n >\r\n </p>\r\n <p class=\"p1\">{{ officeAddresses[0]?.phones[0] }}</p>\r\n </span>\r\n <span class=\"phone-lable-mobile\">\r\n <a href=\"tel:{{ officeAddresses[0]?.phones[0] }}\" [attr.aria-label]=\"'Call Phone Number ' + officeAddresses[0]?.phones[0] \"\r\n >{{ officeAddresses[0]?.phones[0] }}</a\r\n >\r\n </span>\r\n </div>\r\n <div class=\"contact-direction\">\r\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13Z\"\r\n stroke=\"#0071C2\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <path\r\n d=\"M12 22C16 18 20 14.4183 20 10C20 5.58172 16.4183 2 12 2C7.58172 2 4 5.58172 4 10C4 14.4183 8 18 12 22Z\"\r\n stroke=\"#0071C2\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n <span class=\"direction-lable\">\r\n <p class=\"p1\">\r\n <strong>\r\n <a\r\n target=\"_blank\"\r\n href=\"https://www.google.com/maps/search/{{ officeAddresses[0]?.address }} {{ officeAddresses[0]?.city }} {{ officeAddresses[0]?.state }} {{ officeAddresses[0]?.zip }}\"\r\n [attr.aria-label]=\"'Get directions Address' + officeAddresses[0]?.address + officeAddresses[0]?.city + officeAddresses[0]?.state + officeAddresses[0]?.zip\"\r\n >Get directions</a\r\n ></strong\r\n >\r\n </p>\r\n <p class=\"p1\">\r\n {{ officeAddresses[0]?.address}}, {{officeAddresses[0]?.city}}, {{officeAddresses[0]?.state}} {{officeAddresses[0]?.zip}}\r\n </p>\r\n </span>\r\n <span class=\"direction-lable-mobile\">\r\n <a\r\n target=\"_blank\"\r\n href=\"https://maps.google.com/?q={{officeAddresses[0]?.name}}+{{officeAddresses[0]?.address}}+{{officeAddresses[0]?.city}}+{{officeAddresses[0]?.state}}+{{officeAddresses[0]?.zip}}\"\r\n [attr.aria-label]=\"'Get directions Address' + officeAddresses[0]?.address + officeAddresses[0]?.city + officeAddresses[0]?.state + officeAddresses[0]?.zip\"\r\n >\r\n {{ officeAddresses[0]?.address}}, {{officeAddresses[0]?.city}}, {{officeAddresses[0]?.state}} {{officeAddresses[0]?.zip}}\r\n </a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","/* eslint-disable @typescript-eslint/no-inferrable-types */\r\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\r\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\r\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\r\nimport { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { AppointmentType } from '@dignity-health/ngx-guided-flow/lib/models/provider.model';\r\nimport { LogoDetails } from 'src/app/models/configuration';\r\nimport { OfficeAddress } from 'src/app/models/office-address';\r\nimport { OnlineBookingAvailability } from 'src/app/models/online-booking-availability';\r\nimport { Provider } from 'src/app/models/provider';\r\nimport { ProviderImage } from 'src/app/models/provider-image';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-provider-details-card',\r\n templateUrl: './provider-details-card.component.html',\r\n styleUrls: ['./provider-details-card.component.scss']\r\n})\r\nexport class ProviderDetailsCardComponent implements OnInit {\r\n @Input() provider: Provider;\r\n @Input() logoUrls: LogoDetails[] = [];\r\n @Input() providerSpecialities: string[];\r\n @Input() providerImage: ProviderImage;\r\n @Input() nonSEOSecondarySpecialities: string[];\r\n @Input() ratingTooltipText: string;\r\n @Input() showNumReviews: boolean;\r\n @Input() showRatingText: boolean;\r\n @Input() showRating: boolean;\r\n @Input() isSchedulable: boolean;\r\n @Input() officeAddresses: OfficeAddress[] = [];\r\n stars = [1,2,3,4,5];\r\n @Output() scheduleProvider: EventEmitter<Provider> = new EventEmitter<Provider>();\r\n schedulingType: string;\r\n\r\n constructor(private configurationService: ConfigurationService) { }\r\n \r\n ngOnInit(): void {\r\n this.schedulingType = this.configurationService.getOnlineSchedulingType();\r\n }\r\n\r\n getAltImageSrc(event: any) {\r\n event.target.src =\r\n this.provider.gender?.toLowerCase() === 'male'\r\n ? this.configurationService.malePlaceholder\r\n : this.provider.gender?.toLowerCase() === 'female'\r\n ? this.configurationService.femalePlaceholder\r\n : this.configurationService.blankPlaceholder;\r\n }\r\n\r\n get showGuidedFlowCTA(): boolean {\r\n if (this.schedulingType === 'GuidedFlow') {\r\n const hasBookingLocation = (this.provider?.onlineBookingAvailability || []).find((location: OnlineBookingAvailability) => location.supportsOnlineBooking);\r\n\r\n const hasMappedApptType = (this.provider?.onlineBookingAvailability || []).find((location: OnlineBookingAvailability) => (location.appointmentTypes || []).find((apptType: AppointmentType) => !!apptType.patientAppointmentType));\r\n\r\n const hasPhoneNumber = this.officeAddresses[0]?.phones && this.officeAddresses[0]?.phones[0];\r\n if (this.provider?.isBookOnline && hasBookingLocation && hasMappedApptType && hasPhoneNumber && this.isSchedulable) \r\n {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n launchGuidedFlow(): void{ \r\n this.scheduleProvider.emit(this.provider);\r\n }\r\n\r\n goToComments() {\r\n const commentSection: HTMLElement = document.querySelector('div.provider-comments-container');\r\n commentSection?.scrollIntoView();\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostListener, Input, OnInit } from '@angular/core';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\n\r\n@Component({\r\n selector: 'cs-scroll-to-top',\r\n templateUrl: './scroll-to-top.component.html',\r\n styleUrls: ['./scroll-to-top.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class ScrollToTopComponent implements OnInit {\r\n @Input() windowScrolled = false;\r\n\r\n @HostListener('window:scroll', [])\r\n onWindowScroll() {\r\n this.windowScrolled = window.pageYOffset > 400;\r\n }\r\n\r\n get isMyChart(): boolean {\r\n return this.configurationService.getEmbedSource() != null && this.configurationService.getEmbedSource() === 'mychart';\r\n }\r\n\r\n get isCerner(): boolean {\r\n return this.configurationService.getEmbedSource() != null && this.configurationService.getEmbedSource() === 'cerner';\r\n }\r\n\r\n constructor(private configurationService: ConfigurationService, private changeDetector: ChangeDetectorRef) {}\r\n\r\n ngOnInit(): void {\r\n if (this.isMyChart || this.isCerner) {\r\n this.windowScrolled = true;\r\n const parentTop = window.parent.scrollY + 270;\r\n document.getElementById('scrollTopDiv').style.opacity = '1';\r\n document.getElementById('scrollTopDiv').style.top = parentTop.toString() + 'px';\r\n window.parent.addEventListener('scroll', this.checkScrolling.bind(this), true);\r\n }\r\n }\r\n\r\n checkScrolling(): void {\r\n const parentTop = window.parent.scrollY + 270;\r\n document.getElementById('scrollTopDiv').style.top = parentTop.toString() + 'px';\r\n this.changeDetector.detectChanges();\r\n }\r\n\r\n scrollToTop(): void {\r\n if (this.isMyChart || this.isCerner) {\r\n window.parent.scrollTo({\r\n top: 0,\r\n behavior: 'smooth'\r\n });\r\n } else {\r\n window.scroll({\r\n top: 0,\r\n behavior: 'smooth'\r\n });\r\n }\r\n }\r\n}\r\n","<div class=\"scroll-to-top\" id=\"scrollTopDiv\" [ngClass]=\"{ 'show-scrollTop': windowScrolled }\" (click)=\"scrollToTop()\">\r\n <div data-toggle=\"button\" aria-pressed=\"true\">\r\n <svg viewBox=\"0 0 21 12\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 11L10.4933 1.5067L19.9857 11\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n </svg>\r\n <span>Back to top</span>\r\n </div>\r\n</div>\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { GoogleMapsModule } from '@angular/google-maps';\r\nimport { RouterModule } from '@angular/router';\r\nimport { YouTubePlayerModule } from '@angular/youtube-player';\r\nimport { CarePhilosophyComponent } from 'src/app/components/care-philosophy/care-philosophy.component';\r\nimport { CredentialsComponent } from 'src/app/components/credentials/credentials.component';\r\nimport { DocAsapBookingLauncherModule } from 'src/app/components/doc-asap-booking-launcher/doc-asap-booking-launcher.module';\r\nimport { ErrorPageComponent } from 'src/app/components/error-page/error-page.component';\r\nimport { GetToKnowComponent } from 'src/app/components/get-to-know/get-to-know.component';\r\nimport { GoogleMapsComponent } from 'src/app/components/google-maps/google-maps.component';\r\nimport { LocationsListComponent } from 'src/app/components/locations-list/locations-list.component';\r\nimport { OwnWordsComponent } from 'src/app/components/own-words/own-words.component';\r\nimport { PatientAgeRestrictionsModule } from 'src/app/components/patient-age-restrictions/patient-age-restrictions.module';\r\nimport { PersonalInfoComponent } from 'src/app/components/personal-info/personal-info.component';\r\nimport { PrintPageComponent } from 'src/app/components/print-page/print-page.component';\r\nimport { ProviderCommentsComponent } from 'src/app/components/provider-comments/provider-comments.component';\r\nimport { ProviderHeroComponent } from 'src/app/components/provider-hero/provider-hero.component';\r\nimport { ProviderVideoComponent } from 'src/app/components/provider-video/provider-video.component';\r\nimport { ScheduleAnAppointmentComponent } from 'src/app/components/schedule-an-appointment/schedule-an-appointment.component';\r\nimport { SharedModule } from 'src/app/components/shared.module';\r\nimport { SuggestAnEditComponent } from 'src/app/components/suggest-an-edit/suggest-an-edit.component';\r\nimport { YouTubePlayerComponent } from 'src/app/components/you-tube-player/you-tube-player.component';\r\nimport { ProviderDetailsResolver } from '../../resolvers/provider-details.resolver';\r\nimport { ProviderDetailsComponent } from './provider-details.component';\r\nimport { ProviderDetailsCardComponent } from 'src/app/components/provider-details-card/provider-details-card.component';\r\n\r\n@NgModule({\r\n declarations: [ProviderDetailsComponent, \r\n ProviderHeroComponent,\r\n ScheduleAnAppointmentComponent,\r\n LocationsListComponent,\r\n GetToKnowComponent,\r\n CredentialsComponent,\r\n ProviderCommentsComponent,\r\n ErrorPageComponent, \r\n CarePhilosophyComponent,\r\n PersonalInfoComponent,\r\n OwnWordsComponent,\r\n SuggestAnEditComponent,\r\n GoogleMapsComponent,\r\n ProviderVideoComponent,\r\n YouTubePlayerComponent,\r\n PrintPageComponent,\r\n ProviderDetailsCardComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n YouTubePlayerModule,\r\n GoogleMapsModule,\r\n PatientAgeRestrictionsModule,\r\n DocAsapBookingLauncherModule,\r\n RouterModule.forChild([\r\n {\r\n path: '',\r\n component: ProviderDetailsComponent\r\n }\r\n ])\r\n ],\r\n providers: [ProviderDetailsResolver],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class ProviderDetailsModule {}\r\n","export class InvalidTokenError extends Error {\n}\nInvalidTokenError.prototype.name = \"InvalidTokenError\";\nfunction b64DecodeUnicode(str) {\n return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {\n let code = p.charCodeAt(0).toString(16).toUpperCase();\n if (code.length < 2) {\n code = \"0\" + code;\n }\n return \"%\" + code;\n }));\n}\nfunction base64UrlDecode(str) {\n let output = str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += \"==\";\n break;\n case 3:\n output += \"=\";\n break;\n default:\n throw new Error(\"base64 string is not of the correct length\");\n }\n try {\n return b64DecodeUnicode(output);\n }\n catch (err) {\n return atob(output);\n }\n}\nexport function jwtDecode(token, options) {\n if (typeof token !== \"string\") {\n throw new InvalidTokenError(\"Invalid token specified: must be a string\");\n }\n options || (options = {});\n const pos = options.header === true ? 0 : 1;\n const part = token.split(\".\")[pos];\n if (typeof part !== \"string\") {\n throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);\n }\n let decoded;\n try {\n decoded = base64UrlDecode(part);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);\n }\n try {\n return JSON.parse(decoded);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);\n }\n}\n","<div class=\"search-box-module our-doctors\">\r\n <div class=\"search-box-heading\">\r\n <svg viewBox=\"0 0 75 75\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M59.7991 21.6244C59.6667 21.7841 59.526 21.937 59.4034 22.1042C57.2151 25.0872 57.4347 29.3529 59.9161 32.0749C60.6883 32.9218 60.9659 33.894 60.5936 35.0104C60.0351 36.6852 58.2141 37.1155 57.0061 35.8563C55.5572 34.3456 54.5301 32.561 54.0092 30.5154C52.7598 25.6075 53.6539 21.189 57.1476 17.5084C59.331 15.208 62.0657 14.1716 65.1989 14.4746C67.9501 14.7407 70.2084 16.0606 71.9927 18.2028C74.1596 20.8046 75.113 23.8555 74.9894 27.265C74.8716 30.5051 73.7679 33.3363 71.6051 35.7138C70.8262 36.5699 69.9249 36.7864 69.0468 36.3393C68.1649 35.89 67.6051 34.7104 67.7763 33.6792C67.8779 33.0659 68.1385 32.5485 68.5609 32.0971C71.2626 29.2095 71.3074 24.4373 68.6627 21.4953C68.4199 21.2252 68.1382 20.992 67.8194 20.786C67.8518 20.8448 67.8761 20.9109 67.9178 20.9619C69.4949 22.8887 69.1366 26.2401 67.0093 27.758C66.6236 28.0333 66.5006 28.3479 66.5014 28.8188C66.5143 36.4194 66.538 44.0202 66.5051 51.6208C66.4588 62.3566 58.9143 71.9615 48.7209 74.3623C46.4273 74.9024 44.1097 75.1106 41.775 74.944C36.6607 74.5792 32.1295 72.6783 28.2377 69.2425C24.353 65.813 21.8822 61.4898 20.7241 56.3709C20.3695 54.804 20.2491 53.2073 20.231 51.6009C20.2238 50.9592 20.1937 50.3178 20.1865 49.6761C20.1838 49.4311 20.1121 49.3245 19.8499 49.292C16.7647 48.9107 13.861 47.938 11.1982 46.2939C5.39681 42.7116 1.78396 37.5062 0.458126 30.6729C0.208127 29.3844 0.158217 28.0552 0.0071386 26.7458C-0.0372258 26.3609 0.125993 26.2704 0.474463 26.274C2.57248 26.2948 4.67079 26.3048 6.76896 26.2962C7.12597 26.2946 7.22594 26.3971 7.24048 26.7666C7.37252 30.1373 8.32951 33.2247 10.3781 35.8914C12.8195 39.0696 15.9359 41.1776 19.8581 41.8562C28.9398 43.4279 36.0255 37.1728 37.5889 29.8229C37.8087 28.789 37.8589 27.7172 37.9868 26.6627C37.9989 26.5632 38.0036 26.4626 38.0136 26.3396H45.1851C45.1452 27.091 45.1347 27.8195 45.0632 28.5416C44.8131 31.0701 44.2631 33.5304 43.19 35.8262C39.9598 42.7361 34.7566 47.1711 27.4543 48.9188C26.7398 49.09 26.0093 49.1929 25.2831 49.3077C25.0886 49.3384 25.0035 49.3908 24.9951 49.6096C24.7806 55.2398 26.3074 60.2352 30.1763 64.3309C32.9314 67.2473 36.2689 69.1006 40.1896 69.7756C45.7135 70.7268 50.6786 69.3741 55.0116 65.7633C58.5952 62.7772 60.7379 58.8749 61.45 54.1807C61.6087 53.1338 61.6679 52.0616 61.6706 51.0007C61.6904 43.5541 61.6808 36.1074 61.6918 28.6607C61.6924 28.2772 61.587 28.033 61.276 27.7993C59.4569 26.4316 58.8485 24.1005 59.7256 21.9716C59.768 21.8685 59.8084 21.7645 59.8497 21.661C59.8328 21.6488 59.8159 21.6366 59.7991 21.6244Z\"\r\n />\r\n <path\r\n d=\"M5.6905 28.8366H3.36703C2.39669 28.8366 1.42589 28.8192 0.456003 28.8457C0.104526 28.8553 -0.00345791 28.7272 8.38358e-05 28.3377C0.0139345 26.8217 0.00546514 25.3055 0.00546514 23.7893V11.431C0.00546514 7.18241 1.96581 4.22552 5.57828 3.06377C6.13166 2.88594 6.71363 2.82501 7.27593 2.67859C7.48191 2.62503 7.73131 2.53852 7.85547 2.36807C8.85848 0.991583 10.1712 0.269956 11.6962 0.0600246C13.1834 -0.144414 14.5899 0.169024 15.8968 1.06711C18.7324 3.01605 18.8608 7.11031 16.1341 9.28876C13.6213 11.2962 9.80841 10.8599 7.89374 8.22039C7.82023 8.11929 7.62983 8.04599 7.5173 8.07534C6.67294 8.29557 5.64589 9.19229 5.66056 10.5909C5.69716 14.0662 5.67039 17.5423 5.67341 21.0181C5.67538 23.4341 5.6846 25.8503 5.6905 28.2665C5.6908 28.4357 5.6905 28.6048 5.6905 28.8366Z\"\r\n />\r\n <path\r\n d=\"M38.2731 19.3287C38.2729 16.4544 38.2458 13.5794 38.2846 10.7058C38.3037 9.29725 37.447 8.41537 36.4893 8.08043C36.2919 8.01142 36.1604 8.06155 36.0076 8.25743C34.6093 10.0514 32.8246 10.7015 30.7633 10.4926C29.5838 10.3729 28.5172 9.91389 27.5857 9.07733C25.252 6.98173 25.2935 3.41352 27.6709 1.3823C29.8748 -0.500606 33.1673 -0.456486 35.3168 1.49371C35.5512 1.70641 35.7964 1.93336 35.9579 2.21267C36.1754 2.58847 36.4723 2.65301 36.8181 2.70366C39.026 3.02709 40.9341 4.03189 42.406 5.97779C43.4206 7.31872 43.9208 8.88575 43.9168 10.6586C43.9154 11.302 43.9156 11.9456 43.9172 12.5891C43.9302 17.8218 43.9395 23.0547 43.9648 28.2873C43.9668 28.7067 43.891 28.853 43.4928 28.8462C41.9102 28.8179 40.3269 28.8253 38.744 28.8413C38.383 28.8451 38.2648 28.7086 38.2666 28.2952C38.2788 25.3064 38.2732 22.3176 38.2731 19.3287Z\"\r\n />\r\n </svg>\r\n <h1 class=\"heading-text\">{{ landingPageHeader }}</h1>\r\n </div>\r\n <cs-legal-copy\r\n *ngIf=\"showLegalCopy\"\r\n [legalCopy]=\"legalCopy\"\r\n [legalCopyToolTip]=\"legalCopyToolTip\"\r\n [legalCopyToolTipInfo]=\"legalCopyToolTipInfo\"\r\n ></cs-legal-copy>\r\n <cs-search-input></cs-search-input>\r\n <cs-emergency-care\r\n *ngIf=\"showEmergencyCare || showEmergencyCopy\"\r\n [showEmergencyLinkContent]=\"showEmergencyCare\"\r\n [showEmergencyCopy]=\"showEmergencyCopy\"\r\n [emergencyCareLinkContent]=\"emergencyCareLinkContent\"\r\n [emergencyCopy]=\"emergencyCopy\"\r\n [emergencyNumber]=\"emergencyNumber\"\r\n ></cs-emergency-care>\r\n <div class=\"helpful-links\">\r\n <cs-regional-helpline-numbers\r\n *ngIf=\"showRegionalHelplineNumbers\"\r\n [helplineNumbers]=\"helplineNumbers\"\r\n [displayInfo]=\"displayInfo\"\r\n [displayHeadingInvalid]=\"displayHeadingInvalidInfo\"\r\n [showMyProviders]=\"showMyProviders\"\r\n [showEmergencyCare]=\"showEmergencyCare\"\r\n [isDesktopViewport]=\"isDesktopViewport\"\r\n >\r\n </cs-regional-helpline-numbers>\r\n <cs-my-providers\r\n *ngIf=\"showMyProviders\"\r\n [showRegionalHelplineNumbers]=\"showRegionalHelplineNumbers\"\r\n [myProvidersLinkContent]=\"myProvidersLinkContent\"\r\n ></cs-my-providers>\r\n </div>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { ResizeService } from '../../../app/services/resize.service';\r\nimport { ERLinkCategories } from '../../../app/models/configuration';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { TitleTagHandlerService } from 'src/app/services/title-tag-handler.service';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { jwtDecode } from 'jwt-decode';\r\n\r\n@Component({\r\n selector: 'cs-search-landing',\r\n templateUrl: './search-landing.component.html',\r\n styleUrls: ['./search-landing.component.scss']\r\n})\r\nexport class SearchLandingComponent implements OnInit {\r\n showMyProviders: boolean;\r\n landingPageHeader: string;\r\n showLegalCopy: boolean;\r\n legalCopy: string;\r\n legalCopyToolTip: string;\r\n legalCopyToolTipInfo: string;\r\n showEmergencyCare: boolean;\r\n showEmergencyCopy: boolean;\r\n showRegionalHelplineNumbers: boolean;\r\n helplineNumbers: any[];\r\n isDesktopViewport: boolean;\r\n displayInfo: string;\r\n displayHeadingInvalidInfo: string;\r\n emergencyCareLinkContent: ERLinkCategories[] = [];\r\n emergencyCopy: string;\r\n emergencyNumber: string;\r\n myProvidersLinkContent: string;\r\n isCernerPage: boolean;\r\n base_url: string;\r\n \r\n constructor(private resizeService: ResizeService, private configService: ConfigurationService,\r\n private titleTagHandlerService: TitleTagHandlerService) {}\r\n\r\n ngOnInit(): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.SearchFrom);\r\n this.titleTagHandlerService.setPageTitle('','', null);\r\n this.showMyProviders = this.configService.showMyProviders();\r\n this.landingPageHeader = this.configService.getLandingPageHeader();\r\n this.showRegionalHelplineNumbers = this.configService.showRegionalHelplineNumbers();\r\n this.displayInfo = this.configService.getHelplineHeading();\r\n this.displayHeadingInvalidInfo = this.configService.getHelplineHeadingInvalid();\r\n this.isDesktopViewport = this.resizeService.isDesktopViewport;\r\n if (this.configService.getHelplineNumbers().length > 0) {\r\n this.helplineNumbers = this.configService.getHelplineNumbers();\r\n } else {\r\n this.helplineNumbers = [\r\n {\r\n heading: 'Arizona',\r\n phone: '(855) 697-0781'\r\n },\r\n {\r\n heading: 'California',\r\n phone: '(866) 914-3627'\r\n },\r\n {\r\n heading: 'Nevada',\r\n phone: '(866) 984-3627'\r\n }\r\n ];\r\n }\r\n this.getHelplineNumbers();\r\n this.myProvidersLinkContent = this.configService.myProvidersLinkScheme();\r\n this.showEmergencyCare = this.configService.showEmergencyCare();\r\n this.emergencyCareLinkContent = this.configService.getEmergencyCareLinkScheme();\r\n this.showEmergencyCopy = this.configService.showEmergencyCopy();\r\n this.emergencyCopy = this.configService.getEmergencyCopy();\r\n this.emergencyNumber = this.configService.getEmergencyNumber();\r\n this.showLegalCopy = this.configService.showLegalCopy();\r\n this.legalCopy = this.configService.getLegalCopy();\r\n this.legalCopyToolTip = this.configService.getLegalCopyToolTip();\r\n this.legalCopyToolTipInfo = this.configService.getLegalCopyToolTipInfo();\r\n }\r\n\r\n getHelplineNumbers() {\r\n this.helplineNumbers.forEach((helpline: any) => {\r\n const cleaned = helpline.phone.toString().replace(/\\D/g, '');\r\n const match = cleaned.match(/^(\\d{3})(\\d{3})(\\d{4})$/);\r\n if (match) {\r\n helpline.displayPhone = `(${match[1]}) ${match[2]}-${match[3]}`;\r\n helpline.phone = `+1${match[0]}`;\r\n } else {\r\n return;\r\n }\r\n });\r\n }\r\n getDecodedAccessToken(token: string): any {\r\n try {\r\n return jwtDecode(token);\r\n } catch (Error) {\r\n // eslint-disable-next-line no-console\r\n console.log('TOKEN DECODED ERROR', Error);\r\n return null;\r\n }\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-my-providers',\r\n templateUrl: './my-providers.component.html',\r\n styleUrls: ['./my-providers.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class MyProvidersComponent {\r\n @Input() myProvidersLinkContent: string;\r\n @Input() showRegionalHelplineNumbers: boolean;\r\n}\r\n","<div class=\"my-provider-container\" [ngClass]=\"{ 'full-width': !showRegionalHelplineNumbers }\">\r\n <p class=\"my-provider-header\">Already have a doctor?</p>\r\n <span class=\"my-provider-copy p p2\"\r\n >View the <a href=\"{{ myProvidersLinkContent }}\" class=\"my-provider-size\">providers you've seen before.</a></span\r\n >\r\n</div>\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { MyProvidersComponent } from 'src/app/components/my-providers/my-providers.component';\r\nimport { SharedModule } from 'src/app/components/shared.module';\r\nimport { SearchLandingComponent } from './search-landing.component';\r\n\r\n@NgModule({\r\n declarations: [SearchLandingComponent, MyProvidersComponent],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n RouterModule.forChild([\r\n {\r\n path: '',\r\n component: SearchLandingComponent\r\n }\r\n ])\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class SearchLandingModule {}\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { TooltipModule } from '../tooltip/tooltip.module';\r\nimport { AccordionComponent } from './accordion.component';\r\n\r\n@NgModule({\r\n declarations: [AccordionComponent],\r\n imports: [CommonModule, TooltipModule],\r\n exports: [AccordionComponent]\r\n})\r\nexport class AccordionModule {}\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { FilterDialogComponent } from './filter-dialog.component';\r\n\r\n@NgModule({\r\n declarations: [FilterDialogComponent],\r\n imports: [CommonModule],\r\n exports: [FilterDialogComponent]\r\n})\r\nexport class FilterDialogModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { AngSlideToggleComponent } from './ang-slide-toggle.component';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@NgModule({\r\n declarations: [AngSlideToggleComponent],\r\n imports: [CommonModule],\r\n exports: [AngSlideToggleComponent]\r\n})\r\nexport class AngSlideToggleModule {}\r\n","import { SearchFacet } from './search-facet';\r\n\r\nexport class SearchFilter {\r\n searchDistanceMiles: number;\r\n currentPageNumber: number;\r\n pageSize: number;\r\n pages: number;\r\n isMoreDataAvailable: boolean;\r\n totalResults: number;\r\n searchTerm: string;\r\n sortBy: number;\r\n sortByName: string;\r\n facets: SearchFacet[];\r\n}\r\n\r\nexport interface CjaTagSearchFilter {\r\n facility?: string;\r\n medicalGroup?: string;\r\n serviceLine?: string;\r\n scheduleFilterDetails: string;\r\n scheduleLocation?: string;\r\n scheduleKeyword?: string;\r\n scheduleBookOnline: boolean;\r\n totalResultsCount: number;\r\n searchURL: string;\r\n eventName: string;\r\n}\r\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\r\n@Component({\r\n selector: 'cs-slide-toggle',\r\n templateUrl: 'ang-slide-toggle.component.html',\r\n styleUrls: ['ang-slide-toggle.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class AngSlideToggleComponent {\r\n @Input() barCheckedBgColor;\r\n @Input() sliderCheckedColor;\r\n @Input() barUncheckedBgColor;\r\n @Input() sliderUncheckedColor;\r\n @Input() barDisabledBgColor;\r\n @Input() sliderDisabledColor;\r\n @Input() checked;\r\n @Input() disabled: boolean;\r\n @Output() contentClosed = new EventEmitter<any>();\r\n\r\n onFocusLost(event: FocusEvent | any) {\r\n this.contentClosed.emit();\r\n }\r\n\r\n switchToggle(): void{\r\n if(!this.disabled){\r\n this.checked = !this.checked;\r\n }\r\n }\r\n}\r\n","<div\r\n tabindex=\"0\"\r\n role=\"switch\"\r\n [attr.aria-label]=\"'Slider toggle'\"\r\n class=\"bar\"\r\n (keydown.enter)=\"switchToggle()\"\r\n (keydown.space)=\"switchToggle()\"\r\n (click)=\"switchToggle()\"\r\n [attr.aria-checked]=\"checked\"\r\n [attr.aria-disabled]=\"disabled\"\r\n [ngClass]=\"{ 'slider-disable': disabled }\"\r\n [ngStyle]=\"{ 'background-color': checked ? 'var(--dhcl-color-secondary)' : barUncheckedBgColor || '#727779' }\"\r\n (blur)=\"onFocusLost($event)\"\r\n>\r\n <span\r\n class=\"slider\"\r\n [ngClass]=\"{ toggle: checked, 'disabled':disabled }\"\r\n [ngStyle]=\"{ 'background-color': checked ? sliderCheckedColor || '#fff' : sliderUncheckedColor || '#fff' }\"\r\n ></span>\r\n</div>\r\n","<div class=\"dialog-container\" #filterContainer>\r\n <h3>\r\n <div\r\n tabindex=\"0\"\r\n role=\"button\"\r\n [attr.aria-label]=\"'Select ' + filterTitle + ' filter'\"\r\n class=\"filter-button\"\r\n (click)=\"showDialogClicked()\"\r\n [ngClass]=\"{ active: showDialog || showCloseIcon }\"\r\n (mouseenter)=\"emitHover(true)\"\r\n (mouseleave)=\"emitHover(false)\"\r\n (keydown.enter)=\"showDialogClicked()\"\r\n (keydown.space)=\"showDialogClicked()\"\r\n [attr.aria-expanded]=\"showDialog\"\r\n >\r\n {{ filterTitle }}\r\n <svg\r\n tabindex=\"0\"\r\n role=\"button\"\r\n [attr.aria-label]=\"'Clear selected ' + filterTitle + ' filter'\"\r\n class=\"clear-filter\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n (click)=\"clearFilterContent()\"\r\n (keydown.enter)=\"clearFilterContent()\"\r\n (keydown.space)=\"clearFilterContent()\"\r\n *ngIf=\"showCloseIcon\"\r\n [class.disabled]=\"isFilterProcessing\"\r\n >\r\n <path d=\"M1 1L15 15\" stroke=\"#0071C2\" stroke-width=\"2\" />\r\n <path d=\"M1 14.998L15 1\" stroke=\"#0071C2\" stroke-width=\"2\" />\r\n </svg>\r\n </div>\r\n </h3>\r\n <div class=\"filter-dialog\" [style.visibility]=\"showDialog ? 'visible' : 'hidden'\">\r\n <div class=\"filter-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <hr *ngIf=\"!hideDialogButtons\" class=\"filter-divider\" />\r\n <div *ngIf=\"!hideDialogButtons\" class=\"dialog-buttons\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"button\"\r\n [attr.aria-label]=\"'Clear selected ' + filterTitle + ' filter'\"\r\n class=\"clear-filter-selection\"\r\n [ngClass]=\"{ active: resetActive }\"\r\n (click)=\"clearFilterSelection()\"\r\n [attr.aria-disabled]=\"!resetActive\"\r\n >\r\n Clear\r\n </div>\r\n <div class=\"apply-button\" (click)=\"enableFiltering && filterChange()\">\r\n <button [ngClass]=\"{ 'apply-filter-selection' : true, 'inactive': !enableFiltering}\" (blur)=\"onFocusLost($event)\">Apply</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core';\r\nimport { setDialogPosition } from '../../utils/utils';\r\nimport { FilterService } from 'src/app/services/filter.service';\r\n\r\n@Component({\r\n selector: 'cs-filter-dialog',\r\n templateUrl: './filter-dialog.component.html',\r\n styleUrls: ['./filter-dialog.component.scss']\r\n})\r\nexport class FilterDialogComponent implements OnChanges, OnInit {\r\n @Input() filterTitle: string;\r\n @Input() hideDialogButtons;\r\n @Input() resetActive = false;\r\n @Input() showCloseIcon = false;\r\n @Input() enableFiltering = true;\r\n @Input() hideDialog = true;\r\n @Output() applyFilters = new EventEmitter<any>();\r\n @Output() contentReset = new EventEmitter<any>();\r\n @Output() selectionReset = new EventEmitter<any>();\r\n @Output() buttonHover = new EventEmitter<boolean>();\r\n @Output() showDialogClick = new EventEmitter<any>();\r\n showDialog = false;\r\n isFilterProcessing = false;\r\n\r\n @ViewChild('filterContainer') filterContainer: ElementRef;\r\n\r\n @HostListener('window:click', ['$event'])\r\n onClick(event: MouseEvent) {\r\n if (!this.filterContainer.nativeElement.contains(event.target)) {\r\n this.showDialog = false;\r\n }\r\n }\r\n\r\n @HostListener('window:resize', ['$event'])\r\n onResize() {\r\n setDialogPosition();\r\n }\r\n\r\n constructor(private filterService: FilterService) { }\r\n\r\n ngOnInit(): void {\r\n this.filterService.isProcessing$.subscribe(isProcessing => {\r\n this.isFilterProcessing = isProcessing;\r\n });\r\n }\r\n\r\n showDialogClicked() {\r\n this.showDialog = !this.showDialog;\r\n this.showDialogClick.emit();\r\n }\r\n\r\n clearFilterContent() { \r\n if(this.isFilterProcessing) {return;}\r\n this.filterService.setProcessingState(true);\r\n this.resetActive = false;\r\n this.contentReset.emit();\r\n this.buttonHover.emit(false);\r\n this.showDialog = !this.showDialog;\r\n setTimeout(()=> {\r\n this.filterService.setProcessingState(false);\r\n },3000);\r\n }\r\n\r\n clearFilterSelection() {\r\n this.resetActive = false;\r\n this.selectionReset.emit();\r\n }\r\n\r\n filterChange() {\r\n this.applyFilters.emit();\r\n this.showDialog = false;\r\n }\r\n\r\n emitHover(hover: boolean) {\r\n this.buttonHover.emit(hover);\r\n }\r\n\r\n onFocusLost(event: FocusEvent | any) {\r\n this.showDialog = false;\r\n }\r\n\r\n ngOnChanges(): void {\r\n this.filterService.displayDialog$.subscribe(item => {\r\n if (item === false) {\r\n this.showDialog = false;\r\n }\r\n });\r\n }\r\n}\r\n","<div class=\"dhcl-section\" tabindex=\"0\" role=\"button\" [attr.aria-expanded]=\"!isCollapsed\">\r\n <div class=\"section-header\" (click)=\"isCollapsed = !isCollapsed\">\r\n <h3 class=\"section-header-h3\">\r\n <div class=\"section-header-title\">\r\n <span>{{ title }}</span>\r\n <cs-tooltip *ngIf=\"tooltip\" [toolTipInfo]=\"tooltipInfo\" [left]=\"left\"> {{ tooltip }} </cs-tooltip>\r\n </div>\r\n </h3>\r\n <div>\r\n <svg viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" *ngIf=\"isCollapsed\">\r\n <path d=\"M8.99958 0V18\" />\r\n <path d=\"M0 9.00001H18\" />\r\n </svg>\r\n <svg viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" *ngIf=\"!isCollapsed\">\r\n <path d=\"M0 9.00001H18\" />\r\n </svg>\r\n </div>\r\n </div>\r\n <div class=\"section-content\" [hidden]=\"isCollapsed\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-accordion',\r\n templateUrl: './accordion.component.html',\r\n styleUrls: ['./accordion.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class AccordionComponent {\r\n @Input() title: string;\r\n @Input() tooltip: string;\r\n @Input() left;\r\n @Input() tooltipInfo = '';\r\n @Input() isCollapsed = true;\r\n\r\n}\r\n","<div role=\"radiogroup\" class=\"dialog-container\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"radio\"\r\n class=\"radio-button-option\"\r\n (click)=\"selectAvailability(AvailabilitySelect.Today)\"\r\n (keydown.enter)=\"selectAvailability(AvailabilitySelect.Today)\"\r\n [attr.aria-checked]=\"filtersModel.availabilitySelect === AvailabilitySelect.Today\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.availabilitySelect === AvailabilitySelect.Today\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Today \r\n <span>({{ filtersModel.todayCount }})</span>\r\n </div>\r\n <div\r\n tabindex=\"0\"\r\n role=\"radio\"\r\n class=\"radio-button-option\"\r\n (click)=\"selectAvailability(AvailabilitySelect.Next7Days)\"\r\n (keydown.enter)=\"selectAvailability(AvailabilitySelect.Next7Days)\"\r\n [attr.aria-checked]=\"filtersModel.availabilitySelect === AvailabilitySelect.Next7Days\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.availabilitySelect === AvailabilitySelect.Next7Days\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Next 7 days \r\n <span>({{ filtersModel.next7Count }})</span>\r\n </div>\r\n <div\r\n tabindex=\"0\"\r\n role=\"radio\"\r\n class=\"radio-button-option\"\r\n (click)=\"selectAvailability(AvailabilitySelect.Next14Days)\"\r\n (keydown.enter)=\"selectAvailability(AvailabilitySelect.Next14Days)\"\r\n [attr.aria-checked]=\"filtersModel.availabilitySelect === AvailabilitySelect.Next14Days\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.availabilitySelect === AvailabilitySelect.Next14Days\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Next 14 days \r\n <span>({{ filtersModel.next14Count }})</span>\r\n </div>\r\n <div\r\n tabindex=\"0\"\r\n role=\"radio\"\r\n class=\"radio-button-option\"\r\n (click)=\"selectAvailability(AvailabilitySelect.Next30Days)\"\r\n (keydown.enter)=\"selectAvailability(AvailabilitySelect.Next30Days)\"\r\n [attr.aria-checked]=\"filtersModel.availabilitySelect === AvailabilitySelect.Next30Days\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.availabilitySelect === AvailabilitySelect.Next30Days\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Next 30 days \r\n <span>({{ filtersModel.next30Count }})</span>\r\n </div>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\nimport { FiltersModel } from '../../models/filters';\r\nimport { AvailabilitySelect } from '../../models/availability-select.enum';\r\n\r\n@Component({\r\n selector: 'cs-availability-dialog',\r\n templateUrl: './availability-dialog.component.html',\r\n styleUrls: ['./availability-dialog.component.scss']\r\n})\r\nexport class AvailabilityDialogComponent {\r\n @Input() filtersModel: FiltersModel;\r\n AvailabilitySelect = AvailabilitySelect;\r\n\r\n selectAvailability(availability: AvailabilitySelect) {\r\n if (this.filtersModel.availabilitySelect === availability) {\r\n this.filtersModel.availabilitySelect = AvailabilitySelect.None;\r\n } else {\r\n this.filtersModel.availabilitySelect = availability;\r\n }\r\n }\r\n}\r\n","<div>\r\n <cs-accordion [title]=\"'Insurance'\" *ngIf=\"showInsuranceFilter\">\r\n <div class=\"toggle-two-col-list\">\r\n <div *ngFor=\"let insurance of filtersModel.availableInsurances\" class=\"toggle-col-option\" (click)=\"toggleInsurance(insurance)\">\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkInsurance(insurance)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkInsurance(insurance)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ insurance.name }} <span class=\"option-count\">({{ insurance.count }}) </span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Language'\" *ngIf=\"showLanguageFilter\">\r\n <div class=\"toggle-two-col-list\">\r\n <div *ngFor=\"let language of filtersModel.availableLanguages\" class=\"toggle-col-option\" (click)=\"toggleLanguage(language)\">\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkLanguage(language)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkLanguage(language)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ language.name }} <span class=\"option-count\">({{ language.count }}) </span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\nimport { FiltersModel, FiltersModelPartialHelper } from '../../models/filters';\r\n\r\n@Component({\r\n selector: 'cs-common-more-filters',\r\n templateUrl: './common-more-filters.component.html',\r\n styleUrls: ['./common-more-filters.component.scss']\r\n})\r\nexport class CommonMoreFiltersComponent {\r\n @Input() filtersModel: FiltersModel;\r\n\r\n @Input() showInsuranceFilter: boolean;\r\n @Input() showLanguageFilter: boolean;\r\n\r\n toggleInsurance(insurance: any) {\r\n FiltersModelPartialHelper.InsuranceToggle(insurance, this.filtersModel);\r\n }\r\n\r\n checkInsurance(insurance: any) {\r\n return this.filtersModel.selectedInsurances.map((n) => n.name).includes(insurance.name);\r\n }\r\n\r\n toggleLanguage(language: any) {\r\n FiltersModelPartialHelper.LanguageToggle(language, this.filtersModel);\r\n }\r\n\r\n checkLanguage(language: any) {\r\n return this.filtersModel.selectedLanguages.map((n) => n.name).includes(language.name);\r\n }\r\n}\r\n","<div\r\n [ngClass]=\"{ active: showModal || showCloseIcon, 'filter-button': !showSortAndFilters, showSortAndFiltersHeader: showSortAndFilters}\"\r\n role=\"button\"\r\n tabindex=\"0\"\r\n [attr.aria-expanded]=\"showModal\"\r\n>\r\n <span *ngIf=\"!showSortAndFilters\" (click)=\"filtersClicked()\">Filters</span>\r\n <svg\r\n *ngIf=\"!showSortAndFilters && showCloseIcon\"\r\n class=\"clear-filter\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n (click)=\"clearFilters($event)\"\r\n [attr.aria-hidden]=\"showCloseIcon\"\r\n [attr.aria-label]=\"'Clear all filters'\"\r\n tabindex=\"0\"\r\n >\r\n <path d=\"M1 1L15 15\" stroke-width=\"2\" />\r\n <path d=\"M1 14.998L15 1\" stroke-width=\"2\" />\r\n </svg>\r\n <div *ngIf=\"showSortAndFilters && showMobileFiltersForLeftDesign()\">\r\n <span *ngIf=\"showSortAndFilters\" [ngClass]=\"{ showSortAndFiltersHeader: showSortAndFilters}\" (click)=\"filtersClicked()\">\r\n Sort and Filters\r\n <svg width=\"15\" height=\"14\" viewBox=\"0 0 15 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M1.34158 10.2714C0.417829 10.5193 -0.143893 11.337 0.0343635 12.1719C0.182604 12.8719 0.859489 13.4228 1.6791 13.5106C2.48217 13.5943 3.2975 13.1829 3.64054 12.5173C4.88282 12.5202 6.12449 12.5202 7.36493 12.5196H13.1322C13.1996 12.5196 13.2676 12.519 13.3356 12.5121C13.5451 12.4926 13.7368 12.3934 13.8606 12.2425C13.9518 12.1288 14.0015 11.9951 14.0015 11.8592C14.0015 11.8121 13.9953 11.7645 13.9831 11.7168C13.901 11.3932 13.599 11.1918 13.1953 11.1918C10.01 11.1918 6.82404 11.1918 3.62155 11.1924C3.23624 10.4223 2.26165 10.0258 1.34158 10.2714ZM2.65063 11.8597C2.65063 12.2264 2.31127 12.5242 1.89411 12.5242C1.47634 12.5242 1.13759 12.2264 1.13759 11.8597C1.13759 11.4931 1.47634 11.1958 1.89411 11.1958C2.31127 11.1958 2.65063 11.4931 2.65063 11.8597Z\"\r\n fill=\"#0071C2\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M5.88827 5.61765C5.61934 5.79609 5.40984 6.03126 5.26528 6.31724L1.51815 6.31546L0.772029 6.31605C0.571104 6.31605 0.398357 6.37278 0.259303 6.48622C0.0179477 6.67884 -0.0622998 6.97014 0.0498016 7.24371C0.160678 7.51433 0.433887 7.68272 0.76284 7.6839H5.26711C5.60403 8.33622 6.17801 8.69074 6.92658 8.70964C7.74805 8.73151 8.36981 8.37994 8.73368 7.68154C9.68318 7.6839 10.6327 7.6839 11.5815 7.6839L12.4728 7.68449C12.7381 7.68509 13.0052 7.68568 13.2716 7.68154C13.4983 7.6774 13.7078 7.58168 13.8462 7.41861C13.9473 7.29807 14 7.1539 14 7.00559C14 6.94946 13.992 6.89274 13.9767 6.83601C13.8854 6.51045 13.5951 6.31605 13.1981 6.31605C11.7163 6.31546 10.2351 6.31487 8.72204 6.30306C8.49539 5.83273 8.04882 5.48589 7.49444 5.3494C6.93516 5.2135 6.35015 5.31159 5.88827 5.61765ZM7.75662 6.99968C7.75662 7.37843 7.41787 7.68568 7.00009 7.68568C6.58231 7.68568 6.24295 7.37843 6.24295 6.99968C6.24295 6.62035 6.58231 6.31428 7.00009 6.31428C7.41787 6.31428 7.75662 6.62035 7.75662 6.99968Z\"\r\n fill=\"#0071C2\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M12.6599 3.72904C13.5837 3.48273 14.1454 2.66966 13.9671 1.84119C13.8189 1.14501 13.142 0.597639 12.3218 0.510972C11.5194 0.426586 10.7035 0.835972 10.3605 1.49738C9.11825 1.49452 7.87663 1.49452 6.63563 1.49567H0.86858C0.8012 1.49567 0.732596 1.49567 0.664604 1.50251C0.455116 1.52189 0.263392 1.62053 0.139659 1.77049C0.0483905 1.88338 0 2.01624 0 2.15137C0 2.19812 0.00551285 2.24602 0.0171511 2.29277C0.0992312 2.61435 0.401213 2.81448 0.804876 2.81448C3.99069 2.81505 7.1765 2.81505 10.3807 2.81391C10.7648 3.57909 11.7405 3.97308 12.6599 3.72904ZM11.3503 2.1508C11.3503 1.78645 11.6897 1.49053 12.1074 1.49053C12.5252 1.49053 12.8645 1.78645 12.8645 2.1508C12.8645 2.51571 12.5252 2.81049 12.1074 2.81049C11.6897 2.81049 11.3503 2.51571 11.3503 2.1508Z\"\r\n fill=\"#0071C2\"\r\n />\r\n </svg>\r\n </span>\r\n </div>\r\n</div>\r\n<dhcl-modal\r\n [alignTop]=\"alignTop\"\r\n [show]=\"showModal\"\r\n (closeClicked)=\"showModal = !showModal\"\r\n [closeOnOverlay]=\"true\"\r\n [customClass]=\"isMobileCernerPage ? 'mobile-filters-modal cerner-mobile-filters-modal' : 'mobile-filters-modal'\"\r\n role=\"dialog\"\r\n aria-label=\"Sort and Filters\"\r\n>\r\n <div class=\"dialog-title\">\r\n <div\r\n *ngIf=\"!resizeService.isTabletViewport\"\r\n [attr.aria-disabled]=\"!isFilterSelected\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n [attr.aria-label]=\"'Clear all filters'\"\r\n class=\"clear-all-button\"\r\n [ngClass]=\"{ active: isFilterSelected }\"\r\n (click)=\"clearFilters()\"\r\n >\r\n Clear all\r\n </div>\r\n <h2 class=\"h2\" *ngIf=\"!showSortAndFilters\">Filters</h2>\r\n <h2 class=\"h2\" *ngIf=\"showSortAndFilters\">Sort and Filters</h2>\r\n </div>\r\n <div class=\"dialog\" [style.max-height.px]=\"dialogHeight\">\r\n <div *ngIf=\"showSortAndFilters\" tabindex=\"0\" role=\"dialog\" aria-label=\"Sort By\" class=\"dialog-page-content p p2\">\r\n <div class=\"sort-by-drop-down\">\r\n <div>Sort By</div>\r\n <dhcl-dropdown\r\n [placeholder]=\"'Select'\"\r\n [dropdowns]=\"sortDropdowns\"\r\n [selectedValue]=\"selectedSortBy\"\r\n (changed)=\"handleSortChange($event)\"\r\n >\r\n </dhcl-dropdown>\r\n </div>\r\n </div>\r\n <div\r\n class=\"online-scheduling\"\r\n role=\"checkbox\"\r\n [attr.aria-label]=\"'Online scheduling'\"\r\n [attr.aria-checked]=\"filtersModel.onlineSchedulingToggle\"\r\n tabindex=\"0\"\r\n *ngIf=\"showOnlineSchedulingFilter && filtersModel.onlineSchedulingProvidersCount > 0\"\r\n >\r\n <div\r\n *ngIf=\"!showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle\"\r\n >\r\n <span>{{onlineSchedulingbuttonText}} <span class=\"option-count\">({{ filtersModel.onlineSchedulingProvidersCount }})</span></span>\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!filtersModel.onlineSchedulingToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"filtersModel.onlineSchedulingToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n </div>\r\n <div\r\n *ngIf=\"showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle\"\r\n >\r\n <span>{{onlineSchedulingbuttonText}} <span class=\"option-count\">({{ filtersModel.onlineSchedulingProvidersCount }})</span></span>\r\n <cs-slide-toggle [disabled]=\"filtersModel.onlineSchedulingProvidersCount === 0\" [checked]=\"filtersModel.onlineSchedulingToggle\">\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"video-visits\"\r\n role=\"checkbox\"\r\n [attr.aria-label]=\"'Video Visits'\"\r\n [attr.aria-checked]=\"filtersModel.videoVisitsToggle\"\r\n *ngIf=\"showVideoVisitsFilter && filtersModel.videoVisitsProvidersCount > 0\"\r\n >\r\n <div\r\n *ngIf=\"!showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle\"\r\n >\r\n <span>{{videoVisitButtonText}} <span class=\"option-count\">({{ filtersModel.videoVisitsProvidersCount }})</span></span>\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!filtersModel.videoVisitsToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"filtersModel.videoVisitsToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n </div>\r\n <div\r\n *ngIf=\"showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle\"\r\n >\r\n <span>{{videoVisitButtonText}} <span class=\"option-count\">({{ filtersModel.videoVisitsProvidersCount }})</span></span>\r\n <cs-slide-toggle [disabled]=\"filtersModel.videoVisitsProvidersCount === 0\" [checked]=\"filtersModel.videoVisitsToggle\">\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"online-scheduling-all-visit\"\r\n role=\"checkbox\"\r\n [attr.aria-label]=\"'Online scheduling-all visits'\"\r\n [attr.aria-checked]=\"filtersModel.onlineSchedulingAllVisitToggle\"\r\n tabindex=\"0\"\r\n *ngIf=\"isDignityHealthDivision && showOnlineSchedulingAllVisitFilter && filtersModel.onlineSchedulingAllVisitProvidersCount > 0\"\r\n >\r\n <div\r\n *ngIf=\"!showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.onlineSchedulingAllVisitToggle = !filtersModel.onlineSchedulingAllVisitToggle\"\r\n >\r\n <span\r\n >Online scheduling-all visits <span class=\"option-count\">({{ filtersModel.onlineSchedulingAllVisitProvidersCount }})</span></span\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg\r\n class=\"unchecked\"\r\n *ngIf=\"!filtersModel.onlineSchedulingAllVisitToggle\"\r\n viewBox=\"0 0 20 20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"filtersModel.onlineSchedulingAllVisitToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n </div>\r\n <div\r\n *ngIf=\"showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.onlineSchedulingAllVisitToggle = !filtersModel.onlineSchedulingAllVisitToggle\"\r\n >\r\n <span\r\n >Online scheduling-all visits <span class=\"option-count\">({{ filtersModel.onlineSchedulingAllVisitProvidersCount }})</span></span\r\n >\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.onlineSchedulingAllVisitProvidersCount === 0\"\r\n [checked]=\"filtersModel.onlineSchedulingAllVisitToggle\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"accepting-new-patients\"\r\n role=\"checkbox\"\r\n [attr.aria-label]=\"'Accepting new patients'\"\r\n [attr.aria-checked]=\"filtersModel.newPatientsToggle\"\r\n *ngIf=\"showAcceptingNewPatientsFilter && filtersModel.newPatientsProvidersCount > 0\"\r\n >\r\n <div\r\n *ngIf=\"!showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle\"\r\n >\r\n <span>Accepting new patients <span class=\"option-count\">({{ filtersModel.newPatientsProvidersCount }})</span></span>\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!filtersModel.newPatientsToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"filtersModel.newPatientsToggle\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n </div>\r\n <div\r\n *ngIf=\"showSortAndFilters\"\r\n class=\"section-header toggle-col-option\"\r\n (click)=\"filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle\"\r\n >\r\n <span>Accepting new patients <span class=\"option-count\">({{ filtersModel.newPatientsProvidersCount }})</span></span>\r\n <cs-slide-toggle [disabled]=\"filtersModel.newPatientsProvidersCount === 0\" [checked]=\"filtersModel.newPatientsToggle\">\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"location-name\" [attr.aria-label]=\"'Location'\" *ngIf=\"filtersModel.locationName && showLocationName\">\r\n <div class=\"section-header\">\r\n <span>Location</span>\r\n <div class=\"close-icon\" (click)=\"filterLocationName()\">\r\n <svg viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M2 2 L16 16 M2 16 L16 2\" />\r\n </svg>\r\n </div>\r\n </div>\r\n <div class=\"section-content\">{{ filtersModel.locationName }}</div>\r\n </div>\r\n\r\n <cs-accordion [title]=\"'Availability'\" *ngIf=\"showAvailabilityFilter\">\r\n <div class=\"patient-availability\">\r\n <cs-availability-dialog [filtersModel]=\"filtersModel\"> </cs-availability-dialog>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Insurances accepted'\" *ngIf=\"showInsuranceAcceptedFilter\">\r\n <div class=\"toggle-two-col-list\">\r\n <div\r\n *ngFor=\"let insurance of filtersModel.availableInsurances\"\r\n class=\"toggle-col-option\"\r\n (click)=\"toggleInsurance(insurance)\"\r\n [attr.aria-expanded]=\"insurance\"\r\n tabindex=\"0\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkInsurance(insurance)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkInsurance(insurance)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ insurance.name }} <span class=\"option-count\">({{ insurance.count }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Specialty'\" *ngIf=\"showSpecialtyFilter\">\r\n <div class=\"toggle-two-col-list\">\r\n <div\r\n *ngFor=\"let specialty of filtersModel.availableSpecialties\"\r\n class=\"toggle-col-option\"\r\n (click)=\"toggleSpecialty(specialty)\"\r\n [attr.aria-expanded]=\"specialty\"\r\n tabindex=\"0\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkSpecialty(specialty)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkSpecialty(specialty)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ specialty.name }} <span class=\"option-count\">({{ specialty.count }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion\r\n *ngIf=\"showMedicalGroupFilter && medicalGroupHoverText !== '' && !multipleMedicalGroupSelection\"\r\n [title]=\"'Medical group'\"\r\n [tooltip]=\"medicalGroupHoverText\"\r\n [tooltipInfo]=\"'More information about medical group'\"\r\n >\r\n <div *ngIf=\"medicalGroupToolTip !== ''\" class=\"medical-group-filter-copy\">{{ medicalGroupToolTip }}</div>\r\n <div class=\"medical-group-filter-dropdown\">\r\n <dhcl-dropdown\r\n [placeholder]=\"'Select Medical group'\"\r\n [dropdowns]=\"filtersModel.medicalGroupList\"\r\n [selectedValue]=\"selectedMedicalGroupName\"\r\n (changed)=\"selectMedicalGroup($event)\"\r\n >\r\n </dhcl-dropdown>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion\r\n *ngIf=\"showMedicalGroupFilter && medicalGroupHoverText !== '' && multipleMedicalGroupSelection\"\r\n [title]=\"'Medical group'\"\r\n [tooltip]=\"medicalGroupHoverText\"\r\n [tooltipInfo]=\"'More information about medical group'\"\r\n >\r\n <div class=\"toggle-two-col-list\">\r\n <div *ngFor=\"let medgroupItem of filtersModel.medicalGroupList\" class=\"toggle-col-option\" (click)=\"toggleMedgroup(medgroupItem)\">\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkMedgroup(medgroupItem)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkMedgroup(medgroupItem)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ medgroupItem.label }}\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion\r\n [title]=\"'Hospital Affiliation'\"\r\n *ngIf=\"showAffiliationFilter && affiliationHoverText !== ''\"\r\n [tooltip]=\"affiliationHoverText\"\r\n >\r\n <div *ngIf=\"affiliationToolTip !== ''\" class=\"medical-group-filter-copy\">{{ affiliationToolTip }}</div>\r\n <div class=\"toggle-two-col-list\">\r\n <div *ngFor=\"let hospital of filtersModel.availableHospitals\" class=\"toggle-col-option\" (click)=\"toggleHospital(hospital)\">\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkHospital(hospital)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkHospital(hospital)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ hospital.name }} <span class=\"option-count\">({{ hospital.count }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Gender'\" *ngIf=\"showGenderFilter\">\r\n <div class=\"gender\" role=\"radiogroup\" aria-label=\"Select Gender\">\r\n <div\r\n class=\"radio-button-option\"\r\n (click)=\"selectGender('female')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'female'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'female'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Female \r\n <span>({{ filtersModel.femaleCount }})</span>\r\n </div>\r\n <div\r\n class=\"radio-button-option\"\r\n (click)=\"selectGender('male')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'male'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'male'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Male \r\n <span>({{ filtersModel.maleCount }})</span>\r\n </div>\r\n <div\r\n *ngIf=\"isVMFHMarket\"\r\n class=\"radio-button-option\"\r\n (click)=\"selectGender('non-binary')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'non-binary'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'non-binary'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Non-Binary \r\n <span>({{ filtersModel.nonbinaryCount }})</span>\r\n </div>\r\n <div\r\n *ngIf=\"isVMFHMarket\"\r\n class=\"radio-button-option\"\r\n (click)=\"selectGender('other')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'other'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'other'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Other \r\n <span>({{ filtersModel.otherCount }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-common-more-filters\r\n [filtersModel]=\"filtersModel\"\r\n [showInsuranceFilter]=\"showInsuranceFilter\"\r\n [showLanguageFilter]=\"showLanguageFilter\"\r\n ></cs-common-more-filters>\r\n\r\n <cs-accordion [title]=\"'Search radius'\" *ngIf=\"showSearchRadiusFilter && selectedLocation\">\r\n <div class=\"range-header\">Only show providers within<span class=\"range-number\">{{ displayRadius }}</span>mi of search location</div>\r\n <div class=\"range-slider-container\">\r\n <input type=\"range\" [(ngModel)]=\"filtersModel.searchRadius\" min=\"0\" max=\"100\" value=\"filtersModel.searchRadius\" step=\"20\" />\r\n <div\r\n class=\"range-slider-fill\"\r\n [ngStyle]=\"{\r\n background:\r\n 'linear-gradient(90deg, var(--dhcl-color-secondary) 0%, var(--dhcl-color-secondary) ' +\r\n filtersModel.searchRadius +\r\n '%, #e3e1dc ' +\r\n filtersModel.searchRadius +\r\n '%)'\r\n }\"\r\n ></div>\r\n <div class=\"range-indicators\">\r\n <div class=\"first\">1</div>\r\n <div class=\"middle\">\r\n <div>5</div>\r\n <div>10</div>\r\n <div>25</div>\r\n <div>50</div>\r\n </div>\r\n <div class=\"last\">100</div>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n </div>\r\n <div class=\"dialog-footer\">\r\n <div\r\n *ngIf=\"isTabletViewport\"\r\n role=\"button\"\r\n aria-label=\"Clear all filters\"\r\n [attr.aria-disabled]=\"!isFilterSelected\"\r\n class=\"clear-all-button\"\r\n [ngClass]=\"{ active: isFilterSelected }\"\r\n (click)=\"clearFilters()\"\r\n >\r\n Clear all\r\n </div>\r\n <button dhclButton (click)=\"applyFilters()\" role=\"button\" [ngClass]=\"{ mobile: !isTabletViewport }\">Apply</button>\r\n </div>\r\n</dhcl-modal>\r\n","import { Component, EventEmitter, Input, OnInit, Output, SimpleChanges, OnChanges } from '@angular/core';\r\nimport { FacetSummary, FiltersModel, FiltersModelPartialHelper, MedicalGroup } from '../../models/filters';\r\nimport { SelectedLocation } from '../../models/location';\r\nimport { SortingOption } from '../../models/configuration';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { AvailabilitySelect } from '../../models/availability-select.enum';\r\n\r\n@Component({\r\n selector: 'cs-mobile-filters',\r\n templateUrl: './mobile-filters.component.html',\r\n styleUrls: ['./mobile-filters.component.scss']\r\n})\r\nexport class MobileFiltersComponent implements OnInit, OnChanges {\r\n @Input() filtersModel: FiltersModel;\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() buttonTitle = 'Filters';\r\n @Input() moreFilters = false;\r\n\r\n @Input() defaultSearchDistanceMobile: number;\r\n @Input() defaultSearchDistanceWithMG: number;\r\n\r\n @Input() showOnlineSchedulingFilter: boolean;\r\n @Input() showVideoVisitsFilter: boolean;\r\n @Input() showAcceptingNewPatientsFilter: boolean;\r\n @Input() showAvailabilityFilter: boolean;\r\n @Input() showSpecialtyFilter: boolean;\r\n @Input() showAffiliationFilter: boolean;\r\n @Input() affiliationToolTip: string;\r\n @Input() affiliationHoverText: string;\r\n @Input() showMedicalGroupFilter: boolean;\r\n @Input() showGenderFilter: boolean;\r\n @Input() showSearchRadiusFilter: boolean;\r\n @Input() showInsuranceFilter: boolean;\r\n @Input() showLanguageFilter: boolean;\r\n @Input() alignTop: boolean;\r\n @Input() multipleMedicalGroupSelection: boolean;\r\n @Input() showInsuranceAcceptedFilter: boolean;\r\n @Input() isDignityHealthDivision: boolean;\r\n @Input() showOnlineSchedulingAllVisitFilter: boolean;\r\n\r\n @Output() filtersModelChange = new EventEmitter<FiltersModel>();\r\n showModal = false;\r\n medicalGroupToolTip: string;\r\n medicalGroupHoverText: string;\r\n AvailabilitySelect = AvailabilitySelect;\r\n showSortAndFilters: boolean;\r\n selectedSortBy: number;\r\n sortDropdowns: SortingOption[];\r\n showSortAndLeftFilterMobile: boolean;\r\n showLocationName = true;\r\n onlineSchedulingbuttonText: string;\r\n videoVisitButtonText: string;\r\n selectedMedicalGroupName = '';\r\n isVMFHMarket:boolean;\r\n isMobileCernerPage=false;\r\n\r\n get isTabletViewport() {\r\n return window.innerWidth > 419 && window.innerWidth < 1025;\r\n }\r\n\r\n get displayRadius() {\r\n return FiltersModelPartialHelper.getDistanceForSearchRadiusKey(this.filtersModel);\r\n }\r\n\r\n get showCloseIcon() {\r\n return (\r\n this.filtersModel.onlineSchedulingApplied ||\r\n this.filtersModel.videoVisitsApplied ||\r\n this.filtersModel.newPatientsApplied ||\r\n this.filtersModel.providerMedicalGroup?.length > 0 ||\r\n this.filtersModel.providerAvailability !== AvailabilitySelect.None ||\r\n (this.filtersModel.providerSpecialties && this.filtersModel.providerSpecialties.length > 0) ||\r\n (this.filtersModel.providerHospitals && this.filtersModel.providerHospitals.length > 0) ||\r\n FiltersModelPartialHelper.isDesktopFiltersSelected(\r\n this.filtersModel,\r\n this.selectedLocation,\r\n this.defaultSearchDistanceMobile,\r\n this.defaultSearchDistanceWithMG,\r\n this.showSearchRadiusFilter,\r\n this.showInsuranceFilter\r\n )\r\n );\r\n }\r\n\r\n get isFilterSelected() {\r\n return (\r\n this.filtersModel.onlineSchedulingToggle ||\r\n this.filtersModel.videoVisitsToggle ||\r\n this.filtersModel.newPatientsToggle ||\r\n this.filtersModel.availabilitySelect !== AvailabilitySelect.None ||\r\n (this.filtersModel.selectedSpecialties && this.filtersModel.selectedSpecialties.length > 0) ||\r\n (this.filtersModel.selectedHospitals && this.filtersModel.selectedHospitals.length > 0) ||\r\n this.filtersModel.selectedMedicalGroup ||\r\n FiltersModelPartialHelper.isMoreFiltersSelected(\r\n this.filtersModel,\r\n this.selectedLocation,\r\n this.defaultSearchDistanceMobile,\r\n this.defaultSearchDistanceWithMG,\r\n this.showSearchRadiusFilter,\r\n this.showInsuranceFilter,\r\n this.showMedicalGroupFilter\r\n )\r\n );\r\n }\r\n\r\n get dialogHeight() {\r\n return this.isMobileCernerPage?430:(window.innerHeight - 163);\r\n }\r\n\r\n constructor(public resizeService: ResizeService, private configService: ConfigurationService) { }\r\n\r\n ngOnInit(): void {\r\n this.medicalGroupToolTip = this.configService.getMedicalGroupFilterToolTipText();\r\n this.medicalGroupHoverText = this.configService.getMedicalGroupFilterHoverText();\r\n\r\n this.affiliationToolTip = this.configService.getHospitalAffiliationFilterToolTipText();\r\n this.affiliationHoverText = this.configService.getHospitalAffiliationFilterHoverText();\r\n\r\n this.defaultSearchDistanceMobile = this.configService.getDefaultSearchDistance();\r\n this.defaultSearchDistanceWithMG = this.configService.getDefaultSearchDistanceWhenMedGroupFilterApplied();\r\n\r\n this.showOnlineSchedulingFilter = this.configService.showOnlineSchedulingFilter();\r\n this.showVideoVisitsFilter = this.configService.showVideoVisitsFilter();\r\n this.showAcceptingNewPatientsFilter = this.configService.showAcceptingNewPatientsFilter();\r\n this.showAvailabilityFilter = this.configService.showAvailabilityFilter();\r\n this.showSpecialtyFilter = this.configService.showSpecialtyFilter();\r\n this.showAffiliationFilter = this.configService.showAffiliationFilter();\r\n this.showMedicalGroupFilter = this.configService.showMedicalGroupFilter();\r\n this.showGenderFilter = this.configService.showGenderFilter();\r\n this.showSearchRadiusFilter = this.configService.showSearchRadiusFilter();\r\n this.showSortAndFilters = this.configService.getIsFiltersLeftSidePanelRequired();\r\n this.sortDropdowns = this.configService.getSortingConfig().options;\r\n this.onlineSchedulingbuttonText = this.isDignityHealthDivision ? 'Online scheduling-new patients' : 'Online scheduling';\r\n this.videoVisitButtonText = this.isDignityHealthDivision ? 'Online scheduling-video visits' : 'Video visits';\r\n this.isVMFHMarket = this.configService.getMarketCodes().includes('vmfh');\r\n this.isMobileCernerPage=this.configService.getCernerPage();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes.filtersModel.currentValue.sortBy) {\r\n this.configService.getSortingConfig().options.forEach(option => {\r\n if (option.queryParam === this.filtersModel.sortBy) {\r\n this.selectedSortBy = option.value;\r\n }\r\n });\r\n }\r\n }\r\n\r\n applyFilters() {\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle;\r\n this.filtersModel.videoVisitsApplied = this.filtersModel.videoVisitsToggle;\r\n this.filtersModel.onlineSchedulingAllVisitApplied = this.filtersModel.onlineSchedulingAllVisitToggle;\r\n this.filtersModel.newPatientsApplied = this.filtersModel.newPatientsToggle;\r\n this.filtersModel.providerAvailability = this.filtersModel.availabilitySelect;\r\n this.filtersModel.providerSpecialties = [...this.filtersModel.selectedSpecialties];\r\n this.filtersModel.providerHospitals = [...this.filtersModel.selectedHospitals];\r\n this.filtersModel.providerMedicalGroup = this.filtersModel.selectedMedicalGroup;\r\n this.filtersModel.providerGender = this.filtersModel.genderSelect;\r\n this.filtersModel.providerInsurances = [...this.filtersModel.selectedInsurances];\r\n this.filtersModel.providerLanguages = [...this.filtersModel.selectedLanguages];\r\n\r\n if (this.filtersModel.providerMedicalGroup.length > 0) {\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius = \r\n this.filtersModel.searchRadius ?? FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistanceWithMG);\r\n } else {\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius =\r\n this.filtersModel.searchRadius ?? FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistanceMobile);\r\n }\r\n\r\n this.showModal = false;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n clearFilters(event: any = null) {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n this.selectedMedicalGroupName = 'Select Medical group';\r\n this.filterLocationName();\r\n if (event) {\r\n event.stopPropagation();\r\n\r\n this.filtersModel.onlineSchedulingToggle = false;\r\n this.filtersModel.videoVisitsToggle = false;\r\n this.filtersModel.onlineSchedulingAllVisitToggle = false;\r\n this.filtersModel.newPatientsToggle = false;\r\n this.filtersModel.availabilitySelect = AvailabilitySelect.None;\r\n this.filtersModel.selectedSpecialties = [];\r\n this.filtersModel.selectedHospitals = [];\r\n this.filtersModel.selectedMedicalGroup = [];\r\n FiltersModelPartialHelper.toClearFilters(this.filtersModel, true, this.defaultSearchDistanceMobile, true);\r\n\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle;\r\n this.filtersModel.videoVisitsApplied = this.filtersModel.videoVisitsToggle;\r\n this.filtersModel.onlineSchedulingAllVisitApplied = this.filtersModel.onlineSchedulingAllVisitToggle;\r\n this.filtersModel.newPatientsApplied = this.filtersModel.newPatientsToggle;\r\n this.filtersModel.providerAvailability = this.filtersModel.availabilitySelect;\r\n this.filtersModel.providerSpecialties = [...this.filtersModel.selectedSpecialties];\r\n this.filtersModel.providerHospitals = [...this.filtersModel.providerHospitals];\r\n this.filtersModel.providerMedicalGroup = this.filtersModel.selectedMedicalGroup;\r\n if (this.filtersModel.providerMedicalGroup.length == 0) {\r\n this.filtersModel.medicalGroupTitle = 'Medical group';\r\n if (sessionStorage.getItem('selectedMedicalGroup') || sessionStorage.getItem('medGroupQueryParam')) {\r\n sessionStorage.setItem('selectedMedicalGroup', 'null');\r\n sessionStorage.setItem('medGroupQueryParam', 'null');\r\n }\r\n }\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n } else {\r\n this.filtersModel.onlineSchedulingToggle = false;\r\n this.filtersModel.videoVisitsToggle = false;\r\n this.filtersModel.onlineSchedulingAllVisitToggle = false;\r\n this.filtersModel.newPatientsToggle = false;\r\n this.filtersModel.availabilitySelect = AvailabilitySelect.None;\r\n this.filtersModel.selectedSpecialties = [];\r\n this.filtersModel.selectedHospitals = [];\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n this.filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistanceMobile);\r\n FiltersModelPartialHelper.toClearFilters(this.filtersModel, false, this.defaultSearchDistanceMobile, true);\r\n }\r\n }\r\n\r\n toggleSpecialty(specialty: any) {\r\n FiltersModelPartialHelper.SpecialityToggle(specialty, this.filtersModel);\r\n }\r\n\r\n toggleMedgroup(medgroup: any) {\r\n FiltersModelPartialHelper.MedgroupToggle(medgroup, this.filtersModel);\r\n }\r\n\r\n checkSpecialty(specialty: any): boolean {\r\n return this.filtersModel?.selectedSpecialties?.map((n) => n.name?.toLowerCase()).includes(specialty?.name.toLowerCase()) ?? false;\r\n }\r\n\r\n checkMedgroup(medgroup: any): boolean {\r\n return this.filtersModel?.selectedMedicalGroup?.map((n) => n.name?.toLowerCase()).includes(medgroup?.label.toLowerCase()) ?? false;\r\n }\r\n\r\n toggleHospital(hospital: any) {\r\n FiltersModelPartialHelper.HospitalToggle(hospital, this.filtersModel);\r\n }\r\n\r\n checkHospital(hospital: any): boolean {\r\n return this.filtersModel?.selectedHospitals?.map((n) => n.name?.toLowerCase()).includes(hospital?.name.toLowerCase()) ?? false;\r\n }\r\n\r\n toggleInsurance(insurance: any) {\r\n FiltersModelPartialHelper.InsuranceToggle(insurance, this.filtersModel);\r\n }\r\n \r\n checkInsurance(insurance: any): boolean {\r\n return this.filtersModel?.selectedInsurances?.map((n) => n.name?.toLowerCase()).includes(insurance.name?.toLowerCase()) ?? false;\r\n }\r\n\r\n selectGender(gender: string) {\r\n FiltersModelPartialHelper.genderSelect(this.filtersModel, gender);\r\n }\r\n\r\n filtersClicked() {\r\n this.showModal = true;\r\n\r\n if (this.filtersModel) {\r\n this.filtersModel.selectedHospitals = [...this.filtersModel.selectedHospitals];\r\n this.filtersModel.selectedSpecialties = [...this.filtersModel.selectedSpecialties];\r\n this.filtersModel.selectedInsurances = [...this.filtersModel.selectedInsurances];\r\n this.filtersModel.selectedLanguages = [...this.filtersModel.selectedLanguages];\r\n }\r\n }\r\n \r\n selectMedicalGroup(medGroup)\r\n {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n const tempGroup: MedicalGroup = medGroup as unknown as MedicalGroup;\r\n const selectedMedgroup: FacetSummary = {\r\n name: tempGroup.label,\r\n count: 0,\r\n selected: true\r\n };\r\n this.filtersModel.selectedMedicalGroup.push(selectedMedgroup);\r\n this.selectedMedicalGroupName = selectedMedgroup.name;\r\n }\r\n\r\n handleSortChange(event: SortingOption): void {\r\n this.selectedSortBy = event.value;\r\n this.filtersModel.sortByNumber = this.selectedSortBy;\r\n this.filtersModel.sortBy = event.queryParam;\r\n }\r\n\r\n showMobileFiltersForLeftDesign(): boolean {\r\n return (!this.resizeService.isDesktopViewport); \r\n }\r\n\r\n filterLocationName(): void {\r\n this.showLocationName = false;\r\n this.filtersModel.locationName = '';\r\n }\r\n}\r\n","<div class=\"desktop-filter-buttons\" #filtersContainer>\r\n <div class=\"dignity-fiters\" *ngIf=\"isDesktopViewport && isDignityHealthDivision\">\r\n <div class=\"dignity-filter-buttons\">\r\n <div class=\"dignity-filter-btn-aln\">\r\n <div class=\"dignity-fitler-display\">\r\n <div class=\"dignity-filter-txt\">Filters</div>\r\n <div class=\"dignity-filter-bar\"></div>\r\n </div>\r\n <div class=\"dignity-filter-main\">\r\n <div class=\"dignity-filter-btn-first-rw\">\r\n <cs-filter-dialog\r\n class=\"filter-container filter-btn-dh\"\r\n *ngIf=\"showOnlineSchedulingFilter\"\r\n [resetActive]=\"filtersModel.onlineSchedulingToggle\"\r\n [filterTitle]=\"'Online scheduling-new patients'\"\r\n [showCloseIcon]=\"filtersModel.onlineSchedulingApplied\"\r\n [enableFiltering]=\"filtersModel.onlineSchedulingProvidersCount > 0 && !filtersModel.onlineSchedulingApplied\"\r\n [hideDialogButtons]=\"true\"\r\n (contentReset)=\"filterOnlineScheduling(false)\"\r\n (selectionReset)=\"filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle\"\r\n [attr.aria-valuetext]=\"'Online scheduling toggle ' + filtersModel.onlineSchedulingApplied\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [checked]=\"filtersModel.onlineSchedulingToggle\"\r\n [disabled]=\"filtersModel.onlineSchedulingProvidersCount === 0\"\r\n (keydown.enter)=\"filtersModel.onlineSchedulingProvidersCount > 0 && filterOnlineScheduling(filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle)\"\r\n (keydown.space)=\"filtersModel.onlineSchedulingProvidersCount > 0 && filterOnlineScheduling(filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle)\"\r\n (click)=\"filtersModel.onlineSchedulingProvidersCount > 0 && filterOnlineScheduling(filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessage(' offer online scheduling for new patients', filtersModel.onlineSchedulingProvidersCount > 0)}}\r\n <span *ngIf=\"filtersModel.onlineSchedulingProvidersCount > 0\">({{ filtersModel.onlineSchedulingProvidersCount }})</span>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <cs-filter-dialog\r\n class=\"filter-container filter-btn-dh\"\r\n *ngIf=\"showVideoVisitsFilter\"\r\n [resetActive]=\"filtersModel.videoVisitsToggle\"\r\n [showCloseIcon]=\"filtersModel.videoVisitsApplied\"\r\n [filterTitle]=\"'Online scheduling-video visits'\"\r\n [enableFiltering]=\"filtersModel.videoVisitsProvidersCount > 0 && !filtersModel.videoVisitsApplied\"\r\n [hideDialogButtons]=\"true\"\r\n (selectionReset)=\"filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle\"\r\n (contentReset)=\"filterVideoVisits(false)\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [checked]=\"filtersModel.videoVisitsToggle\"\r\n [disabled]=\"filtersModel.videoVisitsProvidersCount === 0\"\r\n (keydown.enter)=\"filtersModel.videoVisitsProvidersCount > 0 && filterVideoVisits(filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle)\"\r\n (keydown.space)=\"filtersModel.videoVisitsProvidersCount > 0 && filterVideoVisits(filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle)\"\r\n (click)=\"filtersModel.videoVisitsProvidersCount > 0 && filterVideoVisits(filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessage(' offer online scheduling for video visits', filtersModel.videoVisitsProvidersCount > 0 ||\r\n ((!filtersModel.searchDone) && LastVideoVisitsProvidersCount > 0))}}\r\n <span *ngIf=\"filtersModel.videoVisitsProvidersCount > 0\">({{ filtersModel.videoVisitsProvidersCount }})</span>\r\n <span *ngIf=\"filtersModel.videoVisitsProvidersCount==0 && (!filtersModel.searchDone) && LastVideoVisitsProvidersCount > 0\"\r\n >({{ LastVideoVisitsProvidersCount }})</span\r\n >\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <cs-filter-dialog\r\n class=\"filter-container filter-btn-dh\"\r\n *ngIf=\"showOnlineSchedulingAllVisitFilter\"\r\n [enableFiltering]=\"filtersModel.onlineSchedulingAllVisitProvidersCount > 0 && !filtersModel.onlineSchedulingAllVisitApplied\"\r\n [filterTitle]=\"'Online scheduling-all visits'\"\r\n [resetActive]=\"filtersModel.onlineSchedulingAllVisitToggle\"\r\n [showCloseIcon]=\"filtersModel.onlineSchedulingAllVisitApplied\"\r\n [hideDialogButtons]=\"true\"\r\n (selectionReset)=\"filtersModel.onlineSchedulingAllVisitToggle = !filtersModel.onlineSchedulingAllVisitToggle\"\r\n (contentReset)=\"filterOnlineSchedulingAllVisit(false)\"\r\n [attr.aria-valuetext]=\"'Online scheduling all visit toggle ' + filtersModel.onlineSchedulingAllVisitApplied\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [checked]=\"filtersModel.onlineSchedulingAllVisitToggle\"\r\n [disabled]=\"filtersModel.onlineSchedulingAllVisitProvidersCount === 0\"\r\n (keydown.enter)=\"filtersModel.onlineSchedulingAllVisitProvidersCount > 0 && filterOnlineSchedulingAllVisit(filtersModel.onlineSchedulingAllVisitToggle = !filtersModel.onlineSchedulingAllVisitToggle)\"\r\n (keydown.space)=\"filtersModel.onlineSchedulingAllVisitProvidersCount > 0 && filterOnlineSchedulingAllVisit(filtersModel.onlineSchedulingAllVisitToggle = !filtersModel.onlineSchedulingAllVisitToggle)\"\r\n (click)=\"filtersModel.onlineSchedulingAllVisitProvidersCount > 0 && filterOnlineSchedulingAllVisit(filtersModel.onlineSchedulingAllVisitToggle = !filtersModel.onlineSchedulingAllVisitToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessageOnlineSchedulingAllVisit(' offer online scheduling',\r\n filtersModel.onlineSchedulingAllVisitProvidersCount > 0)}}\r\n <span *ngIf=\"filtersModel.onlineSchedulingAllVisitProvidersCount > 0\"\r\n >({{ filtersModel.onlineSchedulingAllVisitProvidersCount }})</span\r\n >\r\n </div>\r\n </cs-filter-dialog>\r\n <cs-filter-dialog\r\n class=\"filter-container filter-btn-dh\"\r\n *ngIf=\"showAcceptingNewPatientsFilter\"\r\n [filterTitle]=\"'Accepting new patients'\"\r\n [resetActive]=\"filtersModel.newPatientsToggle\"\r\n [showCloseIcon]=\"filtersModel.newPatientsApplied\"\r\n [hideDialogButtons]=\"true\"\r\n [enableFiltering]=\"filtersModel.newPatientsProvidersCount > 0 && (filtersModel.newPatientsApplied || filtersModel.newPatientsToggle)\"\r\n (selectionReset)=\"filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle\"\r\n (contentReset)=\"filterNewPatients(false)\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.newPatientsProvidersCount === 0\"\r\n [checked]=\"filtersModel.newPatientsToggle\"\r\n (keydown.enter)=\"filtersModel.newPatientsProvidersCount > 0 && filterNewPatients(filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle)\"\r\n (keydown.space)=\"filtersModel.newPatientsProvidersCount > 0 && filterNewPatients(filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle)\"\r\n (click)=\"filtersModel.newPatientsProvidersCount > 0 && filterNewPatients(filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessage(' accept new patients', filtersModel.newPatientsProvidersCount > 0)}}\r\n </div>\r\n </cs-filter-dialog>\r\n <cs-filter-dialog\r\n [filterTitle]=\"filtersModel.insuranceFilterText\"\r\n [resetActive]=\"filtersModel.selectedInsurances.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerInsurances.length > 0\"\r\n (selectionReset)=\"insuranceReset()\"\r\n (contentReset)=\"filterInsurances(false)\"\r\n (applyFilters)=\"filterInsurances(true)\"\r\n class=\"filter-container filter-btn-dh\"\r\n (showDialogClick)=\"initializeInsurancesDialog()\"\r\n *ngIf=\"showInsuranceAcceptedFilter\"\r\n >\r\n <div class=\"dialog-page-content specialty-list\" role=\"dialog\" aria-label=\"List of Specialities\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"checkbox\"\r\n [attr.aria-checked]=\"checkInsurance(insurance) === true\"\r\n *ngFor=\"let insurance of filtersModel.availableInsurances\"\r\n class=\"toggle-col-option\"\r\n (keydown.enter)=\"toggleInsurance(insurance)\"\r\n (click)=\"toggleInsurance(insurance)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkInsurance(insurance)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkInsurance(insurance)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ insurance.name }} <span class=\"option-count\">({{ insurance.count }}) </span>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"dignity-filter-btn-second-rw\">\r\n <div class=\"dignity-filter-buttons-title\">\r\n <cs-filter-dialog\r\n [filterTitle]=\"filtersModel.specialtyFilterText\"\r\n [resetActive]=\"filtersModel.selectedSpecialties.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerSpecialties.length > 0\"\r\n (selectionReset)=\"specialtyReset()\"\r\n (contentReset)=\"filterSpecialties(false)\"\r\n (applyFilters)=\"filterSpecialties(true)\"\r\n class=\"filter-container filter-btn-dh\"\r\n (showDialogClick)=\"initializeSpecialtyDialog()\"\r\n *ngIf=\"showSpecialtyFilter\"\r\n >\r\n <div class=\"dialog-page-content specialty-list\" role=\"dialog\" aria-label=\"List of Specialities\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"checkbox\"\r\n [attr.aria-checked]=\"checkSpecialty(specialty) === true\"\r\n *ngFor=\"let specialty of filtersModel.availableSpecialties\"\r\n class=\"toggle-col-option\"\r\n (keydown.enter)=\"toggleSpecialty(specialty)\"\r\n (click)=\"toggleSpecialty(specialty)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkSpecialty(specialty)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkSpecialty(specialty)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ specialty.name }} <span class=\"option-count\">({{ specialty.count }})</span>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n </div>\r\n <div class=\"dignity-more-filters\">\r\n <div class=\"dignity-more-filters-content\">\r\n <div class=\"filter-container filter-btn-dh more-filters\" *ngIf=\"showMoreFilters && useLegacyAPI\">\r\n <div class=\"dignity-more-filters-txt\" (click)=\"moreFiltersClicked()\" [ngClass]=\"{ active: showModal || showCloseIcon}\">\r\n More filters <span *ngIf=\"moreFilterCount > 0\">{{moreFilterText}}</span>\r\n </div>\r\n <dhcl-modal\r\n [alignTop]=\"alignTop\"\r\n [show]=\"showModal\"\r\n (closeClicked)=\"showModal = !showModal\"\r\n [closeOnOverlay]=\"true\"\r\n [customClass]=\"'desktop-filters-modal'\"\r\n >\r\n <div class=\"dialog-title\">\r\n <h3>More filters</h3>\r\n </div>\r\n <div class=\"dialog\">\r\n <cs-accordion [title]=\"'Gender'\" *ngIf=\"showGenderFilter\">\r\n <div class=\"gender\">\r\n <div class=\"radio-button-option\" (click)=\"selectGender('female')\">\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\"\r\n />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'female'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Female \r\n <span>({{ filtersModel.femaleCount }})</span>\r\n </div>\r\n <div class=\"radio-button-option\" (click)=\"selectGender('male')\">\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\"\r\n />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'male'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Male \r\n <span>({{ filtersModel.maleCount }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n <cs-common-more-filters [filtersModel]=\"filtersModel\" [showLanguageFilter]=\"showLanguageFilter\"></cs-common-more-filters>\r\n <cs-accordion\r\n [title]=\"'Medical group'\"\r\n *ngIf=\"showMedicalGroupFilter && !multipleMedicalGroupSelection\"\r\n (applyFilters)=\"filterMedicalGroup(true)\"\r\n >\r\n <div tabindex=\"0\" role=\"dialog\" aria-label=\"List of Medical groups\" class=\"dialog-page-content p p2\">\r\n <dhcl-dropdown\r\n [placeholder]=\"selectedMedicalGroupName??'Select Medical group'\"\r\n [dropdowns]=\"filtersModel.medicalGroupList\"\r\n [selectedValue]=\"selectedMedicalGroupName\"\r\n (changed)=\"selectMedGroup($event)\"\r\n >\r\n </dhcl-dropdown>\r\n </div>\r\n </cs-accordion>\r\n <cs-accordion [title]=\"'Search radius'\" *ngIf=\"showSearchRadiusFilter && selectedLocation\">\r\n <div class=\"range-header\">\r\n Only show providers within\r\n <div class=\"range-number\">{{ displayRadius }}</div>\r\n mi of search location\r\n </div>\r\n <div class=\"range-slider-container\">\r\n <input\r\n type=\"range\"\r\n [(ngModel)]=\"filtersModel.searchRadius\"\r\n min=\"0\"\r\n max=\"100\"\r\n value=\"filtersModel.searchRadius\"\r\n step=\"20\"\r\n />\r\n <div\r\n class=\"range-slider-fill\"\r\n [ngStyle]=\"{\r\n background:\r\n 'linear-gradient(90deg, var(--dhcl-color-secondary) 0%, var(--dhcl-color-secondary) ' +\r\n filtersModel.searchRadius +\r\n '%, #e3e1dc ' +\r\n filtersModel.searchRadius +\r\n '%)'\r\n }\"\r\n ></div>\r\n <div class=\"range-indicators\">\r\n <div class=\"first\">1</div>\r\n <div class=\"middle\">\r\n <div>5</div>\r\n <div>10</div>\r\n <div>25</div>\r\n <div>50</div>\r\n </div>\r\n <div class=\"last\">100</div>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n </div>\r\n <div class=\"dialog-footer\">\r\n <div\r\n class=\"clear-all-button\"\r\n [attr.aria-disabled]=\"!isFilterSelected\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n aria-label=\"Clear all\"\r\n [ngClass]=\"{ active: isFilterSelected }\"\r\n (click)=\"clearFilters()\"\r\n >\r\n Clear all\r\n </div>\r\n <button dhclButton (click)=\"applyFilters()\">Apply</button>\r\n </div>\r\n </dhcl-modal>\r\n </div>\r\n <div *ngIf=\"moreFilterCount > 0\">\r\n <svg\r\n tabindex=\"0\"\r\n viewBox=\"0 0 16 16\"\r\n (click)=\"clearFilters($event)\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style=\"height: 15px; padding-left: 10px; cursor: pointer\"\r\n >\r\n <path d=\"M1 1L15 15\" stroke=\"#0071C2\" stroke-width=\"2\" />\r\n <path d=\"M1 14.998L15 1\" stroke=\"#0071C2\" stroke-width=\"2\" />\r\n </svg>\r\n </div>\r\n </div>\r\n <div class=\"dignity-filter-bar\"></div>\r\n <div class=\"dignity-filter-buttons-title\">\r\n <div *ngIf=\"isDesktopFilterSelected\" class=\"filter-container filter-btn-dh\">\r\n <div\r\n class=\"clear-all-btn dignity-clear-all-btn\"\r\n [attr.aria-disabled]=\"!isAnyFilterSelected\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n aria-label=\"Clear all filters\"\r\n [ngClass]=\"{ active: isAnyFilterSelected }\"\r\n (keydown.enter)=\"clearDesktopFilters()\"\r\n (click)=\"clearDesktopFilters()\"\r\n >\r\n Clear all filters\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"desktop-filter-buttons\" #filtersContainer>\r\n <cs-mobile-filters\r\n *ngIf=\"!isDesktopViewport && showMobileFilters\"\r\n [filtersModel]=\"filtersModel\"\r\n [medicalGroupToolTip]=\"medicalGroupToolTip\"\r\n [medicalGroupHoverText]=\"medicalGroupHoverText\"\r\n [affiliationToolTip]=\"affiliationToolTip\"\r\n [affiliationHoverText]=\"affiliationHoverText\"\r\n [defaultSearchDistanceMobile]=\"defaultSearchDistance\"\r\n [defaultSearchDistanceWithMG]=\"defaultSearchDistanceWithMedGroup\"\r\n [showOnlineSchedulingFilter]=\"showOnlineSchedulingFilter\"\r\n [showVideoVisitsFilter]=\"showVideoVisitsFilter\"\r\n [showAcceptingNewPatientsFilter]=\"showAcceptingNewPatientsFilter\"\r\n [showAvailabilityFilter]=\"showAvailabilityFilter\"\r\n [showSpecialtyFilter]=\"showSpecialtyFilter\"\r\n [showMedicalGroupFilter]=\"showMedicalGroupFilter\"\r\n [showAffiliationFilter]=\"showAffiliationFilter\"\r\n [showGenderFilter]=\"showGenderFilter\"\r\n [showInsuranceFilter]=\"showInsuranceFilter\"\r\n [showLanguageFilter]=\"showLanguageFilter\"\r\n [selectedLocation]=\"selectedLocation\"\r\n [alignTop]=\"alignTop\"\r\n [showInsuranceAcceptedFilter]=\"showInsuranceAcceptedFilter\"\r\n [showOnlineSchedulingAllVisitFilter]=\"showOnlineSchedulingAllVisitFilter\"\r\n [isDignityHealthDivision]=\"isDignityHealthDivision\"\r\n [multipleMedicalGroupSelection]=\"multipleMedicalGroupSelection\"\r\n (filtersModelChange)=\"handleFilterChange($event)\"\r\n ></cs-mobile-filters>\r\n <div *ngIf=\"isDesktopViewport && !isDignityHealthDivision\">\r\n <cs-filter-dialog\r\n class=\"filter-container\"\r\n *ngIf=\"showOnlineSchedulingFilter\"\r\n [filterTitle]=\"'Online scheduling'\"\r\n [resetActive]=\"filtersModel.onlineSchedulingToggle\"\r\n [showCloseIcon]=\"filtersModel.onlineSchedulingApplied\"\r\n [enableFiltering]=\"filtersModel.onlineSchedulingProvidersCount > 0 && !filtersModel.onlineSchedulingApplied\"\r\n [hideDialogButtons]=\"true\"\r\n (selectionReset)=\"filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle\"\r\n (contentReset)=\"filterOnlineScheduling(false)\"\r\n [attr.aria-valuetext]=\"'Online scheduling toggle ' + filtersModel.onlineSchedulingApplied\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.onlineSchedulingProvidersCount === 0\"\r\n [checked]=\"filtersModel.onlineSchedulingToggle\"\r\n (keydown.enter)=\"filtersModel.onlineSchedulingProvidersCount > 0 && filterOnlineScheduling(filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle)\"\r\n (keydown.space)=\"filtersModel.onlineSchedulingProvidersCount > 0 && filterOnlineScheduling(filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle)\"\r\n (click)=\"filtersModel.onlineSchedulingProvidersCount > 0 && filterOnlineScheduling(filtersModel.onlineSchedulingToggle = !filtersModel.onlineSchedulingToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessage(' offer online scheduling', filtersModel.onlineSchedulingProvidersCount > 0)}}\r\n <span *ngIf=\"filtersModel.onlineSchedulingProvidersCount > 0\">({{ filtersModel.onlineSchedulingProvidersCount }})</span>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <cs-filter-dialog\r\n class=\"filter-container\"\r\n *ngIf=\"showVideoVisitsFilter\"\r\n [filterTitle]=\"'Video visits'\"\r\n [resetActive]=\"filtersModel.videoVisitsToggle\"\r\n [showCloseIcon]=\"filtersModel.videoVisitsApplied\"\r\n [enableFiltering]=\"filtersModel.videoVisitsProvidersCount > 0 && !filtersModel.videoVisitsApplied\"\r\n [hideDialogButtons]=\"true\"\r\n (selectionReset)=\"filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle\"\r\n (contentReset)=\"filterVideoVisits(false)\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.videoVisitsProvidersCount === 0\"\r\n [checked]=\"filtersModel.videoVisitsToggle\"\r\n (keydown.enter)=\"filtersModel.videoVisitsProvidersCount > 0 && filterVideoVisits(filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle)\"\r\n (keydown.space)=\"filtersModel.videoVisitsProvidersCount > 0 && filterVideoVisits(filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle)\"\r\n (click)=\"filtersModel.videoVisitsProvidersCount > 0 && filterVideoVisits(filtersModel.videoVisitsToggle = !filtersModel.videoVisitsToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessage(' offer video visits', filtersModel.videoVisitsProvidersCount > 0 || ((!filtersModel.searchDone) &&\r\n LastVideoVisitsProvidersCount > 0))}}\r\n <span *ngIf=\"filtersModel.videoVisitsProvidersCount > 0\">({{ filtersModel.videoVisitsProvidersCount }})</span>\r\n <span *ngIf=\"filtersModel.videoVisitsProvidersCount==0 && (!filtersModel.searchDone) && LastVideoVisitsProvidersCount > 0\"\r\n >({{ LastVideoVisitsProvidersCount }})</span\r\n >\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <cs-filter-dialog\r\n class=\"filter-container\"\r\n *ngIf=\"showAcceptingNewPatientsFilter\"\r\n [filterTitle]=\"'Accepting new patients'\"\r\n [resetActive]=\"filtersModel.newPatientsToggle\"\r\n [showCloseIcon]=\"filtersModel.newPatientsApplied\"\r\n [hideDialogButtons]=\"true\"\r\n [enableFiltering]=\"filtersModel.newPatientsProvidersCount > 0 && (filtersModel.newPatientsApplied || filtersModel.newPatientsToggle)\"\r\n (selectionReset)=\"filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle\"\r\n (contentReset)=\"filterNewPatients(false)\"\r\n >\r\n <div class=\"slider-toggle-padding\">\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.newPatientsProvidersCount === 0\"\r\n [checked]=\"filtersModel.newPatientsToggle\"\r\n (keydown.enter)=\"filtersModel.newPatientsProvidersCount > 0 && filterNewPatients(filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle)\"\r\n (keydown.space)=\"filtersModel.newPatientsProvidersCount > 0 && filterNewPatients(filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle)\"\r\n (click)=\"filtersModel.newPatientsProvidersCount > 0 && filterNewPatients(filtersModel.newPatientsToggle = !filtersModel.newPatientsToggle)\"\r\n (contentClosed)=\"closeFilterDialog()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n <div class=\"dialog-page-content p p2\">\r\n {{ this.applyFilterMessage(' accept new patients', filtersModel.newPatientsProvidersCount > 0)}}\r\n <span *ngIf=\"filtersModel.newPatientsProvidersCount > 0\">({{ filtersModel.newPatientsProvidersCount }})</span>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <cs-filter-dialog\r\n class=\"filter-container\"\r\n *ngIf=\"showAvailabilityFilter\"\r\n [filterTitle]=\"filtersModel.availabilityTitle\"\r\n [resetActive]=\"filtersModel.availabilitySelect !== AvailabilitySelect.None\"\r\n [showCloseIcon]=\"filtersModel.providerAvailability !== AvailabilitySelect.None\"\r\n (selectionReset)=\"filtersModel.availabilitySelect = AvailabilitySelect.None\"\r\n (contentReset)=\"filterAvailability(false)\"\r\n (applyFilters)=\"filterAvailability(true)\"\r\n >\r\n <div class=\"dialog-page-content availability-list\" tabindex=\"0\" role=\"dialog\" aria-label=\"Availability List\">\r\n <cs-availability-dialog [filtersModel]=\"filtersModel\"> </cs-availability-dialog>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <cs-filter-dialog\r\n [filterTitle]=\"filtersModel.specialtyFilterText\"\r\n [resetActive]=\"filtersModel.selectedSpecialties.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerSpecialties.length > 0\"\r\n (selectionReset)=\"specialtyReset()\"\r\n (contentReset)=\"filterSpecialties(false)\"\r\n (applyFilters)=\"filterSpecialties(true)\"\r\n class=\"filter-container\"\r\n (showDialogClick)=\"initializeSpecialtyDialog()\"\r\n *ngIf=\"showSpecialtyFilter\"\r\n >\r\n <div class=\"dialog-page-content specialty-list\" role=\"dialog\" aria-label=\"List of Specialities\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"checkbox\"\r\n [attr.aria-checked]=\"checkSpecialty(specialty) === true\"\r\n *ngFor=\"let specialty of filtersModel.availableSpecialties\"\r\n class=\"toggle-col-option\"\r\n (keydown.enter)=\"toggleSpecialty(specialty)\"\r\n (click)=\"toggleSpecialty(specialty)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkSpecialty(specialty)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkSpecialty(specialty)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ specialty.name }} <span class=\"option-count\">({{ specialty.count }})</span>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <div class=\"filter-container\" *ngIf=\"showMedicalGroupFilter && !multipleMedicalGroupSelection\">\r\n <cs-filter-dialog\r\n [filterTitle]=\"filtersModel.medicalGroupTitle\"\r\n [resetActive]=\"filtersModel.selectedMedicalGroup && filtersModel.selectedMedicalGroup.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerMedicalGroup && filtersModel.providerMedicalGroup.length > 0\"\r\n (selectionReset)=\"clearMedGroupFilters();\"\r\n (contentReset)=\"filterMedicalGroup(false)\"\r\n (applyFilters)=\"filterMedicalGroup(true)\"\r\n (buttonHover)=\"isHoveringOnMedGroup = $event\"\r\n >\r\n <div tabindex=\"0\" role=\"dialog\" aria-label=\"List of Medical groups\" class=\"dialog-page-content p p2\">\r\n <div *ngIf=\"medicalGroupToolTip !== ''\">{{ medicalGroupToolTip }}</div>\r\n <dhcl-dropdown\r\n [placeholder]=\"selectedMedicalGroupName??'Select Medical group'\"\r\n [dropdowns]=\"filtersModel.medicalGroupList\"\r\n [selectedValue]=\"selectedMedicalGroupName\"\r\n (changed)=\"selectMedGroup($event)\"\r\n >\r\n </dhcl-dropdown>\r\n </div>\r\n </cs-filter-dialog>\r\n <span class=\"medical-group-filter-tooltip\" *ngIf=\"isHoveringOnMedGroup && medicalGroupHoverText !== ''\">\r\n <p class=\"p p2\">{{ medicalGroupHoverText }}</p>\r\n </span>\r\n </div>\r\n\r\n <cs-filter-dialog\r\n [filterTitle]=\"filtersModel.medicalGroupTitle\"\r\n [resetActive]=\"filtersModel.selectedMedicalGroup && filtersModel.selectedMedicalGroup.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerMedicalGroup && filtersModel.providerMedicalGroup.length > 0\"\r\n (selectionReset)=\"clearMedGroupFilters()\"\r\n (contentReset)=\"filterMedicalGroups(false)\"\r\n (applyFilters)=\"filterMedicalGroups(true)\"\r\n class=\"filter-container\"\r\n (showDialogClick)=\"initializeMedicalGroupsDialog()\"\r\n *ngIf=\"showMedicalGroupFilter && multipleMedicalGroupSelection\"\r\n >\r\n <div class=\"dialog-page-content specialty-list\" role=\"dialog\" aria-label=\"List of Medical groups\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"checkbox\"\r\n [attr.aria-checked]=\"checkMedgroup(medgroupItem) === true\"\r\n *ngFor=\"let medgroupItem of filtersModel.medicalGroupList\"\r\n class=\"toggle-col-option\"\r\n (click)=\"toggleMedgroup(medgroupItem)\"\r\n (keydown.enter)=\"toggleMedgroup(medgroupItem)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkMedgroup(medgroupItem)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkMedgroup(medgroupItem)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ medgroupItem.label }}\r\n </div>\r\n </div>\r\n <span class=\"medical-group-filter-tooltip\" *ngIf=\"isHoveringOnMedGroup && medicalGroupHoverText !== ''\">\r\n <p class=\"p p2\">{{ medicalGroupHoverText }}</p>\r\n </span>\r\n </cs-filter-dialog>\r\n\r\n <div class=\"filter-container\" *ngIf=\"showAffiliationFilter\">\r\n <cs-filter-dialog\r\n [filterTitle]=\"filtersModel.hospitalFilterText\"\r\n [resetActive]=\"filtersModel.selectedHospitals.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerHospitals.length > 0\"\r\n (selectionReset)=\"filtersModel.selectedHospitals = []\"\r\n (contentReset)=\"filterHospitals(false)\"\r\n (applyFilters)=\"filterHospitals(true)\"\r\n (showDialogClick)=\"initializeAffiliationsDialog()\"\r\n (buttonHover)=\"isHoveringOnAffiliation = $event\"\r\n >\r\n <div class=\"dialog-page-content p p2 hospital-list\" tabindex=\"0\" role=\"dialog\" aria-label=\"List of Hospitals\">\r\n <div class=\"hospital-tooltip\" *ngIf=\"affiliationToolTip !== ''\">{{ affiliationToolTip }}</div>\r\n <div\r\n tabindex=\"0\"\r\n role=\"menuitemcheckbox\"\r\n *ngFor=\"let hospital of filtersModel.availableHospitals\"\r\n class=\"toggle-col-option\"\r\n (click)=\"toggleHospital(hospital)\"\r\n (keydown.enter)=\"toggleHospital(hospital)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg\r\n role=\"checkbox\"\r\n tabindex=\"0\"\r\n class=\"unchecked\"\r\n *ngIf=\"!checkHospital(hospital)\"\r\n viewBox=\"0 0 20 20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-checked=\"false\"\r\n >\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg\r\n role=\"checkbox\"\r\n tabindex=\"0\"\r\n class=\"checked\"\r\n *ngIf=\"checkHospital(hospital)\"\r\n viewBox=\"0 0 20 20\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-checked=\"true\"\r\n >\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ hospital.name }} <span class=\"option-count\">({{ hospital.count }})</span>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n <span class=\"medical-group-filter-tooltip\" *ngIf=\"isHoveringOnAffiliation && affiliationHoverText !== ''\">\r\n <p class=\"p p2\">{{ affiliationHoverText }}</p>\r\n </span>\r\n </div>\r\n\r\n <cs-filter-dialog\r\n class=\"filter-container\"\r\n *ngIf=\"showGenderFilter && !useLegacyAPI\"\r\n [filterTitle]=\"'Gender'\"\r\n [resetActive]=\"filtersModel.genderSelect !== ''\"\r\n [showCloseIcon]=\"filtersModel.providerGender !== ''\"\r\n (selectionReset)=\"filtersModel.genderSelect =''\"\r\n (contentReset)=\"filterGender(false)\"\r\n (applyFilters)=\"filterGender(true)\"\r\n >\r\n <div class=\"dialog-page-content availability-list\" role=\"dialog\" aria-label=\"Select Gender\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"radio\"\r\n class=\"radio-button-option\"\r\n (keydown.enter)=\"selectGender('female')\"\r\n (click)=\"selectGender('female')\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'female'\"\r\n aria-label=\"Female\"\r\n >\r\n <svg role=\"radio\" viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'female'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Female \r\n <span>({{ filtersModel.femaleCount }})</span>\r\n </div>\r\n <div\r\n tabindex=\"0\"\r\n role=\"radio\"\r\n class=\"radio-button-option\"\r\n (keydown.enter)=\"selectGender('male')\"\r\n (click)=\"selectGender('male')\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'male'\"\r\n aria-label=\"Male\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'male'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Male \r\n <span>({{ filtersModel.maleCount }})</span>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <div class=\"filter-container\" *ngIf=\"selectedLocation\">\r\n <cs-filter-dialog\r\n *ngIf=\"showSearchRadiusFilter && !useLegacyAPI\"\r\n [filterTitle]=\"'Search Radius'\"\r\n [resetActive]=\"filtersModel.searchRadius !== FiltersModelPartialHelperLocal.getRadiusKeyForDistance(this.defaultSearchDistance)\"\r\n [showCloseIcon]=\"filtersModel.providerSearchRadius !== FiltersModelPartialHelperLocal.getRadiusKeyForDistance(defaultSearchDistance)\"\r\n (selectionReset)=\"filtersModel.searchRadius =FiltersModelPartialHelperLocal.getRadiusKeyForDistance(defaultSearchDistance)\"\r\n (contentReset)=\"filterSearchRadius(false)\"\r\n (applyFilters)=\"filterSearchRadius(true)\"\r\n >\r\n <div class=\"range-header\">\r\n Only show providers within\r\n <div class=\"range-number\">{{ displayRadius }}</div>\r\n mi of search location\r\n </div>\r\n <div class=\"range-slider-container\">\r\n <input type=\"range\" [(ngModel)]=\"filtersModel.searchRadius\" min=\"0\" max=\"100\" value=\"filtersModel.searchRadius\" step=\"20\" />\r\n <div\r\n class=\"range-slider-fill\"\r\n [ngStyle]=\"{\r\n background:\r\n 'linear-gradient(90deg, var(--dhcl-color-secondary) 0%, var(--dhcl-color-secondary) ' +\r\n filtersModel.searchRadius +\r\n '%, #e3e1dc ' +\r\n filtersModel.searchRadius +\r\n '%)'\r\n }\"\r\n ></div>\r\n <div class=\"range-indicators\">\r\n <div class=\"first\">1</div>\r\n <div class=\"middle\">\r\n <div>5</div>\r\n <div>10</div>\r\n <div>25</div>\r\n <div>50</div>\r\n </div>\r\n <div class=\"last\">100</div>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n </div>\r\n\r\n <cs-filter-dialog\r\n [filterTitle]=\"'Languages'\"\r\n [resetActive]=\"filtersModel.selectedLanguages.length > 0 && filtersModel.availableLanguages.length > 0\"\r\n [showCloseIcon]=\"filtersModel.providerLanguages.length > 0\"\r\n (selectionReset)=\"filtersModel.selectedLanguages = []\"\r\n (contentReset)=\"filterLanguages(false)\"\r\n (applyFilters)=\"filterLanguages(true)\"\r\n class=\"filter-container\"\r\n (showDialogClick)=\"initializeLanguageDialog()\"\r\n *ngIf=\"showLanguageFilter && !useLegacyAPI\"\r\n >\r\n <div class=\"dialog-page-content specialty-list\" role=\"dialog\" aria-label=\"List of Available Languages\">\r\n <div\r\n tabindex=\"0\"\r\n role=\"checkbox\"\r\n [attr.aria-checked]=\"checkLanguage(language) === true\"\r\n *ngFor=\"let language of filtersModel.availableLanguages\"\r\n class=\"toggle-col-option\"\r\n (click)=\"toggleLanguage(language)\"\r\n (keydown.enter)=\"toggleLanguage(language)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!checkLanguage(language)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"checkLanguage(language)\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ language.name }} <span class=\"option-count\">({{ language.count }})</span>\r\n </div>\r\n </div>\r\n </cs-filter-dialog>\r\n\r\n <div class=\"filter-container more-filters\" *ngIf=\"showMoreFilters && useLegacyAPI\">\r\n <div class=\"filter-button\" (click)=\"moreFiltersClicked()\" [ngClass]=\"{ active: showModal || showCloseIcon}\">\r\n More\r\n <svg\r\n class=\"clear-filter\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n (click)=\"clearFilters($event)\"\r\n *ngIf=\"showCloseIcon\"\r\n >\r\n <path d=\"M1 1L15 15\" stroke=\"#0071C2\" stroke-width=\"2\" />\r\n <path d=\"M1 14.998L15 1\" stroke=\"#0071C2\" stroke-width=\"2\" />\r\n </svg>\r\n </div>\r\n <dhcl-modal\r\n [alignTop]=\"alignTop\"\r\n [show]=\"showModal\"\r\n (closeClicked)=\"showModal = !showModal\"\r\n [closeOnOverlay]=\"true\"\r\n [customClass]=\"'desktop-filters-modal'\"\r\n >\r\n <div class=\"dialog-title\">\r\n <h3>More filters</h3>\r\n </div>\r\n <div class=\"dialog\">\r\n <cs-accordion [title]=\"'Gender'\" *ngIf=\"showGenderFilter\">\r\n <div class=\"gender\">\r\n <div class=\"radio-button-option\" (click)=\"selectGender('female')\">\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\"\r\n />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'female'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Female \r\n <span>({{ filtersModel.femaleCount }})</span>\r\n </div>\r\n <div class=\"radio-button-option\" (click)=\"selectGender('male')\">\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\"\r\n />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'male'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Male \r\n <span>({{ filtersModel.maleCount }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-common-more-filters\r\n [filtersModel]=\"filtersModel\"\r\n [showInsuranceFilter]=\"showInsuranceFilter\"\r\n [showLanguageFilter]=\"showLanguageFilter\"\r\n ></cs-common-more-filters>\r\n\r\n <cs-accordion [title]=\"'Search radius'\" *ngIf=\"showSearchRadiusFilter && selectedLocation\">\r\n <div class=\"range-header\">\r\n Only show providers within\r\n <div class=\"range-number\">{{ displayRadius }}</div>\r\n mi of search location\r\n </div>\r\n <div class=\"range-slider-container\">\r\n <input type=\"range\" [(ngModel)]=\"filtersModel.searchRadius\" min=\"0\" max=\"100\" value=\"filtersModel.searchRadius\" step=\"20\" />\r\n <div\r\n class=\"range-slider-fill\"\r\n [ngStyle]=\"{\r\n background:\r\n 'linear-gradient(90deg, var(--dhcl-color-secondary) 0%, var(--dhcl-color-secondary) ' +\r\n filtersModel.searchRadius +\r\n '%, #e3e1dc ' +\r\n filtersModel.searchRadius +\r\n '%)'\r\n }\"\r\n ></div>\r\n <div class=\"range-indicators\">\r\n <div class=\"first\">1</div>\r\n <div class=\"middle\">\r\n <div>5</div>\r\n <div>10</div>\r\n <div>25</div>\r\n <div>50</div>\r\n </div>\r\n <div class=\"last\">100</div>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n </div>\r\n <div class=\"dialog-footer\">\r\n <div\r\n class=\"clear-all-button\"\r\n [attr.aria-disabled]=\"!isSelected\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n aria-label=\"Clear all\"\r\n [ngClass]=\"{ active: isSelected }\"\r\n (click)=\"clearFilters()\"\r\n >\r\n Clear all\r\n </div>\r\n <button dhclButton (click)=\"applyFilters()\">Apply</button>\r\n </div>\r\n </dhcl-modal>\r\n </div>\r\n <div *ngIf=\"isDesktopFilterSelected\" class=\"filter-container\">\r\n <div\r\n class=\"clear-all-btn\"\r\n [attr.aria-disabled]=\"!isAnyFilterSelected\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n aria-label=\"Clear all filters\"\r\n [ngClass]=\"{ active: isAnyFilterSelected }\"\r\n (keydown.enter)=\"clearDesktopFilters()\"\r\n (click)=\"clearDesktopFilters()\"\r\n >\r\n Clear all filters\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, AfterViewInit } from '@angular/core';\r\nimport { FacetSummary, FiltersModel, FiltersModelPartialHelper, MedicalGroup } from '../../models/filters';\r\nimport { AvailabilitySelect } from '../../models/availability-select.enum';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { SelectedLocation } from '../../models/location';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { FilterService } from 'src/app/services/filter.service';\r\nimport { clearAllSessionVariables } from 'src/app/utils/utils';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'cs-filters',\r\n templateUrl: './filters.component.html',\r\n styleUrls: ['./filters.component.scss']\r\n})\r\nexport class FiltersComponent implements OnInit, OnChanges, AfterViewInit {\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() filtersModel: FiltersModel;\r\n\r\n @Input() medicalGroupToolTip: string;\r\n @Input() medicalGroupHoverText: string;\r\n @Input() affiliationToolTip: string;\r\n @Input() affiliationHoverText: string;\r\n @Input() defaultSearchDistance: number;\r\n @Input() defaultSearchDistanceWithMedGroup: number;\r\n\r\n @Input() showOnlineSchedulingFilter: boolean;\r\n @Input() showOnlineSchedulingAllVisitFilter: boolean;\r\n\r\n @Input() showVideoVisitsFilter: boolean;\r\n @Input() showAcceptingNewPatientsFilter: boolean;\r\n @Input() showAvailabilityFilter: boolean;\r\n @Input() showSpecialtyFilter: boolean;\r\n @Input() showMedicalGroupFilter: boolean;\r\n @Input() showAffiliationFilter: boolean;\r\n\r\n @Input() showGenderFilter: boolean;\r\n @Input() showInsuranceFilter: boolean;\r\n @Input() showLanguageFilter: boolean;\r\n @Input() showSearchRadiusFilter: boolean;\r\n\r\n @Input() embedSource: string;\r\n @Input() multipleMedicalGroupSelection: boolean;\r\n @Input() showInsuranceAcceptedFilter: boolean;\r\n @Input() isDignityHealthDivision: boolean;\r\n\r\n @Output() filtersModelChange = new EventEmitter<FiltersModel>();\r\n @Output() medicalGroupChange = new EventEmitter<FiltersModel>();\r\n selectedMedicalGroupName = '';\r\n @Output() addMedicalGroupItems = new EventEmitter<FiltersModel>();\r\n isHoveringOnMedGroup = false;\r\n isHoveringOnAffiliation = false;\r\n showModal = false;\r\n FiltersModelPartialHelperLocal = FiltersModelPartialHelper;\r\n closeOnOverlay = true;\r\n\r\n AvailabilitySelect = AvailabilitySelect;\r\n\r\n LastVideoVisitsProvidersCount = 0;\r\n isDesktopFilterSelected = false;\r\n useLegacyAPI = false;\r\n moreFilterText: string;\r\n moreFilterCount: number;\r\n\r\n get isDesktopViewport() {\r\n return this.resizeService.isDesktopViewport;\r\n }\r\n\r\n get displayRadius() {\r\n return FiltersModelPartialHelper.getDistanceForSearchRadiusKey(this.filtersModel);\r\n }\r\n\r\n get showCloseIcon() {\r\n return FiltersModelPartialHelper.isDesktopFiltersSelected(\r\n this.filtersModel,\r\n this.selectedLocation,\r\n this.defaultSearchDistance,\r\n this.defaultSearchDistanceWithMedGroup,\r\n this.showSearchRadiusFilter,\r\n this.showInsuranceFilter\r\n );\r\n }\r\n\r\n get isFilterSelected() {\r\n return FiltersModelPartialHelper.isMoreFiltersSelected(\r\n this.filtersModel,\r\n this.selectedLocation,\r\n this.defaultSearchDistance,\r\n this.defaultSearchDistanceWithMedGroup,\r\n this.showSearchRadiusFilter,\r\n this.showInsuranceFilter,\r\n this.showMedicalGroupFilter\r\n );\r\n }\r\n\r\n get isSelected(){\r\n return FiltersModelPartialHelper.isMoreFilters(\r\n this.filtersModel,\r\n this.selectedLocation,\r\n this.defaultSearchDistance,\r\n this.showSearchRadiusFilter,\r\n this.showInsuranceFilter\r\n );\r\n }\r\n\r\n get isAnyFilterSelected() {\r\n return (\r\n (this.filtersModel.onlineSchedulingApplied) ||\r\n (this.filtersModel.videoVisitsApplied) ||\r\n (this.filtersModel.newPatientsApplied || this.filtersModel.newPatientsToggle) ||\r\n (this.filtersModel.medicalGroupTitle !== 'Medical group') ||\r\n (this.filtersModel.specialtyFilterText !== 'Specialty') ||\r\n (this.filtersModel.genderSelect !== '') ||\r\n (this.filtersModel.searchRadius !== FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistance)) ||\r\n (this.filtersModel.selectedLanguages && this.filtersModel.selectedLanguages.length > 0) ||\r\n (this.filtersModel.selectedInsurances && this.filtersModel.selectedInsurances.length > 0 && this.showInsuranceFilter) ||\r\n (this.filtersModel.hospitalFilterText !== 'Hospital Affiliation') ||\r\n (this.filtersModel.availabilitySelect !== AvailabilitySelect.None) ||\r\n (this.filtersModel.insuranceFilterText !== 'Insurances accepted') ||\r\n (this.filtersModel.onlineSchedulingAllVisitApplied)\r\n );\r\n }\r\n\r\n get showMoreFilters() {\r\n return this.showGenderFilter || this.showInsuranceFilter || this.showLanguageFilter || this.showSearchRadiusFilter || this.showMedicalGroupFilter;\r\n }\r\n get showMobileFilters() {\r\n return (\r\n this.showOnlineSchedulingFilter ||\r\n this.showVideoVisitsFilter ||\r\n this.showAcceptingNewPatientsFilter ||\r\n this.showAvailabilityFilter ||\r\n this.showSpecialtyFilter ||\r\n this.showAffiliationFilter ||\r\n this.showMedicalGroupFilter ||\r\n this.showGenderFilter ||\r\n this.showInsuranceFilter ||\r\n this.showLanguageFilter ||\r\n this.showSearchRadiusFilter ||\r\n this.showOnlineSchedulingAllVisitFilter\r\n );\r\n }\r\n\r\n get alignTop() {\r\n return this.embedSource != null && (this.embedSource === 'cerner' || this.embedSource === 'mychart') ? true : false;\r\n }\r\n\r\n constructor(private resizeService: ResizeService, private configurationService: ConfigurationService\r\n , private filterService: FilterService, private route: ActivatedRoute) {\r\n this.useLegacyAPI = this.configurationService.useLegacyAPI();\r\n }\r\n\r\n ngOnInit(): void {\r\n if (this.filtersModel) {\r\n this.filtersModel.medicalGroupList = FiltersModelPartialHelper.getMedGroups(this.configurationService.getMedGroupCodes());\r\n\r\n if (this.filtersModel.selectedMedicalGroup == null) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n } else {\r\n this.selectedMedicalGroupName = this.getSelectedMedgroup();\r\n }\r\n }\r\n this.getMoreFiltersCount();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.isDesktopFilterSelected =\r\n ((this.filtersModel.onlineSchedulingProvidersCount > 0 && !this.filtersModel.onlineSchedulingApplied) ||\r\n (this.filtersModel.videoVisitsProvidersCount > 0 && !this.filtersModel.videoVisitsApplied) ||\r\n (this.filtersModel.newPatientsProvidersCount > 0 && (this.filtersModel.newPatientsApplied || this.filtersModel.newPatientsToggle)) ||\r\n (this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) ||\r\n (this.filtersModel.providerSpecialties && this.filtersModel.providerSpecialties.length > 0) ||\r\n (this.filtersModel.genderSelect) ||\r\n (this.filtersModel.searchRadius !== this.defaultSearchDistance) ||\r\n (this.filtersModel.providerLanguages.length > 0) ||\r\n (this.filtersModel.onlineSchedulingAllVisitProvidersCount > 0 && !this.filtersModel.onlineSchedulingAllVisitApplied)\r\n ) ? true : false;\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes.filtersModel.currentValue.searchDone) {\r\n this.LastVideoVisitsProvidersCount = 0;\r\n }\r\n this.getMoreFiltersCount();\r\n }\r\n\r\n applyFilterMessage(filterMessage: string, canFilter: boolean): string {\r\n if (this.isDignityHealthDivision) {\r\n return canFilter ? `Only show providers who ${filterMessage}` : `This search contains no providers ${filterMessage}`;\r\n }\r\n else {\r\n return canFilter ? `Only show providers that ${filterMessage}` : `This search contains no providers that ${filterMessage}`;\r\n }\r\n\r\n\r\n }\r\n\r\n applyFilterMessageOnlineSchedulingAllVisit(filterMessage: string, canFilter: boolean): string {\r\n\r\n return canFilter ? `Show all providers who ${filterMessage}` : `This search contains no providers ${filterMessage}`;\r\n }\r\n\r\n filterOnlineScheduling(filteringActive: boolean): void {\r\n if (filteringActive) {\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle;\r\n } else {\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle = false;\r\n }\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterOnlineSchedulingAllVisit(filteringActive: boolean): void {\r\n if (filteringActive) {\r\n this.filtersModel.onlineSchedulingAllVisitApplied = this.filtersModel.onlineSchedulingAllVisitToggle;\r\n } else {\r\n this.filtersModel.onlineSchedulingAllVisitApplied = this.filtersModel.onlineSchedulingAllVisitToggle = false;\r\n }\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterVideoVisits(filteringActive: boolean) {\r\n this.LastVideoVisitsProvidersCount = this.filtersModel.videoVisitsProvidersCount;\r\n this.filtersModel.videoVisitsApplied = filteringActive\r\n ? this.filtersModel.videoVisitsToggle : false;\r\n if (!filteringActive) {\r\n this.filtersModel.videoVisitsToggle = false;\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterNewPatients(filteringActive: boolean) {\r\n this.filtersModel.newPatientsApplied = filteringActive\r\n ? this.filtersModel.newPatientsToggle : false;\r\n if (!filteringActive) {\r\n this.filtersModel.newPatientsToggle = false;\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterAvailability(filteringActive: boolean) {\r\n if (filteringActive) {\r\n this.filtersModel.providerAvailability = this.filtersModel.availabilitySelect;\r\n this.filtersModel.availabilityTitle = this.filtersModel.providerAvailability;\r\n\r\n if (this.filtersModel.availabilityTitle === '') {\r\n this.filtersModel.availabilityTitle = 'Availability';\r\n }\r\n } else {\r\n this.filtersModel.providerAvailability = AvailabilitySelect.None;\r\n this.filtersModel.availabilitySelect = AvailabilitySelect.None;\r\n this.filtersModel.availabilityTitle = 'Availability';\r\n }\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterSpecialties(filteringActive: boolean) {\r\n if (!filteringActive) {\r\n this.filtersModel.selectedSpecialties = [];\r\n this.filtersModel.providerSpecialties = [];\r\n this.filtersModel.specialtyFilterText = 'Specialty';\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpecialityText);\r\n } else {\r\n if (this.filtersModel.selectedSpecialties.length > 0) {\r\n this.filtersModel.providerSpecialties = [...this.filtersModel.selectedSpecialties];\r\n\r\n this.filtersModel.specialtyFilterText =\r\n this.filtersModel.providerSpecialties.length > 1\r\n ? `${this.filtersModel.providerSpecialties.length} specialties`\r\n : this.filtersModel.providerSpecialties[0].name;\r\n } else {\r\n this.filtersModel.selectedSpecialties = [];\r\n this.filtersModel.providerSpecialties = [];\r\n this.filtersModel.specialtyFilterText = 'Specialty';\r\n }\r\n }\r\n if (this.filtersModel?.selectedSpecialties?.length === 1) {\r\n if (\r\n window.sessionStorage.getItem('singleSpecialty')?.toLowerCase() !== this.filtersModel?.selectedSpecialties?.[0].name.toLowerCase()\r\n )\r\n {this.filtersModelChange.emit(this.filtersModel);}\r\n } else {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n filterMedicalGroups(filteringActive: boolean) {\r\n if (!filteringActive) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n this.filtersModel.medicalGroupTitle = 'Medical group';\r\n window.sessionStorage.removeItem('singleMedGroup');\r\n this.medicalGroupChange.emit(this.filtersModel);\r\n } else {\r\n if (this.filtersModel.selectedMedicalGroup.length > 0) {\r\n this.filterService.handleManualProviderRoleSelectionProcess(this.filtersModel);\r\n this.filtersModel.providerMedicalGroup = [...this.filtersModel.selectedMedicalGroup];\r\n\r\n this.filtersModel.medicalGroupTitle =\r\n this.filtersModel.providerMedicalGroup.length === 1\r\n ? this.filtersModel.providerMedicalGroup[0].name\r\n : `${this.filtersModel.providerMedicalGroup.length} Medical groups`;\r\n } else {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n this.filtersModel.medicalGroupTitle = 'Medical group';\r\n }\r\n this.medicalGroupChange.emit(this.filtersModel);\r\n }\r\n }\r\n clearMedGroupFilters() {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.selectedMedicalGroupName = null;\r\n this.filtersModel.medicalGroupList = [];\r\n this.filtersModel.medicalGroupTitle = 'Medical group';\r\n this.addMedicalGroupItems.emit(this.filtersModel);\r\n }\r\n\r\n filterLanguages(filteringActive: boolean) {\r\n if (!filteringActive) {\r\n this.filtersModel.selectedLanguages = [];\r\n this.filtersModel.providerLanguages = [];\r\n } else {\r\n this.filtersModel.selectedLanguages = [...this.filtersModel.selectedLanguages];\r\n this.filtersModel.providerLanguages = [...this.filtersModel.selectedLanguages];\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterInsurances(filteringActive: boolean) {\r\n if (!filteringActive) {\r\n this.filtersModel.selectedInsurances = [];\r\n this.filtersModel.providerInsurances = [];\r\n this.filtersModel.insuranceFilterText = 'Insurances accepted';\r\n window.sessionStorage.removeItem('singleInsurances');\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleInsurancesText);\r\n } else {\r\n if (this.filtersModel.selectedInsurances.length > 0) {\r\n this.filtersModel.providerInsurances = [...this.filtersModel.selectedInsurances];\r\n\r\n this.filtersModel.insuranceFilterText =\r\n this.filtersModel.providerInsurances.length > 1\r\n ? `${this.filtersModel.providerInsurances.length} Insurances accepted`\r\n : this.filtersModel.providerInsurances[0].name;\r\n } else {\r\n this.filtersModel.selectedInsurances = [];\r\n this.filtersModel.providerInsurances = [];\r\n this.filtersModel.insuranceFilterText = 'Insurances accepted';\r\n }\r\n }\r\n if (this.filtersModel?.selectedInsurances?.length === 1) {\r\n if (\r\n window.sessionStorage.getItem('singleInsurances')?.toLowerCase() !== this.filtersModel?.selectedInsurances?.[0].name.toLowerCase()\r\n )\r\n {this.filtersModelChange.emit(this.filtersModel);}\r\n } else {\r\n window.sessionStorage.removeItem('singleInsurances');\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n filterHospitals(filteringActive: boolean) {\r\n if (!filteringActive) {\r\n this.filtersModel.selectedHospitals = [];\r\n this.filtersModel.providerHospitals = [];\r\n this.filtersModel.hospitalFilterText = 'Hospital Affiliation';\r\n } else {\r\n if (this.filtersModel.selectedHospitals.length > 0) {\r\n this.filtersModel.providerHospitals = [...this.filtersModel.selectedHospitals];\r\n\r\n this.filtersModel.hospitalFilterText =\r\n this.filtersModel.providerHospitals.length > 1\r\n ? `${this.filtersModel.providerHospitals.length} hospital affiliations`\r\n : this.filtersModel.providerHospitals[0].name;\r\n } else {\r\n this.filtersModel.selectedHospitals = [];\r\n this.filtersModel.providerHospitals = [];\r\n this.filtersModel.hospitalFilterText = 'Hospital Affiliation';\r\n }\r\n }\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n toggleSpecialty(specialty: any) {\r\n FiltersModelPartialHelper.SpecialityToggle(specialty, this.filtersModel);\r\n }\r\n\r\n toggleMedgroup(medgroup: any) {\r\n FiltersModelPartialHelper.MedgroupToggle(medgroup, this.filtersModel);\r\n }\r\n\r\n checkSpecialty(specialty: FacetSummary): boolean {\r\n return this.filtersModel?.selectedSpecialties?.map((n) => n.name?.toLowerCase()).includes(specialty.name?.toLowerCase()) ?? false;\r\n }\r\n\r\n checkMedgroup(medgroup: any): boolean {\r\n return this.filtersModel?.selectedMedicalGroup?.map((n) => n.name?.toLowerCase()).includes(medgroup.label?.toLowerCase()) ?? false;\r\n }\r\n\r\n selectMedGroup(medGroup: any) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n const tempGroup: MedicalGroup = medGroup as unknown as MedicalGroup;\r\n const selectedMedgroup: FacetSummary = {\r\n name: tempGroup.label,\r\n count: 0,\r\n selected: true\r\n };\r\n this.filtersModel.selectedMedicalGroup.push(selectedMedgroup);\r\n this.selectedMedicalGroupName = selectedMedgroup.name;\r\n }\r\n\r\n toggleHospital(hospital: any) {\r\n FiltersModelPartialHelper.HospitalToggle(hospital, this.filtersModel);\r\n }\r\n\r\n checkHospital(hospital: FacetSummary): boolean {\r\n return this.filtersModel?.selectedHospitals?.map((n) => n.name?.toLowerCase()).includes(hospital.name?.toLowerCase()) ?? false;\r\n }\r\n\r\n isArray(value: any): boolean {\r\n return (!!value) && (value.constructor === Array);\r\n }\r\n\r\n getSelectedMedgroup(): string {\r\n let selectedGroupName = '';\r\n if (!this.isArray(this.filtersModel.selectedMedicalGroup)) {\r\n selectedGroupName = this.filtersModel.selectedMedicalGroup ? (this.filtersModel.selectedMedicalGroup as unknown as MedicalGroup).label : null;\r\n } else {\r\n selectedGroupName = this.filtersModel.selectedMedicalGroup.length > 0 ? this.filtersModel.selectedMedicalGroup[0].name : null;\r\n }\r\n return selectedGroupName;\r\n }\r\n\r\n filterMedicalGroup(filteringActive: boolean) {\r\n if (filteringActive && this.filtersModel.selectedMedicalGroup) {\r\n if (!this.isArray(this.filtersModel.selectedMedicalGroup)) {\r\n const medGroups: FacetSummary[] = [];\r\n const tempGroup: MedicalGroup = this.filtersModel.selectedMedicalGroup as unknown as MedicalGroup;\r\n const selectedMedgroup: FacetSummary = {\r\n name: tempGroup.label,\r\n count: 0,\r\n selected: true\r\n };\r\n medGroups.push(selectedMedgroup);\r\n this.filtersModel.selectedMedicalGroup = medGroups;\r\n }\r\n\r\n if (this.filtersModel.selectedMedicalGroup.length === 0) {\r\n this.filtersModel.providerMedicalGroup = [];\r\n this.filtersModel.medicalGroupTitle = 'Medical group';\r\n } else {\r\n this.filtersModel.providerMedicalGroup = this.filtersModel.selectedMedicalGroup;\r\n this.selectedMedicalGroupName = this.getSelectedMedgroup();\r\n }\r\n\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(\r\n this.defaultSearchDistanceWithMedGroup\r\n );\r\n this.medicalGroupChange.emit(this.filtersModel);\r\n } else {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n this.selectedMedicalGroupName = null;\r\n if (\r\n this.filtersModel.providerSearchRadius === FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistanceWithMedGroup)\r\n ) {\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(\r\n this.defaultSearchDistance\r\n );\r\n }\r\n this.filtersModel.medicalGroupTitle = 'Medical group';\r\n this.addMedicalGroupItems.emit(this.filtersModel);\r\n this.medicalGroupChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n selectGender(gender: string) {\r\n FiltersModelPartialHelper.genderSelect(this.filtersModel, gender);\r\n }\r\n\r\n filterGender(filteringActive: boolean) {\r\n if (filteringActive) {\r\n this.filtersModel.providerGender = this.filtersModel.genderSelect;\r\n } else {\r\n this.filtersModel.providerGender = '';\r\n this.filtersModel.genderSelect = '';\r\n }\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterSearchRadius(filteringActive: boolean) {\r\n if (filteringActive) {\r\n this.filtersModel.providerSearchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(this.filtersModel.searchRadius);\r\n } else {\r\n\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistance);\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n applyFilters() {\r\n if (this.isDignityHealthDivision) {\r\n this.moreFilterCount = this.filtersModel.selectedMedicalGroup.length > 0 ? 1 : 0;\r\n this.moreFilterCount += this.filtersModel.selectedLanguages.length > 0 ? 1 : 0;\r\n this.moreFilterCount += this.filtersModel.genderSelect.length > 0 ? 1 : 0;\r\n if(this.filtersModel.searchRadius !==FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistance)){\r\n this.moreFilterCount++;\r\n }\r\n this.moreFilterText = this.moreFilterCount != 0 ? '(' + this.moreFilterCount.toString() + ' selected)' : '';\r\n }\r\n this.filtersModel.providerGender = this.filtersModel.genderSelect;\r\n this.filtersModel.providerInsurances = [...this.filtersModel.selectedInsurances];\r\n this.filtersModel.providerLanguages = [...this.filtersModel.selectedLanguages];\r\n this.filtersModel.providerMedicalGroup = [...this.filtersModel.selectedMedicalGroup];\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius;\r\n\r\n this.showModal = false;\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n clearFilters(event: any = null) {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n if(this.isDignityHealthDivision){\r\n this.selectedMedicalGroupName = 'Select Medical group';\r\n }\r\n if (event) {\r\n event.stopPropagation();\r\n this.moreFilterCount = 0;\r\n sessionStorage.removeItem('moreFilters');\r\n sessionStorage.removeItem('moreFiltersCount');\r\n FiltersModelPartialHelper.toClearFilters(this.filtersModel, true, this.defaultSearchDistance, false, this.isDignityHealthDivision);\r\n\r\n this.filtersModelChange.emit(this.filtersModel);\r\n } else {\r\n FiltersModelPartialHelper.toClearFilters(this.filtersModel, false, this.defaultSearchDistance, false, this.isDignityHealthDivision);\r\n\r\n this.filtersModel.searchRadius = this.filtersModel.selectedMedicalGroup.length > 0\r\n ? FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistanceWithMedGroup)\r\n : FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistance);\r\n }\r\n }\r\n\r\n handleFilterChange(event: any) {\r\n this.filtersModel = event;\r\n if (this.filtersModel.selectedMedicalGroup\r\n !== JSON.parse(sessionStorage.getItem('SelectedMedGroupFiltersModel'))) {\r\n\r\n sessionStorage.setItem('SelectedMedGroupFiltersModel', JSON.stringify(this.filtersModel.selectedMedicalGroup));\r\n this.filterService.handleManualProviderRoleSelectionProcess(this.filtersModel);\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n moreFiltersClicked() {\r\n this.showModal = true;\r\n\r\n if (this.filtersModel) {\r\n this.filtersModel.selectedInsurances = [...this.filtersModel.selectedInsurances];\r\n this.filtersModel.selectedLanguages = [...this.filtersModel.selectedLanguages];\r\n }\r\n }\r\n\r\n initializeSpecialtyDialog() {\r\n if (this.filtersModel) {\r\n this.filtersModel.selectedSpecialties = [...this.filtersModel.selectedSpecialties];\r\n }\r\n }\r\n initializeMedicalGroupsDialog() {\r\n if (this.filtersModel) {\r\n if (this.filtersModel.selectedMedicalGroup == null) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n }\r\n this.filtersModel.selectedMedicalGroup = [...this.filtersModel.selectedMedicalGroup];\r\n }\r\n }\r\n\r\n initializeLanguageDialog() {\r\n if (this.filtersModel) {\r\n this.filtersModel.selectedLanguages = [...this.filtersModel.selectedLanguages];\r\n }\r\n }\r\n\r\n toggleLanguage(language: any) {\r\n FiltersModelPartialHelper.LanguageToggle(language, this.filtersModel);\r\n }\r\n\r\n checkLanguage(language: any): boolean {\r\n return this.filtersModel?.selectedLanguages?.map((n) => n.name?.toLowerCase()).includes(language?.name.toLowerCase()) ?? false;\r\n }\r\n\r\n initializeAffiliationsDialog() {\r\n if (this.filtersModel) {\r\n this.filtersModel.selectedHospitals = [...this.filtersModel.selectedHospitals];\r\n }\r\n }\r\n\r\n clearDesktopFilters() {\r\n this.moreFilterCount = 0;\r\n sessionStorage.removeItem('moreFilters');\r\n sessionStorage.removeItem('moreFiltersCount');\r\n clearAllSessionVariables();\r\n this.clearMedGroupFilters();\r\n FiltersModelPartialHelper.clearDesktopFilters(this.filtersModel, FiltersModelPartialHelper.getRadiusKeyForDistance(this.defaultSearchDistance));\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n specialtyReset(): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpecialityText);\r\n this.filtersModel.selectedSpecialties = [];\r\n }\r\n\r\n closeFilterDialog(): void {\r\n this.filterService.handleDialogDisplay(false);\r\n }\r\n\r\n insuranceReset(): void {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleInsurancesText);\r\n this.filtersModel.selectedInsurances = [];\r\n }\r\n\r\n initializeInsurancesDialog() {\r\n if (this.filtersModel) {\r\n this.filtersModel.selectedInsurances = [...this.filtersModel.selectedInsurances];\r\n }\r\n }\r\n toggleInsurance(insurance: any) {\r\n FiltersModelPartialHelper.InsuranceToggle(insurance, this.filtersModel);\r\n }\r\n\r\n checkInsurance(insurance: FacetSummary): boolean {\r\n return this.filtersModel?.selectedInsurances?.map((n) => n.name?.toLowerCase()).includes(insurance.name?.toLowerCase()) ?? false;\r\n }\r\n\r\n getMoreFiltersCount() {\r\n if (this.isDignityHealthDivision) {\r\n const params = this.route.snapshot.queryParams;\r\n this.selectedMedicalGroupName = this.route.snapshot.paramMap.get('medGroup') ? this.configurationService.getMedGroupCodes().filter(x => x.code === this.route.snapshot.paramMap.get('medGroup'))[0].title : null;\r\n this.moreFilterCount = params.languages ? 1 : 0;\r\n this.moreFilterCount += params.gender ? 1 : 0;\r\n this.moreFilterCount += params.distance ? 1 : 0;\r\n this.moreFilterCount += this.selectedMedicalGroupName ? 1 : 0;\r\n this.moreFilterText = this.moreFilterCount != 0 ? '(' + this.moreFilterCount.toString() + ' selected)' : null;\r\n }\r\n }\r\n}\r\n","import { Component,Input, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { clearAllSessionVariables } from 'src/app/utils/utils';\r\n\r\n@Component({\r\n selector: 'cs-cta-new-search',\r\n templateUrl: './cta-new-search.component.html',\r\n styleUrls: ['./cta-new-search.component.scss']\r\n})\r\nexport class CtaNewSearchComponent implements OnInit {\r\n\r\n baseUrl: string;\r\n routeValue: string;\r\n embedSource: string;\r\n marketCode: string;\r\n isCernerPage: boolean;\r\n @Input() isDignityHealthDivision: boolean;\r\n dhMarketText = '';\r\n constructor(private configurationService: ConfigurationService,public router: Router) { }\r\n\r\n \r\n ngOnInit(): void {\r\n this.isCernerPage= this.configurationService.getCernerPage();\r\n this.baseUrl = this.configurationService.getRuntimeConfiguration().fadBaseUrl;\r\n this.embedSource = this.configurationService.getEmbedSource();\r\n this.marketCode = this.configurationService.getMarketCodes()[0];\r\n if(this.isDignityHealthDivision)\r\n {\r\n this.dhMarketText = 'below';\r\n }\r\n }\r\n\r\n navigateTo(): void {\r\n clearAllSessionVariables();\r\n\r\n if (this.embedSource === 'cerner') {\r\n this.routeValue = `${this.baseUrl}${this.configurationService.getRedirectToFADinCerner()}`;\r\n } else if (this.embedSource === 'mychart') {\r\n this.routeValue = `${this.configurationService.getRedirectURLPathForFADEpic()}`;\r\n } else if (document.body.firstElementChild?.tagName === 'CS-FAD' || document.body.firstElementChild?.tagName === 'FAD-SAAS') {\r\n this.routeValue = `${this.baseUrl}${this.marketCode}`;\r\n }else if (this.isCernerPage) {\r\n this.router.navigate(['']);\r\n } else {\r\n this.routeValue = `${this.configurationService.getRedirectInAEM()}`;\r\n }\r\n window.open(this.routeValue, '_self');\r\n }\r\n}\r\n","<div class=\"cta-new-search\">\r\n <p class=\"p p1\">\r\n To further refine your search, try selecting different filters {{dhMarketText}} or\r\n <a tabindex=\"0\" role=\"link\" (keydown.enter)=\"navigateTo()\" (click)=\"navigateTo()\">start a new search</a>\r\n </p>\r\n</div>\r\n","<div class=\"medical-content\">\r\n <p class=\"p p2\">\r\n <span class=\"heading\">{{logoLegendHeader}}</span>\r\n <span *ngFor=\"let medItem of medGroupList\">\r\n <img class=\"provider-logo\" src=\"{{medItem.logoUrl}}\" alt=\"\" loading=\"lazy\" />\r\n <span>{{medItem.logoDescription}}</span>\r\n </span>\r\n </p>\r\n</div>\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { LogoConstants } from 'src/app/constants/logo-constants';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\n\r\n@Component({\r\n selector: 'cs-medical-copy',\r\n templateUrl: './medical-copy.component.html',\r\n styleUrls: ['./medical-copy.component.scss']\r\n})\r\nexport class MedicalCopyComponent implements OnInit {\r\n constructor(private configurationService: ConfigurationService, private fadUrl: FadLinkService) {}\r\n logoLegendHeader:string;\r\n LogoConstantsObj = LogoConstants;\r\n medGroupList: unknown[];\r\n\r\n ngOnInit(): void { \r\n this.logoLegendHeader = this.configurationService.getLogoLegendHeader();\r\n this.setMedicalGroupList();\r\n }\r\n\r\n provideMedicalGroupList(uniqueList):any[]{\r\n let list = [];\r\n if (\r\n !window.location.host.toLowerCase().includes(this.LogoConstantsObj.fad) &&\r\n !window.location.host.toLowerCase().includes(this.LogoConstantsObj.mycareteam) &&\r\n !window.location.host.toLowerCase().includes(this.LogoConstantsObj.chart) &&\r\n !this.fadUrl.isSelfHosted()\r\n ) { \r\n list = uniqueList?.map(item => ({ logoUrl: item.logoPathAEM, logoDescription: item.logoDescription }));\r\n } else {\r\n const fadBaseUrl = this.configurationService.getRuntimeConfiguration().fadBaseUrl;\r\n const domain = (new URL(fadBaseUrl));\r\n list = uniqueList?.map(item => ({ logoUrl: `${domain.origin}${item.logoPathFAD}`, logoDescription: item.logoDescription }));\r\n } \r\n return list;\r\n }\r\n\r\n setMedicalGroupList() : void {\r\n const medicalGroups = this.configurationService.getMedGroupCodes();\r\n\r\n const list = new Set();\r\n const uniqueList = [...new Set(medicalGroups?.filter(item => {\r\n if(!list.has(item.logoPathFAD)){\r\n list.add(item.logoPathFAD);\r\n return item;\r\n }\r\n }))]; \r\n this.medGroupList = this.provideMedicalGroupList(uniqueList);\r\n }\r\n}\r\n","<div class=\"dynamic-filter-content\" *ngFor=\"let dynamicFilterContent of dynamicFilterContents\">\r\n <h3 class=\"heading-text chi\" *ngIf=\"dynamicFilterContent.subHeading\">{{dynamicFilterContent.subHeading}}</h3>\r\n\r\n <div class=\"dynamic-content-paragraph-text\">\r\n <p [innerHTML]=\"dynamicFilterContent.paragraph\" [ngClass]=\"{ 'withoutHeadline': !dynamicFilterContent.subHeading}\"></p>\r\n </div>\r\n</div>\r\n","import { Component, Input } from '@angular/core';\r\nimport { DynamicFilterContentDetails } from 'src/app/models/DynamicFilterContentDetails';\r\nimport { ResizeService } from 'src/app/services/resize.service';\r\n\r\n@Component({\r\n selector: 'cs-dynamic-filter-content',\r\n templateUrl: './dynamic-filter-content.component.html',\r\n styleUrls: ['./dynamic-filter-content.component.scss']\r\n})\r\nexport class DynamicFilterContentComponent {\r\n @Input() medicalGroup = 'default medical group';\r\n @Input() dynamicFilterContents: DynamicFilterContentDetails[];\r\n\r\n constructor(private resizeService: ResizeService) {}\r\n\r\n get isDesktopViewport() {\r\n return this.resizeService.isDesktopViewport;\r\n }\r\n}\r\n","<div class=\"dropdownWithList\">\r\n <div class=\"dropdown\">\r\n <input\r\n #searchinput\r\n maxlength=\"50\"\r\n [placeholder]=\"placeholderInput\"\r\n (keypress)=\"inputSearch()\"\r\n (keyup.backspace)=\"inputSearch()\"\r\n type=\"text\"\r\n spellcheck=\"false\"\r\n />\r\n </div>\r\n <ul role=\"listbox\" *ngIf=\"showDropDown\">\r\n <fieldset>\r\n <legend><span class=\"sr-only\">{{placeholderInput}}</span></legend>\r\n <li\r\n class=\"toggle-col-option\"\r\n *ngFor=\"let dropdown of filterDropdownList; let i = index\"\r\n role=\"option\"\r\n (click)=\"itemClickHandler(dropdown)\"\r\n [attr.aria-labelledby]=\"'dropdown-label-' + i\"\r\n tabindex=\"0\"\r\n (keydown.enter)=\"itemClickHandler(dropdown)\"\r\n (keydown.space)=\"itemClickHandler(dropdown)\"\r\n >\r\n <span class=\"option-checkbox\">\r\n <svg class=\"unchecked\" *ngIf=\"!dropdown.selected\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"2.5\" width=\"19\" height=\"19\" x=\"0.5\" y=\"0.5\" />\r\n </svg>\r\n <svg class=\"checked\" *ngIf=\"dropdown.selected\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect rx=\"3\" />\r\n <path d=\"M10.0001 15L4.16675 9.16663L5.83341 7.49996L10.0001 11.6666L20.0001 1.66663V4.99996L10.0001 15Z\" />\r\n </svg>\r\n </span>\r\n {{ dropdown.name }} <span *ngIf=\"showCount\" class=\"option-count\">({{ dropdown.count }})</span>\r\n </li>\r\n </fieldset>\r\n </ul>\r\n</div>\r\n<div class=\"dropdown-buttons\">\r\n <div (click)=\"clearFilters()\" class=\"clear-button-container\">\r\n <button [disabled]=\"selectedItems.length === 0\" class=\"clear-all-button\">Clear</button>\r\n </div>\r\n <div (click)=\"applyFilters()\" class=\"apply-button-container\">\r\n <button class=\"apply-filter-button\">Apply</button>\r\n </div>\r\n</div>\r\n","import { Component, SimpleChanges, \r\n Input, Output, OnChanges, OnInit,\r\n ViewChild, ElementRef, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FacetSummary } from '../../../models/filters';\r\n\r\n\r\n@Component({\r\nselector: 'cs-multiple-checkbox-searchable-dropdown',\r\ntemplateUrl: './multiple-checkbox-searchable-dropdown.component.html',\r\nstyleUrls: ['./multiple-checkbox-searchable-dropdown.component.scss'],\r\nchangeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class MultipleCheckboxSearchableDropdownComponent implements OnInit, OnChanges {\r\n @Input() dropdowns: FacetSummary[] = [];\r\n @Input() showCount = true;\r\n @Input() placeholder: string;\r\n\r\n @Output() selectedDropDownValues: EventEmitter<FacetSummary[]> = new EventEmitter<FacetSummary[]>();\r\n @ViewChild('searchinput') searchinput: ElementRef;\r\n\r\n filterDropdownList: FacetSummary[] = [];\r\n selectedItems: FacetSummary[] = [];\r\n oldSelectedItems: FacetSummary[] = [];\r\n placeholderInput = '';\r\n noResultsFound = 'No results found';\r\n showDropDown = false;\r\n\r\n ngOnInit(): void {\r\n this.placeholderInput = this.placeholder || '';\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes?.dropdowns) {\r\n this.filterDropdownList = [...this.dropdowns];\r\n if (this.filterDropdownList.length === 0 && this.selectedItems.length === 0) {\r\n this.placeholderInput = this.noResultsFound;\r\n this.showDropDown = false;\r\n } else {\r\n this.filterDropdownList.sort((a, b) => Number(b.selected) - Number(a.selected));\r\n this.selectedItems = this.oldSelectedItems = this.getSelectedDropdowns();\r\n this.placeholderInput = this.placeholder;\r\n this.showDropDown = true;\r\n }\r\n }\r\n }\r\n\r\n itemClickHandler(dropdown: FacetSummary): void {\r\n this.filterDropdownList = [...this.dropdowns];\r\n this.filterDropdownList = this.markSelected(this.filterDropdownList, dropdown);\r\n this.shiftSelectedEntries(this.filterDropdownList);\r\n this.selectedItems = this.getSelectedDropdowns();\r\n }\r\n\r\n markSelected = (dropdowns: FacetSummary[], dropdown: FacetSummary): FacetSummary[] => {\r\n const index = dropdowns.findIndex(t => t.name === dropdown.name);\r\n dropdowns[index].selected = !dropdown.selected;\r\n return dropdowns;\r\n };\r\n\r\n shiftSelectedEntries = (dropdowns: FacetSummary[]): void => {\r\n for(const [i, dropdown] of dropdowns.entries()) {\r\n if(dropdown.selected) {\r\n dropdowns.splice(i, 1);\r\n dropdowns.unshift(dropdown);\r\n }\r\n }\r\n };\r\n\r\n inputSearch(): void {\r\n this.filterDropdownList = [...this.dropdowns];\r\n const searchTerm = this.searchinput?.nativeElement?.value;\r\n if (searchTerm) {\r\n this.filterDropdownList = this.filterDropdownList.filter(dropdown => dropdown.name.toLowerCase().includes(searchTerm.toLowerCase()));\r\n }\r\n }\r\n\r\n getSelectedDropdowns(): FacetSummary [] {\r\n return this.filterDropdownList.filter(dropdown => dropdown.selected);\r\n }\r\n\r\n trackByFn(index, item): string {\r\n return item.name;\r\n }\r\n\r\n onSelectedItemClick(event, dropdown: FacetSummary): void {\r\n this.itemClickHandler(dropdown);\r\n }\r\n\r\n applyFilters(): void {\r\n if (!this.objectsAreSame(this.oldSelectedItems, this.selectedItems)) {\r\n this.showDropDown = false;\r\n this.selectedDropDownValues.emit(this.selectedItems);\r\n this.selectedItems = [];\r\n }\r\n }\r\n\r\n clearFilters(): void {\r\n this.filterDropdownList = this.filterDropdownList.map(dropdown => ({ ...dropdown, selected: false } as FacetSummary));\r\n this.showDropDown = true;\r\n this.selectedItems = [];\r\n }\r\n\r\n objectsAreSame(obj1: FacetSummary[], obj2: FacetSummary[]): boolean {\r\n return JSON.stringify(obj1) === JSON.stringify(obj2);\r\n }\r\n}\r\n","<div class=\"desktop-filter-buttons\" #filtersContainer>\r\n <div *ngIf=\"isDesktopViewport\">\r\n <div class=\"leftPanelHeader\">\r\n <span class=\"filtersSpan\">Filters</span>\r\n <div\r\n class=\"clear-all-btn\"\r\n tabindex=\"0\"\r\n role=\"button\"\r\n aria-label=\"Clear all\"\r\n (keydown.enter)=\"clearDesktopFilters()\"\r\n (click)=\"clearDesktopFilters()\"\r\n >\r\n <span>Clear all</span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"filter-container\">\r\n <div class=\"online-scheduling\" *ngIf=\"showOnlineSchedulingFilter\" [attr.aria-label]=\"'Online scheduling'\" tabindex=\"0\">\r\n <div class=\"section-header toggle-col-option\" [ngClass]=\"{'disabled': filtersModel.onlineSchedulingProvidersCount === 0 }\">\r\n <span>Online scheduling <span class=\"option-count\">({{ filtersModel.onlineSchedulingProvidersCount }})</span></span>\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.onlineSchedulingProvidersCount === 0\"\r\n [checked]=\"onlineSchedulingToggle\"\r\n (keydown.enter)=\"filterOnlineScheduling()\"\r\n (keydown.space)=\"filterOnlineScheduling()\"\r\n (click)=\"filterOnlineScheduling()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"video-visits\" *ngIf=\"showVideoVisitsFilter\" [attr.aria-label]=\"'Video Visits'\" tabindex=\"0\">\r\n <div class=\"section-header toggle-col-option\" [ngClass]=\"{'disabled': filtersModel.videoVisitsProvidersCount === 0 }\">\r\n <span>Video visits <span class=\"option-count\">({{ filtersModel.videoVisitsProvidersCount }})</span></span>\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.videoVisitsProvidersCount === 0\"\r\n [checked]=\"videoVisitsToggle\"\r\n (keydown.enter)=\"filterVideoVisits()\"\r\n (keydown.space)=\"filterVideoVisits()\"\r\n (click)=\"filterVideoVisits()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"accepting-new-patients\" *ngIf=\"showAcceptingNewPatientsFilter\" [attr.aria-label]=\"'Accepting new patients'\" tabindex=\"0\">\r\n <div class=\"section-header toggle-col-option\" [ngClass]=\"{'disabled': filtersModel.newPatientsProvidersCount === 0 }\">\r\n <span>Accepting new patients <span class=\"option-count\">({{ filtersModel.newPatientsProvidersCount }})</span></span>\r\n <cs-slide-toggle\r\n [disabled]=\"filtersModel.newPatientsProvidersCount === 0\"\r\n [checked]=\"newPatientsToggle\"\r\n (keydown.enter)=\"filterNewPatients()\"\r\n (keydown.space)=\"filterNewPatients()\"\r\n (click)=\"filterNewPatients()\"\r\n >\r\n </cs-slide-toggle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"location-name\" [attr.aria-label]=\"'Location'\" *ngIf=\"filtersModel.locationName && showLocationName\">\r\n <div class=\"section-header\">\r\n <span>Location</span>\r\n <div class=\"close-icon\" (click)=\"filterLocationName()\">\r\n <svg viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M2 2 L16 16 M2 16 L16 2\" />\r\n </svg>\r\n </div>\r\n </div>\r\n <div class=\"section-content\">{{ filtersModel.locationName }}</div>\r\n </div>\r\n\r\n <cs-accordion [title]=\"'Search radius'\" *ngIf=\"showSearchRadiusFilter && selectedLocation\" [isCollapsed]=\"false\">\r\n <div class=\"searchRadius\">\r\n <span aria-label=\"Distance within\" class=\"dialog-page-content p p2\">Distance with in</span>\r\n <div tabindex=\"0\" role=\"dialog\" class=\"searchRadiusDialog\">\r\n <dhcl-dropdown\r\n [placeholder]=\"'Select radius'\"\r\n [selectedValue]=\"searchRadiusSelectedValue\"\r\n [dropdowns]=\"searchRadiusList\"\r\n (changed)=\"filterSearchRadius($event)\"\r\n >\r\n </dhcl-dropdown>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Doctor Availability'\" *ngIf=\"showAvailabilityFilter\" [isCollapsed]=\"isProviderAvailabilityCollapsed\">\r\n <div class=\"patient-availability\" (click)=\"filterAvailability(true)\">\r\n <cs-availability-dialog [filtersModel]=\"filtersModel\"> </cs-availability-dialog>\r\n </div>\r\n </cs-accordion>\r\n <cs-accordion [title]=\"'Specialty'\" *ngIf=\"showSpecialtyFilter\" [isCollapsed]=\"filtersModel.selectedSpecialties.length === 0\">\r\n <cs-multiple-checkbox-searchable-dropdown\r\n id=\"specialty\"\r\n [placeholder]=\"'Select Specialty'\"\r\n [dropdowns]=\"filtersModel.availableSpecialties\"\r\n (selectedDropDownValues)=\"selectedSpecialityValues($event)\"\r\n >\r\n </cs-multiple-checkbox-searchable-dropdown>\r\n </cs-accordion>\r\n\r\n <cs-accordion\r\n [title]=\"'Medical group'\"\r\n *ngIf=\"showMedicalGroupFilter\"\r\n [tooltip]=\"medicalGroupHoverText\"\r\n [tooltipInfo]=\"'More information about medical group'\"\r\n [isCollapsed]=\"filtersModel.selectedMedicalGroup.length === 0\"\r\n >\r\n <cs-multiple-checkbox-searchable-dropdown\r\n id=\"medicalGroups\"\r\n [placeholder]=\"'Select Medical Group'\"\r\n [showCount]=\"false\"\r\n [dropdowns]=\"medicalGroupList\"\r\n (selectedDropDownValues)=\"selectedMedicalValues($event)\"\r\n >\r\n </cs-multiple-checkbox-searchable-dropdown>\r\n </cs-accordion>\r\n\r\n <cs-accordion\r\n [title]=\"'Hospital Affiliation'\"\r\n *ngIf=\"showAffiliationFilter && affiliationHoverText !== ''\"\r\n [tooltip]=\"affiliationHoverText\"\r\n [isCollapsed]=\"filtersModel.selectedHospitals.length === 0\"\r\n >\r\n <div *ngIf=\"affiliationToolTip !== ''\" class=\"medical-group-filter-copy\">{{ affiliationToolTip }}</div>\r\n <cs-multiple-checkbox-searchable-dropdown\r\n id=\"hospitalAffliations\"\r\n [placeholder]=\"'Select Hospital Affiliation'\"\r\n [dropdowns]=\"filtersModel.availableHospitals\"\r\n (selectedDropDownValues)=\"selectedHospitalAffliations($event)\"\r\n >\r\n </cs-multiple-checkbox-searchable-dropdown>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Gender'\" *ngIf=\"showGenderFilter\" [isCollapsed]=\"filtersModel.genderSelect === ''\">\r\n <div class=\"gender\" role=\"radiogroup\" aria-label=\"Select Gender\">\r\n <div\r\n class=\"radio-button-option\"\r\n (click)=\"filterGender('female')\"\r\n (keydown.enter)=\"filterGender('female')\"\r\n (keydown.space)=\"filterGender('female')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'female'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'female'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Female \r\n <span>({{ filtersModel.femaleCount }})</span>\r\n </div>\r\n <div\r\n class=\"radio-button-option\"\r\n (click)=\"filterGender('male')\"\r\n (keydown.enter)=\"filterGender('male')\"\r\n (keydown.space)=\"filterGender('male')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'male'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'male'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Male \r\n <span>({{ filtersModel.maleCount }})</span>\r\n </div>\r\n <div\r\n class=\"radio-button-option\"\r\n (click)=\"filterGender('non-binary')\"\r\n (keydown.enter)=\"filterGender('non-binary')\"\r\n (keydown.space)=\"filterGender('non-binary')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'non-binary'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'non-binary'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Non-Binary \r\n <span>({{ filtersModel.nonbinaryCount }})</span>\r\n </div>\r\n <div\r\n class=\"radio-button-option\"\r\n (click)=\"filterGender('other')\"\r\n (keydown.enter)=\"filterGender('other')\"\r\n (keydown.space)=\"filterGender('other')\"\r\n role=\"radio\"\r\n [attr.aria-checked]=\"filtersModel.genderSelect === 'other'\"\r\n tabindex=\"0\"\r\n >\r\n <svg viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z\" />\r\n <path\r\n *ngIf=\"filtersModel.genderSelect === 'other'\"\r\n d=\"M11 16.8974C14.257 16.8974 16.8974 14.257 16.8974 11C16.8974 7.74291 14.257 5.10254 11 5.10254C7.74291 5.10254 5.10254 7.74291 5.10254 11C5.10254 14.257 7.74291 16.8974 11 16.8974Z\"\r\n />\r\n </svg>\r\n Other \r\n <span>({{ filtersModel.otherCount }})</span>\r\n </div>\r\n </div>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Insurance'\" *ngIf=\"showInsuranceFilter\" [isCollapsed]=\"filtersModel.selectedInsurances.length === 0\">\r\n <cs-multiple-checkbox-searchable-dropdown\r\n id=\"insurance\"\r\n [placeholder]=\"'Select Insurance'\"\r\n [dropdowns]=\"filtersModel.availableInsurances\"\r\n (selectedDropDownValues)=\"selectedInsurances($event)\"\r\n >\r\n </cs-multiple-checkbox-searchable-dropdown>\r\n </cs-accordion>\r\n\r\n <cs-accordion [title]=\"'Language'\" *ngIf=\"showLanguageFilter\" [isCollapsed]=\"filtersModel.selectedLanguages.length === 0\">\r\n <cs-multiple-checkbox-searchable-dropdown\r\n id=\"language\"\r\n [placeholder]=\"'Select Language'\"\r\n [dropdowns]=\"filtersModel.availableLanguages\"\r\n (selectedDropDownValues)=\"selectedLanguages($event)\"\r\n >\r\n </cs-multiple-checkbox-searchable-dropdown>\r\n </cs-accordion>\r\n </div>\r\n </div>\r\n</div>\r\n","import { Component, EventEmitter, Input, OnInit, Output, SimpleChanges, OnChanges } from '@angular/core';\r\nimport { FacetSummary, FiltersModel, FiltersModelPartialHelper } from '../../models/filters';\r\nimport { AvailabilitySelect } from '../../models/availability-select.enum';\r\nimport { ResizeService } from '../../services/resize.service';\r\nimport { SelectedLocation } from '../../models/location';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { FilterService } from 'src/app/services/filter.service';\r\nimport { clearAllSessionVariables } from 'src/app/utils/utils';\r\n\r\n@Component({\r\n selector: 'cs-filters-left-panel',\r\n templateUrl: './filters-left-panel.component.html',\r\n styleUrls: ['./filters-left-panel.component.scss']\r\n})\r\nexport class FiltersLeftPanelComponent implements OnInit, OnChanges {\r\n @Input() selectedLocation: SelectedLocation;\r\n @Input() filtersModel: FiltersModel;\r\n\r\n @Input() medicalGroupToolTip: string;\r\n @Input() medicalGroupHoverText: string;\r\n @Input() affiliationToolTip: string;\r\n @Input() affiliationHoverText: string;\r\n @Input() defaultSearchDistance: number;\r\n @Input() defaultSearchDistanceWithMedGroup: number;\r\n\r\n @Input() showOnlineSchedulingFilter: boolean;\r\n @Input() showVideoVisitsFilter: boolean;\r\n @Input() showAcceptingNewPatientsFilter: boolean;\r\n @Input() showAvailabilityFilter: boolean;\r\n @Input() showSpecialtyFilter: boolean;\r\n @Input() showMedicalGroupFilter: boolean;\r\n @Input() showAffiliationFilter: boolean;\r\n @Input() showProceduresPerformedFilter: boolean;\r\n @Input() showConditionsTreatedFilter: boolean;\r\n\r\n @Input() showGenderFilter: boolean;\r\n @Input() showInsuranceFilter: boolean;\r\n @Input() showLanguageFilter: boolean;\r\n @Input() showSearchRadiusFilter: boolean;\r\n\r\n @Input() embedSource: string;\r\n @Input() multipleMedicalGroupSelection: boolean;\r\n\r\n @Output() filtersModelChange = new EventEmitter<FiltersModel>();\r\n @Output() medicalGroupChange = new EventEmitter<FiltersModel>();\r\n @Output() addMedicalGroupItems = new EventEmitter<FiltersModel>();\r\n @Output() locationNameClosed = new EventEmitter<FiltersModel>();\r\n\r\n FiltersModelPartialHelperLocal = FiltersModelPartialHelper;\r\n isHoveringOnMedGroup = false;\r\n isHoveringOnAffiliation = false;\r\n showModal = false;\r\n closeOnOverlay = true;\r\n AvailabilitySelect = AvailabilitySelect;\r\n LastVideoVisitsProvidersCount = 0;\r\n isDesktopFilterSelected = false;\r\n useLegacyAPI = false;\r\n searchRadiusList = [{\r\n label: '5 miles',\r\n value: 5\r\n },{\r\n label: '10 miles',\r\n value: 10\r\n },{\r\n label: '25 miles',\r\n value: 25\r\n },{\r\n label: '50 miles',\r\n value: 50\r\n },{\r\n label: '100 miles',\r\n value: 100\r\n }];\r\n medicalGroupList: FacetSummary[] = [];\r\n searchRadiusSelectedValue: number;\r\n onlineSchedulingToggle: boolean;\r\n videoVisitsToggle: boolean;\r\n newPatientsToggle: boolean;\r\n showLocationName = true;\r\n isProviderAvailabilityCollapsed = true;\r\n \r\n\r\n constructor(private resizeService: ResizeService\r\n , private configurationService: ConfigurationService\r\n , private filterService: FilterService) {\r\n this.useLegacyAPI = this.configurationService.useLegacyAPI();\r\n }\r\n\r\n get isDesktopViewport(): boolean {\r\n return this.resizeService.isDesktopViewport;\r\n }\r\n\r\n ngOnInit(): void {\r\n if (this.filtersModel) {\r\n this.filtersModel.medicalGroupList = FiltersModelPartialHelper.getMedGroups(this.configurationService.getMedGroupCodes());\r\n this.searchRadiusSelectedValue = FiltersModelPartialHelper.getDistanceForProviderSearchRadiusKey(this.filtersModel) || this.defaultSearchDistance;\r\n this.convertMedicalGroupToFacetList();\r\n if (this.filtersModel.selectedMedicalGroup == null) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n }\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes.filtersModel.currentValue.searchDone) {\r\n this.LastVideoVisitsProvidersCount = 0;\r\n }\r\n if (changes.filtersModel.currentValue.medicalGroupList) {\r\n this.convertMedicalGroupToFacetList();\r\n }\r\n if (changes.filtersModel.currentValue.providerSearchRadius) {\r\n this.searchRadiusSelectedValue = FiltersModelPartialHelper.getDistanceForProviderSearchRadiusKey(this.filtersModel) || this.defaultSearchDistance;\r\n }\r\n if (changes.filtersModel.currentValue.onlineSchedulingToggle) {\r\n this.onlineSchedulingToggle = this.filtersModel.onlineSchedulingToggle;\r\n }\r\n if (changes.filtersModel.currentValue.videoVisitsToggle) {\r\n this.videoVisitsToggle = this.filtersModel.videoVisitsToggle;\r\n }\r\n if (changes.filtersModel.currentValue.newPatientsToggle) {\r\n this.newPatientsToggle = this.filtersModel.newPatientsToggle;\r\n }\r\n if (changes.filtersModel.currentValue.availabilitySelect) {\r\n this.isProviderAvailabilityCollapsed = false;\r\n }\r\n }\r\n\r\n filterOnlineScheduling(): void {\r\n if(this.filtersModel.onlineSchedulingProvidersCount != 0){\r\n this.onlineSchedulingToggle = !this.onlineSchedulingToggle;\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle = this.onlineSchedulingToggle;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n filterVideoVisits(): void {\r\n if(this.filtersModel.videoVisitsProvidersCount != 0){\r\n this.videoVisitsToggle = !this.videoVisitsToggle;\r\n this.LastVideoVisitsProvidersCount = this.filtersModel.videoVisitsProvidersCount;\r\n this.filtersModel.videoVisitsApplied = this.filtersModel.videoVisitsToggle = this.videoVisitsToggle;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n filterNewPatients(): void {\r\n if(this.filtersModel.newPatientsProvidersCount != 0){\r\n this.newPatientsToggle = !this.newPatientsToggle;\r\n this.filtersModel.newPatientsApplied = this.filtersModel.newPatientsToggle = this.newPatientsToggle;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n filterLocationName(): void {\r\n this.showLocationName = false;\r\n this.filtersModel.locationName = '';\r\n this.locationNameClosed.emit(this.filtersModel);\r\n }\r\n\r\n filterAvailability(filteringActive: boolean): void {\r\n if (filteringActive) {\r\n this.filtersModel.providerAvailability = this.filtersModel.availabilitySelect;\r\n this.filtersModel.availabilityTitle = this.filtersModel.providerAvailability;\r\n if (this.filtersModel.availabilityTitle === '') {\r\n this.filtersModel.availabilityTitle = 'Availability';\r\n }\r\n } else {\r\n this.filtersModel.providerAvailability = AvailabilitySelect.None;\r\n this.filtersModel.availabilitySelect = AvailabilitySelect.None;\r\n this.filtersModel.availabilityTitle = 'Availability';\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n clearMedGroupFilters(): void {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n this.addMedicalGroupItems.emit(this.filtersModel);\r\n this.medicalGroupChange.emit(this.filtersModel);\r\n }\r\n\r\n filterGender(gender: string): void {\r\n FiltersModelPartialHelper.genderSelect(this.filtersModel, gender);\r\n this.filtersModel.providerGender = this.filtersModel.genderSelect;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n filterSearchRadius(event): void {\r\n if (event) {\r\n this.searchRadiusSelectedValue = event.value;\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(event.value);\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n }\r\n\r\n clearDesktopFilters(): void {\r\n clearAllSessionVariables();\r\n this.clearMedGroupFilters();\r\n FiltersModelPartialHelper.clearDesktopFilters(this.filtersModel, this.defaultSearchDistance);\r\n this.filtersModel.selectedHospitals = [];\r\n this.filtersModel.providerHospitals = [];\r\n this.onlineSchedulingToggle = false;\r\n this.videoVisitsToggle = false;\r\n this.newPatientsToggle = false;\r\n this.searchRadiusSelectedValue = this.defaultSearchDistance;\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n selectedSpecialityValues(items: FacetSummary[]): void {\r\n this.filtersModel.selectedSpecialties = [...items];\r\n this.filtersModel.providerSpecialties = [...items];\r\n if (this.filtersModel.selectedSpecialties.length === 1 && (window.sessionStorage.getItem('singleSpecialty')?.toLowerCase() === this.filtersModel.selectedSpecialties?.[0].name.toLowerCase())) {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n }\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n selectedHospitalAffliations(items: FacetSummary[]): void {\r\n this.filtersModel.selectedHospitals = [...items];\r\n this.filtersModel.providerHospitals = [...items];\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n selectedLanguages(items: FacetSummary[]): void {\r\n this.filtersModel.selectedLanguages = [...items];\r\n this.filtersModel.providerLanguages = [...items];\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n selectedInsurances(items: FacetSummary[]): void {\r\n this.filtersModel.selectedInsurances = [...items];\r\n this.filtersModel.providerInsurances = [...items];\r\n this.filtersModelChange.emit(this.filtersModel);\r\n }\r\n\r\n selectedMedicalValues(items: FacetSummary[]): void {\r\n this.filtersModel.selectedMedicalGroup = [...items];\r\n this.filterService.handleManualProviderRoleSelectionProcess(this.filtersModel);\r\n this.filtersModel.providerMedicalGroup = [...items];\r\n this.medicalGroupChange.emit(this.filtersModel);\r\n this.markSelectedItemsInList();\r\n }\r\n\r\n convertMedicalGroupToFacetList(): void {\r\n this.medicalGroupList = this.filtersModel.medicalGroupList.map(medGroup => ({\r\n name: medGroup.label,\r\n count: 0,\r\n selected: false,\r\n code: medGroup.value\r\n }));\r\n this.markSelectedItemsInList();\r\n }\r\n\r\n markSelectedItemsInList(): void {\r\n if (this.filtersModel.selectedMedicalGroup) {\r\n this.filtersModel.selectedMedicalGroup.forEach(item => {\r\n const index = this.medicalGroupList.findIndex(t => t.code === item.name);\r\n if (index !== -1 ) { \r\n this.medicalGroupList[index].selected = item.selected;\r\n }\r\n });\r\n }\r\n }\r\n \r\n}\r\n","<cs-provider-details-navigation *ngIf=\"showBacktoLoctionSearchBtn\" [redirectFromFAL]=\"redirectFromFAL\"></cs-provider-details-navigation>\r\n<dhcl-modal\r\n *ngIf=\"isShowVideo && videoUrl && !isMyChart\"\r\n [customClass]=\"isCerner ? 'modal-class modal-cerner' : 'modal-class'\"\r\n [closeOnOverlay]=\"false\"\r\n [show]=\"true\"\r\n [alignTop]=\"handleNavigateToSchedulingSpa\"\r\n (closeClicked)=\"handleCloseClicked()\"\r\n>\r\n <iframe width=\"100%\" height=\"300\" class=\"iframe-border\" [src]=\"videoUrl\" title=\"provider video\"></iframe>\r\n</dhcl-modal>\r\n<div *ngIf=\"isShowVideo && videoUrl && isMyChart\">\r\n <div class=\"modal-container\"></div>\r\n\r\n <div [class]=\"getCernerClass('modal-content-iframe')\">\r\n <span\r\n class=\"close-btn\"\r\n style=\"position: absolute; top: 10px; right: 10px; cursor: pointer; color: white\"\r\n (click)=\"handleCloseClicked()\"\r\n >\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1.375 1.375L20.625 20.625\" stroke=\"#005591\" stroke-width=\"2\"></path>\r\n <path d=\"M1.375 20.6223L20.625 1.375\" stroke=\"#005591\" stroke-width=\"2\"></path>\r\n </svg>\r\n </span>\r\n <iframe *ngIf=\"videoUrl\" width=\"100%\" height=\"100%\" class=\"iframe-border\" [src]=\"videoUrl\" title=\"provider video\"></iframe>\r\n </div>\r\n</div>\r\n<div class=\"backButtonContainer\" *ngIf=\"showBackButton\">\r\n <a role=\"button\" href=\"javascript:void(0)\" (click)=\"backSiteSearch()\">\r\n <button aria-hidden=\"true\" class=\"backButtonContainer search-results-return\">\r\n <svg viewBox=\"0 0 9 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M8 1L1 8L8 15\" />\r\n </svg>\r\n {{backSearchSiteText}}\r\n </button>\r\n </a>\r\n</div>\r\n<div class=\"search-box-module our-doctors\" [ngClass]=\"{'back-to-location-btn' : showBacktoLoctionSearchBtn}\">\r\n <cs-search-input\r\n [keyword]=\"keyword\"\r\n [selectedLocation]=\"selectedLocation\"\r\n [filtersModel]=\"filtersModel\"\r\n [showQuicklinks]=\"false\"\r\n [includeProviderRoleTypes]=\"includeProviderRoleTypes\"\r\n (includeProviderTypeEmit)=\"providerRoleTypesEmit($event)\"\r\n (searchbutttonClick)=\"searchButtonClickEvent($event)\"\r\n >\r\n </cs-search-input>\r\n <div class=\"search-box-heading\" *ngIf=\"headingText !== ''\">\r\n <h1\r\n class=\"heading-text\"\r\n [ngClass]=\"{\r\n 'dh': divisionCodes.includes('dignity-health'),\r\n 'chi': !divisionCodes.includes('dignity-health')\r\n }\"\r\n >\r\n <svg viewBox=\"0 0 75 75\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M59.7991 21.6244C59.6667 21.7841 59.526 21.937 59.4034 22.1042C57.2151 25.0872 57.4347 29.3529 59.9161 32.0749C60.6883 32.9218 60.9659 33.894 60.5936 35.0104C60.0351 36.6852 58.2141 37.1155 57.0061 35.8563C55.5572 34.3456 54.5301 32.561 54.0092 30.5154C52.7598 25.6075 53.6539 21.189 57.1476 17.5084C59.331 15.208 62.0657 14.1716 65.1989 14.4746C67.9501 14.7407 70.2084 16.0606 71.9927 18.2028C74.1596 20.8046 75.113 23.8555 74.9894 27.265C74.8716 30.5051 73.7679 33.3363 71.6051 35.7138C70.8262 36.5699 69.9249 36.7864 69.0468 36.3393C68.1649 35.89 67.6051 34.7104 67.7763 33.6792C67.8779 33.0659 68.1385 32.5485 68.5609 32.0971C71.2626 29.2095 71.3074 24.4373 68.6627 21.4953C68.4199 21.2252 68.1382 20.992 67.8194 20.786C67.8518 20.8448 67.8761 20.9109 67.9178 20.9619C69.4949 22.8887 69.1366 26.2401 67.0093 27.758C66.6236 28.0333 66.5006 28.3479 66.5014 28.8188C66.5143 36.4194 66.538 44.0202 66.5051 51.6208C66.4588 62.3566 58.9143 71.9615 48.7209 74.3623C46.4273 74.9024 44.1097 75.1106 41.775 74.944C36.6607 74.5792 32.1295 72.6783 28.2377 69.2425C24.353 65.813 21.8822 61.4898 20.7241 56.3709C20.3695 54.804 20.2491 53.2073 20.231 51.6009C20.2238 50.9592 20.1937 50.3178 20.1865 49.6761C20.1838 49.4311 20.1121 49.3245 19.8499 49.292C16.7647 48.9107 13.861 47.938 11.1982 46.2939C5.39681 42.7116 1.78396 37.5062 0.458126 30.6729C0.208127 29.3844 0.158217 28.0552 0.0071386 26.7458C-0.0372258 26.3609 0.125993 26.2704 0.474463 26.274C2.57248 26.2948 4.67079 26.3048 6.76896 26.2962C7.12597 26.2946 7.22594 26.3971 7.24048 26.7666C7.37252 30.1373 8.32951 33.2247 10.3781 35.8914C12.8195 39.0696 15.9359 41.1776 19.8581 41.8562C28.9398 43.4279 36.0255 37.1728 37.5889 29.8229C37.8087 28.789 37.8589 27.7172 37.9868 26.6627C37.9989 26.5632 38.0036 26.4626 38.0136 26.3396H45.1851C45.1452 27.091 45.1347 27.8195 45.0632 28.5416C44.8131 31.0701 44.2631 33.5304 43.19 35.8262C39.9598 42.7361 34.7566 47.1711 27.4543 48.9188C26.7398 49.09 26.0093 49.1929 25.2831 49.3077C25.0886 49.3384 25.0035 49.3908 24.9951 49.6096C24.7806 55.2398 26.3074 60.2352 30.1763 64.3309C32.9314 67.2473 36.2689 69.1006 40.1896 69.7756C45.7135 70.7268 50.6786 69.3741 55.0116 65.7633C58.5952 62.7772 60.7379 58.8749 61.45 54.1807C61.6087 53.1338 61.6679 52.0616 61.6706 51.0007C61.6904 43.5541 61.6808 36.1074 61.6918 28.6607C61.6924 28.2772 61.587 28.033 61.276 27.7993C59.4569 26.4316 58.8485 24.1005 59.7256 21.9716C59.768 21.8685 59.8084 21.7645 59.8497 21.661C59.8328 21.6488 59.8159 21.6366 59.7991 21.6244Z\"\r\n />\r\n <path\r\n d=\"M5.6905 28.8366H3.36703C2.39669 28.8366 1.42589 28.8192 0.456003 28.8457C0.104526 28.8553 -0.00345791 28.7272 8.38358e-05 28.3377C0.0139345 26.8217 0.00546514 25.3055 0.00546514 23.7893V11.431C0.00546514 7.18241 1.96581 4.22552 5.57828 3.06377C6.13166 2.88594 6.71363 2.82501 7.27593 2.67859C7.48191 2.62503 7.73131 2.53852 7.85547 2.36807C8.85848 0.991583 10.1712 0.269956 11.6962 0.0600246C13.1834 -0.144414 14.5899 0.169024 15.8968 1.06711C18.7324 3.01605 18.8608 7.11031 16.1341 9.28876C13.6213 11.2962 9.80841 10.8599 7.89374 8.22039C7.82023 8.11929 7.62983 8.04599 7.5173 8.07534C6.67294 8.29557 5.64589 9.19229 5.66056 10.5909C5.69716 14.0662 5.67039 17.5423 5.67341 21.0181C5.67538 23.4341 5.6846 25.8503 5.6905 28.2665C5.6908 28.4357 5.6905 28.6048 5.6905 28.8366Z\"\r\n />\r\n <path\r\n d=\"M38.2731 19.3287C38.2729 16.4544 38.2458 13.5794 38.2846 10.7058C38.3037 9.29725 37.447 8.41537 36.4893 8.08043C36.2919 8.01142 36.1604 8.06155 36.0076 8.25743C34.6093 10.0514 32.8246 10.7015 30.7633 10.4926C29.5838 10.3729 28.5172 9.91389 27.5857 9.07733C25.252 6.98173 25.2935 3.41352 27.6709 1.3823C29.8748 -0.500606 33.1673 -0.456486 35.3168 1.49371C35.5512 1.70641 35.7964 1.93336 35.9579 2.21267C36.1754 2.58847 36.4723 2.65301 36.8181 2.70366C39.026 3.02709 40.9341 4.03189 42.406 5.97779C43.4206 7.31872 43.9208 8.88575 43.9168 10.6586C43.9154 11.302 43.9156 11.9456 43.9172 12.5891C43.9302 17.8218 43.9395 23.0547 43.9648 28.2873C43.9668 28.7067 43.891 28.853 43.4928 28.8462C41.9102 28.8179 40.3269 28.8253 38.744 28.8413C38.383 28.8451 38.2648 28.7086 38.2666 28.2952C38.2788 25.3064 38.2732 22.3176 38.2731 19.3287Z\"\r\n />\r\n </svg>\r\n {{ headingText }}\r\n </h1>\r\n </div>\r\n <ng-container *ngIf=\"medicalGroupLink && filtersModel?.providerMedicalGroup && filtersModel?.providerMedicalGroup?.length>0\">\r\n <a class=\"medical-group-text\" [href]=\"medicalGroupLink.URL\" target=\"{{!useLegacyAPI || isCernerPage ? '_blank' : '_self'}}\">\r\n {{ medicalGroupLink.Text }}\r\n <span class=\"medical-group-arrow-right\">\r\n <svg viewBox=\"0 0 9 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 15L8 8L1 1\" />\r\n </svg>\r\n </span>\r\n </a>\r\n </ng-container>\r\n <div *ngIf=\"showStarRatingsBanner\">\r\n <div class=\"banner\" *ngIf=\"!bannerDisabled\">\r\n <div class=\"video-icon\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"31\" height=\"36\" viewBox=\"0 0 31 36\" fill=\"none\">\r\n <path\r\n d=\"M15.9297 2.43722C15.9484 2.38471 15.9827 2.33929 16.028 2.30717C16.0733 2.27505 16.1273 2.25781 16.1827 2.25781C16.2381 2.25781 16.2921 2.27505 16.3374 2.30717C16.3827 2.33929 16.417 2.38471 16.4357 2.43722L16.7849 3.38367C16.804 3.43341 16.837 3.4765 16.8799 3.50771C16.9228 3.53892 16.9738 3.55689 17.0267 3.55944L18.0252 3.60451C18.0801 3.60658 18.1331 3.62553 18.1769 3.65882C18.2208 3.6921 18.2535 3.73812 18.2705 3.79067C18.2876 3.84322 18.2883 3.89977 18.2724 3.95271C18.2566 4.00565 18.225 4.05244 18.182 4.08675L17.3984 4.71322C17.3566 4.74686 17.3258 4.79228 17.3098 4.84367C17.2939 4.89506 17.2935 4.95007 17.3088 5.00166L17.573 5.97065C17.5889 6.02406 17.588 6.08113 17.5705 6.13402C17.5529 6.18692 17.5196 6.23306 17.475 6.26613C17.4303 6.29919 17.3767 6.31756 17.3213 6.31872C17.2659 6.31988 17.2115 6.30378 17.1655 6.27261L16.3282 5.71375C16.2842 5.68522 16.2329 5.67005 16.1805 5.67005C16.1281 5.67005 16.0768 5.68522 16.0327 5.71375L15.2088 6.27261C15.1629 6.30378 15.1085 6.31988 15.0531 6.31872C14.9977 6.31756 14.944 6.29919 14.8994 6.26613C14.8548 6.23306 14.8214 6.18692 14.8039 6.13402C14.7863 6.08113 14.7854 6.02406 14.8014 5.97065L15.07 5.00166C15.0836 4.94957 15.082 4.89464 15.0653 4.84346C15.0486 4.79229 15.0176 4.74706 14.976 4.71322L14.1924 4.08675C14.1525 4.05167 14.1239 4.00551 14.11 3.95408C14.0961 3.90265 14.0976 3.84823 14.1144 3.79767C14.1311 3.74711 14.1623 3.70265 14.2041 3.66989C14.2459 3.63713 14.2963 3.61752 14.3491 3.61353L15.3476 3.56846C15.4007 3.56648 15.4519 3.54873 15.495 3.51745C15.538 3.48617 15.5709 3.44275 15.5894 3.39269L15.9297 2.43722Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n d=\"M21.0662 2.43722C21.0848 2.38471 21.1192 2.33929 21.1644 2.30717C21.2097 2.27505 21.2638 2.25781 21.3192 2.25781C21.3746 2.25781 21.4286 2.27505 21.4739 2.30717C21.5192 2.33929 21.5535 2.38471 21.5722 2.43722L21.9214 3.38367C21.9409 3.43309 21.974 3.47588 22.0169 3.50702C22.0597 3.53815 22.1105 3.55634 22.1632 3.55944L23.1662 3.60451C23.2211 3.60658 23.274 3.62553 23.3179 3.65882C23.3617 3.6921 23.3944 3.73812 23.4115 3.79067C23.4286 3.84322 23.4292 3.89977 23.4134 3.95271C23.3976 4.00565 23.366 4.05244 23.3229 4.08675L22.5393 4.71322C22.4977 4.74706 22.4667 4.79229 22.45 4.84346C22.4333 4.89464 22.4317 4.94957 22.4453 5.00166L22.714 5.97065C22.7299 6.02406 22.729 6.08113 22.7115 6.13402C22.6939 6.18692 22.6605 6.23306 22.6159 6.26613C22.5713 6.29919 22.5176 6.31756 22.4622 6.31872C22.4068 6.31988 22.3524 6.30378 22.3065 6.27261L21.4692 5.71375C21.4244 5.68483 21.3724 5.66945 21.3192 5.66945C21.266 5.66945 21.2139 5.68483 21.1692 5.71375L20.3363 6.27261C20.29 6.3027 20.2357 6.31797 20.1806 6.3164C20.1254 6.31483 20.0721 6.2965 20.0275 6.26382C19.9829 6.23114 19.9492 6.18564 19.9308 6.13332C19.9124 6.08099 19.9102 6.02428 19.9244 5.97065L20.1931 5.00166C20.2084 4.95007 20.208 4.89506 20.1921 4.84367C20.1761 4.79228 20.1453 4.74686 20.1035 4.71322L19.3155 4.08675C19.2756 4.05167 19.2469 4.00551 19.233 3.95408C19.2191 3.90265 19.2207 3.84823 19.2374 3.79767C19.2542 3.74711 19.2854 3.70265 19.3271 3.66989C19.3689 3.63713 19.4194 3.61752 19.4722 3.61353L20.4752 3.56846C20.5279 3.56535 20.5787 3.54717 20.6215 3.51603C20.6643 3.4849 20.6974 3.44211 20.7169 3.39269L21.0662 2.43722Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n d=\"M26.1924 2.43722C26.2111 2.38471 26.2454 2.33929 26.2907 2.30717C26.336 2.27505 26.39 2.25781 26.4454 2.25781C26.5008 2.25781 26.5549 2.27505 26.6001 2.30717C26.6454 2.33929 26.6797 2.38471 26.6984 2.43722L27.0476 3.38367C27.0667 3.43341 27.0997 3.4765 27.1426 3.50771C27.1855 3.53892 27.2365 3.55689 27.2894 3.55944L28.2879 3.60451C28.3447 3.60186 28.4009 3.61741 28.4484 3.64894C28.4959 3.68046 28.5322 3.72633 28.5521 3.77995C28.572 3.83356 28.5745 3.89215 28.5592 3.94729C28.5439 4.00242 28.5117 4.05125 28.467 4.08675L27.6611 4.71322C27.6193 4.74686 27.5885 4.79228 27.5725 4.84367C27.5566 4.89506 27.5562 4.95007 27.5715 5.00166L27.8357 5.97065C27.8516 6.02406 27.8508 6.08113 27.8332 6.13402C27.8157 6.18692 27.7823 6.23306 27.7377 6.26613C27.6931 6.29919 27.6394 6.31756 27.584 6.31872C27.5286 6.31988 27.4742 6.30378 27.4282 6.27261L26.5909 5.71375C26.5469 5.68522 26.4956 5.67005 26.4432 5.67005C26.3908 5.67005 26.3395 5.68522 26.2954 5.71375L25.4581 6.27261C25.4121 6.30378 25.3578 6.31988 25.3024 6.31872C25.247 6.31756 25.1933 6.29919 25.1487 6.26613C25.1041 6.23306 25.0707 6.18692 25.0531 6.13402C25.0356 6.08113 25.0347 6.02406 25.0506 5.97065L25.3193 5.00166C25.3329 4.94957 25.3313 4.89464 25.3146 4.84346C25.2979 4.79229 25.2669 4.74706 25.2253 4.71322L24.4372 4.08675C24.3972 4.0514 24.3685 4.00485 24.3547 3.95304C24.341 3.90123 24.3429 3.84648 24.3602 3.79576C24.3775 3.74504 24.4094 3.70064 24.4518 3.66819C24.4942 3.63574 24.5452 3.61671 24.5984 3.61353L25.5969 3.56846C25.6499 3.56648 25.7012 3.54873 25.7443 3.51745C25.7873 3.48617 25.8201 3.44275 25.8387 3.39269L26.1924 2.43722Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n d=\"M5.69413 2.43722C5.71277 2.38471 5.74709 2.33929 5.79238 2.30717C5.83766 2.27505 5.89171 2.25781 5.94711 2.25781C6.00251 2.25781 6.05656 2.27505 6.10184 2.30717C6.14713 2.33929 6.18145 2.38471 6.2001 2.43722L6.54935 3.38367C6.56839 3.43341 6.60138 3.4765 6.6443 3.50771C6.68723 3.53892 6.73825 3.55689 6.79114 3.55944L7.78965 3.60451C7.84454 3.60658 7.89748 3.62553 7.94134 3.65882C7.9852 3.6921 8.01787 3.73812 8.03495 3.79067C8.05202 3.84322 8.05269 3.89977 8.03685 3.95271C8.02101 4.00565 7.98943 4.05244 7.94636 4.08675L7.16278 4.71322C7.12102 4.74686 7.09019 4.79228 7.07424 4.84367C7.05829 4.89506 7.05793 4.95007 7.07323 5.00166L7.33741 5.97065C7.35333 6.02406 7.35246 6.08113 7.33491 6.13402C7.31736 6.18692 7.28399 6.23306 7.23937 6.26613C7.19476 6.29919 7.14107 6.31756 7.08568 6.31872C7.03029 6.31988 6.97589 6.30378 6.92995 6.27261L6.0792 5.71375C6.03513 5.68522 5.98384 5.67005 5.93144 5.67005C5.87904 5.67005 5.82775 5.68522 5.78368 5.71375L4.9598 6.27261C4.91385 6.30378 4.85946 6.31988 4.80406 6.31872C4.74867 6.31756 4.69499 6.29919 4.65037 6.26613C4.60575 6.23306 4.57238 6.18692 4.55483 6.13402C4.53728 6.08113 4.53641 6.02406 4.55233 5.97065L4.82099 5.00166C4.83563 4.95042 4.83539 4.89604 4.82032 4.84493C4.80524 4.79382 4.77596 4.74812 4.73592 4.71322L3.94338 4.08675C3.90352 4.05167 3.87484 4.00551 3.86096 3.95408C3.84708 3.90265 3.8486 3.84823 3.86535 3.79767C3.88209 3.74711 3.91331 3.70265 3.95507 3.66989C3.99684 3.63713 4.04729 3.61752 4.1001 3.61353L5.0986 3.56846C5.15165 3.56648 5.20292 3.54873 5.24596 3.51745C5.28899 3.48617 5.32185 3.44275 5.34039 3.39269L5.69413 2.43722Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n d=\"M10.8164 2.43722C10.835 2.38471 10.8694 2.33929 10.9147 2.30717C10.9599 2.27505 11.014 2.25781 11.0694 2.25781C11.1248 2.25781 11.1788 2.27505 11.2241 2.30717C11.2694 2.33929 11.3037 2.38471 11.3224 2.43722L11.6716 3.38367C11.6911 3.43309 11.7243 3.47588 11.7671 3.50702C11.8099 3.53815 11.8607 3.55634 11.9134 3.55944L12.9164 3.60451C12.9713 3.60658 13.0242 3.62553 13.0681 3.65882C13.112 3.6921 13.1446 3.73812 13.1617 3.79067C13.1788 3.84322 13.1794 3.89977 13.1636 3.95271C13.1478 4.00565 13.1162 4.05244 13.0731 4.08675L12.2895 4.71322C12.2479 4.74706 12.2169 4.79229 12.2002 4.84346C12.1835 4.89464 12.1819 4.94957 12.1955 5.00166L12.4642 5.97065C12.4784 6.02428 12.4762 6.08099 12.4578 6.13332C12.4394 6.18564 12.4057 6.23114 12.3611 6.26382C12.3165 6.2965 12.2631 6.31483 12.208 6.3164C12.1529 6.31797 12.0986 6.3027 12.0522 6.27261L11.2194 5.71375C11.1746 5.68483 11.1226 5.66945 11.0694 5.66945C11.0162 5.66945 10.9641 5.68483 10.9194 5.71375L10.1089 6.27261C10.0626 6.3027 10.0083 6.31797 9.95316 6.3164C9.89804 6.31483 9.84467 6.2965 9.80009 6.26382C9.75552 6.23114 9.72181 6.18564 9.70341 6.13332C9.685 6.08099 9.68277 6.02428 9.697 5.97065L9.96566 5.00166C9.98035 4.95003 9.9797 4.8952 9.96379 4.84394C9.94787 4.79268 9.91739 4.74724 9.87611 4.71322L9.08805 4.08675C9.04895 4.0537 9.02002 4.01011 9.00465 3.9611C8.98928 3.91209 8.9881 3.85968 9.00126 3.81002C9.01442 3.76036 9.04136 3.7155 9.07893 3.6807C9.11651 3.6459 9.16316 3.6226 9.21342 3.61353L10.2164 3.56846C10.2691 3.56535 10.3199 3.54717 10.3627 3.51603C10.4056 3.4849 10.4387 3.44211 10.4582 3.39269L10.8164 2.43722Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M2.94486 1.35989H28.4672C28.7048 1.35989 28.9325 1.45486 29.1005 1.6239C29.2684 1.79294 29.3628 2.02221 29.3628 2.26127V6.7682C29.3628 7.00726 29.2684 7.23653 29.1005 7.40557C28.9325 7.57462 28.7048 7.66958 28.4672 7.66958H23.0941L22.7359 7.94901L20.8553 9.41376V7.66958H2.94486C2.70735 7.66958 2.47957 7.57462 2.31163 7.40557C2.14369 7.23653 2.04934 7.00726 2.04934 6.7682V2.26127C2.04934 2.02221 2.14369 1.79294 2.31163 1.6239C2.47957 1.45486 2.70735 1.35989 2.94486 1.35989ZM19.512 9.02166V11.5005C19.5108 11.5458 19.5186 11.591 19.5349 11.6333C19.5512 11.6756 19.5757 11.7142 19.6069 11.7469C19.6382 11.7796 19.6755 11.8058 19.7169 11.8238C19.7583 11.8418 19.8028 11.8514 19.8478 11.852C19.9199 11.8522 19.9897 11.8267 20.0449 11.7799L23.4747 9.02166H28.4672C28.7613 9.02166 29.0524 8.96337 29.324 8.85013C29.5956 8.73688 29.8424 8.57089 30.0503 8.36164C30.2582 8.15238 30.4231 7.90396 30.5356 7.63056C30.6481 7.35716 30.7061 7.06413 30.7061 6.7682V2.26127C30.7061 1.66362 30.4702 1.09044 30.0503 0.667836C29.6305 0.24523 29.061 0.0078125 28.4672 0.0078125H2.94486C2.35109 0.0078125 1.78164 0.24523 1.36179 0.667836C0.941928 1.09044 0.706055 1.66362 0.706055 2.26127L0.706055 6.7682C0.706055 7.06413 0.763963 7.35716 0.876474 7.63056C0.988984 7.90396 1.15389 8.15238 1.36179 8.36164C1.78164 8.78424 2.35109 9.02166 2.94486 9.02166H19.512Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n d=\"M4.78192 34.3358C4.98969 29.5126 8.38554 23.0882 10.5802 22.7548C10.6644 22.7473 10.7492 22.7473 10.8334 22.7548C11.1737 22.763 11.5012 22.8875 11.7619 23.1078L11.8658 23.1731L12.7683 23.7286L15.1123 25.1795C15.3422 25.2988 15.5971 25.361 15.8558 25.361C16.1144 25.361 16.3693 25.2988 16.5992 25.1795L19.4886 23.4541L20.3587 22.9444C20.592 22.804 20.8595 22.7316 21.1313 22.7352C24.235 22.9182 26.7218 29.493 26.9296 34.3162C26.9296 34.7933 26.6764 35.192 26.3323 35.192H5.37927C5.04164 35.2181 4.75594 34.8129 4.78192 34.3358Z\"\r\n fill=\"#53565A\"\r\n />\r\n <path\r\n d=\"M15.8525 22.578C18.4882 22.578 20.6248 20.4274 20.6248 17.7744C20.6248 15.1215 18.4882 12.9708 15.8525 12.9708C13.2167 12.9708 11.0801 15.1215 11.0801 17.7744C11.0801 20.4274 13.2167 22.578 15.8525 22.578Z\"\r\n fill=\"#53565A\"\r\n />\r\n </svg>\r\n </div>\r\n <div class=\"banner-text\">\r\n <span>\r\n {{ ratingBannerText }}\r\n <a\r\n *ngIf=\"ratingsBannerLinkText && ratingsBannerLink\"\r\n href=\"{{ ratingsBannerLink }}\"\r\n target=\"{{ isCernerPage ? '_blank' : '_self'}}\"\r\n >{{ ratingsBannerLinkText }}</a\r\n >\r\n </span>\r\n </div>\r\n <div class=\"close-icon\" (click)=\"closeBanner()\">\r\n <svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L15 15\" stroke-width=\"2\" />\r\n <path d=\"M1 14.998L15 1\" stroke-width=\"2\" />\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n <cs-legal-copy\r\n *ngIf=\"showLegalCopy\"\r\n [legalCopy]=\"legalCopy\"\r\n [legalCopyToolTip]=\"legalCopyToolTip\"\r\n [legalCopyToolTipInfo]=\"legalCopyToolTipInfo\"\r\n ></cs-legal-copy>\r\n <cs-cta-new-search [isDignityHealthDivision]=\"isDignityHealthDivision\" *ngIf=\"isDignityHealthDivision\"></cs-cta-new-search>\r\n <cs-filters\r\n *ngIf=\"!isFiltersLeftSidePanelRequired\"\r\n [selectedLocation]=\"selectedLocation\"\r\n [filtersModel]=\"filtersModel\"\r\n [medicalGroupToolTip]=\"medicalGroupToolTip\"\r\n [medicalGroupHoverText]=\"medicalGroupHoverText\"\r\n [affiliationToolTip]=\"affiliationToolTip\"\r\n [affiliationHoverText]=\"affiliationHoverText\"\r\n [defaultSearchDistance]=\"defaultSearchDistance\"\r\n [defaultSearchDistanceWithMedGroup]=\"defaultSearchDistanceWithMedGroup\"\r\n [showOnlineSchedulingFilter]=\"showOnlineSchedulingFilter\"\r\n [showVideoVisitsFilter]=\"showVideoVisitsFilter\"\r\n [showOnlineSchedulingAllVisitFilter]=\"showOnlineSchedulingAllVisitFilter\"\r\n [showAcceptingNewPatientsFilter]=\"showAcceptingNewPatientsFilter\"\r\n [showAvailabilityFilter]=\"showAvailabilityFilter\"\r\n [showSpecialtyFilter]=\"showSpecialtyFilter\"\r\n [showMedicalGroupFilter]=\"showMedicalGroupFilter\"\r\n [showAffiliationFilter]=\"showAffiliationFilter\"\r\n [showGenderFilter]=\"showGenderFilter\"\r\n [showInsuranceFilter]=\"showInsuranceFilter\"\r\n [showLanguageFilter]=\"showLanguageFilter\"\r\n [showSearchRadiusFilter]=\"showSearchRadiusFilter\"\r\n [embedSource]=\"embedSource\"\r\n [multipleMedicalGroupSelection]=\"multipleMedicalGroupSelection\"\r\n [showInsuranceAcceptedFilter]=\"showInsuranceAcceptedFilter\"\r\n [isDignityHealthDivision]=\"isDignityHealthDivision\"\r\n (medicalGroupChange)=\"handleMedicalGroupChange($event)\"\r\n (filtersModelChange)=\"handleFilterChange($event)\"\r\n (addMedicalGroupItems)=\"addMedicalGroups($event)\"\r\n (locationNameClosed)=\"handlelocationNameClosed($event)\"\r\n ></cs-filters>\r\n <cs-medical-copy *ngIf=\"showLogoLegend && isFiltersLeftSidePanelRequired\"></cs-medical-copy>\r\n <cs-cta-new-search [isDignityHealthDivision]=\"isDignityHealthDivision\" *ngIf=\"!isDignityHealthDivision\"></cs-cta-new-search>\r\n <div [ngClass]=\"{'sidePanel': isFiltersLeftSidePanelRequired}\">\r\n <cs-filters-left-panel\r\n *ngIf=\"isFiltersLeftSidePanelRequired\"\r\n class=\"filtersSidePanel\"\r\n [selectedLocation]=\"selectedLocation\"\r\n [filtersModel]=\"filtersModel\"\r\n [medicalGroupToolTip]=\"medicalGroupToolTip\"\r\n [medicalGroupHoverText]=\"medicalGroupHoverText\"\r\n [affiliationToolTip]=\"affiliationToolTip\"\r\n [affiliationHoverText]=\"affiliationHoverText\"\r\n [defaultSearchDistance]=\"defaultSearchDistance\"\r\n [defaultSearchDistanceWithMedGroup]=\"defaultSearchDistanceWithMedGroup\"\r\n [showOnlineSchedulingFilter]=\"showOnlineSchedulingFilter\"\r\n [showVideoVisitsFilter]=\"showVideoVisitsFilter\"\r\n [showOnlineSchedulingAllVisitFilter]=\"showOnlineSchedulingAllVisitFilter\"\r\n [showAcceptingNewPatientsFilter]=\"showAcceptingNewPatientsFilter\"\r\n [showAvailabilityFilter]=\"showAvailabilityFilter\"\r\n [showSpecialtyFilter]=\"showSpecialtyFilter\"\r\n [showMedicalGroupFilter]=\"showMedicalGroupFilter\"\r\n [showAffiliationFilter]=\"showAffiliationFilter\"\r\n [showGenderFilter]=\"showGenderFilter\"\r\n [showInsuranceFilter]=\"showInsuranceFilter\"\r\n [showLanguageFilter]=\"showLanguageFilter\"\r\n [showSearchRadiusFilter]=\"showSearchRadiusFilter\"\r\n [embedSource]=\"embedSource\"\r\n [multipleMedicalGroupSelection]=\"multipleMedicalGroupSelection\"\r\n [showInsuranceAcceptedFilter]=\"showInsuranceAcceptedFilter\"\r\n (medicalGroupChange)=\"handleMedicalGroupChange($event)\"\r\n (filtersModelChange)=\"handleFilterChange($event)\"\r\n (addMedicalGroupItems)=\"addMedicalGroups($event)\"\r\n (locationNameClosed)=\"handlelocationNameClosed($event)\"\r\n [isDignityHealthDivision]=\"isDignityHealthDivision\"\r\n >\r\n </cs-filters-left-panel>\r\n <div class=\"search-results-area\" [ngClass]=\"{'search-results-side-panel': addClassSearchResultsWithSidePanel() }\">\r\n <div class=\"sort-by\" *ngIf=\"!hasNoResults && providerResults.length > 0 && !showSpinner\">\r\n <div class=\"results-count p p1\" role=\"status\"><h2 class=\"p p1\">{{ resultsString }}</h2></div>\r\n <cs-mobile-filters\r\n *ngIf=\"isFiltersLeftSidePanelRequired\"\r\n [filtersModel]=\"filtersModel\"\r\n [medicalGroupToolTip]=\"medicalGroupToolTip\"\r\n [medicalGroupHoverText]=\"medicalGroupHoverText\"\r\n [affiliationToolTip]=\"affiliationToolTip\"\r\n [affiliationHoverText]=\"affiliationHoverText\"\r\n [defaultSearchDistanceMobile]=\"defaultSearchDistance\"\r\n [defaultSearchDistanceWithMG]=\"defaultSearchDistanceWithMedGroup\"\r\n [showOnlineSchedulingFilter]=\"showOnlineSchedulingFilter\"\r\n [showVideoVisitsFilter]=\"showVideoVisitsFilter\"\r\n [showAcceptingNewPatientsFilter]=\"showAcceptingNewPatientsFilter\"\r\n [showAvailabilityFilter]=\"showAvailabilityFilter\"\r\n [showSpecialtyFilter]=\"showSpecialtyFilter\"\r\n [showMedicalGroupFilter]=\"showMedicalGroupFilter\"\r\n [showAffiliationFilter]=\"showAffiliationFilter\"\r\n [showGenderFilter]=\"showGenderFilter\"\r\n [showInsuranceFilter]=\"showInsuranceFilter\"\r\n [showLanguageFilter]=\"showLanguageFilter\"\r\n [selectedLocation]=\"selectedLocation\"\r\n [alignTop]=\"alignTop\"\r\n [multipleMedicalGroupSelection]=\"multipleMedicalGroupSelection\"\r\n [showInsuranceAcceptedFilter]=\"showInsuranceAcceptedFilter\"\r\n [showOnlineSchedulingAllVisitFilter]=\"showOnlineSchedulingAllVisitFilter\"\r\n [isDignityHealthDivision]=\"isDignityHealthDivision\"\r\n (filtersModelChange)=\"handleFilterChange($event)\"\r\n ></cs-mobile-filters>\r\n <div class=\"sort-dropdown\" *ngIf=\"showSort && showOldSortOption()\">\r\n <dhcl-sort-dropdown\r\n [attr.aria-roledescription]=\"'sort by '+ selectedSortValue\"\r\n [placeholder]=\"selectedSortValue\"\r\n [dropdowns]=\"sortDropdowns\"\r\n [selectedValue]=\"searchFilters?.sortBy\"\r\n [showDropdownOnFocus]=\"false\"\r\n (changed)=\"handleSortChange($event)\"\r\n ></dhcl-sort-dropdown>\r\n </div>\r\n </div>\r\n <cs-medical-copy *ngIf=\"showLogoLegend && !isFiltersLeftSidePanelRequired\"></cs-medical-copy>\r\n <div *ngIf=\"showSpinner\">\r\n <dhcl-loading-spinner\r\n [showSpinner]=\"true\"\r\n [fixed]=\"showSpinnerVmfhProvider\"\r\n [bgColor]=\"'transparent'\"\r\n id=\"dhclLoadingSpinner\"\r\n [ngClass]=\"{'loading-spinner': !showSpinnerVmfhProvider}\"\r\n aria-label=\"Loading\"\r\n role=\"alert\"\r\n aria-live=\"polite\"\r\n >\r\n </dhcl-loading-spinner>\r\n </div>\r\n <div\r\n class=\"search-results-container\"\r\n [ngClass]=\"{'cards-container-with-left-panel-filters': isFiltersLeftSidePanelRequired }\"\r\n *ngIf=\"providerResults.length > 0 && !showSpinner\"\r\n >\r\n <div role=\"list\" class=\"search-results\" [ngClass]=\"{'cards-container-with-left-panel-filters': isFiltersLeftSidePanelRequired }\">\r\n <cs-result-card\r\n role=\"listitem\"\r\n *ngFor=\"let provider of providerResults; let i = index\"\r\n [provider]=\"provider\"\r\n (scheduleProvider)=\"scheduleProviderHandler($event)\"\r\n [showDocAsap]=\"showDocAsap\"\r\n [docAsapIds]=\"docAsapIds\"\r\n (toggleModal)=\"toggleModal($event)\"\r\n id=\"item-{{i}}\"\r\n #providerList\r\n ></cs-result-card>\r\n </div>\r\n </div>\r\n <div class=\"results-count p p1\" *ngIf=\"!hasNoResults && !showSpinner\" role=\"status\">{{ resultsString }}</div>\r\n <button\r\n class=\"more-button active\"\r\n *ngIf=\"!hasNoResults && showMoreButton && !loadingMoreResults && providerResults.length > 0 && !showSpinner\"\r\n (click)=\"getMoreResults()\"\r\n [attr.aria-label]=\"'More search results'\"\r\n >\r\n <div>\r\n More\r\n <svg viewBox=\"0 0 16 10\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M15 1L8 8L1.00063 1\" />\r\n </svg>\r\n </div>\r\n </button>\r\n <button class=\"more-button\" *ngIf=\"showMoreButton && loadingMoreResults\">\r\n <div>Loading...</div>\r\n </button>\r\n <div class=\"search-results-container\" *ngIf=\"contents && dynamicFilterContents.length > 0\">\r\n <div class=\"search-results\">\r\n <cs-dynamic-filter-content [dynamicFilterContents]=\"dynamicFilterContents\"></cs-dynamic-filter-content>\r\n </div>\r\n </div>\r\n <div></div>\r\n <div\r\n class=\"no-search-results\"\r\n *ngIf=\"hasNoResults\"\r\n [ngClass]=\"{'search-results-side-panel': isFiltersLeftSidePanelRequired && isDesktopViewport }\"\r\n role=\"status\"\r\n >\r\n <div>\r\n <svg class=\"info-icon\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M24 12C24 5.41935 18.5806 0 12 0C5.37097 0 0 5.41935 0 12C0 18.629 5.37097 24 12 24C18.5806 24 24 18.629 24 12ZM12 14.4194C13.2097 14.4194 14.2258 15.4355 14.2258 16.6452C14.2258 17.9032 13.2097 18.871 12 18.871C10.7419 18.871 9.77419 17.9032 9.77419 16.6452C9.77419 15.4355 10.7419 14.4194 12 14.4194ZM9.87097 6.43548C9.82258 6.09677 10.1129 5.80645 10.4516 5.80645H13.5C13.8387 5.80645 14.129 6.09677 14.0806 6.43548L13.7419 13.0161C13.6935 13.3548 13.4516 13.5484 13.1613 13.5484H10.7903C10.5 13.5484 10.2581 13.3548 10.2097 13.0161L9.87097 6.43548Z\"\r\n fill=\"#4D525A\"\r\n />\r\n </svg>\r\n <div class=\"no-search-results-title\">\r\n {{ noResultText }}<br />{{ fuzzySearchRecommendationText }}<br /><span>{{ fuzzySearchText }}</span>\r\n </div>\r\n </div>\r\n <div class=\"no-search-results-content\" role=\"status\" *ngIf=\"!isFuzzySearch\">\r\n <div>Please try:</div>\r\n <ul>\r\n <li>Checking your spelling</li>\r\n <li>Searching again using different keywords</li>\r\n <li>Removing your filters</li>\r\n </ul>\r\n </div>\r\n <div class=\"no-search-results-content\" role=\"status\" *ngIf=\"isFuzzySearch\">\r\n <div *ngFor=\"let item of fuzzySearchList; let i = index\">\r\n <a href=\"javascript:void(0)\" (click)=\"fuzzySearch(item)\">{{item}}</a>\r\n </div>\r\n </div>\r\n <div class=\"no-search-results-help\" *ngIf=\"hasNoResults && showRegionalHelplineNumbers\">\r\n <cs-regional-helpline-numbers\r\n [showinSearchResultsPage]=\"true\"\r\n *ngIf=\"showRegionalHelplineNumbers\"\r\n [helplineNumbers]=\"helplineNumbers\"\r\n [displayInfo]=\"displayInfo\"\r\n [displayHeadingInvalid]=\"displayHeadingInvalid\"\r\n [showMyProviders]=\"showMyProviders\"\r\n [showEmergencyCare]=\"showEmergencyCare\"\r\n [isDesktopViewport]=\"isDesktopViewport\"\r\n >\r\n </cs-regional-helpline-numbers>\r\n </div>\r\n <ng-container *ngIf=\"useLegacyAPI\">\r\n <cs-provider-card\r\n *ngIf=\"selectedLocation\"\r\n [inputParams]=\"providerCardSearchParams\"\r\n (scheduleProvider)=\"scheduleProviderHandler($event)\"\r\n [showDocAsap]=\"showDocAsap\"\r\n [docAsapIds]=\"docAsapIds\"\r\n [handleNavigateToSchedulingSpa]=\"handleNavigateToSchedulingSpa\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [market]=\"market\"\r\n >\r\n </cs-provider-card>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <dhcl-modal\r\n *ngIf=\"onlineSchedulingType === 'GuidedFlow' && launchGuidedFlow && guidedFlowProvider\"\r\n [alignTop]=\"true\"\r\n [customClass]=\"getCernerClass('guided-flow-modal')\"\r\n [closeOnOverlay]=\"false\"\r\n [show]=\"true\"\r\n (closeClicked)=\"closeScheduleModal()\"\r\n role=\"dialog\"\r\n aria-labelledby=\"stepTitle\"\r\n >\r\n <div *ngIf=\"isCernerPage\">\r\n <!-- baseurl needs to be configured from pipeline -->\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"guidedFlowProvider\"\r\n [facets]=\"[]\"\r\n [npi]=\"guidedFlowProvider.npi\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [baseUrl]=\"bookingBaseUrl\"\r\n [handleNavigateToSchedulingSpa]=\"true\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"closeScheduleModal()\"\r\n >\r\n </dhgf-guided-flow>\r\n </div>\r\n <div *ngIf=\"!isCernerPage\">\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [provider]=\"guidedFlowProvider\"\r\n [facets]=\"[]\"\r\n [npi]=\"guidedFlowProvider.npi\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [handleNavigateToSchedulingSpa]=\"handleNavigateToSchedulingSpa\"\r\n (navigateToSchedulingSpa)=\"navigateToSchedulingSpa($event)\"\r\n [market]=\"market\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n [embedSource]=\"embedSource\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"closeScheduleModal()\"\r\n >\r\n </dhgf-guided-flow>\r\n </div>\r\n </dhcl-modal>\r\n</div>\r\n","import * as uuid from 'uuid';\r\nimport { AfterViewChecked, Component, ElementRef, HostListener, Input, OnDestroy, OnInit, QueryList, ViewChildren } from '@angular/core';\r\nimport { ActivatedRoute, ActivatedRouteSnapshot, Params, Router, ParamMap } from '@angular/router';\r\nimport { combineLatest, Observable, of, Subscription, throwError } from 'rxjs';\r\nimport { catchError, concatMap, debounceTime, finalize, tap } from 'rxjs/operators';\r\nimport { FacetSummary, FiltersModel, FiltersModelPartialHelper } from '../../models/filters';\r\nimport { LocationConverter, SelectedLocation } from '../../models/location';\r\nimport { Provider, ProviderInterfaceHelper } from '../../models/provider';\r\nimport { ProviderImage } from '../../models/provider-image';\r\nimport { SearchFilter, CjaTagSearchFilter } from '../../models/search-filter';\r\nimport { RuntimeConfiguration } from '../../services/configuration-injection.service';\r\nimport { FilterService, LocationSearchRequest, ProviderSearchResponse } from '../../services/filter.service';\r\nimport { ProviderService } from '../../services/provider.service';\r\nimport { ProviderCardParams } from '../../components/provider-card/provider-card.component';\r\nimport { MedGroup } from '../../models/medgroup';\r\nimport { CookieService } from '../../services/cookie.service';\r\nimport { LocationService } from '../../services/location.service';\r\nimport { ApiResponse, ApiResponseCreator } from '../../utils/api-response';\r\nimport '../../utils/string-prototypes';\r\nimport { FadUrlBuilder } from '../../utils/url/fad-url-builder';\r\nimport { UrlBuilderParams } from '../../utils/url/url-builder-params';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { SortingOption } from '../../models/configuration';\r\nimport { ProviderRatingService } from '../../services/provider-rating.service';\r\nimport { HierarchySecurityService } from '../../configs/HierarchySecurityService';\r\nimport { EventPublisherService } from '../../services/event-publisher.service';\r\nimport { FadEvent, mapSearchCriteriaToFadEvent } from '../../models/fad-event';\r\nimport { LogService } from '../../services/log.service';\r\nimport { ResizeService } from '../../../app/services/resize.service';\r\nimport { setDialogPosition } from '../../utils/utils';\r\nimport { SearchFacet } from 'src/app/models/search-facet';\r\nimport { FadEventTypes } from 'src/app/models/fad-event-types';\r\nimport { DynamicFilterContentDetails } from 'src/app/models/DynamicFilterContentDetails';\r\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\r\nimport { AppInsightsMonitoringService } from 'src/app/services/app-insights-monitoring.service';\r\nimport { FadLinkService } from 'src/app/services/fad-link.service';\r\nimport { ProviderRating } from 'src/app/models/provider-rating';\r\nimport { CernerModalService } from 'src/app/services/cerner-modal.service';\r\nimport { isNumeric } from 'rxjs/internal-compatibility';\r\nimport { TitleTagHandlerService } from 'src/app/services/title-tag-handler.service';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { CjaTagService } from '../../services/cja-tag.service';\r\n\r\n@Component({\r\n selector: 'cs-search-results',\r\n templateUrl: './search-results.component.html',\r\n styleUrls: ['./search-results.component.scss']\r\n})\r\nexport class SearchResultsComponent implements OnInit, AfterViewChecked, OnDestroy {\r\n @Input() providers: Provider[] = [];\r\n @Input() headingText = '';\r\n launchGuidedFlow: boolean;\r\n redirectFromFAL = false;\r\n guidedFlowProvider: Provider;\r\n providerResults: Provider[] = [];\r\n dynamicFilterContents: Array<DynamicFilterContentDetails> = [];\r\n contents: boolean;\r\n resultsLoaded = false;\r\n pageNumber = 1;\r\n keyword = '';\r\n loadingMoreResults = false;\r\n bannerDisabled = true;\r\n selectedLocation: SelectedLocation;\r\n runtimeConfig: RuntimeConfiguration;\r\n medGroupDictionary = [];\r\n locationCookieSubscription$: Subscription;\r\n urlSubscription$: Subscription;\r\n providerImage: ProviderImage;\r\n searchFilters: SearchFilter = new SearchFilter();\r\n medicalGroupLink: any;\r\n showSpinner = true;\r\n providerCardSearchParams: ProviderCardParams;\r\n docAsapIds: { npi: number; docAsapId: number }[] = [];\r\n sortDropdowns: SortingOption[];\r\n sortOptions: SortingOption[];\r\n showSort: boolean;\r\n selectedSortValue: string;\r\n showDocAsap = false;\r\n isLocationRequired: boolean;\r\n filtersModel: FiltersModel = new FiltersModel(this.configurationService);\r\n isCaptchaEnabled: boolean;\r\n noResultText = '';\r\n ratingBannerText: string;\r\n ratingsBannerLinkText: string;\r\n ratingsBannerLink: string;\r\n onlineSchedulingType: string;\r\n showStarRatingsBanner: boolean;\r\n showRegionalHelplineNumbers: boolean;\r\n searchSessionId: string;\r\n providerSchedulingFeature: boolean;\r\n helplineNumbers: any[];\r\n isDesktopViewport: boolean;\r\n displayInfo: string;\r\n displayHeadingInvalid: string;\r\n showEmergencyCare: boolean;\r\n showMyProviders: boolean;\r\n market: string;\r\n medicalGroupToolTip: string;\r\n medicalGroupHoverText: string;\r\n affiliationToolTip: string;\r\n affiliationHoverText: string;\r\n\r\n defaultSearchDistance: number;\r\n defaultSearchDistanceWithMedGroup: number;\r\n useLegacyAPI = true;\r\n showSpinnerVmfhProvider = false;\r\n isShowVideo = false;\r\n videoUrl: SafeResourceUrl;\r\n isFuzzySearch = false;\r\n fuzzySearchList = [];\r\n currentSearchLocation: SelectedLocation;\r\n\r\n showOnlineSchedulingFilter = this.configurationService.showOnlineSchedulingFilter();\r\n showOnlineSchedulingAllVisitFilter = this.configurationService.showOnlineSchedulingAllVisitFilter();\r\n showVideoVisitsFilter = this.configurationService.showVideoVisitsFilter();\r\n showAcceptingNewPatientsFilter = this.configurationService.showAcceptingNewPatientsFilter();\r\n showAvailabilityFilter = this.configurationService.showAvailabilityFilter();\r\n showSpecialtyFilter = this.configurationService.showSpecialtyFilter();\r\n showMedicalGroupFilter = this.configurationService.showMedicalGroupFilter();\r\n showAffiliationFilter = this.configurationService.showAffiliationFilter();\r\n divisionCodes = this.configurationService.getDivisionCodes();\r\n showGenderFilter = this.configurationService.showGenderFilter();\r\n showInsuranceFilter = this.configurationService.showInsuranceFilter();\r\n showLanguageFilter = this.configurationService.showLanguageFilter();\r\n showSearchRadiusFilter = this.configurationService.showSearchRadiusFilter();\r\n embedSource = this.configurationService.getEmbedSource();\r\n showLegalCopy = this.configurationService.showLegalCopy();\r\n legalCopy = this.configurationService.getLegalCopy();\r\n legalCopyToolTip = this.configurationService.getLegalCopyToolTip();\r\n legalCopyToolTipInfo = this.configurationService.getLegalCopyToolTipInfo();\r\n showLogoLegend = this.configurationService.showLogoLegend();\r\n multipleMedicalGroupSelection = this.configurationService.getMultipleMedicalGroupSelection();\r\n isFiltersLeftSidePanelRequired = this.configurationService.getIsFiltersLeftSidePanelRequired();\r\n showInsuranceAcceptedFilter = this.configurationService.showInsuranceAcceptedFilter();\r\n\r\n showBacktoLoctionSearchBtn = false;\r\n includeProviderRoleTypes = false;\r\n showProviderPrefix = this.configurationService.showProviderPrefix();\r\n innerWidth: any;\r\n topStyle: any;\r\n showBackButton = false;\r\n backSearchSiteText = 'Back to site search';\r\n backtoSearchSiteLink = '';\r\n searchFrom = '';\r\n isFuzzyMatchEnabled = false;\r\n fuzzySearchText = '';\r\n fuzzySearchRecommendationText = '';\r\n isCernerPage = false;\r\n isDignityHealthDivision = false;\r\n @ViewChildren('providerList') cards!: QueryList<ElementRef>;\r\n bookingBaseUrl = 'https://mocka.dignityhealth.me';\r\n @HostListener('window:pageshow', ['$event'])\r\n onPageShow(event: any): void {\r\n if (event.persisted) {\r\n window.location.reload();\r\n }\r\n }\r\n\r\n getCernerClass(className: string): string {\r\n return this.cernerModalService.getCernerClass(className);\r\n }\r\n\r\n get alignTop(): boolean {\r\n return this.embedSource != null && (this.embedSource === 'cerner' || this.embedSource === 'mychart') ? true : false;\r\n }\r\n searchButtonClickEvent($event: boolean) {\r\n this.showSpinner = false;\r\n }\r\n get handleNavigateToSchedulingSpa(): boolean {\r\n return (\r\n this.configurationService.getEmbedSource() === 'cerner' ||\r\n this.configurationService.getEmbedSource() === 'mychart' ||\r\n this.fadLinkServer.isSelfHosted()\r\n );\r\n }\r\n\r\n get isMyChart(): boolean {\r\n return this.configurationService.getEmbedSource() != null && this.configurationService.getEmbedSource() === 'mychart';\r\n }\r\n\r\n get isCerner(): boolean {\r\n return this.configurationService.getEmbedSource() != null && this.configurationService.getEmbedSource() === 'cerner';\r\n }\r\n\r\n get resultsString(): string {\r\n if (this.searchFilters && this.providerResults.length > 0) {\r\n const endVal =\r\n this.searchFilters.totalResults > this.searchFilters.pageSize * this.pageNumber\r\n ? this.searchFilters.pageSize * this.pageNumber\r\n : this.searchFilters.totalResults;\r\n return `1 - ${endVal} of ${this.searchFilters.totalResults} results`;\r\n }\r\n }\r\n\r\n get hasNoResults(): boolean {\r\n return this.resultsLoaded && !this.showSpinner && this.providerResults?.length === 0;\r\n }\r\n\r\n get selectedLocationDisplay(): string {\r\n let result = '';\r\n\r\n if (this.selectedLocation) {\r\n if (this.selectedLocation.city && this.selectedLocation.state && this.selectedLocation.zip) {\r\n result = `${this.selectedLocation.city}, ${this.selectedLocation.state} ${this.selectedLocation.zip}`;\r\n } else if (this.selectedLocation.city && this.selectedLocation.state && !this.selectedLocation.zip) {\r\n result = `${this.selectedLocation.city}, ${this.selectedLocation.state}`;\r\n } else if (this.selectedLocation.city && !this.selectedLocation.state && !this.selectedLocation.zip) {\r\n result = `${this.selectedLocation.city}`;\r\n } else if (!this.selectedLocation.city && this.selectedLocation.state) {\r\n result = `${this.selectedLocation.state}`;\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n get showMoreButton(): boolean {\r\n if (this.searchFilters && this.providerResults) {\r\n return this.searchFilters.totalResults > this.providerResults.length;\r\n }\r\n }\r\n\r\n constructor(\r\n private filterService: FilterService,\r\n private locationService: LocationService,\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private urlBuilder: FadUrlBuilder,\r\n private cookieService: CookieService,\r\n private configurationService: ConfigurationService,\r\n private providerService: ProviderService,\r\n private ratingService: ProviderRatingService,\r\n private securityService: HierarchySecurityService,\r\n private eventPublisherService: EventPublisherService,\r\n private logService: LogService,\r\n private resizeService: ResizeService,\r\n private sanitize: DomSanitizer,\r\n private appInsightService: AppInsightsMonitoringService,\r\n private fadLinkServer: FadLinkService,\r\n private cernerModalService: CernerModalService,\r\n private titleTagHandlerService: TitleTagHandlerService,\r\n private cjaTagService: CjaTagService\r\n ) {\r\n this.setFALUrl();\r\n this.isLocationRequired = configurationService.getLocationRequiredDefaultValue();\r\n this.runtimeConfig = configurationService.getRuntimeConfiguration();\r\n this.showSort = configurationService.getSortingConfig().showOptions;\r\n this.isCaptchaEnabled =\r\n document.querySelector('#captcha-enabled')?.getAttribute('value') === 'true' || configurationService.getCaptchaEnabled();\r\n this.market = this.configurationService.getConfigType() || '';\r\n this.useLegacyAPI = this.configurationService.useLegacyAPI();\r\n\r\n }\r\n ngOnInit(): void {\r\n\r\n this.showSpinner = true;\r\n this.onlineSchedulingType = this.configurationService.getOnlineSchedulingType();\r\n this.selectedSortValue = this.configurationService.getDefaultSortOption().label;\r\n this.showRegionalHelplineNumbers = this.configurationService.showRegionalHelplineNumbers();\r\n this.medGroupDictionary = this.configurationService.getMedGroupCodes();\r\n\r\n this.medicalGroupToolTip = this.configurationService.getMedicalGroupFilterToolTipText();\r\n this.medicalGroupHoverText = this.configurationService.getMedicalGroupFilterHoverText();\r\n this.affiliationToolTip = this.configurationService.getHospitalAffiliationFilterToolTipText();\r\n this.affiliationHoverText = this.configurationService.getHospitalAffiliationFilterHoverText();\r\n\r\n this.defaultSearchDistance = this.configurationService.getDefaultSearchDistance();\r\n this.defaultSearchDistanceWithMedGroup = this.configurationService.getDefaultSearchDistanceWhenMedGroupFilterApplied();\r\n\r\n this.bannerDisabled = this.cookieService.isBannerDisabled();\r\n this.sortOptions = this.sortDropdowns = this.configurationService.getSortingConfig().options;\r\n this.providerSchedulingFeature = this.configurationService.getProviderSchedulingFeature();\r\n // Set Location Cookie if we don't have one.\r\n this.locationCookieSubscription$ = this.cookieService.createLocationCookie().subscribe(() => {\r\n this.urlSubscription$ = combineLatest([this.route.params, this.route.queryParams])\r\n .pipe(\r\n debounceTime(0),\r\n tap(() => {\r\n this.filtersModel = new FiltersModel(this.configurationService);\r\n this.getSearchResults(this.route.snapshot);\r\n })\r\n )\r\n .subscribe();\r\n });\r\n\r\n if (this.configurationService.getOnlineSchedulingType() === 'ThirdParty') {\r\n this.initDocAsap();\r\n }\r\n\r\n this.showMyProviders = this.configurationService.showMyProviders();\r\n this.showEmergencyCare = this.configurationService.showEmergencyCare();\r\n this.displayInfo = this.configurationService.getHelplineHeading();\r\n this.displayHeadingInvalid = this.configurationService.getHelplineHeadingInvalid();\r\n this.isDesktopViewport = this.resizeService.isDesktopViewport;\r\n if (this.configurationService.getHelplineNumbers().length > 0) {\r\n this.helplineNumbers = this.configurationService.getHelplineNumbers();\r\n } else {\r\n this.helplineNumbers = [\r\n {\r\n heading: 'Arizona',\r\n phone: '(855) 697-0781'\r\n },\r\n {\r\n heading: 'California',\r\n phone: '(866) 914-3627'\r\n },\r\n {\r\n heading: 'Nevada',\r\n phone: '(866) 984-3627'\r\n }\r\n ];\r\n }\r\n this.getHelplineNumbers();\r\n if (sessionStorage.getItem('sortChanged')) { sessionStorage.removeItem('sortChanged'); }\r\n this.isCernerPage = this.configurationService.getCernerPage();\r\n this.isDignityHealthDivision = (this.divisionCodes && this.divisionCodes[0] == 'dignity-health' && this.configurationService.getMarketCodes()[0] === undefined) ? true : false;\r\n }\r\n\r\n ngAfterViewChecked(): void {\r\n setDialogPosition();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.locationCookieSubscription$?.unsubscribe();\r\n this.urlSubscription$?.unsubscribe();\r\n }\r\n\r\n getStarRatingsBanner(provider: Provider): void {\r\n this.ratingBannerText =\r\n this.securityService.getRatingsBannerText(provider) ?? this.configurationService.defaultProviderRatings.defaultRatingsBannerText;\r\n if (!this.useLegacyAPI) {\r\n this.bannerDisabled = true;\r\n }\r\n this.ratingsBannerLinkText =\r\n this.securityService.getRatingsBannerLinkText(provider) ??\r\n this.configurationService.defaultProviderRatings.defaultRatingsBannerLinkText;\r\n this.ratingsBannerLink =\r\n this.securityService.getRatingsBannerLink(provider) ?? this.configurationService.defaultProviderRatings.defaultRatingsBannerLink;\r\n this.showStarRatingsBanner =\r\n this.securityService.shouldShowStarRatingsBanner(provider) && this.securityService.shouldShowStarRatings(provider);\r\n }\r\n\r\n navigateWithinSearchResults(urlSegments: string[], queryParams?: Params): void {\r\n this.router.navigate(urlSegments, {\r\n relativeTo: this.route,\r\n queryParams,\r\n state: { inPlaceNav: true, filtersModel: this.filtersModel }\r\n });\r\n }\r\n\r\n handlelocationNameClosed(event: any) {\r\n this.redirectToOpenSreach();\r\n }\r\n\r\n redirectToOpenSreach() {\r\n const fadBaseUrl = this.configurationService.getRuntimeConfiguration().fadBaseUrl;\r\n const marketCode = this.configurationService.getMarketCodes()[0];\r\n let embedSourceValue = '';\r\n let routeUrl = '';\r\n\r\n try {\r\n embedSourceValue = this.configurationService.getEmbedSource();\r\n if (!embedSourceValue) {\r\n const falElement = document.querySelector('fal-saas');\r\n if (falElement) {\r\n embedSourceValue = falElement.getAttribute('embedsource');\r\n }\r\n }\r\n }\r\n catch (err) {\r\n console.log(err);\r\n }\r\n\r\n if (embedSourceValue === 'cerner') {\r\n routeUrl = `${fadBaseUrl}${this.configurationService.getRedirectToFADinCerner()}/t`;\r\n }\r\n else if (embedSourceValue === 'mychart') {\r\n routeUrl = `${this.configurationService.getRedirectURLPathForFADEpic()}/t`;\r\n }\r\n else if (document.body.firstElementChild?.firstElementChild?.tagName === 'FAL-SAAS' ||\r\n document.body.firstElementChild?.tagName === 'CS-FAD' ||\r\n document.body.firstElementChild?.tagName === 'FAD-SAAS') {\r\n routeUrl = `${fadBaseUrl}${marketCode}/t`;\r\n }\r\n else {\r\n routeUrl = `${this.configurationService.getRedirectInAEM()}/t`;\r\n }\r\n window.open(routeUrl, '_self');\r\n }\r\n\r\n\r\n handleFilterChange(event: any) {\r\n this.showSpinner = true;\r\n\r\n const location = this.route.snapshot.paramMap.get('location');\r\n this.filtersModel = event;\r\n if (location && location.includes('location-') && this.filtersModel.locationName == '') {\r\n this.redirectToOpenSreach();\r\n return;\r\n }\r\n\r\n if (sessionStorage.getItem('selectedMedicalGroup') && !this.filtersModel.providerMedicalGroup) {\r\n sessionStorage.setItem('selectedMedicalGroup', 'null');\r\n }\r\n\r\n let videoVisitsKeywordTyped = false;\r\n let searchTerm = '';\r\n this.route.params.forEach((param) => {\r\n searchTerm = param.searchTerm?.fromUrlFriendly() ?? '';\r\n if (param.searchTerm && param.searchTerm.trim().toLowerCase().replace(/\\s/g, '').replace(/\\W/g, '') === 'videovisits') {\r\n videoVisitsKeywordTyped = true;\r\n }\r\n });\r\n\r\n const specialty = this.handleSingleSpecialty(searchTerm);\r\n const queryParams = this.filterService.createQueryParams(this.filtersModel);\r\n\r\n if (this.selectedLocation?.city && this.selectedLocation?.state && this.filtersModel.providerMedicalGroup?.length > 0) {\r\n queryParams.location = `${this.selectedLocation.city.toLowerCase()}-${this.selectedLocation.state.toLowerCase()}`;\r\n }\r\n\r\n if (FiltersModelPartialHelper.getDistanceForSearchRadiusKey(this.filtersModel) !== this.configurationService.defaultSearchRadius) {\r\n queryParams.distance = FiltersModelPartialHelper.getDistanceForSearchRadiusKey(this.filtersModel);\r\n }\r\n\r\n this.filtersModel.pageNumber = 1;\r\n this.searchFilters.sortBy = this.filtersModel.sortByNumber;\r\n this.applySortParams(queryParams);\r\n let newUrl = '';\r\n\r\n if (sessionStorage.getItem('LocationIdFromFAL') && window.location.pathname.includes('/l/location')) {\r\n newUrl = this.buildUrlForLocationRoute(specialty, queryParams);\r\n } else {\r\n newUrl = this.buildUrlForNormalRoute(specialty, searchTerm, videoVisitsKeywordTyped);\r\n }\r\n\r\n this.navigateWithinSearchResults([newUrl], queryParams);\r\n this.showSpinner = false;\r\n }\r\n\r\n get medicalGroupMultiple(): string {\r\n\r\n let medGroup = this.filtersModel.providerMedicalGroup.length > 1\r\n ? this.filtersModel.providerMedicalGroup.map((x) => x.name).join('|')\r\n : this.filtersModel.providerMedicalGroup[0].name;\r\n\r\n if (!medGroup) {\r\n medGroup = this.filtersModel.providerMedicalGroup.length > 1\r\n ? this.filtersModel.providerMedicalGroup.map((x) => x['value']).join('|')\r\n : this.filtersModel.providerMedicalGroup[0]['value'];\r\n }\r\n return medGroup;\r\n }\r\n\r\n buildUrlForLocationRoute(specialty: string, queryParams: Params): string {\r\n let newUrl = '';\r\n if (this.filtersModel.selectedSpecialties.length > 1) {\r\n specialty = '';\r\n this.filtersModel.selectedSpecialties.forEach((s) => {\r\n specialty = specialty + '|' + s.name;\r\n });\r\n specialty = specialty.substring(1);\r\n } else if (this.filtersModel.selectedSpecialties.length === 1) {\r\n specialty = this.filtersModel.selectedSpecialties[0].name;\r\n }\r\n\r\n if (this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n queryParams.medGroup = this.medicalGroupMultiple;\r\n }\r\n\r\n this.SetQueryParams(queryParams);\r\n\r\n if (specialty.length > 0) {\r\n queryParams.specialties = specialty;\r\n } else {\r\n delete queryParams.specialties;\r\n }\r\n newUrl = this.prepareUrl();\r\n\r\n return newUrl;\r\n }\r\n\r\n\r\n prepareUrl(): string {\r\n let url = '';\r\n this.route.params.forEach((param) => {\r\n if (param.searchType) {\r\n url = '/' + `${String(param.searchType)}` + '/';\r\n }\r\n if (param.location) {\r\n url = url + `${String(param.location)}`;\r\n }\r\n });\r\n return url;\r\n }\r\n\r\n SetQueryParams(queryParams: Params): void {\r\n this.route.queryParams.forEach((params) => {\r\n if (params.FALredirecttoFAD) {\r\n queryParams.FALredirecttoFAD = params.FALredirecttoFAD;\r\n }\r\n if (params.isHospitalBased) {\r\n queryParams.isHospitalBased = params.isHospitalBased;\r\n }\r\n });\r\n }\r\n\r\n\r\n buildUrlForNormalRoute(specialty: string, searchTerm: string, videoVisitsKeywordTyped: boolean): string {\r\n let newUrl = '';\r\n if (videoVisitsKeywordTyped) {\r\n if (this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0) {\r\n const medGroupsMapped = this.mapMedicalGroupTitle(this.filtersModel.providerMedicalGroup);\r\n newUrl = this.urlBuilder.build({\r\n medGroup: medGroupsMapped,\r\n selectedLocation: this.selectedLocation,\r\n searchTerm: '',\r\n specialty: specialty\r\n } as UrlBuilderParams);\r\n } else {\r\n newUrl = this.urlBuilder.build({\r\n medGroup: '',\r\n selectedLocation: this.selectedLocation,\r\n searchTerm: '',\r\n specialty: specialty\r\n } as UrlBuilderParams);\r\n }\r\n } else {\r\n if (this.filtersModel.providerMedicalGroup.length > 0) {\r\n const medGroupsMapped = this.mapMedicalGroupTitle(this.filtersModel.providerMedicalGroup);\r\n newUrl = this.urlBuilder.build({\r\n medGroup: medGroupsMapped,\r\n selectedLocation: this.selectedLocation,\r\n searchTerm: searchTerm,\r\n specialty: specialty\r\n } as UrlBuilderParams);\r\n } else {\r\n newUrl = this.urlBuilder.build({\r\n medGroup: '',\r\n selectedLocation: this.selectedLocation,\r\n searchTerm: searchTerm,\r\n specialty: specialty\r\n } as UrlBuilderParams);\r\n }\r\n }\r\n return newUrl;\r\n }\r\n\r\n applySortParams(params: Params): void {\r\n const sortByValue: SortingOption = this.searchFilters?.sortBy\r\n ? this.configurationService.getSortingOptionByValue(this.searchFilters.sortBy)\r\n : null;\r\n if (sortByValue && this.configurationService.getDefaultSortOption().name !== sortByValue.name) {\r\n params.sortby = sortByValue.queryParam;\r\n }\r\n }\r\n\r\n handleSortChange(event: SortingOption): void {\r\n this.showSpinner = false;\r\n const sortNumber = event.value;\r\n // need to set the searchFilter's sortBy before issuing the route call because the search requires it to be set.\r\n this.searchFilters.sortBy = sortNumber;\r\n this.selectedSortValue = event.label;\r\n this.filtersModel.sortByNumber = sortNumber;\r\n this.filtersModel.sortBy = event.queryParam;\r\n const queryParams = this.filterService.createQueryParams(this.filtersModel);\r\n this.filtersModel.pageNumber = 1;\r\n this.applySortParams(queryParams);\r\n sessionStorage.setItem('sortChanged', 'true');\r\n sessionStorage.setItem('sortBy', sortNumber.toString());\r\n this.navigateWithinSearchResults([], queryParams);\r\n }\r\n\r\n updateSortCaption(sortValue: string): void {\r\n const sortingOptions = this.configurationService.getSortingConfig();\r\n let selectedValue: SortingOption;\r\n\r\n if (!isNumeric(sortValue)) {\r\n let sortName = '';\r\n switch (sortValue) {\r\n case 'lastname-asc': {\r\n sortName = 'lastname';\r\n break;\r\n }\r\n case 'lastname-desc':\r\n case 'lastnamedescending': {\r\n sortName = 'lastnameinverted';\r\n break;\r\n }\r\n default: {\r\n sortName = sortValue;\r\n break;\r\n }\r\n }\r\n selectedValue = sortingOptions.options.filter((s) => s.name.toLowerCase() === sortName)[0];\r\n } else {\r\n selectedValue = sortingOptions.options.filter((s) => s.value.toString().toLowerCase() === sortValue)[0];\r\n }\r\n this.selectedSortValue = selectedValue?.label;\r\n }\r\n\r\n handleMedicalGroupChange(event: any) {\r\n this.filtersModel = event;\r\n if (\r\n (sessionStorage.getItem('selectedMedicalGroup') || sessionStorage.getItem('medGroupQueryParam')) &&\r\n this.filtersModel.providerMedicalGroup.length === 0\r\n ) {\r\n sessionStorage.setItem('selectedMedicalGroup', 'null');\r\n sessionStorage.setItem('medGroupQueryParam', 'null');\r\n }\r\n\r\n const specialty = this.handleSingleSpecialty(this.keyword);\r\n const queryParams: Params | null | undefined = this.filterService.createQueryParams(this.filtersModel);\r\n let newUrl = '';\r\n if (this.route.snapshot.queryParamMap.has('sortby')) {\r\n this.applySortParams(queryParams);\r\n }\r\n\r\n if (sessionStorage.getItem('LocationIdFromFAL') && window.location.pathname.includes('/l/location')) {\r\n this.SetQueryParams(queryParams);\r\n\r\n if (this.filtersModel.providerMedicalGroup.length > 0) {\r\n queryParams.medgroup = this.mapMedicalGroupTitle(this.filtersModel.providerMedicalGroup);\r\n const medGroupString = this.filtersModel.providerMedicalGroup[0].name;\r\n const medGroupObject = this.medGroupDictionary.filter((group: MedGroup) => (\r\n group.code?.toLowerCase() === medGroupString?.toLowerCase() ||\r\n group.identifiers\r\n .split('|')\r\n .map((identifier: string) => identifier)\r\n .includes(medGroupString)\r\n ))[0];\r\n this.setMedGroupSession(medGroupObject);\r\n }\r\n\r\n newUrl = this.prepareUrl();\r\n } else {\r\n if (this.selectedLocation?.city && this.selectedLocation?.state && this.filtersModel.providerMedicalGroup.length > 0) {\r\n queryParams.location = `${this.selectedLocation.city.toLowerCase()}-${this.selectedLocation.state.toLowerCase()}`;\r\n }\r\n\r\n if (this.filtersModel.providerMedicalGroup?.length > 0) {\r\n const medGroupsMapped = this.mapMedicalGroupTitle(this.filtersModel.providerMedicalGroup);\r\n newUrl = this.urlBuilder.build({\r\n medGroup: medGroupsMapped,\r\n selectedLocation: this.selectedLocation,\r\n searchTerm: this.keyword,\r\n specialty: specialty\r\n } as UrlBuilderParams);\r\n } else {\r\n newUrl = this.urlBuilder.build({\r\n medGroup: '',\r\n selectedLocation: this.selectedLocation,\r\n searchTerm: this.keyword,\r\n specialty: specialty\r\n } as UrlBuilderParams);\r\n }\r\n this.removeLocationQueryParamIfExistsInParam();\r\n }\r\n this.navigateWithinSearchResults([newUrl], queryParams);\r\n }\r\n\r\n removeLocationQueryParamIfExistsInParam() {\r\n const snapshot = this.route.snapshot;\r\n const queryParams = { ...snapshot.queryParams };\r\n if (window.location.pathname.includes('/l/')\r\n && this.route.snapshot.queryParamMap.has('location')) {\r\n delete queryParams.location;\r\n this.router.navigate([], { queryParams: queryParams });\r\n }\r\n }\r\n mapMedicalGroupName(medicalGroup: string): string {\r\n let mappedName = '';\r\n\r\n const selectedGroup: MedGroup = this.medGroupDictionary.filter((s: MedGroup) => s.code === medicalGroup)[0];\r\n mappedName = selectedGroup.title;\r\n return mappedName;\r\n }\r\n\r\n mapMedicalGroupTitle(selectedMedicalGroups: FacetSummary[]): string {\r\n let medgroupName = '';\r\n const mappingNeeded =\r\n this.medGroupDictionary.filter((s: MedGroup) => s.code !== s.title).length > 0;\r\n\r\n if (mappingNeeded) {\r\n const mappedArray: string[] = [];\r\n if (selectedMedicalGroups.length > 0) {\r\n selectedMedicalGroups.forEach((s) => {\r\n const mappedValue: MedGroup = this.medGroupDictionary.filter((group: MedGroup) => group.title === s.name)[0];\r\n if (mappedValue) { mappedArray.push(mappedValue.code); }\r\n else { mappedArray.push(s.name); }\r\n });\r\n medgroupName = mappedArray.length > 1 ? mappedArray.join('|') : mappedArray[0];\r\n }\r\n } else {\r\n medgroupName = selectedMedicalGroups.length > 1 ? selectedMedicalGroups.map((m) => m.name).join('|') : selectedMedicalGroups[0].name;\r\n }\r\n return medgroupName;\r\n }\r\n\r\n addMedicalGroups(event: any) {\r\n this.filtersModel = event;\r\n this.filtersModel.medicalGroupList = FiltersModelPartialHelper.getMedGroups(this.configurationService.getMedGroupCodes());\r\n }\r\n\r\n private getSearchParamLocationOrLocationCookie(routeSnapshot: ActivatedRouteSnapshot, term = 'location'): string | SelectedLocation {\r\n // order of retrieval:\r\n // 1) query params\r\n // 2) route param Map\r\n // 3) location cookie\r\n const location: string = routeSnapshot.queryParams.location?.trim() ?? (routeSnapshot.paramMap.get(term) ?? '').fromUrlFriendly();\r\n if (!location?.trim() && this.isLocationRequired) {\r\n return LocationConverter.convertTo(this.cookieService.getLocationCookieFromBrowser());\r\n }\r\n return location;\r\n }\r\n\r\n getSearchType(routeSnapshot: ActivatedRouteSnapshot): string {\r\n return routeSnapshot.paramMap.get('searchType') ?? 'l';\r\n }\r\n\r\n applySortingFromQueryParams(params: Params): void {\r\n if (this.searchFilters) {\r\n this.searchFilters.sortBy = !params.sortby\r\n ? this.configurationService.getDefaultSortOption().value\r\n : this.configurationService.getSortingOptionByQueryParam(params.sortby).value;\r\n }\r\n }\r\n\r\n getSearchResults(routeSnapshot: ActivatedRouteSnapshot): void {\r\n this.showSpinner = true;\r\n this.searchSessionId = uuid.v4();\r\n const searchFrom = routeSnapshot.queryParams.searchFrom ? routeSnapshot.paramMap.get('searchFrom') : '';\r\n if (searchFrom != '') {\r\n window.sessionStorage.setItem(SessionObjectNames.SearchFrom, 'gs');\r\n this.showBackButton = true;\r\n this.backtoSearchSiteLink = document.referrer;\r\n this.searchFrom = 'gs';\r\n }\r\n\r\n if (this.router.getCurrentNavigation()) {\r\n this.filtersModel = this.router.getCurrentNavigation().extras.state?.filtersModel ?? this.filtersModel;\r\n }\r\n\r\n if (!this.filtersModel?.pageNumber) {\r\n this.pageNumber = 1;\r\n }\r\n\r\n if (this.filtersModel?.pageNumber) {\r\n this.pageNumber = this.filtersModel.pageNumber;\r\n }\r\n\r\n this.applySortingFromQueryParams(routeSnapshot.queryParams);\r\n this.includeProviderRoleTypes = routeSnapshot.queryParams.includeProviderRoleTypes === 'true' ? true : false;\r\n sessionStorage.setItem('includeProviderRoleTypes', String(this.includeProviderRoleTypes));\r\n\r\n // default to l for bad path.\r\n const searchType = this.getSearchType(routeSnapshot);\r\n this.setTileTags(routeSnapshot, searchType);\r\n\r\n if (searchType === 'm') {\r\n this.getSearchResultForMedicalGroup(routeSnapshot);\r\n }\r\n\r\n if (searchType === 't') {\r\n const specialty = routeSnapshot.queryParams.specialty ?? (routeSnapshot.paramMap.get('specialty') ?? '').fromUrlFriendly();\r\n this.getSearchDetails(routeSnapshot, specialty, searchType);\r\n }\r\n\r\n if (searchType === 's') {\r\n this.selectedLocation = this.cookieService.createSelectedLocationFromLocationCookie();\r\n const searchString = routeSnapshot.queryParams.searchterm ?? routeSnapshot.paramMap.get('searchTerm') ?? '';\r\n this.setKeyword(searchString);\r\n this.getSearchResultForSpecialty(routeSnapshot, searchType);\r\n }\r\n\r\n\r\n if (searchType === 'l') {\r\n this.getSearchResultForLocation(routeSnapshot);\r\n }\r\n\r\n if (searchType === 'r') {\r\n this.getSearchResultForTerm(routeSnapshot);\r\n }\r\n\r\n if (routeSnapshot.queryParams.medgroup) {\r\n window.sessionStorage.setItem('medGroupQueryParam', routeSnapshot.queryParams.medgroup);\r\n }\r\n\r\n if (routeSnapshot.queryParams.distance) {\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(Number(routeSnapshot.queryParams.distance));\r\n }\r\n\r\n if (routeSnapshot.queryParams?.sortby) {\r\n this.filtersModel.sortBy = String(routeSnapshot.queryParams?.sortby);\r\n }\r\n }\r\n\r\n getSearchResultForLocation(routeSnapshot: ActivatedRouteSnapshot): void {\r\n if (routeSnapshot.paramMap.get('location') && routeSnapshot.paramMap.get('location').includes('location-')) {\r\n const qryPrms = 'FALredirecttoFAD';\r\n if (routeSnapshot.queryParams.isHospitalBased && routeSnapshot.queryParams.isHospitalBased === 'true') {\r\n this.includeProviderRoleTypes = true;\r\n }\r\n if (sessionStorage.getItem(qryPrms)) {\r\n sessionStorage.removeItem(qryPrms);\r\n }\r\n if (sessionStorage.getItem('LocationIdFromFAL')) {\r\n sessionStorage.removeItem('LocationIdFromFAL');\r\n }\r\n const locationParam = sessionStorage.getItem('falLocationDetailsParam');\r\n if (routeSnapshot.queryParams.FALredirecttoFAD === 'true') {\r\n if (locationParam !== null && locationParam.length > 0) {\r\n this.showBacktoLoctionSearchBtn = true;\r\n }\r\n this.redirectFromFAL = true;\r\n sessionStorage.setItem(qryPrms, 'true');\r\n }\r\n const arrLocationDetails = routeSnapshot.paramMap.get('location').split('-');\r\n sessionStorage.setItem('LocationIdFromFAL', arrLocationDetails[arrLocationDetails.length - 1]);\r\n this.setFiltersFromRoute(routeSnapshot);\r\n const locationRequest: LocationSearchRequest = this.createLocationSearchRequest(\r\n arrLocationDetails[arrLocationDetails.length - 1],\r\n routeSnapshot.queryParamMap\r\n );\r\n this.performLocationSearchByLocationId(locationRequest, false);\r\n } else {\r\n const locationString = this.getSearchParamLocationOrLocationCookie(routeSnapshot);\r\n this.performLocationSearch(locationString);\r\n }\r\n }\r\n\r\n getSearchResultForTerm(routeSnapshot: ActivatedRouteSnapshot): void {\r\n let searchString = routeSnapshot.queryParams.searchterm ?? routeSnapshot.paramMap.get('searchTerm') ?? '';\r\n if (searchString) {\r\n searchString = searchString.fromUrlFriendly().replaceWithDash('_');\r\n }\r\n const location = this.getSearchParamLocationOrLocationCookie(routeSnapshot);\r\n if (searchString) {\r\n this.performLocationAndTermSearch(location, searchString);\r\n } else {\r\n this.performLocationSearch(location);\r\n }\r\n }\r\n\r\n getSearchResultForSpecialty(routeSnapshot: ActivatedRouteSnapshot, searchType: string) {\r\n this.providerResults = [];\r\n const specialty = routeSnapshot.queryParams.specialty ?? decodeURIComponent(routeSnapshot.paramMap.get('specialty') ?? '');\r\n // Condition added to skip long loading when specialty is only urgent-care\r\n if (this.configurationService.getAutoCheckBoxSelectionSpecalities().includes(specialty?.replace('-', ' ').toTitleCase())) {\r\n sessionStorage.setItem('prevSpecialityisAutoTgrChkbx', String(true));\r\n sessionStorage.removeItem('manualSelection');\r\n if (routeSnapshot.queryParams.includeProviderRoleTypes !== 'true') {\r\n const snapshot = this.route.snapshot;\r\n const params = { ...snapshot.queryParams };\r\n params.includeProviderRoleTypes = true;\r\n return this.router.navigate([], { queryParams: params });\r\n }\r\n this.getSearchDetails(routeSnapshot, specialty.replace('-', ' ').toTitleCase(), searchType);\r\n } else {\r\n if (!this.useLegacyAPI) {\r\n const sessionItem = window.sessionStorage.getItem(SessionObjectNames.SingleSpecialityText);\r\n if (sessionItem === null || sessionItem === '') {\r\n this.getSpecialtyResult(specialty, routeSnapshot, searchType);\r\n } else {\r\n this.getSearchDetails(routeSnapshot, sessionItem, searchType);\r\n }\r\n }\r\n else {\r\n this.getSpecialtyResult(specialty, routeSnapshot, searchType);\r\n }\r\n }\r\n }\r\n\r\n getSpecialtyResult(specialty: string, routeSnapshot: ActivatedRouteSnapshot, searchType: string): void {\r\n if (specialty.indexOf('-') > -1) {\r\n this.filterService\r\n .getTypedFilterSearchResults(this.keyword, this.selectedLocation, this.filtersModel, this.getSearchFrom(), this.searchFilters, 1, this.searchSessionId)\r\n .pipe(\r\n tap((value) => {\r\n const specialityFilters = value?.result?.facets\r\n .find((facet: SearchFacet) => facet.type === 'specialties')\r\n ?.values.find(\r\n (x) =>\r\n x.label\r\n .toLowerCase()\r\n .replace(/[^a-zA-Z0-9 &/-]/g, '')\r\n .replace(/[ /]/g, '-') === specialty.toLowerCase()\r\n )?.label ?? specialty.toLowerCase();\r\n this.getSearchDetails(routeSnapshot, specialityFilters, searchType);\r\n }),\r\n catchError((error) => throwError(error))\r\n )\r\n .subscribe();\r\n } else {\r\n this.getSearchDetails(routeSnapshot, specialty.toTitleCase(), searchType);\r\n }\r\n }\r\n\r\n getSearchResultForMedicalGroup(routeSnapshot: ActivatedRouteSnapshot): void {\r\n const searchString = routeSnapshot.queryParams.searchterm ?? (routeSnapshot.paramMap.get('searchTerm') ?? '').fromUrlFriendly().replaceWithDash('_');\r\n const medGroupString = routeSnapshot.queryParams.medgroup ?? routeSnapshot.paramMap.get('medGroup');\r\n\r\n let selectedMedgroupCount = 1;\r\n let medGroupObject: MedGroup;\r\n let multipleMedGroups: string[] = [];\r\n\r\n if (decodeURIComponent(medGroupString).includes('|')) {\r\n selectedMedgroupCount = decodeURIComponent(medGroupString).split('|').length;\r\n }\r\n\r\n if (selectedMedgroupCount === 1) {\r\n medGroupObject = this.medGroupDictionary.filter((group: MedGroup) => (\r\n group.code?.toLowerCase() === medGroupString?.toLowerCase() ||\r\n group.identifiers\r\n ?.split('|')\r\n .map((identifier: string) => identifier)\r\n .includes(medGroupString)\r\n ))[0];\r\n } else {\r\n multipleMedGroups = decodeURIComponent(medGroupString).split('|');\r\n }\r\n\r\n this.setMedGroupsInFiltersModel(routeSnapshot);\r\n\r\n let location: string | SelectedLocation;\r\n if (medGroupObject || multipleMedGroups.length > 1) {\r\n if (medGroupObject) {\r\n this.setMedGroupSession(medGroupObject);\r\n }\r\n\r\n if (routeSnapshot.queryParams.location) {\r\n location = routeSnapshot.queryParams.location;\r\n } else if (!this.isLocationRequired || (!!medGroupObject?.code && medGroupObject?.code !== 'enterprise')) {\r\n location = undefined;\r\n } else {\r\n location = LocationConverter.convertTo(this.cookieService.getLocationCookieFromBrowser()) ?? '';\r\n }\r\n }\r\n\r\n this.performMedGroupSearch(searchString, medGroupObject, location, multipleMedGroups);\r\n }\r\n\r\n setFiltersFromRoute(routeSnapshot: ActivatedRouteSnapshot): void {\r\n const genderSelected = routeSnapshot.queryParams?.gender;\r\n\r\n if (genderSelected !== undefined && genderSelected?.length > 0) {\r\n this.filtersModel.providerGender = genderSelected;\r\n this.filtersModel.genderSelect = genderSelected;\r\n }\r\n\r\n if (routeSnapshot.queryParams?.bookonline === 'true') {\r\n this.filtersModel.onlineSchedulingApplied = this.filtersModel.onlineSchedulingToggle = true;\r\n }\r\n\r\n if (routeSnapshot.queryParams?.acceptingnew === 'true') {\r\n this.filtersModel.newPatientsApplied = this.filtersModel.newPatientsToggle = true;\r\n }\r\n\r\n if (routeSnapshot.queryParams?.videovisits === 'true') {\r\n this.filtersModel.videoVisitsApplied = this.filtersModel.videoVisitsToggle = true;\r\n }\r\n\r\n if (routeSnapshot.queryParams?.allVisits === 'true') {\r\n this.filtersModel.onlineSchedulingAllVisitApplied = this.filtersModel.onlineSchedulingAllVisitToggle = true;\r\n }\r\n }\r\n\r\n setMedGroupsInFiltersModel(routeSnapshot: ActivatedRouteSnapshot): void {\r\n const medGroupString = routeSnapshot.queryParams.medgroup ?? routeSnapshot.paramMap.get('medGroup');\r\n\r\n if (medGroupString) {\r\n if (decodeURIComponent(medGroupString).includes('|')) {\r\n let medGroupItem: MedGroup = {\r\n code: '',\r\n identifiers: '',\r\n url: '',\r\n title: '',\r\n city: '',\r\n state: '',\r\n latitude: '',\r\n longitude: '',\r\n banner: undefined\r\n };\r\n const selectedMedgroups: FacetSummary[] = [];\r\n const medGroupList: string[] = decodeURIComponent(medGroupString).split('|');\r\n medGroupList.forEach((x: string) => {\r\n medGroupItem = this.medGroupDictionary.filter((group: MedGroup) => group.identifiers?.toLowerCase() === x.toLowerCase())[0];\r\n selectedMedgroups.push({\r\n name: medGroupItem.title,\r\n count: 0,\r\n selected: true\r\n });\r\n });\r\n this.filtersModel.providerMedicalGroup = [...selectedMedgroups];\r\n this.filtersModel.selectedMedicalGroup = [...selectedMedgroups];\r\n this.filtersModel.medicalGroupTitle = selectedMedgroups.length.toString() + ' Medical groups';\r\n } else {\r\n const selectedMedgroups: FacetSummary[] = [];\r\n const medGroupObject: MedGroup = this.medGroupDictionary.filter((group: MedGroup) => (\r\n group.code?.toLowerCase() === medGroupString?.toLowerCase() ||\r\n group.identifiers\r\n .split('|')\r\n .map((identifier: string) => identifier)\r\n .includes(medGroupString)\r\n ))[0];\r\n selectedMedgroups.push({\r\n name: this.mapMedicalGroupName(medGroupObject.code),\r\n count: 0,\r\n selected: true\r\n });\r\n this.filtersModel.providerMedicalGroup = [...selectedMedgroups];\r\n this.filtersModel.selectedMedicalGroup = [...selectedMedgroups];\r\n this.filtersModel.medicalGroupTitle = selectedMedgroups[0].name;\r\n }\r\n }\r\n }\r\n\r\n private setFALUrl(): void {\r\n const snapshot = this.route.snapshot;\r\n const params = { ...snapshot.queryParams };\r\n if (params.FALlocation) {\r\n window.sessionStorage.removeItem('falLocationDetailsParam');\r\n window.sessionStorage.setItem('falLocationDetailsParam', params.FALlocation);\r\n delete params.FALlocation;\r\n this.router.navigate([], { queryParams: params });\r\n }\r\n }\r\n\r\n private getSearchDetails(routeSnapshot: ActivatedRouteSnapshot, specialty: string, searchType: string) {\r\n const locationString = routeSnapshot.queryParams.location ?? (routeSnapshot.paramMap.get('location') ?? '').fromUrlFriendly();\r\n const searchString = routeSnapshot.queryParams.searchterm ?? (routeSnapshot.paramMap.get('searchTerm') ?? '').fromUrlFriendly().replaceWithDash('_');\r\n // Search last location searched OR the user's location (from cookie).\r\n // Cookie should be set when you first come into the search results page.\r\n let location: string | SelectedLocation;\r\n if (this.isLocationRequired) {\r\n if (this.selectedLocation) {\r\n location = this.selectedLocation;\r\n } else {\r\n location = locationString\r\n ? this.getSearchParamLocationOrLocationCookie(routeSnapshot)\r\n : LocationConverter.convertTo(this.cookieService.getLocationCookieFromBrowser());\r\n }\r\n if (!location) {\r\n this.locationService.getLocationByIP().subscribe((response) => {\r\n location = LocationConverter.convertTo(response.result.location);\r\n if (specialty) {\r\n this.performSpecialtySearch(location, specialty);\r\n } else if (searchString) {\r\n this.performLocationAndTermSearch(location, searchString);\r\n } else {\r\n this.performLocationSearch(location);\r\n }\r\n });\r\n } else {\r\n if (specialty) {\r\n this.performSpecialtySearch(location, specialty);\r\n } else if (searchString) {\r\n this.performLocationAndTermSearch(location, searchString);\r\n } else {\r\n this.performLocationSearch(location);\r\n }\r\n }\r\n } else {\r\n if (searchType === 's') {\r\n location = this.getSearchParamLocationOrLocationCookie(routeSnapshot);\r\n } else {\r\n location = this.selectedLocation = undefined;\r\n }\r\n if (specialty) {\r\n this.performSpecialtySearch(location, specialty);\r\n } else if (searchString) {\r\n this.performLocationAndTermSearch(location, searchString);\r\n } else {\r\n this.performLocationSearch(location);\r\n }\r\n }\r\n }\r\n\r\n getSelectedLocation(medGroup: MedGroup, location: string | SelectedLocation): Observable<SelectedLocation> {\r\n if (medGroup?.code) {\r\n return this.getLocationBasedOnMedGroup(medGroup,location);\r\n } else {\r\n return this.getLocationBasedOnUser(medGroup,location);\r\n }\r\n }\r\n\r\n getLocationBasedOnMedGroup(medGroup: MedGroup, location: string | SelectedLocation): Observable<SelectedLocation> {\r\n if (this.isLocationRequired && (location === '' || typeof location === 'string' || (typeof location !== 'string' && !location))) {\r\n const cookieLocation = LocationConverter.convertTo(this.cookieService.getLocationCookieFromBrowser()) ?? ({} as SelectedLocation);\r\n if (cookieLocation?.city === undefined && cookieLocation?.state === undefined) {\r\n this.locationService.getLocationByIP().subscribe((response) => {\r\n const loc = response.result.location;\r\n this.cookieService.addLocationCookieToBrowser(loc);\r\n location = LocationConverter.convertTo(loc);\r\n });\r\n } else {\r\n location = `${cookieLocation?.city?.toUrlFriendly()}-${cookieLocation?.state?.toUrlFriendly()}`;\r\n }\r\n const locationVal = typeof location === 'string' ? location : location?.name;\r\n return this.locationService.queryLocation(locationVal);\r\n } else { return this.locationService.queryLocation(typeof location === 'string' ? location : location?.name); }\r\n }\r\n\r\n getLocationBasedOnUser(medGroup: MedGroup, location: string | SelectedLocation): Observable<SelectedLocation> {\r\n if((!medGroup && (location === '' || typeof location === 'string')) ||\r\n (typeof location !== 'string' && location && !location.googlePlaceId)) {\r\n return this.locationService.queryLocation(\r\n typeof location !== 'string' ? location.neighborhood || location.name || location.city || location.state || location.zip : location\r\n );\r\n }\r\n return of(location as SelectedLocation);\r\n }\r\n\r\n extractDynamicFilterContent(filtersModel: FiltersModel): Array<DynamicFilterContentDetails> {\r\n const result = new Array<DynamicFilterContentDetails>();\r\n\r\n this.contents = this.configurationService.showContent();\r\n\r\n if (this.contents) {\r\n if (filtersModel.onlineSchedulingApplied) {\r\n this.extractOnlineSchedulingDetails(result);\r\n }\r\n\r\n if (filtersModel.selectedMedicalGroup?.length > 0) {\r\n this.extractMedicalGroupDetails(result);\r\n }\r\n\r\n if (filtersModel.selectedSpecialties !== undefined && filtersModel.selectedSpecialties.length > 0) {\r\n this.extractSpecialtyDetails(filtersModel, result);\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n\r\n private extractOnlineSchedulingDetails(result: DynamicFilterContentDetails[]) {\r\n const onlineScheduleContents = this.configurationService.getOnlineSchedulingContent();\r\n if (onlineScheduleContents.length > 0) {\r\n result.push(onlineScheduleContents[0]);\r\n }\r\n }\r\n\r\n private extractMedicalGroupDetails(result: DynamicFilterContentDetails[]) {\r\n const medicalGroupContents = this.configurationService.getMedicalGroupContent();\r\n if (medicalGroupContents.length > 0) {\r\n const medicalGroupContent = ProviderInterfaceHelper.dynamicContentLinkTokenHandler(medicalGroupContents[0]);\r\n result.push(medicalGroupContent);\r\n }\r\n }\r\n\r\n private extractSpecialtyDetails(filtersModel: FiltersModel, result: DynamicFilterContentDetails[]) {\r\n const specialtyGroupContents = this.configurationService.getSpecialtyGroupContent();\r\n\r\n if (specialtyGroupContents.length > 0) {\r\n specialtyGroupContents.forEach((eachSpecialty) => {\r\n // ordering based on the list in config\r\n if (eachSpecialty.filterKeywords.length > 0) {\r\n const specialtyValue = filtersModel.selectedSpecialties?.find((eachItem) =>\r\n eachSpecialty.filterKeywords.some((filterValue) => filterValue.trim().toLowerCase() === eachItem.name?.toLowerCase())\r\n );\r\n if (specialtyValue !== undefined) {\r\n // Check whether the same content is already present in the result\r\n // so that the content is distinct\r\n const isPresent = result.find((eachItem) => eachItem.paragraph === eachSpecialty.paragraph);\r\n if (isPresent === undefined) {\r\n const specialtyContent = ProviderInterfaceHelper.dynamicContentLinkTokenHandler(eachSpecialty);\r\n result.push(specialtyContent);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n\r\n performMedGroupSearch(searchString: string, medGroupObj: MedGroup, location: string | SelectedLocation, multipleMedGroups?: string[]) {\r\n this.performSearch(location, searchString, medGroupObj, multipleMedGroups);\r\n }\r\n\r\n performLocationSearch(location: string | SelectedLocation): void {\r\n this.performSearch(location, null, null, null);\r\n }\r\n\r\n performSpecialtySearch(location: string | SelectedLocation, specialty: string) {\r\n if (!!this.filtersModel && specialty) {\r\n this.filtersModel.selectedSpecialties.push({\r\n name: specialty,\r\n selected: true\r\n } as FacetSummary);\r\n this.keyword = '';\r\n }\r\n this.performSearch(location, null, null, null);\r\n }\r\n\r\n performLocationAndTermSearch(location: string | SelectedLocation, searchString: string): void {\r\n this.performSearch(location, searchString, null, null);\r\n }\r\n\r\n isHospitalBased(): boolean {\r\n return this.route.snapshot.queryParams.isHospitalBased && this.route.snapshot.queryParams.isHospitalBased === 'true';\r\n }\r\n\r\n private performSearch(location: string | SelectedLocation, searchString: string, medGroupObj?: MedGroup, multipleMedGroups?: string[]) {\r\n this.providerResults = []; // Clear search results so spinner shows up above the fold while loading new results.\r\n this.dynamicFilterContents = [];\r\n this.showSpinner = true;\r\n const isHospitalBased = this.isHospitalBased();\r\n\r\n let headerTitle = medGroupObj?.title;\r\n if (multipleMedGroups?.length > 0) {\r\n medGroupObj = this.medGroupDictionary.filter((group: MedGroup) => group.identifiers.toLowerCase() === multipleMedGroups[0].toLowerCase())[0];\r\n headerTitle = '';\r\n this.medicalGroupLink = '';\r\n }\r\n\r\n this.getSelectedLocation(medGroupObj, location)\r\n .pipe(\r\n tap((selectedLocation) => {\r\n if (selectedLocation?.isLocationValid || selectedLocation?.name) {\r\n this.cookieService.addLocationCookieToBrowser(selectedLocation);\r\n this.sortDropdowns = this.sortOptions;\r\n } else {\r\n this.sortDropdowns = this.sortOptions.filter((li) => li.name.toLowerCase() !== 'distance');\r\n }\r\n this.selectedLocation = selectedLocation;\r\n this.removeLocationQueryParamIfExistsInParam();\r\n this.filtersModel = this.filterService.getFilterStates(\r\n this.route.snapshot.queryParams,\r\n this.filtersModel,\r\n medGroupObj?.code ?? '',\r\n searchString\r\n );\r\n\r\n this.setMedGroupsInFiltersModel(this.route.snapshot);\r\n if (this.filtersModel?.selectedSpecialties?.length === 1) { window.sessionStorage.setItem('singleSpecialty', this.filtersModel.selectedSpecialties[0].name); }\r\n this.setKeyword(searchString);\r\n this.setHeadingText(this.keyword, this.selectedLocation, headerTitle);\r\n }),\r\n catchError(() => of(null as SelectedLocation)),\r\n concatMap(() => {\r\n if (\r\n (!this.selectedLocation && !this.isLocationRequired) ||\r\n this.selectedLocation?.isLocationValid || this.selectedLocation?.name\r\n ) {\r\n return this.filterService.getTypedFilterSearchResults(\r\n this.keyword,\r\n this.selectedLocation,\r\n this.filtersModel,\r\n this.getSearchFrom(),\r\n this.searchFilters,\r\n 1,\r\n this.searchSessionId,\r\n this.includeProviderRoleTypes || isHospitalBased\r\n );\r\n }\r\n return ApiResponseCreator.createObservable<ProviderSearchResponse>(\r\n {\r\n providers: []\r\n } as ProviderSearchResponse,\r\n false\r\n );\r\n }),\r\n tap((providerSearchResponse: ApiResponse<ProviderSearchResponse>) => {\r\n if (!providerSearchResponse?.isValid) {\r\n this.providerResults = [];\r\n this.headingText = 'Something went wrong.';\r\n this.selectedLocation.isLocationValid = false;\r\n this.titleTagHandlerService.setNoFollowMetaPage();\r\n } else {\r\n if (headerTitle !== '') {\r\n this.medicalGroupLink = this.getMedicalGroupLink(headerTitle);\r\n } else {\r\n this.medicalGroupLink = '';\r\n }\r\n this.setHeadingText(this.keyword, this.selectedLocation, headerTitle);\r\n this.resultsLoaded = true;\r\n\r\n this.eventPublisherService.publish(mapSearchCriteriaToFadEvent(this.keyword, this.selectedLocation, medGroupObj?.title));\r\n\r\n this.filtersModel = this.filterService.getFacetInfo(providerSearchResponse.result, this.filtersModel);\r\n this.checkMedicalGroupCollection();\r\n this.providerResults = providerSearchResponse.result.providers;\r\n this.searchFilters = providerSearchResponse.result;\r\n this.providerResponseSwitchMapFunc(providerSearchResponse);\r\n this.updateSortCaption(this.searchFilters.sortByName.toString().toLowerCase());\r\n this.setNoResultText(this.keyword, this.selectedLocation, providerSearchResponse?.result?.recommendations);\r\n this.setSortByDropdownDisplayName();\r\n this.getNetworkProvider();\r\n if (this.providerResults.length > 0) {\r\n this.setProviderGenderFull();\r\n this.overwriteProviderImageUrl();\r\n this.getStarRatingsBanner(this.providerResults[0]);\r\n // Retrieves the dynamic contents from the config\r\n this.dynamicFilterContents = this.extractDynamicFilterContent(this.filtersModel);\r\n this.titleTagHandlerService.removeMetaNoIndexName();\r\n } else {\r\n this.setNoRecordsTitle(this.selectedLocation);\r\n this.titleTagHandlerService.setNoFollowMetaPage();\r\n }\r\n this.cjaTagServiceForSearchResults();\r\n window.sessionStorage.setItem('fadSearchResultsUrl', window.location.href);\r\n const siteUrl = this.router.url;\r\n window.sessionStorage.setItem('cernerfadSearchUrl', siteUrl);\r\n }\r\n this.getProviderCards();\r\n }),\r\n finalize(() => (this.showSpinner = false))\r\n )\r\n .subscribe();\r\n }\r\n\r\n setNoRecordsTitle(location: SelectedLocation): void {\r\n this.titleTagHandlerService.setPageTitleforNoRecords(location);\r\n }\r\n\r\n checkMedicalGroupCollection(): void {\r\n if (this.filtersModel && (this.filtersModel.providerMedicalGroup === null || this.filtersModel.selectedMedicalGroup === null)) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n }\r\n\r\n if (this.filtersModel.providerSearchRadius === null) {\r\n this.filtersModel.providerSearchRadius = this.filtersModel.searchRadius;\r\n }\r\n }\r\n\r\n setKeyword(searchString: string): void {\r\n if (searchString && searchString.trim().toLowerCase().replace(/\\s/g, '') !== 'videovisits') {\r\n this.keyword = decodeURIComponent(searchString).toTitleCase();\r\n } else {\r\n this.keyword = '';\r\n }\r\n }\r\n\r\n setHeadingText(keyword: string, location: SelectedLocation, medgroup = ''): void {\r\n let text = '';\r\n if (!medgroup) {\r\n text = this.setLocationBasedHeading(keyword, location);\r\n } else {\r\n text = this.setMedicalGrpBasedHeading(keyword, medgroup);\r\n }\r\n this.headingText = text;\r\n }\r\n\r\n setLocationBasedHeading(keyword: string, location: SelectedLocation): string {\r\n let text = '';\r\n if (keyword && !location?.city && !location?.state) {\r\n text = keyword;\r\n } else if (!keyword && location?.state) {\r\n text = `Doctors in ${location.neighborhood ? location.neighborhood + ', ' : ''}${location.city}, ${location.state}${location.zip ? ' ' + location.zip : ''}`;\r\n } else if (keyword && location) {\r\n text = `${keyword} in ${location.neighborhood ? location.neighborhood + ', ' : ''}${location.city}, ${location.state}${location.zip ? ' ' + location.zip : ''}`;\r\n }\r\n return text;\r\n }\r\n\r\n setMedicalGrpBasedHeading(keyword: string, medgroup: string): string {\r\n return keyword ? `${keyword} at ${medgroup}` : `Doctors at ${medgroup}`;\r\n }\r\n\r\n getMedicalGroupLink(medGroup: string): any {\r\n if (!medGroup) {\r\n return '';\r\n }\r\n return {\r\n Text: `Learn more about ${medGroup}`,\r\n URL: this.filtersModel.medicalGroupList[this.filtersModel.medicalGroupList?.map((x) => x.label).indexOf(medGroup)]?.url\r\n };\r\n }\r\n\r\n closeBanner(): void {\r\n this.bannerDisabled = true;\r\n this.cookieService.setBannerDisabledCookie();\r\n }\r\n\r\n bannerLinkClick(searchTerm: string) {\r\n const url = this.urlBuilder.build({ searchTerm } as UrlBuilderParams);\r\n this.router.navigateByUrl(url);\r\n }\r\n\r\n overwriteProviderImageUrl(): void {\r\n this.providerResults.forEach((res: Provider) => {\r\n if (res.images) {\r\n const imagesCopy = res.images.slice();\r\n imagesCopy.sort((x: ProviderImage, y: ProviderImage) => y.width * y.height - x.width * x.height);\r\n const imagesBySizeDecreasing =\r\n res.images.length > 0\r\n ? imagesCopy.filter((image: ProviderImage) => image.height === 160 && image.width === 120)\r\n : [];\r\n\r\n const placeholderImage: ProviderImage = {\r\n url:\r\n res.gender?.toLowerCase() === 'male' ? this.configurationService.malePlaceholder : this.configurationService.femalePlaceholder\r\n };\r\n\r\n res.images.forEach((img: ProviderImage) => {\r\n this.providerImage = imagesBySizeDecreasing[0] ?? placeholderImage;\r\n img.url = this.providerImage.url?.replace(/^http:\\/\\//i, 'https://');\r\n });\r\n }\r\n });\r\n }\r\n\r\n setProviderGenderFull(): void {\r\n this.providerResults.forEach((provider) => {\r\n if (provider.gender?.toLowerCase() === 'm') {\r\n provider.gender = 'Male';\r\n } else if (provider.gender?.toLowerCase() === 'f') {\r\n provider.gender = 'Female';\r\n } else {\r\n if (provider.gender?.toLowerCase() != 'male' && provider.gender?.toLowerCase() != 'female') {\r\n provider.gender = null;\r\n }\r\n }\r\n });\r\n }\r\n\r\n getMoreResults(): void {\r\n const consolidatedProviderResults = this.providerResults;\r\n this.loadingMoreResults = true;\r\n sessionStorage.removeItem('sortChanged');\r\n this.pageNumber++;\r\n\r\n if (sessionStorage.getItem('LocationIdFromFAL') && window.location.pathname.includes('/l/location')) {\r\n const locationId = sessionStorage.getItem('LocationIdFromFAL');\r\n const locationRequest: LocationSearchRequest = this.createLocationSearchRequest(locationId, this.route.snapshot.queryParamMap);\r\n this.performLocationSearchByLocationId(locationRequest, true);\r\n } else {\r\n this.filterService\r\n .getTypedFilterSearchResults(\r\n this.keyword,\r\n this.selectedLocation,\r\n this.filtersModel,\r\n this.getSearchFrom(),\r\n this.searchFilters,\r\n this.pageNumber,\r\n this.searchSessionId,\r\n this.includeProviderRoleTypes\r\n )\r\n .pipe(\r\n tap((searchResponse: ApiResponse<ProviderSearchResponse>) => {\r\n this.filtersModel = this.filterService.getFacetInfo(searchResponse.result, this.filtersModel);\r\n this.checkMedicalGroupCollection();\r\n this.providerResults = searchResponse.result.providers;\r\n this.searchFilters = searchResponse.result;\r\n this.providerResponseSwitchMapFunc(searchResponse);\r\n this.loadingMoreResults = false;\r\n\r\n if (this.providerResults.length > 0) {\r\n this.updateSortCaption(this.searchFilters.sortByName.toString().toLowerCase());\r\n consolidatedProviderResults.push(...this.providerResults);\r\n this.providerResults = consolidatedProviderResults;\r\n this.getNetworkProvider();\r\n this.setProviderGenderFull();\r\n this.overwriteProviderImageUrl();\r\n this.cjaTagServiceForProvidersImpressions(this.providerResults);\r\n this.cards.changes.subscribe(() => {\r\n const index = `item-${this.providerResults.length - 21}`;\r\n console.log((document.getElementById(index).nextElementSibling.firstElementChild as HTMLElement).getElementsByClassName('h3')[0] as HTMLElement);\r\n console.log(((document.getElementById(index).nextElementSibling.firstElementChild as HTMLElement).getElementsByClassName('h3')[0] as HTMLElement).getElementsByTagName('a')[0] as HTMLElement);\r\n (((document.getElementById(index).nextElementSibling.firstElementChild as HTMLElement).getElementsByClassName('h3')[0] as HTMLElement).getElementsByTagName('a')[0] as HTMLElement).focus();\r\n });\r\n }\r\n this.getProviderCards();\r\n }),\r\n finalize(() => (this.showSpinner = false))\r\n )\r\n .subscribe();\r\n }\r\n }\r\n\r\n scheduleProvider(provider: Provider): void {\r\n if (this.isCernerPage) {\r\n //<------The below code is used in cerner Page to focus on Schedule Appointment Modal Popup----->\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostApptDetailstoMyAppointment_Cerner,\r\n data: 'RescheduleAppointment'\r\n })\r\n );\r\n }\r\n this.guidedFlowProvider = this.providerService.normalizeProviderBeforeScheduling(provider);\r\n this.launchGuidedFlow = this.configurationService.showGuidedFlowButton();\r\n if (!this.launchGuidedFlow) {\r\n sessionStorage.setItem('searchResultsOrigin', 'true');\r\n this.router.navigateByUrl(\r\n `/${provider.npi}-${provider.firstName.replace(' ', '-').toLowerCase()}-${provider.lastName.replace(' ', '-').toLowerCase()}`\r\n );\r\n }\r\n this.cernerModalService.openModalForCerner();\r\n }\r\n closeScheduleModal() {\r\n this.launchGuidedFlow = false;\r\n this.cernerModalService.closeModalForCerner();\r\n }\r\n scheduleProviderHandler(provider: Provider): void {\r\n this.scheduleProvider(provider);\r\n }\r\n\r\n getProviderCards(): void {\r\n if (this.providerResults.length === 0) {\r\n this.providerCardSearchParams = {\r\n location: this.selectedLocation?.name,\r\n displaySearchButton: false,\r\n subHeading: '',\r\n medGroup: (this.filtersModel?.providerMedicalGroup?.length > 0 ? this.filtersModel.providerMedicalGroup[0].name : null)\r\n } as ProviderCardParams;\r\n } else {\r\n this.providerCardSearchParams = undefined;\r\n }\r\n }\r\n\r\n getNetworkProvider(): void {\r\n if (!this.providerResults || this.providerResults.length === 0) {\r\n return;\r\n }\r\n let matchingProvider = null;\r\n this.providerResults.forEach((p) => {\r\n if (!matchingProvider) {\r\n this.medGroupDictionary.forEach((x) => {\r\n if (x.banner && p.medicalGroupIds?.includes(x.code)) {\r\n p.firstNetworkProvider = true;\r\n matchingProvider = p;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n initDocAsap(): void {\r\n this.showDocAsap = true;\r\n if (this.providerSchedulingFeature) {\r\n this.docAsapIds = [];\r\n this.logService.error('from api:'); //Note: will be removed after testing\r\n } else {\r\n this.providerService.getDocAsapIds().subscribe((results: { npi: number; docAsapId: number }[]) => {\r\n this.docAsapIds = results || [];\r\n });\r\n this.logService.error('from ids.json:'); //Note: will be removed after testing\r\n }\r\n }\r\n\r\n setNoResultText(keyword: string, location: SelectedLocation, recommendation: string[]): void {\r\n\r\n let text = 'Sorry, we couldn’t find any results';\r\n\r\n if (keyword) {\r\n text += ` for “${keyword}â€`;\r\n }\r\n if (location) {\r\n const locationText = this.formatLocation(location);\r\n text += locationText.length > 0 ? ` in ${locationText}` : '';\r\n }\r\n\r\n if (recommendation?.length <= 0) {\r\n this.isFuzzySearch = false;\r\n }\r\n else {\r\n if (this.configurationService.getShowFuzzyMatch()) {\r\n this.isFuzzySearch = true;\r\n this.fuzzySearchList = recommendation;\r\n this.fuzzySearchRecommendationText = ' Click the related keywords below to try again.';\r\n this.fuzzySearchText = '(Note: any filters in your search will be removed)';\r\n }\r\n }\r\n text += '.';\r\n this.noResultText = text;\r\n }\r\n\r\n fuzzySearch(fuzzyString: any) {\r\n const url = this.urlBuilder.build({\r\n searchTerm: fuzzyString\r\n } as UrlBuilderParams);\r\n this.showSpinner = true;\r\n this.router.navigateByUrl(url);\r\n }\r\n\r\n formatLocation(location: SelectedLocation): string {\r\n let l = location.neighborhood ? `${location.neighborhood}, ` : '';\r\n l += location.city ? `${location.city}` : '';\r\n l += location.state ? `, ${location.state}` : '';\r\n l += location.zip ? ` ${location.zip}` : '';\r\n return l;\r\n }\r\n\r\n cjaTagServiceForSearchResults(): void {\r\n const siteUrl = this.router.url;\r\n const cjaTagSearchFilter: CjaTagSearchFilter = {\r\n facility: '',\r\n medicalGroup:\r\n this.filtersModel.providerMedicalGroup && this.filtersModel.providerMedicalGroup.length > 0\r\n ? this.filtersModel.providerMedicalGroup[0].name\r\n : '',\r\n serviceLine: '',\r\n searchURL: siteUrl,\r\n scheduleFilterDetails: siteUrl.indexOf('?') === -1 ? '' : siteUrl.split('?')[1],\r\n scheduleLocation: this.selectedLocationDisplay,\r\n scheduleKeyword: this.keyword,\r\n scheduleBookOnline: siteUrl.toLowerCase().indexOf('onlinescheduling') !== -1,\r\n totalResultsCount: this.searchFilters.totalResults,\r\n eventName:\r\n this.searchFilters.totalResults > 0\r\n ? siteUrl.indexOf('?') !== -1\r\n ? 'search_schedule:filter results'\r\n : 'search_schedule:results'\r\n : 'search_schedule:no results'\r\n };\r\n this.cjaTagService.searchResults(cjaTagSearchFilter);\r\n }\r\n\r\n cjaTagServiceForProvidersImpressions(providerList: Provider[]): void {\r\n this.cjaTagService.providersImpressions(providerList);\r\n }\r\n\r\n getHelplineNumbers(): void {\r\n this.helplineNumbers.forEach((helpline: any) => {\r\n const cleaned = helpline.phone.toString().replace(/\\D/g, '');\r\n const match = cleaned.match(/^(\\d{3})(\\d{3})(\\d{4})$/);\r\n if (match) {\r\n helpline.displayPhone = `(${match[1]}) ${match[2]}-${match[3]}`;\r\n helpline.phone = `+1${match[0]}`;\r\n } else {\r\n return;\r\n }\r\n });\r\n }\r\n\r\n handleSingleSpecialty(searchTerm: string): string {\r\n window.sessionStorage.removeItem(SessionObjectNames.SingleSpeciality);\r\n let specialty = '';\r\n if (!this.configurationService.useLegacyAPI()) {\r\n if (this.filtersModel?.selectedSpecialties?.length === 1 && searchTerm === '' && this.filtersModel?.selectedMedicalGroup.length === 0) {\r\n specialty = this.filtersModel.selectedSpecialties[0].name;\r\n this.filtersModel.selectedSpecialties = this.filtersModel.providerSpecialties = [];\r\n }\r\n }\r\n return specialty;\r\n }\r\n\r\n checkNonFadUrlAccessed(): void {\r\n if (window.sessionStorage.getItem('nonFadUrlAccessed') === 'true') {\r\n window.scroll({\r\n top: -150,\r\n behavior: 'smooth'\r\n });\r\n window.sessionStorage.removeItem('nonFadUrlAccessed');\r\n }\r\n }\r\n\r\n navigateToSchedulingSpa(event: any): void {\r\n window.sessionStorage.removeItem('singleSpecialty');\r\n if (event) {\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.NavigateToSchedulingOnCerner,\r\n data: event\r\n })\r\n );\r\n }\r\n\r\n if (this.isCernerPage) {\r\n //<------The below code is used in cerner Page to get token from my-appointment-spa----->\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostApptDetailstoMyAppointment_Cerner,\r\n data: event\r\n })\r\n );\r\n const tokenInfo = window.sessionStorage.getItem(\r\n this.runtimeConfig.Cerner_MyAppointments_OIDC_Token\r\n );\r\n if (tokenInfo) {\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.PostOidcTokentoMyAppointment_Cerner,\r\n data: tokenInfo\r\n })\r\n );\r\n }\r\n }\r\n }\r\n\r\n performLocationSearchByLocationId(locationRequest: LocationSearchRequest, moreResults: boolean): void {\r\n let consolidatedProviderResults = this.providerResults;\r\n if (!moreResults) {\r\n this.providerResults = [];\r\n }\r\n // To get locationId based provider details\r\n this.providerService\r\n .getLocationDetailsbyLocationId(locationRequest)\r\n .pipe(\r\n tap((providerSearchResponse: ApiResponse<ProviderSearchResponse>) => {\r\n if (!providerSearchResponse?.isValid) {\r\n this.providerResults = [];\r\n this.headingText = 'Something went wrong.';\r\n this.selectedLocation.isLocationValid = false;\r\n } else {\r\n const selectedMedGroupCount =\r\n locationRequest.medGroups && locationRequest.medGroups !== 'null' ? locationRequest.medGroups?.split('|').length : 0;\r\n\r\n if (selectedMedGroupCount > 0) {\r\n this.filtersModel.selectedMedicalGroup = [];\r\n this.filtersModel.providerMedicalGroup = [];\r\n locationRequest.medGroups.split('|').forEach((x) => {\r\n const tempGroup = this.medGroupDictionary.filter((s: MedGroup) => s.code?.toLowerCase() === x.toLowerCase())[0];\r\n this.filtersModel.providerMedicalGroup.push({\r\n name: tempGroup.code,\r\n count: 0,\r\n selected: true\r\n });\r\n this.filtersModel.selectedMedicalGroup.push({\r\n name: tempGroup.code,\r\n count: 0,\r\n selected: true\r\n });\r\n });\r\n this.filtersModel.medicalGroupTitle =\r\n this.filtersModel.providerMedicalGroup.length === 1\r\n ? this.filtersModel.providerMedicalGroup[0].name\r\n : this.filtersModel.selectedMedicalGroup.length.toString() + ' Medical groups';\r\n }\r\n\r\n const medGroupObj = this.getMedGroupObject(selectedMedGroupCount, locationRequest);\r\n this.showHeaderForMedgroups(medGroupObj?.title, medGroupObj?.code, selectedMedGroupCount);\r\n this.resultsLoaded = true;\r\n this.setNoResultText(this.keyword, this.selectedLocation, providerSearchResponse?.result?.recommendations);\r\n this.eventPublisherService.publish(mapSearchCriteriaToFadEvent(this.keyword, this.selectedLocation, medGroupObj?.title));\r\n\r\n this.filtersModel = this.filterService.getFacetInfo(providerSearchResponse.result, this.filtersModel);\r\n this.filtersModel.locationName = providerSearchResponse.result.providers[0].officeNames[0];\r\n this.checkMedicalGroupCollection();\r\n this.providerResults = providerSearchResponse.result.providers;\r\n this.searchFilters = providerSearchResponse.result;\r\n this.providerResponseSwitchMapFunc(providerSearchResponse);\r\n this.updateSortCaption(this.searchFilters.sortByName.toString().toLowerCase());\r\n this.setSortByDropdownDisplayName();\r\n this.getNetworkProvider();\r\n if (this.providerResults.length > 0) {\r\n if (sessionStorage.getItem('sortChanged') && sessionStorage.getItem('sortChanged') === 'true') {\r\n consolidatedProviderResults = [];\r\n }\r\n if (moreResults) {\r\n consolidatedProviderResults.push(...this.providerResults);\r\n this.providerResults = consolidatedProviderResults;\r\n } else {\r\n consolidatedProviderResults = this.providerResults;\r\n }\r\n this.setProviderGenderFull();\r\n this.overwriteProviderImageUrl();\r\n this.getStarRatingsBanner(this.providerResults[0]);\r\n // Retrieves the dynamic contents from the config\r\n this.dynamicFilterContents = this.extractDynamicFilterContent(this.filtersModel);\r\n }\r\n this.cjaTagServiceForSearchResults();\r\n const siteUrl = this.router.url;\r\n window.sessionStorage.setItem('cernerfadSearchUrl', siteUrl);\r\n window.sessionStorage.setItem('fadSearchResultsUrl', window.location.href);\r\n this.loadingMoreResults = false;\r\n }\r\n this.getProviderCards();\r\n }),\r\n finalize(() => (this.showSpinner = false))\r\n )\r\n .subscribe();\r\n }\r\n\r\n getMedGroupObject(selectedMedGroupCount: number, locationRequest: LocationSearchRequest): MedGroup {\r\n let medGroupObj: MedGroup;\r\n if (selectedMedGroupCount === 1) {\r\n medGroupObj = this.medGroupDictionary.filter((group: MedGroup) => (\r\n group.code?.toLowerCase() === locationRequest.medGroups?.toLowerCase() ||\r\n group.identifiers\r\n .split('|')\r\n .map((identifier: string) => identifier)\r\n .includes(locationRequest.medGroups)\r\n ))[0];\r\n } else if (selectedMedGroupCount > 1) {\r\n const firstMedGroup = locationRequest.medGroups.split('|')[0];\r\n medGroupObj = this.medGroupDictionary.filter((group: MedGroup) => (\r\n group.code?.toLowerCase() === firstMedGroup.toLowerCase() ||\r\n group.identifiers\r\n .split('|')\r\n .map((identifier: string) => identifier)\r\n .includes(firstMedGroup)\r\n ))[0];\r\n }\r\n return medGroupObj;\r\n }\r\n\r\n showHeaderForMedgroups(medgroupTitle: string, medgroupCode: string, selectedMedGroupCount: number): void {\r\n if (medgroupTitle) {\r\n this.medicalGroupLink = this.getMedicalGroupLink(medgroupTitle);\r\n }\r\n\r\n if (selectedMedGroupCount === 1) {\r\n this.filtersModel = this.filterService.getFilterStates(this.route.snapshot.queryParams, this.filtersModel, medgroupCode ?? '', '');\r\n this.setHeadingText(this.keyword, this.selectedLocation, medgroupTitle);\r\n this.medicalGroupLink = this.getMedicalGroupLink(medgroupTitle);\r\n } else if (selectedMedGroupCount == 0) {\r\n this.setHeadingText(this.keyword, this.selectedLocation);\r\n this.medicalGroupLink = {};\r\n } else if (selectedMedGroupCount > 1) {\r\n this.setHeadingText(this.keyword, this.selectedLocation, `${medgroupTitle} and ${selectedMedGroupCount - 1} other(s)`);\r\n this.medicalGroupLink = this.getMedicalGroupLink(medgroupTitle);\r\n }\r\n }\r\n\r\n handleCloseClicked(): void {\r\n this.isShowVideo = false;\r\n this.videoUrl = undefined;\r\n this.cernerModalService.closeModalForCerner();\r\n }\r\n toggleModal(videoUrl: string): void {\r\n this.videoUrl = this.sanitize.bypassSecurityTrustResourceUrl(videoUrl);\r\n this.isShowVideo = true;\r\n this.cernerModalService.openModalForCerner();\r\n }\r\n providerRoleTypesEmit($event: boolean): void {\r\n this.filtersModel.includeProviderRoleType = $event;\r\n }\r\n\r\n setMedGroupSession(medGroupObject: any): void {\r\n if (medGroupObject.length > 0) {\r\n sessionStorage.setItem('selectedMedicalGroup', medGroupObject[0]?.code);\r\n sessionStorage.setItem('PreviousSelectedMediGrpPrvdRole', medGroupObject[0]?.enableProviderRoleTypes);\r\n } else {\r\n if (medGroupObject) {\r\n sessionStorage.setItem('selectedMedicalGroup', medGroupObject?.code);\r\n sessionStorage.setItem('PreviousSelectedMediGrpPrvdRole', medGroupObject?.enableProviderRoleTypes);\r\n }\r\n }\r\n }\r\n\r\n createLocationSearchRequest(locationId: string, queryParam: ParamMap): LocationSearchRequest {\r\n const queryParamList = queryParam;\r\n let sortBy = 2;\r\n\r\n if (sessionStorage.getItem('sortBy')) {\r\n sortBy = sessionStorage.getItem('sortBy') as unknown as number;\r\n }\r\n\r\n const medGroupFromSession = sessionStorage.getItem('medGroupQueryParam');\r\n\r\n return {\r\n locationId: locationId,\r\n searchSessionId: this.searchSessionId,\r\n includeProviderRoleType: this.includeProviderRoleTypes,\r\n sortby: sortBy,\r\n page: this.pageNumber,\r\n distance: 10,\r\n patients: queryParamList.get('acceptingnew') ? queryParamList.get('acceptingnew') : null,\r\n bookOnline: queryParamList.get('bookonline') ? queryParamList.get('bookonline') : null,\r\n gender: queryParamList.get('gender') ? queryParamList.get('gender').substring(0, 1) : null,\r\n languages: queryParamList.get('languages') ? queryParamList.get('languages') : null,\r\n videoCalls: queryParamList.get('videovisits') ? queryParamList.get('videovisits') : null,\r\n medGroups: queryParamList.get('medgroup')\r\n ? queryParamList.get('medgroup')\r\n : medGroupFromSession?.length > 0\r\n ? medGroupFromSession\r\n : null,\r\n specialties: queryParamList.get('specialties') ? queryParamList.get('specialties') : null,\r\n allVisits: queryParamList.get('allVisits') ? queryParamList.get('allVisits') : null\r\n };\r\n }\r\n\r\n providerResponseSwitchMapFunc(providerSearchResponse: ApiResponse<ProviderSearchResponse>) {\r\n if (!providerSearchResponse?.isValid || providerSearchResponse.result.providers.length === 0) {\r\n return of(providerSearchResponse);\r\n }\r\n const providerNpis = providerSearchResponse.result.providers.map((p) => p.npi);\r\n this.ratingService\r\n .getProviderRatings(providerNpis)\r\n .subscribe((ratings) => this.providerResponseMapFunc(ratings, providerSearchResponse));\r\n }\r\n\r\n providerResponseMapFunc(ratings: ProviderRating[], providerSearchResponse: ApiResponse<ProviderSearchResponse>) {\r\n for (const provider of this.providerResults.filter(item => providerSearchResponse.result.providers.map((p) => p.npi).includes(item.npi))) {\r\n provider.rating = ratings.find((x) => x.id === provider.npi.toString());\r\n provider.loadingRating = false;\r\n }\r\n return this.providerResults;\r\n }\r\n\r\n setTileTags(routeSnapshot: ActivatedRouteSnapshot, searchType: string): void {\r\n let keyword = '';\r\n let selectedLocation = '';\r\n if (routeSnapshot) {\r\n if (searchType === 't') {\r\n keyword = routeSnapshot.paramMap.get('searchTerm');\r\n } else if (searchType === 'l') {\r\n selectedLocation = routeSnapshot.paramMap.get('location');\r\n } else if (searchType === 'r' || searchType === 's') {\r\n keyword = routeSnapshot.paramMap.get('searchTerm');\r\n selectedLocation = routeSnapshot.paramMap.get('location');\r\n }\r\n }\r\n\r\n this.titleTagHandlerService.setPageTitle(keyword, selectedLocation, routeSnapshot);\r\n this.titleTagHandlerService.setPageCanonicals(window.location.href);\r\n }\r\n\r\n setSortByDropdownDisplayName(): void {\r\n this.configurationService.getSortingConfig().options.forEach(option => {\r\n if (option.label.toLowerCase() === this.selectedSortValue.toString().toLowerCase()\r\n && !this.configurationService.useLegacyAPI()) {\r\n this.searchFilters.sortBy = option.value;\r\n }\r\n });\r\n }\r\n\r\n backSiteSearch(): void {\r\n window.location.href = this.backtoSearchSiteLink;\r\n }\r\n\r\n getSearchFrom(): string {\r\n return (this.searchFrom != '')\r\n ? this.searchFrom\r\n : '';\r\n }\r\n\r\n addClassSearchResultsWithSidePanel(): boolean {\r\n return (this.isFiltersLeftSidePanelRequired && this.isDesktopViewport);\r\n }\r\n\r\n showOldSortOption(): boolean {\r\n return (!this.isFiltersLeftSidePanelRequired) || (this.resizeService.isDesktopViewport && this.isFiltersLeftSidePanelRequired);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MultipleCheckboxSearchableDropdownComponent } from './multiple-checkbox-searchable-dropdown.component';\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [MultipleCheckboxSearchableDropdownComponent],\r\n exports: [MultipleCheckboxSearchableDropdownComponent]\r\n})\r\nexport class MultiSelectSearchableDropDownModule {}\r\n","import { CommonModule } from '@angular/common';\r\nimport { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RouterModule } from '@angular/router';\r\nimport { AccordionModule } from 'src/app/components/accordion/accordion.module';\r\nimport { AvailabilityDialogComponent } from 'src/app/components/availability-dialog/availability-dialog.component';\r\nimport { BadgesModule } from 'src/app/components/badges/badges.module';\r\nimport { CommonMoreFiltersComponent } from 'src/app/components/common-more-filters/common-more-filters.component';\r\nimport { CtaNewSearchComponent } from 'src/app/components/cta-new-search/cta-new-search.component';\r\nimport { DynamicFilterContentComponent } from 'src/app/components/dynamic-filter-content/dynamic-filter-content.component';\r\nimport { FilterDialogModule } from 'src/app/components/filter-dialog/filter-dialog.module';\r\nimport { FiltersComponent } from 'src/app/components/filters/filters.component';\r\nimport { MedicalCopyComponent } from 'src/app/components/medical-copy/medical-copy.component';\r\nimport { MobileFiltersComponent } from 'src/app/components/mobile-filters/mobile-filters.component';\r\nimport { ResultCardModule } from 'src/app/components/result-card/result-card.module';\r\nimport { SharedModule } from 'src/app/components/shared.module';\r\nimport { AngSlideToggleModule } from 'src/app/components/slide-toggle/ang-slide-toggle.module';\r\nimport { SearchResultsComponent } from './search-results.component';\r\nimport { MultiSelectSearchableDropDownModule } from 'src/app/components/common/multiple-checkbox-searchable-dropdown/multiple-checkbox-searchable-dropdown.module';\r\nimport { FiltersLeftPanelComponent } from 'src/app/components//filters-left-panel/filters-left-panel.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n SearchResultsComponent,\r\n FiltersComponent,\r\n CtaNewSearchComponent,\r\n MedicalCopyComponent,\r\n DynamicFilterContentComponent,\r\n MobileFiltersComponent,\r\n AvailabilityDialogComponent,\r\n CommonMoreFiltersComponent,\r\n FiltersLeftPanelComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n FormsModule,\r\n AngSlideToggleModule,\r\n FilterDialogModule,\r\n AccordionModule,\r\n BadgesModule,\r\n ResultCardModule,\r\n MultiSelectSearchableDropDownModule,\r\n RouterModule.forChild([\r\n {\r\n path: '',\r\n component: SearchResultsComponent,\r\n data: {\r\n storageKey: 'SearchResultsComponent'\r\n }\r\n }\r\n ])\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class SearchResultsModule {}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { RuntimeConfiguration } from './configuration-injection.service';\r\nimport { ConfigurationService } from './configuration.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SchedulingService {\r\n runtimeConfig: RuntimeConfiguration;\r\n\r\n constructor(public http: HttpClient, private configService: ConfigurationService) {\r\n this.runtimeConfig = this.configService.getRuntimeConfiguration();\r\n }\r\n\r\n getLocationsByApptointmentType(apptType: string, locationIds: string = null): Observable<any> {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Ocp-Apim-Subscription-Key': this.runtimeConfig.apimSubscriptionKey\r\n })\r\n };\r\n\r\n let locationQuery = '';\r\n\r\n if (locationIds && locationIds !== '') {\r\n locationQuery = `&locations=${locationIds}`;\r\n }\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('types', `${apptType}${locationQuery}`);\r\n const url = `${this.runtimeConfig.schedulingApiBaseUrl}/v1/provider/location/schedule`;\r\n return this.http.get(url.toString(), {\r\n headers: httpOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getV5AuthToken(): Observable<any> {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Ocp-Apim-Subscription-Key': this.runtimeConfig.apimSubscriptionKey\r\n })\r\n };\r\n\r\n return this.http.get(`${this.runtimeConfig.schedulingApiBaseUrl}/v2/visit/authtoken`, httpOptions);\r\n }\r\n\r\n getV5AppointmentTypes(): Observable<any> {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n })\r\n };\r\n\r\n return this.http.get(this.runtimeConfig.covidAppointmentTypes, httpOptions);\r\n }\r\n\r\n getLocationsByApptointmentTypeV5(\r\n appointmentTypes: string[],\r\n locationSourceIds: string[],\r\n authToken: string,\r\n system = 'geSac'\r\n ): Observable<any> {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'Ocp-Apim-Subscription-Key': this.runtimeConfig.apimSubscriptionKey,\r\n Authorization: `Bearer ${authToken}`\r\n })\r\n };\r\n\r\n const body = {\r\n appointmentTypes,\r\n locationSourceIds,\r\n system\r\n };\r\n\r\n return this.http.post(this.runtimeConfig.v5OpenSlotsEndpoint, body, httpOptions);\r\n }\r\n\r\n validateNotableToken(token: string): Observable<any> {\r\n return this.http.get(`${this.runtimeConfig.notableTokenValidationUrl}?token=${token}`, this.getHttpOptions());\r\n }\r\n\r\n validateCSHToken(token: string): Observable<any> {\r\n const httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'x-virt-reg': token\r\n })\r\n };\r\n\r\n return this.http.get(`${this.runtimeConfig.cshValidationUrl}`, httpOptions);\r\n }\r\n\r\n getMarketLocations(): Observable<any> {\r\n return this.http.get(this.runtimeConfig.marketLocations, this.getHttpOptions());\r\n }\r\n\r\n getHttpOptions(): any {\r\n return {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n })\r\n };\r\n }\r\n}\r\n","<div class=\"covid-vacination-card-wrapper\">\r\n <div class=\"covid-vacination-card-wrapper-header\">\r\n <div class=\"location-header-container\">\r\n <p class=\"location-header\" [class.full-width]=\"true\">\r\n <strong>{{ location.providerName ?? location.name }}</strong>\r\n </p>\r\n </div>\r\n <div class=\"covid-vacination-card-wrapper-content\">\r\n <div class=\"address\">\r\n <svg width=\"18\" height=\"24\" viewBox=\"0 0 18 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M8.05463 23.5083C8.4761 24.1639 9.45951 24.1639 9.88098 23.5083C16.718 13.6741 17.9824 12.6439 17.9824 8.99122C17.9824 4.02732 13.9551 0 8.99122 0C3.98049 0 0 4.02732 0 8.99122C0 12.6439 1.21756 13.6741 8.05463 23.5083Z\"\r\n fill=\"#C85200\"\r\n />\r\n </svg>\r\n <div class=\"address-container\">\r\n <p>{{ location.address }}</p>\r\n <p>{{ location.city }}, {{ location.state }}, {{ location.zip }}</p>\r\n <div class=\"get-directions\">\r\n <a\r\n href=\"https://www.google.com/maps/search/{{ location.address }} {{ location.city }} {{ location.state }} {{ location.zip }}\"\r\n target=\"_blank\"\r\n >Get directions</a\r\n >\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"location.phone\" class=\"address phone-icon\">\r\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"M15.2309 15.4189L15.9809 12.1689C16.0622 11.8158 15.8778 11.4533 15.5465 11.3096L12.0465 9.80962C11.7403 9.67838 11.3809 9.76587 11.1715 10.0252L9.62153 11.919C7.22465 10.794 5.23089 8.82839 4.08402 6.38157L5.97777 4.8316C6.23714 4.6191 6.32465 4.26286 6.1934 3.95662L4.69339 0.456688C4.54652 0.12232 4.18402 -0.0620512 3.83089 0.0191972L0.580885 0.769182C0.243384 0.847305 -0.000366211 1.1473 -0.000366211 1.50042C-0.000366211 9.50338 6.48402 16.0001 14.4997 16.0001C14.8497 16.0001 15.1528 15.7595 15.2309 15.4189Z\"\r\n />\r\n </svg>\r\n <div class=\"address-container\">\r\n <a class=\"phone-number phone\" href=\"tel:{{ location.phone }}\">{{ location.phone }}</a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"covid-vacination-card-wrapper-footer\">\r\n <button dhclButton class=\"btn-space\" buttonType=\"primary\" (click)=\"btnOkClickHandler()\" buttonSize=\"small\">Book</button>\r\n </div>\r\n </div>\r\n</div>\r\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\r\nimport { CovidLocation } from '../../models/covid-location.model';\r\n\r\n@Component({\r\n selector: 'cs-covid-vaccination-location-card',\r\n templateUrl: './covid-vaccination-location-card.component.html',\r\n styleUrls: ['./covid-vaccination-location-card.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CovidVaccinationLocationCardComponent {\r\n @Input() location: CovidLocation;\r\n @Output() bookAppointment = new EventEmitter<any>();\r\n\r\n btnOkClickHandler(): void {\r\n const locationInformation = [this.location.id, this.location.scheduleId];\r\n this.bookAppointment.emit(locationInformation);\r\n }\r\n}\r\n","<div class=\"covid-vaccine-header\">\r\n <div class=\"covid-vaccine-header-content\">\r\n <img [src]=\"imgUrl\" alt=\"\" class=\"dh-logo\" />\r\n </div>\r\n</div>\r\n\r\n<div class=\"covid-vaccine-body\">\r\n <div class=\"covid-vaccine-body-container\">\r\n <div class=\"covid-vaccine-body-content\">\r\n <div class=\"covid-vaccine-body-content-left booking-info-container\">\r\n <h1 *ngIf=\"authCallsFinished && locations?.length > 0\" class=\"heading-text large\">Schedule your <br />COVID-19 vaccine</h1>\r\n <h1 *ngIf=\"authCallsFinished && !isMyTurnPatient && showInvitationOnlyMessage\" class=\"heading-text large\">\r\n Schedule your <br />COVID-19 vaccine\r\n </h1>\r\n <h1\r\n *ngIf=\"authCallsFinished && !isMyTurnPatient && !showInvitationOnlyMessage && locations?.length === 0\"\r\n class=\"heading-text large fs-70\"\r\n >\r\n There are no appointments at this location\r\n </h1>\r\n <h1 *ngIf=\"authCallsFinished && isMyTurnPatient && locations?.length === 0\" class=\"heading-text large\">\r\n There are no appointments at this location\r\n </h1>\r\n <div *ngIf=\"authCallsFinished\">\r\n <div *ngIf=\"locations?.length > 0 && !showInvitationOnlyMessage\">\r\n <p class=\"copy\">You are eligible to receive the COVID-19 vaccine! Choose a location below to schedule your vaccine.</p>\r\n </div>\r\n <div class=\"no-appointments-container\" *ngIf=\"locations?.length === 0 && !showInvitationOnlyMessage && !isMyTurnPatient\">\r\n <h2>We’re sorry! We will contact you when we receive more vaccines.</h2>\r\n <div class=\"copy\">\r\n <p>As soon as more supplies are made available to us, we will add more appointment times. We appreciate your patience.</p>\r\n <p>\r\n We are working closely with the local health department and with community partners to urgently secure additional\r\n vaccination allocations so that we can offer vaccination to all of our patients.\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"invitation-only-container\" *ngIf=\"showInvitationOnlyMessage && !isMyTurnPatient\">\r\n <h2>Currently, COVID-19 vaccine scheduling is by invitation only</h2>\r\n <div class=\"copy\">\r\n <p>\r\n Distribution of the vaccine is determined by the local county and state health department. We are participating in the\r\n administration of COVID-19 vaccines according to that distribution plan.\r\n </p>\r\n <p>\r\n Invitations to vaccinations are limited for now to those individuals in the currently qualifying categories. As soon as more\r\n supplies are made available to us, we will add more appointment times. We appreciate your patience. We are working closely\r\n with the local health department and with community partners to urgently secure additional vaccination allocations so that\r\n we can offer vaccination to all of our patients.\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"invitation-only-container\" *ngIf=\"isMyTurnPatient && locations?.length === 0\">\r\n <h2>As soon as more vaccine supply becomes available, we will add appointment times. Thank you for your patience.</h2>\r\n <div class=\"copy\">\r\n <p>Please check <a href=\"https://myturn.ca.gov\">myturn.ca.gov</a> for appointments in other locations.</p>\r\n <p>\r\n <button dhclButton buttonType=\"primary\" buttonSize=\"small\" (click)=\"returnToMyTurn()\">Return to My Turn</button>\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"covid-vacination-cards\">\r\n <cs-covid-vaccination-location-card\r\n *ngFor=\"let location of locations\"\r\n [location]=\"location\"\r\n class=\"result-card\"\r\n (bookAppointment)=\"updateLocation($event)\"\r\n ></cs-covid-vaccination-location-card>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"covid-vaccine-body-content-right\">\r\n <div class=\"shadows-box-container\">\r\n <div class=\"text-section\">\r\n <div class=\"text-heading\">Need help?</div>\r\n <div class=\"text-content\">\r\n If you are encountering technical issues, please call one of our representatives at\r\n <span>\r\n <a class=\"phone-number phone\" href=\"tel:{{ phoneNo }}\">{{ phoneNo }}</a>\r\n </span>\r\n .\r\n </div>\r\n </div>\r\n <div class=\"text-section\">\r\n <div class=\"text-heading\">Learn more</div>\r\n <div class=\"text-content\">\r\n For additional information on the COVID-19 and the vaccine approval process, we recommend reviewing the FAQs on the\r\n <a href=\"https://www.cdc.gov/coronavirus/2019-ncov/vaccines/faq.html\" target=\"_blank\">CDC website</a> and\r\n <a href=\"https://www.fda.gov/vaccines-blood-biologics/vaccines/emergency-use-authorization-vaccines-explained\" target=\"_blank\"\r\n >FDA website.</a\r\n >\r\n </div>\r\n </div>\r\n <div class=\"text-section\">\r\n <div class=\"text-heading\">Helpful articles</div>\r\n <div class=\"text-content\">\r\n <a href=\"https://dhmgblog.dignityhealth.org/covid-19-vaccine-myths-vs-facts\" target=\"_blank\"\r\n >COVID-19 Vaccine Myths vs Facts</a\r\n >\r\n </div>\r\n </div>\r\n <div class=\"text-section\">\r\n <div class=\"text-heading\">Our commitment to equitable vaccine distribution</div>\r\n <div class=\"text-content\">\r\n We are committed to distributing vaccines equitably and quickly in accordance with guidelines from health agencies. We hope to\r\n be able to offer the vaccine to all our patients as soon as possible within those guidelines. We expect this to be possible as\r\n the vaccine supply increases. Thank you for your understanding and patience.\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<dhcl-modal\r\n *ngIf=\"showModal\"\r\n [alignTop]=\"true\"\r\n [customClass]=\"'guided-flow-modal'\"\r\n [closeOnOverlay]=\"false\"\r\n [show]=\"true\"\r\n (closeClicked)=\"showModal = false\"\r\n>\r\n <dhgf-guided-flow\r\n *ngIf=\"runtimeConfig.envName\"\r\n [environment]=\"runtimeConfig.envName\"\r\n [showNewSchedulingApp]=\"true\"\r\n [isCaptchaEnabled]=\"isCaptchaEnabled\"\r\n [isLocationAppt]=\"true\"\r\n [locationIds]=\"apptTypes\"\r\n [appointmentTypes]=\"locationIds\"\r\n [mrn]=\"mrn\"\r\n [v5Provider]=\"v5Provider\"\r\n [providersSearchApimSubscriptionKey]=\"runtimeConfig.apimSubscriptionKey\"\r\n [patientDetail]=\"covidPatientInfo\"\r\n [isBookAgain]=\"isBookAgain\"\r\n [selectedAppointmentSchedule]=\"selectedAppointmentSchedule\"\r\n [showProviderPrefix]=\"showProviderPrefix\"\r\n (closeClicked)=\"showModal = false\"\r\n [useLegacyAPI]=\"useLegacyAPI\"\r\n ></dhgf-guided-flow>\r\n</dhcl-modal>\r\n<dhcl-loading-spinner [showSpinner]=\"showSpinner\"></dhcl-loading-spinner>\r\n","import { AfterViewInit, Component, Inject, OnInit } from '@angular/core';\r\nimport { RuntimeConfiguration } from '../../services/configuration-injection.service';\r\nimport { SchedulingService } from '../../services/scheduling.service';\r\nimport { ProviderSchedule } from '../../models/provider-schedules';\r\nimport { CovidLocation } from '../../models/covid-location.model';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { LocationService } from '../../services/location.service';\r\nimport { LogService } from '../../services/log.service';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\nimport { MarketLocation } from '../../models/market-location.model';\r\nimport { Provider } from '../../models/provider';\r\nimport { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';\r\nimport { ROOT_ELEMENT } from '../../utils/utils';\r\nimport { LogoConstants } from '../../constants/logo-constants';\r\nimport { CovidPatientInfo } from '../../models/covid-patient-info';\r\nimport { CjaTagService } from 'src/app/services/cja-tag.service';\r\n\r\n@Component({\r\n selector: 'cs-vaccination-location',\r\n templateUrl: './vaccination-location.component.html',\r\n styleUrls: ['./vaccination-location.component.scss']\r\n})\r\nexport class VaccinationLocationComponent implements OnInit, AfterViewInit {\r\n showModal = false;\r\n apptTypes = '';\r\n locationIds: string;\r\n showGuidedFlow = true;\r\n runtimeConfig: RuntimeConfiguration;\r\n isCaptchaEnabled = document.querySelector('#captcha-enabled')?.getAttribute('value') === 'true' || this.configService.getCaptchaEnabled();\r\n locations: CovidLocation[] = [];\r\n showSpinner = false;\r\n phoneNo = '(844) 274-8497';\r\n notableToken: string;\r\n cshToken: string;\r\n showInvitationOnlyMessage = false;\r\n authCallsFinished = false;\r\n mrn = '';\r\n city: string;\r\n state: string;\r\n zip: string;\r\n market: string;\r\n marketLocations: MarketLocation[] = [];\r\n isMyTurnPatient = false;\r\n showMyTurnError = false;\r\n myTurnErrorPhoneNumber: string;\r\n v5AppointmentTypes = [];\r\n v5Locations = [];\r\n v5Provider: Provider;\r\n imgUrl: SafeResourceUrl;\r\n myTurnV5Location = {};\r\n covidPatientInfo: CovidPatientInfo;\r\n covidSupportUseV5: boolean;\r\n filterLocationBy50Miles = false;\r\n isBookAgain = false;\r\n appointmentSchedules: any;\r\n selectedAppointmentSchedule?: any;\r\n showProviderPrefix = this.configService.showProviderPrefix();\r\n useLegacyAPI: boolean;\r\n\r\n constructor(\r\n private configService: ConfigurationService,\r\n private schedulingService: SchedulingService,\r\n private route: ActivatedRoute,\r\n private locationService: LocationService,\r\n private sanitizer: DomSanitizer,\r\n private logService: LogService,\r\n private cjatagservice: CjaTagService,\r\n @Inject(ROOT_ELEMENT) private rootElement: HTMLElement\r\n ) {\r\n this.route.queryParams.subscribe((params) => {\r\n if (params.location) {\r\n this.locationIds = params.location;\r\n }\r\n\r\n if (params.ref) {\r\n if (params.ref === 'mt') {\r\n this.isMyTurnPatient = true;\r\n } else if (params.ref === 'book_again') {\r\n this.isBookAgain = true;\r\n }\r\n } else {\r\n this.setAuthToken(params);\r\n }\r\n });\r\n this.runtimeConfig = this.configService.getRuntimeConfiguration();\r\n this.useLegacyAPI = this.configService.useLegacyAPI();\r\n }\r\n\r\n ngOnInit(): void {\r\n this.initializeRunTimeConfigs();\r\n this.link('covid landing page', '', '');\r\n this.initCovidFlow();\r\n this.imgUrl = this.sanitizer.bypassSecurityTrustResourceUrl(`${this.environmentBaseUrl + LogoConstants.default}`);\r\n this.covidSupportUseV5 = this.configService.getCovidSupportUseV5();\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n \r\n const fadContainer = document.querySelector('.fad-app-container');\r\n\r\n if (fadContainer) {\r\n fadContainer.classList.remove('fad-app-container');\r\n }\r\n }\r\n\r\n initializeRunTimeConfigs(): void {\r\n this.apptTypes = this.runtimeConfig?.covidVaccinationLocations[0]?.appointmentType;\r\n }\r\n\r\n initCovidFlow(): void {\r\n if (this.isMyTurnPatient || this.isBookAgain) {\r\n this.initMyTurnFlow();\r\n } else {\r\n this.authenticateUser();\r\n }\r\n }\r\n\r\n setAuthToken(params: any): void {\r\n if (params['token']) {\r\n this.notableToken = params['token'];\r\n }\r\n\r\n if (params['cshToken']) {\r\n this.cshToken = params['cshToken'];\r\n }\r\n }\r\n\r\n authenticateUser(): void {\r\n this.showSpinner = true;\r\n\r\n if (this.cshToken) {\r\n this.schedulingService.validateCSHToken(this.cshToken).subscribe(\r\n (data: any) => {\r\n this.showSpinner = false;\r\n if (data.mrn) {\r\n this.mrn = data.mrn;\r\n this.city = data.city;\r\n this.state = data.state;\r\n this.zip = data.postalCd;\r\n this.market = (data.market || '').toLowerCase();\r\n this.covidPatientInfo = {\r\n firstName: data?.firstName,\r\n lastName: data?.lastName,\r\n eMail: data?.emailAddress,\r\n dateOfBirth: data?.dateOfBirth?.replace(/\\//g, '-'),\r\n phoneNumber: data?.phoneNumber,\r\n MRN: data?.mrn\r\n };\r\n this.getMarketLocations();\r\n this.link('covid landing page - user authenticated', this.mrn, 'csh token');\r\n } else {\r\n this.showInvitationOnlyMessage = true;\r\n this.authCallsFinished = true;\r\n this.link('covid landing page - auth failed', this.cshToken, 'csh token');\r\n }\r\n },\r\n (error) => {\r\n this.showInvitationOnlyMessage = true;\r\n this.authCallsFinished = true;\r\n this.showSpinner = false;\r\n this.link('covid landing page - auth failed', this.cshToken, 'csh token');\r\n }\r\n );\r\n } else {\r\n this.validateNotableToken();\r\n }\r\n }\r\n\r\n validateNotableToken(): void {\r\n if (this.notableToken) {\r\n this.showSpinner = true;\r\n this.schedulingService.validateNotableToken(this.notableToken).subscribe(\r\n (result: any) => {\r\n this.showSpinner = false;\r\n\r\n if (result.MRN) {\r\n this.mrn = result.MRN;\r\n this.city = result.City;\r\n this.state = result.State;\r\n this.zip = result.PostalCd;\r\n this.market = (result.market || result.Market || '').toLowerCase();\r\n this.covidPatientInfo = {\r\n firstName: result?.FirstName,\r\n lastName: result?.LastName,\r\n eMail: result?.EmailAddress,\r\n dateOfBirth: result?.DateOfBirth?.replace(/\\//g, '-'),\r\n phoneNumber: result?.PhoneNumber,\r\n MRN: result?.MRN\r\n };\r\n this.getMarketLocations();\r\n this.link('covid landing page - user authenticated', this.mrn, 'notable token');\r\n } else {\r\n this.showInvitationOnlyMessage = true;\r\n this.authCallsFinished = true;\r\n this.link('covid landing page - auth failed', this.notableToken, 'notable token');\r\n }\r\n },\r\n (error) => {\r\n this.logService.error(error);\r\n this.showInvitationOnlyMessage = true;\r\n this.authCallsFinished = true;\r\n this.showSpinner = false;\r\n this.link('covid landing page - auth failed', this.notableToken, 'notable token');\r\n }\r\n );\r\n } else {\r\n this.showInvitationOnlyMessage = true;\r\n this.authCallsFinished = true;\r\n this.showSpinner = false;\r\n this.link('covid landing page - auth failed', '', 'no token');\r\n }\r\n }\r\n\r\n getMarketLocations(): void {\r\n this.schedulingService.getMarketLocations().subscribe(\r\n (markets: any) => {\r\n if (markets && markets[this.market]) {\r\n this.marketLocations = markets;\r\n const locationIds: string = this.marketLocations[this.market]\r\n .map((marketLocation: MarketLocation) => marketLocation.id)\r\n .toString();\r\n\r\n this.getHeaderDHMGLogo();\r\n this.getLocationsByAppointmentType(locationIds);\r\n } else {\r\n this.getLocationsByAppointmentType();\r\n }\r\n },\r\n (error) => {\r\n this.getLocationsByAppointmentType();\r\n }\r\n );\r\n }\r\n\r\n getLocationsByAppointmentType(locationIds?: string) {\r\n if (this.covidSupportUseV5) {\r\n this.getV5Schedule();\r\n } else {\r\n this.showSpinner = true;\r\n\r\n const eventStartTime = new Date().getTime();\r\n this.schedulingService.getLocationsByApptointmentType(this.apptTypes, locationIds).subscribe(\r\n (result: any) => {\r\n this.link(\r\n 'get covid locations',\r\n '8',\r\n 'end',\r\n 'search and schedule',\r\n new Date().getTime().toString(),\r\n (new Date().getTime() - eventStartTime).toString()\r\n );\r\n this.setLocations(result);\r\n if(this.appointmentSchedules?.data?.length > 1)\r\n {\r\n this.showSpinner = false;\r\n this.authCallsFinished = true;\r\n }\r\n else{ \r\n this.clickCovidLauncherBtn();\r\n }\r\n \r\n \r\n },\r\n (err) => {\r\n this.noLocationsFound();\r\n }\r\n );\r\n }\r\n }\r\n\r\n get environmentBaseUrl(): string {\r\n const el = document.createElement('a');\r\n if (this.rootElement) {\r\n // This only works if the sibling is the script tag. This is not guaranteed!\r\n el.href = this.rootElement.nextElementSibling.getAttribute('src');\r\n }\r\n return `${el.protocol}//${el.hostname}${el.port ? ':' + el.port : ''}`;\r\n }\r\n\r\n setLocations(response: any): void {\r\n this.appointmentSchedules = response;\r\n\r\n response.data.forEach((providerSchedule: ProviderSchedule) => {\r\n const location: CovidLocation = providerSchedule.attributes['location'];\r\n const marketLocation = (this.marketLocations[this.market] || []).find((mlocation: MarketLocation) => mlocation.id === location.id);\r\n\r\n if (marketLocation) {\r\n location.name = marketLocation.name;\r\n location.address = marketLocation.address.street;\r\n location.city = marketLocation.address.city;\r\n location.state = marketLocation.address.state;\r\n location.zip = marketLocation.address.zip;\r\n location.phone = marketLocation.phone;\r\n } else {\r\n this.filterLocationBy50Miles = true;\r\n }\r\n location.scheduleId = providerSchedule.id;\r\n location.providerName = this.appointmentSchedules.data.length > 1 ? providerSchedule.attributes['provider'].name : null;\r\n location.availableTimes = providerSchedule.attributes['available-times'];\r\n location.phone = this.formatPhone(location.phone);\r\n if ((location.availableTimes || []).length > 0) {\r\n this.locations.push(location);\r\n }\r\n });\r\n\r\n if (this.locations.length > 0) {\r\n this.sortLocationListByUserLocation();\r\n } else {\r\n this.link('covid landing page - no locations found', this.mrn);\r\n }\r\n }\r\n\r\n clickCovidLauncherBtn(): void {\r\n this.showSpinner = false;\r\n this.authCallsFinished = true;\r\n\r\n if (this.isMyTurnPatient || this.isBookAgain) {\r\n window.setTimeout(() => {\r\n const covidLauncherBtn: HTMLButtonElement = document.querySelector('.covid-vacination-cards button');\r\n covidLauncherBtn?.click();\r\n }, 100);\r\n }\r\n }\r\n\r\n noLocationsFound(): void {\r\n const eventStartTime = new Date().getTime();\r\n this.link(\r\n 'get covid locations',\r\n '8',\r\n 'end',\r\n 'search and schedule',\r\n new Date().getTime().toString(),\r\n (new Date().getTime() - eventStartTime).toString()\r\n );\r\n this.locations = [];\r\n this.showSpinner = false;\r\n this.authCallsFinished = true;\r\n this.link('covid landing page - no locations found', this.mrn);\r\n }\r\n\r\n formatPhone(phone: string): string {\r\n const phoneNumber = phone || '';\r\n\r\n if (phoneNumber.length === 11) {\r\n return phoneNumber.replace(/(\\d{1})(\\d{3})(\\d{3})(\\d{4})/, '($2) $3-$4');\r\n } else if (phoneNumber.length === 10) {\r\n return phoneNumber.replace(/(\\d{3})(\\d{3})(\\d{4})/, '($1) $2-$3');\r\n }\r\n return phoneNumber;\r\n }\r\n\r\n updateLocation(locationInfo: string[]): void {\r\n this.locationIds = locationInfo[0];\r\n if (this.covidSupportUseV5) {\r\n this.setV5Provider(locationInfo[0]);\r\n }\r\n //filter by schedule id\r\n if (this.appointmentSchedules.data.length > 1)\r\n {this.selectedAppointmentSchedule = this.appointmentSchedules.data.filter(s => s.id == locationInfo[1]);}\r\n else {this.selectedAppointmentSchedule = null;}\r\n this.showModal = true;\r\n }\r\n\r\n \r\n\r\n sortLocationListByUserLocation(): void {\r\n if ((this.city && this.state) || this.zip) {\r\n const query = `${this.city || ''} ${this.state || ''} ${this.zip || ''}`;\r\n this.locationService.getLocationSuggestions(query).subscribe((location: any) => {\r\n if (location.result?.length > 0) {\r\n this.locationService.getTypedLocationDetail(location.result[0].googlePlaceId).subscribe((result) => {\r\n if (result?.result) {\r\n const position = result.result;\r\n this.sortLocationsWithDistance(position.latitude, position.longitude);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n sortLocationsWithDistance(lat: number, lng: number) {\r\n this.locations.forEach((location: CovidLocation) => {\r\n location.distanceInMiles = this.calculateDistanceInMiles(location.latitude, location.longitude, lat, lng);\r\n });\r\n if (this.filterLocationBy50Miles) {\r\n this.locations = this.locations.filter((x) => x.distanceInMiles <= 50);\r\n }\r\n if (this.locations.length > 0) {\r\n this.locations.sort((x: CovidLocation, y: CovidLocation) => x.distanceInMiles - y.distanceInMiles);\r\n } else {\r\n this.link('covid landing page - no locations found', this.mrn);\r\n }\r\n }\r\n\r\n calculateDistanceInMiles(lat1: number, lon1: number, lat2: number, lon2: number) {\r\n const p = 0.017453292519943295;\r\n const c = Math.cos;\r\n const a = 0.5 - c((lat2 - lat1) * p) / 2 + (c(lat1 * p) * c(lat2 * p) * (1 - c((lon2 - lon1) * p))) / 2;\r\n\r\n return 12742 * Math.asin(Math.sqrt(a)) * 0.621371;\r\n }\r\n\r\n link(action: string, mrn = '', label = '', category = 'search and schedule', eventTimestamp = '', eventTimeElapsed = ''): void {\r\n const data = {\r\n search_schedule_mrn: `${mrn}`,\r\n mrn: `${mrn}`,\r\n event_mrn: `${mrn}`,\r\n event: 'customEvent',\r\n event_name: eventTimestamp ? `${category}:${action} - ${label}` : `${category}:${action}`,\r\n event_category: category,\r\n event_action: action,\r\n event_label: label,\r\n event_service_line: '',\r\n search_schedule_book_online: 'true',\r\n search_schedule_keyword: '',\r\n patientEngagement: 'true',\r\n event_timestamp: `${eventTimestamp}`,\r\n event_time_elapsed: `${eventTimeElapsed}`,\r\n patient_fname: this.covidPatientInfo ? this.covidPatientInfo.firstName || '' : '',\r\n patient_lname: this.covidPatientInfo ? this.covidPatientInfo.lastName || '' : '',\r\n patient_dob: this.covidPatientInfo ? this.covidPatientInfo.dateOfBirth || '' : '',\r\n patient_email: this.covidPatientInfo ? this.covidPatientInfo.eMail || '' : '',\r\n patient_phone: this.covidPatientInfo ? this.covidPatientInfo.phoneNumber || '' : '',\r\n event_appointment_booking_type: ''\r\n };\r\n this.cjatagservice.logCJAEvent(data);\r\n }\r\n \r\n mapLocationIdForCovidBookAgain(): void {\r\n Object.keys(this.marketLocations).forEach((market: string) => {\r\n const marketLocation: MarketLocation = this.marketLocations[market].find((marketLoc: MarketLocation) => marketLoc.name === this.locationIds);\r\n if (marketLocation) {\r\n this.locationIds = marketLocation.id;\r\n }\r\n });\r\n }\r\n initMyTurnFlow(): void {\r\n let logoValue: string = null;\r\n this.schedulingService.getMarketLocations().subscribe(\r\n (markets: MarketLocation[]) => {\r\n this.marketLocations = markets;\r\n if (this.isBookAgain) {\r\n this.mapLocationIdForCovidBookAgain();\r\n }\r\n if (this.covidSupportUseV5) {\r\n Object.keys(this.marketLocations).forEach((market: string) => {\r\n this.marketLocations[market].forEach((marketLocation: MarketLocation) => {\r\n if (marketLocation.id === this.locationIds) {\r\n this.locationIds = marketLocation.idx_id;\r\n this.myTurnV5Location = marketLocation;\r\n logoValue = marketLocation.logo;\r\n }\r\n });\r\n });\r\n } else {\r\n //Added this else to handle useV5 = false flow to change logo as per market-locations.json file\r\n Object.keys(this.marketLocations).forEach((market: string) => {\r\n const matchingLogo: MarketLocation = this.marketLocations[market].find((marketLocation: MarketLocation) => marketLocation.id === this.locationIds);\r\n\r\n if (matchingLogo) {\r\n logoValue = matchingLogo.logo;\r\n }\r\n });\r\n }\r\n this.getLocationsByAppointmentType(this.locationIds);\r\n this.getHeaderDHMGLogo(logoValue);\r\n },\r\n (error) => {\r\n this.authCallsFinished = true;\r\n }\r\n );\r\n }\r\n\r\n //Keep this to handle header logo changes occourding to the logo condition on market-location.json file\r\n getHeaderDHMGLogo(logoValue: string = null): void {\r\n let logoPath = null;\r\n if (logoValue) {\r\n logoPath = LogoConstants[logoValue.toLowerCase()];\r\n } else {\r\n //Covid flow with notableToken and cshToken\r\n if (this.marketLocations && (this.market || this.market === '')) {\r\n const distinctLogoList = this.marketLocations[this.market].filter(\r\n (item, i, arr) => arr.findIndex((t) => t.logo === item.logo) === i\r\n );\r\n if (distinctLogoList.length === 1 && distinctLogoList[0].logo) {\r\n logoPath = LogoConstants[distinctLogoList[0].logo.toLowerCase()];\r\n }\r\n }\r\n }\r\n if (!logoPath) {\r\n logoPath = LogoConstants.default;\r\n }\r\n this.imgUrl = this.sanitizer.bypassSecurityTrustResourceUrl(`${this.environmentBaseUrl}${logoPath}`);\r\n }\r\n\r\n returnToMyTurn(): void {\r\n window.location.href = 'https://myturn.ca.gov';\r\n }\r\n\r\n /* V5 API Replacement */\r\n getV5Schedule(): void {\r\n const eventStartTime = new Date().getTime();\r\n this.showSpinner = true;\r\n this.schedulingService.getV5AuthToken().subscribe(\r\n (authResults: any) => {\r\n const authToken = authResults.data.attributes['access-token'];\r\n\r\n let idxIds;\r\n if (!this.locationIds) {\r\n idxIds = this.marketLocations[this.market].map((marketLocations: MarketLocation) => marketLocations.idx_id);\r\n } else {\r\n idxIds = [this.locationIds];\r\n }\r\n\r\n this.schedulingService.getV5AppointmentTypes().subscribe((appointmentTypes) => {\r\n this.v5AppointmentTypes = appointmentTypes;\r\n\r\n this.schedulingService.getLocationsByApptointmentTypeV5(this.apptTypes.split(','), idxIds, authToken, 'geSac').subscribe(\r\n (results) => {\r\n this.link(\r\n 'get covid locations',\r\n '8',\r\n 'end',\r\n 'search and schedule',\r\n new Date().getTime().toString(),\r\n (new Date().getTime() - eventStartTime).toString()\r\n );\r\n\r\n this.v5Locations = this.combineDuplicateLocations(results.model);\r\n\r\n const mappedResults = this.v5Locations.map((v5Locations) => {\r\n let v5Location;\r\n if (this.isMyTurnPatient) {\r\n v5Location = this.myTurnV5Location;\r\n\r\n return {\r\n attributes: {\r\n location: {\r\n address: v5Location.address.street,\r\n city: v5Location.address.city,\r\n latitude: null,\r\n longitude: null,\r\n name: v5Location.name,\r\n phone: v5Location.phone,\r\n state: v5Location.address.state,\r\n zip: v5Location.address.zip,\r\n id: v5Location.idx_id\r\n },\r\n 'available-times': v5Locations.openTimes\r\n }\r\n };\r\n } else {\r\n v5Location = (this.marketLocations[this.market] || []).find((mlocation: MarketLocation) => mlocation.idx_id === v5Locations.location.sourceId);\r\n\r\n return {\r\n attributes: {\r\n location: {\r\n address: v5Location.address.street,\r\n city: v5Location.address.city,\r\n latitude: null,\r\n longitude: null,\r\n name: v5Location.name,\r\n phone: v5Location.phone,\r\n state: v5Location.address.state,\r\n zip: v5Location.address.zip,\r\n id: v5Locations.location.sourceId\r\n },\r\n 'available-times': v5Locations.openTimes\r\n }\r\n };\r\n }\r\n });\r\n\r\n this.setLocations({ data: mappedResults });\r\n this.clickCovidLauncherBtn();\r\n },\r\n (err) => {\r\n this.noLocationsFound();\r\n }\r\n );\r\n });\r\n },\r\n (err) => {\r\n this.noLocationsFound();\r\n }\r\n );\r\n }\r\n\r\n setV5Provider(locationId): void {\r\n const selectedLocation = this.v5Locations.find((v5Location) => v5Location.location.sourceId === locationId);\r\n\r\n let selectedMarketLocation;\r\n\r\n Object.keys(this.marketLocations).forEach((key: string) => {\r\n const marketLocation = this.marketLocations[key].find((mk) => mk.idx_id === locationId);\r\n\r\n if (marketLocation) {\r\n selectedMarketLocation = marketLocation;\r\n }\r\n });\r\n\r\n const appointmentTimes = this.getV5AppointmentTimes(selectedLocation.openTimes);\r\n const nextAvailable = this.getNextV5AppointmentTimes(appointmentTimes);\r\n\r\n this.v5Provider = {\r\n displayFullName: selectedMarketLocation.name,\r\n acceptsNewPatients: true,\r\n images: null,\r\n primarySpecialty: 'Covid Vaccination',\r\n onlineBookingAvailability: [\r\n {\r\n appointmentTypes: this.v5AppointmentTypes,\r\n supportsOnlineBooking: true,\r\n providerSchedulingId: selectedLocation.provider.id,\r\n scheduleId: selectedLocation.location.id,\r\n officeAddressId: selectedLocation.location.id,\r\n facilitySchedulingId: selectedMarketLocation.id,\r\n availableTimes: appointmentTimes,\r\n nextAvailableTimes: nextAvailable\r\n }\r\n ],\r\n isBookOnline: true,\r\n offices: [\r\n {\r\n supportsOnlineBooking: true,\r\n id: selectedMarketLocation.id,\r\n name: selectedMarketLocation.name,\r\n addresses: [\r\n {\r\n name: selectedMarketLocation.name,\r\n id: selectedLocation.location.id,\r\n address: selectedMarketLocation.address.street,\r\n state: selectedMarketLocation.address.state,\r\n city: selectedMarketLocation.address.city,\r\n zip: selectedMarketLocation.address.zip,\r\n phone: selectedMarketLocation.phone,\r\n services: [],\r\n supportsOnlineBooking: true\r\n }\r\n ]\r\n }\r\n ]\r\n } as any;\r\n }\r\n\r\n getV5AppointmentTimes(v5Timeslots: { appointmentType: string; date: string; time: string }[]): any[] {\r\n const onlineBookingAvailability = [];\r\n const onlineBookingDays = {};\r\n\r\n v5Timeslots.forEach((timeSlot) => {\r\n const splitDate = timeSlot.date.split('/');\r\n const splitTime = timeSlot.time.split(':');\r\n const minutes = splitTime[1].substring(0, 2);\r\n const hourOffset = splitTime[1].substring(2, 4) === 'PM' ? 12 : 0;\r\n\r\n let hours = 12;\r\n if (splitTime[0] !== '12') {\r\n hours = Number.parseInt(splitTime[0], 10) + hourOffset;\r\n }\r\n\r\n const formattedDate = `${splitDate[2]}-${splitDate[0]}-${splitDate[1]}`;\r\n const formattedTime = `${hours > 9 ? hours : '0' + hours.toString()}:${minutes}:00-07:00`;\r\n\r\n if (onlineBookingDays[formattedDate]) {\r\n onlineBookingDays[formattedDate].times.push({\r\n time: `${formattedDate}T${formattedTime}`,\r\n appointmentTypes: [\r\n {\r\n id: this.v5AppointmentTypes.find((at) => at.remoteId === timeSlot.appointmentType).id\r\n }\r\n ]\r\n });\r\n } else {\r\n onlineBookingDays[formattedDate] = {\r\n times: [\r\n {\r\n time: `${formattedDate}T${formattedTime}`,\r\n appointmentTypes: [\r\n {\r\n id: this.v5AppointmentTypes.find((at) => at.remoteId === timeSlot.appointmentType).id\r\n }\r\n ]\r\n }\r\n ]\r\n };\r\n }\r\n });\r\n\r\n Object.keys(onlineBookingDays).forEach((key: string) => {\r\n onlineBookingAvailability.push({\r\n date: key,\r\n times: onlineBookingDays[key].times\r\n });\r\n });\r\n\r\n return onlineBookingAvailability || [];\r\n }\r\n\r\n getNextV5AppointmentTimes(onlineBookingAvailability): any[] {\r\n return this.v5AppointmentTypes.map((apptTypes) => ({\r\n appointmentType: apptTypes.id,\r\n time: this.getNextV5AvailableTimeSlotsByApptTypeId(onlineBookingAvailability, apptTypes.id)\r\n }));\r\n }\r\n getNextV5AvailableTimeSlotsByApptTypeId(onlineBookingAvailability, apptTypeId: string): string {\r\n let returnValue = '';\r\n onlineBookingAvailability.some((dateSchedule) => {\r\n const appointmentTimes = dateSchedule.times.filter(\r\n (timeSchedule) => timeSchedule.appointmentTypes.findIndex((aType) => aType.id === apptTypeId) > -1\r\n );\r\n if (appointmentTimes.length > 0) {\r\n returnValue = appointmentTimes[0].time;\r\n return returnValue;\r\n }\r\n });\r\n return returnValue;\r\n }\r\n combineDuplicateLocations(v5Locations): any[] {\r\n const clonedLocation = [];\r\n\r\n v5Locations.forEach((v5Location) => {\r\n const existingIndex = clonedLocation.findIndex((cl) => cl.location?.sourceId === v5Location.location.sourceId);\r\n\r\n if (existingIndex < 0) {\r\n clonedLocation.push(v5Location);\r\n } else {\r\n clonedLocation[existingIndex].openTimes = clonedLocation[existingIndex].openTimes.concat(v5Location.openTimes);\r\n }\r\n });\r\n\r\n return clonedLocation;\r\n }\r\n}\r\n","import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { VaccinationLocationComponent } from './vaccination-location.component';\r\nimport { RouterModule } from '@angular/router';\r\nimport { SharedModule } from 'src/app/components/shared.module';\r\nimport { CovidVaccinationLocationCardComponent } from 'src/app/components/covid-vaccination-location-card/covid-vaccination-location-card.component';\r\n\r\n@NgModule({\r\n declarations: [VaccinationLocationComponent, CovidVaccinationLocationCardComponent],\r\n imports: [\r\n CommonModule,\r\n SharedModule,\r\n RouterModule.forChild([\r\n {\r\n path: '',\r\n component: VaccinationLocationComponent\r\n }\r\n ])\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class VaccinationLocationModule {}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormatDistancePipe } from './format-distance.pipe';\r\n\r\n@NgModule({\r\n declarations: [FormatDistancePipe],\r\n exports: [FormatDistancePipe],\r\n imports: [CommonModule]\r\n})\r\nexport class PipesModule {}\r\n","/*!\n * Microsoft Dynamic Proto Utility, 1.1.11\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nvar _a;\r\nvar UNDEFINED = \"undefined\";\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar Constructor = 'constructor';\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar Prototype = 'prototype';\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar strFunction = 'function';\r\n/**\r\n * Used to define the name of the instance function lookup table\r\n * @ignore\r\n */\r\nvar DynInstFuncTable = '_dynInstFuncs';\r\n/**\r\n * Name used to tag the dynamic prototype function\r\n * @ignore\r\n */\r\nvar DynProxyTag = '_isDynProxy';\r\n/**\r\n * Name added to a prototype to define the dynamic prototype \"class\" name used to lookup the function table\r\n * @ignore\r\n */\r\nvar DynClassName = '_dynClass';\r\n/**\r\n * Prefix added to the classname to avoid any name clashes with other instance level properties\r\n * @ignore\r\n */\r\nvar DynClassNamePrefix = '_dynCls$';\r\n/**\r\n * A tag which is used to check if we have already to attempted to set the instance function if one is not present\r\n * @ignore\r\n */\r\nvar DynInstChkTag = '_dynInstChk';\r\n/**\r\n * A tag which is used to check if we are allows to try and set an instance function is one is not present. Using the same\r\n * tag name as the function level but a different const name for readability only.\r\n */\r\nvar DynAllowInstChkTag = DynInstChkTag;\r\n/**\r\n * The global (imported) instances where the global performance options are stored\r\n */\r\nvar DynProtoDefaultOptions = '_dfOpts';\r\n/**\r\n * Value used as the name of a class when it cannot be determined\r\n * @ignore\r\n */\r\nvar UnknownValue = '_unknown_';\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar str__Proto = \"__proto__\";\r\n/**\r\n * The polyfill version of __proto__ so that it doesn't cause issues for anyone not expecting it to exist\r\n */\r\nvar DynProtoBaseProto = \"_dyn\" + str__Proto;\r\n/**\r\n * Runtime Global holder for dynamicProto settings\r\n */\r\nvar DynProtoGlobalSettings = \"__dynProto$Gbl\";\r\n/**\r\n * Track the current prototype for IE8 as you can't look back to get the prototype\r\n */\r\nvar DynProtoCurrent = \"_dynInstProto\";\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar strUseBaseInst = 'useBaseInst';\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar strSetInstFuncs = 'setInstFuncs';\r\nvar Obj = Object;\r\n/**\r\n * Pre-lookup to check if we are running on a modern browser (i.e. not IE8)\r\n * @ignore\r\n */\r\nvar _objGetPrototypeOf = Obj[\"getPrototypeOf\"];\r\n/**\r\n * Pre-lookup to check for the existence of this function\r\n */\r\nvar _objGetOwnProps = Obj[\"getOwnPropertyNames\"];\r\n/**\r\n * Gets the runtime global reference\r\n * @returns\r\n */\r\nfunction _getGlobal() {\r\n var result;\r\n if (typeof globalThis !== UNDEFINED) {\r\n result = globalThis;\r\n }\r\n if (!result && typeof self !== UNDEFINED) {\r\n result = self;\r\n }\r\n if (!result && typeof window !== UNDEFINED) {\r\n result = window;\r\n }\r\n if (!result && typeof global !== UNDEFINED) {\r\n result = global;\r\n }\r\n return result || {};\r\n}\r\n// Since 1.1.7 moving these to the runtime global to work around mixed version and module issues\r\n// See Issue https://github.com/microsoft/DynamicProto-JS/issues/57 for details\r\nvar _gbl = _getGlobal();\r\nvar _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {\r\n o: (_a = {},\r\n _a[strSetInstFuncs] = true,\r\n _a[strUseBaseInst] = true,\r\n _a),\r\n n: 1000 // Start new global index @ 1000 so we \"fix\" some cases when mixed with 1.1.6 or earlier\r\n});\r\n/**\r\n * Helper to check if the object contains a property of the name\r\n * @ignore\r\n */\r\nfunction _hasOwnProperty(obj, prop) {\r\n return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);\r\n}\r\n/**\r\n * Helper used to check whether the target is an Object prototype or Array prototype\r\n * @ignore\r\n */\r\nfunction _isObjectOrArrayPrototype(target) {\r\n return target && (target === Obj[Prototype] || target === Array[Prototype]);\r\n}\r\n/**\r\n * Helper used to check whether the target is an Object prototype, Array prototype or Function prototype\r\n * @ignore\r\n */\r\nfunction _isObjectArrayOrFunctionPrototype(target) {\r\n return _isObjectOrArrayPrototype(target) || target === Function[Prototype];\r\n}\r\n/**\r\n * Helper used to get the prototype of the target object as getPrototypeOf is not available in an ES3 environment.\r\n * @ignore\r\n */\r\nfunction _getObjProto(target) {\r\n var newProto;\r\n if (target) {\r\n // This method doesn't exist in older browsers (e.g. IE8)\r\n if (_objGetPrototypeOf) {\r\n return _objGetPrototypeOf(target);\r\n }\r\n var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);\r\n // Using the pre-calculated value as IE8 doesn't support looking up the prototype of a prototype and thus fails for more than 1 base class\r\n newProto = target[DynProtoBaseProto] || curProto;\r\n if (!_hasOwnProperty(target, DynProtoBaseProto)) {\r\n // As this prototype doesn't have this property then this is from an inherited class so newProto is the base to return so save it\r\n // so we can look it up value (which for a multiple hierarchy dynamicProto will be the base class)\r\n delete target[DynProtoCurrent]; // Delete any current value allocated to this instance so we pick up the value from prototype hierarchy\r\n newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];\r\n target[DynProtoCurrent] = curProto;\r\n }\r\n }\r\n return newProto;\r\n}\r\n/**\r\n * Helper to get the properties of an object, including none enumerable ones as functions on a prototype in ES6\r\n * are not enumerable.\r\n * @param target\r\n */\r\nfunction _forEachProp(target, func) {\r\n var props = [];\r\n if (_objGetOwnProps) {\r\n props = _objGetOwnProps(target);\r\n }\r\n else {\r\n for (var name_1 in target) {\r\n if (typeof name_1 === \"string\" && _hasOwnProperty(target, name_1)) {\r\n props.push(name_1);\r\n }\r\n }\r\n }\r\n if (props && props.length > 0) {\r\n for (var lp = 0; lp < props.length; lp++) {\r\n func(props[lp]);\r\n }\r\n }\r\n}\r\n/**\r\n * Helper function to check whether the provided function name is a potential candidate for dynamic\r\n * callback and prototype generation.\r\n * @param target The target object, may be a prototype or class object\r\n * @param funcName The function name\r\n * @param skipOwn Skips the check for own property\r\n * @ignore\r\n */\r\nfunction _isDynamicCandidate(target, funcName, skipOwn) {\r\n return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);\r\n}\r\n/**\r\n * Helper to throw a TypeError exception\r\n * @param message the message\r\n * @ignore\r\n */\r\nfunction _throwTypeError(message) {\r\n throw new TypeError(\"DynamicProto: \" + message);\r\n}\r\nfunction _newObject() {\r\n return Object.create ? (function(obj) { /* ai_es3_polyfil create */ var func = Object[\"create\"]; if (func) { return func(obj); } if (obj == null) { return {}; } var type = typeof obj; if (type !== 'object' && type !== 'function') { throw new TypeError('Object prototype may only be an Object:' + obj); } function tmpFunc() {} tmpFunc.prototype = obj; return new tmpFunc(); })(null) : {};\r\n}\r\n/**\r\n * Returns a collection of the instance functions that are defined directly on the thisTarget object, it does\r\n * not return any inherited functions\r\n * @param thisTarget The object to get the instance functions from\r\n * @ignore\r\n */\r\nfunction _getInstanceFuncs(thisTarget) {\r\n // Get the base proto\r\n var instFuncs = _newObject();\r\n // Save any existing instance functions\r\n _forEachProp(thisTarget, function (name) {\r\n // Don't include any dynamic prototype instances - as we only want the real functions\r\n if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {\r\n // Create an instance callback for passing the base function to the caller\r\n instFuncs[name] = thisTarget[name];\r\n }\r\n });\r\n return instFuncs;\r\n}\r\n/**\r\n * Returns whether the value is included in the array\r\n * @param values The array of values\r\n * @param value The value\r\n */\r\nfunction _hasVisited(values, value) {\r\n for (var lp = values.length - 1; lp >= 0; lp--) {\r\n if (values[lp] === value) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n/**\r\n * Returns an object that contains callback functions for all \"base/super\" functions, this is used to \"save\"\r\n * enabling calling super.xxx() functions without requiring that the base \"class\" has defined a prototype references\r\n * @param target The current instance\r\n * @ignore\r\n */\r\nfunction _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {\r\n function _instFuncProxy(target, funcHost, funcName) {\r\n var theFunc = funcHost[funcName];\r\n if (theFunc[DynProxyTag] && useBaseInst) {\r\n // grab and reuse the hosted looking function (if available) otherwise the original passed function\r\n var instFuncTable = target[DynInstFuncTable] || {};\r\n if (instFuncTable[DynAllowInstChkTag] !== false) {\r\n theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;\r\n }\r\n }\r\n return function () {\r\n // eslint-disable-next-line prefer-rest-params\r\n return theFunc.apply(target, arguments);\r\n };\r\n }\r\n // Start creating a new baseFuncs by creating proxies for the instance functions (as they may get replaced)\r\n var baseFuncs = _newObject();\r\n _forEachProp(instFuncs, function (name) {\r\n // Create an instance callback for passing the base function to the caller\r\n baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);\r\n });\r\n // Get the base prototype functions\r\n var baseProto = _getObjProto(classProto);\r\n var visited = [];\r\n // Don't include base object functions for Object, Array or Function\r\n while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {\r\n // look for prototype functions\r\n _forEachProp(baseProto, function (name) {\r\n // Don't include any dynamic prototype instances - as we only want the real functions\r\n // For IE 7/8 the prototype lookup doesn't provide the full chain so we need to bypass the \r\n // hasOwnProperty check we get all of the methods, main difference is that IE7/8 doesn't return\r\n // the Object prototype methods while bypassing the check\r\n if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {\r\n // Create an instance callback for passing the base function to the caller\r\n baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);\r\n }\r\n });\r\n // We need to find all possible functions that might be overloaded by walking the entire prototype chain\r\n // This avoids the caller from needing to check whether it's direct base class implements the function or not\r\n // by walking the entire chain it simplifies the usage and issues from upgrading any of the base classes.\r\n visited.push(baseProto);\r\n baseProto = _getObjProto(baseProto);\r\n }\r\n return baseFuncs;\r\n}\r\nfunction _getInstFunc(target, funcName, proto, currentDynProtoProxy) {\r\n var instFunc = null;\r\n // We need to check whether the class name is defined directly on this prototype otherwise\r\n // it will walk the proto chain and return any parent proto classname.\r\n if (target && _hasOwnProperty(proto, DynClassName)) {\r\n var instFuncTable = target[DynInstFuncTable] || _newObject();\r\n instFunc = (instFuncTable[proto[DynClassName]] || _newObject())[funcName];\r\n if (!instFunc) {\r\n // Avoid stack overflow from recursive calling the same function\r\n _throwTypeError(\"Missing [\" + funcName + \"] \" + strFunction);\r\n }\r\n // We have the instance function, lets check it we can speed up further calls\r\n // by adding the instance function back directly on the instance (avoiding the dynamic func lookup)\r\n if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {\r\n // If the instance already has an instance function we can't replace it\r\n var canAddInst = !_hasOwnProperty(target, funcName);\r\n // Get current prototype\r\n var objProto = _getObjProto(target);\r\n var visited = [];\r\n // Lookup the function starting at the top (instance level prototype) and traverse down, if the first matching function\r\n // if nothing is found or if the first hit is a dynamic proto instance then we can safely add an instance shortcut\r\n while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {\r\n var protoFunc = objProto[funcName];\r\n if (protoFunc) {\r\n canAddInst = (protoFunc === currentDynProtoProxy);\r\n break;\r\n }\r\n // We need to find all possible initial functions to ensure that we don't bypass a valid override function\r\n visited.push(objProto);\r\n objProto = _getObjProto(objProto);\r\n }\r\n try {\r\n if (canAddInst) {\r\n // This instance doesn't have an instance func and the class hierarchy does have a higher level prototype version\r\n // so it's safe to directly assign for any subsequent calls (for better performance)\r\n target[funcName] = instFunc;\r\n }\r\n // Block further attempts to set the instance function for any\r\n instFunc[DynInstChkTag] = 1;\r\n }\r\n catch (e) {\r\n // Don't crash if the object is readonly or the runtime doesn't allow changing this\r\n // And set a flag so we don't try again for any function\r\n instFuncTable[DynAllowInstChkTag] = false;\r\n }\r\n }\r\n }\r\n return instFunc;\r\n}\r\nfunction _getProtoFunc(funcName, proto, currentDynProtoProxy) {\r\n var protoFunc = proto[funcName];\r\n // Check that the prototype function is not a self reference -- try to avoid stack overflow!\r\n if (protoFunc === currentDynProtoProxy) {\r\n // It is so lookup the base prototype\r\n protoFunc = _getObjProto(proto)[funcName];\r\n }\r\n if (typeof protoFunc !== strFunction) {\r\n _throwTypeError(\"[\" + funcName + \"] is not a \" + strFunction);\r\n }\r\n return protoFunc;\r\n}\r\n/**\r\n * Add the required dynamic prototype methods to the the class prototype\r\n * @param proto - The class prototype\r\n * @param className - The instance classname\r\n * @param target - The target instance\r\n * @param baseInstFuncs - The base instance functions\r\n * @param setInstanceFunc - Flag to allow prototype function to reset the instance function if one does not exist\r\n * @ignore\r\n */\r\nfunction _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {\r\n function _createDynamicPrototype(proto, funcName) {\r\n var dynProtoProxy = function () {\r\n // Use the instance or prototype function\r\n var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);\r\n // eslint-disable-next-line prefer-rest-params\r\n return instFunc.apply(this, arguments);\r\n };\r\n // Tag this function as a proxy to support replacing dynamic proxy elements (primary use case is for unit testing\r\n // via which can dynamically replace the prototype function reference)\r\n dynProtoProxy[DynProxyTag] = 1;\r\n return dynProtoProxy;\r\n }\r\n if (!_isObjectOrArrayPrototype(proto)) {\r\n var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || _newObject();\r\n if (!_isObjectOrArrayPrototype(instFuncTable)) {\r\n var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || _newObject()); // fetch and assign if as it may not exist yet\r\n // Set whether we are allow to lookup instances, if someone has set to false then do not re-enable\r\n if (instFuncTable[DynAllowInstChkTag] !== false) {\r\n instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;\r\n }\r\n if (!_isObjectOrArrayPrototype(instFuncs_1)) {\r\n _forEachProp(target, function (name) {\r\n // Only add overridden functions\r\n if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {\r\n // Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function\r\n instFuncs_1[name] = target[name];\r\n delete target[name];\r\n // Add a dynamic proto if one doesn't exist or if a prototype function exists and it's not a dynamic one\r\n if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {\r\n proto[name] = _createDynamicPrototype(proto, name);\r\n }\r\n }\r\n });\r\n }\r\n }\r\n }\r\n}\r\n/**\r\n * Checks whether the passed prototype object appears to be correct by walking the prototype hierarchy of the instance\r\n * @param classProto The class prototype instance\r\n * @param thisTarget The current instance that will be checked whether the passed prototype instance is in the hierarchy\r\n * @ignore\r\n */\r\nfunction _checkPrototype(classProto, thisTarget) {\r\n // This method doesn't existing in older browsers (e.g. IE8)\r\n if (_objGetPrototypeOf) {\r\n // As this is primarily a coding time check, don't bother checking if running in IE8 or lower\r\n var visited = [];\r\n var thisProto = _getObjProto(thisTarget);\r\n while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {\r\n if (thisProto === classProto) {\r\n return true;\r\n }\r\n // This avoids the caller from needing to check whether it's direct base class implements the function or not\r\n // by walking the entire chain it simplifies the usage and issues from upgrading any of the base classes.\r\n visited.push(thisProto);\r\n thisProto = _getObjProto(thisProto);\r\n }\r\n return false;\r\n }\r\n // If objGetPrototypeOf doesn't exist then just assume everything is ok.\r\n return true;\r\n}\r\n/**\r\n * Gets the current prototype name using the ES6 name if available otherwise falling back to a use unknown as the name.\r\n * It's not critical for this to return a name, it's used to decorate the generated unique name for easier debugging only.\r\n * @param target\r\n * @param unknownValue\r\n * @ignore\r\n */\r\nfunction _getObjName(target, unknownValue) {\r\n if (_hasOwnProperty(target, Prototype)) {\r\n // Look like a prototype\r\n return target.name || unknownValue || UnknownValue;\r\n }\r\n return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;\r\n}\r\n/**\r\n * Helper function when creating dynamic (inline) functions for classes, this helper performs the following tasks :-\r\n * - Saves references to all defined base class functions\r\n * - Calls the delegateFunc with the current target (this) and a base object reference that can be used to call all \"super\" functions.\r\n * - Will populate the class prototype for all overridden functions to support class extension that call the prototype instance.\r\n * Callers should use this helper when declaring all function within the constructor of a class, as mentioned above the delegateFunc is\r\n * passed both the target \"this\" and an object that can be used to call any base (super) functions, using this based object in place of\r\n * super.XXX() (which gets expanded to _super.prototype.XXX()) provides a better minification outcome and also ensures the correct \"this\"\r\n * context is maintained as TypeScript creates incorrect references using super.XXXX() for dynamically defined functions i.e. Functions\r\n * defined in the constructor or some other function (rather than declared as complete typescript functions).\r\n * ### Usage\r\n * ```typescript\r\n * import dynamicProto from \"@microsoft/dynamicproto-js\";\r\n * class ExampleClass extends BaseClass {\r\n * constructor() {\r\n * dynamicProto(ExampleClass, this, (_self, base) => {\r\n * // This will define a function that will be converted to a prototype function\r\n * _self.newFunc = () => {\r\n * // Access any \"this\" instance property\r\n * if (_self.someProperty) {\r\n * ...\r\n * }\r\n * }\r\n * // This will define a function that will be converted to a prototype function\r\n * _self.myFunction = () => {\r\n * // Access any \"this\" instance property\r\n * if (_self.someProperty) {\r\n * // Call the base version of the function that we are overriding\r\n * base.myFunction();\r\n * }\r\n * ...\r\n * }\r\n * _self.initialize = () => {\r\n * ...\r\n * }\r\n * // Warnings: While the following will work as _self is simply a reference to\r\n * // this, if anyone overrides myFunction() the overridden will be called first\r\n * // as the normal JavaScript method resolution will occur and the defined\r\n * // _self.initialize() function is actually gets removed from the instance and\r\n * // a proxy prototype version is created to reference the created method.\r\n * _self.initialize();\r\n * });\r\n * }\r\n * }\r\n * ```\r\n * @typeparam DPType This is the generic type of the class, used to keep intellisense valid\r\n * @typeparam DPCls The type that contains the prototype of the current class\r\n * @param theClass - This is the current class instance which contains the prototype for the current class\r\n * @param target - The current \"this\" (target) reference, when the class has been extended this.prototype will not be the 'theClass' value.\r\n * @param delegateFunc - The callback function (closure) that will create the dynamic function\r\n * @param options - Additional options to configure how the dynamic prototype operates\r\n */\r\nfunction dynamicProto(theClass, target, delegateFunc, options) {\r\n // Make sure that the passed theClass argument looks correct\r\n if (!_hasOwnProperty(theClass, Prototype)) {\r\n _throwTypeError(\"theClass is an invalid class definition.\");\r\n }\r\n // Quick check to make sure that the passed theClass argument looks correct (this is a common copy/paste error)\r\n var classProto = theClass[Prototype];\r\n if (!_checkPrototype(classProto, target)) {\r\n _throwTypeError(\"[\" + _getObjName(theClass) + \"] not in hierarchy of [\" + _getObjName(target) + \"]\");\r\n }\r\n var className = null;\r\n if (_hasOwnProperty(classProto, DynClassName)) {\r\n // Only grab the class name if it's defined on this prototype (i.e. don't walk the prototype chain)\r\n className = classProto[DynClassName];\r\n }\r\n else {\r\n // As not all browser support name on the prototype creating a unique dynamic one if we have not already\r\n // assigned one, so we can use a simple string as the lookup rather than an object for the dynamic instance\r\n // function table lookup.\r\n className = DynClassNamePrefix + _getObjName(theClass, \"_\") + \"$\" + _gblInst.n;\r\n _gblInst.n++;\r\n classProto[DynClassName] = className;\r\n }\r\n var perfOptions = dynamicProto[DynProtoDefaultOptions];\r\n var useBaseInst = !!perfOptions[strUseBaseInst];\r\n if (useBaseInst && options && options[strUseBaseInst] !== undefined) {\r\n useBaseInst = !!options[strUseBaseInst];\r\n }\r\n // Get the current instance functions\r\n var instFuncs = _getInstanceFuncs(target);\r\n // Get all of the functions for any base instance (before they are potentially overridden)\r\n var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);\r\n // Execute the delegate passing in both the current target \"this\" and \"base\" function references\r\n // Note casting the same type as we don't actually have the base class here and this will provide some intellisense support\r\n delegateFunc(target, baseFuncs);\r\n // Don't allow setting instance functions for older IE instances\r\n var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];\r\n if (setInstanceFunc && options) {\r\n setInstanceFunc = !!options[strSetInstFuncs];\r\n }\r\n // Populate the Prototype for any overridden instance functions\r\n _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);\r\n}\r\n/**\r\n * Exposes the default global options to allow global configuration, if the global values are disabled these will override\r\n * any passed values. This is primarily exposed to support unit-testing without the need for individual classes to expose\r\n * their internal usage of dynamic proto.\r\n */\r\ndynamicProto[DynProtoDefaultOptions] = _gblInst.o;\n\nexport { dynamicProto as default };\n","// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nexport var strShimFunction = \"function\";\r\nexport var strShimObject = \"object\";\r\nexport var strShimUndefined = \"undefined\";\r\nexport var strShimPrototype = \"prototype\";\r\nexport var strShimHasOwnProperty = \"hasOwnProperty\";\r\nexport var strDefault = \"default\";\r\nexport var ObjClass = Object;\r\nexport var ObjProto = ObjClass[strShimPrototype];\r\nexport var ObjAssign = ObjClass[\"assign\"];\r\nexport var ObjCreate = ObjClass[\"create\"];\r\nexport var ObjDefineProperty = ObjClass[\"defineProperty\"];\r\nexport var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];\r\n","// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { ObjCreate, strShimFunction, strShimObject, strShimPrototype, strShimUndefined } from \"./Constants\";\r\nvar _cachedGlobal = null;\r\n/**\r\n * Returns the current global scope object, for a normal web page this will be the current\r\n * window, for a Web Worker this will be current worker global scope via \"self\". The internal\r\n * implementation returns the first available instance object in the following order\r\n * - globalThis (New standard)\r\n * - self (Will return the current window instance for supported browsers)\r\n * - window (fallback for older browser implementations)\r\n * - global (NodeJS standard)\r\n * - <null> (When all else fails)\r\n * While the return type is a Window for the normal case, not all environments will support all\r\n * of the properties or functions.\r\n */\r\nexport function getGlobal(useCached) {\r\n if (useCached === void 0) { useCached = true; }\r\n var result = useCached === false ? null : _cachedGlobal;\r\n if (!result) {\r\n if (typeof globalThis !== strShimUndefined) {\r\n result = globalThis;\r\n }\r\n if (!result && typeof self !== strShimUndefined) {\r\n result = self;\r\n }\r\n if (!result && typeof window !== strShimUndefined) {\r\n result = window;\r\n }\r\n if (!result && typeof global !== strShimUndefined) {\r\n result = global;\r\n }\r\n _cachedGlobal = result;\r\n }\r\n return result;\r\n}\r\nexport function throwTypeError(message) {\r\n throw new TypeError(message);\r\n}\r\n/**\r\n * Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil\r\n * for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.\r\n * Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations\r\n * @param obj Object to use as a prototype. May be null\r\n */\r\nexport function objCreateFn(obj) {\r\n var func = ObjCreate;\r\n // Use build in Object.create\r\n if (func) {\r\n // Use Object create method if it exists\r\n return func(obj);\r\n }\r\n if (obj == null) {\r\n return {};\r\n }\r\n var type = typeof obj;\r\n if (type !== strShimObject && type !== strShimFunction) {\r\n throwTypeError(\"Object prototype may only be an Object:\" + obj);\r\n }\r\n function tmpFunc() { }\r\n tmpFunc[strShimPrototype] = obj;\r\n return new tmpFunc();\r\n}\r\n","// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { ObjAssign, ObjClass, ObjCreate, ObjDefineProperty, ObjHasOwnProperty, ObjProto, strDefault, strShimFunction, strShimHasOwnProperty, strShimPrototype } from \"./Constants\";\r\nimport { getGlobal, objCreateFn, throwTypeError } from \"./Helpers\";\r\n// Most of these functions have been directly shamelessly \"lifted\" from the https://github.com/@microsoft/tslib and\r\n// modified to be ES3 compatible and applying several minification and tree-shaking techniques so that Application Insights\r\n// can successfully use TypeScript \"importHelpers\" which imports tslib during compilation but it will use these at runtime\r\n// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require\r\n// them.\r\nexport var SymbolObj = (getGlobal() || {})[\"Symbol\"];\r\nexport var ReflectObj = (getGlobal() || {})[\"Reflect\"];\r\nexport var __hasSymbol = !!SymbolObj;\r\nexport var __hasReflect = !!ReflectObj;\r\nvar strDecorate = \"decorate\";\r\nvar strMetadata = \"metadata\";\r\nvar strGetOwnPropertySymbols = \"getOwnPropertySymbols\";\r\nvar strIterator = \"iterator\";\r\nexport var __objAssignFnImpl = function (t) {\r\n // tslint:disable-next-line: ban-comma-operator\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) {\r\n if (ObjProto[strShimHasOwnProperty].call(s, p)) {\r\n t[p] = s[p];\r\n }\r\n }\r\n }\r\n return t;\r\n};\r\nexport var __assignFn = ObjAssign || __objAssignFnImpl;\r\n// tslint:disable-next-line: only-arrow-functions\r\nvar extendStaticsFn = function (d, b) {\r\n extendStaticsFn = ObjClass[\"setPrototypeOf\"] ||\r\n // tslint:disable-next-line: only-arrow-functions\r\n ({ __proto__: [] } instanceof Array && function (d, b) {\r\n d.__proto__ = b;\r\n }) ||\r\n // tslint:disable-next-line: only-arrow-functions\r\n function (d, b) {\r\n for (var p in b) {\r\n if (b[strShimHasOwnProperty](p)) {\r\n d[p] = b[p];\r\n }\r\n }\r\n };\r\n return extendStaticsFn(d, b);\r\n};\r\nexport function __extendsFn(d, b) {\r\n if (typeof b !== strShimFunction && b !== null) {\r\n throwTypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n }\r\n extendStaticsFn(d, b);\r\n function __() {\r\n this.constructor = d;\r\n }\r\n // tslint:disable-next-line: ban-comma-operator\r\n d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());\r\n}\r\nexport function __restFn(s, e) {\r\n var t = {};\r\n for (var k in s) {\r\n if (ObjHasOwnProperty.call(s, k) && e.indexOf(k) < 0) {\r\n t[k] = s[k];\r\n }\r\n }\r\n if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {\r\n for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && ObjProto[\"propertyIsEnumerable\"].call(s, p[i])) {\r\n t[p[i]] = s[p[i]];\r\n }\r\n }\r\n }\r\n return t;\r\n}\r\nexport function __decorateFn(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = ObjClass[\"getOwnPropertyDescriptor\"](target, key) : desc, d;\r\n if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {\r\n r = ReflectObj[strDecorate](decorators, target, key, desc);\r\n }\r\n else {\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n // eslint-disable-next-line no-cond-assign\r\n if (d = decorators[i]) {\r\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n }\r\n }\r\n }\r\n // tslint:disable-next-line:ban-comma-operator\r\n return c > 3 && r && ObjDefineProperty(target, key, r), r;\r\n}\r\nexport function __paramFn(paramIndex, decorator) {\r\n return function (target, key) {\r\n decorator(target, key, paramIndex);\r\n };\r\n}\r\nexport function __metadataFn(metadataKey, metadataValue) {\r\n if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {\r\n return ReflectObj[strMetadata](metadataKey, metadataValue);\r\n }\r\n}\r\nexport function __exportStarFn(m, o) {\r\n for (var p in m) {\r\n if (p !== strDefault && !ObjHasOwnProperty.call(o, p)) {\r\n __createBindingFn(o, m, p);\r\n }\r\n }\r\n}\r\nexport function __createBindingFn(o, m, k, k2) {\r\n if (k2 === undefined) {\r\n k2 = k;\r\n }\r\n if (!!ObjCreate) {\r\n ObjDefineProperty(o, k2, {\r\n enumerable: true,\r\n get: function () {\r\n return m[k];\r\n }\r\n });\r\n }\r\n else {\r\n o[k2] = m[k];\r\n }\r\n}\r\nexport function __valuesFn(o) {\r\n var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator], m = s && o[s], i = 0;\r\n if (m) {\r\n return m.call(o);\r\n }\r\n if (o && typeof o.length === \"number\") {\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) {\r\n o = void 0;\r\n }\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n }\r\n throwTypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\nexport function __readFn(o, n) {\r\n var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];\r\n if (!m) {\r\n return o;\r\n }\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\r\n ar.push(r.value);\r\n }\r\n }\r\n catch (error) {\r\n e = {\r\n error: error\r\n };\r\n }\r\n finally {\r\n try {\r\n // tslint:disable-next-line:no-conditional-assignment\r\n if (r && !r.done && (m = i[\"return\"])) {\r\n m.call(i);\r\n }\r\n }\r\n finally {\r\n if (e) {\r\n // eslint-disable-next-line no-unsafe-finally\r\n throw e.error;\r\n }\r\n }\r\n }\r\n return ar;\r\n}\r\n/** @deprecated */\r\nexport function __spreadArraysFn() {\r\n var theArgs = arguments;\r\n // Calculate new total size\r\n for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {\r\n s += theArgs[i].length;\r\n }\r\n // Create new full array\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++) {\r\n for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {\r\n r[k] = a[j];\r\n }\r\n }\r\n return r;\r\n}\r\nexport function __spreadArrayFn(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {\r\n to[j] = from[i];\r\n }\r\n return to;\r\n}\r\nexport function __makeTemplateObjectFn(cooked, raw) {\r\n if (ObjDefineProperty) {\r\n ObjDefineProperty(cooked, \"raw\", { value: raw });\r\n }\r\n else {\r\n cooked.raw = raw;\r\n }\r\n return cooked;\r\n}\r\nexport function __importStarFn(mod) {\r\n if (mod && mod.__esModule) {\r\n return mod;\r\n }\r\n var result = {};\r\n if (mod != null) {\r\n for (var k in mod) {\r\n if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {\r\n __createBindingFn(result, mod, k);\r\n }\r\n }\r\n }\r\n // Set default module\r\n if (!!ObjCreate) {\r\n ObjDefineProperty(result, strDefault, { enumerable: true, value: mod });\r\n }\r\n else {\r\n result[strDefault] = mod;\r\n }\r\n return result;\r\n}\r\nexport function __importDefaultFn(mod) {\r\n return (mod && mod.__esModule) ? mod : { strDefault: mod };\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 8\r\nexport var _DYN_NAME = \"name\"; // Count: 11\r\nexport var _DYN_GET_NOTIFY_MGR = \"getNotifyMgr\"; // Count: 3\r\nexport var _DYN_IDENTIFIER = \"identifier\"; // Count: 8\r\nexport var _DYN_PUSH = \"push\"; // Count: 30\r\nexport var _DYN_IS_INITIALIZED = \"isInitialized\"; // Count: 10\r\nexport var _DYN_CONFIG = \"config\"; // Count: 7\r\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 3\r\nexport var _DYN_LOGGER = \"logger\"; // Count: 10\r\nexport var _DYN_LENGTH = \"length\"; // Count: 45\r\nexport var _DYN_TIME = \"time\"; // Count: 5\r\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 21\r\nexport var _DYN_GET_PROCESS_TEL_CONT0 = \"getProcessTelContext\"; // Count: 2\r\nexport var _DYN_ADD_NOTIFICATION_LIS1 = \"addNotificationListener\"; // Count: 5\r\nexport var _DYN_REMOVE_NOTIFICATION_2 = \"removeNotificationListener\"; // Count: 5\r\nexport var _DYN_STOP_POLLING_INTERNA3 = \"stopPollingInternalLogs\"; // Count: 2\r\nexport var _DYN_ON_COMPLETE = \"onComplete\"; // Count: 6\r\nexport var _DYN_GET_PLUGIN = \"getPlugin\"; // Count: 5\r\nexport var _DYN_FLUSH = \"flush\"; // Count: 5\r\nexport var _DYN__EXTENSIONS = \"_extensions\"; // Count: 4\r\nexport var _DYN_SPLICE = \"splice\"; // Count: 6\r\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 10\r\nexport var _DYN_MESSAGE_ID = \"messageId\"; // Count: 4\r\nexport var _DYN_MESSAGE = \"message\"; // Count: 7\r\nexport var _DYN_IS_ASYNC = \"isAsync\"; // Count: 7\r\nexport var _DYN__DO_TEARDOWN = \"_doTeardown\"; // Count: 4\r\nexport var _DYN_UPDATE = \"update\"; // Count: 7\r\nexport var _DYN_GET_NEXT = \"getNext\"; // Count: 12\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 8\r\nexport var _DYN_SET_NEXT_PLUGIN = \"setNextPlugin\"; // Count: 5\r\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 6\r\nexport var _DYN_COOKIE_CFG = \"cookieCfg\"; // Count: 3\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 7\r\nexport var _DYN_SUBSTRING = \"substring\"; // Count: 10\r\nexport var _DYN_USER_AGENT = \"userAgent\"; // Count: 5\r\nexport var _DYN_SPLIT = \"split\"; // Count: 6\r\nexport var _DYN_SET_ENABLED = \"setEnabled\"; // Count: 5\r\nexport var _DYN_SUBSTR = \"substr\"; // Count: 6\r\nexport var _DYN_NODE_TYPE = \"nodeType\"; // Count: 3\r\nexport var _DYN_APPLY = \"apply\"; // Count: 6\r\nexport var _DYN_REPLACE = \"replace\"; // Count: 10\r\nexport var _DYN_ENABLE_DEBUG_EXCEPTI4 = \"enableDebugExceptions\"; // Count: 2\r\nexport var _DYN_LOG_INTERNAL_MESSAGE = \"logInternalMessage\"; // Count: 2\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 8\r\nexport var _DYN_CALL = \"call\"; // Count: 18\r\nexport var _DYN_TYPE = \"type\"; // Count: 14\r\nexport var _DYN_HANDLER = \"handler\"; // Count: 5\r\nexport var _DYN_LISTENERS = \"listeners\"; // Count: 6\r\nexport var _DYN_IS_CHILD_EVT = \"isChildEvt\"; // Count: 3\r\nexport var _DYN_GET_CTX = \"getCtx\"; // Count: 6\r\nexport var _DYN_SET_CTX = \"setCtx\"; // Count: 10\r\nexport var _DYN_COMPLETE = \"complete\"; // Count: 3\r\nexport var _DYN_TRACE_ID = \"traceId\"; // Count: 5\r\nexport var _DYN_SPAN_ID = \"spanId\"; // Count: 5\r\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 6\r\nexport var _DYN_VERSION = \"version\"; // Count: 4\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// ###################################################################################################################################################\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// ###################################################################################################################################################\r\nexport var STR_EMPTY = \"\";\r\nexport var STR_CHANNELS = \"channels\";\r\nexport var STR_CORE = \"core\";\r\nexport var STR_CREATE_PERF_MGR = \"createPerfMgr\";\r\nexport var STR_DISABLED = \"disabled\";\r\nexport var STR_EXTENSION_CONFIG = \"extensionConfig\";\r\nexport var STR_EXTENSIONS = \"extensions\";\r\nexport var STR_PROCESS_TELEMETRY = \"processTelemetry\";\r\nexport var STR_PRIORITY = \"priority\";\r\nexport var STR_EVENTS_SENT = \"eventsSent\";\r\nexport var STR_EVENTS_DISCARDED = \"eventsDiscarded\";\r\nexport var STR_EVENTS_SEND_REQUEST = \"eventsSendRequest\";\r\nexport var STR_PERF_EVENT = \"perfEvent\";\r\nexport var STR_ERROR_TO_CONSOLE = \"errorToConsole\";\r\nexport var STR_WARN_TO_CONSOLE = \"warnToConsole\";\r\nexport var STR_GET_PERF_MGR = \"getPerfMgr\";\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { ObjAssign, ObjClass, ObjDefineProperty, ObjHasOwnProperty, ObjProto, strShimFunction, strShimObject, strShimPrototype, strShimUndefined, throwTypeError } from \"@microsoft/applicationinsights-shims\";\r\nimport { _DYN_APPLY, _DYN_CALL, _DYN_INDEX_OF, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_REPLACE } from \"../__DynamicConstants\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\n// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly\r\n// Added to help with minfication\r\nvar strToISOString = \"toISOString\";\r\nvar cStrEndsWith = \"endsWith\";\r\nvar cStrStartsWith = \"startsWith\";\r\nvar strIndexOf = \"indexOf\";\r\nvar strMap = \"map\";\r\nvar strReduce = \"reduce\";\r\nvar cStrTrim = \"trim\";\r\nvar strToString = \"toString\";\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar str__Proto = \"__proto__\";\r\n/**\r\n * Constant string defined to support minimization\r\n * @ignore\r\n */\r\nvar strConstructor = \"constructor\";\r\nvar _objDefineProperty = ObjDefineProperty;\r\nvar _objFreeze = ObjClass.freeze;\r\nvar _objSeal = ObjClass.seal;\r\nvar _objKeys = ObjClass.keys;\r\nvar StringProto = String[strShimPrototype];\r\nvar _strTrim = StringProto[cStrTrim];\r\nvar _strEndsWith = StringProto[cStrEndsWith];\r\nvar _strStartsWith = StringProto[cStrStartsWith];\r\nvar DateProto = Date[strShimPrototype];\r\nvar _dataToISOString = DateProto[strToISOString];\r\nvar _isArray = Array.isArray;\r\nvar _objToString = ObjProto[strToString];\r\nvar _fnToString = ObjHasOwnProperty[strToString];\r\n// Cache what this browser reports as the object function constructor (as a string)\r\nvar _objFunctionString = _fnToString[_DYN_CALL /* @min:%2ecall */](ObjClass);\r\nvar rCamelCase = /-([a-z])/g;\r\nvar rNormalizeInvalid = /([^\\w\\d_$])/g;\r\nvar rLeadingNumeric = /^(\\d+[\\w\\d_$])/;\r\n/**\r\n * Pre-lookup to check if we are running on a modern browser (i.e. not IE8)\r\n * @ignore\r\n */\r\nvar _objGetPrototypeOf = Object[\"getPrototypeOf\"];\r\n/**\r\n * Helper used to get the prototype of the target object as getPrototypeOf is not available in an ES3 environment.\r\n * @ignore\r\n */\r\nexport function _getObjProto(target) {\r\n if (target) {\r\n // This method doesn't existing in older browsers (e.g. IE8)\r\n if (_objGetPrototypeOf) {\r\n return _objGetPrototypeOf(target);\r\n }\r\n // target[Constructor] May break if the constructor has been changed or removed\r\n var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor];\r\n if (newProto) {\r\n return newProto;\r\n }\r\n }\r\n return null;\r\n}\r\nexport function objToString(obj) {\r\n return _objToString[_DYN_CALL /* @min:%2ecall */](obj);\r\n}\r\nexport function isTypeof(value, theType) {\r\n return typeof value === theType;\r\n}\r\nexport function isUndefined(value) {\r\n return value === undefined || typeof value === strShimUndefined;\r\n}\r\nexport function isNotUndefined(value) {\r\n return !isUndefined(value);\r\n}\r\nexport function isNullOrUndefined(value) {\r\n return (value === null || isUndefined(value));\r\n}\r\nexport function isNotNullOrUndefined(value) {\r\n return !isNullOrUndefined(value);\r\n}\r\nexport function hasOwnProperty(obj, prop) {\r\n return !!(obj && ObjHasOwnProperty[_DYN_CALL /* @min:%2ecall */](obj, prop));\r\n}\r\nexport function isObject(value) {\r\n // Changing to inline for performance\r\n return !!(value && typeof value === strShimObject);\r\n}\r\nexport function isFunction(value) {\r\n // Changing to inline for performance\r\n return !!(value && typeof value === strShimFunction);\r\n}\r\nexport function isPromiseLike(value) {\r\n return value && isFunction(value.then);\r\n}\r\n/**\r\n * Validates that the string name conforms to the JS IdentifierName specification and if not\r\n * normalizes the name so that it would. This method does not identify or change any keywords\r\n * meaning that if you pass in a known keyword the same value will be returned.\r\n * This is a simplified version\r\n * @param name The name to validate\r\n */\r\nexport function normalizeJsName(name) {\r\n var value = name;\r\n if (value && isString(value)) {\r\n // CamelCase everything after the \"-\" and remove the dash\r\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rCamelCase, function (_all, letter) {\r\n return letter.toUpperCase();\r\n });\r\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rNormalizeInvalid, \"_\");\r\n value = value[_DYN_REPLACE /* @min:%2ereplace */](rLeadingNumeric, function (_all, match) {\r\n return \"_\" + match;\r\n });\r\n }\r\n return value;\r\n}\r\n/**\r\n * This is a helper function for the equivalent of arForEach(objKeys(target), callbackFn), this is a\r\n * performance optimization to avoid the creation of a new array for large objects\r\n * @param target The target object to find and process the keys\r\n * @param callbackfn The function to call with the details\r\n */\r\nexport function objForEachKey(target, callbackfn) {\r\n if (target) {\r\n for (var prop in target) {\r\n if (ObjHasOwnProperty[_DYN_CALL /* @min:%2ecall */](target, prop)) {\r\n callbackfn[_DYN_CALL /* @min:%2ecall */](target, prop, target[prop]);\r\n }\r\n }\r\n }\r\n}\r\n/**\r\n * The strEndsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param search - The characters to be searched for at the end of the value.\r\n * @returns true if the given search value is found at the end of the string, otherwise false.\r\n */\r\nexport function strEndsWith(value, search) {\r\n var result = false;\r\n if (value && search && !(result = value === search)) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n result = _strEndsWith ? value[cStrEndsWith](search) : _strEndsWithPoly(value, search);\r\n }\r\n return result;\r\n}\r\n/**\r\n * The _strEndsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param search - The characters to be searched for at the end of the value.\r\n * @returns true if the given search value is found at the end of the string, otherwise false.\r\n */\r\nexport function _strEndsWithPoly(value, search) {\r\n var result = false;\r\n var searchLen = search ? search[_DYN_LENGTH /* @min:%2elength */] : 0;\r\n var valLen = value ? value[_DYN_LENGTH /* @min:%2elength */] : 0;\r\n if (searchLen && valLen && valLen >= searchLen && !(result = value === search)) {\r\n var pos = valLen - 1;\r\n for (var lp = searchLen - 1; lp >= 0; lp--) {\r\n if (value[pos] != search[lp]) {\r\n return false;\r\n }\r\n pos--;\r\n }\r\n result = true;\r\n }\r\n return result;\r\n}\r\n/**\r\n * The strStartsWith() method determines whether a string starts with the characters of the specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param checkValue - The characters to be searched for at the start of the value.\r\n * @returns true if the given search value is found at the start of the string, otherwise false.\r\n */\r\nexport function strStartsWith(value, checkValue) {\r\n var result = false;\r\n if (value && checkValue && !(result = value === checkValue)) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n result = _strStartsWith ? value[cStrStartsWith](checkValue) : _strStartsWithPoly(value, checkValue);\r\n }\r\n return result;\r\n}\r\n/**\r\n * The strStartsWith() method determines whether a string starts with the characters of the specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param checkValue - The characters to be searched for at the start of the value.\r\n * @returns true if the given search value is found at the start of the string, otherwise false.\r\n */\r\nexport function _strStartsWithPoly(value, checkValue) {\r\n // Using helper for performance and because string startsWith() is not available on IE\r\n var result = false;\r\n var chkLen = checkValue ? checkValue[_DYN_LENGTH /* @min:%2elength */] : 0;\r\n if (value && chkLen && value[_DYN_LENGTH /* @min:%2elength */] >= chkLen && !(result = value === checkValue)) {\r\n for (var lp = 0; lp < chkLen; lp++) {\r\n if (value[lp] !== checkValue[lp]) {\r\n return false;\r\n }\r\n }\r\n result = true;\r\n }\r\n return result;\r\n}\r\n/**\r\n * A simple wrapper (for minification support) to check if the value contains the search string.\r\n * @param value - The string value to check for the existence of the search value\r\n * @param search - The value search within the value\r\n */\r\nexport function strContains(value, search) {\r\n if (value && search) {\r\n return value[_DYN_INDEX_OF /* @min:%2eindexOf */](search) !== -1;\r\n }\r\n return false;\r\n}\r\n/**\r\n * Check if an object is of type Date\r\n */\r\nexport function isDate(obj) {\r\n return !!(obj && _objToString[_DYN_CALL /* @min:%2ecall */](obj) === \"[object Date]\");\r\n}\r\n/**\r\n * Check if an object is of type Array with optional generic T, the generic type is not validated\r\n * and exists to help with TypeScript validation only.\r\n */\r\nexport var isArray = _isArray || _isArrayPoly;\r\nfunction _isArrayPoly(obj) {\r\n return !!(obj && _objToString[_DYN_CALL /* @min:%2ecall */](obj) === \"[object Array]\");\r\n}\r\n/**\r\n * Check if an object is of type Error\r\n */\r\nexport function isError(obj) {\r\n return !!(obj && _objToString[_DYN_CALL /* @min:%2ecall */](obj) === \"[object Error]\");\r\n}\r\n/**\r\n * Checks if the type of value is a string.\r\n * @param {any} value - Value to be checked.\r\n * @return {boolean} True if the value is a string, false otherwise.\r\n */\r\nexport function isString(value) {\r\n // Changing to inline for performance\r\n return typeof value === \"string\";\r\n}\r\n/**\r\n * Checks if the type of value is a number.\r\n * @param {any} value - Value to be checked.\r\n * @return {boolean} True if the value is a number, false otherwise.\r\n */\r\nexport function isNumber(value) {\r\n // Changing to inline for performance\r\n return typeof value === \"number\";\r\n}\r\n/**\r\n * Checks if the type of value is a boolean.\r\n * @param {any} value - Value to be checked.\r\n * @return {boolean} True if the value is a boolean, false otherwise.\r\n */\r\nexport function isBoolean(value) {\r\n // Changing to inline for performance\r\n return typeof value === \"boolean\";\r\n}\r\n/**\r\n * Checks if the type of value is a Symbol.\r\n * This only returns a boolean as returning value is Symbol will cause issues for older TypeScript consumers\r\n * @param {any} value - Value to be checked.\r\n * @return {boolean} True if the value is a Symbol, false otherwise.\r\n */\r\nexport function isSymbol(value) {\r\n return typeof value === \"symbol\";\r\n}\r\n/**\r\n * Checks if the type of the value is a normal plain object (not a null or data)\r\n * @param value\r\n */\r\nexport function isPlainObject(value) {\r\n var result = false;\r\n if (value && typeof value === \"object\") {\r\n // Inlining _objGetPrototypeOf for performance to avoid an additional function call\r\n var proto = _objGetPrototypeOf ? _objGetPrototypeOf(value) : _getObjProto(value);\r\n if (!proto) {\r\n // No prototype found so this is a plain Object eg. 'Object.create(null)'\r\n result = true;\r\n }\r\n else {\r\n // Objects that have a prototype are plain only if they were created using the Object global (native) function\r\n if (proto[strConstructor] && ObjHasOwnProperty[_DYN_CALL /* @min:%2ecall */](proto, strConstructor)) {\r\n proto = proto[strConstructor];\r\n }\r\n result = typeof proto === strShimFunction && _fnToString[_DYN_CALL /* @min:%2ecall */](proto) === _objFunctionString;\r\n }\r\n }\r\n return result;\r\n}\r\n/**\r\n * Convert a date to I.S.O. format in IE8\r\n */\r\nexport function toISOString(date) {\r\n if (date) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n return _dataToISOString ? date[strToISOString]() : _toISOStringPoly(date);\r\n }\r\n}\r\n/**\r\n * Convert a date to I.S.O. format in IE8\r\n */\r\nexport function _toISOStringPoly(date) {\r\n if (date && date.getUTCFullYear) {\r\n var pad = function (num) {\r\n var r = String(num);\r\n if (r[_DYN_LENGTH /* @min:%2elength */] === 1) {\r\n r = \"0\" + r;\r\n }\r\n return r;\r\n };\r\n return date.getUTCFullYear()\r\n + \"-\" + pad(date.getUTCMonth() + 1)\r\n + \"-\" + pad(date.getUTCDate())\r\n + \"T\" + pad(date.getUTCHours())\r\n + \":\" + pad(date.getUTCMinutes())\r\n + \":\" + pad(date.getUTCSeconds())\r\n + \".\" + String((date.getUTCMilliseconds() / 1000).toFixed(3)).slice(2, 5)\r\n + \"Z\";\r\n }\r\n}\r\n/**\r\n * Performs the specified action for each element in an array. This helper exists to avoid adding a polyfil for older browsers\r\n * that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype\r\n * implementation. Note: For consistency this will not use the Array.prototype.xxxx implementation if it exists as this would\r\n * cause a testing requirement to test with and without the implementations\r\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. It can return -1 to break out of the loop\r\n * @param thisArg [Optional] An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\r\n */\r\nexport function arrForEach(arr, callbackfn, thisArg) {\r\n var len = arr[_DYN_LENGTH /* @min:%2elength */];\r\n try {\r\n for (var idx = 0; idx < len; idx++) {\r\n if (idx in arr) {\r\n if (callbackfn[_DYN_CALL /* @min:%2ecall */](thisArg || arr, arr[idx], idx, arr) === -1) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // This can happen with some native browser objects, but should not happen for the type we are checking for\r\n }\r\n}\r\n/**\r\n * Returns the index of the first occurrence of a value in an array. This helper exists to avoid adding a polyfil for older browsers\r\n * that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype\r\n * implementation. Note: For consistency this will not use the Array.prototype.xxxx implementation if it exists as this would\r\n * cause a testing requirement to test with and without the implementations\r\n * @param searchElement The value to locate in the array.\r\n * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\r\n */\r\nexport function arrIndexOf(arr, searchElement, fromIndex) {\r\n if (arr) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n if (arr[strIndexOf]) {\r\n return arr[strIndexOf](searchElement, fromIndex);\r\n }\r\n var len = arr[_DYN_LENGTH /* @min:%2elength */];\r\n var from = fromIndex || 0;\r\n try {\r\n for (var lp = Math.max(from >= 0 ? from : len - Math.abs(from), 0); lp < len; lp++) {\r\n if (lp in arr && arr[lp] === searchElement) {\r\n return lp;\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // This can happen with some native browser objects, but should not happen for the type we are checking for\r\n }\r\n }\r\n return -1;\r\n}\r\n/**\r\n * Calls a defined callback function on each element of an array, and returns an array that contains the results. This helper exists\r\n * to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page\r\n * checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx\r\n * implementation if it exists as this would cause a testing requirement to test with and without the implementations\r\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\r\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\r\n */\r\nexport function arrMap(arr, callbackfn, thisArg) {\r\n var results;\r\n if (arr) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n if (arr[strMap]) {\r\n return arr[strMap](callbackfn, thisArg);\r\n }\r\n var len = arr[_DYN_LENGTH /* @min:%2elength */];\r\n var _this = thisArg || arr;\r\n results = new Array(len);\r\n try {\r\n for (var lp = 0; lp < len; lp++) {\r\n if (lp in arr) {\r\n results[lp] = callbackfn[_DYN_CALL /* @min:%2ecall */](_this, arr[lp], arr);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // This can happen with some native browser objects, but should not happen for the type we are checking for\r\n }\r\n }\r\n return results;\r\n}\r\n/**\r\n * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is\r\n * provided as an argument in the next call to the callback function. This helper exists to avoid adding a polyfil for older browsers that do not define\r\n * Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency\r\n * this will not use the Array.prototype.xxxx implementation if it exists as this would cause a testing requirement to test with and without the implementations\r\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\r\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\r\n */\r\nexport function arrReduce(arr, callbackfn, initialValue) {\r\n var value;\r\n if (arr) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n if (arr[strReduce]) {\r\n return arr[strReduce](callbackfn, initialValue);\r\n }\r\n var len = arr[_DYN_LENGTH /* @min:%2elength */];\r\n var lp = 0;\r\n // Specifically checking the number of passed arguments as the value could be anything\r\n if (arguments[_DYN_LENGTH /* @min:%2elength */] >= 3) {\r\n value = arguments[2];\r\n }\r\n else {\r\n while (lp < len && !(lp in arr)) {\r\n lp++;\r\n }\r\n value = arr[lp++];\r\n }\r\n while (lp < len) {\r\n if (lp in arr) {\r\n value = callbackfn(value, arr[lp], lp, arr);\r\n }\r\n lp++;\r\n }\r\n }\r\n return value;\r\n}\r\n/**\r\n * helper method to trim strings (IE8 does not implement String.prototype.trim)\r\n */\r\nexport function strTrim(str) {\r\n if (str) {\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE /* @min:%2ereplace */] ? str[_DYN_REPLACE /* @min:%2ereplace */](/^\\s+|(?=\\s)\\s+$/g, STR_EMPTY) : str);\r\n }\r\n return str;\r\n}\r\nvar _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable(\"toString\");\r\nvar _objKeysDontEnums = [\r\n \"toString\",\r\n \"toLocaleString\",\r\n \"valueOf\",\r\n \"hasOwnProperty\",\r\n \"isPrototypeOf\",\r\n \"propertyIsEnumerable\",\r\n \"constructor\"\r\n];\r\n/**\r\n * Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers\r\n * that do not define Object.keys eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.\r\n * Note: For consistency this will not use the Object.keys implementation if it exists as this would cause a testing requirement to test with and without the implementations\r\n * @param obj Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\r\n */\r\nexport function objKeys(obj) {\r\n var objType = typeof obj;\r\n if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {\r\n throwTypeError(\"objKeys called on non-object\");\r\n }\r\n // For Performance try and use the native instance, using string lookup of the function to easily pass the ES3 build checks and minification\r\n if (!_objKeysHasDontEnumBug && _objKeys) {\r\n return _objKeys(obj);\r\n }\r\n var result = [];\r\n for (var prop in obj) {\r\n if (obj && ObjHasOwnProperty[_DYN_CALL /* @min:%2ecall */](obj, prop)) {\r\n result[_DYN_PUSH /* @min:%2epush */](prop);\r\n }\r\n }\r\n if (_objKeysHasDontEnumBug) {\r\n var dontEnumsLength = _objKeysDontEnums[_DYN_LENGTH /* @min:%2elength */];\r\n for (var lp = 0; lp < dontEnumsLength; lp++) {\r\n if (obj && ObjHasOwnProperty[_DYN_CALL /* @min:%2ecall */](obj, _objKeysDontEnums[lp])) {\r\n result[_DYN_PUSH /* @min:%2epush */](_objKeysDontEnums[lp]);\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\n/**\r\n * Try to define get/set object property accessors for the target object/prototype, this will provide compatibility with\r\n * existing API definition when run within an ES5+ container that supports accessors but still enable the code to be loaded\r\n * and executed in an ES3 container, providing basic IE8 compatibility.\r\n * @param target The object on which to define the property.\r\n * @param prop The name of the property to be defined or modified.\r\n * @param getProp The getter function to wire against the getter.\r\n * @param setProp The setter function to wire against the setter.\r\n * @returns True if it was able to create the accessors otherwise false\r\n */\r\nexport function objDefineAccessors(target, prop, getProp, setProp) {\r\n if (_objDefineProperty) {\r\n try {\r\n var descriptor = {\r\n enumerable: true,\r\n configurable: true\r\n };\r\n if (getProp) {\r\n descriptor.get = getProp;\r\n }\r\n if (setProp) {\r\n descriptor.set = setProp;\r\n }\r\n _objDefineProperty(target, prop, descriptor);\r\n return true;\r\n }\r\n catch (e) {\r\n // IE8 Defines a defineProperty on Object but it's only supported for DOM elements so it will throw\r\n // We will just ignore this here.\r\n }\r\n }\r\n return false;\r\n}\r\nfunction _doNothing(value) {\r\n return value;\r\n}\r\nexport function deepFreeze(obj) {\r\n if (_objFreeze) {\r\n objForEachKey(obj, function (name, value) {\r\n if (isArray(value) || isObject(value)) {\r\n _objFreeze(value);\r\n }\r\n });\r\n }\r\n return objFreeze(obj);\r\n}\r\nexport var objFreeze = _objFreeze || _doNothing;\r\nexport var objSeal = _objSeal || _doNothing;\r\n/**\r\n * Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less)\r\n * https://caniuse.com/#search=Date.now\r\n */\r\nexport function dateNow() {\r\n var dt = Date;\r\n return dt.now ? dt.now() : new dt().getTime();\r\n}\r\n/**\r\n * Returns the name of object if it's an Error. Otherwise, returns empty string.\r\n */\r\nexport function getExceptionName(object) {\r\n if (isError(object)) {\r\n return object[_DYN_NAME /* @min:%2ename */];\r\n }\r\n return STR_EMPTY;\r\n}\r\n/**\r\n * Sets the provided value on the target instance using the field name when the provided chk function returns true, the chk\r\n * function will only be called if the new value is no equal to the original value.\r\n * @param target - The target object\r\n * @param field - The key of the target\r\n * @param value - The value to set\r\n * @param valChk - [Optional] Callback to check the value that if supplied will be called check if the new value can be set\r\n * @param srcChk - [Optional] Callback to check to original value that if supplied will be called if the new value should be set (if allowed)\r\n * @returns The existing or new value, depending what was set\r\n */\r\nexport function setValue(target, field, value, valChk, srcChk) {\r\n var theValue = value;\r\n if (target) {\r\n theValue = target[field];\r\n if (theValue !== value && (!srcChk || srcChk(theValue)) && (!valChk || valChk(value))) {\r\n theValue = value;\r\n target[field] = theValue;\r\n }\r\n }\r\n return theValue;\r\n}\r\n/**\r\n * Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it\r\n * @param target - The target object to return or set the default value\r\n * @param field - The key for the field to set on the target\r\n * @param defValue - [Optional] The value to set if not already present, when not provided a empty object will be added\r\n */\r\nexport function getSetValue(target, field, defValue) {\r\n var theValue;\r\n if (target) {\r\n theValue = target[field];\r\n if (!theValue && isNullOrUndefined(theValue)) {\r\n // Supports having the default as null\r\n theValue = !isUndefined(defValue) ? defValue : {};\r\n target[field] = theValue;\r\n }\r\n }\r\n else {\r\n // Expanded for performance so we only check defValue if required\r\n theValue = !isUndefined(defValue) ? defValue : {};\r\n }\r\n return theValue;\r\n}\r\n/**\r\n * Get the mapped config value, if null or undefined any supplied defaultValue will be returned.\r\n * @param field - The name of the field as the named enum value (number) or the string name.\r\n * @param defaultValue - The default value to return if the config field is not present, null or undefined.\r\n */\r\nexport function getCfgValue(theValue, defaultValue) {\r\n return !isNullOrUndefined(theValue) ? theValue : defaultValue;\r\n}\r\nexport function isNotTruthy(value) {\r\n return !value;\r\n}\r\nexport function isTruthy(value) {\r\n return !!value;\r\n}\r\nexport function throwError(message) {\r\n throw new Error(message);\r\n}\r\nfunction _createProxyFunction(source, funcName) {\r\n var srcFunc = null;\r\n var src = null;\r\n if (isFunction(source)) {\r\n srcFunc = source;\r\n }\r\n else {\r\n src = source;\r\n }\r\n return function () {\r\n // Capture the original arguments passed to the method\r\n var originalArguments = arguments;\r\n if (srcFunc) {\r\n src = srcFunc();\r\n }\r\n if (src) {\r\n return src[funcName][_DYN_APPLY /* @min:%2eapply */](src, originalArguments);\r\n }\r\n };\r\n}\r\n/**\r\n * Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from\r\n * the source object to the target, it attempts to use proxy getters / setters (if possible) and proxy functions to avoid potential\r\n * implementation issues by assigning prototype functions as instance ones\r\n *\r\n * This method is the primary method used to \"update\" the snippet proxy with the ultimate implementations.\r\n *\r\n * Special ES3 Notes:\r\n * Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the\r\n * properties of \"referenced\" object will work (target.context.newValue = 10 => will be reflected in the source.context as it's the\r\n * same object). ES3 Failures: assigning target.myProp = 3 -> Won't change source.myProp = 3, likewise the reverse would also fail.\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param chkSet - An optional callback to determine whether a specific property/function should be proxied\r\n */\r\nexport function proxyAssign(target, source, chkSet) {\r\n if (target && source && isObject(target) && isObject(source)) {\r\n var _loop_1 = function (field) {\r\n if (isString(field)) {\r\n var value = source[field];\r\n if (isFunction(value)) {\r\n if (!chkSet || chkSet(field, true, source, target)) {\r\n // Create a proxy function rather than just copying the (possible) prototype to the new object as an instance function\r\n target[field] = _createProxyFunction(source, field);\r\n }\r\n }\r\n else if (!chkSet || chkSet(field, false, source, target)) {\r\n if (hasOwnProperty(target, field)) {\r\n // Remove any previous instance property\r\n delete target[field];\r\n }\r\n if (!objDefineAccessors(target, field, function () {\r\n return source[field];\r\n }, function (theValue) {\r\n source[field] = theValue;\r\n })) {\r\n // Unable to create an accessor, so just assign the values as a fallback\r\n // -- this will (mostly) work for objects\r\n // -- but will fail for accessing primitives (if the source changes it) and all types of \"setters\" as the source won't be modified\r\n target[field] = value;\r\n }\r\n }\r\n }\r\n };\r\n // effectively apply/proxy full source to the target instance\r\n for (var field in source) {\r\n _loop_1(field);\r\n }\r\n }\r\n return target;\r\n}\r\n/**\r\n * Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.\r\n *\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param name - The function name that will be added on the target\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param theFunc - The function name on the source that will be proxied on the target\r\n * @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\r\n */\r\nexport function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {\r\n if (target && name && source) {\r\n if (overwriteTarget !== false || isUndefined(target[name])) {\r\n target[name] = _createProxyFunction(source, theFunc);\r\n }\r\n }\r\n}\r\n/**\r\n * Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.\r\n *\r\n * @param target - The target object to be assigned with the source properties and functions\r\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\r\n * @param functionsToProxy - An array of function names that will be proxied on the target\r\n * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\r\n */\r\nexport function proxyFunctions(target, source, functionsToProxy, overwriteTarget) {\r\n if (target && source && isObject(target) && isArray(functionsToProxy)) {\r\n arrForEach(functionsToProxy, function (theFuncName) {\r\n if (isString(theFuncName)) {\r\n proxyFunctionAs(target, theFuncName, source, theFuncName, overwriteTarget);\r\n }\r\n });\r\n }\r\n return target;\r\n}\r\n/**\r\n * Simpler helper to create a dynamic class that implements the interface and populates the values with the defaults.\r\n * Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance\r\n * @param defaults Simple helper\r\n */\r\nexport function createClassFromInterface(defaults) {\r\n return /** @class */ (function () {\r\n function class_1() {\r\n var _this_1 = this;\r\n if (defaults) {\r\n objForEachKey(defaults, function (field, value) {\r\n _this_1[field] = value;\r\n });\r\n }\r\n }\r\n return class_1;\r\n }());\r\n}\r\n/**\r\n * A helper function to assist with JIT performance for objects that have properties added / removed dynamically\r\n * this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this\r\n * function after you have finished \"updating\" the object, calling this within loops reduces or defeats the benefits.\r\n * This helps when iterating using for..in, objKeys() and objForEach()\r\n * @param theObject - The object to be optimized if possible\r\n */\r\nexport function optimizeObject(theObject) {\r\n // V8 Optimization to cause the JIT compiler to create a new optimized object for looking up the own properties\r\n // primarily for object with <= 19 properties for >= 20 the effect is reduced or non-existent\r\n if (theObject && ObjAssign) {\r\n theObject = ObjClass(ObjAssign({}, theObject));\r\n }\r\n return theObject;\r\n}\r\nexport function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {\r\n // Variables\r\n var theArgs = arguments;\r\n var extended = theArgs[0] || {};\r\n var argLen = theArgs[_DYN_LENGTH /* @min:%2elength */];\r\n var deep = false;\r\n var idx = 1;\r\n // Check for \"Deep\" flag\r\n if (argLen > 0 && isBoolean(extended)) {\r\n deep = extended;\r\n extended = theArgs[idx] || {};\r\n idx++;\r\n }\r\n // Handle case when target is a string or something (possible in deep copy)\r\n if (!isObject(extended)) {\r\n extended = {};\r\n }\r\n // Loop through each remaining object and conduct a merge\r\n for (; idx < argLen; idx++) {\r\n var arg = theArgs[idx];\r\n var isArgArray = isArray(arg);\r\n var isArgObj = isObject(arg);\r\n for (var prop in arg) {\r\n var propOk = (isArgArray && (prop in arg)) || (isArgObj && (ObjHasOwnProperty[_DYN_CALL /* @min:%2ecall */](arg, prop)));\r\n if (!propOk) {\r\n continue;\r\n }\r\n var newValue = arg[prop];\r\n var isNewArray = void 0;\r\n // If deep merge and property is an object, merge properties\r\n if (deep && newValue && ((isNewArray = isArray(newValue)) || isPlainObject(newValue))) {\r\n // Grab the current value of the extended object\r\n var clone = extended[prop];\r\n if (isNewArray) {\r\n if (!isArray(clone)) {\r\n // We can't \"merge\" an array with a non-array so overwrite the original\r\n clone = [];\r\n }\r\n }\r\n else if (!isPlainObject(clone)) {\r\n // We can't \"merge\" an object with a non-object\r\n clone = {};\r\n }\r\n // Never move the original objects always clone them\r\n newValue = objExtend(deep, clone, newValue);\r\n }\r\n // Assign the new (or previous) value (unless undefined)\r\n if (newValue !== undefined) {\r\n extended[prop] = newValue;\r\n }\r\n }\r\n }\r\n return extended;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_SPLIT = \"split\"; // Count: 6\r\nexport var _DYN_LENGTH = \"length\"; // Count: 41\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 6\r\nexport var _DYN_INGESTIONENDPOINT = \"ingestionendpoint\"; // Count: 6\r\nexport var _DYN_TO_STRING = \"toString\"; // Count: 12\r\nexport var _DYN_REMOVE_ITEM = \"removeItem\"; // Count: 3\r\nexport var _DYN_NAME = \"name\"; // Count: 11\r\nexport var _DYN_MESSAGE = \"message\"; // Count: 10\r\nexport var _DYN_COUNT = \"count\"; // Count: 8\r\nexport var _DYN_PRE_TRIGGER_DATE = \"preTriggerDate\"; // Count: 4\r\nexport var _DYN_DISABLED = \"disabled\"; // Count: 3\r\nexport var _DYN_INTERVAL = \"interval\"; // Count: 3\r\nexport var _DYN_DAYS_OF_MONTH = \"daysOfMonth\"; // Count: 3\r\nexport var _DYN_DATE = \"date\"; // Count: 5\r\nexport var _DYN_GET_UTCDATE = \"getUTCDate\"; // Count: 3\r\nexport var _DYN_STRINGIFY = \"stringify\"; // Count: 4\r\nexport var _DYN_PATHNAME = \"pathname\"; // Count: 4\r\nexport var _DYN_CORRELATION_HEADER_E0 = \"correlationHeaderExcludePatterns\"; // Count: 2\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 4\r\nexport var _DYN_EXTENSION_CONFIG = \"extensionConfig\"; // Count: 4\r\nexport var _DYN_EXCEPTIONS = \"exceptions\"; // Count: 6\r\nexport var _DYN_PARSED_STACK = \"parsedStack\"; // Count: 13\r\nexport var _DYN_PROPERTIES = \"properties\"; // Count: 9\r\nexport var _DYN_MEASUREMENTS = \"measurements\"; // Count: 9\r\nexport var _DYN_SIZE_IN_BYTES = \"sizeInBytes\"; // Count: 11\r\nexport var _DYN_TYPE_NAME = \"typeName\"; // Count: 11\r\nexport var _DYN_SEVERITY_LEVEL = \"severityLevel\"; // Count: 5\r\nexport var _DYN_PROBLEM_GROUP = \"problemGroup\"; // Count: 3\r\nexport var _DYN_IS_MANUAL = \"isManual\"; // Count: 3\r\nexport var _DYN__CREATE_FROM_INTERFA1 = \"CreateFromInterface\"; // Count: 2\r\nexport var _DYN_ASSEMBLY = \"assembly\"; // Count: 7\r\nexport var _DYN_FILE_NAME = \"fileName\"; // Count: 8\r\nexport var _DYN_HAS_FULL_STACK = \"hasFullStack\"; // Count: 6\r\nexport var _DYN_LEVEL = \"level\"; // Count: 5\r\nexport var _DYN_METHOD = \"method\"; // Count: 7\r\nexport var _DYN_LINE = \"line\"; // Count: 6\r\nexport var _DYN_DURATION = \"duration\"; // Count: 4\r\nexport var _DYN_RECEIVED_RESPONSE = \"receivedResponse\"; // Count: 2\r\nexport var _DYN_SUBSTRING = \"substring\"; // Count: 6\r\nexport var _DYN_SANITIZE_KEY_AND_ADD2 = \"sanitizeKeyAndAddUniqueness\"; // Count: 2\r\nexport var _DYN_SANITIZE_EXCEPTION = \"sanitizeException\"; // Count: 2\r\nexport var _DYN_SANITIZE_PROPERTIES = \"sanitizeProperties\"; // Count: 2\r\nexport var _DYN_SANITIZE_MEASUREMENT3 = \"sanitizeMeasurements\"; // Count: 2\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { arrForEach, isString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_LENGTH, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\r\nvar strEmpty = \"\";\r\nexport function stringToBoolOrDefault(str, defaultValue) {\r\n if (defaultValue === void 0) { defaultValue = false; }\r\n if (str === undefined || str === null) {\r\n return defaultValue;\r\n }\r\n return str.toString()[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() === \"true\";\r\n}\r\n/**\r\n * Convert ms to c# time span format\r\n */\r\nexport function msToTimeSpan(totalms) {\r\n if (isNaN(totalms) || totalms < 0) {\r\n totalms = 0;\r\n }\r\n totalms = Math.round(totalms);\r\n var ms = strEmpty + totalms % 1000;\r\n var sec = strEmpty + Math.floor(totalms / 1000) % 60;\r\n var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;\r\n var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;\r\n var days = Math.floor(totalms / (1000 * 60 * 60 * 24));\r\n ms = ms[_DYN_LENGTH /* @min:%2elength */] === 1 ? \"00\" + ms : ms[_DYN_LENGTH /* @min:%2elength */] === 2 ? \"0\" + ms : ms;\r\n sec = sec[_DYN_LENGTH /* @min:%2elength */] < 2 ? \"0\" + sec : sec;\r\n min = min[_DYN_LENGTH /* @min:%2elength */] < 2 ? \"0\" + min : min;\r\n hour = hour[_DYN_LENGTH /* @min:%2elength */] < 2 ? \"0\" + hour : hour;\r\n return (days > 0 ? days + \".\" : strEmpty) + hour + \":\" + min + \":\" + sec + \".\" + ms;\r\n}\r\nexport function getExtensionByName(extensions, identifier) {\r\n var extension = null;\r\n arrForEach(extensions, function (value) {\r\n if (value.identifier === identifier) {\r\n extension = value;\r\n return -1;\r\n }\r\n });\r\n return extension;\r\n}\r\nexport function isCrossOriginError(message, url, lineNumber, columnNumber, error) {\r\n return !error && isString(message) && (message === \"Script error.\" || message === \"Script error\");\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport { getGlobal, strShimObject, strShimPrototype, strShimUndefined } from \"@microsoft/applicationinsights-shims\";\r\nimport { _DYN_CALL, _DYN_INDEX_OF, _DYN_LENGTH, _DYN_NAME, _DYN_SPLIT, _DYN_TO_LOWER_CASE, _DYN_USER_AGENT } from \"../__DynamicConstants\";\r\nimport { isFunction, isString, isUndefined, strContains } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\n/**\r\n * This file exists to hold environment utilities that are required to check and\r\n * validate the current operating environment. Unless otherwise required, please\r\n * only use defined methods (functions) in this class so that users of these\r\n * functions/properties only need to include those that are used within their own modules.\r\n */\r\nvar strWindow = \"window\";\r\nvar strDocument = \"document\";\r\nvar strDocumentMode = \"documentMode\";\r\nvar strNavigator = \"navigator\";\r\nvar strHistory = \"history\";\r\nvar strLocation = \"location\";\r\nvar strConsole = \"console\";\r\nvar strPerformance = \"performance\";\r\nvar strJSON = \"JSON\";\r\nvar strCrypto = \"crypto\";\r\nvar strMsCrypto = \"msCrypto\";\r\nvar strReactNative = \"ReactNative\";\r\nvar strMsie = \"msie\";\r\nvar strTrident = \"trident/\";\r\nvar strXMLHttpRequest = \"XMLHttpRequest\";\r\nvar _isTrident = null;\r\nvar _navUserAgentCheck = null;\r\nvar _enableMocks = false;\r\nvar _useXDomainRequest = null;\r\nvar _beaconsSupported = null;\r\nfunction _hasProperty(theClass, property) {\r\n var supported = false;\r\n if (theClass) {\r\n try {\r\n supported = property in theClass;\r\n if (!supported) {\r\n var proto = theClass[strShimPrototype];\r\n if (proto) {\r\n supported = property in proto;\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // Do Nothing\r\n }\r\n if (!supported) {\r\n try {\r\n var tmp = new theClass();\r\n supported = !isUndefined(tmp[property]);\r\n }\r\n catch (e) {\r\n // Do Nothing\r\n }\r\n }\r\n }\r\n return supported;\r\n}\r\n/**\r\n * Enable the lookup of test mock objects if requested\r\n * @param enabled\r\n */\r\nexport function setEnableEnvMocks(enabled) {\r\n _enableMocks = enabled;\r\n}\r\n/**\r\n * Return the named global object if available, will return null if the object is not available.\r\n * @param name The globally named object\r\n */\r\nexport function getGlobalInst(name) {\r\n var gbl = getGlobal();\r\n if (gbl && gbl[name]) {\r\n return gbl[name];\r\n }\r\n // Test workaround, for environments where <global>.window (when global == window) doesn't return the base window\r\n if (name === strWindow && hasWindow()) {\r\n // tslint:disable-next-line: no-angle-bracket-type-assertion\r\n return window;\r\n }\r\n return null;\r\n}\r\n/**\r\n * Checks if window object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a window\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: window is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\r\nexport function hasWindow() {\r\n return Boolean(typeof window === strShimObject && window);\r\n}\r\n/**\r\n * Returns the global window object if it is present otherwise null.\r\n * This helper is used to access the window object without causing an exception\r\n * \"Uncaught ReferenceError: window is not defined\"\r\n */\r\nexport function getWindow() {\r\n if (hasWindow()) {\r\n return window;\r\n }\r\n // Return the global instance or null\r\n return getGlobalInst(strWindow);\r\n}\r\n/**\r\n * Checks if document object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a document\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: document is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\r\nexport function hasDocument() {\r\n return Boolean(typeof document === strShimObject && document);\r\n}\r\n/**\r\n * Returns the global document object if it is present otherwise null.\r\n * This helper is used to access the document object without causing an exception\r\n * \"Uncaught ReferenceError: document is not defined\"\r\n */\r\nexport function getDocument() {\r\n if (hasDocument()) {\r\n return document;\r\n }\r\n return getGlobalInst(strDocument);\r\n}\r\n/**\r\n * Checks if navigator object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a navigator\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: navigator is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\r\nexport function hasNavigator() {\r\n return Boolean(typeof navigator === strShimObject && navigator);\r\n}\r\n/**\r\n * Returns the global navigator object if it is present otherwise null.\r\n * This helper is used to access the navigator object without causing an exception\r\n * \"Uncaught ReferenceError: navigator is not defined\"\r\n */\r\nexport function getNavigator() {\r\n if (hasNavigator()) {\r\n return navigator;\r\n }\r\n return getGlobalInst(strNavigator);\r\n}\r\n/**\r\n * Checks if history object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a history\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: history is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\r\nexport function hasHistory() {\r\n return Boolean(typeof history === strShimObject && history);\r\n}\r\n/**\r\n * Returns the global history object if it is present otherwise null.\r\n * This helper is used to access the history object without causing an exception\r\n * \"Uncaught ReferenceError: history is not defined\"\r\n */\r\nexport function getHistory() {\r\n if (hasHistory()) {\r\n return history;\r\n }\r\n return getGlobalInst(strHistory);\r\n}\r\n/**\r\n * Returns the global location object if it is present otherwise null.\r\n * This helper is used to access the location object without causing an exception\r\n * \"Uncaught ReferenceError: location is not defined\"\r\n */\r\nexport function getLocation(checkForMock) {\r\n if (checkForMock && _enableMocks) {\r\n var mockLocation = getGlobalInst(\"__mockLocation\");\r\n if (mockLocation) {\r\n return mockLocation;\r\n }\r\n }\r\n if (typeof location === strShimObject && location) {\r\n return location;\r\n }\r\n return getGlobalInst(strLocation);\r\n}\r\n/**\r\n * Returns the global console object\r\n */\r\nexport function getConsole() {\r\n if (typeof console !== strShimUndefined) {\r\n return console;\r\n }\r\n return getGlobalInst(strConsole);\r\n}\r\n/**\r\n * Returns the performance object if it is present otherwise null.\r\n * This helper is used to access the performance object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\r\nexport function getPerformance() {\r\n return getGlobalInst(strPerformance);\r\n}\r\n/**\r\n * Checks if JSON object is available, this is required as we support the API running without a\r\n * window /document (eg. Node server, electron webworkers) and if we attempt to assign a history\r\n * object to a local variable or pass as an argument an \"Uncaught ReferenceError: JSON is not defined\"\r\n * exception will be thrown.\r\n * Defined as a function to support lazy / late binding environments.\r\n */\r\nexport function hasJSON() {\r\n return Boolean((typeof JSON === strShimObject && JSON) || getGlobalInst(strJSON) !== null);\r\n}\r\n/**\r\n * Returns the global JSON object if it is present otherwise null.\r\n * This helper is used to access the JSON object without causing an exception\r\n * \"Uncaught ReferenceError: JSON is not defined\"\r\n */\r\nexport function getJSON() {\r\n if (hasJSON()) {\r\n return JSON || getGlobalInst(strJSON);\r\n }\r\n return null;\r\n}\r\n/**\r\n * Returns the crypto object if it is present otherwise null.\r\n * This helper is used to access the crypto object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\r\nexport function getCrypto() {\r\n return getGlobalInst(strCrypto);\r\n}\r\n/**\r\n * Returns the crypto object if it is present otherwise null.\r\n * This helper is used to access the crypto object from the current\r\n * global instance which could be window or globalThis for a web worker\r\n */\r\nexport function getMsCrypto() {\r\n return getGlobalInst(strMsCrypto);\r\n}\r\n/**\r\n * Returns whether the environment is reporting that we are running in a React Native Environment\r\n */\r\nexport function isReactNative() {\r\n // If running in React Native, navigator.product will be populated\r\n var nav = getNavigator();\r\n if (nav && nav.product) {\r\n return nav.product === strReactNative;\r\n }\r\n return false;\r\n}\r\n/**\r\n * Identifies whether the current environment appears to be IE\r\n */\r\nexport function isIE() {\r\n var nav = getNavigator();\r\n if (nav && (nav[_DYN_USER_AGENT /* @min:%2euserAgent */] !== _navUserAgentCheck || _isTrident === null)) {\r\n // Added to support test mocking of the user agent\r\n _navUserAgentCheck = nav[_DYN_USER_AGENT /* @min:%2euserAgent */];\r\n var userAgent = (_navUserAgentCheck || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n _isTrident = (strContains(userAgent, strMsie) || strContains(userAgent, strTrident));\r\n }\r\n return _isTrident;\r\n}\r\n/**\r\n * Gets IE version returning the document emulation mode if we are running on IE, or null otherwise\r\n */\r\nexport function getIEVersion(userAgentStr) {\r\n if (userAgentStr === void 0) { userAgentStr = null; }\r\n if (!userAgentStr) {\r\n var navigator_1 = getNavigator() || {};\r\n userAgentStr = navigator_1 ? (navigator_1[_DYN_USER_AGENT /* @min:%2euserAgent */] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() : STR_EMPTY;\r\n }\r\n var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n // Also check for documentMode in case X-UA-Compatible meta tag was included in HTML.\r\n if (strContains(ua, strMsie)) {\r\n var doc = getDocument() || {};\r\n return Math.max(parseInt(ua[_DYN_SPLIT /* @min:%2esplit */](strMsie)[1]), (doc[strDocumentMode] || 0));\r\n }\r\n else if (strContains(ua, strTrident)) {\r\n var tridentVer = parseInt(ua[_DYN_SPLIT /* @min:%2esplit */](strTrident)[1]);\r\n if (tridentVer) {\r\n return tridentVer + 4;\r\n }\r\n }\r\n return null;\r\n}\r\n/**\r\n * Returns string representation of an object suitable for diagnostics logging.\r\n */\r\nexport function dumpObj(object) {\r\n var objectTypeDump = Object[strShimPrototype].toString[_DYN_CALL /* @min:%2ecall */](object);\r\n var propertyValueDump = STR_EMPTY;\r\n if (objectTypeDump === \"[object Error]\") {\r\n propertyValueDump = \"{ stack: '\" + object.stack + \"', message: '\" + object.message + \"', name: '\" + object[_DYN_NAME /* @min:%2ename */] + \"'\";\r\n }\r\n else if (hasJSON()) {\r\n propertyValueDump = getJSON().stringify(object);\r\n }\r\n return objectTypeDump + propertyValueDump;\r\n}\r\nexport function isSafari(userAgentStr) {\r\n if (!userAgentStr || !isString(userAgentStr)) {\r\n var navigator_2 = getNavigator() || {};\r\n userAgentStr = navigator_2 ? (navigator_2[_DYN_USER_AGENT /* @min:%2euserAgent */] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() : STR_EMPTY;\r\n }\r\n var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n return (ua[_DYN_INDEX_OF /* @min:%2eindexOf */](\"safari\") >= 0);\r\n}\r\n/**\r\n * Checks if HTML5 Beacons are supported in the current environment.\r\n * @returns True if supported, false otherwise.\r\n */\r\nexport function isBeaconsSupported() {\r\n if (_beaconsSupported === null) {\r\n _beaconsSupported = hasNavigator() && Boolean(getNavigator().sendBeacon);\r\n }\r\n return _beaconsSupported;\r\n}\r\n/**\r\n * Checks if the Fetch API is supported in the current environment.\r\n * @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported\r\n * @returns True if supported, otherwise false\r\n */\r\nexport function isFetchSupported(withKeepAlive) {\r\n var isSupported = false;\r\n try {\r\n isSupported = !!getGlobalInst(\"fetch\");\r\n var request = getGlobalInst(\"Request\");\r\n if (isSupported && withKeepAlive && request) {\r\n isSupported = _hasProperty(request, \"keepalive\");\r\n }\r\n }\r\n catch (e) {\r\n // Just Swallow any failure during availability checks\r\n }\r\n return isSupported;\r\n}\r\nexport function useXDomainRequest() {\r\n if (_useXDomainRequest === null) {\r\n _useXDomainRequest = (typeof XDomainRequest !== strShimUndefined);\r\n if (_useXDomainRequest && isXhrSupported()) {\r\n _useXDomainRequest = _useXDomainRequest && !_hasProperty(getGlobalInst(strXMLHttpRequest), \"withCredentials\");\r\n }\r\n }\r\n return _useXDomainRequest;\r\n}\r\n/**\r\n * Checks if XMLHttpRequest is supported\r\n * @returns True if supported, otherwise false\r\n */\r\nexport function isXhrSupported() {\r\n var isSupported = false;\r\n try {\r\n var xmlHttpRequest = getGlobalInst(strXMLHttpRequest);\r\n isSupported = !!xmlHttpRequest;\r\n }\r\n catch (e) {\r\n // Just Swallow any failure during availability checks\r\n }\r\n return isSupported;\r\n}\r\nfunction _getNamedValue(values, name) {\r\n if (values) {\r\n for (var i = 0; i < values[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n var value = values[i];\r\n if (value[_DYN_NAME /* @min:%2ename */]) {\r\n if (value[_DYN_NAME /* @min:%2ename */] === name) {\r\n return value;\r\n }\r\n }\r\n }\r\n }\r\n return {};\r\n}\r\n/**\r\n * Helper function to fetch the named meta-tag from the page.\r\n * @param name\r\n */\r\nexport function findMetaTag(name) {\r\n var doc = getDocument();\r\n if (doc && name) {\r\n // Look for a meta-tag\r\n return _getNamedValue(doc.querySelectorAll(\"meta\"), name).content;\r\n }\r\n return null;\r\n}\r\n/**\r\n * Helper function to fetch the named server timing value from the page response (first navigation event).\r\n * @param name\r\n */\r\nexport function findNamedServerTiming(name) {\r\n var value;\r\n var perf = getPerformance();\r\n if (perf) {\r\n // Try looking for a server-timing header\r\n var navPerf = perf.getEntriesByType(\"navigation\") || [];\r\n value = _getNamedValue((navPerf[_DYN_LENGTH /* @min:%2elength */] > 0 ? navPerf[0] : {}).serverTiming, name).description;\r\n }\r\n return value;\r\n}\r\n// TODO: should reuse this method for analytics plugin\r\nexport function dispatchEvent(target, evnt) {\r\n if (target && target.dispatchEvent && evnt) {\r\n target.dispatchEvent(evnt);\r\n return true;\r\n }\r\n return false;\r\n}\r\nexport function createCustomDomEvent(eventName, details) {\r\n var event = null;\r\n var detail = { detail: details || null };\r\n if (isFunction(CustomEvent)) { // Use CustomEvent constructor when available\r\n event = new CustomEvent(eventName, detail);\r\n }\r\n else { // CustomEvent has no constructor in IE\r\n var doc = getDocument();\r\n if (doc && doc.createEvent) {\r\n event = doc.createEvent(\"CustomEvent\");\r\n event.initCustomEvent(eventName, true, true, detail);\r\n }\r\n }\r\n return event;\r\n}\r\nexport function sendCustomEvent(evtName, cfg, customDetails) {\r\n var global = getGlobal();\r\n if (global && global.CustomEvent) {\r\n try {\r\n var details = { cfg: cfg || null, customDetails: customDetails || null };\r\n return dispatchEvent(global, createCustomDomEvent(evtName, details));\r\n }\r\n catch (e) {\r\n // eslint-disable-next-line no-empty\r\n }\r\n }\r\n return false;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _DYN_APPLY, _DYN_LENGTH } from \"../__DynamicConstants\";\r\nimport { getGlobalInst } from \"./EnvUtils\";\r\nvar listenerFuncs = [\"eventsSent\", \"eventsDiscarded\", \"eventsSendRequest\", \"perfEvent\"];\r\nvar _aiNamespace = null;\r\nvar _debugListener;\r\nfunction _listenerProxyFunc(name, config) {\r\n return function () {\r\n var args = arguments;\r\n var dbgExt = getDebugExt(config);\r\n if (dbgExt) {\r\n var listener = dbgExt.listener;\r\n if (listener && listener[name]) {\r\n listener[name][_DYN_APPLY /* @min:%2eapply */](listener, args);\r\n }\r\n }\r\n };\r\n}\r\nfunction _getExtensionNamespace() {\r\n // Cache the lookup of the global namespace object\r\n var target = getGlobalInst(\"Microsoft\");\r\n if (target) {\r\n _aiNamespace = target[\"ApplicationInsights\"];\r\n }\r\n return _aiNamespace;\r\n}\r\nexport function getDebugExt(config) {\r\n var ns = _aiNamespace;\r\n if (!ns && config.disableDbgExt !== true) {\r\n ns = _aiNamespace || _getExtensionNamespace();\r\n }\r\n return ns ? ns[\"ChromeDbgExt\"] : null;\r\n}\r\nexport function getDebugListener(config) {\r\n if (!_debugListener) {\r\n _debugListener = {};\r\n for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n _debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);\r\n }\r\n }\r\n return _debugListener;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _DYN_DIAG_LOG, _DYN_ENABLE_DEBUG_EXCEPTI4, _DYN_LOGGER, _DYN_LOG_INTERNAL_MESSAGE, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_PUSH, _DYN_REPLACE } from \"../__DynamicConstants\";\r\nimport { getDebugExt } from \"./DbgExtensionUtils\";\r\nimport { dumpObj, getConsole, getJSON, hasJSON } from \"./EnvUtils\";\r\nimport { getCfgValue, isFunction, isUndefined } from \"./HelperFuncs\";\r\nimport { STR_EMPTY, STR_ERROR_TO_CONSOLE, STR_WARN_TO_CONSOLE } from \"./InternalConstants\";\r\n/**\r\n * For user non actionable traces use AI Internal prefix.\r\n */\r\nvar AiNonUserActionablePrefix = \"AI (Internal): \";\r\n/**\r\n * Prefix of the traces in portal.\r\n */\r\nvar AiUserActionablePrefix = \"AI: \";\r\n/**\r\n * Session storage key for the prefix for the key indicating message type already logged\r\n */\r\nvar AIInternalMessagePrefix = \"AITR_\";\r\nfunction _sanitizeDiagnosticText(text) {\r\n if (text) {\r\n return \"\\\"\" + text[_DYN_REPLACE /* @min:%2ereplace */](/\\\"/g, STR_EMPTY) + \"\\\"\";\r\n }\r\n return STR_EMPTY;\r\n}\r\nfunction _logToConsole(func, message) {\r\n var theConsole = getConsole();\r\n if (!!theConsole) {\r\n var logFunc = \"log\";\r\n if (theConsole[func]) {\r\n logFunc = func;\r\n }\r\n if (isFunction(theConsole[logFunc])) {\r\n theConsole[logFunc](message);\r\n }\r\n }\r\n}\r\nvar _InternalLogMessage = /** @class */ (function () {\r\n function _InternalLogMessage(msgId, msg, isUserAct, properties) {\r\n if (isUserAct === void 0) { isUserAct = false; }\r\n var _self = this;\r\n _self[_DYN_MESSAGE_ID /* @min:%2emessageId */] = msgId;\r\n _self[_DYN_MESSAGE /* @min:%2emessage */] =\r\n (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +\r\n msgId;\r\n var strProps = STR_EMPTY;\r\n if (hasJSON()) {\r\n strProps = getJSON().stringify(properties);\r\n }\r\n var diagnosticText = (msg ? \" message:\" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +\r\n (properties ? \" props:\" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);\r\n _self[_DYN_MESSAGE /* @min:%2emessage */] += diagnosticText;\r\n }\r\n _InternalLogMessage.dataType = \"MessageData\";\r\n return _InternalLogMessage;\r\n}());\r\nexport { _InternalLogMessage };\r\nexport function safeGetLogger(core, config) {\r\n return (core || {})[_DYN_LOGGER /* @min:%2elogger */] || new DiagnosticLogger(config);\r\n}\r\nvar DiagnosticLogger = /** @class */ (function () {\r\n function DiagnosticLogger(config) {\r\n this.identifier = \"DiagnosticLogger\";\r\n /**\r\n * The internal logging queue\r\n */\r\n this.queue = [];\r\n /**\r\n * Count of internal messages sent\r\n */\r\n var _messageCount = 0;\r\n /**\r\n * Holds information about what message types were already logged to console or sent to server.\r\n */\r\n var _messageLogged = {};\r\n var _loggingLevelConsole;\r\n var _loggingLevelTelemetry;\r\n var _maxInternalMessageLimit;\r\n var _enableDebug;\r\n dynamicProto(DiagnosticLogger, this, function (_self) {\r\n _setDefaultsFromConfig(config || {});\r\n _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };\r\n _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };\r\n _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };\r\n _self[_DYN_ENABLE_DEBUG_EXCEPTI4 /* @min:%2eenableDebugExceptions */] = function () { return _enableDebug; };\r\n /**\r\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\r\n * @param severity {LoggingSeverity} - The severity of the log message\r\n * @param message {_InternalLogMessage} - The log message.\r\n */\r\n _self.throwInternal = function (severity, msgId, msg, properties, isUserAct) {\r\n if (isUserAct === void 0) { isUserAct = false; }\r\n var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);\r\n if (_enableDebug) {\r\n throw dumpObj(message);\r\n }\r\n else {\r\n // Get the logging function and fallback to warnToConsole of for some reason errorToConsole doesn't exist\r\n var logFunc = severity === 1 /* eLoggingSeverity.CRITICAL */ ? STR_ERROR_TO_CONSOLE : STR_WARN_TO_CONSOLE;\r\n if (!isUndefined(message[_DYN_MESSAGE /* @min:%2emessage */])) {\r\n if (isUserAct) {\r\n // check if this message type was already logged to console for this page view and if so, don't log it again\r\n var messageKey = +message[_DYN_MESSAGE_ID /* @min:%2emessageId */];\r\n if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {\r\n _self[logFunc](message[_DYN_MESSAGE /* @min:%2emessage */]);\r\n _messageLogged[messageKey] = true;\r\n }\r\n }\r\n else {\r\n // Only log traces if the console Logging Level is >= the throwInternal severity level\r\n if (_loggingLevelConsole >= severity) {\r\n _self[logFunc](message[_DYN_MESSAGE /* @min:%2emessage */]);\r\n }\r\n }\r\n _logInternalMessage(severity, message);\r\n }\r\n else {\r\n _debugExtMsg(\"throw\" + (severity === 1 /* eLoggingSeverity.CRITICAL */ ? \"Critical\" : \"Warning\"), message);\r\n }\r\n }\r\n };\r\n /**\r\n * This will write a warning to the console if possible\r\n * @param message {string} - The warning message\r\n */\r\n _self[STR_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */] = function (message) {\r\n _logToConsole(\"warn\", message);\r\n _debugExtMsg(\"warning\", message);\r\n };\r\n /**\r\n * This will write an error to the console if possible\r\n * @param message {string} - The error message\r\n */\r\n _self[STR_ERROR_TO_CONSOLE /* @min:%2eerrorToConsole */] = function (message) {\r\n _logToConsole(\"error\", message);\r\n _debugExtMsg(\"error\", message);\r\n };\r\n /**\r\n * Resets the internal message count\r\n */\r\n _self.resetInternalMessageCount = function () {\r\n _messageCount = 0;\r\n _messageLogged = {};\r\n };\r\n /**\r\n * Logs a message to the internal queue.\r\n * @param severity {LoggingSeverity} - The severity of the log message\r\n * @param message {_InternalLogMessage} - The message to log.\r\n */\r\n _self[_DYN_LOG_INTERNAL_MESSAGE /* @min:%2elogInternalMessage */] = _logInternalMessage;\r\n function _logInternalMessage(severity, message) {\r\n if (_areInternalMessagesThrottled()) {\r\n return;\r\n }\r\n // check if this message type was already logged for this session and if so, don't log it again\r\n var logMessage = true;\r\n var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID /* @min:%2emessageId */];\r\n // if the session storage is not available, limit to only one message type per page view\r\n if (_messageLogged[messageKey]) {\r\n logMessage = false;\r\n }\r\n else {\r\n _messageLogged[messageKey] = true;\r\n }\r\n if (logMessage) {\r\n // Push the event in the internal queue\r\n if (severity <= _loggingLevelTelemetry) {\r\n _self.queue[_DYN_PUSH /* @min:%2epush */](message);\r\n _messageCount++;\r\n _debugExtMsg((severity === 1 /* eLoggingSeverity.CRITICAL */ ? \"error\" : \"warn\"), message);\r\n }\r\n // When throttle limit reached, send a special event\r\n if (_messageCount === _maxInternalMessageLimit) {\r\n var throttleLimitMessage = \"Internal events throttle limit per PageView reached for this app.\";\r\n var throttleMessage = new _InternalLogMessage(23 /* _eInternalMessageId.MessageLimitPerPVExceeded */, throttleLimitMessage, false);\r\n _self.queue[_DYN_PUSH /* @min:%2epush */](throttleMessage);\r\n if (severity === 1 /* eLoggingSeverity.CRITICAL */) {\r\n _self[STR_ERROR_TO_CONSOLE /* @min:%2eerrorToConsole */](throttleLimitMessage);\r\n }\r\n else {\r\n _self[STR_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](throttleLimitMessage);\r\n }\r\n }\r\n }\r\n }\r\n function _setDefaultsFromConfig(config) {\r\n _loggingLevelConsole = getCfgValue(config.loggingLevelConsole, 0);\r\n _loggingLevelTelemetry = getCfgValue(config.loggingLevelTelemetry, 1);\r\n _maxInternalMessageLimit = getCfgValue(config.maxMessageLimit, 25);\r\n _enableDebug = getCfgValue(config.enableDebug, getCfgValue(config[_DYN_ENABLE_DEBUG_EXCEPTI4 /* @min:%2eenableDebugExceptions */], false));\r\n }\r\n function _areInternalMessagesThrottled() {\r\n return _messageCount >= _maxInternalMessageLimit;\r\n }\r\n function _debugExtMsg(name, data) {\r\n var dbgExt = getDebugExt(config || {});\r\n if (dbgExt && dbgExt[_DYN_DIAG_LOG /* @min:%2ediagLog */]) {\r\n dbgExt[_DYN_DIAG_LOG /* @min:%2ediagLog */](name, data);\r\n }\r\n }\r\n });\r\n }\r\n// Removed Stub for DiagnosticLogger.prototype.enableDebugExceptions.\r\n// Removed Stub for DiagnosticLogger.prototype.consoleLoggingLevel.\r\n// Removed Stub for DiagnosticLogger.prototype.telemetryLoggingLevel.\r\n// Removed Stub for DiagnosticLogger.prototype.maxInternalMessageLimit.\r\n// Removed Stub for DiagnosticLogger.prototype.throwInternal.\r\n// Removed Stub for DiagnosticLogger.prototype.warnToConsole.\r\n// Removed Stub for DiagnosticLogger.prototype.errorToConsole.\r\n// Removed Stub for DiagnosticLogger.prototype.resetInternalMessageCount.\r\n// Removed Stub for DiagnosticLogger.prototype.logInternalMessage.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n DiagnosticLogger.__ieDyn=1;\n\n return DiagnosticLogger;\r\n}());\r\nexport { DiagnosticLogger };\r\nfunction _getLogger(logger) {\r\n return (logger || new DiagnosticLogger());\r\n}\r\n/**\r\n * This is a helper method which will call throwInternal on the passed logger, will throw exceptions in\r\n * debug mode or attempt to log the error as a console warning. This helper is provided mostly to better\r\n * support minification as logger.throwInternal() will not compress the publish \"throwInternal\" used throughout\r\n * the code.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param severity {LoggingSeverity} - The severity of the log message\r\n * @param message {_InternalLogMessage} - The log message.\r\n */\r\nexport function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {\r\n if (isUserAct === void 0) { isUserAct = false; }\r\n _getLogger(logger).throwInternal(severity, msgId, msg, properties, isUserAct);\r\n}\r\n/**\r\n * This is a helper method which will call warnToConsole on the passed logger with the provided message.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param message {_InternalLogMessage} - The log message.\r\n */\r\nexport function _warnToConsole(logger, message) {\r\n _getLogger(logger)[STR_WARN_TO_CONSOLE /* @min:%2ewarnToConsole */](message);\r\n}\r\n/**\r\n * Logs a message to the internal queue.\r\n * @param logger - The Diagnostic Logger instance to use.\r\n * @param severity {LoggingSeverity} - The severity of the log message\r\n * @param message {_InternalLogMessage} - The message to log.\r\n */\r\nexport function _logInternalMessage(logger, severity, message) {\r\n _getLogger(logger)[_DYN_LOG_INTERNAL_MESSAGE /* @min:%2elogInternalMessage */](severity, message);\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { deepFreeze, objForEachKey } from \"../JavaScriptSDK/HelperFuncs\";\r\n/**\r\n * Create an enum style object which has both the key => value and value => key mappings\r\n * @param values - The values to populate on the new object\r\n * @returns\r\n */\r\nexport function createEnumStyle(values) {\r\n var enumClass = {};\r\n objForEachKey(values, function (field, value) {\r\n enumClass[field] = value;\r\n enumClass[value] = field;\r\n });\r\n return deepFreeze(enumClass);\r\n}\r\n/**\r\n * Create a 2 index map that maps an enum's key as both the key and value, X[\"key\"] => \"key\" and X[0] => \"keyof 0\".\r\n * @param values - The values to populate on the new object\r\n * @returns\r\n */\r\nexport function createEnumMap(values) {\r\n var mapClass = {};\r\n objForEachKey(values, function (field, value) {\r\n mapClass[field] = field;\r\n mapClass[value] = field;\r\n });\r\n return deepFreeze(mapClass);\r\n}\r\n/**\r\n * Create a 2 index map that maps an enum's key and value to the defined map value, X[\"key\"] => mapValue and X[0] => mapValue.\r\n * Generic values\r\n * - E = the const enum type (typeof eRequestHeaders);\r\n * - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The\r\n * resulting \"Value\" of each entry identifies the valid values withing the assignments.\r\n * @param values - The values to populate on the new object\r\n * @returns\r\n */\r\nexport function createValueMap(values) {\r\n var mapClass = {};\r\n objForEachKey(values, function (field, value) {\r\n mapClass[field] = value[1];\r\n mapClass[value[0]] = value[1];\r\n });\r\n return deepFreeze(mapClass);\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { createEnumStyle } from \"@microsoft/applicationinsights-core-js\";\r\nexport var StorageType = createEnumStyle({\r\n LocalStorage: 0 /* eStorageType.LocalStorage */,\r\n SessionStorage: 1 /* eStorageType.SessionStorage */\r\n});\r\nexport var DistributedTracingModes = createEnumStyle({\r\n AI: 0 /* eDistributedTracingModes.AI */,\r\n AI_AND_W3C: 1 /* eDistributedTracingModes.AI_AND_W3C */,\r\n W3C: 2 /* eDistributedTracingModes.W3C */\r\n});\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _throwInternal, dumpObj, getExceptionName, getGlobal, getGlobalInst, isNullOrUndefined, objForEachKey } from \"@microsoft/applicationinsights-core-js\";\r\nimport { StorageType } from \"./Enums\";\r\nimport { _DYN_REMOVE_ITEM, _DYN_TO_STRING } from \"./__DynamicConstants\";\r\nvar _canUseLocalStorage = undefined;\r\nvar _canUseSessionStorage = undefined;\r\nvar _storagePrefix = \"\";\r\n/**\r\n * Gets the localStorage object if available\r\n * @return {Storage} - Returns the storage object if available else returns null\r\n */\r\nfunction _getLocalStorageObject() {\r\n if (utlCanUseLocalStorage()) {\r\n return _getVerifiedStorageObject(StorageType.LocalStorage);\r\n }\r\n return null;\r\n}\r\n/**\r\n * Tests storage object (localStorage or sessionStorage) to verify that it is usable\r\n * More details here: https://mathiasbynens.be/notes/localstorage-pattern\r\n * @param storageType Type of storage\r\n * @return {Storage} Returns storage object verified that it is usable\r\n */\r\nfunction _getVerifiedStorageObject(storageType) {\r\n try {\r\n if (isNullOrUndefined(getGlobal())) {\r\n return null;\r\n }\r\n var uid = (new Date)[_DYN_TO_STRING /* @min:%2etoString */]();\r\n var storage = getGlobalInst(storageType === StorageType.LocalStorage ? \"localStorage\" : \"sessionStorage\");\r\n var name_1 = _storagePrefix + uid;\r\n storage.setItem(name_1, uid);\r\n var fail = storage.getItem(name_1) !== uid;\r\n storage[_DYN_REMOVE_ITEM /* @min:%2eremoveItem */](name_1);\r\n if (!fail) {\r\n return storage;\r\n }\r\n }\r\n catch (exception) {\r\n // eslint-disable-next-line no-empty\r\n }\r\n return null;\r\n}\r\n/**\r\n * Gets the sessionStorage object if available\r\n * @return {Storage} - Returns the storage object if available else returns null\r\n */\r\nfunction _getSessionStorageObject() {\r\n if (utlCanUseSessionStorage()) {\r\n return _getVerifiedStorageObject(StorageType.SessionStorage);\r\n }\r\n return null;\r\n}\r\n/**\r\n * Disables the global SDK usage of local or session storage if available\r\n */\r\nexport function utlDisableStorage() {\r\n _canUseLocalStorage = false;\r\n _canUseSessionStorage = false;\r\n}\r\nexport function utlSetStoragePrefix(storagePrefix) {\r\n _storagePrefix = storagePrefix || \"\";\r\n}\r\n/**\r\n * Re-enables the global SDK usage of local or session storage if available\r\n */\r\nexport function utlEnableStorage() {\r\n _canUseLocalStorage = utlCanUseLocalStorage(true);\r\n _canUseSessionStorage = utlCanUseSessionStorage(true);\r\n}\r\n/**\r\n * Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override\r\n * any previous disable calls.\r\n * @param reset - Should the usage be reset and determined only based on whether LocalStorage is available\r\n */\r\nexport function utlCanUseLocalStorage(reset) {\r\n if (reset || _canUseLocalStorage === undefined) {\r\n _canUseLocalStorage = !!_getVerifiedStorageObject(StorageType.LocalStorage);\r\n }\r\n return _canUseLocalStorage;\r\n}\r\nexport function utlGetLocalStorage(logger, name) {\r\n var storage = _getLocalStorageObject();\r\n if (storage !== null) {\r\n try {\r\n return storage.getItem(name);\r\n }\r\n catch (e) {\r\n _canUseLocalStorage = false;\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 1 /* _eInternalMessageId.BrowserCannotReadLocalStorage */, \"Browser failed read of local storage. \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return null;\r\n}\r\nexport function utlSetLocalStorage(logger, name, data) {\r\n var storage = _getLocalStorageObject();\r\n if (storage !== null) {\r\n try {\r\n storage.setItem(name, data);\r\n return true;\r\n }\r\n catch (e) {\r\n _canUseLocalStorage = false;\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 3 /* _eInternalMessageId.BrowserCannotWriteLocalStorage */, \"Browser failed write to local storage. \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return false;\r\n}\r\nexport function utlRemoveStorage(logger, name) {\r\n var storage = _getLocalStorageObject();\r\n if (storage !== null) {\r\n try {\r\n storage[_DYN_REMOVE_ITEM /* @min:%2eremoveItem */](name);\r\n return true;\r\n }\r\n catch (e) {\r\n _canUseLocalStorage = false;\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 5 /* _eInternalMessageId.BrowserFailedRemovalFromLocalStorage */, \"Browser failed removal of local storage item. \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return false;\r\n}\r\nexport function utlCanUseSessionStorage(reset) {\r\n if (reset || _canUseSessionStorage === undefined) {\r\n _canUseSessionStorage = !!_getVerifiedStorageObject(StorageType.SessionStorage);\r\n }\r\n return _canUseSessionStorage;\r\n}\r\nexport function utlGetSessionStorageKeys() {\r\n var keys = [];\r\n if (utlCanUseSessionStorage()) {\r\n objForEachKey(getGlobalInst(\"sessionStorage\"), function (key) {\r\n keys.push(key);\r\n });\r\n }\r\n return keys;\r\n}\r\nexport function utlGetSessionStorage(logger, name) {\r\n var storage = _getSessionStorageObject();\r\n if (storage !== null) {\r\n try {\r\n return storage.getItem(name);\r\n }\r\n catch (e) {\r\n _canUseSessionStorage = false;\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 2 /* _eInternalMessageId.BrowserCannotReadSessionStorage */, \"Browser failed read of session storage. \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return null;\r\n}\r\nexport function utlSetSessionStorage(logger, name, data) {\r\n var storage = _getSessionStorageObject();\r\n if (storage !== null) {\r\n try {\r\n storage.setItem(name, data);\r\n return true;\r\n }\r\n catch (e) {\r\n _canUseSessionStorage = false;\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 4 /* _eInternalMessageId.BrowserCannotWriteSessionStorage */, \"Browser failed write to session storage. \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return false;\r\n}\r\nexport function utlRemoveSessionStorage(logger, name) {\r\n var storage = _getSessionStorageObject();\r\n if (storage !== null) {\r\n try {\r\n storage[_DYN_REMOVE_ITEM /* @min:%2eremoveItem */](name);\r\n return true;\r\n }\r\n catch (e) {\r\n _canUseSessionStorage = false;\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 6 /* _eInternalMessageId.BrowserFailedRemovalFromSessionStorage */, \"Browser failed removal of session storage item. \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return false;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n// Licensed under the\r\nexport { Util, CorrelationIdHelper, DateTimeUtils, dateTimeUtilsNow, dateTimeUtilsDuration, UrlHelper, isInternalApplicationInsightsEndpoint, createDistributedTraceContextFromTrace } from \"./Util\";\r\nexport { ThrottleMgr } from \"./ThrottleMgr\";\r\nexport { parseConnectionString, ConnectionStringParser } from \"./ConnectionStringParser\";\r\nexport { RequestHeaders } from \"./RequestResponseHeaders\";\r\nexport { DisabledPropertyName, ProcessLegacy, SampleRate, HttpMethod, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from \"./Constants\";\r\nexport { Envelope } from \"./Telemetry/Common/Envelope\";\r\nexport { Event } from \"./Telemetry/Event\";\r\nexport { Exception } from \"./Telemetry/Exception\";\r\nexport { Metric } from \"./Telemetry/Metric\";\r\nexport { PageView } from \"./Telemetry/PageView\";\r\nexport { RemoteDependencyData } from \"./Telemetry/RemoteDependencyData\";\r\nexport { Trace } from \"./Telemetry/Trace\";\r\nexport { PageViewPerformance } from \"./Telemetry/PageViewPerformance\";\r\nexport { Data } from \"./Telemetry/Common/Data\";\r\nexport { SeverityLevel } from \"./Interfaces/Contracts/SeverityLevel\";\r\nexport { ConfigurationManager } from \"./Interfaces/IConfig\";\r\nexport { ContextTagKeys } from \"./Interfaces/Contracts/ContextTagKeys\";\r\nexport { DataSanitizer, dataSanitizeKeyAndAddUniqueness, dataSanitizeKey, dataSanitizeString, dataSanitizeUrl, dataSanitizeMessage, dataSanitizeException, dataSanitizeProperties, dataSanitizeMeasurements, dataSanitizeId, dataSanitizeInput, dsPadNumber } from \"./Telemetry/Common/DataSanitizer\";\r\nexport { TelemetryItemCreator, createTelemetryItem } from \"./TelemetryItemCreator\";\r\nexport { CtxTagKeys, Extensions } from \"./Interfaces/PartAExtensions\";\r\nexport { DistributedTracingModes } from \"./Enums\";\r\nexport { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from \"./HelperFuncs\";\r\nexport { isBeaconsSupported as isBeaconApiSupported, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\r\nexport { createDomEvent } from \"./DomHelperFuncs\";\r\nexport { utlDisableStorage, utlEnableStorage, utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage, utlRemoveStorage, utlCanUseSessionStorage, utlGetSessionStorageKeys, utlGetSessionStorage, utlSetSessionStorage, utlRemoveSessionStorage, utlSetStoragePrefix } from \"./StorageHelperFuncs\";\r\nexport { urlParseUrl, urlGetAbsoluteUrl, urlGetPathName, urlGetCompleteUrl, urlParseHost, urlParseFullHost } from \"./UrlHelperFuncs\";\r\nexport var PropertiesPluginIdentifier = \"AppInsightsPropertiesPlugin\";\r\nexport var BreezeChannelIdentifier = \"AppInsightsChannelPlugin\";\r\nexport var AnalyticsPluginIdentifier = \"ApplicationInsightsAnalytics\";\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nvar _a;\r\nimport { _throwInternal, getJSON, hasJSON, isObject, objForEachKey, strTrim } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_LENGTH, _DYN_SANITIZE_EXCEPTION, _DYN_SANITIZE_KEY_AND_ADD2, _DYN_SANITIZE_MEASUREMENT3, _DYN_SANITIZE_PROPERTIES, _DYN_STRINGIFY, _DYN_SUBSTRING, _DYN_TO_STRING } from \"../../__DynamicConstants\";\r\nexport function dataSanitizeKeyAndAddUniqueness(logger, key, map) {\r\n var origLength = key[_DYN_LENGTH /* @min:%2elength */];\r\n var field = dataSanitizeKey(logger, key);\r\n // validation truncated the length. We need to add uniqueness\r\n if (field[_DYN_LENGTH /* @min:%2elength */] !== origLength) {\r\n var i = 0;\r\n var uniqueField = field;\r\n while (map[uniqueField] !== undefined) {\r\n i++;\r\n uniqueField = field[_DYN_SUBSTRING /* @min:%2esubstring */](0, 150 /* DataSanitizerValues.MAX_NAME_LENGTH */ - 3) + dsPadNumber(i);\r\n }\r\n field = uniqueField;\r\n }\r\n return field;\r\n}\r\nexport function dataSanitizeKey(logger, name) {\r\n var nameTrunc;\r\n if (name) {\r\n // Remove any leading or trailing whitespace\r\n name = strTrim(name[_DYN_TO_STRING /* @min:%2etoString */]());\r\n // truncate the string to 150 chars\r\n if (name[_DYN_LENGTH /* @min:%2elength */] > 150 /* DataSanitizerValues.MAX_NAME_LENGTH */) {\r\n nameTrunc = name[_DYN_SUBSTRING /* @min:%2esubstring */](0, 150 /* DataSanitizerValues.MAX_NAME_LENGTH */);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 57 /* _eInternalMessageId.NameTooLong */, \"name is too long. It has been truncated to \" + 150 /* DataSanitizerValues.MAX_NAME_LENGTH */ + \" characters.\", { name: name }, true);\r\n }\r\n }\r\n return nameTrunc || name;\r\n}\r\nexport function dataSanitizeString(logger, value, maxLength) {\r\n if (maxLength === void 0) { maxLength = 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */; }\r\n var valueTrunc;\r\n if (value) {\r\n maxLength = maxLength ? maxLength : 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */; // in case default parameters dont work\r\n value = strTrim(value);\r\n if (value.toString()[_DYN_LENGTH /* @min:%2elength */] > maxLength) {\r\n valueTrunc = value[_DYN_TO_STRING /* @min:%2etoString */]()[_DYN_SUBSTRING /* @min:%2esubstring */](0, maxLength);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 61 /* _eInternalMessageId.StringValueTooLong */, \"string value is too long. It has been truncated to \" + maxLength + \" characters.\", { value: value }, true);\r\n }\r\n }\r\n return valueTrunc || value;\r\n}\r\nexport function dataSanitizeUrl(logger, url) {\r\n return dataSanitizeInput(logger, url, 2048 /* DataSanitizerValues.MAX_URL_LENGTH */, 66 /* _eInternalMessageId.UrlTooLong */);\r\n}\r\nexport function dataSanitizeMessage(logger, message) {\r\n var messageTrunc;\r\n if (message) {\r\n if (message[_DYN_LENGTH /* @min:%2elength */] > 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */) {\r\n messageTrunc = message[_DYN_SUBSTRING /* @min:%2esubstring */](0, 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 56 /* _eInternalMessageId.MessageTruncated */, \"message is too long, it has been truncated to \" + 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */ + \" characters.\", { message: message }, true);\r\n }\r\n }\r\n return messageTrunc || message;\r\n}\r\nexport function dataSanitizeException(logger, exception) {\r\n var exceptionTrunc;\r\n if (exception) {\r\n // Make surte its a string\r\n var value = \"\" + exception;\r\n if (value[_DYN_LENGTH /* @min:%2elength */] > 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */) {\r\n exceptionTrunc = value[_DYN_SUBSTRING /* @min:%2esubstring */](0, 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 52 /* _eInternalMessageId.ExceptionTruncated */, \"exception is too long, it has been truncated to \" + 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */ + \" characters.\", { exception: exception }, true);\r\n }\r\n }\r\n return exceptionTrunc || exception;\r\n}\r\nexport function dataSanitizeProperties(logger, properties) {\r\n if (properties) {\r\n var tempProps_1 = {};\r\n objForEachKey(properties, function (prop, value) {\r\n if (isObject(value) && hasJSON()) {\r\n // Stringify any part C properties\r\n try {\r\n value = getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](value);\r\n }\r\n catch (e) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 49 /* _eInternalMessageId.CannotSerializeObjectNonSerializable */, \"custom property is not valid\", { exception: e }, true);\r\n }\r\n }\r\n value = dataSanitizeString(logger, value, 8192 /* DataSanitizerValues.MAX_PROPERTY_LENGTH */);\r\n prop = dataSanitizeKeyAndAddUniqueness(logger, prop, tempProps_1);\r\n tempProps_1[prop] = value;\r\n });\r\n properties = tempProps_1;\r\n }\r\n return properties;\r\n}\r\nexport function dataSanitizeMeasurements(logger, measurements) {\r\n if (measurements) {\r\n var tempMeasurements_1 = {};\r\n objForEachKey(measurements, function (measure, value) {\r\n measure = dataSanitizeKeyAndAddUniqueness(logger, measure, tempMeasurements_1);\r\n tempMeasurements_1[measure] = value;\r\n });\r\n measurements = tempMeasurements_1;\r\n }\r\n return measurements;\r\n}\r\nexport function dataSanitizeId(logger, id) {\r\n return id ? dataSanitizeInput(logger, id, 128 /* DataSanitizerValues.MAX_ID_LENGTH */, 69 /* _eInternalMessageId.IdTooLong */)[_DYN_TO_STRING /* @min:%2etoString */]() : id;\r\n}\r\nexport function dataSanitizeInput(logger, input, maxLength, _msgId) {\r\n var inputTrunc;\r\n if (input) {\r\n input = strTrim(input);\r\n if (input[_DYN_LENGTH /* @min:%2elength */] > maxLength) {\r\n inputTrunc = input[_DYN_SUBSTRING /* @min:%2esubstring */](0, maxLength);\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, _msgId, \"input is too long, it has been truncated to \" + maxLength + \" characters.\", { data: input }, true);\r\n }\r\n }\r\n return inputTrunc || input;\r\n}\r\nexport function dsPadNumber(num) {\r\n var s = \"00\" + num;\r\n return s.substr(s[_DYN_LENGTH /* @min:%2elength */] - 3);\r\n}\r\n/**\r\n * Provides the DataSanitizer functions within the previous namespace.\r\n */\r\nexport var DataSanitizer = (_a = {\r\n MAX_NAME_LENGTH: 150 /* DataSanitizerValues.MAX_NAME_LENGTH */,\r\n MAX_ID_LENGTH: 128 /* DataSanitizerValues.MAX_ID_LENGTH */,\r\n MAX_PROPERTY_LENGTH: 8192 /* DataSanitizerValues.MAX_PROPERTY_LENGTH */,\r\n MAX_STRING_LENGTH: 1024 /* DataSanitizerValues.MAX_STRING_LENGTH */,\r\n MAX_URL_LENGTH: 2048 /* DataSanitizerValues.MAX_URL_LENGTH */,\r\n MAX_MESSAGE_LENGTH: 32768 /* DataSanitizerValues.MAX_MESSAGE_LENGTH */,\r\n MAX_EXCEPTION_LENGTH: 32768 /* DataSanitizerValues.MAX_EXCEPTION_LENGTH */\r\n },\r\n _a[_DYN_SANITIZE_KEY_AND_ADD2 /* @min:sanitizeKeyAndAddUniqueness */] = dataSanitizeKeyAndAddUniqueness,\r\n _a.sanitizeKey = dataSanitizeKey,\r\n _a.sanitizeString = dataSanitizeString,\r\n _a.sanitizeUrl = dataSanitizeUrl,\r\n _a.sanitizeMessage = dataSanitizeMessage,\r\n _a[_DYN_SANITIZE_EXCEPTION /* @min:sanitizeException */] = dataSanitizeException,\r\n _a[_DYN_SANITIZE_PROPERTIES /* @min:sanitizeProperties */] = dataSanitizeProperties,\r\n _a[_DYN_SANITIZE_MEASUREMENT3 /* @min:sanitizeMeasurements */] = dataSanitizeMeasurements,\r\n _a.sanitizeId = dataSanitizeId,\r\n _a.sanitizeInput = dataSanitizeInput,\r\n _a.padNumber = dsPadNumber,\r\n _a.trim = strTrim,\r\n _a);\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n/**\r\n * This is an internal property used to cause internal (reporting) requests to be ignored from reporting\r\n * additional telemetry, to handle polyfil implementations ALL urls used with a disabled request will\r\n * also be ignored for future requests even when this property is not provided.\r\n * Tagging as Ignore as this is an internal value and is not expected to be used outside of the SDK\r\n * @ignore\r\n */\r\nexport var DisabledPropertyName = \"Microsoft_ApplicationInsights_BypassAjaxInstrumentation\";\r\nexport var SampleRate = \"sampleRate\";\r\nexport var ProcessLegacy = \"ProcessLegacy\";\r\nexport var HttpMethod = \"http.method\";\r\nexport var DEFAULT_BREEZE_ENDPOINT = \"https://dc.services.visualstudio.com\";\r\nexport var DEFAULT_BREEZE_PATH = \"/v2/track\";\r\nexport var strNotSpecified = \"not_specified\";\r\nexport var strIkey = \"iKey\";\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { isNullOrUndefined, objForEachKey, throwError, toISOString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { strIkey, strNotSpecified } from \"./Constants\";\r\nimport { dataSanitizeString } from \"./Telemetry/Common/DataSanitizer\";\r\nimport { _DYN_NAME } from \"./__DynamicConstants\";\r\n/**\r\n * Create a telemetry item that the 1DS channel understands\r\n * @param item domain specific properties; part B\r\n * @param baseType telemetry item type. ie PageViewData\r\n * @param envelopeName name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView\r\n * @param customProperties user defined custom properties; part C\r\n * @param systemProperties system properties that are added to the context; part A\r\n * @returns ITelemetryItem that is sent to channel\r\n */\r\nexport function createTelemetryItem(item, baseType, envelopeName, logger, customProperties, systemProperties) {\r\n var _a;\r\n envelopeName = dataSanitizeString(logger, envelopeName) || strNotSpecified;\r\n if (isNullOrUndefined(item) ||\r\n isNullOrUndefined(baseType) ||\r\n isNullOrUndefined(envelopeName)) {\r\n throwError(\"Input doesn't contain all required fields\");\r\n }\r\n var iKey = \"\";\r\n if (item[strIkey]) {\r\n iKey = item[strIkey];\r\n delete item[strIkey];\r\n }\r\n var telemetryItem = (_a = {},\r\n _a[_DYN_NAME /* @min:name */] = envelopeName,\r\n _a.time = toISOString(new Date()),\r\n _a.iKey = iKey,\r\n _a.ext = systemProperties ? systemProperties : {},\r\n _a.tags = [],\r\n _a.data = {},\r\n _a.baseType = baseType,\r\n _a.baseData = item // Part B\r\n ,\r\n _a);\r\n // Part C\r\n if (!isNullOrUndefined(customProperties)) {\r\n objForEachKey(customProperties, function (prop, value) {\r\n telemetryItem.data[prop] = value;\r\n });\r\n }\r\n return telemetryItem;\r\n}\r\nvar TelemetryItemCreator = /** @class */ (function () {\r\n function TelemetryItemCreator() {\r\n }\r\n /**\r\n * Create a telemetry item that the 1DS channel understands\r\n * @param item domain specific properties; part B\r\n * @param baseType telemetry item type. ie PageViewData\r\n * @param envelopeName name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView\r\n * @param customProperties user defined custom properties; part C\r\n * @param systemProperties system properties that are added to the context; part A\r\n * @returns ITelemetryItem that is sent to channel\r\n */\r\n TelemetryItemCreator.create = createTelemetryItem;\r\n return TelemetryItemCreator;\r\n}());\r\nexport { TelemetryItemCreator };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { strNotSpecified } from \"../Constants\";\r\nimport { _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\r\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString } from \"./Common/DataSanitizer\";\r\nvar Event = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the EventTelemetry object\r\n */\r\n function Event(logger, name, properties, measurements) {\r\n this.aiDataContract = {\r\n ver: 1 /* FieldType.Required */,\r\n name: 1 /* FieldType.Required */,\r\n properties: 0 /* FieldType.Default */,\r\n measurements: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n }\r\n Event.envelopeType = \"Microsoft.ApplicationInsights.{0}.Event\";\r\n Event.dataType = \"EventData\";\r\n return Event;\r\n}());\r\nexport { Event };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { strNotSpecified } from \"../Constants\";\r\nimport { _DYN_MEASUREMENTS, _DYN_MESSAGE, _DYN_PROPERTIES, _DYN_SEVERITY_LEVEL } from \"../__DynamicConstants\";\r\nimport { dataSanitizeMeasurements, dataSanitizeMessage, dataSanitizeProperties } from \"./Common/DataSanitizer\";\r\nvar Trace = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the TraceTelemetry object\r\n */\r\n function Trace(logger, message, severityLevel, properties, measurements) {\r\n this.aiDataContract = {\r\n ver: 1 /* FieldType.Required */,\r\n message: 1 /* FieldType.Required */,\r\n severityLevel: 0 /* FieldType.Default */,\r\n properties: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n message = message || strNotSpecified;\r\n _self[_DYN_MESSAGE /* @min:%2emessage */] = dataSanitizeMessage(logger, message);\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n if (severityLevel) {\r\n _self[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */] = severityLevel;\r\n }\r\n }\r\n Trace.envelopeType = \"Microsoft.ApplicationInsights.{0}.Message\";\r\n Trace.dataType = \"MessageData\";\r\n return Trace;\r\n}());\r\nexport { Trace };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nvar DataPoint = /** @class */ (function () {\r\n function DataPoint() {\r\n /**\r\n * The data contract for serializing this object.\r\n */\r\n this.aiDataContract = {\r\n name: 1 /* FieldType.Required */,\r\n kind: 0 /* FieldType.Default */,\r\n value: 1 /* FieldType.Required */,\r\n count: 0 /* FieldType.Default */,\r\n min: 0 /* FieldType.Default */,\r\n max: 0 /* FieldType.Default */,\r\n stdDev: 0 /* FieldType.Default */\r\n };\r\n /**\r\n * Metric type. Single measurement or the aggregated value.\r\n */\r\n this.kind = 0 /* DataPointType.Measurement */;\r\n }\r\n return DataPoint;\r\n}());\r\nexport { DataPoint };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { strNotSpecified } from \"../Constants\";\r\nimport { _DYN_COUNT, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\r\nimport { DataPoint } from \"./Common/DataPoint\";\r\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString } from \"./Common/DataSanitizer\";\r\nvar Metric = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the MetricTelemetry object\r\n */\r\n function Metric(logger, name, value, count, min, max, stdDev, properties, measurements) {\r\n this.aiDataContract = {\r\n ver: 1 /* FieldType.Required */,\r\n metrics: 1 /* FieldType.Required */,\r\n properties: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n var dataPoint = new DataPoint();\r\n dataPoint[_DYN_COUNT /* @min:%2ecount */] = count > 0 ? count : undefined;\r\n dataPoint.max = isNaN(max) || max === null ? undefined : max;\r\n dataPoint.min = isNaN(min) || min === null ? undefined : min;\r\n dataPoint[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\r\n dataPoint.value = value;\r\n dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;\r\n _self.metrics = [dataPoint];\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n }\r\n Metric.envelopeType = \"Microsoft.ApplicationInsights.{0}.Metric\";\r\n Metric.dataType = \"MetricData\";\r\n return Metric;\r\n}());\r\nexport { Metric };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { strNotSpecified } from \"../Constants\";\r\nimport { msToTimeSpan } from \"../HelperFuncs\";\r\nimport { _DYN_DURATION, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\r\nimport { dataSanitizeId, dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\r\nvar PageView = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the PageEventTelemetry object\r\n */\r\n function PageView(logger, name, url, durationMs, properties, measurements, id) {\r\n this.aiDataContract = {\r\n ver: 1 /* FieldType.Required */,\r\n name: 0 /* FieldType.Default */,\r\n url: 0 /* FieldType.Default */,\r\n duration: 0 /* FieldType.Default */,\r\n properties: 0 /* FieldType.Default */,\r\n measurements: 0 /* FieldType.Default */,\r\n id: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n _self.id = dataSanitizeId(logger, id);\r\n _self.url = dataSanitizeUrl(logger, url);\r\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\r\n if (!isNaN(durationMs)) {\r\n _self[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(durationMs);\r\n }\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n }\r\n PageView.envelopeType = \"Microsoft.ApplicationInsights.{0}.Pageview\";\r\n PageView.dataType = \"PageviewData\";\r\n return PageView;\r\n}());\r\nexport { PageView };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { strNotSpecified } from \"../Constants\";\r\nimport { _DYN_DURATION, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES, _DYN_RECEIVED_RESPONSE } from \"../__DynamicConstants\";\r\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\r\nvar PageViewPerformance = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the PageEventTelemetry object\r\n */\r\n function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {\r\n this.aiDataContract = {\r\n ver: 1 /* FieldType.Required */,\r\n name: 0 /* FieldType.Default */,\r\n url: 0 /* FieldType.Default */,\r\n duration: 0 /* FieldType.Default */,\r\n perfTotal: 0 /* FieldType.Default */,\r\n networkConnect: 0 /* FieldType.Default */,\r\n sentRequest: 0 /* FieldType.Default */,\r\n receivedResponse: 0 /* FieldType.Default */,\r\n domProcessing: 0 /* FieldType.Default */,\r\n properties: 0 /* FieldType.Default */,\r\n measurements: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n _self.url = dataSanitizeUrl(logger, url);\r\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n if (cs4BaseData) {\r\n _self.domProcessing = cs4BaseData.domProcessing;\r\n _self[_DYN_DURATION /* @min:%2eduration */] = cs4BaseData[_DYN_DURATION /* @min:%2eduration */];\r\n _self.networkConnect = cs4BaseData.networkConnect;\r\n _self.perfTotal = cs4BaseData.perfTotal;\r\n _self[_DYN_RECEIVED_RESPONSE /* @min:%2ereceivedResponse */] = cs4BaseData[_DYN_RECEIVED_RESPONSE /* @min:%2ereceivedResponse */];\r\n _self.sentRequest = cs4BaseData.sentRequest;\r\n }\r\n }\r\n PageViewPerformance.envelopeType = \"Microsoft.ApplicationInsights.{0}.PageviewPerformance\";\r\n PageViewPerformance.dataType = \"PageviewPerformanceData\";\r\n return PageViewPerformance;\r\n}());\r\nexport { PageViewPerformance };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { __assignFn as __assign } from \"@microsoft/applicationinsights-shims\";\r\nimport { arrForEach, arrMap, isArray, isError, isFunction, isNullOrUndefined, isObject, isString, strTrim } from \"@microsoft/applicationinsights-core-js\";\r\nimport { strNotSpecified } from \"../Constants\";\r\nimport { _DYN_ASSEMBLY, _DYN_EXCEPTIONS, _DYN_FILE_NAME, _DYN_HAS_FULL_STACK, _DYN_INDEX_OF, _DYN_IS_MANUAL, _DYN_LENGTH, _DYN_LEVEL, _DYN_LINE, _DYN_MEASUREMENTS, _DYN_MESSAGE, _DYN_METHOD, _DYN_NAME, _DYN_PARSED_STACK, _DYN_PROBLEM_GROUP, _DYN_PROPERTIES, _DYN_SEVERITY_LEVEL, _DYN_SIZE_IN_BYTES, _DYN_SPLIT, _DYN_STRINGIFY, _DYN_TO_STRING, _DYN_TYPE_NAME, _DYN__CREATE_FROM_INTERFA1 } from \"../__DynamicConstants\";\r\nimport { dataSanitizeException, dataSanitizeMeasurements, dataSanitizeMessage, dataSanitizeProperties, dataSanitizeString } from \"./Common/DataSanitizer\";\r\nvar NoMethod = \"<no_method>\";\r\nvar strError = \"error\";\r\nvar strStack = \"stack\";\r\nvar strStackDetails = \"stackDetails\";\r\nvar strErrorSrc = \"errorSrc\";\r\nvar strMessage = \"message\";\r\nvar strDescription = \"description\";\r\nfunction _stringify(value, convertToString) {\r\n var result = value;\r\n if (result && !isString(result)) {\r\n if (JSON && JSON[_DYN_STRINGIFY /* @min:%2estringify */]) {\r\n result = JSON[_DYN_STRINGIFY /* @min:%2estringify */](value);\r\n if (convertToString && (!result || result === \"{}\")) {\r\n if (isFunction(value[_DYN_TO_STRING /* @min:%2etoString */])) {\r\n result = value[_DYN_TO_STRING /* @min:%2etoString */]();\r\n }\r\n else {\r\n result = \"\" + value;\r\n }\r\n }\r\n }\r\n else {\r\n result = \"\" + value + \" - (Missing JSON.stringify)\";\r\n }\r\n }\r\n return result || \"\";\r\n}\r\nfunction _formatMessage(theEvent, errorType) {\r\n var evtMessage = theEvent;\r\n if (theEvent) {\r\n if (evtMessage && !isString(evtMessage)) {\r\n evtMessage = theEvent[strMessage] || theEvent[strDescription] || evtMessage;\r\n }\r\n // Make sure the message is a string\r\n if (evtMessage && !isString(evtMessage)) {\r\n // tslint:disable-next-line: prefer-conditional-expression\r\n evtMessage = _stringify(evtMessage, true);\r\n }\r\n if (theEvent[\"filename\"]) {\r\n // Looks like an event object with filename\r\n evtMessage = evtMessage + \" @\" + (theEvent[\"filename\"] || \"\") + \":\" + (theEvent[\"lineno\"] || \"?\") + \":\" + (theEvent[\"colno\"] || \"?\");\r\n }\r\n }\r\n // Automatically add the error type to the message if it does already appear to be present\r\n if (errorType && errorType !== \"String\" && errorType !== \"Object\" && errorType !== \"Error\" && (evtMessage || \"\")[_DYN_INDEX_OF /* @min:%2eindexOf */](errorType) === -1) {\r\n evtMessage = errorType + \": \" + evtMessage;\r\n }\r\n return evtMessage || \"\";\r\n}\r\nfunction _isExceptionDetailsInternal(value) {\r\n try {\r\n if (isObject(value)) {\r\n return \"hasFullStack\" in value && \"typeName\" in value;\r\n }\r\n }\r\n catch (e) {\r\n // This can happen with some native browser objects, but should not happen for the type we are checking for\r\n }\r\n return false;\r\n}\r\nfunction _isExceptionInternal(value) {\r\n try {\r\n if (isObject(value)) {\r\n return (\"ver\" in value && \"exceptions\" in value && \"properties\" in value);\r\n }\r\n }\r\n catch (e) {\r\n // This can happen with some native browser objects, but should not happen for the type we are checking for\r\n }\r\n return false;\r\n}\r\nfunction _isStackDetails(details) {\r\n return details && details.src && isString(details.src) && details.obj && isArray(details.obj);\r\n}\r\nfunction _convertStackObj(errorStack) {\r\n var src = errorStack || \"\";\r\n if (!isString(src)) {\r\n if (isString(src[strStack])) {\r\n src = src[strStack];\r\n }\r\n else {\r\n src = \"\" + src;\r\n }\r\n }\r\n var items = src[_DYN_SPLIT /* @min:%2esplit */](\"\\n\");\r\n return {\r\n src: src,\r\n obj: items\r\n };\r\n}\r\nfunction _getOperaStack(errorMessage) {\r\n var stack = [];\r\n var lines = errorMessage[_DYN_SPLIT /* @min:%2esplit */](\"\\n\");\r\n for (var lp = 0; lp < lines[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n var entry = lines[lp];\r\n if (lines[lp + 1]) {\r\n entry += \"@\" + lines[lp + 1];\r\n lp++;\r\n }\r\n stack.push(entry);\r\n }\r\n return {\r\n src: errorMessage,\r\n obj: stack\r\n };\r\n}\r\nfunction _getStackFromErrorObj(errorObj) {\r\n var details = null;\r\n if (errorObj) {\r\n try {\r\n /* Using bracket notation is support older browsers (IE 7/8 -- dont remember the version) that throw when using dot\r\n notation for undefined objects and we don't want to loose the error from being reported */\r\n if (errorObj[strStack]) {\r\n // Chrome/Firefox\r\n details = _convertStackObj(errorObj[strStack]);\r\n }\r\n else if (errorObj[strError] && errorObj[strError][strStack]) {\r\n // Edge error event provides the stack and error object\r\n details = _convertStackObj(errorObj[strError][strStack]);\r\n }\r\n else if (errorObj[\"exception\"] && errorObj.exception[strStack]) {\r\n details = _convertStackObj(errorObj.exception[strStack]);\r\n }\r\n else if (_isStackDetails(errorObj)) {\r\n details = errorObj;\r\n }\r\n else if (_isStackDetails(errorObj[strStackDetails])) {\r\n details = errorObj[strStackDetails];\r\n }\r\n else if (window && window[\"opera\"] && errorObj[strMessage]) {\r\n // Opera\r\n details = _getOperaStack(errorObj[_DYN_MESSAGE /* @min:%2emessage */]);\r\n }\r\n else if (errorObj[\"reason\"] && errorObj.reason[strStack]) {\r\n // UnhandledPromiseRejection\r\n details = _convertStackObj(errorObj.reason[strStack]);\r\n }\r\n else if (isString(errorObj)) {\r\n details = _convertStackObj(errorObj);\r\n }\r\n else {\r\n var evtMessage = errorObj[strMessage] || errorObj[strDescription] || \"\";\r\n if (isString(errorObj[strErrorSrc])) {\r\n if (evtMessage) {\r\n evtMessage += \"\\n\";\r\n }\r\n evtMessage += \" from \" + errorObj[strErrorSrc];\r\n }\r\n if (evtMessage) {\r\n details = _convertStackObj(evtMessage);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // something unexpected happened so to avoid failing to report any error lets swallow the exception\r\n // and fallback to the callee/caller method\r\n details = _convertStackObj(e);\r\n }\r\n }\r\n return details || {\r\n src: \"\",\r\n obj: null\r\n };\r\n}\r\nfunction _formatStackTrace(stackDetails) {\r\n var stack = \"\";\r\n if (stackDetails) {\r\n if (stackDetails.obj) {\r\n arrForEach(stackDetails.obj, function (entry) {\r\n stack += entry + \"\\n\";\r\n });\r\n }\r\n else {\r\n stack = stackDetails.src || \"\";\r\n }\r\n }\r\n return stack;\r\n}\r\nfunction _parseStack(stack) {\r\n var parsedStack;\r\n var frames = stack.obj;\r\n if (frames && frames[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n parsedStack = [];\r\n var level_1 = 0;\r\n var totalSizeInBytes_1 = 0;\r\n arrForEach(frames, function (frame) {\r\n var theFrame = frame[_DYN_TO_STRING /* @min:%2etoString */]();\r\n if (_StackFrame.regex.test(theFrame)) {\r\n var parsedFrame = new _StackFrame(theFrame, level_1++);\r\n totalSizeInBytes_1 += parsedFrame[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */];\r\n parsedStack.push(parsedFrame);\r\n }\r\n });\r\n // DP Constraint - exception parsed stack must be < 32KB\r\n // remove frames from the middle to meet the threshold\r\n var exceptionParsedStackThreshold = 32 * 1024;\r\n if (totalSizeInBytes_1 > exceptionParsedStackThreshold) {\r\n var left = 0;\r\n var right = parsedStack[_DYN_LENGTH /* @min:%2elength */] - 1;\r\n var size = 0;\r\n var acceptedLeft = left;\r\n var acceptedRight = right;\r\n while (left < right) {\r\n // check size\r\n var lSize = parsedStack[left][_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */];\r\n var rSize = parsedStack[right][_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */];\r\n size += lSize + rSize;\r\n if (size > exceptionParsedStackThreshold) {\r\n // remove extra frames from the middle\r\n var howMany = acceptedRight - acceptedLeft + 1;\r\n parsedStack.splice(acceptedLeft, howMany);\r\n break;\r\n }\r\n // update pointers\r\n acceptedLeft = left;\r\n acceptedRight = right;\r\n left++;\r\n right--;\r\n }\r\n }\r\n }\r\n return parsedStack;\r\n}\r\nfunction _getErrorType(errorType) {\r\n // Gets the Error Type by passing the constructor (used to get the true type of native error object).\r\n var typeName = \"\";\r\n if (errorType) {\r\n typeName = errorType.typeName || errorType[_DYN_NAME /* @min:%2ename */] || \"\";\r\n if (!typeName) {\r\n try {\r\n var funcNameRegex = /function (.{1,200})\\(/;\r\n var results = (funcNameRegex).exec((errorType).constructor[_DYN_TO_STRING /* @min:%2etoString */]());\r\n typeName = (results && results[_DYN_LENGTH /* @min:%2elength */] > 1) ? results[1] : \"\";\r\n }\r\n catch (e) {\r\n // eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do\r\n }\r\n }\r\n }\r\n return typeName;\r\n}\r\n/**\r\n * Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.\r\n * @param errorObj The supplied errorObj\r\n */\r\nexport function _formatErrorCode(errorObj) {\r\n if (errorObj) {\r\n try {\r\n if (!isString(errorObj)) {\r\n var errorType = _getErrorType(errorObj);\r\n var result = _stringify(errorObj, false);\r\n if (!result || result === \"{}\") {\r\n if (errorObj[strError]) {\r\n // Looks like an MS Error Event\r\n errorObj = errorObj[strError];\r\n errorType = _getErrorType(errorObj);\r\n }\r\n result = _stringify(errorObj, true);\r\n }\r\n if (result[_DYN_INDEX_OF /* @min:%2eindexOf */](errorType) !== 0 && errorType !== \"String\") {\r\n return errorType + \":\" + result;\r\n }\r\n return result;\r\n }\r\n }\r\n catch (e) {\r\n // eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do\r\n }\r\n }\r\n // Fallback to just letting the object format itself into a string\r\n return \"\" + (errorObj || \"\");\r\n}\r\nvar Exception = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the ExceptionTelemetry object\r\n */\r\n function Exception(logger, exception, properties, measurements, severityLevel, id) {\r\n this.aiDataContract = {\r\n ver: 1 /* FieldType.Required */,\r\n exceptions: 1 /* FieldType.Required */,\r\n severityLevel: 0 /* FieldType.Default */,\r\n properties: 0 /* FieldType.Default */,\r\n measurements: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2; // TODO: handle the CS\"4.0\" ==> breeze 2 conversion in a better way\r\n if (!_isExceptionInternal(exception)) {\r\n if (!properties) {\r\n properties = {};\r\n }\r\n _self[_DYN_EXCEPTIONS /* @min:%2eexceptions */] = [new _ExceptionDetails(logger, exception, properties)];\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n if (severityLevel) {\r\n _self[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */] = severityLevel;\r\n }\r\n if (id) {\r\n _self.id = id;\r\n }\r\n }\r\n else {\r\n _self[_DYN_EXCEPTIONS /* @min:%2eexceptions */] = exception[_DYN_EXCEPTIONS /* @min:%2eexceptions */] || [];\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = exception[_DYN_PROPERTIES /* @min:%2eproperties */];\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = exception[_DYN_MEASUREMENTS /* @min:%2emeasurements */];\r\n if (exception[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */]) {\r\n _self[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */] = exception[_DYN_SEVERITY_LEVEL /* @min:%2eseverityLevel */];\r\n }\r\n if (exception.id) {\r\n _self.id = exception.id;\r\n }\r\n if (exception[_DYN_PROBLEM_GROUP /* @min:%2eproblemGroup */]) {\r\n _self[_DYN_PROBLEM_GROUP /* @min:%2eproblemGroup */] = exception[_DYN_PROBLEM_GROUP /* @min:%2eproblemGroup */];\r\n }\r\n // bool/int types, use isNullOrUndefined\r\n if (!isNullOrUndefined(exception[_DYN_IS_MANUAL /* @min:%2eisManual */])) {\r\n _self[_DYN_IS_MANUAL /* @min:%2eisManual */] = exception[_DYN_IS_MANUAL /* @min:%2eisManual */];\r\n }\r\n }\r\n }\r\n Exception.CreateAutoException = function (message, url, lineNumber, columnNumber, error, evt, stack, errorSrc) {\r\n var _a;\r\n var errorType = _getErrorType(error || evt || message);\r\n return _a = {},\r\n _a[_DYN_MESSAGE /* @min:message */] = _formatMessage(message, errorType),\r\n _a.url = url,\r\n _a.lineNumber = lineNumber,\r\n _a.columnNumber = columnNumber,\r\n _a.error = _formatErrorCode(error || evt || message),\r\n _a.evt = _formatErrorCode(evt || message),\r\n _a[_DYN_TYPE_NAME /* @min:typeName */] = errorType,\r\n _a.stackDetails = _getStackFromErrorObj(stack || error || evt),\r\n _a.errorSrc = errorSrc,\r\n _a;\r\n };\r\n Exception.CreateFromInterface = function (logger, exception, properties, measurements) {\r\n var exceptions = exception[_DYN_EXCEPTIONS /* @min:%2eexceptions */]\r\n && arrMap(exception[_DYN_EXCEPTIONS /* @min:%2eexceptions */], function (ex) { return _ExceptionDetails[_DYN__CREATE_FROM_INTERFA1 /* @min:%2eCreateFromInterface */](logger, ex); });\r\n var exceptionData = new Exception(logger, __assign(__assign({}, exception), { exceptions: exceptions }), properties, measurements);\r\n return exceptionData;\r\n };\r\n Exception.prototype.toInterface = function () {\r\n var _a;\r\n var _b = this, exceptions = _b.exceptions, properties = _b.properties, measurements = _b.measurements, severityLevel = _b.severityLevel, problemGroup = _b.problemGroup, id = _b.id, isManual = _b.isManual;\r\n var exceptionDetailsInterface = exceptions instanceof Array\r\n && arrMap(exceptions, function (exception) { return exception.toInterface(); })\r\n || undefined;\r\n return _a = {\r\n ver: \"4.0\"\r\n },\r\n _a[_DYN_EXCEPTIONS /* @min:exceptions */] = exceptionDetailsInterface,\r\n _a.severityLevel = severityLevel,\r\n _a.properties = properties,\r\n _a.measurements = measurements,\r\n _a.problemGroup = problemGroup,\r\n _a.id = id,\r\n _a.isManual = isManual,\r\n _a;\r\n };\r\n /**\r\n * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.\r\n */\r\n Exception.CreateSimpleException = function (message, typeName, assembly, fileName, details, line) {\r\n var _a;\r\n return {\r\n exceptions: [\r\n (_a = {},\r\n _a[_DYN_HAS_FULL_STACK /* @min:hasFullStack */] = true,\r\n _a.message = message,\r\n _a.stack = details,\r\n _a.typeName = typeName,\r\n _a)\r\n ]\r\n };\r\n };\r\n Exception.envelopeType = \"Microsoft.ApplicationInsights.{0}.Exception\";\r\n Exception.dataType = \"ExceptionData\";\r\n Exception.formatError = _formatErrorCode;\r\n return Exception;\r\n}());\r\nexport { Exception };\r\nvar _ExceptionDetails = /** @class */ (function () {\r\n function _ExceptionDetails(logger, exception, properties) {\r\n this.aiDataContract = {\r\n id: 0 /* FieldType.Default */,\r\n outerId: 0 /* FieldType.Default */,\r\n typeName: 1 /* FieldType.Required */,\r\n message: 1 /* FieldType.Required */,\r\n hasFullStack: 0 /* FieldType.Default */,\r\n stack: 0 /* FieldType.Default */,\r\n parsedStack: 2 /* FieldType.Array */\r\n };\r\n var _self = this;\r\n if (!_isExceptionDetailsInternal(exception)) {\r\n var error = exception;\r\n var evt = error && error.evt;\r\n if (!isError(error)) {\r\n error = error[strError] || evt || error;\r\n }\r\n _self[_DYN_TYPE_NAME /* @min:%2etypeName */] = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;\r\n _self[_DYN_MESSAGE /* @min:%2emessage */] = dataSanitizeMessage(logger, _formatMessage(exception || error, _self[_DYN_TYPE_NAME /* @min:%2etypeName */])) || strNotSpecified;\r\n var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);\r\n _self[_DYN_PARSED_STACK /* @min:%2eparsedStack */] = _parseStack(stack);\r\n // after parsedStack is inited, iterate over each frame object, sanitize its assembly field\r\n if (isArray(_self[_DYN_PARSED_STACK /* @min:%2eparsedStack */])) {\r\n arrMap(_self[_DYN_PARSED_STACK /* @min:%2eparsedStack */], function (frame) {\r\n frame[_DYN_ASSEMBLY /* @min:%2eassembly */] = dataSanitizeString(logger, frame[_DYN_ASSEMBLY /* @min:%2eassembly */]);\r\n frame[_DYN_FILE_NAME /* @min:%2efileName */] = dataSanitizeString(logger, frame[_DYN_FILE_NAME /* @min:%2efileName */]);\r\n });\r\n }\r\n _self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));\r\n _self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack[_DYN_LENGTH /* @min:%2elength */] > 0;\r\n if (properties) {\r\n properties[_DYN_TYPE_NAME /* @min:%2etypeName */] = properties[_DYN_TYPE_NAME /* @min:%2etypeName */] || _self[_DYN_TYPE_NAME /* @min:%2etypeName */];\r\n }\r\n }\r\n else {\r\n _self[_DYN_TYPE_NAME /* @min:%2etypeName */] = exception[_DYN_TYPE_NAME /* @min:%2etypeName */];\r\n _self[_DYN_MESSAGE /* @min:%2emessage */] = exception[_DYN_MESSAGE /* @min:%2emessage */];\r\n _self[strStack] = exception[strStack];\r\n _self[_DYN_PARSED_STACK /* @min:%2eparsedStack */] = exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */] || [];\r\n _self[_DYN_HAS_FULL_STACK /* @min:%2ehasFullStack */] = exception[_DYN_HAS_FULL_STACK /* @min:%2ehasFullStack */];\r\n }\r\n }\r\n _ExceptionDetails.prototype.toInterface = function () {\r\n var _a;\r\n var _self = this;\r\n var parsedStack = _self[_DYN_PARSED_STACK /* @min:%2eparsedStack */] instanceof Array\r\n && arrMap(_self[_DYN_PARSED_STACK /* @min:%2eparsedStack */], function (frame) { return frame.toInterface(); });\r\n var exceptionDetailsInterface = (_a = {\r\n id: _self.id,\r\n outerId: _self.outerId,\r\n typeName: _self[_DYN_TYPE_NAME /* @min:%2etypeName */],\r\n message: _self[_DYN_MESSAGE /* @min:%2emessage */],\r\n hasFullStack: _self[_DYN_HAS_FULL_STACK /* @min:%2ehasFullStack */],\r\n stack: _self[strStack]\r\n },\r\n _a[_DYN_PARSED_STACK /* @min:parsedStack */] = parsedStack || undefined,\r\n _a);\r\n return exceptionDetailsInterface;\r\n };\r\n _ExceptionDetails.CreateFromInterface = function (logger, exception) {\r\n var parsedStack = (exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */] instanceof Array\r\n && arrMap(exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */], function (frame) { return _StackFrame[_DYN__CREATE_FROM_INTERFA1 /* @min:%2eCreateFromInterface */](frame); }))\r\n || exception[_DYN_PARSED_STACK /* @min:%2eparsedStack */];\r\n var exceptionDetails = new _ExceptionDetails(logger, __assign(__assign({}, exception), { parsedStack: parsedStack }));\r\n return exceptionDetails;\r\n };\r\n return _ExceptionDetails;\r\n}());\r\nexport { _ExceptionDetails };\r\nvar _StackFrame = /** @class */ (function () {\r\n function _StackFrame(sourceFrame, level) {\r\n this.aiDataContract = {\r\n level: 1 /* FieldType.Required */,\r\n method: 1 /* FieldType.Required */,\r\n assembly: 0 /* FieldType.Default */,\r\n fileName: 0 /* FieldType.Default */,\r\n line: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */] = 0;\r\n // Not converting this to isString() as typescript uses this logic to \"understand\" the different\r\n // types for the 2 different code paths\r\n if (typeof sourceFrame === \"string\") {\r\n var frame = sourceFrame;\r\n _self[_DYN_LEVEL /* @min:%2elevel */] = level;\r\n _self[_DYN_METHOD /* @min:%2emethod */] = NoMethod;\r\n _self[_DYN_ASSEMBLY /* @min:%2eassembly */] = strTrim(frame);\r\n _self[_DYN_FILE_NAME /* @min:%2efileName */] = \"\";\r\n _self[_DYN_LINE /* @min:%2eline */] = 0;\r\n var matches = frame.match(_StackFrame.regex);\r\n if (matches && matches[_DYN_LENGTH /* @min:%2elength */] >= 5) {\r\n _self[_DYN_METHOD /* @min:%2emethod */] = strTrim(matches[2]) || _self[_DYN_METHOD /* @min:%2emethod */];\r\n _self[_DYN_FILE_NAME /* @min:%2efileName */] = strTrim(matches[4]);\r\n _self[_DYN_LINE /* @min:%2eline */] = parseInt(matches[5]) || 0;\r\n }\r\n }\r\n else {\r\n _self[_DYN_LEVEL /* @min:%2elevel */] = sourceFrame[_DYN_LEVEL /* @min:%2elevel */];\r\n _self[_DYN_METHOD /* @min:%2emethod */] = sourceFrame[_DYN_METHOD /* @min:%2emethod */];\r\n _self[_DYN_ASSEMBLY /* @min:%2eassembly */] = sourceFrame[_DYN_ASSEMBLY /* @min:%2eassembly */];\r\n _self[_DYN_FILE_NAME /* @min:%2efileName */] = sourceFrame[_DYN_FILE_NAME /* @min:%2efileName */];\r\n _self[_DYN_LINE /* @min:%2eline */] = sourceFrame[_DYN_LINE /* @min:%2eline */];\r\n _self[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */] = 0;\r\n }\r\n _self.sizeInBytes += _self.method[_DYN_LENGTH /* @min:%2elength */];\r\n _self.sizeInBytes += _self.fileName[_DYN_LENGTH /* @min:%2elength */];\r\n _self.sizeInBytes += _self.assembly[_DYN_LENGTH /* @min:%2elength */];\r\n // todo: these might need to be removed depending on how the back-end settles on their size calculation\r\n _self[_DYN_SIZE_IN_BYTES /* @min:%2esizeInBytes */] += _StackFrame.baseSize;\r\n _self.sizeInBytes += _self.level.toString()[_DYN_LENGTH /* @min:%2elength */];\r\n _self.sizeInBytes += _self.line.toString()[_DYN_LENGTH /* @min:%2elength */];\r\n }\r\n _StackFrame.CreateFromInterface = function (frame) {\r\n return new _StackFrame(frame, null /* level is available in frame interface */);\r\n };\r\n _StackFrame.prototype.toInterface = function () {\r\n var _self = this;\r\n return {\r\n level: _self[_DYN_LEVEL /* @min:%2elevel */],\r\n method: _self[_DYN_METHOD /* @min:%2emethod */],\r\n assembly: _self[_DYN_ASSEMBLY /* @min:%2eassembly */],\r\n fileName: _self[_DYN_FILE_NAME /* @min:%2efileName */],\r\n line: _self[_DYN_LINE /* @min:%2eline */]\r\n };\r\n };\r\n // regex to match stack frames from ie/chrome/ff\r\n // methodName=$2, fileName=$4, lineNo=$5, column=$6\r\n _StackFrame.regex = /^([\\s]+at)?[\\s]{0,50}([^\\@\\()]+?)[\\s]{0,50}(\\@|\\()([^\\(\\n]+):([0-9]+):([0-9]+)(\\)?)$/;\r\n _StackFrame.baseSize = 58; // '{\"method\":\"\",\"level\":,\"assembly\":\"\",\"fileName\":\"\",\"line\":}'.length\r\n return _StackFrame;\r\n}());\r\nexport { _StackFrame };\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { _DYN_COOKIE_CFG, _DYN_INDEX_OF, _DYN_LENGTH, _DYN_LOGGER, _DYN_SET_ENABLED, _DYN_SPLIT, _DYN_SUBSTRING, _DYN_USER_AGENT } from \"../__DynamicConstants\";\r\nimport { _throwInternal } from \"./DiagnosticLogger\";\r\nimport { dumpObj, getDocument, getLocation, getNavigator, isIE } from \"./EnvUtils\";\r\nimport { arrForEach, dateNow, getExceptionName, isArray, isFunction, isNotNullOrUndefined, isNullOrUndefined, isString, isTruthy, isUndefined, objForEachKey, setValue, strContains, strEndsWith, strTrim } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\nvar strToGMTString = \"toGMTString\";\r\nvar strToUTCString = \"toUTCString\";\r\nvar strCookie = \"cookie\";\r\nvar strExpires = \"expires\";\r\nvar strEnabled = \"enabled\";\r\nvar strIsCookieUseDisabled = \"isCookieUseDisabled\";\r\nvar strDisableCookiesUsage = \"disableCookiesUsage\";\r\nvar strConfigCookieMgr = \"_ckMgr\";\r\nvar _supportsCookies = null;\r\nvar _allowUaSameSite = null;\r\nvar _parsedCookieValue = null;\r\nvar _doc = getDocument();\r\nvar _cookieCache = {};\r\nvar _globalCookieConfig = {};\r\n/**\r\n * @ignore\r\n * DO NOT USE or export from the module, this is exposed as public to support backward compatibility of previous static utility methods only.\r\n * If you want to manager cookies either use the ICookieMgr available from the core instance via getCookieMgr() or create\r\n * your own instance of the CookieMgr and use that.\r\n * Using this directly for enabling / disabling cookie handling will not only affect your usage but EVERY user of cookies.\r\n * Example, if you are using a shared component that is also using Application Insights you will affect their cookie handling.\r\n * @param logger - The DiagnosticLogger to use for reporting errors.\r\n */\r\nexport function _gblCookieMgr(config, logger) {\r\n // Stash the global instance against the BaseCookieMgr class\r\n var inst = createCookieMgr[strConfigCookieMgr] || _globalCookieConfig[strConfigCookieMgr];\r\n if (!inst) {\r\n // Note: not using the getSetValue() helper as that would require always creating a temporary cookieMgr\r\n // that ultimately is never used\r\n inst = createCookieMgr[strConfigCookieMgr] = createCookieMgr(config, logger);\r\n _globalCookieConfig[strConfigCookieMgr] = inst;\r\n }\r\n return inst;\r\n}\r\nfunction _isMgrEnabled(cookieMgr) {\r\n if (cookieMgr) {\r\n return cookieMgr.isEnabled();\r\n }\r\n return true;\r\n}\r\nfunction _createCookieMgrConfig(rootConfig) {\r\n var cookieMgrCfg = rootConfig[_DYN_COOKIE_CFG /* @min:%2ecookieCfg */] = rootConfig[_DYN_COOKIE_CFG /* @min:%2ecookieCfg */] || {};\r\n // Sets the values from the root config if not already present on the cookieMgrCfg\r\n setValue(cookieMgrCfg, \"domain\", rootConfig.cookieDomain, isNotNullOrUndefined, isNullOrUndefined);\r\n setValue(cookieMgrCfg, \"path\", rootConfig.cookiePath || \"/\", null, isNullOrUndefined);\r\n if (isNullOrUndefined(cookieMgrCfg[strEnabled])) {\r\n // Set the enabled from the provided setting or the legacy root values\r\n var cookieEnabled = void 0;\r\n if (!isUndefined(rootConfig[strIsCookieUseDisabled])) {\r\n cookieEnabled = !rootConfig[strIsCookieUseDisabled];\r\n }\r\n if (!isUndefined(rootConfig[strDisableCookiesUsage])) {\r\n cookieEnabled = !rootConfig[strDisableCookiesUsage];\r\n }\r\n cookieMgrCfg[strEnabled] = cookieEnabled;\r\n }\r\n return cookieMgrCfg;\r\n}\r\nfunction _isIgnoredCookie(cookieMgrCfg, name) {\r\n if (name && cookieMgrCfg && isArray(cookieMgrCfg.ignoreCookies)) {\r\n return cookieMgrCfg.ignoreCookies[_DYN_INDEX_OF /* @min:%2eindexOf */](name) !== -1;\r\n }\r\n return false;\r\n}\r\nfunction _isBlockedCookie(cookieMgrCfg, name) {\r\n if (name && cookieMgrCfg && isArray(cookieMgrCfg.blockedCookies)) {\r\n if (cookieMgrCfg.blockedCookies[_DYN_INDEX_OF /* @min:%2eindexOf */](name) !== -1) {\r\n return true;\r\n }\r\n }\r\n return _isIgnoredCookie(cookieMgrCfg, name);\r\n}\r\n/**\r\n * Helper to return the ICookieMgr from the core (if not null/undefined) or a default implementation\r\n * associated with the configuration or a legacy default.\r\n * @param core\r\n * @param config\r\n * @returns\r\n */\r\nexport function safeGetCookieMgr(core, config) {\r\n var cookieMgr;\r\n if (core) {\r\n // Always returns an instance\r\n cookieMgr = core.getCookieMgr();\r\n }\r\n else if (config) {\r\n var cookieCfg = config[_DYN_COOKIE_CFG /* @min:%2ecookieCfg */];\r\n if (cookieCfg[strConfigCookieMgr]) {\r\n cookieMgr = cookieCfg[strConfigCookieMgr];\r\n }\r\n else {\r\n cookieMgr = createCookieMgr(config);\r\n }\r\n }\r\n if (!cookieMgr) {\r\n // Get or initialize the default global (legacy) cookie manager if we couldn't find one\r\n cookieMgr = _gblCookieMgr(config, (core || {})[_DYN_LOGGER /* @min:%2elogger */]);\r\n }\r\n return cookieMgr;\r\n}\r\nexport function createCookieMgr(rootConfig, logger) {\r\n var _a;\r\n var cookieMgrConfig = _createCookieMgrConfig(rootConfig || _globalCookieConfig);\r\n var _path = cookieMgrConfig.path || \"/\";\r\n var _domain = cookieMgrConfig.domain;\r\n // Explicitly checking against false, so that setting to undefined will === true\r\n var _enabled = cookieMgrConfig[strEnabled] !== false;\r\n var cookieMgr = (_a = {\r\n isEnabled: function () {\r\n var enabled = _enabled && areCookiesSupported(logger);\r\n // Using an indirect lookup for any global cookie manager to support tree shaking for SDK's\r\n // that don't use the \"applicationinsights-core\" version of the default cookie function\r\n var gblManager = _globalCookieConfig[strConfigCookieMgr];\r\n if (enabled && gblManager && cookieMgr !== gblManager) {\r\n // Make sure the GlobalCookie Manager instance (if not this instance) is also enabled.\r\n // As the global (deprecated) functions may have been called (for backward compatibility)\r\n enabled = _isMgrEnabled(gblManager);\r\n }\r\n return enabled;\r\n }\r\n },\r\n _a[_DYN_SET_ENABLED /* @min:setEnabled */] = function (value) {\r\n // Explicitly checking against false, so that setting to undefined will === true\r\n _enabled = value !== false;\r\n },\r\n _a.set = function (name, value, maxAgeSec, domain, path) {\r\n var result = false;\r\n if (_isMgrEnabled(cookieMgr) && !_isBlockedCookie(cookieMgrConfig, name)) {\r\n var values = {};\r\n var theValue = strTrim(value || STR_EMPTY);\r\n var idx = theValue[_DYN_INDEX_OF /* @min:%2eindexOf */](\";\");\r\n if (idx !== -1) {\r\n theValue = strTrim(value[_DYN_SUBSTRING /* @min:%2esubstring */](0, idx));\r\n values = _extractParts(value[_DYN_SUBSTRING /* @min:%2esubstring */](idx + 1));\r\n }\r\n // Only update domain if not already present (isUndefined) and the value is truthy (not null, undefined or empty string)\r\n setValue(values, \"domain\", domain || _domain, isTruthy, isUndefined);\r\n if (!isNullOrUndefined(maxAgeSec)) {\r\n var _isIE = isIE();\r\n if (isUndefined(values[strExpires])) {\r\n var nowMs = dateNow();\r\n // Only add expires if not already present\r\n var expireMs = nowMs + (maxAgeSec * 1000);\r\n // Sanity check, if zero or -ve then ignore\r\n if (expireMs > 0) {\r\n var expiry = new Date();\r\n expiry.setTime(expireMs);\r\n setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);\r\n }\r\n }\r\n if (!_isIE) {\r\n // Only replace if not already present\r\n setValue(values, \"max-age\", STR_EMPTY + maxAgeSec, null, isUndefined);\r\n }\r\n }\r\n var location_1 = getLocation();\r\n if (location_1 && location_1.protocol === \"https:\") {\r\n setValue(values, \"secure\", null, null, isUndefined);\r\n // Only set same site if not also secure\r\n if (_allowUaSameSite === null) {\r\n _allowUaSameSite = !uaDisallowsSameSiteNone((getNavigator() || {})[_DYN_USER_AGENT /* @min:%2euserAgent */]);\r\n }\r\n if (_allowUaSameSite) {\r\n setValue(values, \"SameSite\", \"None\", null, isUndefined);\r\n }\r\n }\r\n setValue(values, \"path\", path || _path, null, isUndefined);\r\n var setCookieFn = cookieMgrConfig.setCookie || _setCookieValue;\r\n setCookieFn(name, _formatCookieValue(theValue, values));\r\n result = true;\r\n }\r\n return result;\r\n },\r\n _a.get = function (name) {\r\n var value = STR_EMPTY;\r\n if (_isMgrEnabled(cookieMgr) && !_isIgnoredCookie(cookieMgrConfig, name)) {\r\n value = (cookieMgrConfig.getCookie || _getCookieValue)(name);\r\n }\r\n return value;\r\n },\r\n _a.del = function (name, path) {\r\n var result = false;\r\n if (_isMgrEnabled(cookieMgr)) {\r\n // Only remove the cookie if the manager and cookie support has not been disabled\r\n result = cookieMgr.purge(name, path);\r\n }\r\n return result;\r\n },\r\n _a.purge = function (name, path) {\r\n var _a;\r\n var result = false;\r\n if (areCookiesSupported(logger)) {\r\n // Setting the expiration date in the past immediately removes the cookie\r\n var values = (_a = {},\r\n _a[\"path\"] = path ? path : \"/\",\r\n _a[strExpires] = \"Thu, 01 Jan 1970 00:00:01 GMT\",\r\n _a);\r\n if (!isIE()) {\r\n // Set max age to expire now\r\n values[\"max-age\"] = \"0\";\r\n }\r\n var delCookie = cookieMgrConfig.delCookie || _setCookieValue;\r\n delCookie(name, _formatCookieValue(STR_EMPTY, values));\r\n result = true;\r\n }\r\n return result;\r\n },\r\n _a);\r\n // Associated this cookie manager with the config\r\n cookieMgr[strConfigCookieMgr] = cookieMgr;\r\n return cookieMgr;\r\n}\r\n/*\r\n* Helper method to tell if document.cookie object is supported by the runtime\r\n*/\r\nexport function areCookiesSupported(logger) {\r\n if (_supportsCookies === null) {\r\n _supportsCookies = false;\r\n try {\r\n var doc = _doc || {};\r\n _supportsCookies = doc[strCookie] !== undefined;\r\n }\r\n catch (e) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 68 /* _eInternalMessageId.CannotAccessCookie */, \"Cannot access document.cookie - \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return _supportsCookies;\r\n}\r\nfunction _extractParts(theValue) {\r\n var values = {};\r\n if (theValue && theValue[_DYN_LENGTH /* @min:%2elength */]) {\r\n var parts = strTrim(theValue)[_DYN_SPLIT /* @min:%2esplit */](\";\");\r\n arrForEach(parts, function (thePart) {\r\n thePart = strTrim(thePart || STR_EMPTY);\r\n if (thePart) {\r\n var idx = thePart[_DYN_INDEX_OF /* @min:%2eindexOf */](\"=\");\r\n if (idx === -1) {\r\n values[thePart] = null;\r\n }\r\n else {\r\n values[strTrim(thePart[_DYN_SUBSTRING /* @min:%2esubstring */](0, idx))] = strTrim(thePart[_DYN_SUBSTRING /* @min:%2esubstring */](idx + 1));\r\n }\r\n }\r\n });\r\n }\r\n return values;\r\n}\r\nfunction _formatDate(theDate, func) {\r\n if (isFunction(theDate[func])) {\r\n return theDate[func]();\r\n }\r\n return null;\r\n}\r\nfunction _formatCookieValue(value, values) {\r\n var cookieValue = value || STR_EMPTY;\r\n objForEachKey(values, function (name, theValue) {\r\n cookieValue += \"; \" + name + (!isNullOrUndefined(theValue) ? \"=\" + theValue : STR_EMPTY);\r\n });\r\n return cookieValue;\r\n}\r\nfunction _getCookieValue(name) {\r\n var cookieValue = STR_EMPTY;\r\n if (_doc) {\r\n var theCookie = _doc[strCookie] || STR_EMPTY;\r\n if (_parsedCookieValue !== theCookie) {\r\n _cookieCache = _extractParts(theCookie);\r\n _parsedCookieValue = theCookie;\r\n }\r\n cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);\r\n }\r\n return cookieValue;\r\n}\r\nfunction _setCookieValue(name, cookieValue) {\r\n if (_doc) {\r\n _doc[strCookie] = name + \"=\" + cookieValue;\r\n }\r\n}\r\nexport function uaDisallowsSameSiteNone(userAgent) {\r\n if (!isString(userAgent)) {\r\n return false;\r\n }\r\n // Cover all iOS based browsers here. This includes:\r\n // - Safari on iOS 12 for iPhone, iPod Touch, iPad\r\n // - WkWebview on iOS 12 for iPhone, iPod Touch, iPad\r\n // - Chrome on iOS 12 for iPhone, iPod Touch, iPad\r\n // All of which are broken by SameSite=None, because they use the iOS networking stack\r\n if (strContains(userAgent, \"CPU iPhone OS 12\") || strContains(userAgent, \"iPad; CPU OS 12\")) {\r\n return true;\r\n }\r\n // Cover Mac OS X based browsers that use the Mac OS networking stack. This includes:\r\n // - Safari on Mac OS X\r\n // This does not include:\r\n // - Internal browser on Mac OS X\r\n // - Chrome on Mac OS X\r\n // - Chromium on Mac OS X\r\n // Because they do not use the Mac OS networking stack.\r\n if (strContains(userAgent, \"Macintosh; Intel Mac OS X 10_14\") && strContains(userAgent, \"Version/\") && strContains(userAgent, \"Safari\")) {\r\n return true;\r\n }\r\n // Cover Mac OS X internal browsers that use the Mac OS networking stack. This includes:\r\n // - Internal browser on Mac OS X\r\n // This does not include:\r\n // - Safari on Mac OS X\r\n // - Chrome on Mac OS X\r\n // - Chromium on Mac OS X\r\n // Because they do not use the Mac OS networking stack.\r\n if (strContains(userAgent, \"Macintosh; Intel Mac OS X 10_14\") && strEndsWith(userAgent, \"AppleWebKit/605.1.15 (KHTML, like Gecko)\")) {\r\n return true;\r\n }\r\n // Cover Chrome 50-69, because some versions are broken by SameSite=None, and none in this range require it.\r\n // Note: this covers some pre-Chromium Edge versions, but pre-Chromim Edge does not require SameSite=None, so this is fine.\r\n // Note: this regex applies to Windows, Mac OS X, and Linux, deliberately.\r\n if (strContains(userAgent, \"Chrome/5\") || strContains(userAgent, \"Chrome/6\")) {\r\n return true;\r\n }\r\n // Unreal Engine runs Chromium 59, but does not advertise as Chrome until 4.23. Treat versions of Unreal\r\n // that don't specify their Chrome version as lacking support for SameSite=None.\r\n if (strContains(userAgent, \"UnrealEngine\") && !strContains(userAgent, \"Chrome\")) {\r\n return true;\r\n }\r\n // UCBrowser < 12.13.2 ignores Set-Cookie headers with SameSite=None\r\n // NB: this rule isn't complete - you need regex to make a complete rule.\r\n // See: https://www.chromium.org/updates/same-site/incompatible-clients\r\n if (strContains(userAgent, \"UCBrowser/12\") || strContains(userAgent, \"UCBrowser/11\")) {\r\n return true;\r\n }\r\n return false;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _DYN_LENGTH } from \"../__DynamicConstants\";\r\nimport { getCrypto, getMsCrypto, isIE } from \"./EnvUtils\";\r\nimport { dateNow } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\nvar UInt32Mask = 0x100000000;\r\nvar MaxUInt32 = 0xffffffff;\r\n// MWC based Random generator (for IE)\r\nvar _mwcSeeded = false;\r\nvar _mwcW = 123456789;\r\nvar _mwcZ = 987654321;\r\n// Takes any integer\r\nfunction _mwcSeed(seedValue) {\r\n if (seedValue < 0) {\r\n // Make sure we end up with a positive number and not -ve one.\r\n seedValue >>>= 0;\r\n }\r\n _mwcW = (123456789 + seedValue) & MaxUInt32;\r\n _mwcZ = (987654321 - seedValue) & MaxUInt32;\r\n _mwcSeeded = true;\r\n}\r\nfunction _autoSeedMwc() {\r\n // Simple initialization using default Math.random() - So we inherit any entropy from the browser\r\n // and bitwise XOR with the current milliseconds\r\n try {\r\n var now = dateNow() & 0x7fffffff;\r\n _mwcSeed(((Math.random() * UInt32Mask) ^ now) + now);\r\n }\r\n catch (e) {\r\n // Don't crash if something goes wrong\r\n }\r\n}\r\n/**\r\n * Generate a random value between 0 and maxValue, max value should be limited to a 32-bit maximum.\r\n * So maxValue(16) will produce a number from 0..16 (range of 17)\r\n * @param maxValue\r\n */\r\nexport function randomValue(maxValue) {\r\n if (maxValue > 0) {\r\n return Math.floor((random32() / MaxUInt32) * (maxValue + 1)) >>> 0;\r\n }\r\n return 0;\r\n}\r\n/**\r\n * generate a random 32-bit number (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), defaults un-unsigned.\r\n * @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)\r\n */\r\nexport function random32(signed) {\r\n var value = 0;\r\n var c = getCrypto() || getMsCrypto();\r\n if (c && c.getRandomValues) {\r\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\r\n value = c.getRandomValues(new Uint32Array(1))[0] & MaxUInt32;\r\n }\r\n if (value === 0 && isIE()) {\r\n // For IE 6, 7, 8 (especially on XP) Math.random is not very random\r\n if (!_mwcSeeded) {\r\n // Set the seed for the Mwc algorithm\r\n _autoSeedMwc();\r\n }\r\n // Don't use Math.random for IE\r\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\r\n value = mwcRandom32() & MaxUInt32;\r\n }\r\n if (value === 0) {\r\n // Make sure the number is converted into the specified range (-0x80000000..0x7FFFFFFF)\r\n value = Math.floor((UInt32Mask * Math.random()) | 0);\r\n }\r\n if (!signed) {\r\n // Make sure we end up with a positive number and not -ve one.\r\n value >>>= 0;\r\n }\r\n return value;\r\n}\r\n/**\r\n * Seed the MWC random number generator with the specified seed or a random value\r\n * @param value - optional the number to used as the seed, if undefined, null or zero a random value will be chosen\r\n */\r\nexport function mwcRandomSeed(value) {\r\n if (!value) {\r\n _autoSeedMwc();\r\n }\r\n else {\r\n _mwcSeed(value);\r\n }\r\n}\r\n/**\r\n * Generate a random 32-bit number between (0x000000..0xFFFFFFFF) or (-0x80000000..0x7FFFFFFF), using MWC (Multiply with carry)\r\n * instead of Math.random() defaults to un-signed.\r\n * Used as a replacement random generator for IE to avoid issues with older IE instances.\r\n * @param signed - True to return a signed 32-bit number (-0x80000000..0x7FFFFFFF) otherwise an unsigned one (0x000000..0xFFFFFFFF)\r\n */\r\nexport function mwcRandom32(signed) {\r\n _mwcZ = (36969 * (_mwcZ & 0xFFFF) + (_mwcZ >> 16)) & MaxUInt32;\r\n _mwcW = (18000 * (_mwcW & 0xFFFF) + (_mwcW >> 16)) & MaxUInt32;\r\n var value = (((_mwcZ << 16) + (_mwcW & 0xFFFF)) >>> 0) & MaxUInt32 | 0;\r\n if (!signed) {\r\n // Make sure we end up with a positive number and not -ve one.\r\n value >>>= 0;\r\n }\r\n return value;\r\n}\r\n/**\r\n * Generate random base64 id string.\r\n * The default length is 22 which is 132-bits so almost the same as a GUID but as base64 (the previous default was 5)\r\n * @param maxLength - Optional value to specify the length of the id to be generated, defaults to 22\r\n */\r\nexport function newId(maxLength) {\r\n if (maxLength === void 0) { maxLength = 22; }\r\n var base64chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\r\n // Start with an initial random number, consuming the value in reverse byte order\r\n var number = random32() >>> 0; // Make sure it's a +ve number\r\n var chars = 0;\r\n var result = STR_EMPTY;\r\n while (result[_DYN_LENGTH /* @min:%2elength */] < maxLength) {\r\n chars++;\r\n result += base64chars.charAt(number & 0x3F);\r\n number >>>= 6; // Zero fill with right shift\r\n if (chars === 5) {\r\n // 5 base64 characters === 30 bits so we don't have enough bits for another base64 char\r\n // So add on another 30 bits and make sure it's +ve\r\n number = (((random32() << 2) & 0xFFFFFFFF) | (number & 0x03)) >>> 0;\r\n chars = 0; // We need to reset the number every 5 chars (30 bits)\r\n }\r\n }\r\n return result;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { ObjDefineProperty } from \"@microsoft/applicationinsights-shims\";\r\nimport { _DYN_NODE_TYPE } from \"../__DynamicConstants\";\r\nimport { normalizeJsName } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\nimport { newId } from \"./RandomHelper\";\r\nvar _objDefineProperty = ObjDefineProperty;\r\nvar version = '2.8.18';\r\nvar instanceName = \".\" + newId(6);\r\nvar _dataUid = 0;\r\nfunction _createAccessor(target, prop, value) {\r\n if (_objDefineProperty) {\r\n try {\r\n _objDefineProperty(target, prop, {\r\n value: value,\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return true;\r\n }\r\n catch (e) {\r\n // IE8 Defines a defineProperty on Object but it's only supported for DOM elements so it will throw\r\n // We will just ignore this here.\r\n }\r\n }\r\n return false;\r\n}\r\n// Accepts only:\r\n// - Node\r\n// - Node.ELEMENT_NODE\r\n// - Node.DOCUMENT_NODE\r\n// - Object\r\n// - Any\r\nfunction _canAcceptData(target) {\r\n return target[_DYN_NODE_TYPE /* @min:%2enodeType */] === 1 || target[_DYN_NODE_TYPE /* @min:%2enodeType */] === 9 || !(+target[_DYN_NODE_TYPE /* @min:%2enodeType */]);\r\n}\r\nfunction _getCache(data, target) {\r\n var theCache = target[data.id];\r\n if (!theCache) {\r\n theCache = {};\r\n try {\r\n if (_canAcceptData(target)) {\r\n if (!_createAccessor(target, data.id, theCache)) {\r\n // Environment doesn't support accessor, so just use direct assignment\r\n target[data.id] = theCache;\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // Not all environments allow extending all objects, so just ignore the cache in those cases\r\n }\r\n }\r\n return theCache;\r\n}\r\nexport function createUniqueNamespace(name, includeVersion) {\r\n if (includeVersion === void 0) { includeVersion = false; }\r\n return normalizeJsName(name + (_dataUid++) + (includeVersion ? \".\" + version : STR_EMPTY) + instanceName);\r\n}\r\nexport function createElmNodeData(name) {\r\n var data = {\r\n id: createUniqueNamespace(\"_aiData-\" + (name || STR_EMPTY) + \".\" + version),\r\n accept: function (target) {\r\n return _canAcceptData(target);\r\n },\r\n get: function (target, name, defValue, addDefault) {\r\n var theCache = target[data.id];\r\n if (!theCache) {\r\n if (addDefault) {\r\n // Side effect is adds the cache\r\n theCache = _getCache(data, target);\r\n theCache[normalizeJsName(name)] = defValue;\r\n }\r\n return defValue;\r\n }\r\n return theCache[normalizeJsName(name)];\r\n },\r\n kill: function (target, name) {\r\n if (target && target[name]) {\r\n try {\r\n delete target[name];\r\n }\r\n catch (e) {\r\n // Just cleaning up, so if this fails -- ignore\r\n }\r\n }\r\n }\r\n };\r\n return data;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _DYN_HANDLER, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_REPLACE, _DYN_SPLICE, _DYN_SPLIT, _DYN_TYPE } from \"../__DynamicConstants\";\r\nimport { createElmNodeData, createUniqueNamespace } from \"./DataCacheHelper\";\r\nimport { getDocument, getWindow } from \"./EnvUtils\";\r\nimport { arrForEach, arrIndexOf, isArray, objForEachKey, objKeys } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\n// Added to help with minfication\r\nvar strOnPrefix = \"on\";\r\nvar strAttachEvent = \"attachEvent\";\r\nvar strAddEventHelper = \"addEventListener\";\r\nvar strDetachEvent = \"detachEvent\";\r\nvar strRemoveEventListener = \"removeEventListener\";\r\nvar strEvents = \"events\";\r\nvar strVisibilityChangeEvt = \"visibilitychange\";\r\nvar strPageHide = \"pagehide\";\r\nvar strPageShow = \"pageshow\";\r\nvar strUnload = \"unload\";\r\nvar strBeforeUnload = \"beforeunload\";\r\nvar strPageHideNamespace = createUniqueNamespace(\"aiEvtPageHide\");\r\nvar strPageShowNamespace = createUniqueNamespace(\"aiEvtPageShow\");\r\nvar rRemoveEmptyNs = /\\.[\\.]+/g;\r\nvar rRemoveTrailingEmptyNs = /[\\.]+$/;\r\nvar _guid = 1;\r\nvar elmNodeData = createElmNodeData(\"events\");\r\nvar eventNamespace = /^([^.]*)(?:\\.(.+)|)/;\r\nfunction _normalizeNamespace(name) {\r\n if (name && name[_DYN_REPLACE /* @min:%2ereplace */]) {\r\n return name[_DYN_REPLACE /* @min:%2ereplace */](/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g, STR_EMPTY);\r\n }\r\n return name;\r\n}\r\nfunction _getEvtNamespace(eventName, evtNamespace) {\r\n var _a;\r\n if (evtNamespace) {\r\n var theNamespace_1 = STR_EMPTY;\r\n if (isArray(evtNamespace)) {\r\n theNamespace_1 = STR_EMPTY;\r\n arrForEach(evtNamespace, function (name) {\r\n name = _normalizeNamespace(name);\r\n if (name) {\r\n if (name[0] !== \".\") {\r\n name = \".\" + name;\r\n }\r\n theNamespace_1 += name;\r\n }\r\n });\r\n }\r\n else {\r\n theNamespace_1 = _normalizeNamespace(evtNamespace);\r\n }\r\n if (theNamespace_1) {\r\n if (theNamespace_1[0] !== \".\") {\r\n theNamespace_1 = \".\" + theNamespace_1;\r\n }\r\n // We may only have the namespace and not an eventName\r\n eventName = (eventName || STR_EMPTY) + theNamespace_1;\r\n }\r\n }\r\n var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);\r\n return _a = {},\r\n _a[_DYN_TYPE /* @min:type */] = parsedEvent[1],\r\n _a.ns = ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, \".\").replace(rRemoveTrailingEmptyNs, STR_EMPTY)[_DYN_SPLIT /* @min:%2esplit */](\".\").sort()).join(\".\"),\r\n _a;\r\n}\r\n/**\r\n * Get all of the registered events on the target object, this is primarily used for testing cleanup but may also be used by\r\n * applications to remove their own events\r\n * @param target - The EventTarget that has registered events\r\n * @param eventName - [Optional] The name of the event to return the registered handlers and full name (with namespaces)\r\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,\r\n * if the eventName also includes a namespace the namespace(s) are merged into a single namespace\r\n */\r\nexport function __getRegisteredEvents(target, eventName, evtNamespace) {\r\n var theEvents = [];\r\n var eventCache = elmNodeData.get(target, strEvents, {}, false);\r\n var evtName = _getEvtNamespace(eventName, evtNamespace);\r\n objForEachKey(eventCache, function (evtType, registeredEvents) {\r\n arrForEach(registeredEvents, function (value) {\r\n var _a;\r\n if (!evtName[_DYN_TYPE /* @min:%2etype */] || evtName[_DYN_TYPE /* @min:%2etype */] === value.evtName[_DYN_TYPE /* @min:%2etype */]) {\r\n if (!evtName.ns || evtName.ns === evtName.ns) {\r\n theEvents[_DYN_PUSH /* @min:%2epush */]((_a = {},\r\n _a[_DYN_NAME /* @min:name */] = value.evtName[_DYN_TYPE /* @min:%2etype */] + (value.evtName.ns ? \".\" + value.evtName.ns : STR_EMPTY),\r\n _a.handler = value[_DYN_HANDLER /* @min:%2ehandler */],\r\n _a));\r\n }\r\n }\r\n });\r\n });\r\n return theEvents;\r\n}\r\n// Exported for internal unit testing only\r\nfunction _getRegisteredEvents(target, evtName, addDefault) {\r\n if (addDefault === void 0) { addDefault = true; }\r\n var aiEvts = elmNodeData.get(target, strEvents, {}, addDefault);\r\n var registeredEvents = aiEvts[evtName];\r\n if (!registeredEvents) {\r\n registeredEvents = aiEvts[evtName] = [];\r\n }\r\n return registeredEvents;\r\n}\r\nfunction _doDetach(obj, evtName, handlerRef, useCapture) {\r\n if (obj && evtName && evtName[_DYN_TYPE /* @min:%2etype */]) {\r\n if (obj[strRemoveEventListener]) {\r\n obj[strRemoveEventListener](evtName[_DYN_TYPE /* @min:%2etype */], handlerRef, useCapture);\r\n }\r\n else if (obj[strDetachEvent]) {\r\n obj[strDetachEvent](strOnPrefix + evtName[_DYN_TYPE /* @min:%2etype */], handlerRef);\r\n }\r\n }\r\n}\r\nfunction _doAttach(obj, evtName, handlerRef, useCapture) {\r\n var result = false;\r\n if (obj && evtName && evtName[_DYN_TYPE /* @min:%2etype */] && handlerRef) {\r\n if (obj[strAddEventHelper]) {\r\n // all browsers except IE before version 9\r\n obj[strAddEventHelper](evtName[_DYN_TYPE /* @min:%2etype */], handlerRef, useCapture);\r\n result = true;\r\n }\r\n else if (obj[strAttachEvent]) {\r\n // IE before version 9\r\n obj[strAttachEvent](strOnPrefix + evtName[_DYN_TYPE /* @min:%2etype */], handlerRef);\r\n result = true;\r\n }\r\n }\r\n return result;\r\n}\r\nfunction _doUnregister(target, events, evtName, unRegFn) {\r\n var idx = events[_DYN_LENGTH /* @min:%2elength */];\r\n while (idx--) {\r\n var theEvent = events[idx];\r\n if (theEvent) {\r\n if (!evtName.ns || evtName.ns === theEvent.evtName.ns) {\r\n if (!unRegFn || unRegFn(theEvent)) {\r\n _doDetach(target, theEvent.evtName, theEvent[_DYN_HANDLER /* @min:%2ehandler */], theEvent.capture);\r\n // Remove the registered event\r\n events[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\r\n }\r\n }\r\n }\r\n }\r\n}\r\nfunction _unregisterEvents(target, evtName, unRegFn) {\r\n if (evtName[_DYN_TYPE /* @min:%2etype */]) {\r\n _doUnregister(target, _getRegisteredEvents(target, evtName[_DYN_TYPE /* @min:%2etype */]), evtName, unRegFn);\r\n }\r\n else {\r\n var eventCache = elmNodeData.get(target, strEvents, {});\r\n objForEachKey(eventCache, function (evtType, events) {\r\n _doUnregister(target, events, evtName, unRegFn);\r\n });\r\n // Cleanup\r\n if (objKeys(eventCache)[_DYN_LENGTH /* @min:%2elength */] === 0) {\r\n elmNodeData.kill(target, strEvents);\r\n }\r\n }\r\n}\r\nexport function mergeEvtNamespace(theNamespace, namespaces) {\r\n var newNamespaces;\r\n if (namespaces) {\r\n if (isArray(namespaces)) {\r\n newNamespaces = [theNamespace].concat(namespaces);\r\n }\r\n else {\r\n newNamespaces = [theNamespace, namespaces];\r\n }\r\n // resort the namespaces so they are always in order\r\n newNamespaces = (_getEvtNamespace(\"xx\", newNamespaces).ns)[_DYN_SPLIT /* @min:%2esplit */](\".\");\r\n }\r\n else {\r\n newNamespaces = theNamespace;\r\n }\r\n return newNamespaces;\r\n}\r\n/**\r\n * Binds the specified function to an event, so that the function gets called whenever the event fires on the object\r\n * @param obj Object to add the event too.\r\n * @param eventName String that specifies any of the standard DHTML Events without \"on\" prefix, if may also include an optional (dot \".\" prefixed)\r\n * namespaces \"click\" \"click.mynamespace\" in addition to specific namespaces.\r\n * @param handlerRef Pointer that specifies the function to call when event fires\r\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,\r\n * if the eventName also includes a namespace the namespace(s) are merged into a single namespace\r\n * @param useCapture [Optional] Defaults to false\r\n * @returns True if the function was bound successfully to the event, otherwise false\r\n */\r\nexport function eventOn(target, eventName, handlerRef, evtNamespace, useCapture) {\r\n var _a;\r\n if (useCapture === void 0) { useCapture = false; }\r\n var result = false;\r\n if (target) {\r\n try {\r\n var evtName = _getEvtNamespace(eventName, evtNamespace);\r\n result = _doAttach(target, evtName, handlerRef, useCapture);\r\n if (result && elmNodeData.accept(target)) {\r\n var registeredEvent = (_a = {\r\n guid: _guid++,\r\n evtName: evtName\r\n },\r\n _a[_DYN_HANDLER /* @min:handler */] = handlerRef,\r\n _a.capture = useCapture,\r\n _a);\r\n _getRegisteredEvents(target, evtName.type)[_DYN_PUSH /* @min:%2epush */](registeredEvent);\r\n }\r\n }\r\n catch (e) {\r\n // Just Ignore any error so that we don't break any execution path\r\n }\r\n }\r\n return result;\r\n}\r\n/**\r\n * Removes an event handler for the specified event\r\n * @param Object to remove the event from\r\n * @param eventName {string} - The name of the event, with optional namespaces or just the namespaces,\r\n * such as \"click\", \"click.mynamespace\" or \".mynamespace\"\r\n * @param handlerRef {any} - The callback function that needs to be removed from the given event, when using a\r\n * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers\r\n * otherwise this will only remove events with this specific handler.\r\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,\r\n * if the eventName also includes a namespace the namespace(s) are merged into a single namespace\r\n * @param useCapture [Optional] Defaults to false\r\n */\r\nexport function eventOff(target, eventName, handlerRef, evtNamespace, useCapture) {\r\n if (useCapture === void 0) { useCapture = false; }\r\n if (target) {\r\n try {\r\n var evtName_1 = _getEvtNamespace(eventName, evtNamespace);\r\n var found_1 = false;\r\n _unregisterEvents(target, evtName_1, function (regEvent) {\r\n if ((evtName_1.ns && !handlerRef) || regEvent[_DYN_HANDLER /* @min:%2ehandler */] === handlerRef) {\r\n found_1 = true;\r\n return true;\r\n }\r\n return false;\r\n });\r\n if (!found_1) {\r\n // fallback to try and remove as requested\r\n _doDetach(target, evtName_1, handlerRef, useCapture);\r\n }\r\n }\r\n catch (e) {\r\n // Just Ignore any error so that we don't break any execution path\r\n }\r\n }\r\n}\r\n/**\r\n * Binds the specified function to an event, so that the function gets called whenever the event fires on the object\r\n * @param obj Object to add the event too.\r\n * @param eventNameWithoutOn String that specifies any of the standard DHTML Events without \"on\" prefix and optional (dot \".\" prefixed) namespaces \"click\" \"click.mynamespace\".\r\n * @param handlerRef Pointer that specifies the function to call when event fires\r\n * @param useCapture [Optional] Defaults to false\r\n * @returns True if the function was bound successfully to the event, otherwise false\r\n */\r\nexport function attachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {\r\n if (useCapture === void 0) { useCapture = false; }\r\n return eventOn(obj, eventNameWithoutOn, handlerRef, null, useCapture);\r\n}\r\n/**\r\n * Removes an event handler for the specified event\r\n * @param Object to remove the event from\r\n * @param eventNameWithoutOn {string} - The name of the event, with optional namespaces or just the namespaces,\r\n * such as \"click\", \"click.mynamespace\" or \".mynamespace\"\r\n * @param handlerRef {any} - The callback function that needs to be removed from the given event, when using a\r\n * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers\r\n * otherwise this will only remove events with this specific handler.\r\n * @param useCapture [Optional] Defaults to false\r\n */\r\nexport function detachEvent(obj, eventNameWithoutOn, handlerRef, useCapture) {\r\n if (useCapture === void 0) { useCapture = false; }\r\n eventOff(obj, eventNameWithoutOn, handlerRef, null, useCapture);\r\n}\r\n/**\r\n * Trys to add an event handler for the specified event to the window, body and document\r\n * @param eventName {string} - The name of the event\r\n * @param callback {any} - The callback function that needs to be executed for the given event\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @return {boolean} - true if the handler was successfully added\r\n */\r\nexport function addEventHandler(eventName, callback, evtNamespace) {\r\n var result = false;\r\n var w = getWindow();\r\n if (w) {\r\n result = eventOn(w, eventName, callback, evtNamespace);\r\n result = eventOn(w[\"body\"], eventName, callback, evtNamespace) || result;\r\n }\r\n var doc = getDocument();\r\n if (doc) {\r\n result = eventOn(doc, eventName, callback, evtNamespace) || result;\r\n }\r\n return result;\r\n}\r\n/**\r\n * Trys to remove event handler(s) for the specified event/namespace to the window, body and document\r\n * @param eventName {string} - The name of the event, with optional namespaces or just the namespaces,\r\n * such as \"click\", \"click.mynamespace\" or \".mynamespace\"\r\n * @param callback {any} - - The callback function that needs to be removed from the given event, when using a\r\n * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers\r\n * otherwise this will only remove events with this specific handler.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n */\r\nexport function removeEventHandler(eventName, callback, evtNamespace) {\r\n var w = getWindow();\r\n if (w) {\r\n eventOff(w, eventName, callback, evtNamespace);\r\n eventOff(w[\"body\"], eventName, callback, evtNamespace);\r\n }\r\n var doc = getDocument();\r\n if (doc) {\r\n eventOff(doc, eventName, callback, evtNamespace);\r\n }\r\n}\r\n/**\r\n * Bind the listener to the array of events\r\n * @param events An string array of event names to bind the listener to\r\n * @param listener The event callback to call when the event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\r\nfunction _addEventListeners(events, listener, excludeEvents, evtNamespace) {\r\n var added = false;\r\n if (listener && events && events[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n arrForEach(events, function (name) {\r\n if (name) {\r\n if (!excludeEvents || arrIndexOf(excludeEvents, name) === -1) {\r\n added = addEventHandler(name, listener, evtNamespace) || added;\r\n }\r\n }\r\n });\r\n }\r\n return added;\r\n}\r\n/**\r\n * Bind the listener to the array of events\r\n * @param events An string array of event names to bind the listener to\r\n * @param listener The event callback to call when the event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\r\nexport function addEventListeners(events, listener, excludeEvents, evtNamespace) {\r\n var added = false;\r\n if (listener && events && isArray(events)) {\r\n added = _addEventListeners(events, listener, excludeEvents, evtNamespace);\r\n if (!added && excludeEvents && excludeEvents[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n // Failed to add any listeners and we excluded some, so just attempt to add the excluded events\r\n added = _addEventListeners(events, listener, null, evtNamespace);\r\n }\r\n }\r\n return added;\r\n}\r\n/**\r\n * Remove the listener from the array of events\r\n * @param events An string array of event names to bind the listener to\r\n * @param listener The event callback to call when the event is triggered\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n */\r\nexport function removeEventListeners(events, listener, evtNamespace) {\r\n if (events && isArray(events)) {\r\n arrForEach(events, function (name) {\r\n if (name) {\r\n removeEventHandler(name, listener, evtNamespace);\r\n }\r\n });\r\n }\r\n}\r\n/**\r\n * Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,\r\n * this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden\r\n * it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is\r\n * just navigating to a different Tab and may come back (without unloading the page). As such you may also\r\n * need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.\r\n * @param listener - The event callback to call when a page unload event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.\r\n * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\r\nexport function addPageUnloadEventListener(listener, excludeEvents, evtNamespace) {\r\n // Hook the unload event for the document, window and body to ensure that the client events are flushed to the server\r\n // As just hooking the window does not always fire (on chrome) for page navigation's.\r\n return addEventListeners([strBeforeUnload, strUnload, strPageHide], listener, excludeEvents, evtNamespace);\r\n}\r\n/**\r\n * Remove any matching 'beforeunload', 'unload' and 'pagehide' events that may have been added via addEventListener,\r\n * addEventListeners, addPageUnloadEventListener or addPageHideEventListener.\r\n * @param listener - The specific event callback to to be removed\r\n * @param evtNamespace - [Optional] Namespace(s) uniquely identified and removed based on this namespace.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\r\nexport function removePageUnloadEventListener(listener, evtNamespace) {\r\n removeEventListeners([strBeforeUnload, strUnload, strPageHide], listener, evtNamespace);\r\n}\r\n/**\r\n * Listen to the pagehide and visibility changing to 'hidden' events, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call\r\n * removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The event callback to call when a page hide event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional] A Namespace to append to the event listeners so they can be uniquely identified and removed\r\n * based on this namespace. This call also adds an additional unique \"pageshow\" namespace to the events\r\n * so that only the matching \"removePageHideEventListener\" can remove these events.\r\n * Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\r\nexport function addPageHideEventListener(listener, excludeEvents, evtNamespace) {\r\n function _handlePageVisibility(evt) {\r\n var doc = getDocument();\r\n if (listener && doc && doc.visibilityState === \"hidden\") {\r\n listener(evt);\r\n }\r\n }\r\n // add the unique page show namespace to any provided namespace so we can only remove the ones added by \"pagehide\"\r\n var newNamespaces = mergeEvtNamespace(strPageHideNamespace, evtNamespace);\r\n var pageUnloadAdded = _addEventListeners([strPageHide], listener, excludeEvents, newNamespaces);\r\n if (!excludeEvents || arrIndexOf(excludeEvents, strVisibilityChangeEvt) === -1) {\r\n pageUnloadAdded = _addEventListeners([strVisibilityChangeEvt], _handlePageVisibility, excludeEvents, newNamespaces) || pageUnloadAdded;\r\n }\r\n if (!pageUnloadAdded && excludeEvents) {\r\n // Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything\r\n pageUnloadAdded = addPageHideEventListener(listener, null, evtNamespace);\r\n }\r\n return pageUnloadAdded;\r\n}\r\n/**\r\n * Removes the pageHide event listeners added by addPageHideEventListener, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageHideEventListener\r\n * as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')\r\n * @param evtNamespace - The unique namespace used when calling addPageShowEventListener\r\n */\r\nexport function removePageHideEventListener(listener, evtNamespace) {\r\n // add the unique page show namespace to any provided namespace so we only remove the ones added by \"pagehide\"\r\n var newNamespaces = mergeEvtNamespace(strPageHideNamespace, evtNamespace);\r\n removeEventListeners([strPageHide], listener, newNamespaces);\r\n removeEventListeners([strVisibilityChangeEvt], null, newNamespaces);\r\n}\r\n/**\r\n * Listen to the pageshow and visibility changing to 'visible' events, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call\r\n * removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The event callback to call when a page is show event is triggered\r\n * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.\r\n * @param evtNamespace - [Optional/Recommended] A Namespace to append to the event listeners so they can be uniquely\r\n * identified and removed based on this namespace. This call also adds an additional unique \"pageshow\" namespace to the events\r\n * so that only the matching \"removePageShowEventListener\" can remove these events.\r\n * @returns true - when at least one of the events was registered otherwise false\r\n */\r\nexport function addPageShowEventListener(listener, excludeEvents, evtNamespace) {\r\n function _handlePageVisibility(evt) {\r\n var doc = getDocument();\r\n if (listener && doc && doc.visibilityState === \"visible\") {\r\n listener(evt);\r\n }\r\n }\r\n // add the unique page show namespace to any provided namespace so we can only remove the ones added by \"pageshow\"\r\n var newNamespaces = mergeEvtNamespace(strPageShowNamespace, evtNamespace);\r\n var pageShowAdded = _addEventListeners([strPageShow], listener, excludeEvents, newNamespaces);\r\n pageShowAdded = _addEventListeners([strVisibilityChangeEvt], _handlePageVisibility, excludeEvents, newNamespaces) || pageShowAdded;\r\n if (!pageShowAdded && excludeEvents) {\r\n // Failed to add any listeners and we where requested to exclude some, so just call again without excluding anything\r\n pageShowAdded = addPageShowEventListener(listener, null, evtNamespace);\r\n }\r\n return pageShowAdded;\r\n}\r\n/**\r\n * Removes the pageShow event listeners added by addPageShowEventListener, because the 'visibilitychange' uses\r\n * an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageShowEventListener\r\n * as the remove ignores the listener argument for the 'visibilitychange' event.\r\n * @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')\r\n * @param evtNamespace - The unique namespace used when calling addPageShowEventListener\r\n */\r\nexport function removePageShowEventListener(listener, evtNamespace) {\r\n // add the unique page show namespace to any provided namespace so we only remove the ones added by \"pageshow\"\r\n var newNamespaces = mergeEvtNamespace(strPageShowNamespace, evtNamespace);\r\n removeEventListeners([strPageShow], listener, newNamespaces);\r\n removeEventListeners([strVisibilityChangeEvt], null, newNamespaces);\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport { objCreateFn, strShimUndefined } from \"@microsoft/applicationinsights-shims\";\r\nimport { _DYN_LENGTH, _DYN_PUSH, _DYN_SET_ENABLED, _DYN_SUBSTR, _DYN_SUBSTRING } from \"../__DynamicConstants\";\r\nimport { _gblCookieMgr } from \"./CookieMgr\";\r\nimport { getPerformance, isIE } from \"./EnvUtils\";\r\nimport { addEventHandler, attachEvent, detachEvent } from \"./EventHelpers\";\r\nimport { arrForEach, arrIndexOf, arrMap, arrReduce, dateNow, hasOwnProperty, isArray, isBoolean, isDate, isError, isFunction, isNullOrUndefined, isNumber, isObject, isString, isTypeof, isUndefined, objDefineAccessors, objKeys, strTrim, toISOString } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\nimport { mwcRandom32, mwcRandomSeed, newId, random32, randomValue } from \"./RandomHelper\";\r\nvar _cookieMgrs = null;\r\nvar _canUseCookies; // legacy supported config\r\n// Added to help with minfication\r\nexport var Undefined = strShimUndefined;\r\nexport function newGuid() {\r\n var uuid = generateW3CId();\r\n return uuid[_DYN_SUBSTRING /* @min:%2esubstring */](0, 8) + \"-\" + uuid[_DYN_SUBSTRING /* @min:%2esubstring */](8, 12) + \"-\" + uuid[_DYN_SUBSTRING /* @min:%2esubstring */](12, 16) + \"-\" + uuid[_DYN_SUBSTRING /* @min:%2esubstring */](16, 20) + \"-\" + uuid[_DYN_SUBSTRING /* @min:%2esubstring */](20);\r\n}\r\n/**\r\n * Return the current value of the Performance Api now() function (if available) and fallback to dateNow() if it is unavailable (IE9 or less)\r\n * https://caniuse.com/#search=performance.now\r\n */\r\nexport function perfNow() {\r\n var perf = getPerformance();\r\n if (perf && perf.now) {\r\n return perf.now();\r\n }\r\n return dateNow();\r\n}\r\n/**\r\n * The strEndsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.\r\n * @param value - The value to check whether it ends with the search value.\r\n * @param search - The characters to be searched for at the end of the value.\r\n * @returns true if the given search value is found at the end of the string, otherwise false.\r\n */\r\nexport function strEndsWith(value, search) {\r\n if (value && search) {\r\n var len = value[_DYN_LENGTH /* @min:%2elength */];\r\n var start = len - search[_DYN_LENGTH /* @min:%2elength */];\r\n return value[_DYN_SUBSTRING /* @min:%2esubstring */](start >= 0 ? start : 0, len) === search;\r\n }\r\n return false;\r\n}\r\n/**\r\n * generate W3C trace id\r\n */\r\nexport function generateW3CId() {\r\n var hexValues = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\r\n // rfc4122 version 4 UUID without dashes and with lowercase letters\r\n var oct = STR_EMPTY, tmp;\r\n for (var a = 0; a < 4; a++) {\r\n tmp = random32();\r\n oct +=\r\n hexValues[tmp & 0xF] +\r\n hexValues[tmp >> 4 & 0xF] +\r\n hexValues[tmp >> 8 & 0xF] +\r\n hexValues[tmp >> 12 & 0xF] +\r\n hexValues[tmp >> 16 & 0xF] +\r\n hexValues[tmp >> 20 & 0xF] +\r\n hexValues[tmp >> 24 & 0xF] +\r\n hexValues[tmp >> 28 & 0xF];\r\n }\r\n // \"Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively\"\r\n var clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];\r\n return oct[_DYN_SUBSTR /* @min:%2esubstr */](0, 8) + oct[_DYN_SUBSTR /* @min:%2esubstr */](9, 4) + \"4\" + oct[_DYN_SUBSTR /* @min:%2esubstr */](13, 3) + clockSequenceHi + oct[_DYN_SUBSTR /* @min:%2esubstr */](16, 3) + oct[_DYN_SUBSTR /* @min:%2esubstr */](19, 12);\r\n}\r\n/**\r\n * Provides a collection of utility functions, included for backward compatibility with previous releases.\r\n * @deprecated Marking this instance as deprecated in favor of direct usage of the helper functions\r\n * as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items\r\n * in your resulting code.\r\n */\r\nexport var CoreUtils = {\r\n _canUseCookies: undefined,\r\n isTypeof: isTypeof,\r\n isUndefined: isUndefined,\r\n isNullOrUndefined: isNullOrUndefined,\r\n hasOwnProperty: hasOwnProperty,\r\n isFunction: isFunction,\r\n isObject: isObject,\r\n isDate: isDate,\r\n isArray: isArray,\r\n isError: isError,\r\n isString: isString,\r\n isNumber: isNumber,\r\n isBoolean: isBoolean,\r\n toISOString: toISOString,\r\n arrForEach: arrForEach,\r\n arrIndexOf: arrIndexOf,\r\n arrMap: arrMap,\r\n arrReduce: arrReduce,\r\n strTrim: strTrim,\r\n objCreate: objCreateFn,\r\n objKeys: objKeys,\r\n objDefineAccessors: objDefineAccessors,\r\n addEventHandler: addEventHandler,\r\n dateNow: dateNow,\r\n isIE: isIE,\r\n disableCookies: disableCookies,\r\n newGuid: newGuid,\r\n perfNow: perfNow,\r\n newId: newId,\r\n randomValue: randomValue,\r\n random32: random32,\r\n mwcRandomSeed: mwcRandomSeed,\r\n mwcRandom32: mwcRandom32,\r\n generateW3CId: generateW3CId\r\n};\r\nvar GuidRegex = /[xy]/g;\r\nexport var EventHelper = {\r\n Attach: attachEvent,\r\n AttachEvent: attachEvent,\r\n Detach: detachEvent,\r\n DetachEvent: detachEvent\r\n};\r\n/**\r\n * Helper to support backward compatibility for users that use the legacy cookie handling functions and the use the internal\r\n * CoreUtils._canUseCookies global flag to enable/disable cookies usage.\r\n * Note: This has the following deliberate side-effects\r\n * - Creates the global (legacy) cookie manager if it does not already exist\r\n * - Attempts to add \"listeners\" to the CoreUtils._canUseCookies property to support the legacy usage\r\n * @param config\r\n * @param logger\r\n * @returns\r\n */\r\nexport function _legacyCookieMgr(config, logger) {\r\n var cookieMgr = _gblCookieMgr(config, logger);\r\n var legacyCanUseCookies = CoreUtils._canUseCookies;\r\n if (_cookieMgrs === null) {\r\n _cookieMgrs = [];\r\n _canUseCookies = legacyCanUseCookies;\r\n // Dynamically create get/set property accessors for backward compatibility for enabling / disabling cookies\r\n // this WILL NOT work for ES3 browsers (< IE8)\r\n objDefineAccessors(CoreUtils, \"_canUseCookies\", function () {\r\n return _canUseCookies;\r\n }, function (value) {\r\n _canUseCookies = value;\r\n arrForEach(_cookieMgrs, function (mgr) {\r\n mgr[_DYN_SET_ENABLED /* @min:%2esetEnabled */](value);\r\n });\r\n });\r\n }\r\n if (arrIndexOf(_cookieMgrs, cookieMgr) === -1) {\r\n _cookieMgrs[_DYN_PUSH /* @min:%2epush */](cookieMgr);\r\n }\r\n if (isBoolean(legacyCanUseCookies)) {\r\n cookieMgr[_DYN_SET_ENABLED /* @min:%2esetEnabled */](legacyCanUseCookies);\r\n }\r\n if (isBoolean(_canUseCookies)) {\r\n cookieMgr[_DYN_SET_ENABLED /* @min:%2esetEnabled */](_canUseCookies);\r\n }\r\n return cookieMgr;\r\n}\r\n/**\r\n * @deprecated - Use the core.getCookieMgr().disable()\r\n * Force the SDK not to store and read any data from cookies.\r\n */\r\nexport function disableCookies() {\r\n _legacyCookieMgr()[_DYN_SET_ENABLED /* @min:%2esetEnabled */](false);\r\n}\r\n/**\r\n * @deprecated - Use the core.getCookieMgr().isEnabled()\r\n * Helper method to tell if document.cookie object is available and whether it can be used.\r\n */\r\nexport function canUseCookies(logger) {\r\n return _legacyCookieMgr(null, logger).isEnabled();\r\n}\r\n/**\r\n * @deprecated - Use the core.getCookieMgr().get()\r\n * helper method to access userId and sessionId cookie\r\n */\r\nexport function getCookie(logger, name) {\r\n return _legacyCookieMgr(null, logger).get(name);\r\n}\r\n/**\r\n * @deprecated - Use the core.getCookieMgr().set()\r\n * helper method to set userId and sessionId cookie\r\n */\r\nexport function setCookie(logger, name, value, domain) {\r\n _legacyCookieMgr(null, logger).set(name, value, null, domain);\r\n}\r\n/**\r\n * @deprecated - Use the core.getCookieMgr().del()\r\n * Deletes a cookie by setting it's expiration time in the past.\r\n * @param name - The name of the cookie to delete.\r\n */\r\nexport function deleteCookie(logger, name) {\r\n return _legacyCookieMgr(null, logger).del(name);\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { _DYN_INDEX_OF, _DYN_LENGTH, _DYN_SPAN_ID, _DYN_SPLIT, _DYN_SUBSTR, _DYN_TO_LOWER_CASE, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN_VERSION } from \"../__DynamicConstants\";\r\nimport { generateW3CId } from \"./CoreUtils\";\r\nimport { findMetaTag, findNamedServerTiming } from \"./EnvUtils\";\r\nimport { isArray, isString, strTrim } from \"./HelperFuncs\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\n// using {0,16} for leading and trailing whitespace just to constrain the possible runtime of a random string\r\nvar TRACE_PARENT_REGEX = /^([\\da-f]{2})-([\\da-f]{32})-([\\da-f]{16})-([\\da-f]{2})(-[^\\s]{1,64})?$/i;\r\nvar DEFAULT_VERSION = \"00\";\r\nvar INVALID_VERSION = \"ff\";\r\nvar INVALID_TRACE_ID = \"00000000000000000000000000000000\";\r\nvar INVALID_SPAN_ID = \"0000000000000000\";\r\nvar SAMPLED_FLAG = 0x01;\r\nfunction _isValid(value, len, invalidValue) {\r\n if (value && value[_DYN_LENGTH /* @min:%2elength */] === len && value !== invalidValue) {\r\n return !!value.match(/^[\\da-f]*$/i);\r\n }\r\n return false;\r\n}\r\nfunction _formatValue(value, len, defValue) {\r\n if (_isValid(value, len)) {\r\n return value;\r\n }\r\n return defValue;\r\n}\r\nfunction _formatFlags(value) {\r\n if (isNaN(value) || value < 0 || value > 255) {\r\n value = 0x01;\r\n }\r\n var result = value.toString(16);\r\n while (result[_DYN_LENGTH /* @min:%2elength */] < 2) {\r\n result = \"0\" + result;\r\n }\r\n return result;\r\n}\r\n/**\r\n * Create a new ITraceParent instance using the provided values.\r\n * @param traceId - The traceId to use, when invalid a new random W3C id will be generated.\r\n * @param spanId - The parent/span id to use, a new random value will be generated if it is invalid.\r\n * @param flags - The traceFlags to use, defaults to zero (0) if not supplied or invalid\r\n * @param version - The version to used, defaults to version \"01\" if not supplied or invalid.\r\n * @returns\r\n */\r\nexport function createTraceParent(traceId, spanId, flags, version) {\r\n var _a;\r\n return _a = {},\r\n _a[_DYN_VERSION /* @min:version */] = _isValid(version, 2, INVALID_VERSION) ? version : DEFAULT_VERSION,\r\n _a[_DYN_TRACE_ID /* @min:traceId */] = isValidTraceId(traceId) ? traceId : generateW3CId(),\r\n _a.spanId = isValidSpanId(spanId) ? spanId : generateW3CId()[_DYN_SUBSTR /* @min:%2esubstr */](0, 16),\r\n _a.traceFlags = flags >= 0 && flags <= 0xFF ? flags : 1,\r\n _a;\r\n}\r\n/**\r\n * Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)\r\n *\r\n * @param value - The value to be parsed\r\n * @param selectIdx - If the found value is comma separated which is the preferred entry to select, defaults to the first\r\n * @returns\r\n */\r\nexport function parseTraceParent(value, selectIdx) {\r\n var _a;\r\n if (!value) {\r\n // Don't pass a null/undefined or empty string\r\n return null;\r\n }\r\n if (isArray(value)) {\r\n // The value may have been encoded on the page into an array so handle this automatically\r\n value = value[0] || \"\";\r\n }\r\n if (!value || !isString(value) || value[_DYN_LENGTH /* @min:%2elength */] > 8192) {\r\n // limit potential processing based on total length\r\n return null;\r\n }\r\n if (value[_DYN_INDEX_OF /* @min:%2eindexOf */](\",\") !== -1) {\r\n var values = value[_DYN_SPLIT /* @min:%2esplit */](\",\");\r\n value = values[selectIdx > 0 && values[_DYN_LENGTH /* @min:%2elength */] > selectIdx ? selectIdx : 0];\r\n }\r\n // See https://www.w3.org/TR/trace-context/#versioning-of-traceparent\r\n var match = TRACE_PARENT_REGEX.exec(strTrim(value));\r\n if (!match || // No match\r\n match[1] === INVALID_VERSION || // version ff is forbidden\r\n match[2] === INVALID_TRACE_ID || // All zeros is considered to be invalid\r\n match[3] === INVALID_SPAN_ID) { // All zeros is considered to be invalid\r\n return null;\r\n }\r\n return _a = {\r\n version: (match[1] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](),\r\n traceId: (match[2] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](),\r\n spanId: (match[3] || STR_EMPTY)[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]()\r\n },\r\n _a[_DYN_TRACE_FLAGS /* @min:traceFlags */] = parseInt(match[4], 16),\r\n _a;\r\n}\r\n/**\r\n * Is the provided W3c Trace Id a valid string representation, it must be a 32-character string\r\n * of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736.\r\n * If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.\r\n * @param value - The W3c trace Id to be validated\r\n * @returns true if valid otherwise false\r\n */\r\nexport function isValidTraceId(value) {\r\n return _isValid(value, 32, INVALID_TRACE_ID);\r\n}\r\n/**\r\n * Is the provided W3c span id (aka. parent id) a valid string representation, it must be a 16-character\r\n * string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.\r\n * If all characters are zero (0000000000000000) this is considered an invalid value.\r\n * @param value - The W3c span id to be validated\r\n * @returns true if valid otherwise false\r\n */\r\nexport function isValidSpanId(value) {\r\n return _isValid(value, 16, INVALID_SPAN_ID);\r\n}\r\n/**\r\n * Validates that the provided ITraceParent instance conforms to the currently supported specifications\r\n * @param value\r\n * @returns\r\n */\r\nexport function isValidTraceParent(value) {\r\n if (!value ||\r\n !_isValid(value[_DYN_VERSION /* @min:%2eversion */], 2, INVALID_VERSION) ||\r\n !_isValid(value[_DYN_TRACE_ID /* @min:%2etraceId */], 32, INVALID_TRACE_ID) ||\r\n !_isValid(value[_DYN_SPAN_ID /* @min:%2espanId */], 16, INVALID_SPAN_ID) ||\r\n !_isValid(_formatFlags(value[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */]), 2)) {\r\n // Each known field must contain a valid value\r\n return false;\r\n }\r\n return true;\r\n}\r\n/**\r\n * Is the parsed traceParent indicating that the trace is currently sampled.\r\n * @param value - The parsed traceParent value\r\n * @returns\r\n */\r\nexport function isSampledFlag(value) {\r\n if (isValidTraceParent(value)) {\r\n return (value[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] & SAMPLED_FLAG) === SAMPLED_FLAG;\r\n }\r\n return false;\r\n}\r\n/**\r\n * Format the ITraceParent value as a string using the supported and know version formats.\r\n * So even if the passed traceParent is a later version the string value returned from this\r\n * function will convert it to only the known version formats.\r\n * This currently only supports version \"00\" and invalid \"ff\"\r\n * @param value - The parsed traceParent value\r\n * @returns\r\n */\r\nexport function formatTraceParent(value) {\r\n if (value) {\r\n // Special Note: This only supports formatting as version 00, future versions should encode any known supported version\r\n // So parsing a future version will populate the correct version value but reformatting will reduce it to version 00.\r\n var flags = _formatFlags(value[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */]);\r\n if (!_isValid(flags, 2)) {\r\n flags = \"01\";\r\n }\r\n var version = value[_DYN_VERSION /* @min:%2eversion */] || DEFAULT_VERSION;\r\n if (version !== \"00\" && version !== \"ff\") {\r\n // Reduce version to \"00\"\r\n version = DEFAULT_VERSION;\r\n }\r\n // Format as version 00\r\n return \"\".concat(version.toLowerCase(), \"-\").concat(_formatValue(value.traceId, 32, INVALID_TRACE_ID).toLowerCase(), \"-\").concat(_formatValue(value.spanId, 16, INVALID_SPAN_ID).toLowerCase(), \"-\").concat(flags.toLowerCase());\r\n }\r\n return \"\";\r\n}\r\n/**\r\n * Helper function to fetch the passed traceparent from the page, looking for it as a meta-tag or a Server-Timing header.\r\n * @param selectIdx - If the found value is comma separated which is the preferred entry to select, defaults to the first\r\n * @returns\r\n */\r\nexport function findW3cTraceParent(selectIdx) {\r\n var name = \"traceparent\";\r\n var traceParent = parseTraceParent(findMetaTag(name), selectIdx);\r\n if (!traceParent) {\r\n traceParent = parseTraceParent(findNamedServerTiming(name), selectIdx);\r\n }\r\n return traceParent;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { getDocument, isFunction } from \"@microsoft/applicationinsights-core-js\";\r\nexport function createDomEvent(eventName) {\r\n var event = null;\r\n if (isFunction(Event)) { // Use Event constructor when available\r\n event = new Event(eventName);\r\n }\r\n else { // Event has no constructor in IE\r\n var doc = getDocument();\r\n if (doc && doc.createEvent) {\r\n event = doc.createEvent(\"Event\");\r\n event.initEvent(eventName, true, true);\r\n }\r\n }\r\n return event;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { createValueMap } from \"@microsoft/applicationinsights-core-js\";\r\nexport var RequestHeaders = createValueMap({\r\n requestContextHeader: [0 /* eRequestHeaders.requestContextHeader */, \"Request-Context\"],\r\n requestContextTargetKey: [1 /* eRequestHeaders.requestContextTargetKey */, \"appId\"],\r\n requestContextAppIdFormat: [2 /* eRequestHeaders.requestContextAppIdFormat */, \"appId=cid-v1:\"],\r\n requestIdHeader: [3 /* eRequestHeaders.requestIdHeader */, \"Request-Id\"],\r\n traceParentHeader: [4 /* eRequestHeaders.traceParentHeader */, \"traceparent\"],\r\n traceStateHeader: [5 /* eRequestHeaders.traceStateHeader */, \"tracestate\"],\r\n sdkContextHeader: [6 /* eRequestHeaders.sdkContextHeader */, \"Sdk-Context\"],\r\n sdkContextHeaderAppIdRequest: [7 /* eRequestHeaders.sdkContextHeaderAppIdRequest */, \"appId\"],\r\n requestContextHeaderLowerCase: [8 /* eRequestHeaders.requestContextHeaderLowerCase */, \"request-context\"]\r\n});\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { getDocument, isString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_LENGTH, _DYN_PATHNAME, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\r\nvar _document = getDocument() || {};\r\nvar _htmlAnchorIdx = 0;\r\n// Use an array of temporary values as it's possible for multiple calls to parseUrl() will be called with different URLs\r\n// Using a cache size of 5 for now as it current depth usage is at least 2, so adding a minor buffer to handle future updates\r\nvar _htmlAnchorElement = [null, null, null, null, null];\r\nexport function urlParseUrl(url) {\r\n var anchorIdx = _htmlAnchorIdx;\r\n var anchorCache = _htmlAnchorElement;\r\n var tempAnchor = anchorCache[anchorIdx];\r\n if (!_document.createElement) {\r\n // Always create the temp instance if createElement is not available\r\n tempAnchor = { host: urlParseHost(url, true) };\r\n }\r\n else if (!anchorCache[anchorIdx]) {\r\n // Create and cache the unattached anchor instance\r\n tempAnchor = anchorCache[anchorIdx] = _document.createElement(\"a\");\r\n }\r\n tempAnchor.href = url;\r\n // Move the cache index forward\r\n anchorIdx++;\r\n if (anchorIdx >= anchorCache[_DYN_LENGTH /* @min:%2elength */]) {\r\n anchorIdx = 0;\r\n }\r\n _htmlAnchorIdx = anchorIdx;\r\n return tempAnchor;\r\n}\r\nexport function urlGetAbsoluteUrl(url) {\r\n var result;\r\n var a = urlParseUrl(url);\r\n if (a) {\r\n result = a.href;\r\n }\r\n return result;\r\n}\r\nexport function urlGetPathName(url) {\r\n var result;\r\n var a = urlParseUrl(url);\r\n if (a) {\r\n result = a[_DYN_PATHNAME /* @min:%2epathname */];\r\n }\r\n return result;\r\n}\r\nexport function urlGetCompleteUrl(method, absoluteUrl) {\r\n if (method) {\r\n return method.toUpperCase() + \" \" + absoluteUrl;\r\n }\r\n return absoluteUrl;\r\n}\r\n// Fallback method to grab host from url if document.createElement method is not available\r\nexport function urlParseHost(url, inclPort) {\r\n var fullHost = urlParseFullHost(url, inclPort) || \"\";\r\n if (fullHost) {\r\n var match = fullHost.match(/(www\\d{0,5}\\.)?([^\\/:]{1,256})(:\\d{1,20})?/i);\r\n if (match != null && match[_DYN_LENGTH /* @min:%2elength */] > 3 && isString(match[2]) && match[2][_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n return match[2] + (match[3] || \"\");\r\n }\r\n }\r\n return fullHost;\r\n}\r\nexport function urlParseFullHost(url, inclPort) {\r\n var result = null;\r\n if (url) {\r\n var match = url.match(/(\\w{1,150}):\\/\\/([^\\/:]{1,256})(:\\d{1,20})?/i);\r\n if (match != null && match[_DYN_LENGTH /* @min:%2elength */] > 2 && isString(match[2]) && match[2][_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n result = match[2] || \"\";\r\n if (inclPort && match[_DYN_LENGTH /* @min:%2elength */] > 2) {\r\n var protocol = (match[1] || \"\")[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n var port = match[3] || \"\";\r\n // IE includes the standard port so pass it off if it's the same as the protocol\r\n if (protocol === \"http\" && port === \":80\") {\r\n port = \"\";\r\n }\r\n else if (protocol === \"https\" && port === \":443\") {\r\n port = \"\";\r\n }\r\n result += port;\r\n }\r\n }\r\n }\r\n return result;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { arrForEach, arrIndexOf, attachEvent, canUseCookies as coreCanUseCookies, dateNow, deleteCookie as coreDeleteCookie, disableCookies as coreDisableCookies, dumpObj, generateW3CId, getCookie as coreGetCookie, getExceptionName as coreGetExceptionName, getIEVersion, getPerformance, isArray, isBeaconsSupported, isDate, isError, isNullOrUndefined, isValidSpanId, isValidTraceId, newId, random32, setCookie as coreSetCookie, strTrim, toISOString, uaDisallowsSameSiteNone } from \"@microsoft/applicationinsights-core-js\";\r\nimport { DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, strNotSpecified } from \"./Constants\";\r\nimport { createDomEvent } from \"./DomHelperFuncs\";\r\nimport { getExtensionByName, isCrossOriginError, msToTimeSpan, stringToBoolOrDefault } from \"./HelperFuncs\";\r\nimport { RequestHeaders } from \"./RequestResponseHeaders\";\r\nimport { utlCanUseLocalStorage, utlCanUseSessionStorage, utlDisableStorage, utlGetLocalStorage, utlGetSessionStorage, utlGetSessionStorageKeys, utlRemoveSessionStorage, utlRemoveStorage, utlSetLocalStorage, utlSetSessionStorage } from \"./StorageHelperFuncs\";\r\nimport { dataSanitizeString } from \"./Telemetry/Common/DataSanitizer\";\r\nimport { urlGetAbsoluteUrl, urlGetCompleteUrl, urlGetPathName, urlParseFullHost, urlParseHost, urlParseUrl } from \"./UrlHelperFuncs\";\r\nimport { _DYN_CORRELATION_HEADER_E0, _DYN_INDEX_OF, _DYN_LENGTH, _DYN_NAME, _DYN_PATHNAME, _DYN_SPLIT, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\r\n// listing only non-geo specific locations\r\nvar _internalEndpoints = [\r\n DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH,\r\n \"https://breeze.aimon.applicationinsights.io\" + DEFAULT_BREEZE_PATH,\r\n \"https://dc-int.services.visualstudio.com\" + DEFAULT_BREEZE_PATH\r\n];\r\nexport function isInternalApplicationInsightsEndpoint(endpointUrl) {\r\n return arrIndexOf(_internalEndpoints, endpointUrl[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]()) !== -1;\r\n}\r\nexport var Util = {\r\n NotSpecified: strNotSpecified,\r\n createDomEvent: createDomEvent,\r\n disableStorage: utlDisableStorage,\r\n isInternalApplicationInsightsEndpoint: isInternalApplicationInsightsEndpoint,\r\n canUseLocalStorage: utlCanUseLocalStorage,\r\n getStorage: utlGetLocalStorage,\r\n setStorage: utlSetLocalStorage,\r\n removeStorage: utlRemoveStorage,\r\n canUseSessionStorage: utlCanUseSessionStorage,\r\n getSessionStorageKeys: utlGetSessionStorageKeys,\r\n getSessionStorage: utlGetSessionStorage,\r\n setSessionStorage: utlSetSessionStorage,\r\n removeSessionStorage: utlRemoveSessionStorage,\r\n disableCookies: coreDisableCookies,\r\n canUseCookies: coreCanUseCookies,\r\n disallowsSameSiteNone: uaDisallowsSameSiteNone,\r\n setCookie: coreSetCookie,\r\n stringToBoolOrDefault: stringToBoolOrDefault,\r\n getCookie: coreGetCookie,\r\n deleteCookie: coreDeleteCookie,\r\n trim: strTrim,\r\n newId: newId,\r\n random32: function () {\r\n return random32(true);\r\n },\r\n generateW3CId: generateW3CId,\r\n isArray: isArray,\r\n isError: isError,\r\n isDate: isDate,\r\n toISOStringForIE8: toISOString,\r\n getIEVersion: getIEVersion,\r\n msToTimeSpan: msToTimeSpan,\r\n isCrossOriginError: isCrossOriginError,\r\n dump: dumpObj,\r\n getExceptionName: coreGetExceptionName,\r\n addEventHandler: attachEvent,\r\n IsBeaconApiSupported: isBeaconsSupported,\r\n getExtension: getExtensionByName\r\n};\r\nexport var UrlHelper = {\r\n parseUrl: urlParseUrl,\r\n getAbsoluteUrl: urlGetAbsoluteUrl,\r\n getPathName: urlGetPathName,\r\n getCompleteUrl: urlGetCompleteUrl,\r\n parseHost: urlParseHost,\r\n parseFullHost: urlParseFullHost\r\n};\r\nexport var CorrelationIdHelper = {\r\n correlationIdPrefix: \"cid-v1:\",\r\n /**\r\n * Checks if a request url is not on a excluded domain list and if it is safe to add correlation headers.\r\n * Headers are always included if the current domain matches the request domain. If they do not match (CORS),\r\n * they are regex-ed across correlationHeaderDomains and correlationHeaderExcludedDomains to determine if headers are included.\r\n * Some environments don't give information on currentHost via window.location.host (e.g. Cordova). In these cases, the user must\r\n * manually supply domains to include correlation headers on. Else, no headers will be included at all.\r\n */\r\n canIncludeCorrelationHeader: function (config, requestUrl, currentHost) {\r\n if (!requestUrl || (config && config.disableCorrelationHeaders)) {\r\n return false;\r\n }\r\n if (config && config[_DYN_CORRELATION_HEADER_E0 /* @min:%2ecorrelationHeaderExcludePatterns */]) {\r\n for (var i = 0; i < config.correlationHeaderExcludePatterns[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n if (config[_DYN_CORRELATION_HEADER_E0 /* @min:%2ecorrelationHeaderExcludePatterns */][i].test(requestUrl)) {\r\n return false;\r\n }\r\n }\r\n }\r\n var requestHost = urlParseUrl(requestUrl).host[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n if (requestHost && (requestHost[_DYN_INDEX_OF /* @min:%2eindexOf */](\":443\") !== -1 || requestHost[_DYN_INDEX_OF /* @min:%2eindexOf */](\":80\") !== -1)) {\r\n // [Bug #1260] IE can include the port even for http and https URLs so if present\r\n // try and parse it to remove if it matches the default protocol port\r\n requestHost = (urlParseFullHost(requestUrl, true) || \"\")[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n }\r\n if ((!config || !config.enableCorsCorrelation) && (requestHost && requestHost !== currentHost)) {\r\n return false;\r\n }\r\n var includedDomains = config && config.correlationHeaderDomains;\r\n if (includedDomains) {\r\n var matchExists_1;\r\n arrForEach(includedDomains, function (domain) {\r\n var regex = new RegExp(domain.toLowerCase().replace(/\\\\/g, \"\\\\\\\\\").replace(/\\./g, \"\\\\.\").replace(/\\*/g, \".*\"));\r\n matchExists_1 = matchExists_1 || regex.test(requestHost);\r\n });\r\n if (!matchExists_1) {\r\n return false;\r\n }\r\n }\r\n var excludedDomains = config && config.correlationHeaderExcludedDomains;\r\n if (!excludedDomains || excludedDomains[_DYN_LENGTH /* @min:%2elength */] === 0) {\r\n return true;\r\n }\r\n for (var i = 0; i < excludedDomains[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n var regex = new RegExp(excludedDomains[i].toLowerCase().replace(/\\\\/g, \"\\\\\\\\\").replace(/\\./g, \"\\\\.\").replace(/\\*/g, \".*\"));\r\n if (regex.test(requestHost)) {\r\n return false;\r\n }\r\n }\r\n // if we don't know anything about the requestHost, require the user to use included/excludedDomains.\r\n // Previously we always returned false for a falsy requestHost\r\n return requestHost && requestHost[_DYN_LENGTH /* @min:%2elength */] > 0;\r\n },\r\n /**\r\n * Combines target appId and target role name from response header.\r\n */\r\n getCorrelationContext: function (responseHeader) {\r\n if (responseHeader) {\r\n var correlationId = CorrelationIdHelper.getCorrelationContextValue(responseHeader, RequestHeaders[1 /* eRequestHeaders.requestContextTargetKey */]);\r\n if (correlationId && correlationId !== CorrelationIdHelper.correlationIdPrefix) {\r\n return correlationId;\r\n }\r\n }\r\n },\r\n /**\r\n * Gets key from correlation response header\r\n */\r\n getCorrelationContextValue: function (responseHeader, key) {\r\n if (responseHeader) {\r\n var keyValues = responseHeader[_DYN_SPLIT /* @min:%2esplit */](\",\");\r\n for (var i = 0; i < keyValues[_DYN_LENGTH /* @min:%2elength */]; ++i) {\r\n var keyValue = keyValues[i][_DYN_SPLIT /* @min:%2esplit */](\"=\");\r\n if (keyValue[_DYN_LENGTH /* @min:%2elength */] === 2 && keyValue[0] === key) {\r\n return keyValue[1];\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport function AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName) {\r\n var target, name = commandName, data = commandName;\r\n if (absoluteUrl && absoluteUrl[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n var parsedUrl = urlParseUrl(absoluteUrl);\r\n target = parsedUrl.host;\r\n if (!name) {\r\n if (parsedUrl[_DYN_PATHNAME /* @min:%2epathname */] != null) {\r\n var pathName = (parsedUrl.pathname[_DYN_LENGTH /* @min:%2elength */] === 0) ? \"/\" : parsedUrl[_DYN_PATHNAME /* @min:%2epathname */];\r\n if (pathName.charAt(0) !== \"/\") {\r\n pathName = \"/\" + pathName;\r\n }\r\n data = parsedUrl[_DYN_PATHNAME /* @min:%2epathname */];\r\n name = dataSanitizeString(logger, method ? method + \" \" + pathName : pathName);\r\n }\r\n else {\r\n name = dataSanitizeString(logger, absoluteUrl);\r\n }\r\n }\r\n }\r\n else {\r\n target = commandName;\r\n name = commandName;\r\n }\r\n return {\r\n target: target,\r\n name: name,\r\n data: data\r\n };\r\n}\r\nexport function dateTimeUtilsNow() {\r\n // returns the window or webworker performance object\r\n var perf = getPerformance();\r\n if (perf && perf.now && perf.timing) {\r\n var now = perf.now() + perf.timing.navigationStart;\r\n // Known issue with IE where this calculation can be negative, so if it is then ignore and fallback\r\n if (now > 0) {\r\n return now;\r\n }\r\n }\r\n return dateNow();\r\n}\r\nexport function dateTimeUtilsDuration(start, end) {\r\n var result = null;\r\n if (start !== 0 && end !== 0 && !isNullOrUndefined(start) && !isNullOrUndefined(end)) {\r\n result = end - start;\r\n }\r\n return result;\r\n}\r\n/**\r\n * A utility class that helps getting time related parameters\r\n */\r\nexport var DateTimeUtils = {\r\n Now: dateTimeUtilsNow,\r\n GetDuration: dateTimeUtilsDuration\r\n};\r\n/**\r\n * Creates a IDistributedTraceContext from an optional telemetryTrace\r\n * @param telemetryTrace - The telemetryTrace instance that is being wrapped\r\n * @param parentCtx - An optional parent distributed trace instance, almost always undefined as this scenario is only used in the case of multiple property handlers.\r\n * @returns A new IDistributedTraceContext instance that is backed by the telemetryTrace or temporary object\r\n */\r\nexport function createDistributedTraceContextFromTrace(telemetryTrace, parentCtx) {\r\n var trace = telemetryTrace || {};\r\n return {\r\n getName: function () {\r\n return trace[_DYN_NAME /* @min:%2ename */];\r\n },\r\n setName: function (newValue) {\r\n parentCtx && parentCtx.setName(newValue);\r\n trace[_DYN_NAME /* @min:%2ename */] = newValue;\r\n },\r\n getTraceId: function () {\r\n return trace.traceID;\r\n },\r\n setTraceId: function (newValue) {\r\n parentCtx && parentCtx.setTraceId(newValue);\r\n if (isValidTraceId(newValue)) {\r\n trace.traceID = newValue;\r\n }\r\n },\r\n getSpanId: function () {\r\n return trace.parentID;\r\n },\r\n setSpanId: function (newValue) {\r\n parentCtx && parentCtx.setSpanId(newValue);\r\n if (isValidSpanId(newValue)) {\r\n trace.parentID = newValue;\r\n }\r\n },\r\n getTraceFlags: function () {\r\n return trace.traceFlags;\r\n },\r\n setTraceFlags: function (newTraceFlags) {\r\n parentCtx && parentCtx.setTraceFlags(newTraceFlags);\r\n trace.traceFlags = newTraceFlags;\r\n }\r\n };\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { msToTimeSpan } from \"../HelperFuncs\";\r\nimport { AjaxHelperParseDependencyPath } from \"../Util\";\r\nimport { _DYN_DURATION, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_PROPERTIES } from \"../__DynamicConstants\";\r\nimport { dataSanitizeMeasurements, dataSanitizeProperties, dataSanitizeString, dataSanitizeUrl } from \"./Common/DataSanitizer\";\r\nvar RemoteDependencyData = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the RemoteDependencyData object\r\n */\r\n function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {\r\n if (requestAPI === void 0) { requestAPI = \"Ajax\"; }\r\n this.aiDataContract = {\r\n id: 1 /* FieldType.Required */,\r\n ver: 1 /* FieldType.Required */,\r\n name: 0 /* FieldType.Default */,\r\n resultCode: 0 /* FieldType.Default */,\r\n duration: 0 /* FieldType.Default */,\r\n success: 0 /* FieldType.Default */,\r\n data: 0 /* FieldType.Default */,\r\n target: 0 /* FieldType.Default */,\r\n type: 0 /* FieldType.Default */,\r\n properties: 0 /* FieldType.Default */,\r\n measurements: 0 /* FieldType.Default */,\r\n kind: 0 /* FieldType.Default */,\r\n value: 0 /* FieldType.Default */,\r\n count: 0 /* FieldType.Default */,\r\n min: 0 /* FieldType.Default */,\r\n max: 0 /* FieldType.Default */,\r\n stdDev: 0 /* FieldType.Default */,\r\n dependencyKind: 0 /* FieldType.Default */,\r\n dependencySource: 0 /* FieldType.Default */,\r\n commandName: 0 /* FieldType.Default */,\r\n dependencyTypeName: 0 /* FieldType.Default */\r\n };\r\n var _self = this;\r\n _self.ver = 2;\r\n _self.id = id;\r\n _self[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(value);\r\n _self.success = success;\r\n _self.resultCode = resultCode + \"\";\r\n _self.type = dataSanitizeString(logger, requestAPI);\r\n var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);\r\n _self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data; // get a value from hosturl if commandName not available\r\n _self.target = dataSanitizeString(logger, dependencyFields.target);\r\n if (correlationContext) {\r\n _self.target = \"\".concat(_self.target, \" | \").concat(correlationContext);\r\n }\r\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, dependencyFields[_DYN_NAME /* @min:%2ename */]);\r\n _self[_DYN_PROPERTIES /* @min:%2eproperties */] = dataSanitizeProperties(logger, properties);\r\n _self[_DYN_MEASUREMENTS /* @min:%2emeasurements */] = dataSanitizeMeasurements(logger, measurements);\r\n }\r\n RemoteDependencyData.envelopeType = \"Microsoft.ApplicationInsights.{0}.RemoteDependency\";\r\n RemoteDependencyData.dataType = \"RemoteDependencyData\";\r\n return RemoteDependencyData;\r\n}());\r\nexport { RemoteDependencyData };\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _DYN_COMPLETE, _DYN_GET_CTX, _DYN_IS_ASYNC, _DYN_IS_CHILD_EVT, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SET_CTX, _DYN_TIME } from \"../__DynamicConstants\";\r\nimport { dateNow, isArray, isFunction, objDefineAccessors } from \"./HelperFuncs\";\r\nimport { STR_GET_PERF_MGR, STR_PERF_EVENT } from \"./InternalConstants\";\r\nvar strExecutionContextKey = \"ctx\";\r\nvar strParentContextKey = \"ParentContextKey\";\r\nvar strChildrenContextKey = \"ChildrenContextKey\";\r\nvar _defaultPerfManager = null;\r\nvar PerfEvent = /** @class */ (function () {\r\n function PerfEvent(name, payloadDetails, isAsync) {\r\n var _self = this;\r\n var accessorDefined = false;\r\n _self.start = dateNow();\r\n _self[_DYN_NAME /* @min:%2ename */] = name;\r\n _self[_DYN_IS_ASYNC /* @min:%2eisAsync */] = isAsync;\r\n _self[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */] = function () { return false; };\r\n if (isFunction(payloadDetails)) {\r\n // Create an accessor to minimize the potential performance impact of executing the payloadDetails callback\r\n var theDetails_1;\r\n accessorDefined = objDefineAccessors(_self, \"payload\", function () {\r\n // Delay the execution of the payloadDetails until needed\r\n if (!theDetails_1 && isFunction(payloadDetails)) {\r\n theDetails_1 = payloadDetails();\r\n // clear it out now so the referenced objects can be garbage collected\r\n payloadDetails = null;\r\n }\r\n return theDetails_1;\r\n });\r\n }\r\n _self[_DYN_GET_CTX /* @min:%2egetCtx */] = function (key) {\r\n if (key) {\r\n // The parent and child links are located directly on the object (for better viewing in the DebugPlugin)\r\n if (key === PerfEvent[strParentContextKey] || key === PerfEvent[strChildrenContextKey]) {\r\n return _self[key];\r\n }\r\n return (_self[strExecutionContextKey] || {})[key];\r\n }\r\n return null;\r\n };\r\n _self[_DYN_SET_CTX /* @min:%2esetCtx */] = function (key, value) {\r\n if (key) {\r\n // Put the parent and child links directly on the object (for better viewing in the DebugPlugin)\r\n if (key === PerfEvent[strParentContextKey]) {\r\n // Simple assumption, if we are setting a parent then we must be a child\r\n if (!_self[key]) {\r\n _self[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */] = function () { return true; };\r\n }\r\n _self[key] = value;\r\n }\r\n else if (key === PerfEvent[strChildrenContextKey]) {\r\n _self[key] = value;\r\n }\r\n else {\r\n var ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {};\r\n ctx[key] = value;\r\n }\r\n }\r\n };\r\n _self[_DYN_COMPLETE /* @min:%2ecomplete */] = function () {\r\n var childTime = 0;\r\n var childEvts = _self[_DYN_GET_CTX /* @min:%2egetCtx */](PerfEvent[strChildrenContextKey]);\r\n if (isArray(childEvts)) {\r\n for (var lp = 0; lp < childEvts[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n var childEvt = childEvts[lp];\r\n if (childEvt) {\r\n childTime += childEvt[_DYN_TIME /* @min:%2etime */];\r\n }\r\n }\r\n }\r\n _self[_DYN_TIME /* @min:%2etime */] = dateNow() - _self.start;\r\n _self.exTime = _self[_DYN_TIME /* @min:%2etime */] - childTime;\r\n _self[_DYN_COMPLETE /* @min:%2ecomplete */] = function () { };\r\n if (!accessorDefined && isFunction(payloadDetails)) {\r\n // If we couldn't define the property set during complete -- to minimize the perf impact until after the time\r\n _self.payload = payloadDetails();\r\n }\r\n };\r\n }\r\n PerfEvent.ParentContextKey = \"parent\";\r\n PerfEvent.ChildrenContextKey = \"childEvts\";\r\n return PerfEvent;\r\n}());\r\nexport { PerfEvent };\r\nvar PerfManager = /** @class */ (function () {\r\n function PerfManager(manager) {\r\n /**\r\n * General bucket used for execution context set and retrieved via setCtx() and getCtx.\r\n * Defined as private so it can be visualized via the DebugPlugin\r\n */\r\n this.ctx = {};\r\n dynamicProto(PerfManager, this, function (_self) {\r\n _self.create = function (src, payloadDetails, isAsync) {\r\n // TODO (@MSNev): at some point we will want to add additional configuration to \"select\" which events to instrument\r\n // for now this is just a simple do everything.\r\n return new PerfEvent(src, payloadDetails, isAsync);\r\n };\r\n _self.fire = function (perfEvent) {\r\n if (perfEvent) {\r\n perfEvent[_DYN_COMPLETE /* @min:%2ecomplete */]();\r\n if (manager && isFunction(manager[STR_PERF_EVENT /* @min:%2eperfEvent */])) {\r\n manager[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent);\r\n }\r\n }\r\n };\r\n _self[_DYN_SET_CTX /* @min:%2esetCtx */] = function (key, value) {\r\n if (key) {\r\n var ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {};\r\n ctx[key] = value;\r\n }\r\n };\r\n _self[_DYN_GET_CTX /* @min:%2egetCtx */] = function (key) {\r\n return (_self[strExecutionContextKey] || {})[key];\r\n };\r\n });\r\n }\r\n// Removed Stub for PerfManager.prototype.create.\r\n// Removed Stub for PerfManager.prototype.fire.\r\n// Removed Stub for PerfManager.prototype.setCtx.\r\n// Removed Stub for PerfManager.prototype.getCtx.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n PerfManager.__ieDyn=1;\n\n return PerfManager;\r\n}());\r\nexport { PerfManager };\r\nvar doPerfActiveKey = \"CoreUtils.doPerf\";\r\n/**\r\n * Helper function to wrap a function with a perf event\r\n * @param mgrSource - The Performance Manager or a Performance provider source (may be null)\r\n * @param getSource - The callback to create the source name for the event (if perf monitoring is enabled)\r\n * @param func - The function to call and measure\r\n * @param details - A function to return the payload details\r\n * @param isAsync - Is the event / function being call asynchronously or synchronously\r\n */\r\nexport function doPerf(mgrSource, getSource, func, details, isAsync) {\r\n if (mgrSource) {\r\n var perfMgr = mgrSource;\r\n if (perfMgr[STR_GET_PERF_MGR]) {\r\n // Looks like a perf manager provider object\r\n perfMgr = perfMgr[STR_GET_PERF_MGR]();\r\n }\r\n if (perfMgr) {\r\n var perfEvt = void 0;\r\n var currentActive = perfMgr[_DYN_GET_CTX /* @min:%2egetCtx */](doPerfActiveKey);\r\n try {\r\n perfEvt = perfMgr.create(getSource(), details, isAsync);\r\n if (perfEvt) {\r\n if (currentActive && perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */]) {\r\n perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */](PerfEvent[strParentContextKey], currentActive);\r\n if (currentActive[_DYN_GET_CTX /* @min:%2egetCtx */] && currentActive[_DYN_SET_CTX /* @min:%2esetCtx */]) {\r\n var children = currentActive[_DYN_GET_CTX /* @min:%2egetCtx */](PerfEvent[strChildrenContextKey]);\r\n if (!children) {\r\n children = [];\r\n currentActive[_DYN_SET_CTX /* @min:%2esetCtx */](PerfEvent[strChildrenContextKey], children);\r\n }\r\n children[_DYN_PUSH /* @min:%2epush */](perfEvt);\r\n }\r\n }\r\n // Set this event as the active event now\r\n perfMgr[_DYN_SET_CTX /* @min:%2esetCtx */](doPerfActiveKey, perfEvt);\r\n return func(perfEvt);\r\n }\r\n }\r\n catch (ex) {\r\n if (perfEvt && perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */]) {\r\n perfEvt[_DYN_SET_CTX /* @min:%2esetCtx */](\"exception\", ex);\r\n }\r\n }\r\n finally {\r\n // fire the perf event\r\n if (perfEvt) {\r\n perfMgr.fire(perfEvt);\r\n }\r\n // Reset the active event to the previous value\r\n perfMgr[_DYN_SET_CTX /* @min:%2esetCtx */](doPerfActiveKey, currentActive);\r\n }\r\n }\r\n }\r\n return func();\r\n}\r\n/**\r\n * Set the global performance manager to use when there is no core instance or it has not been initialized yet.\r\n * @param perfManager - The IPerfManager instance to use when no performance manager is supplied.\r\n */\r\nexport function setGblPerfMgr(perfManager) {\r\n _defaultPerfManager = perfManager;\r\n}\r\n/**\r\n * Get the current global performance manager that will be used with no performance manager is supplied.\r\n * @returns - The current default manager\r\n */\r\nexport function getGblPerfMgr() {\r\n return _defaultPerfManager;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport { _DYN_CALL, _DYN_GET_NEXT, _DYN_GET_PLUGIN, _DYN_INITIALIZE, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SET_NEXT_PLUGIN, _DYN_SPAN_ID, _DYN_TEARDOWN, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\r\nimport { createElmNodeData } from \"./DataCacheHelper\";\r\nimport { arrForEach, isFunction } from \"./HelperFuncs\";\r\nimport { STR_CORE, STR_PRIORITY, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\r\nimport { isValidSpanId, isValidTraceId } from \"./W3cTraceParent\";\r\nvar pluginStateData = createElmNodeData(\"plugin\");\r\nexport function _getPluginState(plugin) {\r\n return pluginStateData.get(plugin, \"state\", {}, true);\r\n}\r\n/**\r\n * Initialize the queue of plugins\r\n * @param plugins - The array of plugins to initialize and setting of the next plugin\r\n * @param config The current config for the instance\r\n * @param core THe current core instance\r\n * @param extensions The extensions\r\n */\r\nexport function initializePlugins(processContext, extensions) {\r\n // Set the next plugin and identified the uninitialized plugins\r\n var initPlugins = [];\r\n var lastPlugin = null;\r\n var proxy = processContext[_DYN_GET_NEXT /* @min:%2egetNext */]();\r\n var pluginState;\r\n while (proxy) {\r\n var thePlugin = proxy[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]();\r\n if (thePlugin) {\r\n if (lastPlugin &&\r\n isFunction(lastPlugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */]) &&\r\n isFunction(thePlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\r\n // Set this plugin as the next for the previous one\r\n lastPlugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */](thePlugin);\r\n }\r\n var isInitialized = false;\r\n if (isFunction(thePlugin[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */])) {\r\n isInitialized = thePlugin[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]();\r\n }\r\n else {\r\n pluginState = _getPluginState(thePlugin);\r\n isInitialized = pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */];\r\n }\r\n if (!isInitialized) {\r\n initPlugins[_DYN_PUSH /* @min:%2epush */](thePlugin);\r\n }\r\n lastPlugin = thePlugin;\r\n proxy = proxy[_DYN_GET_NEXT /* @min:%2egetNext */]();\r\n }\r\n }\r\n // Now initialize the plugins\r\n arrForEach(initPlugins, function (thePlugin) {\r\n var core = processContext[STR_CORE]();\r\n thePlugin[_DYN_INITIALIZE /* @min:%2einitialize */](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT /* @min:%2egetNext */]());\r\n pluginState = _getPluginState(thePlugin);\r\n // Only add the core to the state if the plugin didn't set it (doesn't extent from BaseTelemetryPlugin)\r\n if (!thePlugin[STR_CORE] && !pluginState[STR_CORE]) {\r\n pluginState[STR_CORE] = core;\r\n }\r\n pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = true;\r\n delete pluginState[_DYN_TEARDOWN /* @min:%2eteardown */];\r\n });\r\n}\r\nexport function sortPlugins(plugins) {\r\n // Sort by priority\r\n return plugins.sort(function (extA, extB) {\r\n var result = 0;\r\n if (extB) {\r\n var bHasProcess = isFunction(extB[STR_PROCESS_TELEMETRY]);\r\n if (isFunction(extA[STR_PROCESS_TELEMETRY])) {\r\n result = bHasProcess ? extA[STR_PRIORITY] - extB[STR_PRIORITY] : 1;\r\n }\r\n else if (bHasProcess) {\r\n result = -1;\r\n }\r\n }\r\n else {\r\n result = extA ? 1 : -1;\r\n }\r\n return result;\r\n });\r\n // sort complete\r\n}\r\n/**\r\n * Teardown / Unload helper to perform teardown/unloading operations for the provided components synchronously or asynchronously, this will call any\r\n * _doTeardown() or _doUnload() functions on the provided components to allow them to finish removal.\r\n * @param components - The components you want to unload\r\n * @param unloadCtx - This is the context that should be used during unloading.\r\n * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.\r\n * @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async unload/teardown operations.\r\n * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.\r\n */\r\nexport function unloadComponents(components, unloadCtx, unloadState, asyncCallback) {\r\n var idx = 0;\r\n function _doUnload() {\r\n while (idx < components[_DYN_LENGTH /* @min:%2elength */]) {\r\n var component = components[idx++];\r\n if (component) {\r\n var func = component._doUnload || component[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */];\r\n if (isFunction(func)) {\r\n if (func[_DYN_CALL /* @min:%2ecall */](component, unloadCtx, unloadState, _doUnload) === true) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return _doUnload();\r\n}\r\n/**\r\n * Creates a IDistributedTraceContext which optionally also \"sets\" the value on a parent\r\n * @param parentCtx - An optional parent distributed trace instance\r\n * @returns A new IDistributedTraceContext instance that uses an internal temporary object\r\n */\r\nexport function createDistributedTraceContext(parentCtx) {\r\n var trace = {};\r\n return {\r\n getName: function () {\r\n return trace[_DYN_NAME /* @min:%2ename */];\r\n },\r\n setName: function (newValue) {\r\n parentCtx && parentCtx.setName(newValue);\r\n trace[_DYN_NAME /* @min:%2ename */] = newValue;\r\n },\r\n getTraceId: function () {\r\n return trace[_DYN_TRACE_ID /* @min:%2etraceId */];\r\n },\r\n setTraceId: function (newValue) {\r\n parentCtx && parentCtx.setTraceId(newValue);\r\n if (isValidTraceId(newValue)) {\r\n trace[_DYN_TRACE_ID /* @min:%2etraceId */] = newValue;\r\n }\r\n },\r\n getSpanId: function () {\r\n return trace[_DYN_SPAN_ID /* @min:%2espanId */];\r\n },\r\n setSpanId: function (newValue) {\r\n parentCtx && parentCtx.setSpanId(newValue);\r\n if (isValidSpanId(newValue)) {\r\n trace[_DYN_SPAN_ID /* @min:%2espanId */] = newValue;\r\n }\r\n },\r\n getTraceFlags: function () {\r\n return trace[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\r\n },\r\n setTraceFlags: function (newTraceFlags) {\r\n parentCtx && parentCtx.setTraceFlags(newTraceFlags);\r\n trace[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = newTraceFlags;\r\n }\r\n };\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport { _DYN_CALL, _DYN_CONFIG, _DYN_CREATE_NEW, _DYN_DIAG_LOG, _DYN_GET_NEXT, _DYN_GET_PLUGIN, _DYN_IDENTIFIER, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_SET_NEXT_PLUGIN, _DYN_TEARDOWN, _DYN_UPDATE } from \"../__DynamicConstants\";\r\nimport { _throwInternal, safeGetLogger } from \"./DiagnosticLogger\";\r\nimport { dumpObj } from \"./EnvUtils\";\r\nimport { arrForEach, isArray, isFunction, isNullOrUndefined, isObject, isUndefined, objExtend, objForEachKey, objFreeze, objKeys, proxyFunctions } from \"./HelperFuncs\";\r\nimport { STR_CORE, STR_DISABLED, STR_EMPTY, STR_EXTENSION_CONFIG, STR_PRIORITY, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\r\nimport { doPerf } from \"./PerfManager\";\r\nimport { _getPluginState } from \"./TelemetryHelpers\";\r\nvar strTelemetryPluginChain = \"TelemetryPluginChain\";\r\nvar strHasRunFlags = \"_hasRun\";\r\nvar strGetTelCtx = \"_getTelCtx\";\r\nvar _chainId = 0;\r\nfunction _getNextProxyStart(proxy, core, startAt) {\r\n while (proxy) {\r\n if (proxy[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]() === startAt) {\r\n return proxy;\r\n }\r\n proxy = proxy[_DYN_GET_NEXT /* @min:%2egetNext */]();\r\n }\r\n // This wasn't found in the existing chain so create an isolated one with just this plugin\r\n return createTelemetryProxyChain([startAt], core[_DYN_CONFIG /* @min:%2econfig */] || {}, core);\r\n}\r\n/**\r\n * @ignore\r\n * @param telemetryChain\r\n * @param config\r\n * @param core\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n * @returns\r\n */\r\nfunction _createInternalContext(telemetryChain, config, core, startAt) {\r\n // We have a special case where we want to start execution from this specific plugin\r\n // or we simply reuse the existing telemetry plugin chain (normal execution case)\r\n var _nextProxy = null; // By Default set as no next plugin\r\n var _onComplete = [];\r\n if (startAt !== null) {\r\n // There is no next element (null) vs not defined (undefined) so use the full chain\r\n _nextProxy = startAt ? _getNextProxyStart(telemetryChain, core, startAt) : telemetryChain;\r\n }\r\n var context = {\r\n _next: _moveNext,\r\n ctx: {\r\n core: function () {\r\n return core;\r\n },\r\n diagLog: function () {\r\n return safeGetLogger(core, config);\r\n },\r\n getCfg: function () {\r\n return config;\r\n },\r\n getExtCfg: _getExtCfg,\r\n getConfig: _getConfig,\r\n hasNext: function () {\r\n return !!_nextProxy;\r\n },\r\n getNext: function () {\r\n return _nextProxy;\r\n },\r\n setNext: function (nextPlugin) {\r\n _nextProxy = nextPlugin;\r\n },\r\n iterate: _iterateChain,\r\n onComplete: _addOnComplete\r\n }\r\n };\r\n function _addOnComplete(onComplete, that) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n if (onComplete) {\r\n _onComplete[_DYN_PUSH /* @min:%2epush */]({\r\n func: onComplete,\r\n self: !isUndefined(that) ? that : context.ctx,\r\n args: args\r\n });\r\n }\r\n }\r\n function _moveNext() {\r\n var nextProxy = _nextProxy;\r\n // Automatically move to the next plugin\r\n _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT /* @min:%2egetNext */]() : null;\r\n if (!nextProxy) {\r\n var onComplete = _onComplete;\r\n if (onComplete && onComplete[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n arrForEach(onComplete, function (completeDetails) {\r\n try {\r\n completeDetails.func[_DYN_CALL /* @min:%2ecall */](completeDetails.self, completeDetails.args);\r\n }\r\n catch (e) {\r\n _throwInternal(core[_DYN_LOGGER /* @min:%2elogger */], 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unexpected Exception during onComplete - \" + dumpObj(e));\r\n }\r\n });\r\n _onComplete = [];\r\n }\r\n }\r\n return nextProxy;\r\n }\r\n function _getExtCfg(identifier, defaultValue, mergeDefault) {\r\n if (defaultValue === void 0) { defaultValue = {}; }\r\n if (mergeDefault === void 0) { mergeDefault = 0 /* GetExtCfgMergeType.None */; }\r\n var theConfig;\r\n if (config) {\r\n var extConfig = config[STR_EXTENSION_CONFIG /* @min:%2eextensionConfig */];\r\n if (extConfig && identifier) {\r\n theConfig = extConfig[identifier];\r\n }\r\n }\r\n if (!theConfig) {\r\n // Just use the defaults\r\n theConfig = defaultValue;\r\n }\r\n else if (isObject(defaultValue)) {\r\n if (mergeDefault !== 0 /* GetExtCfgMergeType.None */) {\r\n // Merge the defaults and configured values\r\n var newConfig_1 = objExtend(true, defaultValue, theConfig);\r\n if (config && mergeDefault === 2 /* GetExtCfgMergeType.MergeDefaultFromRootOrDefault */) {\r\n // Enumerate over the defaultValues and if not already populated attempt to\r\n // find a value from the root config\r\n objForEachKey(defaultValue, function (field) {\r\n // for each unspecified field, set the default value\r\n if (isNullOrUndefined(newConfig_1[field])) {\r\n var cfgValue = config[field];\r\n if (!isNullOrUndefined(cfgValue)) {\r\n newConfig_1[field] = cfgValue;\r\n }\r\n }\r\n });\r\n }\r\n theConfig = newConfig_1;\r\n }\r\n }\r\n return theConfig;\r\n }\r\n function _getConfig(identifier, field, defaultValue) {\r\n if (defaultValue === void 0) { defaultValue = false; }\r\n var theValue;\r\n var extConfig = _getExtCfg(identifier, null);\r\n if (extConfig && !isNullOrUndefined(extConfig[field])) {\r\n theValue = extConfig[field];\r\n }\r\n else if (config && !isNullOrUndefined(config[field])) {\r\n theValue = config[field];\r\n }\r\n return !isNullOrUndefined(theValue) ? theValue : defaultValue;\r\n }\r\n function _iterateChain(cb) {\r\n // Keep processing until we reach the end of the chain\r\n var nextPlugin;\r\n while (!!(nextPlugin = context._next())) {\r\n var plugin = nextPlugin[_DYN_GET_PLUGIN /* @min:%2egetPlugin */]();\r\n if (plugin) {\r\n // callback with the current on\r\n cb(plugin);\r\n }\r\n }\r\n }\r\n return context;\r\n}\r\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\r\nexport function createProcessTelemetryContext(telemetryChain, config, core, startAt) {\r\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\r\n var context = internalContext.ctx;\r\n function _processNext(env) {\r\n var nextPlugin = internalContext._next();\r\n // Run the next plugin which will call \"processNext()\"\r\n nextPlugin && nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, context);\r\n return !nextPlugin;\r\n }\r\n function _createNew(plugins, startAt) {\r\n if (plugins === void 0) { plugins = null; }\r\n if (isArray(plugins)) {\r\n plugins = createTelemetryProxyChain(plugins, config, core, startAt);\r\n }\r\n return createProcessTelemetryContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), config, core, startAt);\r\n }\r\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\r\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\r\n return context;\r\n}\r\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain for handling the unloading of the chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\r\nexport function createProcessTelemetryUnloadContext(telemetryChain, core, startAt) {\r\n var config = core[_DYN_CONFIG /* @min:%2econfig */] || {};\r\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\r\n var context = internalContext.ctx;\r\n function _processNext(unloadState) {\r\n var nextPlugin = internalContext._next();\r\n nextPlugin && nextPlugin.unload(context, unloadState);\r\n return !nextPlugin;\r\n }\r\n function _createNew(plugins, startAt) {\r\n if (plugins === void 0) { plugins = null; }\r\n if (isArray(plugins)) {\r\n plugins = createTelemetryProxyChain(plugins, config, core, startAt);\r\n }\r\n return createProcessTelemetryUnloadContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), core, startAt);\r\n }\r\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\r\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\r\n return context;\r\n}\r\n/**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain for updating the configuration\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\r\n */\r\nexport function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {\r\n var config = core[_DYN_CONFIG /* @min:%2econfig */] || {};\r\n var internalContext = _createInternalContext(telemetryChain, config, core, startAt);\r\n var context = internalContext.ctx;\r\n function _processNext(updateState) {\r\n return context.iterate(function (plugin) {\r\n if (isFunction(plugin[_DYN_UPDATE /* @min:%2eupdate */])) {\r\n plugin[_DYN_UPDATE /* @min:%2eupdate */](context, updateState);\r\n }\r\n });\r\n }\r\n function _createNew(plugins, startAt) {\r\n if (plugins === void 0) { plugins = null; }\r\n if (isArray(plugins)) {\r\n plugins = createTelemetryProxyChain(plugins, config, core, startAt);\r\n }\r\n return createProcessTelemetryUpdateContext(plugins || context[_DYN_GET_NEXT /* @min:%2egetNext */](), core, startAt);\r\n }\r\n context[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = _processNext;\r\n context[_DYN_CREATE_NEW /* @min:%2ecreateNew */] = _createNew;\r\n return context;\r\n}\r\n/**\r\n * Creates an execution chain from the array of plugins\r\n * @param plugins - The array of plugins that will be executed in this order\r\n * @param defItemCtx - The default execution context to use when no telemetry context is passed to processTelemetry(), this\r\n * should be for legacy plugins only. Currently, only used for passing the current core instance and to provide better error\r\n * reporting (hasRun) when errors occur.\r\n */\r\nexport function createTelemetryProxyChain(plugins, config, core, startAt) {\r\n var firstProxy = null;\r\n var add = startAt ? false : true;\r\n if (isArray(plugins) && plugins[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n // Create the proxies and wire up the next plugin chain\r\n var lastProxy_1 = null;\r\n arrForEach(plugins, function (thePlugin) {\r\n if (!add && startAt === thePlugin) {\r\n add = true;\r\n }\r\n if (add && thePlugin && isFunction(thePlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\r\n // Only add plugins that are processors\r\n var newProxy = createTelemetryPluginProxy(thePlugin, config, core);\r\n if (!firstProxy) {\r\n firstProxy = newProxy;\r\n }\r\n if (lastProxy_1) {\r\n // Set this new proxy as the next for the previous one\r\n lastProxy_1._setNext(newProxy);\r\n }\r\n lastProxy_1 = newProxy;\r\n }\r\n });\r\n }\r\n if (startAt && !firstProxy) {\r\n // Special case where the \"startAt\" was not in the original list of plugins\r\n return createTelemetryProxyChain([startAt], config, core);\r\n }\r\n return firstProxy;\r\n}\r\n/**\r\n * Create the processing telemetry proxy instance, the proxy is used to abstract the current plugin to allow monitoring and\r\n * execution plugins while passing around the dynamic execution state (IProcessTelemetryContext), the proxy instance no longer\r\n * contains any execution state and can be reused between requests (this was not the case for 2.7.2 and earlier with the\r\n * TelemetryPluginChain class).\r\n * @param plugin - The plugin instance to proxy\r\n * @param config - The default execution context to use when no telemetry context is passed to processTelemetry(), this\r\n * should be for legacy plugins only. Currently, only used for passing the current core instance and to provide better error\r\n * reporting (hasRun) when errors occur.\r\n * @returns\r\n */\r\nexport function createTelemetryPluginProxy(plugin, config, core) {\r\n var nextProxy = null;\r\n var hasProcessTelemetry = isFunction(plugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */]);\r\n var hasSetNext = isFunction(plugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */]);\r\n var chainId;\r\n if (plugin) {\r\n chainId = plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] + \"-\" + plugin[STR_PRIORITY /* @min:%2epriority */] + \"-\" + _chainId++;\r\n }\r\n else {\r\n chainId = \"Unknown-0-\" + _chainId++;\r\n }\r\n var proxyChain = {\r\n getPlugin: function () {\r\n return plugin;\r\n },\r\n getNext: function () {\r\n return nextProxy;\r\n },\r\n processTelemetry: _processTelemetry,\r\n unload: _unloadPlugin,\r\n update: _updatePlugin,\r\n _id: chainId,\r\n _setNext: function (nextPlugin) {\r\n nextProxy = nextPlugin;\r\n }\r\n };\r\n function _getTelCtx() {\r\n var itemCtx;\r\n // Looks like a plugin didn't pass the (optional) context, so create a new one\r\n if (plugin && isFunction(plugin[strGetTelCtx])) {\r\n // This plugin extends from the BaseTelemetryPlugin so lets use it\r\n itemCtx = plugin[strGetTelCtx]();\r\n }\r\n if (!itemCtx) {\r\n // Create a temporary one\r\n itemCtx = createProcessTelemetryContext(proxyChain, config, core);\r\n }\r\n return itemCtx;\r\n }\r\n function _processChain(itemCtx, processPluginFn, name, details, isAsync) {\r\n var hasRun = false;\r\n var identifier = plugin ? plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] : strTelemetryPluginChain;\r\n var hasRunContext = itemCtx[strHasRunFlags];\r\n if (!hasRunContext) {\r\n // Assign and populate\r\n hasRunContext = itemCtx[strHasRunFlags] = {};\r\n }\r\n // Ensure that we keep the context in sync\r\n itemCtx.setNext(nextProxy);\r\n if (plugin) {\r\n doPerf(itemCtx[STR_CORE /* @min:%2ecore */](), function () { return identifier + \":\" + name; }, function () {\r\n // Mark this component as having run\r\n hasRunContext[chainId] = true;\r\n try {\r\n // Set a flag on the next plugin so we know if it was attempted to be executed\r\n var nextId = nextProxy ? nextProxy._id : STR_EMPTY;\r\n if (nextId) {\r\n hasRunContext[nextId] = false;\r\n }\r\n hasRun = processPluginFn(itemCtx);\r\n }\r\n catch (error) {\r\n var hasNextRun = nextProxy ? hasRunContext[nextProxy._id] : true;\r\n if (hasNextRun) {\r\n // The next plugin after us has already run so set this one as complete\r\n hasRun = true;\r\n }\r\n if (!nextProxy || !hasNextRun) {\r\n // Either we have no next plugin or the current one did not attempt to call the next plugin\r\n // Which means the current one is the root of the failure so log/report this failure\r\n _throwInternal(itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 73 /* _eInternalMessageId.PluginException */, \"Plugin [\" + identifier + \"] failed during \" + name + \" - \" + dumpObj(error) + \", run flags: \" + dumpObj(hasRunContext));\r\n }\r\n }\r\n }, details, isAsync);\r\n }\r\n return hasRun;\r\n }\r\n function _processTelemetry(env, itemCtx) {\r\n itemCtx = itemCtx || _getTelCtx();\r\n function _callProcessTelemetry(itemCtx) {\r\n if (!plugin || !hasProcessTelemetry) {\r\n return false;\r\n }\r\n var pluginState = _getPluginState(plugin);\r\n if (pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] || pluginState[STR_DISABLED]) {\r\n return false;\r\n }\r\n // Ensure that we keep the context in sync (for processNext()), just in case a plugin\r\n // doesn't calls processTelemetry() instead of itemContext.processNext() or some\r\n // other form of error occurred\r\n if (hasSetNext) {\r\n // Backward compatibility setting the next plugin on the instance\r\n plugin[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */](nextProxy);\r\n }\r\n plugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, itemCtx);\r\n // Process Telemetry is expected to call itemCtx.processNext() or nextPlugin.processTelemetry()\r\n return true;\r\n }\r\n if (!_processChain(itemCtx, _callProcessTelemetry, \"processTelemetry\", function () { return ({ item: env }); }, !(env.sync))) {\r\n // The underlying plugin is either not defined, not enabled or does not have a processTelemetry implementation\r\n // so we still want the next plugin to be executed.\r\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](env);\r\n }\r\n }\r\n function _unloadPlugin(unloadCtx, unloadState) {\r\n function _callTeardown() {\r\n // Setting default of hasRun as false so the proxyProcessFn() is called as teardown() doesn't have to exist or call unloadNext().\r\n var hasRun = false;\r\n if (plugin) {\r\n var pluginState = _getPluginState(plugin);\r\n var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE /* @min:%2ecore */];\r\n // Only teardown the plugin if it was initialized by the current core (i.e. It's not a shared plugin)\r\n if (plugin && (!pluginCore || pluginCore === unloadCtx.core()) && !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */]) {\r\n // Handle plugins that don't extend from the BaseTelemetryPlugin\r\n pluginState[STR_CORE /* @min:%2ecore */] = null;\r\n pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] = true;\r\n pluginState[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = false;\r\n if (plugin[_DYN_TEARDOWN /* @min:%2eteardown */] && plugin[_DYN_TEARDOWN /* @min:%2eteardown */](unloadCtx, unloadState) === true) {\r\n // plugin told us that it was going to (or has) call unloadCtx.processNext()\r\n hasRun = true;\r\n }\r\n }\r\n }\r\n return hasRun;\r\n }\r\n if (!_processChain(unloadCtx, _callTeardown, \"unload\", function () { }, unloadState[_DYN_IS_ASYNC /* @min:%2eisAsync */])) {\r\n // Only called if we hasRun was not true\r\n unloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\r\n }\r\n }\r\n function _updatePlugin(updateCtx, updateState) {\r\n function _callUpdate() {\r\n // Setting default of hasRun as false so the proxyProcessFn() is called as teardown() doesn't have to exist or call unloadNext().\r\n var hasRun = false;\r\n if (plugin) {\r\n var pluginState = _getPluginState(plugin);\r\n var pluginCore = plugin[STR_CORE] || pluginState[STR_CORE /* @min:%2ecore */];\r\n // Only update the plugin if it was initialized by the current core (i.e. It's not a shared plugin)\r\n if (plugin && (!pluginCore || pluginCore === updateCtx.core()) && !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */]) {\r\n if (plugin[_DYN_UPDATE /* @min:%2eupdate */] && plugin[_DYN_UPDATE /* @min:%2eupdate */](updateCtx, updateState) === true) {\r\n // plugin told us that it was going to (or has) call unloadCtx.processNext()\r\n hasRun = true;\r\n }\r\n }\r\n }\r\n return hasRun;\r\n }\r\n if (!_processChain(updateCtx, _callUpdate, \"update\", function () { }, false)) {\r\n // Only called if we hasRun was not true\r\n updateCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](updateState);\r\n }\r\n }\r\n return objFreeze(proxyChain);\r\n}\r\n/**\r\n * This class will be removed!\r\n * @deprecated use createProcessTelemetryContext() instead\r\n */\r\nvar ProcessTelemetryContext = /** @class */ (function () {\r\n /**\r\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\r\n * @param plugins - The plugin instances that will be executed\r\n * @param config - The current config\r\n * @param core - The current core instance\r\n */\r\n function ProcessTelemetryContext(pluginChain, config, core, startAt) {\r\n var _self = this;\r\n var context = createProcessTelemetryContext(pluginChain, config, core, startAt);\r\n // Proxy all functions of the context to this object\r\n proxyFunctions(_self, context, objKeys(context));\r\n }\r\n return ProcessTelemetryContext;\r\n}());\r\nexport { ProcessTelemetryContext };\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { strShimFunction, strShimPrototype } from \"@microsoft/applicationinsights-shims\";\r\nimport { _DYN_APPLY, _DYN_LENGTH, _DYN_NAME, _DYN_PUSH, _DYN_SPLICE } from \"../__DynamicConstants\";\r\nimport { getGlobalInst } from \"./EnvUtils\";\r\nimport { _getObjProto, hasOwnProperty } from \"./HelperFuncs\";\r\nvar aiInstrumentHooks = \"_aiHooks\";\r\nvar cbNames = [\r\n \"req\", \"rsp\", \"hkErr\", \"fnErr\"\r\n];\r\n/** @ignore */\r\nfunction _arrLoop(arr, fn) {\r\n if (arr) {\r\n for (var lp = 0; lp < arr[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n if (fn(arr[lp], lp)) {\r\n break;\r\n }\r\n }\r\n }\r\n}\r\n/** @ignore */\r\nfunction _doCallbacks(hooks, callDetails, cbArgs, hookCtx, type) {\r\n if (type >= 0 /* CallbackType.Request */ && type <= 2 /* CallbackType.HookError */) {\r\n _arrLoop(hooks, function (hook, idx) {\r\n var cbks = hook.cbks;\r\n var cb = cbks[cbNames[type]];\r\n if (cb) {\r\n // Set the specific hook context implementation using a lazy creation pattern\r\n callDetails.ctx = function () {\r\n var ctx = hookCtx[idx] = (hookCtx[idx] || {});\r\n return ctx;\r\n };\r\n try {\r\n cb[_DYN_APPLY /* @min:%2eapply */](callDetails.inst, cbArgs);\r\n }\r\n catch (err) {\r\n var orgEx = callDetails.err;\r\n try {\r\n // Report Hook error via the callback\r\n var hookErrorCb = cbks[cbNames[2 /* CallbackType.HookError */]];\r\n if (hookErrorCb) {\r\n callDetails.err = err;\r\n hookErrorCb[_DYN_APPLY /* @min:%2eapply */](callDetails.inst, cbArgs);\r\n }\r\n }\r\n catch (e) {\r\n // Not much we can do here -- swallowing the exception to avoid crashing the hosting app\r\n }\r\n finally {\r\n // restore the original exception (if any)\r\n callDetails.err = orgEx;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n}\r\n/** @ignore */\r\nfunction _createFunctionHook(aiHook) {\r\n // Define a temporary method that queues-up a the real method call\r\n return function () {\r\n var _a;\r\n var funcThis = this;\r\n // Capture the original arguments passed to the method\r\n var orgArgs = arguments;\r\n var hooks = aiHook.h;\r\n var funcArgs = (_a = {},\r\n _a[_DYN_NAME /* @min:name */] = aiHook.n,\r\n _a.inst = funcThis,\r\n _a.ctx = null,\r\n _a.set = _replaceArg,\r\n _a);\r\n var hookCtx = [];\r\n var cbArgs = _createArgs([funcArgs], orgArgs);\r\n funcArgs.evt = getGlobalInst(\"event\");\r\n function _createArgs(target, theArgs) {\r\n _arrLoop(theArgs, function (arg) {\r\n target[_DYN_PUSH /* @min:%2epush */](arg);\r\n });\r\n return target;\r\n }\r\n function _replaceArg(idx, value) {\r\n orgArgs = _createArgs([], orgArgs);\r\n orgArgs[idx] = value;\r\n cbArgs = _createArgs([funcArgs], orgArgs);\r\n }\r\n // Call the pre-request hooks\r\n _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 0 /* CallbackType.Request */);\r\n // Call the original function was called\r\n var theFunc = aiHook.f;\r\n if (theFunc) {\r\n try {\r\n funcArgs.rslt = theFunc[_DYN_APPLY /* @min:%2eapply */](funcThis, orgArgs);\r\n }\r\n catch (err) {\r\n // Report the request callback\r\n funcArgs.err = err;\r\n _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 3 /* CallbackType.FunctionError */);\r\n // rethrow the original exception so anyone listening for it can catch the exception\r\n throw err;\r\n }\r\n }\r\n // Call the post-request hooks\r\n _doCallbacks(hooks, funcArgs, cbArgs, hookCtx, 1 /* CallbackType.Response */);\r\n return funcArgs.rslt;\r\n };\r\n}\r\n/** @ignore */\r\nfunction _getOwner(target, name, checkPrototype, checkParentProto) {\r\n var owner = null;\r\n if (target) {\r\n if (hasOwnProperty(target, name)) {\r\n owner = target;\r\n }\r\n else if (checkPrototype) {\r\n owner = _getOwner(_getObjProto(target), name, checkParentProto, false);\r\n }\r\n }\r\n return owner;\r\n}\r\n/**\r\n * Intercept the named prototype functions for the target class / object\r\n * @param target - The target object\r\n * @param funcName - The function name\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n */\r\nexport function InstrumentProto(target, funcName, callbacks) {\r\n if (target) {\r\n return InstrumentFunc(target[strShimPrototype], funcName, callbacks, false);\r\n }\r\n return null;\r\n}\r\n/**\r\n * Intercept the named prototype functions for the target class / object\r\n * @param target - The target object\r\n * @param funcNames - The function names to intercept and call\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n */\r\nexport function InstrumentProtos(target, funcNames, callbacks) {\r\n if (target) {\r\n return InstrumentFuncs(target[strShimPrototype], funcNames, callbacks, false);\r\n }\r\n return null;\r\n}\r\nfunction _createInstrumentHook(owner, funcName, fn, callbacks) {\r\n var aiHook = fn && fn[aiInstrumentHooks];\r\n if (!aiHook) {\r\n // Only hook the function once\r\n aiHook = {\r\n i: 0,\r\n n: funcName,\r\n f: fn,\r\n h: []\r\n };\r\n // Override (hook) the original function\r\n var newFunc = _createFunctionHook(aiHook);\r\n newFunc[aiInstrumentHooks] = aiHook; // Tag and store the function hooks\r\n owner[funcName] = newFunc;\r\n }\r\n var theHook = {\r\n // tslint:disable:object-literal-shorthand\r\n id: aiHook.i,\r\n cbks: callbacks,\r\n rm: function () {\r\n // DO NOT Use () => { shorthand for the function as the this gets replaced\r\n // with the outer this and not the this for theHook instance.\r\n var id = this.id;\r\n _arrLoop(aiHook.h, function (hook, idx) {\r\n if (hook.id === id) {\r\n aiHook.h[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\r\n return 1;\r\n }\r\n });\r\n }\r\n // tslint:enable:object-literal-shorthand\r\n };\r\n aiHook.i++;\r\n aiHook.h[_DYN_PUSH /* @min:%2epush */](theHook);\r\n return theHook;\r\n}\r\n/**\r\n * Intercept the named prototype functions for the target class / object\r\n * @param target - The target object\r\n * @param funcName - The function name\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\r\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\r\n */\r\nexport function InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto) {\r\n if (checkPrototype === void 0) { checkPrototype = true; }\r\n if (target && funcName && callbacks) {\r\n var owner = _getOwner(target, funcName, checkPrototype, checkParentProto);\r\n if (owner) {\r\n var fn = owner[funcName];\r\n if (typeof fn === strShimFunction) {\r\n return _createInstrumentHook(owner, funcName, fn, callbacks);\r\n }\r\n }\r\n }\r\n return null;\r\n}\r\n/**\r\n * Intercept the named functions for the target class / object\r\n * @param target - The target object\r\n * @param funcNames - The function names to intercept and call\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\r\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\r\n */\r\nexport function InstrumentFuncs(target, funcNames, callbacks, checkPrototype, checkParentProto) {\r\n if (checkPrototype === void 0) { checkPrototype = true; }\r\n var hooks = null;\r\n _arrLoop(funcNames, function (funcName) {\r\n var hook = InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto);\r\n if (hook) {\r\n if (!hooks) {\r\n hooks = [];\r\n }\r\n hooks[_DYN_PUSH /* @min:%2epush */](hook);\r\n }\r\n });\r\n return hooks;\r\n}\r\n/**\r\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the\r\n * named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\r\n * @param target - The target object\r\n * @param evtName - The name of the event\r\n * @param callbacks - The callbacks to configure and call whenever the function is called\r\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\r\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\r\n */\r\nexport function InstrumentEvent(target, evtName, callbacks, checkPrototype, checkParentProto) {\r\n if (target && evtName && callbacks) {\r\n var owner = _getOwner(target, evtName, checkPrototype, checkParentProto) || target;\r\n if (owner) {\r\n return _createInstrumentHook(owner, evtName, owner[evtName], callbacks);\r\n }\r\n }\r\n return null;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _DYN_DIAG_LOG, _DYN_PUSH } from \"../__DynamicConstants\";\r\nimport { _throwInternal } from \"./DiagnosticLogger\";\r\nimport { dumpObj } from \"./EnvUtils\";\r\nimport { arrForEach } from \"./HelperFuncs\";\r\nexport function createUnloadHandlerContainer() {\r\n var handlers = [];\r\n function _addHandler(handler) {\r\n if (handler) {\r\n handlers[_DYN_PUSH /* @min:%2epush */](handler);\r\n }\r\n }\r\n function _runHandlers(unloadCtx, unloadState) {\r\n arrForEach(handlers, function (handler) {\r\n try {\r\n handler(unloadCtx, unloadState);\r\n }\r\n catch (e) {\r\n _throwInternal(unloadCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, \"Unexpected error calling unload handler - \" + dumpObj(e));\r\n }\r\n });\r\n handlers = [];\r\n }\r\n return {\r\n add: _addHandler,\r\n run: _runHandlers\r\n };\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _DYN_CREATE_NEW, _DYN_DIAG_LOG, _DYN_GET_NEXT, _DYN_GET_PROCESS_TEL_CONT0, _DYN_INITIALIZE, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_SET_NEXT_PLUGIN, _DYN_TEARDOWN, _DYN_UPDATE, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\r\nimport { arrForEach, isArray, isFunction, isNullOrUndefined, proxyFunctionAs, setValue } from \"./HelperFuncs\";\r\nimport { STR_CORE, STR_EXTENSION_CONFIG, STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\r\nimport { createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext } from \"./ProcessTelemetryContext\";\r\nimport { createUnloadHandlerContainer } from \"./UnloadHandlerContainer\";\r\nvar strGetPlugin = \"getPlugin\";\r\n/**\r\n * BaseTelemetryPlugin provides a basic implementation of the ITelemetryPlugin interface so that plugins\r\n * can avoid implementation the same set of boiler plate code as well as provide a base\r\n * implementation so that new default implementations can be added without breaking all plugins.\r\n */\r\nvar BaseTelemetryPlugin = /** @class */ (function () {\r\n function BaseTelemetryPlugin() {\r\n var _self = this; // Setting _self here as it's used outside of the dynamicProto as well\r\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\r\n var _isinitialized;\r\n var _rootCtx; // Used as the root context, holding the current config and initialized core\r\n var _nextPlugin; // Used for backward compatibility where plugins don't call the main pipeline\r\n var _unloadHandlerContainer;\r\n var _hooks;\r\n _initDefaults();\r\n dynamicProto(BaseTelemetryPlugin, _self, function (_self) {\r\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, core, extensions, pluginChain) {\r\n _setDefaults(config, core, pluginChain);\r\n _isinitialized = true;\r\n };\r\n _self[_DYN_TEARDOWN /* @min:%2eteardown */] = function (unloadCtx, unloadState) {\r\n var _a;\r\n // If this plugin has already been torn down (not operational) or is not initialized (core is not set)\r\n // or the core being used for unload was not the same core used for initialization.\r\n var core = _self[STR_CORE /* @min:%2ecore */];\r\n if (!core || (unloadCtx && core !== unloadCtx[STR_CORE /* @min:%2ecore */]())) {\r\n // Do Nothing as either the plugin is not initialized or was not initialized by the current core\r\n return;\r\n }\r\n var result;\r\n var unloadDone = false;\r\n var theUnloadCtx = unloadCtx || createProcessTelemetryUnloadContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);\r\n var theUnloadState = unloadState || (_a = {\r\n reason: 0 /* TelemetryUnloadReason.ManualTeardown */\r\n },\r\n _a[_DYN_IS_ASYNC /* @min:isAsync */] = false,\r\n _a);\r\n function _unloadCallback() {\r\n if (!unloadDone) {\r\n unloadDone = true;\r\n _unloadHandlerContainer.run(theUnloadCtx, unloadState);\r\n var oldHooks = _hooks;\r\n _hooks = [];\r\n // Remove all instrumentation hooks\r\n arrForEach(oldHooks, function (fn) {\r\n fn.rm();\r\n });\r\n if (result === true) {\r\n theUnloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUnloadState);\r\n }\r\n _initDefaults();\r\n }\r\n }\r\n if (!_self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */] || _self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */](theUnloadCtx, theUnloadState, _unloadCallback) !== true) {\r\n _unloadCallback();\r\n }\r\n else {\r\n // Tell the caller that we will be calling processNext()\r\n result = true;\r\n }\r\n return result;\r\n };\r\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function (updateCtx, updateState) {\r\n // If this plugin has already been torn down (not operational) or is not initialized (core is not set)\r\n // or the core being used for unload was not the same core used for initialization.\r\n var core = _self[STR_CORE /* @min:%2ecore */];\r\n if (!core || (updateCtx && core !== updateCtx[STR_CORE /* @min:%2ecore */]())) {\r\n // Do Nothing\r\n return;\r\n }\r\n var result;\r\n var updateDone = false;\r\n var theUpdateCtx = updateCtx || createProcessTelemetryUpdateContext(null, core, _nextPlugin && _nextPlugin[strGetPlugin] ? _nextPlugin[strGetPlugin]() : _nextPlugin);\r\n var theUpdateState = updateState || {\r\n reason: 0 /* TelemetryUpdateReason.Unknown */\r\n };\r\n function _updateCallback() {\r\n if (!updateDone) {\r\n updateDone = true;\r\n _setDefaults(theUpdateCtx.getCfg(), theUpdateCtx.core(), theUpdateCtx[_DYN_GET_NEXT /* @min:%2egetNext */]());\r\n }\r\n }\r\n if (!_self._doUpdate || _self._doUpdate(theUpdateCtx, theUpdateState, _updateCallback) !== true) {\r\n _updateCallback();\r\n }\r\n else {\r\n result = true;\r\n }\r\n return result;\r\n };\r\n _self._addHook = function (hooks) {\r\n if (hooks) {\r\n if (isArray(hooks)) {\r\n _hooks = _hooks.concat(hooks);\r\n }\r\n else {\r\n _hooks[_DYN_PUSH /* @min:%2epush */](hooks);\r\n }\r\n }\r\n };\r\n proxyFunctionAs(_self, \"_addUnloadCb\", function () { return _unloadHandlerContainer; }, \"add\");\r\n });\r\n // These are added after the dynamicProto so that are not moved to the prototype\r\n _self[_DYN_DIAG_LOG /* @min:%2ediagLog */] = function (itemCtx) {\r\n return _getTelCtx(itemCtx)[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\r\n };\r\n _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = function () {\r\n return _isinitialized;\r\n };\r\n _self.setInitialized = function (isInitialized) {\r\n _isinitialized = isInitialized;\r\n };\r\n // _self.getNextPlugin = () => DO NOT IMPLEMENT\r\n // Sub-classes of this base class *should* not be relying on this value and instead\r\n // should use processNext() function. If you require access to the plugin use the\r\n // IProcessTelemetryContext.getNext().getPlugin() while in the pipeline, Note getNext() may return null.\r\n _self[_DYN_SET_NEXT_PLUGIN /* @min:%2esetNextPlugin */] = function (next) {\r\n _nextPlugin = next;\r\n };\r\n _self[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */] = function (env, itemCtx) {\r\n if (itemCtx) {\r\n // Normal core execution sequence\r\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](env);\r\n }\r\n else if (_nextPlugin && isFunction(_nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */])) {\r\n // Looks like backward compatibility or out of band processing. And as it looks\r\n // like a ITelemetryPlugin or ITelemetryPluginChain, just call processTelemetry\r\n _nextPlugin[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */](env, null);\r\n }\r\n };\r\n _self._getTelCtx = _getTelCtx;\r\n function _getTelCtx(currentCtx) {\r\n if (currentCtx === void 0) { currentCtx = null; }\r\n var itemCtx = currentCtx;\r\n if (!itemCtx) {\r\n var rootCtx = _rootCtx || createProcessTelemetryContext(null, {}, _self[STR_CORE /* @min:%2ecore */]);\r\n // tslint:disable-next-line: prefer-conditional-expression\r\n if (_nextPlugin && _nextPlugin[strGetPlugin]) {\r\n // Looks like a chain object\r\n itemCtx = rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](null, _nextPlugin[strGetPlugin]);\r\n }\r\n else {\r\n itemCtx = rootCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](null, _nextPlugin);\r\n }\r\n }\r\n return itemCtx;\r\n }\r\n function _setDefaults(config, core, pluginChain) {\r\n if (config) {\r\n // Make sure the extensionConfig exists\r\n setValue(config, STR_EXTENSION_CONFIG, [], null, isNullOrUndefined);\r\n }\r\n if (!pluginChain && core) {\r\n // Get the first plugin from the core\r\n pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 /* @min:%2egetProcessTelContext */]()[_DYN_GET_NEXT /* @min:%2egetNext */]();\r\n }\r\n var nextPlugin = _nextPlugin;\r\n if (_nextPlugin && _nextPlugin[strGetPlugin]) {\r\n // If it looks like a proxy/chain then get the plugin\r\n nextPlugin = _nextPlugin[strGetPlugin]();\r\n }\r\n // Support legacy plugins where core was defined as a property\r\n _self[STR_CORE /* @min:%2ecore */] = core;\r\n _rootCtx = createProcessTelemetryContext(pluginChain, config, core, nextPlugin);\r\n }\r\n function _initDefaults() {\r\n _isinitialized = false;\r\n _self[STR_CORE /* @min:%2ecore */] = null;\r\n _rootCtx = null;\r\n _nextPlugin = null;\r\n _hooks = [];\r\n _unloadHandlerContainer = createUnloadHandlerContainer();\r\n }\r\n }\r\n// Removed Stub for BaseTelemetryPlugin.prototype.initialize.\r\n// Removed Stub for BaseTelemetryPlugin.prototype.teardown.\r\n// Removed Stub for BaseTelemetryPlugin.prototype.update.\r\n// Removed Stub for BaseTelemetryPlugin.prototype._addUnloadCb.\r\n// Removed Stub for BaseTelemetryPlugin.prototype._addHook.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n BaseTelemetryPlugin.__ieDyn=1;\n\n return BaseTelemetryPlugin;\r\n}());\r\nexport { BaseTelemetryPlugin };\r\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_STRING = \"toString\"; // Count: 4\r\nexport var _DYN_DISABLE_EXCEPTION_TR0 = \"disableExceptionTracking\"; // Count: 3\r\nexport var _DYN_AUTO_TRACK_PAGE_VISI1 = \"autoTrackPageVisitTime\"; // Count: 4\r\nexport var _DYN_OVERRIDE_PAGE_VIEW_D2 = \"overridePageViewDuration\"; // Count: 3\r\nexport var _DYN_ENABLE_UNHANDLED_PRO3 = \"enableUnhandledPromiseRejectionTracking\"; // Count: 3\r\nexport var _DYN_SAMPLING_PERCENTAGE = \"samplingPercentage\"; // Count: 4\r\nexport var _DYN_IS_STORAGE_USE_DISAB4 = \"isStorageUseDisabled\"; // Count: 4\r\nexport var _DYN_IS_BROWSER_LINK_TRAC5 = \"isBrowserLinkTrackingEnabled\"; // Count: 4\r\nexport var _DYN_ENABLE_AUTO_ROUTE_TR6 = \"enableAutoRouteTracking\"; // Count: 3\r\nexport var _DYN_NAME_PREFIX = \"namePrefix\"; // Count: 3\r\nexport var _DYN_DISABLE_FLUSH_ON_BEF7 = \"disableFlushOnBeforeUnload\"; // Count: 3\r\nexport var _DYN_DISABLE_FLUSH_ON_UNL8 = \"disableFlushOnUnload\"; // Count: 2\r\nexport var _DYN_CORE = \"core\"; // Count: 7\r\nexport var _DYN_DATA_TYPE = \"dataType\"; // Count: 8\r\nexport var _DYN_ENVELOPE_TYPE = \"envelopeType\"; // Count: 7\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 13\r\nexport var _DYN_TRACK = \"track\"; // Count: 7\r\nexport var _DYN_TRACK_PAGE_VIEW = \"trackPageView\"; // Count: 4\r\nexport var _DYN_TRACK_PREVIOUS_PAGE_9 = \"trackPreviousPageVisit\"; // Count: 3\r\nexport var _DYN_SEND_PAGE_VIEW_INTER10 = \"sendPageViewInternal\"; // Count: 7\r\nexport var _DYN_SEND_PAGE_VIEW_PERFO11 = \"sendPageViewPerformanceInternal\"; // Count: 3\r\nexport var _DYN_POPULATE_PAGE_VIEW_P12 = \"populatePageViewPerformanceEvent\"; // Count: 3\r\nexport var _DYN_HREF = \"href\"; // Count: 6\r\nexport var _DYN_SEND_EXCEPTION_INTER13 = \"sendExceptionInternal\"; // Count: 2\r\nexport var _DYN_EXCEPTION = \"exception\"; // Count: 3\r\nexport var _DYN_ERROR = \"error\"; // Count: 5\r\nexport var _DYN__ONERROR = \"_onerror\"; // Count: 3\r\nexport var _DYN_ERROR_SRC = \"errorSrc\"; // Count: 3\r\nexport var _DYN_LINE_NUMBER = \"lineNumber\"; // Count: 5\r\nexport var _DYN_COLUMN_NUMBER = \"columnNumber\"; // Count: 5\r\nexport var _DYN_MESSAGE = \"message\"; // Count: 4\r\nexport var _DYN__CREATE_AUTO_EXCEPTI14 = \"CreateAutoException\"; // Count: 3\r\nexport var _DYN_ADD_TELEMETRY_INITIA15 = \"addTelemetryInitializer\"; // Count: 4\r\nexport var _DYN_DURATION = \"duration\"; // Count: 10\r\nexport var _DYN_LENGTH = \"length\"; // Count: 5\r\nexport var _DYN_IS_PERFORMANCE_TIMIN16 = \"isPerformanceTimingSupported\"; // Count: 2\r\nexport var _DYN_GET_PERFORMANCE_TIMI17 = \"getPerformanceTiming\"; // Count: 2\r\nexport var _DYN_NAVIGATION_START = \"navigationStart\"; // Count: 4\r\nexport var _DYN_SHOULD_COLLECT_DURAT18 = \"shouldCollectDuration\"; // Count: 3\r\nexport var _DYN_IS_PERFORMANCE_TIMIN19 = \"isPerformanceTimingDataReady\"; // Count: 2\r\nexport var _DYN_GET_ENTRIES_BY_TYPE = \"getEntriesByType\"; // Count: 3\r\nexport var _DYN_RESPONSE_START = \"responseStart\"; // Count: 5\r\nexport var _DYN_REQUEST_START = \"requestStart\"; // Count: 3\r\nexport var _DYN_LOAD_EVENT_END = \"loadEventEnd\"; // Count: 4\r\nexport var _DYN_RESPONSE_END = \"responseEnd\"; // Count: 5\r\nexport var _DYN_CONNECT_END = \"connectEnd\"; // Count: 4\r\nexport var _DYN_PAGE_VISIT_START_TIM20 = \"pageVisitStartTime\"; // Count: 2\r\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { dateTimeUtilsDuration } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal, arrForEach, dumpObj, getDocument, getExceptionName, getLocation, isNullOrUndefined } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_DURATION, _DYN_GET_PERFORMANCE_TIMI17, _DYN_HREF, _DYN_IS_PERFORMANCE_TIMIN16, _DYN_IS_PERFORMANCE_TIMIN19, _DYN_LENGTH, _DYN_NAVIGATION_START, _DYN_POPULATE_PAGE_VIEW_P12, _DYN_SEND_PAGE_VIEW_INTER10, _DYN_SEND_PAGE_VIEW_PERFO11, _DYN_SHOULD_COLLECT_DURAT18, _DYN_TRACK_PAGE_VIEW } from \"../../__DynamicConstants\";\r\nvar _isWebWorker = null;\r\nfunction isWebWorker() {\r\n if (_isWebWorker == null) {\r\n try {\r\n _isWebWorker = !!(self && self instanceof WorkerGlobalScope);\r\n }\r\n catch (e) {\r\n _isWebWorker = false;\r\n }\r\n }\r\n return _isWebWorker;\r\n}\r\n/**\r\n * Class encapsulates sending page views and page view performance telemetry.\r\n */\r\nvar PageViewManager = /** @class */ (function () {\r\n function PageViewManager(appInsights, overridePageViewDuration, core, pageViewPerformanceManager) {\r\n dynamicProto(PageViewManager, this, function (_self) {\r\n var queueTimer = null;\r\n var itemQueue = [];\r\n var pageViewPerformanceSent = false;\r\n var _logger;\r\n if (core) {\r\n _logger = core.logger;\r\n }\r\n function _flushChannels(isAsync) {\r\n if (core) {\r\n core.flush(isAsync);\r\n }\r\n }\r\n function _startTimer() {\r\n if (!queueTimer) {\r\n queueTimer = setTimeout((function () {\r\n queueTimer = null;\r\n var allItems = itemQueue.slice(0);\r\n var doFlush = false;\r\n itemQueue = [];\r\n arrForEach(allItems, function (item) {\r\n if (!item()) {\r\n // Not processed so rescheduled\r\n itemQueue.push(item);\r\n }\r\n else {\r\n doFlush = true;\r\n }\r\n });\r\n if (itemQueue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n _startTimer();\r\n }\r\n if (doFlush) {\r\n // We process at least one item so flush the queue\r\n _flushChannels(true);\r\n }\r\n }), 100);\r\n }\r\n }\r\n function _addQueue(cb) {\r\n itemQueue.push(cb);\r\n _startTimer();\r\n }\r\n _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */] = function (pageView, customProperties) {\r\n var name = pageView.name;\r\n if (isNullOrUndefined(name) || typeof name !== \"string\") {\r\n var doc = getDocument();\r\n name = pageView.name = doc && doc.title || \"\";\r\n }\r\n var uri = pageView.uri;\r\n if (isNullOrUndefined(uri) || typeof uri !== \"string\") {\r\n var location_1 = getLocation();\r\n uri = pageView.uri = location_1 && location_1[_DYN_HREF /* @min:%2ehref */] || \"\";\r\n }\r\n // case 1a. if performance timing is not supported by the browser, send the page view telemetry with the duration provided by the user. If the user\r\n // do not provide the duration, set duration to undefined\r\n // Also this is case 4\r\n if (!pageViewPerformanceManager[_DYN_IS_PERFORMANCE_TIMIN16 /* @min:%2eisPerformanceTimingSupported */]()) {\r\n appInsights[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */](pageView, customProperties);\r\n _flushChannels(true);\r\n if (!isWebWorker()) {\r\n // no navigation timing (IE 8, iOS Safari 8.4, Opera Mini 8 - see http://caniuse.com/#feat=nav-timing)\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 25 /* _eInternalMessageId.NavigationTimingNotSupported */, \"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.\");\r\n }\r\n return;\r\n }\r\n var pageViewSent = false;\r\n var customDuration;\r\n // if the performance timing is supported by the browser, calculate the custom duration\r\n var start = pageViewPerformanceManager[_DYN_GET_PERFORMANCE_TIMI17 /* @min:%2egetPerformanceTiming */]()[_DYN_NAVIGATION_START /* @min:%2enavigationStart */];\r\n if (start > 0) {\r\n customDuration = dateTimeUtilsDuration(start, +new Date);\r\n if (!pageViewPerformanceManager[_DYN_SHOULD_COLLECT_DURAT18 /* @min:%2eshouldCollectDuration */](customDuration)) {\r\n customDuration = undefined;\r\n }\r\n }\r\n // if the user has provided duration, send a page view telemetry with the provided duration. Otherwise, if\r\n // overridePageViewDuration is set to true, send a page view telemetry with the custom duration calculated earlier\r\n var duration;\r\n if (!isNullOrUndefined(customProperties) &&\r\n !isNullOrUndefined(customProperties[_DYN_DURATION /* @min:%2eduration */])) {\r\n duration = customProperties[_DYN_DURATION /* @min:%2eduration */];\r\n }\r\n if (overridePageViewDuration || !isNaN(duration)) {\r\n if (isNaN(duration)) {\r\n // case 3\r\n if (!customProperties) {\r\n customProperties = {};\r\n }\r\n customProperties[_DYN_DURATION /* @min:%2eduration */] = customDuration;\r\n }\r\n // case 2\r\n appInsights[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */](pageView, customProperties);\r\n _flushChannels(true);\r\n pageViewSent = true;\r\n }\r\n // now try to send the page view performance telemetry\r\n var maxDurationLimit = 60000;\r\n if (!customProperties) {\r\n customProperties = {};\r\n }\r\n // Queue the event for processing\r\n _addQueue(function () {\r\n var processed = false;\r\n try {\r\n if (pageViewPerformanceManager[_DYN_IS_PERFORMANCE_TIMIN19 /* @min:%2eisPerformanceTimingDataReady */]()) {\r\n processed = true;\r\n var pageViewPerformance = {\r\n name: name,\r\n uri: uri\r\n };\r\n pageViewPerformanceManager[_DYN_POPULATE_PAGE_VIEW_P12 /* @min:%2epopulatePageViewPerformanceEvent */](pageViewPerformance);\r\n if (!pageViewPerformance.isValid && !pageViewSent) {\r\n // If navigation timing gives invalid numbers, then go back to \"override page view duration\" mode.\r\n // That's the best value we can get that makes sense.\r\n customProperties[_DYN_DURATION /* @min:%2eduration */] = customDuration;\r\n appInsights[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */](pageView, customProperties);\r\n }\r\n else {\r\n if (!pageViewSent) {\r\n customProperties[_DYN_DURATION /* @min:%2eduration */] = pageViewPerformance.durationMs;\r\n appInsights[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */](pageView, customProperties);\r\n }\r\n if (!pageViewPerformanceSent) {\r\n appInsights[_DYN_SEND_PAGE_VIEW_PERFO11 /* @min:%2esendPageViewPerformanceInternal */](pageViewPerformance, customProperties);\r\n pageViewPerformanceSent = true;\r\n }\r\n }\r\n }\r\n else if (start > 0 && dateTimeUtilsDuration(start, +new Date) > maxDurationLimit) {\r\n // if performance timings are not ready but we exceeded the maximum duration limit, just log a page view telemetry\r\n // with the maximum duration limit. Otherwise, keep waiting until performance timings are ready\r\n processed = true;\r\n if (!pageViewSent) {\r\n customProperties[_DYN_DURATION /* @min:%2eduration */] = maxDurationLimit;\r\n appInsights[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */](pageView, customProperties);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(_logger, 1 /* eLoggingSeverity.CRITICAL */, 38 /* _eInternalMessageId.TrackPVFailedCalc */, \"trackPageView failed on page load calculation: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n return processed;\r\n });\r\n };\r\n _self.teardown = function (unloadCtx, unloadState) {\r\n if (queueTimer) {\r\n clearTimeout(queueTimer);\r\n queueTimer = null;\r\n var allItems = itemQueue.slice(0);\r\n var doFlush_1 = false;\r\n itemQueue = [];\r\n arrForEach(allItems, function (item) {\r\n if (item()) {\r\n doFlush_1 = true;\r\n }\r\n });\r\n }\r\n };\r\n });\r\n }\r\n// Removed Stub for PageViewManager.prototype.trackPageView.\r\n// Removed Stub for PageViewManager.prototype.teardown.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n PageViewManager.__ieDyn=1;\n\n return PageViewManager;\r\n}());\r\nexport { PageViewManager };\r\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { dateTimeUtilsDuration, msToTimeSpan } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal, getNavigator, getPerformance, safeGetLogger } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_CONNECT_END, _DYN_DURATION, _DYN_GET_ENTRIES_BY_TYPE, _DYN_GET_PERFORMANCE_TIMI17, _DYN_IS_PERFORMANCE_TIMIN16, _DYN_IS_PERFORMANCE_TIMIN19, _DYN_LENGTH, _DYN_LOAD_EVENT_END, _DYN_NAVIGATION_START, _DYN_POPULATE_PAGE_VIEW_P12, _DYN_REQUEST_START, _DYN_RESPONSE_END, _DYN_RESPONSE_START, _DYN_SHOULD_COLLECT_DURAT18 } from \"../../__DynamicConstants\";\r\nvar MAX_DURATION_ALLOWED = 3600000; // 1h\r\nvar botAgentNames = [\"googlebot\", \"adsbot-google\", \"apis-google\", \"mediapartners-google\"];\r\nfunction _isPerformanceTimingSupported() {\r\n var perf = getPerformance();\r\n return perf && !!perf.timing;\r\n}\r\nfunction _isPerformanceNavigationTimingSupported() {\r\n var perf = getPerformance();\r\n return perf && perf.getEntriesByType && perf.getEntriesByType(\"navigation\")[_DYN_LENGTH /* @min:%2elength */] > 0;\r\n}\r\nfunction _isPerformanceTimingDataReady() {\r\n var perf = getPerformance();\r\n var timing = perf ? perf.timing : 0;\r\n return timing\r\n && timing.domainLookupStart > 0\r\n && timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */] > 0\r\n && timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */] > 0\r\n && timing[_DYN_REQUEST_START /* @min:%2erequestStart */] > 0\r\n && timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */] > 0\r\n && timing[_DYN_RESPONSE_END /* @min:%2eresponseEnd */] > 0\r\n && timing[_DYN_CONNECT_END /* @min:%2econnectEnd */] > 0\r\n && timing.domLoading > 0;\r\n}\r\nfunction _getPerformanceTiming() {\r\n if (_isPerformanceTimingSupported()) {\r\n return getPerformance().timing;\r\n }\r\n return null;\r\n}\r\nfunction _getPerformanceNavigationTiming() {\r\n if (_isPerformanceNavigationTimingSupported()) {\r\n return getPerformance()[_DYN_GET_ENTRIES_BY_TYPE /* @min:%2egetEntriesByType */](\"navigation\")[0];\r\n }\r\n return null;\r\n}\r\n/**\r\n* This method tells if given durations should be excluded from collection.\r\n*/\r\nfunction _shouldCollectDuration() {\r\n var durations = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n durations[_i] = arguments[_i];\r\n }\r\n var _navigator = getNavigator() || {};\r\n // a full list of Google crawlers user agent strings - https://support.google.com/webmasters/answer/1061943?hl=en\r\n var userAgent = _navigator.userAgent;\r\n var isGoogleBot = false;\r\n if (userAgent) {\r\n for (var i = 0; i < botAgentNames[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n isGoogleBot = isGoogleBot || userAgent.toLowerCase().indexOf(botAgentNames[i]) !== -1;\r\n }\r\n }\r\n if (isGoogleBot) {\r\n // Don't report durations for GoogleBot, it is returning invalid values in performance.timing API.\r\n return false;\r\n }\r\n else {\r\n // for other page views, don't report if it's outside of a reasonable range\r\n for (var i = 0; i < durations[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n if (durations[i] < 0 || durations[i] >= MAX_DURATION_ALLOWED) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n}\r\n/**\r\n * Class encapsulates sending page view performance telemetry.\r\n */\r\nvar PageViewPerformanceManager = /** @class */ (function () {\r\n function PageViewPerformanceManager(core) {\r\n var _logger = safeGetLogger(core);\r\n dynamicProto(PageViewPerformanceManager, this, function (_self) {\r\n _self[_DYN_POPULATE_PAGE_VIEW_P12 /* @min:%2epopulatePageViewPerformanceEvent */] = function (pageViewPerformance) {\r\n pageViewPerformance.isValid = false;\r\n /*\r\n * http://www.w3.org/TR/navigation-timing/#processing-model\r\n * |-navigationStart\r\n * | |-connectEnd\r\n * | ||-requestStart\r\n * | || |-responseStart\r\n * | || | |-responseEnd\r\n * | || | |\r\n * | || | | |-loadEventEnd\r\n * |---network---||---request---|---response---|---dom---|\r\n * |--------------------------total----------------------|\r\n *\r\n * total = The difference between the load event of the current document is completed and the first recorded timestamp of the performance entry : https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings#duration\r\n * network = Redirect time + App Cache + DNS lookup time + TCP connection time\r\n * request = Request time : https://developer.mozilla.org/en-US/docs/Web/Performance/Navigation_and_resource_timings#request_time\r\n * response = Response time\r\n * dom = Document load time : https://html.spec.whatwg.org/multipage/dom.html#document-load-timing-info\r\n * = Document processing time : https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing/#document_processing\r\n * + Loading time : https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing/#loading\r\n */\r\n var navigationTiming = _getPerformanceNavigationTiming();\r\n var timing = _getPerformanceTiming();\r\n var total = 0;\r\n var network = 0;\r\n var request = 0;\r\n var response = 0;\r\n var dom = 0;\r\n if (navigationTiming || timing) {\r\n if (navigationTiming) {\r\n total = navigationTiming[_DYN_DURATION /* @min:%2eduration */];\r\n /**\r\n * support both cases:\r\n * - startTime is always zero: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming\r\n * - for older browsers where the startTime is not zero\r\n */\r\n network = navigationTiming.startTime === 0 ? navigationTiming[_DYN_CONNECT_END /* @min:%2econnectEnd */] : dateTimeUtilsDuration(navigationTiming.startTime, navigationTiming[_DYN_CONNECT_END /* @min:%2econnectEnd */]);\r\n request = dateTimeUtilsDuration(navigationTiming.requestStart, navigationTiming[_DYN_RESPONSE_START /* @min:%2eresponseStart */]);\r\n response = dateTimeUtilsDuration(navigationTiming[_DYN_RESPONSE_START /* @min:%2eresponseStart */], navigationTiming[_DYN_RESPONSE_END /* @min:%2eresponseEnd */]);\r\n dom = dateTimeUtilsDuration(navigationTiming.responseEnd, navigationTiming[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);\r\n }\r\n else {\r\n total = dateTimeUtilsDuration(timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */], timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);\r\n network = dateTimeUtilsDuration(timing[_DYN_NAVIGATION_START /* @min:%2enavigationStart */], timing[_DYN_CONNECT_END /* @min:%2econnectEnd */]);\r\n request = dateTimeUtilsDuration(timing.requestStart, timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */]);\r\n response = dateTimeUtilsDuration(timing[_DYN_RESPONSE_START /* @min:%2eresponseStart */], timing[_DYN_RESPONSE_END /* @min:%2eresponseEnd */]);\r\n dom = dateTimeUtilsDuration(timing.responseEnd, timing[_DYN_LOAD_EVENT_END /* @min:%2eloadEventEnd */]);\r\n }\r\n if (total === 0) {\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 10 /* _eInternalMessageId.ErrorPVCalc */, \"error calculating page view performance.\", { total: total, network: network, request: request, response: response, dom: dom });\r\n }\r\n else if (!_self[_DYN_SHOULD_COLLECT_DURAT18 /* @min:%2eshouldCollectDuration */](total, network, request, response, dom)) {\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 45 /* _eInternalMessageId.InvalidDurationValue */, \"Invalid page load duration value. Browser perf data won't be sent.\", { total: total, network: network, request: request, response: response, dom: dom });\r\n }\r\n else if (total < Math.floor(network) + Math.floor(request) + Math.floor(response) + Math.floor(dom)) {\r\n // some browsers may report individual components incorrectly so that the sum of the parts will be bigger than total PLT\r\n // in this case, don't report client performance from this page\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 8 /* _eInternalMessageId.ClientPerformanceMathError */, \"client performance math error.\", { total: total, network: network, request: request, response: response, dom: dom });\r\n }\r\n else {\r\n pageViewPerformance.durationMs = total;\r\n // // convert to timespans\r\n pageViewPerformance.perfTotal = pageViewPerformance[_DYN_DURATION /* @min:%2eduration */] = msToTimeSpan(total);\r\n pageViewPerformance.networkConnect = msToTimeSpan(network);\r\n pageViewPerformance.sentRequest = msToTimeSpan(request);\r\n pageViewPerformance.receivedResponse = msToTimeSpan(response);\r\n pageViewPerformance.domProcessing = msToTimeSpan(dom);\r\n pageViewPerformance.isValid = true;\r\n }\r\n }\r\n };\r\n _self[_DYN_GET_PERFORMANCE_TIMI17 /* @min:%2egetPerformanceTiming */] = _getPerformanceTiming;\r\n _self[_DYN_IS_PERFORMANCE_TIMIN16 /* @min:%2eisPerformanceTimingSupported */] = _isPerformanceTimingSupported;\r\n _self[_DYN_IS_PERFORMANCE_TIMIN19 /* @min:%2eisPerformanceTimingDataReady */] = _isPerformanceTimingDataReady;\r\n _self[_DYN_SHOULD_COLLECT_DURAT18 /* @min:%2eshouldCollectDuration */] = _shouldCollectDuration;\r\n });\r\n }\r\n// Removed Stub for PageViewPerformanceManager.prototype.populatePageViewPerformanceEvent.\r\n// Removed Stub for PageViewPerformanceManager.prototype.getPerformanceTiming.\r\n// Removed Stub for PageViewPerformanceManager.prototype.isPerformanceTimingSupported.\r\n// Removed Stub for PageViewPerformanceManager.prototype.isPerformanceTimingDataReady.\r\n// Removed Stub for PageViewPerformanceManager.prototype.shouldCollectDuration.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n PageViewPerformanceManager.__ieDyn=1;\n\n return PageViewPerformanceManager;\r\n}());\r\nexport { PageViewPerformanceManager };\r\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { utlCanUseSessionStorage, utlGetSessionStorage, utlRemoveSessionStorage, utlSetSessionStorage } from \"@microsoft/applicationinsights-common\";\r\nimport { _warnToConsole, dateNow, dumpObj, getJSON, hasJSON, objDefineAccessors, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_PAGE_VISIT_START_TIM20, _DYN_TRACK_PREVIOUS_PAGE_9 } from \"../../__DynamicConstants\";\r\n/**\r\n * Used to track page visit durations\r\n */\r\nvar PageVisitTimeManager = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of PageVisitTimeManager\r\n * @param pageVisitTimeTrackingHandler Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)\r\n * @returns {}\r\n */\r\n function PageVisitTimeManager(logger, pageVisitTimeTrackingHandler) {\r\n var prevPageVisitDataKeyName = \"prevPageVisitData\";\r\n dynamicProto(PageVisitTimeManager, this, function (_self) {\r\n _self[_DYN_TRACK_PREVIOUS_PAGE_9 /* @min:%2etrackPreviousPageVisit */] = function (currentPageName, currentPageUrl) {\r\n try {\r\n // Restart timer for new page view\r\n var prevPageVisitTimeData = restartPageVisitTimer(currentPageName, currentPageUrl);\r\n // If there was a page already being timed, track the visit time for it now.\r\n if (prevPageVisitTimeData) {\r\n pageVisitTimeTrackingHandler(prevPageVisitTimeData.pageName, prevPageVisitTimeData.pageUrl, prevPageVisitTimeData.pageVisitTime);\r\n }\r\n }\r\n catch (e) {\r\n _warnToConsole(logger, \"Auto track page visit time failed, metric will not be collected: \" + dumpObj(e));\r\n }\r\n };\r\n /**\r\n * Stops timing of current page (if exists) and starts timing for duration of visit to pageName\r\n * @param pageName Name of page to begin timing visit duration\r\n * @returns {PageVisitData} Page visit data (including duration) of pageName from last call to start or restart, if exists. Null if not.\r\n */\r\n function restartPageVisitTimer(pageName, pageUrl) {\r\n var prevPageVisitData = null;\r\n try {\r\n prevPageVisitData = stopPageVisitTimer();\r\n startPageVisitTimer(pageName, pageUrl);\r\n }\r\n catch (e) {\r\n _warnToConsole(logger, \"Call to restart failed: \" + dumpObj(e));\r\n prevPageVisitData = null;\r\n }\r\n return prevPageVisitData;\r\n }\r\n /**\r\n * Starts timing visit duration of pageName\r\n * @param pageName\r\n * @returns {}\r\n */\r\n function startPageVisitTimer(pageName, pageUrl) {\r\n try {\r\n if (utlCanUseSessionStorage()) {\r\n if (utlGetSessionStorage(logger, prevPageVisitDataKeyName) != null) {\r\n throwError(\"Cannot call startPageVisit consecutively without first calling stopPageVisit\");\r\n }\r\n var currPageVisitData = new PageVisitData(pageName, pageUrl);\r\n var currPageVisitDataStr = getJSON().stringify(currPageVisitData);\r\n utlSetSessionStorage(logger, prevPageVisitDataKeyName, currPageVisitDataStr);\r\n }\r\n }\r\n catch (e) {\r\n // TODO: Remove this catch in next phase, since if start is called twice in a row the exception needs to be propagated out\r\n _warnToConsole(logger, \"Call to start failed: \" + dumpObj(e));\r\n }\r\n }\r\n /**\r\n * Stops timing of current page, if exists.\r\n * @returns {PageVisitData} Page visit data (including duration) of pageName from call to start, if exists. Null if not.\r\n */\r\n function stopPageVisitTimer() {\r\n var prevPageVisitData = null;\r\n try {\r\n if (utlCanUseSessionStorage()) {\r\n // Define end time of page's visit\r\n var pageVisitEndTime = dateNow();\r\n // Try to retrieve page name and start time from session storage\r\n var pageVisitDataJsonStr = utlGetSessionStorage(logger, prevPageVisitDataKeyName);\r\n if (pageVisitDataJsonStr && hasJSON()) {\r\n // if previous page data exists, set end time of visit\r\n prevPageVisitData = getJSON().parse(pageVisitDataJsonStr);\r\n prevPageVisitData.pageVisitTime = pageVisitEndTime - prevPageVisitData[_DYN_PAGE_VISIT_START_TIM20 /* @min:%2epageVisitStartTime */];\r\n // Remove data from storage since we already used it\r\n utlRemoveSessionStorage(logger, prevPageVisitDataKeyName);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n _warnToConsole(logger, \"Stop page visit timer failed: \" + dumpObj(e));\r\n prevPageVisitData = null;\r\n }\r\n return prevPageVisitData;\r\n }\r\n // For backward compatibility\r\n objDefineAccessors(_self, \"_logger\", function () { return logger; });\r\n objDefineAccessors(_self, \"pageVisitTimeTrackingHandler\", function () { return pageVisitTimeTrackingHandler; });\r\n });\r\n }\r\n// Removed Stub for PageVisitTimeManager.prototype.trackPreviousPageVisit.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n PageVisitTimeManager.__ieDyn=1;\n\n return PageVisitTimeManager;\r\n}());\r\nexport { PageVisitTimeManager };\r\nvar PageVisitData = /** @class */ (function () {\r\n function PageVisitData(pageName, pageUrl) {\r\n this[_DYN_PAGE_VISIT_START_TIM20 /* @min:%2epageVisitStartTime */] = dateNow();\r\n this.pageName = pageName;\r\n this.pageUrl = pageUrl;\r\n }\r\n return PageVisitData;\r\n}());\r\nexport { PageVisitData };\r\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { dateTimeUtilsDuration } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal } from \"@microsoft/applicationinsights-core-js\";\r\n/**\r\n * Used to record timed events and page views.\r\n */\r\nvar Timing = /** @class */ (function () {\r\n function Timing(logger, name) {\r\n var _self = this;\r\n var _events = {};\r\n _self.start = function (name) {\r\n if (typeof _events[name] !== \"undefined\") {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 62 /* _eInternalMessageId.StartCalledMoreThanOnce */, \"start was called more than once for this event without calling stop.\", { name: name, key: name }, true);\r\n }\r\n _events[name] = +new Date;\r\n };\r\n _self.stop = function (name, url, properties, measurements) {\r\n var start = _events[name];\r\n if (isNaN(start)) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 63 /* _eInternalMessageId.StopCalledWithoutStart */, \"stop was called without a corresponding start.\", { name: name, key: name }, true);\r\n }\r\n else {\r\n var end = +new Date;\r\n var duration = dateTimeUtilsDuration(start, end);\r\n _self.action(name, url, duration, properties, measurements);\r\n }\r\n delete _events[name];\r\n _events[name] = undefined;\r\n };\r\n }\r\n return Timing;\r\n}());\r\nexport { Timing };\r\n","/*\n * Application Insights JavaScript SDK - Web Analytics, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* ApplicationInsights.ts\r\n* @copyright Microsoft 2018\r\n*/\r\nimport { __assignFn as __assign, __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { AnalyticsPluginIdentifier, Event as EventTelemetry, Exception, Metric, PageView, PageViewPerformance, PropertiesPluginIdentifier, RemoteDependencyData, Trace, createDistributedTraceContextFromTrace, createDomEvent, createTelemetryItem, dataSanitizeString, isCrossOriginError, strNotSpecified, stringToBoolOrDefault, utlDisableStorage, utlEnableStorage, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, InstrumentEvent, arrForEach, createProcessTelemetryContext, createUniqueNamespace, dumpObj, eventOff, eventOn, generateW3CId, getDocument, getExceptionName, getHistory, getLocation, getWindow, hasHistory, hasWindow, isError, isFunction, isNullOrUndefined, isString, isUndefined, mergeEvtNamespace, objDefineAccessors, objForEachKey, safeGetCookieMgr, strUndefined, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_ADD_TELEMETRY_INITIA15, _DYN_AUTO_TRACK_PAGE_VISI1, _DYN_COLUMN_NUMBER, _DYN_CORE, _DYN_DATA_TYPE, _DYN_DIAG_LOG, _DYN_DISABLE_EXCEPTION_TR0, _DYN_DISABLE_FLUSH_ON_BEF7, _DYN_ENABLE_AUTO_ROUTE_TR6, _DYN_ENABLE_UNHANDLED_PRO3, _DYN_ENVELOPE_TYPE, _DYN_ERROR, _DYN_ERROR_SRC, _DYN_EXCEPTION, _DYN_HREF, _DYN_IS_BROWSER_LINK_TRAC5, _DYN_IS_STORAGE_USE_DISAB4, _DYN_LENGTH, _DYN_LINE_NUMBER, _DYN_MESSAGE, _DYN_NAME_PREFIX, _DYN_OVERRIDE_PAGE_VIEW_D2, _DYN_POPULATE_PAGE_VIEW_P12, _DYN_SAMPLING_PERCENTAGE, _DYN_SEND_EXCEPTION_INTER13, _DYN_SEND_PAGE_VIEW_INTER10, _DYN_SEND_PAGE_VIEW_PERFO11, _DYN_TO_STRING, _DYN_TRACK, _DYN_TRACK_PAGE_VIEW, _DYN_TRACK_PREVIOUS_PAGE_9, _DYN__CREATE_AUTO_EXCEPTI14, _DYN__ONERROR } from \"../__DynamicConstants\";\r\nimport { PageViewManager } from \"./Telemetry/PageViewManager\";\r\nimport { PageViewPerformanceManager } from \"./Telemetry/PageViewPerformanceManager\";\r\nimport { PageVisitTimeManager } from \"./Telemetry/PageVisitTimeManager\";\r\nimport { Timing } from \"./Timing\";\r\nvar strEvent = \"event\";\r\nfunction _dispatchEvent(target, evnt) {\r\n if (target && target.dispatchEvent && evnt) {\r\n target.dispatchEvent(evnt);\r\n }\r\n}\r\nfunction _getReason(error) {\r\n if (error && error.reason) {\r\n var reason = error.reason;\r\n if (!isString(reason) && isFunction(reason[_DYN_TO_STRING /* @min:%2etoString */])) {\r\n return reason[_DYN_TO_STRING /* @min:%2etoString */]();\r\n }\r\n return dumpObj(reason);\r\n }\r\n // Pass the original object down which will eventually get evaluated for any message or description\r\n return error || \"\";\r\n}\r\nvar MinMilliSeconds = 60000;\r\nfunction _configMilliseconds(value, defValue) {\r\n value = value || defValue;\r\n if (value < MinMilliSeconds) {\r\n value = MinMilliSeconds;\r\n }\r\n return value;\r\n}\r\nfunction _getDefaultConfig(config) {\r\n if (!config) {\r\n config = {};\r\n }\r\n // set default values\r\n config.sessionRenewalMs = _configMilliseconds(config.sessionRenewalMs, 30 * 60 * 1000);\r\n config.sessionExpirationMs = _configMilliseconds(config.sessionExpirationMs, 24 * 60 * 60 * 1000);\r\n config[_DYN_DISABLE_EXCEPTION_TR0 /* @min:%2edisableExceptionTracking */] = stringToBoolOrDefault(config[_DYN_DISABLE_EXCEPTION_TR0 /* @min:%2edisableExceptionTracking */]);\r\n config[_DYN_AUTO_TRACK_PAGE_VISI1 /* @min:%2eautoTrackPageVisitTime */] = stringToBoolOrDefault(config[_DYN_AUTO_TRACK_PAGE_VISI1 /* @min:%2eautoTrackPageVisitTime */]);\r\n config[_DYN_OVERRIDE_PAGE_VIEW_D2 /* @min:%2eoverridePageViewDuration */] = stringToBoolOrDefault(config[_DYN_OVERRIDE_PAGE_VIEW_D2 /* @min:%2eoverridePageViewDuration */]);\r\n config[_DYN_ENABLE_UNHANDLED_PRO3 /* @min:%2eenableUnhandledPromiseRejectionTracking */] = stringToBoolOrDefault(config[_DYN_ENABLE_UNHANDLED_PRO3 /* @min:%2eenableUnhandledPromiseRejectionTracking */]);\r\n if (isNaN(config[_DYN_SAMPLING_PERCENTAGE /* @min:%2esamplingPercentage */]) || config[_DYN_SAMPLING_PERCENTAGE /* @min:%2esamplingPercentage */] <= 0 || config[_DYN_SAMPLING_PERCENTAGE /* @min:%2esamplingPercentage */] >= 100) {\r\n config[_DYN_SAMPLING_PERCENTAGE /* @min:%2esamplingPercentage */] = 100;\r\n }\r\n config[_DYN_IS_STORAGE_USE_DISAB4 /* @min:%2eisStorageUseDisabled */] = stringToBoolOrDefault(config[_DYN_IS_STORAGE_USE_DISAB4 /* @min:%2eisStorageUseDisabled */]);\r\n config[_DYN_IS_BROWSER_LINK_TRAC5 /* @min:%2eisBrowserLinkTrackingEnabled */] = stringToBoolOrDefault(config[_DYN_IS_BROWSER_LINK_TRAC5 /* @min:%2eisBrowserLinkTrackingEnabled */]);\r\n config[_DYN_ENABLE_AUTO_ROUTE_TR6 /* @min:%2eenableAutoRouteTracking */] = stringToBoolOrDefault(config[_DYN_ENABLE_AUTO_ROUTE_TR6 /* @min:%2eenableAutoRouteTracking */]);\r\n config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] = config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] || \"\";\r\n config.enableDebug = stringToBoolOrDefault(config.enableDebug);\r\n config[_DYN_DISABLE_FLUSH_ON_BEF7 /* @min:%2edisableFlushOnBeforeUnload */] = stringToBoolOrDefault(config[_DYN_DISABLE_FLUSH_ON_BEF7 /* @min:%2edisableFlushOnBeforeUnload */]);\r\n config.disableFlushOnUnload = stringToBoolOrDefault(config.disableFlushOnUnload, config[_DYN_DISABLE_FLUSH_ON_BEF7 /* @min:%2edisableFlushOnBeforeUnload */]);\r\n return config;\r\n}\r\nfunction _updateStorageUsage(extConfig) {\r\n // Not resetting the storage usage as someone may have manually called utlDisableStorage, so this will only\r\n // reset based if the configuration option is provided\r\n if (!isUndefined(extConfig[_DYN_IS_STORAGE_USE_DISAB4 /* @min:%2eisStorageUseDisabled */])) {\r\n if (extConfig[_DYN_IS_STORAGE_USE_DISAB4 /* @min:%2eisStorageUseDisabled */]) {\r\n utlDisableStorage();\r\n }\r\n else {\r\n utlEnableStorage();\r\n }\r\n }\r\n}\r\nvar AnalyticsPlugin = /** @class */ (function (_super) {\r\n __extends(AnalyticsPlugin, _super);\r\n function AnalyticsPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.identifier = AnalyticsPluginIdentifier; // do not change name or priority\r\n _this.priority = 180; // take from reserved priority range 100- 200\r\n _this.autoRoutePVDelay = 500; // ms; Time to wait after a route change before triggering a pageview to allow DOM changes to take place\r\n var _eventTracking;\r\n var _pageTracking;\r\n var _pageViewManager;\r\n var _pageViewPerformanceManager;\r\n var _pageVisitTimeManager;\r\n var _preInitTelemetryInitializers;\r\n var _isBrowserLinkTrackingEnabled;\r\n var _browserLinkInitializerAdded;\r\n var _enableAutoRouteTracking;\r\n var _historyListenerAdded;\r\n var _disableExceptionTracking;\r\n var _autoExceptionInstrumented;\r\n var _enableUnhandledPromiseRejectionTracking;\r\n var _autoUnhandledPromiseInstrumented;\r\n // Counts number of trackAjax invocations.\r\n // By default we only monitor X ajax call per view to avoid too much load.\r\n // Default value is set in config.\r\n // This counter keeps increasing even after the limit is reached.\r\n var _trackAjaxAttempts = 0;\r\n // array with max length of 2 that store current url and previous url for SPA page route change trackPageview use.\r\n var _prevUri; // Assigned in the constructor\r\n var _currUri;\r\n var _evtNamespace;\r\n dynamicProto(AnalyticsPlugin, _this, function (_self, _base) {\r\n var _addHook = _base._addHook;\r\n _initDefaults();\r\n _self.getCookieMgr = function () {\r\n return safeGetCookieMgr(_self[_DYN_CORE /* @min:%2ecore */]);\r\n };\r\n _self.processTelemetry = function (env, itemCtx) {\r\n _self.processNext(env, itemCtx);\r\n };\r\n _self.trackEvent = function (event, customProperties) {\r\n try {\r\n var telemetryItem = createTelemetryItem(event, EventTelemetry[_DYN_DATA_TYPE /* @min:%2edataType */], EventTelemetry[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n }\r\n catch (e) {\r\n _throwInternal(2 /* eLoggingSeverity.WARNING */, 39 /* _eInternalMessageId.TrackTraceFailed */, \"trackTrace failed, trace will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * Start timing an extended event. Call `stopTrackEvent` to log the event when it ends.\r\n * @param name A string that identifies this event uniquely within the document.\r\n */\r\n _self.startTrackEvent = function (name) {\r\n try {\r\n _eventTracking.start(name);\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 29 /* _eInternalMessageId.StartTrackEventFailed */, \"startTrackEvent failed, event will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * Log an extended event that you started timing with `startTrackEvent`.\r\n * @param name The string you used to identify this event in `startTrackEvent`.\r\n * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.\r\n * @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.\r\n */\r\n _self.stopTrackEvent = function (name, properties, measurements) {\r\n try {\r\n _eventTracking.stop(name, undefined, properties, measurements);\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 30 /* _eInternalMessageId.StopTrackEventFailed */, \"stopTrackEvent failed, event will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * @description Log a diagnostic message\r\n * @param {ITraceTelemetry} trace\r\n * @param ICustomProperties.\r\n * @memberof ApplicationInsights\r\n */\r\n _self.trackTrace = function (trace, customProperties) {\r\n try {\r\n var telemetryItem = createTelemetryItem(trace, Trace[_DYN_DATA_TYPE /* @min:%2edataType */], Trace[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n }\r\n catch (e) {\r\n _throwInternal(2 /* eLoggingSeverity.WARNING */, 39 /* _eInternalMessageId.TrackTraceFailed */, \"trackTrace failed, trace will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * @description Log a numeric value that is not associated with a specific event. Typically\r\n * used to send regular reports of performance indicators. To send single measurement, just\r\n * use the name and average fields of {@link IMetricTelemetry}. If you take measurements\r\n * frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements\r\n * and sending the resulting average at intervals\r\n * @param {IMetricTelemetry} metric input object argument. Only name and average are mandatory.\r\n * @param {{[key: string]: any}} customProperties additional data used to filter metrics in the\r\n * portal. Defaults to empty.\r\n * @memberof ApplicationInsights\r\n */\r\n _self.trackMetric = function (metric, customProperties) {\r\n try {\r\n var telemetryItem = createTelemetryItem(metric, Metric[_DYN_DATA_TYPE /* @min:%2edataType */], Metric[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 36 /* _eInternalMessageId.TrackMetricFailed */, \"trackMetric failed, metric will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * Logs that a page or other item was viewed.\r\n * @param IPageViewTelemetry The string you used as the name in startTrackPage. Defaults to the document title.\r\n * @param customProperties Additional data used to filter events and metrics. Defaults to empty.\r\n * If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration\r\n */\r\n _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */] = function (pageView, customProperties) {\r\n try {\r\n var inPv = pageView || {};\r\n _pageViewManager[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */](inPv, __assign(__assign(__assign({}, inPv.properties), inPv.measurements), customProperties));\r\n if (_self.config[_DYN_AUTO_TRACK_PAGE_VISI1 /* @min:%2eautoTrackPageVisitTime */]) {\r\n _pageVisitTimeManager[_DYN_TRACK_PREVIOUS_PAGE_9 /* @min:%2etrackPreviousPageVisit */](inPv.name, inPv.uri);\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 37 /* _eInternalMessageId.TrackPVFailed */, \"trackPageView failed, page view will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * Create a page view telemetry item and send it to the SDK pipeline through the core.track API\r\n * @param pageView Page view item to be sent\r\n * @param properties Custom properties (Part C) that a user can add to the telemetry item\r\n * @param systemProperties System level properties (Part A) that a user can add to the telemetry item\r\n */\r\n _self[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */] = function (pageView, properties, systemProperties) {\r\n var doc = getDocument();\r\n if (doc) {\r\n pageView.refUri = pageView.refUri === undefined ? doc.referrer : pageView.refUri;\r\n }\r\n var telemetryItem = createTelemetryItem(pageView, PageView[_DYN_DATA_TYPE /* @min:%2edataType */], PageView[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties, systemProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n // reset ajaxes counter\r\n _trackAjaxAttempts = 0;\r\n };\r\n /**\r\n * @ignore INTERNAL ONLY\r\n * @param pageViewPerformance\r\n * @param properties\r\n */\r\n _self[_DYN_SEND_PAGE_VIEW_PERFO11 /* @min:%2esendPageViewPerformanceInternal */] = function (pageViewPerformance, properties, systemProperties) {\r\n var telemetryItem = createTelemetryItem(pageViewPerformance, PageViewPerformance[_DYN_DATA_TYPE /* @min:%2edataType */], PageViewPerformance[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties, systemProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n };\r\n /**\r\n * Send browser performance metrics.\r\n * @param pageViewPerformance\r\n * @param customProperties\r\n */\r\n _self.trackPageViewPerformance = function (pageViewPerformance, customProperties) {\r\n var inPvp = pageViewPerformance || {};\r\n try {\r\n _pageViewPerformanceManager[_DYN_POPULATE_PAGE_VIEW_P12 /* @min:%2epopulatePageViewPerformanceEvent */](inPvp);\r\n _self[_DYN_SEND_PAGE_VIEW_PERFO11 /* @min:%2esendPageViewPerformanceInternal */](inPvp, customProperties);\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 37 /* _eInternalMessageId.TrackPVFailed */, \"trackPageViewPerformance failed, page view will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,\r\n * but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view\r\n * and send the event.\r\n * @param name A string that idenfities this item, unique within this HTML document. Defaults to the document title.\r\n */\r\n _self.startTrackPage = function (name) {\r\n try {\r\n if (typeof name !== \"string\") {\r\n var doc = getDocument();\r\n name = doc && doc.title || \"\";\r\n }\r\n _pageTracking.start(name);\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 31 /* _eInternalMessageId.StartTrackFailed */, \"startTrackPage failed, page view may not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements.\r\n * The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.\r\n * @param name The string you used as the name in startTrackPage. Defaults to the document title.\r\n * @param url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.\r\n * @param properties map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.\r\n * @param measurements map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.\r\n */\r\n _self.stopTrackPage = function (name, url, properties, measurement) {\r\n try {\r\n if (typeof name !== \"string\") {\r\n var doc = getDocument();\r\n name = doc && doc.title || \"\";\r\n }\r\n if (typeof url !== \"string\") {\r\n var loc = getLocation();\r\n url = loc && loc[_DYN_HREF /* @min:%2ehref */] || \"\";\r\n }\r\n _pageTracking.stop(name, url, properties, measurement);\r\n if (_self.config[_DYN_AUTO_TRACK_PAGE_VISI1 /* @min:%2eautoTrackPageVisitTime */]) {\r\n _pageVisitTimeManager[_DYN_TRACK_PREVIOUS_PAGE_9 /* @min:%2etrackPreviousPageVisit */](name, url);\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 32 /* _eInternalMessageId.StopTrackFailed */, \"stopTrackPage failed, page view will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * @ignore INTERNAL ONLY\r\n * @param exception\r\n * @param properties\r\n * @param systemProperties\r\n */\r\n _self[_DYN_SEND_EXCEPTION_INTER13 /* @min:%2esendExceptionInternal */] = function (exception, customProperties, systemProperties) {\r\n // Adding additional edge cases to handle\r\n // - Not passing anything (null / undefined)\r\n var theError = (exception && (exception[_DYN_EXCEPTION /* @min:%2eexception */] || exception[_DYN_ERROR /* @min:%2eerror */])) ||\r\n // - Handle someone calling trackException based of v1 API where the exception was the Error\r\n isError(exception) && exception ||\r\n // - Handles no error being defined and instead of creating a new Error() instance attempt to map so any stacktrace\r\n // is preserved and does not list ApplicationInsights code as the source\r\n { name: (exception && typeof exception), message: exception || strNotSpecified };\r\n // If no exception object was passed assign to an empty object to avoid internal exceptions\r\n exception = exception || {};\r\n var exceptionPartB = new Exception(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), theError, exception.properties || customProperties, exception.measurements, exception.severityLevel, exception.id).toInterface();\r\n var telemetryItem = createTelemetryItem(exceptionPartB, Exception[_DYN_DATA_TYPE /* @min:%2edataType */], Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), customProperties, systemProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n };\r\n /**\r\n * Log an exception you have caught.\r\n *\r\n * @param {IExceptionTelemetry} exception Object which contains exception to be sent\r\n * @param {{[key: string]: any}} customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.\r\n *\r\n * Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.\r\n * @memberof ApplicationInsights\r\n */\r\n _self.trackException = function (exception, customProperties) {\r\n if (exception && !exception[_DYN_EXCEPTION /* @min:%2eexception */] && exception[_DYN_ERROR /* @min:%2eerror */]) {\r\n exception[_DYN_EXCEPTION /* @min:%2eexception */] = exception[_DYN_ERROR /* @min:%2eerror */];\r\n }\r\n try {\r\n _self[_DYN_SEND_EXCEPTION_INTER13 /* @min:%2esendExceptionInternal */](exception, customProperties);\r\n }\r\n catch (e) {\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 35 /* _eInternalMessageId.TrackExceptionFailed */, \"trackException failed, exception will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n };\r\n /**\r\n * @description Custom error handler for Application Insights Analytics\r\n * @param {IAutoExceptionTelemetry} exception\r\n * @memberof ApplicationInsights\r\n */\r\n _self[_DYN__ONERROR /* @min:%2e_onerror */] = function (exception) {\r\n var error = exception && exception[_DYN_ERROR /* @min:%2eerror */];\r\n var evt = exception && exception.evt;\r\n try {\r\n if (!evt) {\r\n var _window = getWindow();\r\n if (_window) {\r\n evt = _window[strEvent];\r\n }\r\n }\r\n var url = (exception && exception.url) || (getDocument() || {}).URL;\r\n // If no error source is provided assume the default window.onerror handler\r\n var errorSrc = exception[_DYN_ERROR_SRC /* @min:%2eerrorSrc */] || \"window.onerror@\" + url + \":\" + (exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0) + \":\" + (exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0);\r\n var properties = {\r\n errorSrc: errorSrc,\r\n url: url,\r\n lineNumber: exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0,\r\n columnNumber: exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0,\r\n message: exception[_DYN_MESSAGE /* @min:%2emessage */]\r\n };\r\n if (isCrossOriginError(exception.message, exception.url, exception.lineNumber, exception.columnNumber, exception[_DYN_ERROR /* @min:%2eerror */])) {\r\n _sendCORSException(Exception[_DYN__CREATE_AUTO_EXCEPTI14 /* @min:%2eCreateAutoException */](\"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.\", url, exception[_DYN_LINE_NUMBER /* @min:%2elineNumber */] || 0, exception[_DYN_COLUMN_NUMBER /* @min:%2ecolumnNumber */] || 0, error, evt, null, errorSrc), properties);\r\n }\r\n else {\r\n if (!exception[_DYN_ERROR_SRC /* @min:%2eerrorSrc */]) {\r\n exception[_DYN_ERROR_SRC /* @min:%2eerrorSrc */] = errorSrc;\r\n }\r\n _self.trackException({ exception: exception, severityLevel: 3 /* eSeverityLevel.Error */ }, properties);\r\n }\r\n }\r\n catch (e) {\r\n var errorString = error ? (error.name + \", \" + error[_DYN_MESSAGE /* @min:%2emessage */]) : \"null\";\r\n _throwInternal(1 /* eLoggingSeverity.CRITICAL */, 11 /* _eInternalMessageId.ExceptionWhileLoggingError */, \"_onError threw exception while logging error, error will not be collected: \"\r\n + getExceptionName(e), { exception: dumpObj(e), errorString: errorString });\r\n }\r\n };\r\n _self[_DYN_ADD_TELEMETRY_INITIA15 /* @min:%2eaddTelemetryInitializer */] = function (telemetryInitializer) {\r\n if (_self[_DYN_CORE /* @min:%2ecore */]) {\r\n // Just add to the core\r\n return _self[_DYN_CORE /* @min:%2ecore */][_DYN_ADD_TELEMETRY_INITIA15 /* @min:%2eaddTelemetryInitializer */](telemetryInitializer);\r\n }\r\n // Handle \"pre-initialization\" telemetry initializers (for backward compatibility)\r\n if (!_preInitTelemetryInitializers) {\r\n _preInitTelemetryInitializers = [];\r\n }\r\n _preInitTelemetryInitializers.push(telemetryInitializer);\r\n };\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n if (_self.isInitialized()) {\r\n return;\r\n }\r\n if (isNullOrUndefined(core)) {\r\n throwError(\"Error initializing\");\r\n }\r\n _base.initialize(config, core, extensions, pluginChain);\r\n if (config.storagePrefix) {\r\n utlSetStoragePrefix(config.storagePrefix);\r\n }\r\n try {\r\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(_self.identifier), core.evtNamespace && core.evtNamespace());\r\n if (_preInitTelemetryInitializers) {\r\n arrForEach(_preInitTelemetryInitializers, function (initializer) {\r\n core[_DYN_ADD_TELEMETRY_INITIA15 /* @min:%2eaddTelemetryInitializer */](initializer);\r\n });\r\n _preInitTelemetryInitializers = null;\r\n }\r\n var extConfig = _populateDefaults(config);\r\n _updateStorageUsage(extConfig);\r\n _pageViewPerformanceManager = new PageViewPerformanceManager(_self[_DYN_CORE /* @min:%2ecore */]);\r\n _pageViewManager = new PageViewManager(_self, extConfig[_DYN_OVERRIDE_PAGE_VIEW_D2 /* @min:%2eoverridePageViewDuration */], _self[_DYN_CORE /* @min:%2ecore */], _pageViewPerformanceManager);\r\n _pageVisitTimeManager = new PageVisitTimeManager(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), function (pageName, pageUrl, pageVisitTime) { return trackPageVisitTime(pageName, pageUrl, pageVisitTime); });\r\n _updateBrowserLinkTracking(extConfig, config);\r\n _eventTracking = new Timing(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), \"trackEvent\");\r\n _eventTracking.action =\r\n function (name, url, duration, properties, measurements) {\r\n if (!properties) {\r\n properties = {};\r\n }\r\n if (!measurements) {\r\n measurements = {};\r\n }\r\n properties.duration = duration[_DYN_TO_STRING /* @min:%2etoString */]();\r\n _self.trackEvent({ name: name, properties: properties, measurements: measurements });\r\n };\r\n // initialize page view timing\r\n _pageTracking = new Timing(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), \"trackPageView\");\r\n _pageTracking.action = function (name, url, duration, properties, measurements) {\r\n // duration must be a custom property in order for the collector to extract it\r\n if (isNullOrUndefined(properties)) {\r\n properties = {};\r\n }\r\n properties.duration = duration[_DYN_TO_STRING /* @min:%2etoString */]();\r\n var pageViewItem = {\r\n name: name,\r\n uri: url,\r\n properties: properties,\r\n measurements: measurements\r\n };\r\n _self[_DYN_SEND_PAGE_VIEW_INTER10 /* @min:%2esendPageViewInternal */](pageViewItem, properties);\r\n };\r\n if (hasWindow()) {\r\n _updateExceptionTracking(extConfig);\r\n _updateLocationChange(extConfig);\r\n }\r\n }\r\n catch (e) {\r\n // resetting the initialized state because of failure\r\n _self.setInitialized(false);\r\n throw e;\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState) {\r\n _pageViewManager && _pageViewManager.teardown(unloadCtx, unloadState);\r\n // Just register to remove all events associated with this namespace\r\n eventOff(window, null, null, _evtNamespace);\r\n _initDefaults();\r\n };\r\n function _populateDefaults(config) {\r\n var ctx = createProcessTelemetryContext(null, config, _self[_DYN_CORE /* @min:%2ecore */]);\r\n var identifier = _self.identifier;\r\n // load default values if specified\r\n var defaults = _getDefaultConfig(config);\r\n var extConfig = _self.config = ctx.getExtCfg(identifier);\r\n if (defaults !== undefined) {\r\n objForEachKey(defaults, function (field, value) {\r\n // for each unspecified field, set the default value\r\n extConfig[field] = ctx.getConfig(identifier, field, value);\r\n if (extConfig[field] === undefined) {\r\n extConfig = value;\r\n }\r\n });\r\n }\r\n return extConfig;\r\n }\r\n function _updateBrowserLinkTracking(extConfig, config) {\r\n _isBrowserLinkTrackingEnabled = extConfig[_DYN_IS_BROWSER_LINK_TRAC5 /* @min:%2eisBrowserLinkTrackingEnabled */] || config[_DYN_IS_BROWSER_LINK_TRAC5 /* @min:%2eisBrowserLinkTrackingEnabled */];\r\n _addDefaultTelemetryInitializers();\r\n }\r\n /**\r\n * Log a page visit time\r\n * @param pageName Name of page\r\n * @param pageVisitDuration Duration of visit to the page in milleseconds\r\n */\r\n function trackPageVisitTime(pageName, pageUrl, pageVisitTime) {\r\n var properties = { PageName: pageName, PageUrl: pageUrl };\r\n _self.trackMetric({\r\n name: \"PageVisitTime\",\r\n average: pageVisitTime,\r\n max: pageVisitTime,\r\n min: pageVisitTime,\r\n sampleCount: 1\r\n }, properties);\r\n }\r\n function _addDefaultTelemetryInitializers() {\r\n if (!_browserLinkInitializerAdded && _isBrowserLinkTrackingEnabled) {\r\n var browserLinkPaths_1 = [\"/browserLinkSignalR/\", \"/__browserLink/\"];\r\n var dropBrowserLinkRequests = function (envelope) {\r\n if (_isBrowserLinkTrackingEnabled && envelope.baseType === RemoteDependencyData[_DYN_DATA_TYPE /* @min:%2edataType */]) {\r\n var remoteData = envelope.baseData;\r\n if (remoteData) {\r\n for (var i = 0; i < browserLinkPaths_1[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n if (remoteData.target && remoteData.target.indexOf(browserLinkPaths_1[i]) >= 0) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n };\r\n _self[_DYN_ADD_TELEMETRY_INITIA15 /* @min:%2eaddTelemetryInitializer */](dropBrowserLinkRequests);\r\n _browserLinkInitializerAdded = true;\r\n }\r\n }\r\n function _sendCORSException(exception, properties) {\r\n var telemetryItem = createTelemetryItem(exception, Exception[_DYN_DATA_TYPE /* @min:%2edataType */], Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], _self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), properties);\r\n _self[_DYN_CORE /* @min:%2ecore */][_DYN_TRACK /* @min:%2etrack */](telemetryItem);\r\n }\r\n function _updateExceptionTracking(extConfig) {\r\n var _window = getWindow();\r\n var locn = getLocation(true);\r\n _disableExceptionTracking = extConfig[_DYN_DISABLE_EXCEPTION_TR0 /* @min:%2edisableExceptionTracking */];\r\n if (!_disableExceptionTracking && !_autoExceptionInstrumented && !extConfig.autoExceptionInstrumented) {\r\n // We want to enable exception auto collection and it has not been done so yet\r\n _addHook(InstrumentEvent(_window, \"onerror\", {\r\n ns: _evtNamespace,\r\n rsp: function (callDetails, message, url, lineNumber, columnNumber, error) {\r\n if (!_disableExceptionTracking && callDetails.rslt !== true) {\r\n _self[_DYN__ONERROR /* @min:%2e_onerror */](Exception[_DYN__CREATE_AUTO_EXCEPTI14 /* @min:%2eCreateAutoException */](message, url, lineNumber, columnNumber, error, callDetails.evt));\r\n }\r\n }\r\n }, false));\r\n _autoExceptionInstrumented = true;\r\n }\r\n _addUnhandledPromiseRejectionTracking(extConfig, _window, locn);\r\n }\r\n function _updateLocationChange(extConfig) {\r\n var win = getWindow();\r\n var locn = getLocation(true);\r\n _enableAutoRouteTracking = extConfig[_DYN_ENABLE_AUTO_ROUTE_TR6 /* @min:%2eenableAutoRouteTracking */] === true;\r\n /**\r\n * Create a custom \"locationchange\" event which is triggered each time the history object is changed\r\n */\r\n if (win && _enableAutoRouteTracking && hasHistory()) {\r\n var _history = getHistory();\r\n if (isFunction(_history.pushState) && isFunction(_history.replaceState) && typeof Event !== strUndefined) {\r\n _addHistoryListener(extConfig, win, _history, locn);\r\n }\r\n }\r\n }\r\n function _getDistributedTraceCtx() {\r\n var distributedTraceCtx = null;\r\n if (_self[_DYN_CORE /* @min:%2ecore */] && _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx) {\r\n distributedTraceCtx = _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx(false);\r\n }\r\n if (!distributedTraceCtx) {\r\n // Fallback when using an older Core and PropertiesPlugin\r\n var properties = _self[_DYN_CORE /* @min:%2ecore */].getPlugin(PropertiesPluginIdentifier);\r\n if (properties) {\r\n var context = properties.plugin.context;\r\n if (context) {\r\n distributedTraceCtx = createDistributedTraceContextFromTrace(context.telemetryTrace);\r\n }\r\n }\r\n }\r\n return distributedTraceCtx;\r\n }\r\n /**\r\n * Create a custom \"locationchange\" event which is triggered each time the history object is changed\r\n */\r\n function _addHistoryListener(extConfig, win, history, locn) {\r\n var namePrefix = extConfig[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] || \"\";\r\n function _popstateHandler() {\r\n if (_enableAutoRouteTracking) {\r\n _dispatchEvent(win, createDomEvent(namePrefix + \"locationchange\"));\r\n }\r\n }\r\n function _locationChangeHandler() {\r\n // We always track the changes (if the handler is installed) to handle the feature being disabled between location changes\r\n if (_currUri) {\r\n _prevUri = _currUri;\r\n _currUri = locn && locn[_DYN_HREF /* @min:%2ehref */] || \"\";\r\n }\r\n else {\r\n _currUri = locn && locn[_DYN_HREF /* @min:%2ehref */] || \"\";\r\n }\r\n if (_enableAutoRouteTracking) {\r\n var distributedTraceCtx = _getDistributedTraceCtx();\r\n if (distributedTraceCtx) {\r\n distributedTraceCtx.setTraceId(generateW3CId());\r\n var traceLocationName = \"_unknown_\";\r\n if (locn && locn.pathname) {\r\n traceLocationName = locn.pathname + (locn.hash || \"\");\r\n }\r\n // This populates the ai.operation.name which has a maximum size of 1024 so we need to sanitize it\r\n distributedTraceCtx.setName(dataSanitizeString(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), traceLocationName));\r\n }\r\n setTimeout((function (uri) {\r\n // todo: override start time so that it is not affected by autoRoutePVDelay\r\n _self[_DYN_TRACK_PAGE_VIEW /* @min:%2etrackPageView */]({ refUri: uri, properties: { duration: 0 } }); // SPA route change loading durations are undefined, so send 0\r\n }).bind(_self, _prevUri), _self.autoRoutePVDelay);\r\n }\r\n }\r\n if (!_historyListenerAdded) {\r\n _addHook(InstrumentEvent(history, \"pushState\", {\r\n ns: _evtNamespace,\r\n rsp: function () {\r\n if (_enableAutoRouteTracking) {\r\n _dispatchEvent(win, createDomEvent(namePrefix + \"pushState\"));\r\n _dispatchEvent(win, createDomEvent(namePrefix + \"locationchange\"));\r\n }\r\n }\r\n }, true));\r\n _addHook(InstrumentEvent(history, \"replaceState\", {\r\n ns: _evtNamespace,\r\n rsp: function () {\r\n if (_enableAutoRouteTracking) {\r\n _dispatchEvent(win, createDomEvent(namePrefix + \"replaceState\"));\r\n _dispatchEvent(win, createDomEvent(namePrefix + \"locationchange\"));\r\n }\r\n }\r\n }, true));\r\n eventOn(win, namePrefix + \"popstate\", _popstateHandler, _evtNamespace);\r\n eventOn(win, namePrefix + \"locationchange\", _locationChangeHandler, _evtNamespace);\r\n _historyListenerAdded = true;\r\n }\r\n }\r\n function _addUnhandledPromiseRejectionTracking(extConfig, _window, _location) {\r\n _enableUnhandledPromiseRejectionTracking = extConfig[_DYN_ENABLE_UNHANDLED_PRO3 /* @min:%2eenableUnhandledPromiseRejectionTracking */] === true;\r\n if (_enableUnhandledPromiseRejectionTracking && !_autoUnhandledPromiseInstrumented) {\r\n // We want to enable exception auto collection and it has not been done so yet\r\n _addHook(InstrumentEvent(_window, \"onunhandledrejection\", {\r\n ns: _evtNamespace,\r\n rsp: function (callDetails, error) {\r\n if (_enableUnhandledPromiseRejectionTracking && callDetails.rslt !== true) { // handled could be typeof function\r\n _self[_DYN__ONERROR /* @min:%2e_onerror */](Exception[_DYN__CREATE_AUTO_EXCEPTI14 /* @min:%2eCreateAutoException */](_getReason(error), _location ? _location[_DYN_HREF /* @min:%2ehref */] : \"\", 0, 0, error, callDetails.evt));\r\n }\r\n }\r\n }, false));\r\n _autoUnhandledPromiseInstrumented = true;\r\n extConfig.autoUnhandledPromiseInstrumented = _autoUnhandledPromiseInstrumented;\r\n }\r\n }\r\n /**\r\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\r\n * @param severity {eLoggingSeverity} - The severity of the log message\r\n * @param message {_InternalLogMessage} - The log message.\r\n */\r\n function _throwInternal(severity, msgId, msg, properties, isUserAct) {\r\n _self[_DYN_DIAG_LOG /* @min:%2ediagLog */]().throwInternal(severity, msgId, msg, properties, isUserAct);\r\n }\r\n function _initDefaults() {\r\n _eventTracking = null;\r\n _pageTracking = null;\r\n _pageViewManager = null;\r\n _pageViewPerformanceManager = null;\r\n _pageVisitTimeManager = null;\r\n _preInitTelemetryInitializers = null;\r\n _isBrowserLinkTrackingEnabled = false;\r\n _browserLinkInitializerAdded = false;\r\n _enableAutoRouteTracking = false;\r\n _historyListenerAdded = false;\r\n _disableExceptionTracking = false;\r\n _autoExceptionInstrumented = false;\r\n _enableUnhandledPromiseRejectionTracking = false;\r\n _autoUnhandledPromiseInstrumented = false;\r\n // Counts number of trackAjax invocations.\r\n // By default we only monitor X ajax call per view to avoid too much load.\r\n // Default value is set in config.\r\n // This counter keeps increasing even after the limit is reached.\r\n _trackAjaxAttempts = 0;\r\n // array with max length of 2 that store current url and previous url for SPA page route change trackPageview use.\r\n var location = getLocation(true);\r\n _prevUri = location && location[_DYN_HREF /* @min:%2ehref */] || \"\";\r\n _currUri = null;\r\n _evtNamespace = null;\r\n }\r\n // For backward compatibility\r\n objDefineAccessors(_self, \"_pageViewManager\", function () { return _pageViewManager; });\r\n objDefineAccessors(_self, \"_pageViewPerformanceManager\", function () { return _pageViewPerformanceManager; });\r\n objDefineAccessors(_self, \"_pageVisitTimeManager\", function () { return _pageVisitTimeManager; });\r\n objDefineAccessors(_self, \"_evtNamespace\", function () { return \".\" + _evtNamespace; });\r\n });\r\n return _this;\r\n }\r\n// Removed Stub for AnalyticsPlugin.prototype.getCookieMgr.\r\n// Removed Stub for AnalyticsPlugin.prototype.processTelemetry.\r\n// Removed Stub for AnalyticsPlugin.prototype.trackEvent.\r\n// Removed Stub for AnalyticsPlugin.prototype.startTrackEvent.\r\n// Removed Stub for AnalyticsPlugin.prototype.stopTrackEvent.\r\n// Removed Stub for AnalyticsPlugin.prototype.trackTrace.\r\n// Removed Stub for AnalyticsPlugin.prototype.trackMetric.\r\n// Removed Stub for AnalyticsPlugin.prototype.trackPageView.\r\n// Removed Stub for AnalyticsPlugin.prototype.sendPageViewInternal.\r\n// Removed Stub for AnalyticsPlugin.prototype.sendPageViewPerformanceInternal.\r\n// Removed Stub for AnalyticsPlugin.prototype.trackPageViewPerformance.\r\n// Removed Stub for AnalyticsPlugin.prototype.startTrackPage.\r\n// Removed Stub for AnalyticsPlugin.prototype.stopTrackPage.\r\n// Removed Stub for AnalyticsPlugin.prototype.sendExceptionInternal.\r\n// Removed Stub for AnalyticsPlugin.prototype.trackException.\r\n// Removed Stub for AnalyticsPlugin.prototype._onerror.\r\n// Removed Stub for AnalyticsPlugin.prototype.addTelemetryInitializer.\r\n// Removed Stub for AnalyticsPlugin.prototype.initialize.\r\n AnalyticsPlugin.Version = '2.8.18'; // Not currently used anywhere\r\n AnalyticsPlugin.getDefaultConfig = _getDefaultConfig;\r\n return AnalyticsPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport { AnalyticsPlugin };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport { createClassFromInterface } from \"@microsoft/applicationinsights-core-js\";\r\nfunction _aiNameFunc(baseName) {\r\n var aiName = \"ai.\" + baseName + \".\";\r\n return function (name) {\r\n return aiName + name;\r\n };\r\n}\r\nvar _aiApplication = _aiNameFunc(\"application\");\r\nvar _aiDevice = _aiNameFunc(\"device\");\r\nvar _aiLocation = _aiNameFunc(\"location\");\r\nvar _aiOperation = _aiNameFunc(\"operation\");\r\nvar _aiSession = _aiNameFunc(\"session\");\r\nvar _aiUser = _aiNameFunc(\"user\");\r\nvar _aiCloud = _aiNameFunc(\"cloud\");\r\nvar _aiInternal = _aiNameFunc(\"internal\");\r\nvar ContextTagKeys = /** @class */ (function (_super) {\r\n __extends(ContextTagKeys, _super);\r\n function ContextTagKeys() {\r\n return _super.call(this) || this;\r\n }\r\n return ContextTagKeys;\r\n}(createClassFromInterface({\r\n applicationVersion: _aiApplication(\"ver\"),\r\n applicationBuild: _aiApplication(\"build\"),\r\n applicationTypeId: _aiApplication(\"typeId\"),\r\n applicationId: _aiApplication(\"applicationId\"),\r\n applicationLayer: _aiApplication(\"layer\"),\r\n deviceId: _aiDevice(\"id\"),\r\n deviceIp: _aiDevice(\"ip\"),\r\n deviceLanguage: _aiDevice(\"language\"),\r\n deviceLocale: _aiDevice(\"locale\"),\r\n deviceModel: _aiDevice(\"model\"),\r\n deviceFriendlyName: _aiDevice(\"friendlyName\"),\r\n deviceNetwork: _aiDevice(\"network\"),\r\n deviceNetworkName: _aiDevice(\"networkName\"),\r\n deviceOEMName: _aiDevice(\"oemName\"),\r\n deviceOS: _aiDevice(\"os\"),\r\n deviceOSVersion: _aiDevice(\"osVersion\"),\r\n deviceRoleInstance: _aiDevice(\"roleInstance\"),\r\n deviceRoleName: _aiDevice(\"roleName\"),\r\n deviceScreenResolution: _aiDevice(\"screenResolution\"),\r\n deviceType: _aiDevice(\"type\"),\r\n deviceMachineName: _aiDevice(\"machineName\"),\r\n deviceVMName: _aiDevice(\"vmName\"),\r\n deviceBrowser: _aiDevice(\"browser\"),\r\n deviceBrowserVersion: _aiDevice(\"browserVersion\"),\r\n locationIp: _aiLocation(\"ip\"),\r\n locationCountry: _aiLocation(\"country\"),\r\n locationProvince: _aiLocation(\"province\"),\r\n locationCity: _aiLocation(\"city\"),\r\n operationId: _aiOperation(\"id\"),\r\n operationName: _aiOperation(\"name\"),\r\n operationParentId: _aiOperation(\"parentId\"),\r\n operationRootId: _aiOperation(\"rootId\"),\r\n operationSyntheticSource: _aiOperation(\"syntheticSource\"),\r\n operationCorrelationVector: _aiOperation(\"correlationVector\"),\r\n sessionId: _aiSession(\"id\"),\r\n sessionIsFirst: _aiSession(\"isFirst\"),\r\n sessionIsNew: _aiSession(\"isNew\"),\r\n userAccountAcquisitionDate: _aiUser(\"accountAcquisitionDate\"),\r\n userAccountId: _aiUser(\"accountId\"),\r\n userAgent: _aiUser(\"userAgent\"),\r\n userId: _aiUser(\"id\"),\r\n userStoreRegion: _aiUser(\"storeRegion\"),\r\n userAuthUserId: _aiUser(\"authUserId\"),\r\n userAnonymousUserAcquisitionDate: _aiUser(\"anonUserAcquisitionDate\"),\r\n userAuthenticatedUserAcquisitionDate: _aiUser(\"authUserAcquisitionDate\"),\r\n cloudName: _aiCloud(\"name\"),\r\n cloudRole: _aiCloud(\"role\"),\r\n cloudRoleVer: _aiCloud(\"roleVer\"),\r\n cloudRoleInstance: _aiCloud(\"roleInstance\"),\r\n cloudEnvironment: _aiCloud(\"environment\"),\r\n cloudLocation: _aiCloud(\"location\"),\r\n cloudDeploymentUnit: _aiCloud(\"deploymentUnit\"),\r\n internalNodeName: _aiInternal(\"nodeName\"),\r\n internalSdkVersion: _aiInternal(\"sdkVersion\"),\r\n internalAgentVersion: _aiInternal(\"agentVersion\"),\r\n internalSnippet: _aiInternal(\"snippet\"),\r\n internalSdkSrc: _aiInternal(\"sdkSrc\")\r\n})));\r\nexport { ContextTagKeys };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { ContextTagKeys } from \"./Contracts/ContextTagKeys\";\r\nexport var Extensions = {\r\n UserExt: \"user\",\r\n DeviceExt: \"device\",\r\n TraceExt: \"trace\",\r\n WebExt: \"web\",\r\n AppExt: \"app\",\r\n OSExt: \"os\",\r\n SessionExt: \"ses\",\r\n SDKExt: \"sdk\"\r\n};\r\nexport var CtxTagKeys = new ContextTagKeys();\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { toISOString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { strNotSpecified } from \"../../Constants\";\r\nimport { _DYN_NAME } from \"../../__DynamicConstants\";\r\nimport { dataSanitizeString } from \"./DataSanitizer\";\r\nvar Envelope = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of telemetry data.\r\n */\r\n function Envelope(logger, data, name) {\r\n var _this = this;\r\n var _self = this;\r\n _self.ver = 1;\r\n _self.sampleRate = 100.0;\r\n _self.tags = {};\r\n _self[_DYN_NAME /* @min:%2ename */] = dataSanitizeString(logger, name) || strNotSpecified;\r\n _self.data = data;\r\n _self.time = toISOString(new Date());\r\n _self.aiDataContract = {\r\n time: 1 /* FieldType.Required */,\r\n iKey: 1 /* FieldType.Required */,\r\n name: 1 /* FieldType.Required */,\r\n sampleRate: function () {\r\n return (_this.sampleRate === 100) ? 4 /* FieldType.Hidden */ : 1 /* FieldType.Required */;\r\n },\r\n tags: 1 /* FieldType.Required */,\r\n data: 1 /* FieldType.Required */\r\n };\r\n }\r\n return Envelope;\r\n}());\r\nexport { Envelope };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nvar Data = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of telemetry data.\r\n */\r\n function Data(baseType, data) {\r\n /**\r\n * The data contract for serializing this object.\r\n */\r\n this.aiDataContract = {\r\n baseType: 1 /* FieldType.Required */,\r\n baseData: 1 /* FieldType.Required */\r\n };\r\n this.baseType = baseType;\r\n this.baseData = data;\r\n }\r\n return Data;\r\n}());\r\nexport { Data };\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\r\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\r\nexport var STR_DURATION = \"duration\";\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TAGS = \"tags\"; // Count: 17\r\nexport var _DYN_DEVICE_TYPE = \"deviceType\"; // Count: 3\r\nexport var _DYN_DATA = \"data\"; // Count: 13\r\nexport var _DYN_NAME = \"name\"; // Count: 8\r\nexport var _DYN_TRACE_ID = \"traceID\"; // Count: 5\r\nexport var _DYN_LENGTH = \"length\"; // Count: 37\r\nexport var _DYN_STRINGIFY = \"stringify\"; // Count: 5\r\nexport var _DYN_MEASUREMENTS = \"measurements\"; // Count: 7\r\nexport var _DYN_DATA_TYPE = \"dataType\"; // Count: 10\r\nexport var _DYN_ENVELOPE_TYPE = \"envelopeType\"; // Count: 7\r\nexport var _DYN_TO_STRING = \"toString\"; // Count: 7\r\nexport var _DYN_ON_LINE = \"onLine\"; // Count: 4\r\nexport var _DYN_IS_ONLINE = \"isOnline\"; // Count: 3\r\nexport var _DYN_ENQUEUE = \"enqueue\"; // Count: 5\r\nexport var _DYN_COUNT = \"count\"; // Count: 6\r\nexport var _DYN_EVENTS_LIMIT_IN_MEM = \"eventsLimitInMem\"; // Count: 2\r\nexport var _DYN_PUSH = \"push\"; // Count: 6\r\nexport var _DYN_EMIT_LINE_DELIMITED_0 = \"emitLineDelimitedJson\"; // Count: 3\r\nexport var _DYN_CLEAR = \"clear\"; // Count: 6\r\nexport var _DYN_BATCH_PAYLOADS = \"batchPayloads\"; // Count: 5\r\nexport var _DYN_MARK_AS_SENT = \"markAsSent\"; // Count: 6\r\nexport var _DYN_CLEAR_SENT = \"clearSent\"; // Count: 5\r\nexport var _DYN_BUFFER_OVERRIDE = \"bufferOverride\"; // Count: 3\r\nexport var _DYN__BUFFER__KEY = \"BUFFER_KEY\"; // Count: 5\r\nexport var _DYN__SENT__BUFFER__KEY = \"SENT_BUFFER_KEY\"; // Count: 7\r\nexport var _DYN__MAX__BUFFER__SIZE = \"MAX_BUFFER_SIZE\"; // Count: 5\r\nexport var _DYN_NAME_PREFIX = \"namePrefix\"; // Count: 6\r\nexport var _DYN_MAX_BATCH_SIZE_IN_BY1 = \"maxBatchSizeInBytes\"; // Count: 3\r\nexport var _DYN_TRIGGER_SEND = \"triggerSend\"; // Count: 6\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 15\r\nexport var _DYN_ONUNLOAD_DISABLE_BEA2 = \"onunloadDisableBeacon\"; // Count: 2\r\nexport var _DYN_IS_BEACON_API_DISABL3 = \"isBeaconApiDisabled\"; // Count: 3\r\nexport var _DYN__SENDER = \"_sender\"; // Count: 5\r\nexport var _DYN__SENDER_CONFIG = \"_senderConfig\"; // Count: 4\r\nexport var _DYN_ENABLE_SESSION_STORA4 = \"enableSessionStorageBuffer\"; // Count: 2\r\nexport var _DYN__BUFFER = \"_buffer\"; // Count: 9\r\nexport var _DYN_SAMPLING_PERCENTAGE = \"samplingPercentage\"; // Count: 2\r\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 4\r\nexport var _DYN_ENDPOINT_URL = \"endpointUrl\"; // Count: 8\r\nexport var _DYN_CUSTOM_HEADERS = \"customHeaders\"; // Count: 4\r\nexport var _DYN_DISABLE_XHR = \"disableXhr\"; // Count: 5\r\nexport var _DYN_ONUNLOAD_DISABLE_FET5 = \"onunloadDisableFetch\"; // Count: 2\r\nexport var _DYN_DISABLE_TELEMETRY = \"disableTelemetry\"; // Count: 2\r\nexport var _DYN_BASE_TYPE = \"baseType\"; // Count: 4\r\nexport var _DYN_SAMPLE_RATE = \"sampleRate\"; // Count: 4\r\nexport var _DYN_CONVERT_UNDEFINED = \"convertUndefined\"; // Count: 2\r\nexport var _DYN__XHR_READY_STATE_CHA6 = \"_xhrReadyStateChange\"; // Count: 2\r\nexport var _DYN__ON_ERROR = \"_onError\"; // Count: 11\r\nexport var _DYN__ON_PARTIAL_SUCCESS = \"_onPartialSuccess\"; // Count: 3\r\nexport var _DYN__ON_SUCCESS = \"_onSuccess\"; // Count: 6\r\nexport var _DYN_ITEMS_ACCEPTED = \"itemsAccepted\"; // Count: 5\r\nexport var _DYN_ITEMS_RECEIVED = \"itemsReceived\"; // Count: 6\r\nexport var _DYN_IS_RETRY_DISABLED = \"isRetryDisabled\"; // Count: 5\r\nexport var _DYN_SET_REQUEST_HEADER = \"setRequestHeader\"; // Count: 3\r\nexport var _DYN_MAX_BATCH_INTERVAL = \"maxBatchInterval\"; // Count: 2\r\nexport var _DYN_EVENTS_SEND_REQUEST = \"eventsSendRequest\"; // Count: 2\r\nexport var _DYN_DISABLE_INSTRUMENTAT7 = \"disableInstrumentationKeyValidation\"; // Count: 2\r\nexport var _DYN_GET_SAMPLING_SCORE = \"getSamplingScore\"; // Count: 2\r\nexport var _DYN_GET_HASH_CODE_SCORE = \"getHashCodeScore\"; // Count: 4\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { __assignFn as __assign } from \"@microsoft/applicationinsights-shims\";\r\nimport { CtxTagKeys, Data, Envelope, Event, Exception, HttpMethod, Metric, PageView, PageViewPerformance, RemoteDependencyData, SampleRate, Trace, dataSanitizeString } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal, _warnToConsole, getJSON, hasJSON, isNullOrUndefined, isNumber, isString, isTruthy, objForEachKey, optimizeObject, setValue, toISOString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { STR_DURATION } from \"./InternalConstants\";\r\nimport { _DYN_DATA, _DYN_DATA_TYPE, _DYN_DEVICE_TYPE, _DYN_ENVELOPE_TYPE, _DYN_LENGTH, _DYN_MEASUREMENTS, _DYN_NAME, _DYN_STRINGIFY, _DYN_TAGS, _DYN_TO_STRING, _DYN_TRACE_ID } from \"./__DynamicConstants\";\r\n// these two constants are used to filter out properties not needed when trying to extract custom properties and measurements from the incoming payload\r\nvar strBaseType = \"baseType\";\r\nvar strBaseData = \"baseData\";\r\nvar strProperties = \"properties\";\r\nvar strTrue = \"true\";\r\nfunction _setValueIf(target, field, value) {\r\n return setValue(target, field, value, isTruthy);\r\n}\r\n/*\r\n * Maps Part A data from CS 4.0\r\n */\r\nfunction _extractPartAExtensions(logger, item, env) {\r\n // todo: switch to keys from common in this method\r\n var envTags = env[_DYN_TAGS /* @min:%2etags */] = env[_DYN_TAGS /* @min:%2etags */] || {};\r\n var itmExt = item.ext = item.ext || {};\r\n var itmTags = item[_DYN_TAGS /* @min:%2etags */] = item[_DYN_TAGS /* @min:%2etags */] || [];\r\n var extUser = itmExt.user;\r\n if (extUser) {\r\n _setValueIf(envTags, CtxTagKeys.userAuthUserId, extUser.authId);\r\n _setValueIf(envTags, CtxTagKeys.userId, extUser.id || extUser.localId);\r\n }\r\n var extApp = itmExt.app;\r\n if (extApp) {\r\n _setValueIf(envTags, CtxTagKeys.sessionId, extApp.sesId);\r\n }\r\n var extDevice = itmExt.device;\r\n if (extDevice) {\r\n _setValueIf(envTags, CtxTagKeys.deviceId, extDevice.id || extDevice.localId);\r\n _setValueIf(envTags, CtxTagKeys[_DYN_DEVICE_TYPE /* @min:%2edeviceType */], extDevice.deviceClass);\r\n _setValueIf(envTags, CtxTagKeys.deviceIp, extDevice.ip);\r\n _setValueIf(envTags, CtxTagKeys.deviceModel, extDevice.model);\r\n _setValueIf(envTags, CtxTagKeys[_DYN_DEVICE_TYPE /* @min:%2edeviceType */], extDevice[_DYN_DEVICE_TYPE /* @min:%2edeviceType */]);\r\n }\r\n var web = item.ext.web;\r\n if (web) {\r\n _setValueIf(envTags, CtxTagKeys.deviceLanguage, web.browserLang);\r\n _setValueIf(envTags, CtxTagKeys.deviceBrowserVersion, web.browserVer);\r\n _setValueIf(envTags, CtxTagKeys.deviceBrowser, web.browser);\r\n var envData = env[_DYN_DATA /* @min:%2edata */] = env[_DYN_DATA /* @min:%2edata */] || {};\r\n var envBaseData = envData[strBaseData] = envData[strBaseData] || {};\r\n var envProps = envBaseData[strProperties] = envBaseData[strProperties] || {};\r\n _setValueIf(envProps, \"domain\", web.domain);\r\n _setValueIf(envProps, \"isManual\", web.isManual ? strTrue : null);\r\n _setValueIf(envProps, \"screenRes\", web.screenRes);\r\n _setValueIf(envProps, \"userConsent\", web.userConsent ? strTrue : null);\r\n }\r\n var extOs = itmExt.os;\r\n if (extOs) {\r\n _setValueIf(envTags, CtxTagKeys.deviceOS, extOs[_DYN_NAME /* @min:%2ename */]);\r\n }\r\n // No support for mapping Trace.traceState to 2.0 as it is currently empty\r\n var extTrace = itmExt.trace;\r\n if (extTrace) {\r\n _setValueIf(envTags, CtxTagKeys.operationParentId, extTrace.parentID);\r\n _setValueIf(envTags, CtxTagKeys.operationName, dataSanitizeString(logger, extTrace[_DYN_NAME /* @min:%2ename */]));\r\n _setValueIf(envTags, CtxTagKeys.operationId, extTrace[_DYN_TRACE_ID /* @min:%2etraceID */]);\r\n }\r\n // Sample 4.0 schema\r\n // {\r\n // \"time\" : \"2018-09-05T22:51:22.4936Z\",\r\n // \"name\" : \"MetricWithNamespace\",\r\n // \"iKey\" : \"ABC-5a4cbd20-e601-4ef5-a3c6-5d6577e4398e\",\r\n // \"ext\": { \"cloud\": {\r\n // \"role\": \"WATSON3\",\r\n // \"roleInstance\": \"CO4AEAP00000260\"\r\n // },\r\n // \"device\": {}, \"correlation\": {} },\r\n // \"tags\": [\r\n // { \"amazon.region\" : \"east2\" },\r\n // { \"os.expid\" : \"wp:02df239\" }\r\n // ]\r\n // }\r\n var tgs = {};\r\n // deals with tags.push({object})\r\n for (var i = itmTags[_DYN_LENGTH /* @min:%2elength */] - 1; i >= 0; i--) {\r\n var tg = itmTags[i];\r\n objForEachKey(tg, function (key, value) {\r\n tgs[key] = value;\r\n });\r\n itmTags.splice(i, 1);\r\n }\r\n // deals with tags[key]=value (and handles hasOwnProperty)\r\n objForEachKey(itmTags, function (tg, value) {\r\n tgs[tg] = value;\r\n });\r\n var theTags = __assign(__assign({}, envTags), tgs);\r\n if (!theTags[CtxTagKeys.internalSdkVersion]) {\r\n // Append a version in case it is not already set\r\n theTags[CtxTagKeys.internalSdkVersion] = dataSanitizeString(logger, \"javascript:\".concat(EnvelopeCreator.Version), 64);\r\n }\r\n env[_DYN_TAGS /* @min:%2etags */] = optimizeObject(theTags);\r\n}\r\nfunction _extractPropsAndMeasurements(data, properties, measurements) {\r\n if (!isNullOrUndefined(data)) {\r\n objForEachKey(data, function (key, value) {\r\n if (isNumber(value)) {\r\n measurements[key] = value;\r\n }\r\n else if (isString(value)) {\r\n properties[key] = value;\r\n }\r\n else if (hasJSON()) {\r\n properties[key] = getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](value);\r\n }\r\n });\r\n }\r\n}\r\nfunction _convertPropsUndefinedToCustomDefinedValue(properties, customUndefinedValue) {\r\n if (!isNullOrUndefined(properties)) {\r\n objForEachKey(properties, function (key, value) {\r\n properties[key] = value || customUndefinedValue;\r\n });\r\n }\r\n}\r\n// TODO: Do we want this to take logger as arg or use this._logger as nonstatic?\r\nfunction _createEnvelope(logger, envelopeType, telemetryItem, data) {\r\n var envelope = new Envelope(logger, data, envelopeType);\r\n _setValueIf(envelope, \"sampleRate\", telemetryItem[SampleRate]);\r\n if ((telemetryItem[strBaseData] || {}).startTime) {\r\n envelope.time = toISOString(telemetryItem[strBaseData].startTime);\r\n }\r\n envelope.iKey = telemetryItem.iKey;\r\n var iKeyNoDashes = telemetryItem.iKey.replace(/-/g, \"\");\r\n envelope[_DYN_NAME /* @min:%2ename */] = envelope[_DYN_NAME /* @min:%2ename */].replace(\"{0}\", iKeyNoDashes);\r\n // extract all extensions from ctx\r\n _extractPartAExtensions(logger, telemetryItem, envelope);\r\n // loop through the envelope tags (extension of Part A) and pick out the ones that should go in outgoing envelope tags\r\n telemetryItem[_DYN_TAGS /* @min:%2etags */] = telemetryItem[_DYN_TAGS /* @min:%2etags */] || [];\r\n return optimizeObject(envelope);\r\n}\r\nfunction EnvelopeCreatorInit(logger, telemetryItem) {\r\n if (isNullOrUndefined(telemetryItem[strBaseData])) {\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 46 /* _eInternalMessageId.TelemetryEnvelopeInvalid */, \"telemetryItem.baseData cannot be null.\");\r\n }\r\n}\r\nexport var EnvelopeCreator = {\r\n Version: '2.8.18'\r\n};\r\nexport function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n var customMeasurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n var customProperties = telemetryItem[strBaseData][strProperties] || {};\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], customProperties, customMeasurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(customProperties, customUndefinedValue);\r\n }\r\n var bd = telemetryItem[strBaseData];\r\n if (isNullOrUndefined(bd)) {\r\n _warnToConsole(logger, \"Invalid input for dependency data\");\r\n return null;\r\n }\r\n var method = bd[strProperties] && bd[strProperties][HttpMethod] ? bd[strProperties][HttpMethod] : \"GET\";\r\n var remoteDepData = new RemoteDependencyData(logger, bd.id, bd.target, bd[_DYN_NAME /* @min:%2ename */], bd[STR_DURATION /* @min:%2eduration */], bd.success, bd.responseCode, method, bd.type, bd.correlationContext, customProperties, customMeasurements);\r\n var data = new Data(RemoteDependencyData[_DYN_DATA_TYPE /* @min:%2edataType */], remoteDepData);\r\n return _createEnvelope(logger, RemoteDependencyData[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\nexport function EventEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n var customProperties = {};\r\n var customMeasurements = {};\r\n if (telemetryItem[strBaseType] !== Event[_DYN_DATA_TYPE /* @min:%2edataType */]) {\r\n customProperties[\"baseTypeSource\"] = telemetryItem[strBaseType]; // save the passed in base type as a property\r\n }\r\n if (telemetryItem[strBaseType] === Event[_DYN_DATA_TYPE /* @min:%2edataType */]) { // take collection\r\n customProperties = telemetryItem[strBaseData][strProperties] || {};\r\n customMeasurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n }\r\n else { // if its not a known type, convert to custom event\r\n if (telemetryItem[strBaseData]) {\r\n _extractPropsAndMeasurements(telemetryItem[strBaseData], customProperties, customMeasurements);\r\n }\r\n }\r\n // Extract root level properties from part C telemetryItem.data\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], customProperties, customMeasurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(customProperties, customUndefinedValue);\r\n }\r\n var eventName = telemetryItem[strBaseData][_DYN_NAME /* @min:%2ename */];\r\n var eventData = new Event(logger, eventName, customProperties, customMeasurements);\r\n var data = new Data(Event[_DYN_DATA_TYPE /* @min:%2edataType */], eventData);\r\n return _createEnvelope(logger, Event[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\nexport function ExceptionEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n // Extract root level properties from part C telemetryItem.data\r\n var customMeasurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n var customProperties = telemetryItem[strBaseData][strProperties] || {};\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], customProperties, customMeasurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(customProperties, customUndefinedValue);\r\n }\r\n var bd = telemetryItem[strBaseData];\r\n var exData = Exception.CreateFromInterface(logger, bd, customProperties, customMeasurements);\r\n var data = new Data(Exception[_DYN_DATA_TYPE /* @min:%2edataType */], exData);\r\n return _createEnvelope(logger, Exception[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\nexport function MetricEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n var baseData = telemetryItem[strBaseData];\r\n var props = baseData[strProperties] || {};\r\n var measurements = baseData[_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], props, measurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(props, customUndefinedValue);\r\n }\r\n var baseMetricData = new Metric(logger, baseData[_DYN_NAME /* @min:%2ename */], baseData.average, baseData.sampleCount, baseData.min, baseData.max, baseData.stdDev, props, measurements);\r\n var data = new Data(Metric[_DYN_DATA_TYPE /* @min:%2edataType */], baseMetricData);\r\n return _createEnvelope(logger, Metric[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\nexport function PageViewEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n // Since duration is not part of the domain properties in Common Schema, extract it from part C\r\n var duration;\r\n var baseData = telemetryItem[strBaseData];\r\n if (!isNullOrUndefined(baseData) &&\r\n !isNullOrUndefined(baseData[strProperties]) &&\r\n !isNullOrUndefined(baseData[strProperties][STR_DURATION])) { // from part B properties\r\n duration = baseData[strProperties][STR_DURATION];\r\n delete baseData[strProperties][STR_DURATION];\r\n }\r\n else if (!isNullOrUndefined(telemetryItem[_DYN_DATA /* @min:%2edata */]) &&\r\n !isNullOrUndefined(telemetryItem[_DYN_DATA /* @min:%2edata */][STR_DURATION])) { // from custom properties\r\n duration = telemetryItem[_DYN_DATA /* @min:%2edata */][STR_DURATION];\r\n delete telemetryItem[_DYN_DATA /* @min:%2edata */][STR_DURATION];\r\n }\r\n var bd = telemetryItem[strBaseData];\r\n // special case: pageview.id is grabbed from current operation id. Analytics plugin is decoupled from properties plugin, so this is done here instead. This can be made a default telemetry intializer instead if needed to be decoupled from channel\r\n var currentContextId;\r\n if (((telemetryItem.ext || {}).trace || {})[_DYN_TRACE_ID /* @min:%2etraceID */]) {\r\n currentContextId = telemetryItem.ext.trace[_DYN_TRACE_ID /* @min:%2etraceID */];\r\n }\r\n var id = bd.id || currentContextId;\r\n var name = bd[_DYN_NAME /* @min:%2ename */];\r\n var url = bd.uri;\r\n var properties = bd[strProperties] || {};\r\n var measurements = bd[_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n // refUri is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\r\n if (!isNullOrUndefined(bd.refUri)) {\r\n properties[\"refUri\"] = bd.refUri;\r\n }\r\n // pageType is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\r\n if (!isNullOrUndefined(bd.pageType)) {\r\n properties[\"pageType\"] = bd.pageType;\r\n }\r\n // isLoggedIn is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\r\n if (!isNullOrUndefined(bd.isLoggedIn)) {\r\n properties[\"isLoggedIn\"] = bd.isLoggedIn[_DYN_TO_STRING /* @min:%2etoString */]();\r\n }\r\n // pageTags is a field that Breeze still does not recognize as part of Part B. For now, put it in Part C until it supports it as a domain property\r\n if (!isNullOrUndefined(bd[strProperties])) {\r\n var pageTags = bd[strProperties];\r\n objForEachKey(pageTags, function (key, value) {\r\n properties[key] = value;\r\n });\r\n }\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], properties, measurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(properties, customUndefinedValue);\r\n }\r\n var pageViewData = new PageView(logger, name, url, duration, properties, measurements, id);\r\n var data = new Data(PageView[_DYN_DATA_TYPE /* @min:%2edataType */], pageViewData);\r\n return _createEnvelope(logger, PageView[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\nexport function PageViewPerformanceEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n var bd = telemetryItem[strBaseData];\r\n var name = bd[_DYN_NAME /* @min:%2ename */];\r\n var url = bd.uri || bd.url;\r\n var properties = bd[strProperties] || {};\r\n var measurements = bd[_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], properties, measurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(properties, customUndefinedValue);\r\n }\r\n var baseData = new PageViewPerformance(logger, name, url, undefined, properties, measurements, bd);\r\n var data = new Data(PageViewPerformance[_DYN_DATA_TYPE /* @min:%2edataType */], baseData);\r\n return _createEnvelope(logger, PageViewPerformance[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\nexport function TraceEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {\r\n EnvelopeCreatorInit(logger, telemetryItem);\r\n var message = telemetryItem[strBaseData].message;\r\n var severityLevel = telemetryItem[strBaseData].severityLevel;\r\n var props = telemetryItem[strBaseData][strProperties] || {};\r\n var measurements = telemetryItem[strBaseData][_DYN_MEASUREMENTS /* @min:%2emeasurements */] || {};\r\n _extractPropsAndMeasurements(telemetryItem[_DYN_DATA /* @min:%2edata */], props, measurements);\r\n if (!isNullOrUndefined(customUndefinedValue)) {\r\n _convertPropsUndefinedToCustomDefinedValue(props, customUndefinedValue);\r\n }\r\n var baseData = new Trace(logger, message, severityLevel, props, measurements);\r\n var data = new Data(Trace[_DYN_DATA_TYPE /* @min:%2edataType */], baseData);\r\n return _createEnvelope(logger, Trace[_DYN_ENVELOPE_TYPE /* @min:%2eenvelopeType */], telemetryItem, data);\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { createUniqueNamespace, eventOff, eventOn, getDocument, getNavigator, getWindow, isNullOrUndefined, isUndefined, mergeEvtNamespace } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_IS_ONLINE, _DYN_ON_LINE } from \"./__DynamicConstants\";\r\nfunction _disableEvents(target, evtNamespace) {\r\n eventOff(target, null, null, evtNamespace);\r\n}\r\n/**\r\n * Create a new OfflineListener instance to monitor browser online / offline events\r\n * @param parentEvtNamespace - The parent event namespace to append to any specific events for this instance\r\n */\r\nexport function createOfflineListener(parentEvtNamespace) {\r\n var _a;\r\n var _document = getDocument();\r\n var _navigator = getNavigator(); // Gets the window.navigator or workerNavigator depending on the global\r\n var _isListening = false;\r\n var _onlineStatus = true;\r\n var _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"OfflineListener\"), parentEvtNamespace);\r\n try {\r\n if (_enableEvents(getWindow())) {\r\n _isListening = true;\r\n }\r\n if (_document) {\r\n // Also attach to the document.body or document\r\n var target = _document.body || _document;\r\n if (target.ononline) {\r\n if (_enableEvents(target)) {\r\n _isListening = true;\r\n }\r\n }\r\n }\r\n if (_isListening) {\r\n // We are listening to events so lets set the current status rather than assuming we are online #1538\r\n if (_navigator && !isNullOrUndefined(_navigator[_DYN_ON_LINE /* @min:%2eonLine */])) { // navigator.onLine is undefined in react-native\r\n _onlineStatus = _navigator[_DYN_ON_LINE /* @min:%2eonLine */];\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // this makes react-native less angry\r\n _isListening = false;\r\n }\r\n function _enableEvents(target) {\r\n var enabled = false;\r\n if (target) {\r\n enabled = eventOn(target, \"online\", _setOnline, _evtNamespace);\r\n if (enabled) {\r\n eventOn(target, \"offline\", _setOffline, _evtNamespace);\r\n }\r\n }\r\n return enabled;\r\n }\r\n function _setOnline() {\r\n _onlineStatus = true;\r\n }\r\n function _setOffline() {\r\n _onlineStatus = false;\r\n }\r\n function _isOnline() {\r\n var result = true;\r\n if (_isListening) {\r\n result = _onlineStatus;\r\n }\r\n else if (_navigator && !isNullOrUndefined(_navigator[_DYN_ON_LINE /* @min:%2eonLine */])) { // navigator.onLine is undefined in react-native\r\n result = _navigator[_DYN_ON_LINE /* @min:%2eonLine */];\r\n }\r\n return result;\r\n }\r\n function _unload() {\r\n var win = getWindow();\r\n if (win && _isListening) {\r\n _disableEvents(win, _evtNamespace);\r\n if (_document) {\r\n // Also attach to the document.body or document\r\n var target = _document.body || _document;\r\n if (!isUndefined(target.ononline)) {\r\n _disableEvents(target, _evtNamespace);\r\n }\r\n }\r\n _isListening = false;\r\n }\r\n }\r\n return _a = {},\r\n _a[_DYN_IS_ONLINE /* @min:isOnline */] = _isOnline,\r\n _a.isListening = function () { return _isListening; },\r\n _a.unload = _unload,\r\n _a;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { utlGetSessionStorage, utlSetSessionStorage } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal, arrForEach, arrIndexOf, dumpObj, getExceptionName, getJSON, isArray, isFunction, isString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_BATCH_PAYLOADS, _DYN_BUFFER_OVERRIDE, _DYN_CLEAR, _DYN_CLEAR_SENT, _DYN_COUNT, _DYN_EMIT_LINE_DELIMITED_0, _DYN_ENQUEUE, _DYN_EVENTS_LIMIT_IN_MEM, _DYN_LENGTH, _DYN_MARK_AS_SENT, _DYN_NAME_PREFIX, _DYN_PUSH, _DYN_STRINGIFY, _DYN__BUFFER__KEY, _DYN__MAX__BUFFER__SIZE, _DYN__SENT__BUFFER__KEY } from \"./__DynamicConstants\";\r\nvar BaseSendBuffer = /** @class */ (function () {\r\n function BaseSendBuffer(logger, config) {\r\n var _buffer = [];\r\n var _bufferFullMessageSent = false;\r\n this._get = function () {\r\n return _buffer;\r\n };\r\n this._set = function (buffer) {\r\n _buffer = buffer;\r\n return _buffer;\r\n };\r\n dynamicProto(BaseSendBuffer, this, function (_self) {\r\n _self[_DYN_ENQUEUE /* @min:%2eenqueue */] = function (payload) {\r\n if (_self[_DYN_COUNT /* @min:%2ecount */]() >= config[_DYN_EVENTS_LIMIT_IN_MEM /* @min:%2eeventsLimitInMem */]()) {\r\n // sent internal log only once per page view\r\n if (!_bufferFullMessageSent) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 105 /* _eInternalMessageId.InMemoryStorageBufferFull */, \"Maximum in-memory buffer size reached: \" + _self[_DYN_COUNT /* @min:%2ecount */](), true);\r\n _bufferFullMessageSent = true;\r\n }\r\n return;\r\n }\r\n _buffer[_DYN_PUSH /* @min:%2epush */](payload);\r\n };\r\n _self[_DYN_COUNT /* @min:%2ecount */] = function () {\r\n return _buffer[_DYN_LENGTH /* @min:%2elength */];\r\n };\r\n _self.size = function () {\r\n var size = _buffer[_DYN_LENGTH /* @min:%2elength */];\r\n for (var lp = 0; lp < _buffer[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n size += _buffer[lp][_DYN_LENGTH /* @min:%2elength */];\r\n }\r\n if (!config[_DYN_EMIT_LINE_DELIMITED_0 /* @min:%2eemitLineDelimitedJson */]()) {\r\n size += 2;\r\n }\r\n return size;\r\n };\r\n _self[_DYN_CLEAR /* @min:%2eclear */] = function () {\r\n _buffer = [];\r\n _bufferFullMessageSent = false;\r\n };\r\n _self.getItems = function () {\r\n return _buffer.slice(0);\r\n };\r\n _self[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */] = function (payload) {\r\n if (payload && payload[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n var batch = config[_DYN_EMIT_LINE_DELIMITED_0 /* @min:%2eemitLineDelimitedJson */]() ?\r\n payload.join(\"\\n\") :\r\n \"[\" + payload.join(\",\") + \"]\";\r\n return batch;\r\n }\r\n return null;\r\n };\r\n });\r\n }\r\n// Removed Stub for BaseSendBuffer.prototype.enqueue.\r\n// Removed Stub for BaseSendBuffer.prototype.count.\r\n// Removed Stub for BaseSendBuffer.prototype.size.\r\n// Removed Stub for BaseSendBuffer.prototype.clear.\r\n// Removed Stub for BaseSendBuffer.prototype.getItems.\r\n// Removed Stub for BaseSendBuffer.prototype.batchPayloads.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n BaseSendBuffer.__ieDyn=1;\n\n return BaseSendBuffer;\r\n}());\r\n/*\r\n * An array based send buffer.\r\n */\r\nvar ArraySendBuffer = /** @class */ (function (_super) {\r\n __extends(ArraySendBuffer, _super);\r\n function ArraySendBuffer(logger, config) {\r\n var _this = _super.call(this, logger, config) || this;\r\n dynamicProto(ArraySendBuffer, _this, function (_self, _base) {\r\n _self[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */] = function (payload) {\r\n _base[_DYN_CLEAR /* @min:%2eclear */]();\r\n };\r\n _self[_DYN_CLEAR_SENT /* @min:%2eclearSent */] = function (payload) {\r\n // not supported\r\n };\r\n });\r\n return _this;\r\n }\r\n// Removed Stub for ArraySendBuffer.prototype.markAsSent.\r\n// Removed Stub for ArraySendBuffer.prototype.clearSent.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n ArraySendBuffer.__ieDyn=1;\n\n return ArraySendBuffer;\r\n}(BaseSendBuffer));\r\nexport { ArraySendBuffer };\r\n/*\r\n * Session storage buffer holds a copy of all unsent items in the browser session storage.\r\n */\r\nvar SessionStorageSendBuffer = /** @class */ (function (_super) {\r\n __extends(SessionStorageSendBuffer, _super);\r\n function SessionStorageSendBuffer(logger, config) {\r\n var _this = _super.call(this, logger, config) || this;\r\n var _bufferFullMessageSent = false;\r\n var _a = config[_DYN_BUFFER_OVERRIDE /* @min:%2ebufferOverride */]() || { getItem: utlGetSessionStorage, setItem: utlSetSessionStorage }, getItem = _a.getItem, setItem = _a.setItem;\r\n dynamicProto(SessionStorageSendBuffer, _this, function (_self, _base) {\r\n var bufferItems = _getBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */]);\r\n var notDeliveredItems = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]);\r\n var buffer = _self._set(bufferItems.concat(notDeliveredItems));\r\n // If the buffer has too many items, drop items from the end.\r\n if (buffer[_DYN_LENGTH /* @min:%2elength */] > SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */]) {\r\n buffer[_DYN_LENGTH /* @min:%2elength */] = SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */];\r\n }\r\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], []);\r\n _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */], buffer);\r\n _self[_DYN_ENQUEUE /* @min:%2eenqueue */] = function (payload) {\r\n if (_self[_DYN_COUNT /* @min:%2ecount */]() >= SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */]) {\r\n // sent internal log only once per page view\r\n if (!_bufferFullMessageSent) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 67 /* _eInternalMessageId.SessionStorageBufferFull */, \"Maximum buffer size reached: \" + _self[_DYN_COUNT /* @min:%2ecount */](), true);\r\n _bufferFullMessageSent = true;\r\n }\r\n return;\r\n }\r\n _base[_DYN_ENQUEUE /* @min:%2eenqueue */](payload);\r\n _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */], _self._get());\r\n };\r\n _self[_DYN_CLEAR /* @min:%2eclear */] = function () {\r\n _base[_DYN_CLEAR /* @min:%2eclear */]();\r\n _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */], _self._get());\r\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], []);\r\n _bufferFullMessageSent = false;\r\n };\r\n _self[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */] = function (payload) {\r\n _setBuffer(SessionStorageSendBuffer[_DYN__BUFFER__KEY /* @min:%2eBUFFER_KEY */], _self._set(_removePayloadsFromBuffer(payload, _self._get())));\r\n var sentElements = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]);\r\n if (sentElements instanceof Array && payload instanceof Array) {\r\n sentElements = sentElements.concat(payload);\r\n if (sentElements[_DYN_LENGTH /* @min:%2elength */] > SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */]) {\r\n // We send telemetry normally. If the SENT_BUFFER is too big we don't add new elements\r\n // until we receive a response from the backend and the buffer has free space again (see clearSent method)\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 67 /* _eInternalMessageId.SessionStorageBufferFull */, \"Sent buffer reached its maximum size: \" + sentElements[_DYN_LENGTH /* @min:%2elength */], true);\r\n sentElements[_DYN_LENGTH /* @min:%2elength */] = SessionStorageSendBuffer[_DYN__MAX__BUFFER__SIZE /* @min:%2eMAX_BUFFER_SIZE */];\r\n }\r\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], sentElements);\r\n }\r\n };\r\n _self[_DYN_CLEAR_SENT /* @min:%2eclearSent */] = function (payload) {\r\n var sentElements = _getBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */]);\r\n sentElements = _removePayloadsFromBuffer(payload, sentElements);\r\n _setBuffer(SessionStorageSendBuffer[_DYN__SENT__BUFFER__KEY /* @min:%2eSENT_BUFFER_KEY */], sentElements);\r\n };\r\n function _removePayloadsFromBuffer(payloads, buffer) {\r\n var remaining = [];\r\n arrForEach(buffer, function (value) {\r\n if (!isFunction(value) && arrIndexOf(payloads, value) === -1) {\r\n remaining[_DYN_PUSH /* @min:%2epush */](value);\r\n }\r\n });\r\n return remaining;\r\n }\r\n function _getBuffer(key) {\r\n var prefixedKey = key;\r\n try {\r\n prefixedKey = config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] && config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() ? config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() + \"_\" + prefixedKey : prefixedKey;\r\n var bufferJson = getItem(logger, prefixedKey);\r\n if (bufferJson) {\r\n var buffer_1 = getJSON().parse(bufferJson);\r\n if (isString(buffer_1)) {\r\n // When using some version prototype.js the stringify / parse cycle does not decode array's correctly\r\n buffer_1 = getJSON().parse(buffer_1);\r\n }\r\n if (buffer_1 && isArray(buffer_1)) {\r\n return buffer_1;\r\n }\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 42 /* _eInternalMessageId.FailedToRestoreStorageBuffer */, \" storage key: \" + prefixedKey + \", \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n return [];\r\n }\r\n function _setBuffer(key, buffer) {\r\n var prefixedKey = key;\r\n try {\r\n prefixedKey = config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] && config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() ? config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() + \"_\" + prefixedKey : prefixedKey;\r\n var bufferJson = JSON[_DYN_STRINGIFY /* @min:%2estringify */](buffer);\r\n setItem(logger, prefixedKey, bufferJson);\r\n }\r\n catch (e) {\r\n // if there was an error, clear the buffer\r\n // telemetry is stored in the _buffer array so we won't loose any items\r\n setItem(logger, prefixedKey, JSON[_DYN_STRINGIFY /* @min:%2estringify */]([]));\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 41 /* _eInternalMessageId.FailedToSetStorageBuffer */, \" storage key: \" + prefixedKey + \", \" + getExceptionName(e) + \". Buffer cleared\", { exception: dumpObj(e) });\r\n }\r\n }\r\n });\r\n return _this;\r\n }\r\n// Removed Stub for SessionStorageSendBuffer.prototype.enqueue.\r\n// Removed Stub for SessionStorageSendBuffer.prototype.clear.\r\n// Removed Stub for SessionStorageSendBuffer.prototype.markAsSent.\r\n// Removed Stub for SessionStorageSendBuffer.prototype.clearSent.\r\n SessionStorageSendBuffer.BUFFER_KEY = \"AI_buffer\";\r\n SessionStorageSendBuffer.SENT_BUFFER_KEY = \"AI_sentBuffer\";\r\n // Maximum number of payloads stored in the buffer. If the buffer is full, new elements will be dropped.\r\n SessionStorageSendBuffer.MAX_BUFFER_SIZE = 2000;\r\n return SessionStorageSendBuffer;\r\n}(BaseSendBuffer));\r\nexport { SessionStorageSendBuffer };\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nvar _a;\r\nimport { __assignFn as __assign, __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception, Metric, PageView, PageViewPerformance, ProcessLegacy, RemoteDependencyData, RequestHeaders, SampleRate, Trace, isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _throwInternal, _warnToConsole, arrForEach, arrIndexOf, createUniqueNamespace, dateNow, dumpObj, getExceptionName, getIEVersion, getJSON, getNavigator, getWindow, isArray, isBeaconsSupported, isFetchSupported, isNullOrUndefined, isXhrSupported, mergeEvtNamespace, objForEachKey, objKeys, useXDomainRequest } from \"@microsoft/applicationinsights-core-js\";\r\nimport { DependencyEnvelopeCreator, EventEnvelopeCreator, ExceptionEnvelopeCreator, MetricEnvelopeCreator, PageViewEnvelopeCreator, PageViewPerformanceEnvelopeCreator, TraceEnvelopeCreator } from \"./EnvelopeCreator\";\r\nimport { createOfflineListener } from \"./Offline\";\r\nimport { ArraySendBuffer, SessionStorageSendBuffer } from \"./SendBuffer\";\r\nimport { Serializer } from \"./Serializer\";\r\nimport { Sample } from \"./TelemetryProcessors/Sample\";\r\nimport { _DYN_BASE_TYPE, _DYN_BATCH_PAYLOADS, _DYN_BUFFER_OVERRIDE, _DYN_CLEAR, _DYN_CLEAR_SENT, _DYN_CONVERT_UNDEFINED, _DYN_COUNT, _DYN_CUSTOM_HEADERS, _DYN_DIAG_LOG, _DYN_DISABLE_INSTRUMENTAT7, _DYN_DISABLE_TELEMETRY, _DYN_DISABLE_XHR, _DYN_EMIT_LINE_DELIMITED_0, _DYN_ENABLE_SESSION_STORA4, _DYN_ENDPOINT_URL, _DYN_ENQUEUE, _DYN_EVENTS_LIMIT_IN_MEM, _DYN_EVENTS_SEND_REQUEST, _DYN_INSTRUMENTATION_KEY, _DYN_IS_BEACON_API_DISABL3, _DYN_IS_ONLINE, _DYN_IS_RETRY_DISABLED, _DYN_ITEMS_ACCEPTED, _DYN_ITEMS_RECEIVED, _DYN_LENGTH, _DYN_MARK_AS_SENT, _DYN_MAX_BATCH_INTERVAL, _DYN_MAX_BATCH_SIZE_IN_BY1, _DYN_NAME_PREFIX, _DYN_ONUNLOAD_DISABLE_BEA2, _DYN_ONUNLOAD_DISABLE_FET5, _DYN_PUSH, _DYN_SAMPLE_RATE, _DYN_SAMPLING_PERCENTAGE, _DYN_SET_REQUEST_HEADER, _DYN_TAGS, _DYN_TRIGGER_SEND, _DYN__BUFFER, _DYN__ON_ERROR, _DYN__ON_PARTIAL_SUCCESS, _DYN__ON_SUCCESS, _DYN__SENDER, _DYN__SENDER_CONFIG, _DYN__XHR_READY_STATE_CHA6 } from \"./__DynamicConstants\";\r\nvar FetchSyncRequestSizeLimitBytes = 65000; // approx 64kb (the current Edge, Firefox and Chrome max limit)\r\nfunction _getResponseText(xhr) {\r\n try {\r\n return xhr.responseText;\r\n }\r\n catch (e) {\r\n // Best effort, as XHR may throw while XDR wont so just ignore\r\n }\r\n return null;\r\n}\r\nfunction _getDefaultAppInsightsChannelConfig() {\r\n var _a;\r\n var defaultValue;\r\n var defaultCustomHeaders;\r\n // set default values\r\n return _a = {\r\n endpointUrl: function () { return DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH; }\r\n },\r\n _a[_DYN_EMIT_LINE_DELIMITED_0 /* @min:emitLineDelimitedJson */] = function () { return false; },\r\n _a[_DYN_MAX_BATCH_INTERVAL /* @min:maxBatchInterval */] = function () { return 15000; },\r\n _a[_DYN_MAX_BATCH_SIZE_IN_BY1 /* @min:maxBatchSizeInBytes */] = function () { return 102400; },\r\n _a[_DYN_DISABLE_TELEMETRY /* @min:disableTelemetry */] = function () { return false; },\r\n _a[_DYN_ENABLE_SESSION_STORA4 /* @min:enableSessionStorageBuffer */] = function () { return true; },\r\n _a[_DYN_BUFFER_OVERRIDE /* @min:bufferOverride */] = function () { return false; },\r\n _a[_DYN_IS_RETRY_DISABLED /* @min:isRetryDisabled */] = function () { return false; },\r\n _a[_DYN_IS_BEACON_API_DISABL3 /* @min:isBeaconApiDisabled */] = function () { return true; },\r\n _a[_DYN_DISABLE_XHR /* @min:disableXhr */] = function () { return false; },\r\n _a[_DYN_ONUNLOAD_DISABLE_FET5 /* @min:onunloadDisableFetch */] = function () { return false; },\r\n _a[_DYN_ONUNLOAD_DISABLE_BEA2 /* @min:onunloadDisableBeacon */] = function () { return false; },\r\n _a[_DYN_INSTRUMENTATION_KEY /* @min:instrumentationKey */] = function () { return defaultValue; },\r\n _a[_DYN_NAME_PREFIX /* @min:namePrefix */] = function () { return defaultValue; },\r\n _a[_DYN_SAMPLING_PERCENTAGE /* @min:samplingPercentage */] = function () { return 100; },\r\n _a[_DYN_CUSTOM_HEADERS /* @min:customHeaders */] = function () { return defaultCustomHeaders; },\r\n _a[_DYN_CONVERT_UNDEFINED /* @min:convertUndefined */] = function () { return defaultValue; },\r\n _a[_DYN_EVENTS_LIMIT_IN_MEM /* @min:eventsLimitInMem */] = function () { return 10000; },\r\n _a.retryCodes = function () { return null; },\r\n _a;\r\n}\r\nvar EnvelopeTypeCreator = (_a = {},\r\n _a[Event.dataType] = EventEnvelopeCreator,\r\n _a[Trace.dataType] = TraceEnvelopeCreator,\r\n _a[PageView.dataType] = PageViewEnvelopeCreator,\r\n _a[PageViewPerformance.dataType] = PageViewPerformanceEnvelopeCreator,\r\n _a[Exception.dataType] = ExceptionEnvelopeCreator,\r\n _a[Metric.dataType] = MetricEnvelopeCreator,\r\n _a[RemoteDependencyData.dataType] = DependencyEnvelopeCreator,\r\n _a);\r\nvar Sender = /** @class */ (function (_super) {\r\n __extends(Sender, _super);\r\n function Sender() {\r\n var _this = _super.call(this) || this;\r\n _this.priority = 1001;\r\n _this.identifier = BreezeChannelIdentifier;\r\n /**\r\n * The configuration for this sender instance\r\n */\r\n _this._senderConfig = _getDefaultAppInsightsChannelConfig();\r\n // Don't set the defaults here, set them in the _initDefaults() as this is also called during unload\r\n var _consecutiveErrors; // How many times in a row a retryable error condition has occurred.\r\n var _retryAt; // The time to retry at in milliseconds from 1970/01/01 (this makes the timer calculation easy).\r\n var _lastSend; // The time of the last send operation.\r\n var _paused; // Flag indicating that the sending should be paused\r\n var _timeoutHandle; // Handle to the timer for delayed sending of batches of data.\r\n var _serializer;\r\n var _stamp_specific_redirects;\r\n var _headers;\r\n var _syncFetchPayload = 0; // Keep track of the outstanding sync fetch payload total (as sync fetch has limits)\r\n var _fallbackSender; // The sender to use if the payload size is too large\r\n var _syncUnloadSender; // The identified sender to use for the synchronous unload stage\r\n var _offlineListener;\r\n var _evtNamespace;\r\n var _retryCodes;\r\n dynamicProto(Sender, _this, function (_self, _base) {\r\n _initDefaults();\r\n _self.pause = function () {\r\n _clearScheduledTimer();\r\n _paused = true;\r\n };\r\n _self.resume = function () {\r\n if (_paused) {\r\n _paused = false;\r\n _retryAt = null;\r\n // flush if we have exceeded the max-size already\r\n if (_self._buffer.size() > _self._senderConfig[_DYN_MAX_BATCH_SIZE_IN_BY1 /* @min:%2emaxBatchSizeInBytes */]()) {\r\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, null, 10 /* SendRequestReason.MaxBatchSize */);\r\n }\r\n _setupTimer();\r\n }\r\n };\r\n _self.flush = function (isAsync, callBack, sendReason) {\r\n if (isAsync === void 0) { isAsync = true; }\r\n if (!_paused) {\r\n // Clear the normal schedule timer as we are going to try and flush ASAP\r\n _clearScheduledTimer();\r\n try {\r\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](isAsync, null, sendReason || 1 /* SendRequestReason.ManualFlush */);\r\n }\r\n catch (e) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 22 /* _eInternalMessageId.FlushFailed */, \"flush failed, telemetry will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n };\r\n _self.onunloadFlush = function () {\r\n if (!_paused) {\r\n if ((_self._senderConfig[_DYN_ONUNLOAD_DISABLE_BEA2 /* @min:%2eonunloadDisableBeacon */]() === false || _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_IS_BEACON_API_DISABL3 /* @min:%2eisBeaconApiDisabled */]() === false) && isBeaconsSupported()) {\r\n try {\r\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, _doUnloadSend, 2 /* SendRequestReason.Unload */);\r\n }\r\n catch (e) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 20 /* _eInternalMessageId.FailedToSendQueuedTelemetry */, \"failed to flush with beacon sender on page unload, telemetry will not be collected: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n else {\r\n _self.flush();\r\n }\r\n }\r\n };\r\n _self.addHeader = function (name, value) {\r\n _headers[name] = value;\r\n };\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n if (_self.isInitialized()) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 28 /* _eInternalMessageId.SenderNotInitialized */, \"Sender is already initialized\");\r\n }\r\n _base.initialize(config, core, extensions, pluginChain);\r\n var ctx = _self._getTelCtx();\r\n var identifier = _self.identifier;\r\n _serializer = new Serializer(core.logger);\r\n _consecutiveErrors = 0;\r\n _retryAt = null;\r\n _lastSend = 0;\r\n _self[_DYN__SENDER /* @min:%2e_sender */] = null;\r\n _stamp_specific_redirects = 0;\r\n var diagLog = _self[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\r\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"Sender\"), core.evtNamespace && core.evtNamespace());\r\n _offlineListener = createOfflineListener(_evtNamespace);\r\n // TODO v3.x: Change the ISenderConfig to not be function calls\r\n var defaultConfig = _getDefaultAppInsightsChannelConfig();\r\n objForEachKey(defaultConfig, function (field, value) {\r\n _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][field] = function () {\r\n var theValue = ctx.getConfig(identifier, field, value());\r\n if (!theValue && field === \"endpointUrl\") {\r\n // Use the default value (handles empty string in the configuration)\r\n theValue = value();\r\n }\r\n return theValue;\r\n };\r\n });\r\n _retryCodes = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */].retryCodes();\r\n if (config.storagePrefix) {\r\n utlSetStoragePrefix(config.storagePrefix);\r\n }\r\n var useSessionStorage = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENABLE_SESSION_STORA4 /* @min:%2eenableSessionStorageBuffer */]() &&\r\n !!(_self._senderConfig[_DYN_BUFFER_OVERRIDE /* @min:%2ebufferOverride */]() || utlCanUseSessionStorage());\r\n _self[_DYN__BUFFER /* @min:%2e_buffer */] = useSessionStorage\r\n ? new SessionStorageSendBuffer(diagLog, _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */])\r\n : new ArraySendBuffer(diagLog, _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */]);\r\n _self._sample = new Sample(_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_SAMPLING_PERCENTAGE /* @min:%2esamplingPercentage */](), diagLog);\r\n if (!_validateInstrumentationKey(config)) {\r\n _throwInternal(diagLog, 1 /* eLoggingSeverity.CRITICAL */, 100 /* _eInternalMessageId.InvalidInstrumentationKey */, \"Invalid Instrumentation key \" + config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */]);\r\n }\r\n if (!isInternalApplicationInsightsEndpoint(_self._senderConfig.endpointUrl()) && _self._senderConfig.customHeaders() && _self._senderConfig.customHeaders()[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n arrForEach(_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_CUSTOM_HEADERS /* @min:%2ecustomHeaders */](), function (customHeader) {\r\n _this.addHeader(customHeader.header, customHeader.value);\r\n });\r\n }\r\n var senderConfig = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */];\r\n var sendPostFunc = null;\r\n if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */]() && useXDomainRequest()) {\r\n sendPostFunc = _xdrSender; // IE 8 and 9\r\n }\r\n else if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */]() && isXhrSupported()) {\r\n sendPostFunc = _xhrSender;\r\n }\r\n if (!sendPostFunc && isFetchSupported()) {\r\n sendPostFunc = _fetchSender;\r\n }\r\n // always fallback to XHR\r\n _fallbackSender = sendPostFunc || _xhrSender;\r\n if (!senderConfig[_DYN_IS_BEACON_API_DISABL3 /* @min:%2eisBeaconApiDisabled */]() && isBeaconsSupported()) {\r\n // Config is set to always used beacon sending\r\n sendPostFunc = _beaconSender;\r\n }\r\n _self[_DYN__SENDER /* @min:%2e_sender */] = sendPostFunc || _xhrSender;\r\n if (!senderConfig[_DYN_ONUNLOAD_DISABLE_FET5 /* @min:%2eonunloadDisableFetch */]() && isFetchSupported(true)) {\r\n // Try and use the fetch with keepalive\r\n _syncUnloadSender = _fetchKeepAliveSender;\r\n }\r\n else if (isBeaconsSupported()) {\r\n // Try and use sendBeacon\r\n _syncUnloadSender = _beaconSender;\r\n }\r\n else if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */]() && useXDomainRequest()) {\r\n _syncUnloadSender = _xdrSender; // IE 8 and 9\r\n }\r\n else if (!senderConfig[_DYN_DISABLE_XHR /* @min:%2edisableXhr */]() && isXhrSupported()) {\r\n _syncUnloadSender = _xhrSender;\r\n }\r\n else {\r\n _syncUnloadSender = _fallbackSender;\r\n }\r\n };\r\n _self.processTelemetry = function (telemetryItem, itemCtx) {\r\n itemCtx = _self._getTelCtx(itemCtx);\r\n var diagLogger = itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */]();\r\n try {\r\n // if master off switch is set, don't send any data\r\n if (_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_DISABLE_TELEMETRY /* @min:%2edisableTelemetry */]()) {\r\n // Do not send/save data\r\n return;\r\n }\r\n // validate input\r\n if (!telemetryItem) {\r\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 7 /* _eInternalMessageId.CannotSendEmptyTelemetry */, \"Cannot send empty telemetry\");\r\n return;\r\n }\r\n // validate event\r\n if (telemetryItem.baseData && !telemetryItem[_DYN_BASE_TYPE /* @min:%2ebaseType */]) {\r\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 70 /* _eInternalMessageId.InvalidEvent */, \"Cannot send telemetry without baseData and baseType\");\r\n return;\r\n }\r\n if (!telemetryItem[_DYN_BASE_TYPE /* @min:%2ebaseType */]) {\r\n // Default\r\n telemetryItem[_DYN_BASE_TYPE /* @min:%2ebaseType */] = \"EventData\";\r\n }\r\n // ensure a sender was constructed\r\n if (!_self[_DYN__SENDER /* @min:%2e_sender */]) {\r\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 28 /* _eInternalMessageId.SenderNotInitialized */, \"Sender was not initialized\");\r\n return;\r\n }\r\n // check if this item should be sampled in, else add sampleRate tag\r\n if (!_isSampledIn(telemetryItem)) {\r\n // Item is sampled out, do not send it\r\n _throwInternal(diagLogger, 2 /* eLoggingSeverity.WARNING */, 33 /* _eInternalMessageId.TelemetrySampledAndNotSent */, \"Telemetry item was sampled out and not sent\", { SampleRate: _self._sample[_DYN_SAMPLE_RATE /* @min:%2esampleRate */] });\r\n return;\r\n }\r\n else {\r\n telemetryItem[SampleRate] = _self._sample[_DYN_SAMPLE_RATE /* @min:%2esampleRate */];\r\n }\r\n var convertUndefined = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_CONVERT_UNDEFINED /* @min:%2econvertUndefined */]() || undefined;\r\n // construct an envelope that Application Insights endpoint can understand\r\n // if ikey of telemetry is provided and not empty, envelope will use this iKey instead of senderConfig iKey\r\n var defaultEnvelopeIkey = telemetryItem.iKey || _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */]();\r\n var aiEnvelope_1 = Sender.constructEnvelope(telemetryItem, defaultEnvelopeIkey, diagLogger, convertUndefined);\r\n if (!aiEnvelope_1) {\r\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 47 /* _eInternalMessageId.CreateEnvelopeError */, \"Unable to create an AppInsights envelope\");\r\n return;\r\n }\r\n var doNotSendItem_1 = false;\r\n // this is for running in legacy mode, where customer may already have a custom initializer present\r\n if (telemetryItem[_DYN_TAGS /* @min:%2etags */] && telemetryItem[_DYN_TAGS /* @min:%2etags */][ProcessLegacy]) {\r\n arrForEach(telemetryItem[_DYN_TAGS /* @min:%2etags */][ProcessLegacy], function (callBack) {\r\n try {\r\n if (callBack && callBack(aiEnvelope_1) === false) {\r\n doNotSendItem_1 = true;\r\n _warnToConsole(diagLogger, \"Telemetry processor check returns false\");\r\n }\r\n }\r\n catch (e) {\r\n // log error but dont stop executing rest of the telemetry initializers\r\n // doNotSendItem = true;\r\n _throwInternal(diagLogger, 1 /* eLoggingSeverity.CRITICAL */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"One of telemetry initializers failed, telemetry item will not be sent: \" + getExceptionName(e), { exception: dumpObj(e) }, true);\r\n }\r\n });\r\n delete telemetryItem[_DYN_TAGS /* @min:%2etags */][ProcessLegacy];\r\n }\r\n if (doNotSendItem_1) {\r\n return; // do not send, no need to execute next plugin\r\n }\r\n // check if the incoming payload is too large, truncate if necessary\r\n var payload = _serializer.serialize(aiEnvelope_1);\r\n // flush if we would exceed the max-size limit by adding this item\r\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\r\n var bufferSize = buffer.size();\r\n if ((bufferSize + payload[_DYN_LENGTH /* @min:%2elength */]) > _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_MAX_BATCH_SIZE_IN_BY1 /* @min:%2emaxBatchSizeInBytes */]()) {\r\n if (!_offlineListener || _offlineListener[_DYN_IS_ONLINE /* @min:%2eisOnline */]()) { // only trigger send when currently online\r\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, null, 10 /* SendRequestReason.MaxBatchSize */);\r\n }\r\n }\r\n // enqueue the payload\r\n buffer[_DYN_ENQUEUE /* @min:%2eenqueue */](payload);\r\n // ensure an invocation timeout is set\r\n _setupTimer();\r\n }\r\n catch (e) {\r\n _throwInternal(diagLogger, 2 /* eLoggingSeverity.WARNING */, 12 /* _eInternalMessageId.FailedAddingTelemetryToBuffer */, \"Failed adding telemetry to the sender's buffer, some telemetry will be lost: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n // hand off the telemetry item to the next plugin\r\n _self.processNext(telemetryItem, itemCtx);\r\n };\r\n /**\r\n * xhr state changes\r\n */\r\n _self[_DYN__XHR_READY_STATE_CHA6 /* @min:%2e_xhrReadyStateChange */] = function (xhr, payload, countOfItemsInPayload) {\r\n if (xhr.readyState === 4) {\r\n _checkResponsStatus(xhr.status, payload, xhr.responseURL, countOfItemsInPayload, _formatErrorMessageXhr(xhr), _getResponseText(xhr) || xhr.response);\r\n }\r\n };\r\n /**\r\n * Immediately send buffered data\r\n * @param async {boolean} - Indicates if the events should be sent asynchronously\r\n * @param forcedSender {SenderFunction} - Indicates the forcedSender, undefined if not passed\r\n */\r\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */] = function (async, forcedSender, sendReason) {\r\n if (async === void 0) { async = true; }\r\n if (!_paused) {\r\n try {\r\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\r\n // Send data only if disableTelemetry is false\r\n if (!_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_DISABLE_TELEMETRY /* @min:%2edisableTelemetry */]()) {\r\n if (buffer[_DYN_COUNT /* @min:%2ecount */]() > 0) {\r\n var payload = buffer.getItems();\r\n _notifySendRequest(sendReason || 0 /* SendRequestReason.Undefined */, async);\r\n // invoke send\r\n if (forcedSender) {\r\n forcedSender.call(_self, payload, async);\r\n }\r\n else {\r\n _self[_DYN__SENDER /* @min:%2e_sender */](payload, async);\r\n }\r\n }\r\n // update lastSend time to enable throttling\r\n _lastSend = +new Date;\r\n }\r\n else {\r\n buffer[_DYN_CLEAR /* @min:%2eclear */]();\r\n }\r\n _clearScheduledTimer();\r\n }\r\n catch (e) {\r\n /* Ignore this error for IE under v10 */\r\n var ieVer = getIEVersion();\r\n if (!ieVer || ieVer > 9) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 40 /* _eInternalMessageId.TransmissionFailed */, \"Telemetry transmission failed, some telemetry will be lost: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState) {\r\n _self.onunloadFlush();\r\n _offlineListener.unload();\r\n _initDefaults();\r\n };\r\n /**\r\n * error handler\r\n */\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */] = function (payload, message, event) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 26 /* _eInternalMessageId.OnError */, \"Failed to send telemetry.\", { message: message });\r\n _self._buffer && _self._buffer[_DYN_CLEAR_SENT /* @min:%2eclearSent */](payload);\r\n };\r\n /**\r\n * partial success handler\r\n */\r\n _self[_DYN__ON_PARTIAL_SUCCESS /* @min:%2e_onPartialSuccess */] = function (payload, results) {\r\n var failed = [];\r\n var retry = [];\r\n // Iterate through the reversed array of errors so that splicing doesn't have invalid indexes after the first item.\r\n var errors = results.errors.reverse();\r\n for (var _i = 0, errors_1 = errors; _i < errors_1.length; _i++) {\r\n var error = errors_1[_i];\r\n var extracted = payload.splice(error.index, 1)[0];\r\n if (_isRetriable(error.statusCode)) {\r\n retry[_DYN_PUSH /* @min:%2epush */](extracted);\r\n }\r\n else {\r\n // All other errors, including: 402 (Monthly quota exceeded) and 439 (Too many requests and refresh cache).\r\n failed[_DYN_PUSH /* @min:%2epush */](extracted);\r\n }\r\n }\r\n if (payload[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */](payload, results[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */]);\r\n }\r\n if (failed[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](failed, _formatErrorMessageXhr(null, [\"partial success\", results[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */], \"of\", results.itemsReceived].join(\" \")));\r\n }\r\n if (retry[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n _resendPayload(retry);\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \"Partial success. \" +\r\n \"Delivered: \" + payload[_DYN_LENGTH /* @min:%2elength */] + \", Failed: \" + failed[_DYN_LENGTH /* @min:%2elength */] +\r\n \". Will retry to send \" + retry[_DYN_LENGTH /* @min:%2elength */] + \" our of \" + results[_DYN_ITEMS_RECEIVED /* @min:%2eitemsReceived */] + \" items\");\r\n }\r\n };\r\n /**\r\n * success handler\r\n */\r\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */] = function (payload, countOfItemsInPayload) {\r\n _self._buffer && _self._buffer[_DYN_CLEAR_SENT /* @min:%2eclearSent */](payload);\r\n };\r\n /**\r\n * xdr state changes\r\n */\r\n _self._xdrOnLoad = function (xdr, payload) {\r\n var responseText = _getResponseText(xdr);\r\n if (xdr && (responseText + \"\" === \"200\" || responseText === \"\")) {\r\n _consecutiveErrors = 0;\r\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */](payload, 0);\r\n }\r\n else {\r\n var results = _parseResponse(responseText);\r\n if (results && results.itemsReceived && results.itemsReceived > results[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */]\r\n && !_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_IS_RETRY_DISABLED /* @min:%2eisRetryDisabled */]()) {\r\n _self[_DYN__ON_PARTIAL_SUCCESS /* @min:%2e_onPartialSuccess */](payload, results);\r\n }\r\n else {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, _formatErrorMessageXdr(xdr));\r\n }\r\n }\r\n };\r\n function _isSampledIn(envelope) {\r\n return _self._sample.isSampledIn(envelope);\r\n }\r\n function _checkResponsStatus(status, payload, responseUrl, countOfItemsInPayload, errorMessage, res) {\r\n var response = null;\r\n if (!_self._appId) {\r\n response = _parseResponse(res);\r\n if (response && response.appId) {\r\n _self._appId = response.appId;\r\n }\r\n }\r\n if ((status < 200 || status >= 300) && status !== 0) {\r\n // Update End Point url if permanent redirect or moved permanently\r\n // Updates the end point url before retry\r\n if (status === 301 || status === 307 || status === 308) {\r\n if (!_checkAndUpdateEndPointUrl(responseUrl)) {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, errorMessage);\r\n return;\r\n }\r\n }\r\n if (!_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_IS_RETRY_DISABLED /* @min:%2eisRetryDisabled */]() && _isRetriable(status)) {\r\n _resendPayload(payload);\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" +\r\n \"Response code \" + status + \". Will retry to send \" + payload[_DYN_LENGTH /* @min:%2elength */] + \" items.\");\r\n }\r\n else {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, errorMessage);\r\n }\r\n }\r\n else if (_offlineListener && !_offlineListener[_DYN_IS_ONLINE /* @min:%2eisOnline */]()) { // offline\r\n // Note: Don't check for status == 0, since adblock gives this code\r\n if (!_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_IS_RETRY_DISABLED /* @min:%2eisRetryDisabled */]()) {\r\n var offlineBackOffMultiplier = 10; // arbritrary number\r\n _resendPayload(payload, offlineBackOffMultiplier);\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". Offline - Response Code: \".concat(status, \". Offline status: \").concat(!_offlineListener.isOnline(), \". Will retry to send \").concat(payload.length, \" items.\"));\r\n }\r\n }\r\n else {\r\n // check if the xhr's responseURL or fetch's response.url is same as endpoint url\r\n // TODO after 10 redirects force send telemetry with 'redirect=false' as query parameter.\r\n _checkAndUpdateEndPointUrl(responseUrl);\r\n if (status === 206) {\r\n if (!response) {\r\n response = _parseResponse(res);\r\n }\r\n if (response && !_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_IS_RETRY_DISABLED /* @min:%2eisRetryDisabled */]()) {\r\n _self[_DYN__ON_PARTIAL_SUCCESS /* @min:%2e_onPartialSuccess */](payload, response);\r\n }\r\n else {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, errorMessage);\r\n }\r\n }\r\n else {\r\n _consecutiveErrors = 0;\r\n _self[_DYN__ON_SUCCESS /* @min:%2e_onSuccess */](payload, countOfItemsInPayload);\r\n }\r\n }\r\n }\r\n function _checkAndUpdateEndPointUrl(responseUrl) {\r\n // Maximum stamp specific redirects allowed(uncomment this when breeze is ready with not allowing redirects feature)\r\n if (_stamp_specific_redirects >= 10) {\r\n // _self._senderConfig.endpointUrl = () => Sender._getDefaultAppInsightsChannelConfig().endpointUrl()+\"/?redirect=false\";\r\n // _stamp_specific_redirects = 0;\r\n return false;\r\n }\r\n if (!isNullOrUndefined(responseUrl) && responseUrl !== \"\") {\r\n if (responseUrl !== _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]()) {\r\n _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */] = function () { return responseUrl; };\r\n ++_stamp_specific_redirects;\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n function _doUnloadSend(payload, isAsync) {\r\n if (_syncUnloadSender) {\r\n // We are unloading so always call the sender with sync set to false\r\n _syncUnloadSender(payload, false);\r\n }\r\n else {\r\n // Fallback to the previous beacon Sender (which causes a CORB warning on chrome now)\r\n _beaconSender(payload, isAsync);\r\n }\r\n }\r\n function _doBeaconSend(payload) {\r\n var nav = getNavigator();\r\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\r\n var url = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]();\r\n var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\r\n // Chrome only allows CORS-safelisted values for the sendBeacon data argument\r\n // see: https://bugs.chromium.org/p/chromium/issues/detail?id=720283\r\n var plainTextBatch = new Blob([batch], { type: \"text/plain;charset=UTF-8\" });\r\n // The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.\r\n var queued = nav.sendBeacon(url, plainTextBatch);\r\n if (queued) {\r\n buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\r\n // no response from beaconSender, clear buffer\r\n _self._onSuccess(payload, payload[_DYN_LENGTH /* @min:%2elength */]);\r\n }\r\n return queued;\r\n }\r\n /**\r\n * Send Beacon API request\r\n * @param payload {string} - The data payload to be sent.\r\n * @param isAsync {boolean} - not used\r\n * Note: Beacon API does not support custom headers and we are not able to get\r\n * appId from the backend for the correct correlation.\r\n */\r\n function _beaconSender(payload, isAsync) {\r\n if (isArray(payload) && payload[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n // The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.\r\n if (!_doBeaconSend(payload)) {\r\n // Failed to send entire payload so try and split data and try to send as much events as possible\r\n var droppedPayload = [];\r\n for (var lp = 0; lp < payload[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n var thePayload = payload[lp];\r\n if (!_doBeaconSend([thePayload])) {\r\n // Can't send anymore, so split the batch and drop the rest\r\n droppedPayload[_DYN_PUSH /* @min:%2epush */](thePayload);\r\n }\r\n }\r\n if (droppedPayload[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n _fallbackSender && _fallbackSender(droppedPayload, true);\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" + \"Failed to send telemetry with Beacon API, retried with normal sender.\");\r\n }\r\n }\r\n }\r\n }\r\n /**\r\n * Send XMLHttpRequest\r\n * @param payload {string} - The data payload to be sent.\r\n * @param isAsync {boolean} - Indicates if the request should be sent asynchronously\r\n */\r\n function _xhrSender(payload, isAsync) {\r\n var xhr = new XMLHttpRequest();\r\n var endPointUrl = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]();\r\n try {\r\n xhr[DisabledPropertyName] = true;\r\n }\r\n catch (e) {\r\n // If the environment has locked down the XMLHttpRequest (preventExtensions and/or freeze), this would\r\n // cause the request to fail and we no telemetry would be sent\r\n }\r\n xhr.open(\"POST\", endPointUrl, isAsync);\r\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](\"Content-type\", \"application/json\");\r\n // append Sdk-Context request header only in case of breeze endpoint\r\n if (isInternalApplicationInsightsEndpoint(endPointUrl)) {\r\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[6 /* eRequestHeaders.sdkContextHeader */], RequestHeaders[7 /* eRequestHeaders.sdkContextHeaderAppIdRequest */]);\r\n }\r\n arrForEach(objKeys(_headers), function (headerName) {\r\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](headerName, _headers[headerName]);\r\n });\r\n xhr.onreadystatechange = function () { return _self._xhrReadyStateChange(xhr, payload, payload[_DYN_LENGTH /* @min:%2elength */]); };\r\n xhr.onerror = function (event) { return _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, _formatErrorMessageXhr(xhr), event); };\r\n // compose an array of payloads\r\n var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\r\n xhr.send(batch);\r\n _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\r\n }\r\n function _fetchKeepAliveSender(payload, isAsync) {\r\n if (isArray(payload)) {\r\n var payloadSize = payload[_DYN_LENGTH /* @min:%2elength */];\r\n for (var lp = 0; lp < payload[_DYN_LENGTH /* @min:%2elength */]; lp++) {\r\n payloadSize += payload[lp][_DYN_LENGTH /* @min:%2elength */];\r\n }\r\n if ((_syncFetchPayload + payloadSize) <= FetchSyncRequestSizeLimitBytes) {\r\n _doFetchSender(payload, false);\r\n }\r\n else if (isBeaconsSupported()) {\r\n // Fallback to beacon sender as we at least get told which events can't be scheduled\r\n _beaconSender(payload, isAsync);\r\n }\r\n else {\r\n // Payload is going to be too big so just try and send via XHR\r\n _fallbackSender && _fallbackSender(payload, true);\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" + \"Failed to send telemetry with Beacon API, retried with xhrSender.\");\r\n }\r\n }\r\n }\r\n /**\r\n * Send fetch API request\r\n * @param payload {string} - The data payload to be sent.\r\n * @param isAsync {boolean} - not used\r\n */\r\n function _fetchSender(payload, isAsync) {\r\n _doFetchSender(payload, true);\r\n }\r\n /**\r\n * Send fetch API request\r\n * @param payload {string} - The data payload to be sent.\r\n * @param isAsync {boolean} - For fetch this identifies whether we are \"unloading\" (false) or a normal request\r\n */\r\n function _doFetchSender(payload, isAsync) {\r\n var _a;\r\n var endPointUrl = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]();\r\n var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\r\n var plainTextBatch = new Blob([batch], { type: \"application/json\" });\r\n var requestHeaders = new Headers();\r\n var batchLength = batch[_DYN_LENGTH /* @min:%2elength */];\r\n var ignoreResponse = false;\r\n var responseHandled = false;\r\n // append Sdk-Context request header only in case of breeze endpoint\r\n if (isInternalApplicationInsightsEndpoint(endPointUrl)) {\r\n requestHeaders.append(RequestHeaders[6 /* eRequestHeaders.sdkContextHeader */], RequestHeaders[7 /* eRequestHeaders.sdkContextHeaderAppIdRequest */]);\r\n }\r\n arrForEach(objKeys(_headers), function (headerName) {\r\n requestHeaders.append(headerName, _headers[headerName]);\r\n });\r\n var init = (_a = {\r\n method: \"POST\",\r\n headers: requestHeaders,\r\n body: plainTextBatch\r\n },\r\n _a[DisabledPropertyName] = true // Mark so we don't attempt to track this request\r\n ,\r\n _a);\r\n if (!isAsync) {\r\n init.keepalive = true;\r\n // As a sync request (during unload), it is unlikely that we will get a chance to process the response so\r\n // just like beacon send assume that the events have been accepted and processed\r\n ignoreResponse = true;\r\n _syncFetchPayload += batchLength;\r\n }\r\n var request = new Request(endPointUrl, init);\r\n try {\r\n // Also try and tag the request (just in case the value in init is not copied over)\r\n request[DisabledPropertyName] = true;\r\n }\r\n catch (e) {\r\n // If the environment has locked down the XMLHttpRequest (preventExtensions and/or freeze), this would\r\n // cause the request to fail and we no telemetry would be sent\r\n }\r\n _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\r\n try {\r\n fetch(request).then(function (response) {\r\n if (!isAsync) {\r\n _syncFetchPayload -= batchLength;\r\n batchLength = 0;\r\n }\r\n if (!responseHandled) {\r\n responseHandled = true;\r\n /**\r\n * The Promise returned from fetch() won’t reject on HTTP error status even if the response is an HTTP 404 or 500.\r\n * Instead, it will resolve normally (with ok status set to false), and it will only reject on network failure\r\n * or if anything prevented the request from completing.\r\n */\r\n if (!response.ok) {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, response.statusText);\r\n }\r\n else {\r\n response.text().then(function (text) {\r\n _checkResponsStatus(response.status, payload, response.url, payload[_DYN_LENGTH /* @min:%2elength */], response.statusText, text);\r\n });\r\n }\r\n }\r\n })[\"catch\"](function (error) {\r\n if (!isAsync) {\r\n _syncFetchPayload -= batchLength;\r\n batchLength = 0;\r\n }\r\n if (!responseHandled) {\r\n responseHandled = true;\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, error.message);\r\n }\r\n });\r\n }\r\n catch (e) {\r\n if (!responseHandled) {\r\n _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, dumpObj(e));\r\n }\r\n }\r\n if (ignoreResponse && !responseHandled) {\r\n // Assume success during unload processing as we most likely won't get the response\r\n responseHandled = true;\r\n _self._onSuccess(payload, payload[_DYN_LENGTH /* @min:%2elength */]);\r\n }\r\n }\r\n /**\r\n * Parses the response from the backend.\r\n * @param response - XMLHttpRequest or XDomainRequest response\r\n */\r\n function _parseResponse(response) {\r\n try {\r\n if (response && response !== \"\") {\r\n var result = getJSON().parse(response);\r\n if (result && result.itemsReceived && result.itemsReceived >= result[_DYN_ITEMS_ACCEPTED /* @min:%2eitemsAccepted */] &&\r\n result.itemsReceived - result.itemsAccepted === result.errors[_DYN_LENGTH /* @min:%2elength */]) {\r\n return result;\r\n }\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 43 /* _eInternalMessageId.InvalidBackendResponse */, \"Cannot parse the response. \" + getExceptionName(e), {\r\n response: response\r\n });\r\n }\r\n return null;\r\n }\r\n /**\r\n * Resend payload. Adds payload back to the send buffer and setup a send timer (with exponential backoff).\r\n * @param payload\r\n */\r\n function _resendPayload(payload, linearFactor) {\r\n if (linearFactor === void 0) { linearFactor = 1; }\r\n if (!payload || payload[_DYN_LENGTH /* @min:%2elength */] === 0) {\r\n return;\r\n }\r\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\r\n buffer[_DYN_CLEAR_SENT /* @min:%2eclearSent */](payload);\r\n _consecutiveErrors++;\r\n for (var _i = 0, payload_1 = payload; _i < payload_1.length; _i++) {\r\n var item = payload_1[_i];\r\n buffer[_DYN_ENQUEUE /* @min:%2eenqueue */](item);\r\n }\r\n // setup timer\r\n _setRetryTime(linearFactor);\r\n _setupTimer();\r\n }\r\n /**\r\n * Calculates the time to wait before retrying in case of an error based on\r\n * http://en.wikipedia.org/wiki/Exponential_backoff\r\n */\r\n function _setRetryTime(linearFactor) {\r\n var SlotDelayInSeconds = 10;\r\n var delayInSeconds;\r\n if (_consecutiveErrors <= 1) {\r\n delayInSeconds = SlotDelayInSeconds;\r\n }\r\n else {\r\n var backOffSlot = (Math.pow(2, _consecutiveErrors) - 1) / 2;\r\n // tslint:disable-next-line:insecure-random\r\n var backOffDelay = Math.floor(Math.random() * backOffSlot * SlotDelayInSeconds) + 1;\r\n backOffDelay = linearFactor * backOffDelay;\r\n delayInSeconds = Math.max(Math.min(backOffDelay, 3600), SlotDelayInSeconds);\r\n }\r\n // TODO: Log the backoff time like the C# version does.\r\n var retryAfterTimeSpan = dateNow() + (delayInSeconds * 1000);\r\n // TODO: Log the retry at time like the C# version does.\r\n _retryAt = retryAfterTimeSpan;\r\n }\r\n /**\r\n * Sets up the timer which triggers actually sending the data.\r\n */\r\n function _setupTimer() {\r\n if (!_timeoutHandle && !_paused) {\r\n var retryInterval = _retryAt ? Math.max(0, _retryAt - dateNow()) : 0;\r\n var timerValue = Math.max(_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_MAX_BATCH_INTERVAL /* @min:%2emaxBatchInterval */](), retryInterval);\r\n _timeoutHandle = setTimeout(function () {\r\n _timeoutHandle = null;\r\n _self[_DYN_TRIGGER_SEND /* @min:%2etriggerSend */](true, null, 1 /* SendRequestReason.NormalSchedule */);\r\n }, timerValue);\r\n }\r\n }\r\n function _clearScheduledTimer() {\r\n clearTimeout(_timeoutHandle);\r\n _timeoutHandle = null;\r\n _retryAt = null;\r\n }\r\n /**\r\n * Checks if the SDK should resend the payload after receiving this status code from the backend.\r\n * @param statusCode\r\n */\r\n function _isRetriable(statusCode) {\r\n // retryCodes = [] means should not retry\r\n if (!isNullOrUndefined(_retryCodes)) {\r\n return _retryCodes[_DYN_LENGTH /* @min:%2elength */] && arrIndexOf(_retryCodes, statusCode) > -1;\r\n }\r\n return statusCode === 401 // Unauthorized\r\n // Removing as private links can return a 403 which causes excessive retries and session storage usage\r\n //|| statusCode === 403 // Forbidden\r\n || statusCode === 408 // Timeout\r\n || statusCode === 429 // Too many requests.\r\n || statusCode === 500 // Internal server error.\r\n || statusCode === 502 // Bad Gateway.\r\n || statusCode === 503 // Service unavailable.\r\n || statusCode === 504; // Gateway timeout.\r\n }\r\n function _formatErrorMessageXhr(xhr, message) {\r\n if (xhr) {\r\n return \"XMLHttpRequest,Status:\" + xhr.status + \",Response:\" + _getResponseText(xhr) || xhr.response || \"\";\r\n }\r\n return message;\r\n }\r\n /**\r\n * Send XDomainRequest\r\n * @param payload {string} - The data payload to be sent.\r\n * @param isAsync {boolean} - Indicates if the request should be sent asynchronously\r\n *\r\n * Note: XDomainRequest does not support sync requests. This 'isAsync' parameter is added\r\n * to maintain consistency with the xhrSender's contract\r\n * Note: XDomainRequest does not support custom headers and we are not able to get\r\n * appId from the backend for the correct correlation.\r\n */\r\n function _xdrSender(payload, isAsync) {\r\n var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];\r\n var _window = getWindow();\r\n var xdr = new XDomainRequest();\r\n xdr.onload = function () { return _self._xdrOnLoad(xdr, payload); };\r\n xdr.onerror = function (event) { return _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, _formatErrorMessageXdr(xdr), event); };\r\n // XDomainRequest requires the same protocol as the hosting page.\r\n // If the protocol doesn't match, we can't send the telemetry :(.\r\n var hostingProtocol = _window && _window.location && _window.location.protocol || \"\";\r\n if (_self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]().lastIndexOf(hostingProtocol, 0) !== 0) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, \". \" +\r\n \"Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.\");\r\n buffer[_DYN_CLEAR /* @min:%2eclear */]();\r\n return;\r\n }\r\n var endpointUrl = _self[_DYN__SENDER_CONFIG /* @min:%2e_senderConfig */][_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]().replace(/^(https?:)/, \"\");\r\n xdr.open(\"POST\", endpointUrl);\r\n // compose an array of payloads\r\n var batch = buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);\r\n xdr.send(batch);\r\n buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);\r\n }\r\n function _formatErrorMessageXdr(xdr, message) {\r\n if (xdr) {\r\n return \"XDomainRequest,Response:\" + _getResponseText(xdr) || \"\";\r\n }\r\n return message;\r\n }\r\n // Using function lookups for backward compatibility as the getNotifyMgr() did not exist until after v2.5.6\r\n function _getNotifyMgr() {\r\n var func = \"getNotifyMgr\";\r\n if (_self.core[func]) {\r\n return _self.core[func]();\r\n }\r\n // using _self.core['_notificationManager'] for backward compatibility\r\n return _self.core[\"_notificationManager\"];\r\n }\r\n function _notifySendRequest(sendRequest, isAsync) {\r\n var manager = _getNotifyMgr();\r\n if (manager && manager[_DYN_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */]) {\r\n try {\r\n manager[_DYN_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */](sendRequest, isAsync);\r\n }\r\n catch (e) {\r\n _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 74 /* _eInternalMessageId.NotificationException */, \"send request notification failed: \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n }\r\n /**\r\n * Validate UUID Format\r\n * Specs taken from https://tools.ietf.org/html/rfc4122 and breeze repo\r\n */\r\n function _validateInstrumentationKey(config) {\r\n var disableIKeyValidationFlag = isNullOrUndefined(config[_DYN_DISABLE_INSTRUMENTAT7 /* @min:%2edisableInstrumentationKeyValidation */]) ? false : config[_DYN_DISABLE_INSTRUMENTAT7 /* @min:%2edisableInstrumentationKeyValidation */];\r\n if (disableIKeyValidationFlag) {\r\n return true;\r\n }\r\n var UUID_Regex = \"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$\";\r\n var regexp = new RegExp(UUID_Regex);\r\n return regexp.test(config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */]);\r\n }\r\n function _initDefaults() {\r\n _self[_DYN__SENDER /* @min:%2e_sender */] = null;\r\n _self[_DYN__BUFFER /* @min:%2e_buffer */] = null;\r\n _self._appId = null;\r\n _self._sample = null;\r\n _headers = {};\r\n _offlineListener = null;\r\n _consecutiveErrors = 0;\r\n _retryAt = null;\r\n _lastSend = null;\r\n _paused = false;\r\n _timeoutHandle = null;\r\n _serializer = null;\r\n _stamp_specific_redirects = 0;\r\n _syncFetchPayload = 0;\r\n _fallbackSender = null;\r\n _syncUnloadSender = null;\r\n _evtNamespace = null;\r\n }\r\n });\r\n return _this;\r\n }\r\n Sender.constructEnvelope = function (orig, iKey, logger, convertUndefined) {\r\n var envelope;\r\n if (iKey !== orig.iKey && !isNullOrUndefined(iKey)) {\r\n envelope = __assign(__assign({}, orig), { iKey: iKey });\r\n }\r\n else {\r\n envelope = orig;\r\n }\r\n var creator = EnvelopeTypeCreator[envelope.baseType] || EventEnvelopeCreator;\r\n return creator(logger, envelope, convertUndefined);\r\n };\r\n// Removed Stub for Sender.prototype.pause.\r\n// Removed Stub for Sender.prototype.resume.\r\n// Removed Stub for Sender.prototype.flush.\r\n// Removed Stub for Sender.prototype.onunloadFlush.\r\n// Removed Stub for Sender.prototype.initialize.\r\n// Removed Stub for Sender.prototype.processTelemetry.\r\n// Removed Stub for Sender.prototype._xhrReadyStateChange.\r\n// Removed Stub for Sender.prototype.triggerSend.\r\n// Removed Stub for Sender.prototype._onError.\r\n// Removed Stub for Sender.prototype._onPartialSuccess.\r\n// Removed Stub for Sender.prototype._onSuccess.\r\n// Removed Stub for Sender.prototype._xdrOnLoad.\r\n// Removed Stub for Sender.prototype.addHeader.\r\n return Sender;\r\n}(BaseTelemetryPlugin));\r\nexport { Sender };\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _throwInternal, getJSON, isArray, isFunction, isObject, objForEachKey } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_LENGTH, _DYN_PUSH, _DYN_STRINGIFY, _DYN_TO_STRING } from \"./__DynamicConstants\";\r\nvar Serializer = /** @class */ (function () {\r\n function Serializer(logger) {\r\n dynamicProto(Serializer, this, function (_self) {\r\n /**\r\n * Serializes the current object to a JSON string.\r\n */\r\n _self.serialize = function (input) {\r\n var output = _serializeObject(input, \"root\");\r\n try {\r\n return getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](output);\r\n }\r\n catch (e) {\r\n // if serialization fails return an empty string\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.CannotSerializeObject */, (e && isFunction(e[_DYN_TO_STRING /* @min:%2etoString */])) ? e[_DYN_TO_STRING /* @min:%2etoString */]() : \"Error serializing object\", null, true);\r\n }\r\n };\r\n function _serializeObject(source, name) {\r\n var circularReferenceCheck = \"__aiCircularRefCheck\";\r\n var output = {};\r\n if (!source) {\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.CannotSerializeObject */, \"cannot serialize object because it is null or undefined\", { name: name }, true);\r\n return output;\r\n }\r\n if (source[circularReferenceCheck]) {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 50 /* _eInternalMessageId.CircularReferenceDetected */, \"Circular reference detected while serializing object\", { name: name }, true);\r\n return output;\r\n }\r\n if (!source.aiDataContract) {\r\n // special case for measurements/properties/tags\r\n if (name === \"measurements\") {\r\n output = _serializeStringMap(source, \"number\", name);\r\n }\r\n else if (name === \"properties\") {\r\n output = _serializeStringMap(source, \"string\", name);\r\n }\r\n else if (name === \"tags\") {\r\n output = _serializeStringMap(source, \"string\", name);\r\n }\r\n else if (isArray(source)) {\r\n output = _serializeArray(source, name);\r\n }\r\n else {\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 49 /* _eInternalMessageId.CannotSerializeObjectNonSerializable */, \"Attempting to serialize an object which does not implement ISerializable\", { name: name }, true);\r\n try {\r\n // verify that the object can be stringified\r\n getJSON()[_DYN_STRINGIFY /* @min:%2estringify */](source);\r\n output = source;\r\n }\r\n catch (e) {\r\n // if serialization fails return an empty string\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 48 /* _eInternalMessageId.CannotSerializeObject */, (e && isFunction(e[_DYN_TO_STRING /* @min:%2etoString */])) ? e[_DYN_TO_STRING /* @min:%2etoString */]() : \"Error serializing object\", null, true);\r\n }\r\n }\r\n return output;\r\n }\r\n source[circularReferenceCheck] = true;\r\n objForEachKey(source.aiDataContract, function (field, contract) {\r\n var isRequired = (isFunction(contract)) ? (contract() & 1 /* FieldType.Required */) : (contract & 1 /* FieldType.Required */);\r\n var isHidden = (isFunction(contract)) ? (contract() & 4 /* FieldType.Hidden */) : (contract & 4 /* FieldType.Hidden */);\r\n var isArray = contract & 2 /* FieldType.Array */;\r\n var isPresent = source[field] !== undefined;\r\n var isObj = isObject(source[field]) && source[field] !== null;\r\n if (isRequired && !isPresent && !isArray) {\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 24 /* _eInternalMessageId.MissingRequiredFieldSpecification */, \"Missing required field specification. The field is required but not present on source\", { field: field, name: name });\r\n // If not in debug mode, continue and hope the error is permissible\r\n }\r\n else if (!isHidden) { // Don't serialize hidden fields\r\n var value = void 0;\r\n if (isObj) {\r\n if (isArray) {\r\n // special case; recurse on each object in the source array\r\n value = _serializeArray(source[field], field);\r\n }\r\n else {\r\n // recurse on the source object in this field\r\n value = _serializeObject(source[field], field);\r\n }\r\n }\r\n else {\r\n // assign the source field to the output even if undefined or required\r\n value = source[field];\r\n }\r\n // only emit this field if the value is defined\r\n if (value !== undefined) {\r\n output[field] = value;\r\n }\r\n }\r\n });\r\n delete source[circularReferenceCheck];\r\n return output;\r\n }\r\n function _serializeArray(sources, name) {\r\n var output;\r\n if (!!sources) {\r\n if (!isArray(sources)) {\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, 54 /* _eInternalMessageId.ItemNotInArray */, \"This field was specified as an array in the contract but the item is not an array.\\r\\n\", { name: name }, true);\r\n }\r\n else {\r\n output = [];\r\n for (var i = 0; i < sources[_DYN_LENGTH /* @min:%2elength */]; i++) {\r\n var source = sources[i];\r\n var item = _serializeObject(source, name + \"[\" + i + \"]\");\r\n output[_DYN_PUSH /* @min:%2epush */](item);\r\n }\r\n }\r\n }\r\n return output;\r\n }\r\n function _serializeStringMap(map, expectedType, name) {\r\n var output;\r\n if (map) {\r\n output = {};\r\n objForEachKey(map, function (field, value) {\r\n if (expectedType === \"string\") {\r\n if (value === undefined) {\r\n output[field] = \"undefined\";\r\n }\r\n else if (value === null) {\r\n output[field] = \"null\";\r\n }\r\n else if (!value[_DYN_TO_STRING /* @min:%2etoString */]) {\r\n output[field] = \"invalid field: toString() is not defined.\";\r\n }\r\n else {\r\n output[field] = value[_DYN_TO_STRING /* @min:%2etoString */]();\r\n }\r\n }\r\n else if (expectedType === \"number\") {\r\n if (value === undefined) {\r\n output[field] = \"undefined\";\r\n }\r\n else if (value === null) {\r\n output[field] = \"null\";\r\n }\r\n else {\r\n var num = parseFloat(value);\r\n if (isNaN(num)) {\r\n output[field] = \"NaN\";\r\n }\r\n else {\r\n output[field] = num;\r\n }\r\n }\r\n }\r\n else {\r\n output[field] = \"invalid field: \" + name + \" is of unknown type.\";\r\n _throwInternal(logger, 1 /* eLoggingSeverity.CRITICAL */, output[field], null, true);\r\n }\r\n });\r\n }\r\n return output;\r\n }\r\n });\r\n }\r\n// Removed Stub for Serializer.prototype.serialize.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n Serializer.__ieDyn=1;\n\n return Serializer;\r\n}());\r\nexport { Serializer };\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _DYN_LENGTH } from \"../../__DynamicConstants\";\r\n// (Magic number) DJB algorithm can't work on shorter strings (results in poor distribution\r\nvar MIN_INPUT_LENGTH = 8;\r\nvar HashCodeScoreGenerator = /** @class */ (function () {\r\n function HashCodeScoreGenerator() {\r\n }\r\n HashCodeScoreGenerator.prototype.getHashCodeScore = function (key) {\r\n var score = this.getHashCode(key) / HashCodeScoreGenerator.INT_MAX_VALUE;\r\n return score * 100;\r\n };\r\n HashCodeScoreGenerator.prototype.getHashCode = function (input) {\r\n if (input === \"\") {\r\n return 0;\r\n }\r\n while (input[_DYN_LENGTH /* @min:%2elength */] < MIN_INPUT_LENGTH) {\r\n input = input.concat(input);\r\n }\r\n // 5381 is a magic number: http://stackoverflow.com/questions/10696223/reason-for-5381-number-in-djb-hash-function\r\n var hash = 5381;\r\n for (var i = 0; i < input[_DYN_LENGTH /* @min:%2elength */]; ++i) {\r\n hash = ((hash << 5) + hash) + input.charCodeAt(i);\r\n // 'hash' is of number type which means 53 bit integer (http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types-number-type)\r\n // 'hash & hash' will keep it 32 bit integer - just to make it clearer what the result is.\r\n hash = hash & hash;\r\n }\r\n return Math.abs(hash);\r\n };\r\n // We're using 32 bit math, hence max value is (2^31 - 1)\r\n HashCodeScoreGenerator.INT_MAX_VALUE = 2147483647;\r\n return HashCodeScoreGenerator;\r\n}());\r\nexport { HashCodeScoreGenerator };\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { ContextTagKeys } from \"@microsoft/applicationinsights-common\";\r\nimport { _DYN_GET_HASH_CODE_SCORE, _DYN_GET_SAMPLING_SCORE, _DYN_TAGS, _DYN_TRACE_ID } from \"../../__DynamicConstants\";\r\nimport { HashCodeScoreGenerator } from \"./HashCodeScoreGenerator\";\r\nvar SamplingScoreGenerator = /** @class */ (function () {\r\n function SamplingScoreGenerator() {\r\n var _self = this;\r\n var hashCodeGenerator = new HashCodeScoreGenerator();\r\n var keys = new ContextTagKeys();\r\n _self[_DYN_GET_SAMPLING_SCORE /* @min:%2egetSamplingScore */] = function (item) {\r\n var score = 0;\r\n if (item[_DYN_TAGS /* @min:%2etags */] && item[_DYN_TAGS /* @min:%2etags */][keys.userId]) { // search in tags first, then ext\r\n score = hashCodeGenerator.getHashCodeScore(item[_DYN_TAGS /* @min:%2etags */][keys.userId]);\r\n }\r\n else if (item.ext && item.ext.user && item.ext.user.id) {\r\n score = hashCodeGenerator[_DYN_GET_HASH_CODE_SCORE /* @min:%2egetHashCodeScore */](item.ext.user.id);\r\n }\r\n else if (item[_DYN_TAGS /* @min:%2etags */] && item[_DYN_TAGS /* @min:%2etags */][keys.operationId]) { // search in tags first, then ext\r\n score = hashCodeGenerator.getHashCodeScore(item[_DYN_TAGS /* @min:%2etags */][keys.operationId]);\r\n }\r\n else if (item.ext && item.ext.telemetryTrace && item.ext.telemetryTrace[_DYN_TRACE_ID /* @min:%2etraceID */]) {\r\n score = hashCodeGenerator.getHashCodeScore(item.ext.telemetryTrace[_DYN_TRACE_ID /* @min:%2etraceID */]);\r\n }\r\n else {\r\n // tslint:disable-next-line:insecure-random\r\n score = (Math.random() * 100);\r\n }\r\n return score;\r\n };\r\n }\r\n return SamplingScoreGenerator;\r\n}());\r\nexport { SamplingScoreGenerator };\r\n","/*\n * Application Insights JavaScript SDK - Channel, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { Metric } from \"@microsoft/applicationinsights-common\";\r\nimport { safeGetLogger } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_DATA_TYPE, _DYN_GET_SAMPLING_SCORE, _DYN_SAMPLE_RATE } from \"../__DynamicConstants\";\r\nimport { SamplingScoreGenerator } from \"./SamplingScoreGenerators/SamplingScoreGenerator\";\r\nvar Sample = /** @class */ (function () {\r\n function Sample(sampleRate, logger) {\r\n // We're using 32 bit math, hence max value is (2^31 - 1)\r\n this.INT_MAX_VALUE = 2147483647;\r\n var _logger = logger || safeGetLogger(null);\r\n if (sampleRate > 100 || sampleRate < 0) {\r\n _logger.throwInternal(2 /* eLoggingSeverity.WARNING */, 58 /* _eInternalMessageId.SampleRateOutOfRange */, \"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.\", { samplingRate: sampleRate }, true);\r\n sampleRate = 100;\r\n }\r\n this[_DYN_SAMPLE_RATE /* @min:%2esampleRate */] = sampleRate;\r\n this.samplingScoreGenerator = new SamplingScoreGenerator();\r\n }\r\n /**\r\n * Determines if an envelope is sampled in (i.e. will be sent) or not (i.e. will be dropped).\r\n */\r\n Sample.prototype.isSampledIn = function (envelope) {\r\n var samplingPercentage = this[_DYN_SAMPLE_RATE /* @min:%2esampleRate */]; // 0 - 100\r\n var isSampledIn = false;\r\n if (samplingPercentage === null || samplingPercentage === undefined || samplingPercentage >= 100) {\r\n return true;\r\n }\r\n else if (envelope.baseType === Metric[_DYN_DATA_TYPE /* @min:%2edataType */]) {\r\n // exclude MetricData telemetry from sampling\r\n return true;\r\n }\r\n isSampledIn = this.samplingScoreGenerator[_DYN_GET_SAMPLING_SCORE /* @min:%2egetSamplingScore */](envelope) < samplingPercentage;\r\n return isSampledIn;\r\n };\r\n return Sample;\r\n}());\r\nexport { Sample };\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { arrReduce, objKeys, strEndsWith } from \"@microsoft/applicationinsights-core-js\";\r\nimport { DEFAULT_BREEZE_ENDPOINT } from \"./Constants\";\r\nimport { _DYN_INGESTIONENDPOINT, _DYN_LENGTH, _DYN_SPLIT, _DYN_TO_LOWER_CASE } from \"./__DynamicConstants\";\r\nvar _FIELDS_SEPARATOR = \";\";\r\nvar _FIELD_KEY_VALUE_SEPARATOR = \"=\";\r\nexport function parseConnectionString(connectionString) {\r\n if (!connectionString) {\r\n return {};\r\n }\r\n var kvPairs = connectionString[_DYN_SPLIT /* @min:%2esplit */](_FIELDS_SEPARATOR);\r\n var result = arrReduce(kvPairs, function (fields, kv) {\r\n var kvParts = kv[_DYN_SPLIT /* @min:%2esplit */](_FIELD_KEY_VALUE_SEPARATOR);\r\n if (kvParts[_DYN_LENGTH /* @min:%2elength */] === 2) { // only save fields with valid formats\r\n var key = kvParts[0][_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n var value = kvParts[1];\r\n fields[key] = value;\r\n }\r\n return fields;\r\n }, {});\r\n if (objKeys(result)[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n // this is a valid connection string, so parse the results\r\n if (result.endpointsuffix) {\r\n // use endpoint suffix where overrides are not provided\r\n var locationPrefix = result.location ? result.location + \".\" : \"\";\r\n result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] = result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] || (\"https://\" + locationPrefix + \"dc.\" + result.endpointsuffix);\r\n if (strEndsWith(result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */], \"/\")) {\r\n result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] = result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */].slice(0, -1);\r\n }\r\n }\r\n // apply the default endpoints\r\n result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] = result[_DYN_INGESTIONENDPOINT /* @min:%2eingestionendpoint */] || DEFAULT_BREEZE_ENDPOINT;\r\n }\r\n return result;\r\n}\r\nexport var ConnectionStringParser = {\r\n parse: parseConnectionString\r\n};\r\n","/*\n * Application Insights JavaScript SDK - Common, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { createEnumStyle } from \"@microsoft/applicationinsights-core-js\";\r\n/**\r\n * Defines the level of severity for the event.\r\n */\r\nexport var SeverityLevel = createEnumStyle({\r\n Verbose: 0 /* eSeverityLevel.Verbose */,\r\n Information: 1 /* eSeverityLevel.Information */,\r\n Warning: 2 /* eSeverityLevel.Warning */,\r\n Error: 3 /* eSeverityLevel.Error */,\r\n Critical: 4 /* eSeverityLevel.Critical */\r\n});\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n// \r\nimport { _DYN_CONFIG, _DYN_CREATE_NEW, _DYN_FLUSH, _DYN_IDENTIFIER, _DYN_LENGTH, _DYN_ON_COMPLETE, _DYN_PROCESS_NEXT, _DYN_PUSH } from \"../__DynamicConstants\";\r\nimport { arrForEach, isArray, objFreeze, throwError } from \"./HelperFuncs\";\r\nimport { STR_PRIORITY } from \"./InternalConstants\";\r\nimport { createProcessTelemetryContext, createTelemetryProxyChain } from \"./ProcessTelemetryContext\";\r\nimport { initializePlugins } from \"./TelemetryHelpers\";\r\nexport var ChannelControllerPriority = 500;\r\nvar ChannelValidationMessage = \"Channel has invalid priority - \";\r\nfunction _addChannelQueue(channelQueue, queue, core) {\r\n if (queue && isArray(queue) && queue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n queue = queue.sort(function (a, b) {\r\n return a[STR_PRIORITY /* @min:%2epriority */] - b[STR_PRIORITY /* @min:%2epriority */];\r\n });\r\n arrForEach(queue, function (queueItem) {\r\n if (queueItem[STR_PRIORITY /* @min:%2epriority */] < ChannelControllerPriority) {\r\n throwError(ChannelValidationMessage + queueItem[_DYN_IDENTIFIER /* @min:%2eidentifier */]);\r\n }\r\n });\r\n channelQueue[_DYN_PUSH /* @min:%2epush */]({\r\n queue: objFreeze(queue),\r\n chain: createTelemetryProxyChain(queue, core[_DYN_CONFIG /* @min:%2econfig */], core)\r\n });\r\n }\r\n}\r\nexport function createChannelControllerPlugin(channelQueue, core) {\r\n function _getTelCtx() {\r\n return createProcessTelemetryContext(null, core[_DYN_CONFIG /* @min:%2econfig */], core, null);\r\n }\r\n function _processChannelQueue(theChannels, itemCtx, processFn, onComplete) {\r\n var waiting = theChannels ? (theChannels[_DYN_LENGTH /* @min:%2elength */] + 1) : 1;\r\n function _runChainOnComplete() {\r\n waiting--;\r\n if (waiting === 0) {\r\n onComplete && onComplete();\r\n onComplete = null;\r\n }\r\n }\r\n if (waiting > 0) {\r\n arrForEach(theChannels, function (channels) {\r\n // pass on to first item in queue\r\n if (channels && channels.queue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n var channelChain = channels.chain;\r\n var chainCtx = itemCtx[_DYN_CREATE_NEW /* @min:%2ecreateNew */](channelChain);\r\n chainCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](_runChainOnComplete);\r\n // Cause this chain to start processing\r\n processFn(chainCtx);\r\n }\r\n else {\r\n waiting--;\r\n }\r\n });\r\n }\r\n _runChainOnComplete();\r\n }\r\n function _doUpdate(updateCtx, updateState) {\r\n var theUpdateState = updateState || {\r\n reason: 0 /* TelemetryUpdateReason.Unknown */\r\n };\r\n _processChannelQueue(channelQueue, updateCtx, function (chainCtx) {\r\n chainCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUpdateState);\r\n }, function () {\r\n updateCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUpdateState);\r\n });\r\n return true;\r\n }\r\n function _doTeardown(unloadCtx, unloadState) {\r\n var theUnloadState = unloadState || {\r\n reason: 0 /* TelemetryUnloadReason.ManualTeardown */,\r\n isAsync: false\r\n };\r\n _processChannelQueue(channelQueue, unloadCtx, function (chainCtx) {\r\n chainCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUnloadState);\r\n }, function () {\r\n unloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](theUnloadState);\r\n isInitialized = false;\r\n });\r\n return true;\r\n }\r\n function _getChannel(pluginIdentifier) {\r\n var thePlugin = null;\r\n if (channelQueue && channelQueue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n arrForEach(channelQueue, function (channels) {\r\n // pass on to first item in queue\r\n if (channels && channels.queue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n arrForEach(channels.queue, function (ext) {\r\n if (ext[_DYN_IDENTIFIER /* @min:%2eidentifier */] === pluginIdentifier) {\r\n thePlugin = ext;\r\n // Cause arrForEach to stop iterating\r\n return -1;\r\n }\r\n });\r\n if (thePlugin) {\r\n // Cause arrForEach to stop iterating\r\n return -1;\r\n }\r\n }\r\n });\r\n }\r\n return thePlugin;\r\n }\r\n var isInitialized = false;\r\n var channelController = {\r\n identifier: \"ChannelControllerPlugin\",\r\n priority: ChannelControllerPriority,\r\n initialize: function (config, core, extensions, pluginChain) {\r\n isInitialized = true;\r\n arrForEach(channelQueue, function (channels) {\r\n if (channels && channels.queue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n initializePlugins(createProcessTelemetryContext(channels.chain, config, core), extensions);\r\n }\r\n });\r\n },\r\n isInitialized: function () {\r\n return isInitialized;\r\n },\r\n processTelemetry: function (item, itemCtx) {\r\n _processChannelQueue(channelQueue, itemCtx || _getTelCtx(), function (chainCtx) {\r\n chainCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](item);\r\n }, function () {\r\n itemCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](item);\r\n });\r\n },\r\n update: _doUpdate,\r\n pause: function () {\r\n _processChannelQueue(channelQueue, _getTelCtx(), function (chainCtx) {\r\n chainCtx.iterate(function (plugin) {\r\n plugin.pause && plugin.pause();\r\n });\r\n }, null);\r\n },\r\n resume: function () {\r\n _processChannelQueue(channelQueue, _getTelCtx(), function (chainCtx) {\r\n chainCtx.iterate(function (plugin) {\r\n plugin.resume && plugin.resume();\r\n });\r\n }, null);\r\n },\r\n teardown: _doTeardown,\r\n getChannel: _getChannel,\r\n flush: function (isAsync, callBack, sendReason, cbTimeout) {\r\n // Setting waiting to one so that we don't call the callBack until we finish iterating\r\n var waiting = 1;\r\n var doneIterating = false;\r\n var cbTimer = null;\r\n cbTimeout = cbTimeout || 5000;\r\n function doCallback() {\r\n waiting--;\r\n if (doneIterating && waiting === 0) {\r\n if (cbTimer) {\r\n clearTimeout(cbTimer);\r\n cbTimer = null;\r\n }\r\n callBack && callBack(doneIterating);\r\n callBack = null;\r\n }\r\n }\r\n _processChannelQueue(channelQueue, _getTelCtx(), function (chainCtx) {\r\n chainCtx.iterate(function (plugin) {\r\n if (plugin[_DYN_FLUSH /* @min:%2eflush */]) {\r\n waiting++;\r\n var handled_1 = false;\r\n // Not all channels will call this callback for every scenario\r\n if (!plugin[_DYN_FLUSH /* @min:%2eflush */](isAsync, function () {\r\n handled_1 = true;\r\n doCallback();\r\n }, sendReason)) {\r\n if (!handled_1) {\r\n // If any channel doesn't return true and it didn't call the callback, then we should assume that the callback\r\n // will never be called, so use a timeout to allow the channel(s) some time to \"finish\" before triggering any\r\n // followup function (such as unloading)\r\n if (isAsync && cbTimer == null) {\r\n cbTimer = setTimeout(function () {\r\n cbTimer = null;\r\n doCallback();\r\n }, cbTimeout);\r\n }\r\n else {\r\n doCallback();\r\n }\r\n }\r\n }\r\n }\r\n });\r\n }, function () {\r\n doneIterating = true;\r\n doCallback();\r\n });\r\n return true;\r\n },\r\n _setQueue: function (queue) {\r\n channelQueue = queue;\r\n }\r\n };\r\n return channelController;\r\n}\r\nexport function createChannelQueues(channels, extensions, core) {\r\n var channelQueue = [];\r\n if (channels) {\r\n // Add and sort the configuration channel queues\r\n arrForEach(channels, function (queue) { return _addChannelQueue(channelQueue, queue, core); });\r\n }\r\n if (extensions) {\r\n // Create a new channel queue for any extensions with a priority > the ChannelControllerPriority\r\n var extensionQueue_1 = [];\r\n arrForEach(extensions, function (plugin) {\r\n if (plugin[STR_PRIORITY /* @min:%2epriority */] > ChannelControllerPriority) {\r\n extensionQueue_1[_DYN_PUSH /* @min:%2epush */](plugin);\r\n }\r\n });\r\n _addChannelQueue(channelQueue, extensionQueue_1, core);\r\n }\r\n return channelQueue;\r\n}\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n// \r\n// \r\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _DYN_APPLY, _DYN_DIAG_LOG, _DYN_LENGTH, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_SPLICE, _DYN__DO_TEARDOWN } from \"../__DynamicConstants\";\r\nimport { BaseTelemetryPlugin } from \"./BaseTelemetryPlugin\";\r\nimport { _throwInternal } from \"./DiagnosticLogger\";\r\nimport { dumpObj } from \"./EnvUtils\";\r\nimport { arrForEach, getExceptionName } from \"./HelperFuncs\";\r\nimport { STR_PROCESS_TELEMETRY } from \"./InternalConstants\";\r\nvar TelemetryInitializerPlugin = /** @class */ (function (_super) {\r\n __extends(TelemetryInitializerPlugin, _super);\r\n function TelemetryInitializerPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.identifier = \"TelemetryInitializerPlugin\";\r\n _this.priority = 199;\r\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\r\n var _id;\r\n var _initializers;\r\n _initDefaults();\r\n dynamicProto(TelemetryInitializerPlugin, _this, function (_self, _base) {\r\n _self.addTelemetryInitializer = function (telemetryInitializer) {\r\n var theInitializer = {\r\n id: _id++,\r\n fn: telemetryInitializer\r\n };\r\n _initializers[_DYN_PUSH /* @min:%2epush */](theInitializer);\r\n var handler = {\r\n remove: function () {\r\n arrForEach(_initializers, function (initializer, idx) {\r\n if (initializer.id === theInitializer.id) {\r\n _initializers[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\r\n return -1;\r\n }\r\n });\r\n }\r\n };\r\n return handler;\r\n };\r\n _self[STR_PROCESS_TELEMETRY /* @min:%2eprocessTelemetry */] = function (item, itemCtx) {\r\n var doNotSendItem = false;\r\n var telemetryInitializersCount = _initializers[_DYN_LENGTH /* @min:%2elength */];\r\n for (var i = 0; i < telemetryInitializersCount; ++i) {\r\n var telemetryInitializer = _initializers[i];\r\n if (telemetryInitializer) {\r\n try {\r\n if (telemetryInitializer.fn[_DYN_APPLY /* @min:%2eapply */](null, [item]) === false) {\r\n doNotSendItem = true;\r\n break;\r\n }\r\n }\r\n catch (e) {\r\n // log error but dont stop executing rest of the telemetry initializers\r\n // doNotSendItem = true;\r\n _throwInternal(itemCtx[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 1 /* eLoggingSeverity.CRITICAL */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"One of telemetry initializers failed, telemetry item will not be sent: \" + getExceptionName(e), { exception: dumpObj(e) }, true);\r\n }\r\n }\r\n }\r\n if (!doNotSendItem) {\r\n _self[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](item, itemCtx);\r\n }\r\n };\r\n _self[_DYN__DO_TEARDOWN /* @min:%2e_doTeardown */] = function () {\r\n _initDefaults();\r\n };\r\n });\r\n function _initDefaults() {\r\n _id = 0;\r\n _initializers = [];\r\n }\r\n return _this;\r\n }\r\n// Removed Stub for TelemetryInitializerPlugin.prototype.addTelemetryInitializer.\r\n// Removed Stub for TelemetryInitializerPlugin.prototype.processTelemetry.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n TelemetryInitializerPlugin.__ieDyn=1;\n\n return TelemetryInitializerPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport { TelemetryInitializerPlugin };\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport { __spreadArrayFn as __spreadArray } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { objCreateFn } from \"@microsoft/applicationinsights-shims\";\r\nimport { _DYN_ADD_NOTIFICATION_LIS1, _DYN_CONFIG, _DYN_FLUSH, _DYN_GET_NOTIFY_MGR, _DYN_GET_PLUGIN, _DYN_GET_PROCESS_TEL_CONT0, _DYN_IDENTIFIER, _DYN_INITIALIZE, _DYN_INSTRUMENTATION_KEY, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_NAME, _DYN_ON_COMPLETE, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_REMOVE_NOTIFICATION_2, _DYN_SET_ENABLED, _DYN_SPLICE, _DYN_STOP_POLLING_INTERNA3, _DYN_TEARDOWN, _DYN_TIME, _DYN__EXTENSIONS } from \"../__DynamicConstants\";\r\nimport { ChannelControllerPriority, createChannelControllerPlugin, createChannelQueues } from \"./ChannelController\";\r\nimport { createCookieMgr } from \"./CookieMgr\";\r\nimport { createUniqueNamespace } from \"./DataCacheHelper\";\r\nimport { getDebugListener } from \"./DbgExtensionUtils\";\r\nimport { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from \"./DiagnosticLogger\";\r\nimport { arrForEach, arrIndexOf, getCfgValue, getSetValue, isFunction, isNullOrUndefined, objExtend, objFreeze, proxyFunctionAs, proxyFunctions, throwError, toISOString } from \"./HelperFuncs\";\r\nimport { STR_CHANNELS, STR_CORE, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_EXTENSIONS, STR_EXTENSION_CONFIG, STR_GET_PERF_MGR, STR_PRIORITY } from \"./InternalConstants\";\r\nimport { PerfManager, getGblPerfMgr } from \"./PerfManager\";\r\nimport { createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain } from \"./ProcessTelemetryContext\";\r\nimport { _getPluginState, createDistributedTraceContext, initializePlugins, sortPlugins } from \"./TelemetryHelpers\";\r\nimport { TelemetryInitializerPlugin } from \"./TelemetryInitializerPlugin\";\r\nimport { createUnloadHandlerContainer } from \"./UnloadHandlerContainer\";\r\nvar strValidationError = \"Plugins must provide initialize method\";\r\nvar strNotificationManager = \"_notificationManager\";\r\nvar strSdkUnloadingError = \"SDK is still unloading...\";\r\nvar strSdkNotInitialized = \"SDK is not initialized\";\r\n// const strPluginUnloadFailed = \"Failed to unload plugin\";\r\nvar defaultInitConfig = {\r\n // Have the Diagnostic Logger default to log critical errors to the console\r\n loggingLevelConsole: 1 /* eLoggingSeverity.CRITICAL */\r\n};\r\n/**\r\n * Helper to create the default performance manager\r\n * @param core\r\n * @param notificationMgr\r\n */\r\nfunction _createPerfManager(core, notificationMgr) {\r\n return new PerfManager(notificationMgr);\r\n}\r\nfunction _validateExtensions(logger, channelPriority, allExtensions) {\r\n var _a;\r\n // Concat all available extensions\r\n var coreExtensions = [];\r\n // Check if any two extensions have the same priority, then warn to console\r\n // And extract the local extensions from the\r\n var extPriorities = {};\r\n // Extension validation\r\n arrForEach(allExtensions, function (ext) {\r\n // Check for ext.initialize\r\n if (isNullOrUndefined(ext) || isNullOrUndefined(ext[_DYN_INITIALIZE /* @min:%2einitialize */])) {\r\n throwError(strValidationError);\r\n }\r\n var extPriority = ext[STR_PRIORITY /* @min:%2epriority */];\r\n var identifier = ext[_DYN_IDENTIFIER /* @min:%2eidentifier */];\r\n if (ext && extPriority) {\r\n if (!isNullOrUndefined(extPriorities[extPriority])) {\r\n _warnToConsole(logger, \"Two extensions have same priority #\" + extPriority + \" - \" + extPriorities[extPriority] + \", \" + identifier);\r\n }\r\n else {\r\n // set a value\r\n extPriorities[extPriority] = identifier;\r\n }\r\n }\r\n // Split extensions to core and channelController\r\n if (!extPriority || extPriority < channelPriority) {\r\n // Add to core extension that will be managed by BaseCore\r\n coreExtensions[_DYN_PUSH /* @min:%2epush */](ext);\r\n }\r\n });\r\n return _a = {\r\n all: allExtensions\r\n },\r\n _a[STR_CORE /* @min:core */] = coreExtensions,\r\n _a;\r\n}\r\nfunction _isPluginPresent(thePlugin, plugins) {\r\n var exists = false;\r\n arrForEach(plugins, function (plugin) {\r\n if (plugin === thePlugin) {\r\n exists = true;\r\n return -1;\r\n }\r\n });\r\n return exists;\r\n}\r\nfunction _createDummyNotificationManager() {\r\n var _a;\r\n return objCreateFn((_a = {},\r\n _a[_DYN_ADD_NOTIFICATION_LIS1 /* @min:addNotificationListener */] = function (listener) { },\r\n _a[_DYN_REMOVE_NOTIFICATION_2 /* @min:removeNotificationListener */] = function (listener) { },\r\n _a[STR_EVENTS_SENT /* @min:eventsSent */] = function (events) { },\r\n _a[STR_EVENTS_DISCARDED /* @min:eventsDiscarded */] = function (events, reason) { },\r\n _a[STR_EVENTS_SEND_REQUEST /* @min:eventsSendRequest */] = function (sendReason, isAsync) { },\r\n _a));\r\n}\r\nvar BaseCore = /** @class */ (function () {\r\n function BaseCore() {\r\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\r\n var _config;\r\n var _isInitialized;\r\n var _eventQueue;\r\n var _notificationManager;\r\n var _perfManager;\r\n var _cfgPerfManager;\r\n var _cookieManager;\r\n var _pluginChain;\r\n var _configExtensions;\r\n var _coreExtensions;\r\n var _channelControl;\r\n var _channelConfig;\r\n var _channelQueue;\r\n var _isUnloading;\r\n var _telemetryInitializerPlugin;\r\n var _internalLogsEventName;\r\n var _evtNamespace;\r\n var _unloadHandlers;\r\n var _debugListener;\r\n var _traceCtx;\r\n /**\r\n * Internal log poller\r\n */\r\n var _internalLogPoller = 0;\r\n var _forceStopInternalLogPoller = false;\r\n dynamicProto(BaseCore, this, function (_self) {\r\n // Set the default values (also called during teardown)\r\n _initDefaults();\r\n _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = function () { return _isInitialized; };\r\n // Creating the self.initialize = ()\r\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, extensions, logger, notificationManager) {\r\n if (_isUnloading) {\r\n throwError(strSdkUnloadingError);\r\n }\r\n // Make sure core is only initialized once\r\n if (_self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]()) {\r\n throwError(\"Core should not be initialized more than once\");\r\n }\r\n _config = config || {};\r\n _self[_DYN_CONFIG /* @min:%2econfig */] = _config;\r\n if (isNullOrUndefined(config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */])) {\r\n throwError(\"Please provide instrumentation key\");\r\n }\r\n _notificationManager = notificationManager;\r\n // For backward compatibility only\r\n _self[strNotificationManager] = notificationManager;\r\n _initDebugListener();\r\n _initPerfManager();\r\n // add notification to the extensions in the config so other plugins can access it\r\n _initExtConfig();\r\n if (logger) {\r\n _self[_DYN_LOGGER /* @min:%2elogger */] = logger;\r\n }\r\n var cfgExtensions = getSetValue(_config, STR_EXTENSIONS, []);\r\n // Extension validation\r\n _configExtensions = [];\r\n _configExtensions[_DYN_PUSH /* @min:%2epush */].apply(_configExtensions, __spreadArray(__spreadArray([], extensions, false), cfgExtensions, false));\r\n _channelConfig = getSetValue(_config, STR_CHANNELS, []);\r\n _initPluginChain(null);\r\n if (!_channelQueue || _channelQueue[_DYN_LENGTH /* @min:%2elength */] === 0) {\r\n throwError(\"No \" + STR_CHANNELS + \" available\");\r\n }\r\n _isInitialized = true;\r\n _self.releaseQueue();\r\n };\r\n _self.getTransmissionControls = function () {\r\n var controls = [];\r\n if (_channelQueue) {\r\n arrForEach(_channelQueue, function (channels) {\r\n controls[_DYN_PUSH /* @min:%2epush */](channels.queue);\r\n });\r\n }\r\n return objFreeze(controls);\r\n };\r\n _self.track = function (telemetryItem) {\r\n // setup default iKey if not passed in\r\n telemetryItem.iKey = telemetryItem.iKey || _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */];\r\n // add default timestamp if not passed in\r\n telemetryItem[_DYN_TIME /* @min:%2etime */] = telemetryItem[_DYN_TIME /* @min:%2etime */] || toISOString(new Date());\r\n // Common Schema 4.0\r\n telemetryItem.ver = telemetryItem.ver || \"4.0\";\r\n if (!_isUnloading && _self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */]()) {\r\n // Process the telemetry plugin chain\r\n _createTelCtx()[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](telemetryItem);\r\n }\r\n else {\r\n // Queue events until all extensions are initialized\r\n _eventQueue[_DYN_PUSH /* @min:%2epush */](telemetryItem);\r\n }\r\n };\r\n _self[_DYN_GET_PROCESS_TEL_CONT0 /* @min:%2egetProcessTelContext */] = _createTelCtx;\r\n _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */] = function () {\r\n if (!_notificationManager) {\r\n // Create Dummy notification manager\r\n _notificationManager = _createDummyNotificationManager();\r\n // For backward compatibility only\r\n _self[strNotificationManager] = _notificationManager;\r\n }\r\n return _notificationManager;\r\n };\r\n /**\r\n * Adds a notification listener. The SDK calls methods on the listener when an appropriate notification is raised.\r\n * The added plugins must raise notifications. If the plugins do not implement the notifications, then no methods will be\r\n * called.\r\n * @param {INotificationListener} listener - An INotificationListener object.\r\n */\r\n _self[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */] = function (listener) {\r\n if (_notificationManager) {\r\n _notificationManager[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */](listener);\r\n }\r\n };\r\n /**\r\n * Removes all instances of the listener.\r\n * @param {INotificationListener} listener - INotificationListener to remove.\r\n */\r\n _self[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */] = function (listener) {\r\n if (_notificationManager) {\r\n _notificationManager[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */](listener);\r\n }\r\n };\r\n _self.getCookieMgr = function () {\r\n if (!_cookieManager) {\r\n _cookieManager = createCookieMgr(_config, _self[_DYN_LOGGER /* @min:%2elogger */]);\r\n }\r\n return _cookieManager;\r\n };\r\n _self.setCookieMgr = function (cookieMgr) {\r\n _cookieManager = cookieMgr;\r\n };\r\n _self[STR_GET_PERF_MGR /* @min:%2egetPerfMgr */] = function () {\r\n if (!_perfManager && !_cfgPerfManager) {\r\n if (getCfgValue(_config.enablePerfMgr)) {\r\n var createPerfMgr = getCfgValue(_config[STR_CREATE_PERF_MGR /* @min:%2ecreatePerfMgr */]);\r\n if (isFunction(createPerfMgr)) {\r\n _cfgPerfManager = createPerfMgr(_self, _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */]());\r\n }\r\n }\r\n }\r\n return _perfManager || _cfgPerfManager || getGblPerfMgr();\r\n };\r\n _self.setPerfMgr = function (perfMgr) {\r\n _perfManager = perfMgr;\r\n };\r\n _self.eventCnt = function () {\r\n return _eventQueue[_DYN_LENGTH /* @min:%2elength */];\r\n };\r\n _self.releaseQueue = function () {\r\n if (_isInitialized && _eventQueue[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n var eventQueue = _eventQueue;\r\n _eventQueue = [];\r\n arrForEach(eventQueue, function (event) {\r\n _createTelCtx()[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](event);\r\n });\r\n }\r\n };\r\n _self.pollInternalLogs = function (eventName) {\r\n _internalLogsEventName = eventName || null;\r\n _forceStopInternalLogPoller = false;\r\n if (_internalLogPoller) {\r\n clearInterval(_internalLogPoller);\r\n _internalLogPoller = null;\r\n }\r\n return _startInternalLogTimer(true);\r\n };\r\n function _startInternalLogTimer(alwaysStart) {\r\n if (!_internalLogPoller && !_forceStopInternalLogPoller) {\r\n var shouldStart = alwaysStart || (_self[_DYN_LOGGER /* @min:%2elogger */] && _self[_DYN_LOGGER /* @min:%2elogger */].queue[_DYN_LENGTH /* @min:%2elength */] > 0);\r\n if (shouldStart) {\r\n var interval = getCfgValue(_config.diagnosticLogInterval);\r\n if (!interval || !(interval > 0)) {\r\n interval = 10000;\r\n }\r\n // Keeping as an interval timer for backward compatibility as it returns the result\r\n _internalLogPoller = setInterval(function () {\r\n clearInterval(_internalLogPoller);\r\n _internalLogPoller = 0;\r\n _flushInternalLogs();\r\n }, interval);\r\n }\r\n }\r\n return _internalLogPoller;\r\n }\r\n _self[_DYN_STOP_POLLING_INTERNA3 /* @min:%2estopPollingInternalLogs */] = function () {\r\n _forceStopInternalLogPoller = true;\r\n if (_internalLogPoller) {\r\n clearInterval(_internalLogPoller);\r\n _internalLogPoller = 0;\r\n _flushInternalLogs();\r\n }\r\n };\r\n // Add addTelemetryInitializer\r\n proxyFunctions(_self, function () { return _telemetryInitializerPlugin; }, [\"addTelemetryInitializer\"]);\r\n _self.unload = function (isAsync, unloadComplete, cbTimeout) {\r\n var _a;\r\n if (isAsync === void 0) { isAsync = true; }\r\n if (!_isInitialized) {\r\n // The SDK is not initialized\r\n throwError(strSdkNotInitialized);\r\n }\r\n // Check if the SDK still unloading so throw\r\n if (_isUnloading) {\r\n // The SDK is already unloading\r\n throwError(strSdkUnloadingError);\r\n }\r\n var unloadState = (_a = {\r\n reason: 50 /* TelemetryUnloadReason.SdkUnload */\r\n },\r\n _a[_DYN_IS_ASYNC /* @min:isAsync */] = isAsync,\r\n _a.flushComplete = false,\r\n _a);\r\n var processUnloadCtx = createProcessTelemetryUnloadContext(_getPluginChain(), _self);\r\n processUnloadCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](function () {\r\n _initDefaults();\r\n unloadComplete && unloadComplete(unloadState);\r\n }, _self);\r\n function _doUnload(flushComplete) {\r\n unloadState.flushComplete = flushComplete;\r\n _isUnloading = true;\r\n // Run all of the unload handlers first (before unloading the plugins)\r\n _unloadHandlers.run(processUnloadCtx, unloadState);\r\n // Stop polling the internal logs\r\n _self[_DYN_STOP_POLLING_INTERNA3 /* @min:%2estopPollingInternalLogs */]();\r\n // Start unloading the components, from this point onwards the SDK should be considered to be in an unstable state\r\n processUnloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\r\n }\r\n _flushInternalLogs();\r\n if (!_flushChannels(isAsync, _doUnload, 6 /* SendRequestReason.SdkUnload */, cbTimeout)) {\r\n _doUnload(false);\r\n }\r\n };\r\n _self[_DYN_GET_PLUGIN /* @min:%2egetPlugin */] = _getPlugin;\r\n _self.addPlugin = function (plugin, replaceExisting, isAsync, addCb) {\r\n if (!plugin) {\r\n addCb && addCb(false);\r\n _logOrThrowError(strValidationError);\r\n return;\r\n }\r\n var existingPlugin = _getPlugin(plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */]);\r\n if (existingPlugin && !replaceExisting) {\r\n addCb && addCb(false);\r\n _logOrThrowError(\"Plugin [\" + plugin[_DYN_IDENTIFIER /* @min:%2eidentifier */] + \"] is already loaded!\");\r\n return;\r\n }\r\n var updateState = {\r\n reason: 16 /* TelemetryUpdateReason.PluginAdded */\r\n };\r\n function _addPlugin(removed) {\r\n _configExtensions[_DYN_PUSH /* @min:%2epush */](plugin);\r\n updateState.added = [plugin];\r\n // Re-Initialize the plugin chain\r\n _initPluginChain(updateState);\r\n addCb && addCb(true);\r\n }\r\n if (existingPlugin) {\r\n var removedPlugins_1 = [existingPlugin.plugin];\r\n var unloadState = {\r\n reason: 2 /* TelemetryUnloadReason.PluginReplace */,\r\n isAsync: !!isAsync\r\n };\r\n _removePlugins(removedPlugins_1, unloadState, function (removed) {\r\n if (!removed) {\r\n // Previous plugin was successfully removed or was not installed\r\n addCb && addCb(false);\r\n }\r\n else {\r\n updateState.removed = removedPlugins_1;\r\n updateState.reason |= 32 /* TelemetryUpdateReason.PluginRemoved */;\r\n _addPlugin(true);\r\n }\r\n });\r\n }\r\n else {\r\n _addPlugin(false);\r\n }\r\n };\r\n _self.evtNamespace = function () {\r\n return _evtNamespace;\r\n };\r\n _self[_DYN_FLUSH /* @min:%2eflush */] = _flushChannels;\r\n _self.getTraceCtx = function (createNew) {\r\n if (!_traceCtx) {\r\n _traceCtx = createDistributedTraceContext();\r\n }\r\n return _traceCtx;\r\n };\r\n _self.setTraceCtx = function (traceCtx) {\r\n _traceCtx = traceCtx || null;\r\n };\r\n // Create the addUnloadCb\r\n proxyFunctionAs(_self, \"addUnloadCb\", function () { return _unloadHandlers; }, \"add\");\r\n function _initDefaults() {\r\n _isInitialized = false;\r\n // Use a default logger so initialization errors are not dropped on the floor with full logging\r\n _config = objExtend(true, {}, defaultInitConfig);\r\n _self[_DYN_CONFIG /* @min:%2econfig */] = _config;\r\n _self[_DYN_LOGGER /* @min:%2elogger */] = new DiagnosticLogger(_config);\r\n _self[_DYN__EXTENSIONS /* @min:%2e_extensions */] = [];\r\n _telemetryInitializerPlugin = new TelemetryInitializerPlugin();\r\n _eventQueue = [];\r\n _notificationManager = null;\r\n _perfManager = null;\r\n _cfgPerfManager = null;\r\n _cookieManager = null;\r\n _pluginChain = null;\r\n _coreExtensions = null;\r\n _configExtensions = [];\r\n _channelControl = null;\r\n _channelConfig = null;\r\n _channelQueue = null;\r\n _isUnloading = false;\r\n _internalLogsEventName = null;\r\n _evtNamespace = createUniqueNamespace(\"AIBaseCore\", true);\r\n _unloadHandlers = createUnloadHandlerContainer();\r\n _traceCtx = null;\r\n }\r\n function _createTelCtx() {\r\n var theCtx = createProcessTelemetryContext(_getPluginChain(), _config, _self);\r\n theCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](_startInternalLogTimer);\r\n return theCtx;\r\n }\r\n // Initialize or Re-initialize the plugins\r\n function _initPluginChain(updateState) {\r\n // Extension validation\r\n var theExtensions = _validateExtensions(_self[_DYN_LOGGER /* @min:%2elogger */], ChannelControllerPriority, _configExtensions);\r\n _coreExtensions = theExtensions[STR_CORE /* @min:%2ecore */];\r\n _pluginChain = null;\r\n // Sort the complete set of extensions by priority\r\n var allExtensions = theExtensions.all;\r\n // Initialize the Channel Queues and the channel plugins first\r\n _channelQueue = objFreeze(createChannelQueues(_channelConfig, allExtensions, _self));\r\n if (_channelControl) {\r\n // During add / remove of a plugin this may get called again, so don't re-add if already present\r\n // But we also want the controller as the last, so remove if already present\r\n // And reusing the existing instance, just in case an installed plugin has a reference and\r\n // is using it.\r\n var idx = arrIndexOf(allExtensions, _channelControl);\r\n if (idx !== -1) {\r\n allExtensions[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\r\n }\r\n idx = arrIndexOf(_coreExtensions, _channelControl);\r\n if (idx !== -1) {\r\n _coreExtensions[_DYN_SPLICE /* @min:%2esplice */](idx, 1);\r\n }\r\n _channelControl._setQueue(_channelQueue);\r\n }\r\n else {\r\n _channelControl = createChannelControllerPlugin(_channelQueue, _self);\r\n }\r\n // Add on \"channelController\" as the last \"plugin\"\r\n allExtensions[_DYN_PUSH /* @min:%2epush */](_channelControl);\r\n _coreExtensions[_DYN_PUSH /* @min:%2epush */](_channelControl);\r\n // Required to allow plugins to call core.getPlugin() during their own initialization\r\n _self[_DYN__EXTENSIONS /* @min:%2e_extensions */] = sortPlugins(allExtensions);\r\n // Initialize the controls\r\n _channelControl[_DYN_INITIALIZE /* @min:%2einitialize */](_config, _self, allExtensions);\r\n var initCtx = _createTelCtx();\r\n initializePlugins(initCtx, allExtensions);\r\n // Now reset the extensions to just those being managed by Basecore\r\n _self[_DYN__EXTENSIONS /* @min:%2e_extensions */] = objFreeze(sortPlugins(_coreExtensions || [])).slice();\r\n if (updateState) {\r\n _doUpdate(updateState);\r\n }\r\n }\r\n function _getPlugin(pluginIdentifier) {\r\n var _a;\r\n var theExt = null;\r\n var thePlugin = null;\r\n arrForEach(_self[_DYN__EXTENSIONS /* @min:%2e_extensions */], function (ext) {\r\n if (ext[_DYN_IDENTIFIER /* @min:%2eidentifier */] === pluginIdentifier && ext !== _channelControl && ext !== _telemetryInitializerPlugin) {\r\n thePlugin = ext;\r\n return -1;\r\n }\r\n });\r\n if (!thePlugin && _channelControl) {\r\n // Check the channel Controller\r\n thePlugin = _channelControl.getChannel(pluginIdentifier);\r\n }\r\n if (thePlugin) {\r\n theExt = (_a = {\r\n plugin: thePlugin\r\n },\r\n _a[_DYN_SET_ENABLED /* @min:setEnabled */] = function (enabled) {\r\n _getPluginState(thePlugin)[STR_DISABLED] = !enabled;\r\n },\r\n _a.isEnabled = function () {\r\n var pluginState = _getPluginState(thePlugin);\r\n return !pluginState[_DYN_TEARDOWN /* @min:%2eteardown */] && !pluginState[STR_DISABLED];\r\n },\r\n _a.remove = function (isAsync, removeCb) {\r\n var _a;\r\n if (isAsync === void 0) { isAsync = true; }\r\n var pluginsToRemove = [thePlugin];\r\n var unloadState = (_a = {\r\n reason: 1 /* TelemetryUnloadReason.PluginUnload */\r\n },\r\n _a[_DYN_IS_ASYNC /* @min:isAsync */] = isAsync,\r\n _a);\r\n _removePlugins(pluginsToRemove, unloadState, function (removed) {\r\n if (removed) {\r\n // Re-Initialize the plugin chain\r\n _initPluginChain({\r\n reason: 32 /* TelemetryUpdateReason.PluginRemoved */,\r\n removed: pluginsToRemove\r\n });\r\n }\r\n removeCb && removeCb(removed);\r\n });\r\n },\r\n _a);\r\n }\r\n return theExt;\r\n }\r\n function _getPluginChain() {\r\n if (!_pluginChain) {\r\n // copy the collection of extensions\r\n var extensions = (_coreExtensions || []).slice();\r\n // During add / remove this may get called again, so don't readd if already present\r\n if (arrIndexOf(extensions, _telemetryInitializerPlugin) === -1) {\r\n extensions[_DYN_PUSH /* @min:%2epush */](_telemetryInitializerPlugin);\r\n }\r\n _pluginChain = createTelemetryProxyChain(sortPlugins(extensions), _config, _self);\r\n }\r\n return _pluginChain;\r\n }\r\n function _removePlugins(thePlugins, unloadState, removeComplete) {\r\n if (thePlugins && thePlugins[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n var unloadChain = createTelemetryProxyChain(thePlugins, _config, _self);\r\n var unloadCtx = createProcessTelemetryUnloadContext(unloadChain, _self);\r\n unloadCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](function () {\r\n var removed = false;\r\n // Remove the listed config extensions\r\n var newConfigExtensions = [];\r\n arrForEach(_configExtensions, function (plugin, idx) {\r\n if (!_isPluginPresent(plugin, thePlugins)) {\r\n newConfigExtensions[_DYN_PUSH /* @min:%2epush */](plugin);\r\n }\r\n else {\r\n removed = true;\r\n }\r\n });\r\n _configExtensions = newConfigExtensions;\r\n // Re-Create the channel config\r\n var newChannelConfig = [];\r\n if (_channelConfig) {\r\n arrForEach(_channelConfig, function (queue, idx) {\r\n var newQueue = [];\r\n arrForEach(queue, function (channel) {\r\n if (!_isPluginPresent(channel, thePlugins)) {\r\n newQueue[_DYN_PUSH /* @min:%2epush */](channel);\r\n }\r\n else {\r\n removed = true;\r\n }\r\n });\r\n newChannelConfig[_DYN_PUSH /* @min:%2epush */](newQueue);\r\n });\r\n _channelConfig = newChannelConfig;\r\n }\r\n removeComplete && removeComplete(removed);\r\n _startInternalLogTimer();\r\n });\r\n unloadCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](unloadState);\r\n }\r\n else {\r\n removeComplete(false);\r\n }\r\n }\r\n function _flushInternalLogs() {\r\n if (_self[_DYN_LOGGER /* @min:%2elogger */] && _self[_DYN_LOGGER /* @min:%2elogger */].queue) {\r\n var queue = _self[_DYN_LOGGER /* @min:%2elogger */].queue.slice(0);\r\n _self[_DYN_LOGGER /* @min:%2elogger */].queue[_DYN_LENGTH /* @min:%2elength */] = 0;\r\n arrForEach(queue, function (logMessage) {\r\n var _a;\r\n var item = (_a = {},\r\n _a[_DYN_NAME /* @min:name */] = _internalLogsEventName ? _internalLogsEventName : \"InternalMessageId: \" + logMessage[_DYN_MESSAGE_ID /* @min:%2emessageId */],\r\n _a.iKey = getCfgValue(_config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */]),\r\n _a.time = toISOString(new Date()),\r\n _a.baseType = _InternalLogMessage.dataType,\r\n _a.baseData = { message: logMessage[_DYN_MESSAGE /* @min:%2emessage */] },\r\n _a);\r\n _self.track(item);\r\n });\r\n }\r\n }\r\n function _flushChannels(isAsync, callBack, sendReason, cbTimeout) {\r\n if (_channelControl) {\r\n return _channelControl[_DYN_FLUSH /* @min:%2eflush */](isAsync, callBack, sendReason || 6 /* SendRequestReason.SdkUnload */, cbTimeout);\r\n }\r\n callBack && callBack(false);\r\n return true;\r\n }\r\n function _initDebugListener() {\r\n var disableDbgExt = getCfgValue(_config.disableDbgExt);\r\n if (disableDbgExt === true && _debugListener) {\r\n // Remove any previously loaded debug listener\r\n _notificationManager[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */](_debugListener);\r\n _debugListener = null;\r\n }\r\n if (_notificationManager && !_debugListener && disableDbgExt !== true) {\r\n _debugListener = getDebugListener(_config);\r\n _notificationManager[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */](_debugListener);\r\n }\r\n }\r\n function _initPerfManager() {\r\n var enablePerfMgr = getCfgValue(_config.enablePerfMgr);\r\n if (!enablePerfMgr && _cfgPerfManager) {\r\n // Remove any existing config based performance manager\r\n _cfgPerfManager = null;\r\n }\r\n if (enablePerfMgr) {\r\n // Set the performance manager creation function if not defined\r\n getSetValue(_config, STR_CREATE_PERF_MGR, _createPerfManager);\r\n }\r\n }\r\n function _initExtConfig() {\r\n var extConfig = getSetValue(_config, STR_EXTENSION_CONFIG, {});\r\n extConfig.NotificationManager = _notificationManager;\r\n }\r\n function _doUpdate(updateState) {\r\n var updateCtx = createProcessTelemetryUpdateContext(_getPluginChain(), _self);\r\n updateCtx[_DYN_ON_COMPLETE /* @min:%2eonComplete */](_startInternalLogTimer);\r\n if (!_self._updateHook || _self._updateHook(updateCtx, updateState) !== true) {\r\n updateCtx[_DYN_PROCESS_NEXT /* @min:%2eprocessNext */](updateState);\r\n }\r\n }\r\n function _logOrThrowError(message) {\r\n var logger = _self[_DYN_LOGGER /* @min:%2elogger */];\r\n if (logger) {\r\n // there should always be a logger\r\n _throwInternal(logger, 2 /* eLoggingSeverity.WARNING */, 73 /* _eInternalMessageId.PluginException */, message);\r\n _startInternalLogTimer();\r\n }\r\n else {\r\n throwError(message);\r\n }\r\n }\r\n });\r\n }\r\n// Removed Stub for BaseCore.prototype.initialize.\r\n// Removed Stub for BaseCore.prototype.getTransmissionControls.\r\n// Removed Stub for BaseCore.prototype.track.\r\n// Removed Stub for BaseCore.prototype.getProcessTelContext.\r\n// Removed Stub for BaseCore.prototype.getNotifyMgr.\r\n// Removed Stub for BaseCore.prototype.addNotificationListener.\r\n// Removed Stub for BaseCore.prototype.removeNotificationListener.\r\n// Removed Stub for BaseCore.prototype.getCookieMgr.\r\n// Removed Stub for BaseCore.prototype.setCookieMgr.\r\n// Removed Stub for BaseCore.prototype.getPerfMgr.\r\n// Removed Stub for BaseCore.prototype.setPerfMgr.\r\n// Removed Stub for BaseCore.prototype.eventCnt.\r\n// Removed Stub for BaseCore.prototype.pollInternalLogs.\r\n// Removed Stub for BaseCore.prototype.stopPollingInternalLogs.\r\n// Removed Stub for BaseCore.prototype.addTelemetryInitializer.\r\n// Removed Stub for BaseCore.prototype.unload.\r\n// Removed Stub for BaseCore.prototype.getPlugin.\r\n// Removed Stub for BaseCore.prototype.addPlugin.\r\n// Removed Stub for BaseCore.prototype.evtNamespace.\r\n// Removed Stub for BaseCore.prototype.addUnloadCb.\r\n// Removed Stub for BaseCore.prototype.flush.\r\n// Removed Stub for BaseCore.prototype.getTraceCtx.\r\n// Removed Stub for BaseCore.prototype.setTraceCtx.\r\n// Removed Stub for BaseCore.prototype.releaseQueue.\r\n// Removed Stub for BaseCore.prototype._updateHook.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n BaseCore.__ieDyn=1;\n\n return BaseCore;\r\n}());\r\nexport { BaseCore };\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _DYN_ADD_NOTIFICATION_LIS1, _DYN_IS_ASYNC, _DYN_IS_CHILD_EVT, _DYN_LISTENERS, _DYN_PUSH, _DYN_REMOVE_NOTIFICATION_2, _DYN_SPLICE } from \"../__DynamicConstants\";\r\nimport { arrForEach, arrIndexOf } from \"./HelperFuncs\";\r\nimport { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from \"./InternalConstants\";\r\nfunction _runListeners(listeners, name, isAsync, callback) {\r\n arrForEach(listeners, function (listener) {\r\n if (listener && listener[name]) {\r\n if (isAsync) {\r\n setTimeout(function () { return callback(listener); }, 0);\r\n }\r\n else {\r\n try {\r\n callback(listener);\r\n }\r\n catch (e) {\r\n // Catch errors to ensure we don't block sending the requests\r\n }\r\n }\r\n }\r\n });\r\n}\r\n/**\r\n * Class to manage sending notifications to all the listeners.\r\n */\r\nvar NotificationManager = /** @class */ (function () {\r\n function NotificationManager(config) {\r\n this.listeners = [];\r\n var perfEvtsSendAll = !!(config || {}).perfEvtsSendAll;\r\n dynamicProto(NotificationManager, this, function (_self) {\r\n _self[_DYN_ADD_NOTIFICATION_LIS1 /* @min:%2eaddNotificationListener */] = function (listener) {\r\n _self.listeners[_DYN_PUSH /* @min:%2epush */](listener);\r\n };\r\n /**\r\n * Removes all instances of the listener.\r\n * @param {INotificationListener} listener - AWTNotificationListener to remove.\r\n */\r\n _self[_DYN_REMOVE_NOTIFICATION_2 /* @min:%2eremoveNotificationListener */] = function (listener) {\r\n var index = arrIndexOf(_self[_DYN_LISTENERS /* @min:%2elisteners */], listener);\r\n while (index > -1) {\r\n _self.listeners[_DYN_SPLICE /* @min:%2esplice */](index, 1);\r\n index = arrIndexOf(_self[_DYN_LISTENERS /* @min:%2elisteners */], listener);\r\n }\r\n };\r\n /**\r\n * Notification for events sent.\r\n * @param {ITelemetryItem[]} events - The array of events that have been sent.\r\n */\r\n _self[STR_EVENTS_SENT /* @min:%2eeventsSent */] = function (events) {\r\n _runListeners(_self[_DYN_LISTENERS /* @min:%2elisteners */], STR_EVENTS_SENT, true, function (listener) {\r\n listener[STR_EVENTS_SENT /* @min:%2eeventsSent */](events);\r\n });\r\n };\r\n /**\r\n * Notification for events being discarded.\r\n * @param {ITelemetryItem[]} events - The array of events that have been discarded by the SDK.\r\n * @param {number} reason - The reason for which the SDK discarded the events. The EventsDiscardedReason\r\n * constant should be used to check the different values.\r\n */\r\n _self[STR_EVENTS_DISCARDED /* @min:%2eeventsDiscarded */] = function (events, reason) {\r\n _runListeners(_self[_DYN_LISTENERS /* @min:%2elisteners */], STR_EVENTS_DISCARDED, true, function (listener) {\r\n listener[STR_EVENTS_DISCARDED /* @min:%2eeventsDiscarded */](events, reason);\r\n });\r\n };\r\n /**\r\n * [Optional] A function called when the events have been requested to be sent to the sever.\r\n * @param {number} sendReason - The reason why the event batch is being sent.\r\n * @param {boolean} isAsync - A flag which identifies whether the requests are being sent in an async or sync manner.\r\n */\r\n _self[STR_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */] = function (sendReason, isAsync) {\r\n _runListeners(_self[_DYN_LISTENERS /* @min:%2elisteners */], STR_EVENTS_SEND_REQUEST, isAsync, function (listener) {\r\n listener[STR_EVENTS_SEND_REQUEST /* @min:%2eeventsSendRequest */](sendReason, isAsync);\r\n });\r\n };\r\n _self[STR_PERF_EVENT /* @min:%2eperfEvent */] = function (perfEvent) {\r\n if (perfEvent) {\r\n // Send all events or only parent events\r\n if (perfEvtsSendAll || !perfEvent[_DYN_IS_CHILD_EVT /* @min:%2eisChildEvt */]()) {\r\n _runListeners(_self[_DYN_LISTENERS /* @min:%2elisteners */], STR_PERF_EVENT, false, function (listener) {\r\n if (perfEvent[_DYN_IS_ASYNC /* @min:%2eisAsync */]) {\r\n setTimeout(function () { return listener[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent); }, 0);\r\n }\r\n else {\r\n listener[STR_PERF_EVENT /* @min:%2eperfEvent */](perfEvent);\r\n }\r\n });\r\n }\r\n }\r\n };\r\n });\r\n }\r\n// Removed Stub for NotificationManager.prototype.addNotificationListener.\r\n// Removed Stub for NotificationManager.prototype.removeNotificationListener.\r\n// Removed Stub for NotificationManager.prototype.eventsSent.\r\n// Removed Stub for NotificationManager.prototype.eventsDiscarded.\r\n// Removed Stub for NotificationManager.prototype.eventsSendRequest.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n NotificationManager.__ieDyn=1;\n\n return NotificationManager;\r\n}());\r\nexport { NotificationManager };\r\n","/*\n * Application Insights JavaScript SDK - Core, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { _DYN_GET_NOTIFY_MGR, _DYN_INITIALIZE, _DYN_NAME } from \"../__DynamicConstants\";\r\nimport { BaseCore } from \"./BaseCore\";\r\nimport { DiagnosticLogger } from \"./DiagnosticLogger\";\r\nimport { isNullOrUndefined, throwError } from \"./HelperFuncs\";\r\nimport { STR_EVENTS_DISCARDED, STR_GET_PERF_MGR } from \"./InternalConstants\";\r\nimport { NotificationManager } from \"./NotificationManager\";\r\nimport { doPerf } from \"./PerfManager\";\r\nvar AppInsightsCore = /** @class */ (function (_super) {\r\n __extends(AppInsightsCore, _super);\r\n function AppInsightsCore() {\r\n var _this = _super.call(this) || this;\r\n dynamicProto(AppInsightsCore, _this, function (_self, _base) {\r\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, extensions, logger, notificationManager) {\r\n _base[_DYN_INITIALIZE /* @min:%2einitialize */](config, extensions, logger || new DiagnosticLogger(config), notificationManager || new NotificationManager(config));\r\n };\r\n _self.track = function (telemetryItem) {\r\n doPerf(_self[STR_GET_PERF_MGR /* @min:%2egetPerfMgr */](), function () { return \"AppInsightsCore:track\"; }, function () {\r\n if (telemetryItem === null) {\r\n _notifyInvalidEvent(telemetryItem);\r\n // throw error\r\n throwError(\"Invalid telemetry item\");\r\n }\r\n // do basic validation before sending it through the pipeline\r\n _validateTelemetryItem(telemetryItem);\r\n _base.track(telemetryItem);\r\n }, function () { return ({ item: telemetryItem }); }, !(telemetryItem.sync));\r\n };\r\n function _validateTelemetryItem(telemetryItem) {\r\n if (isNullOrUndefined(telemetryItem[_DYN_NAME /* @min:%2ename */])) {\r\n _notifyInvalidEvent(telemetryItem);\r\n throwError(\"telemetry name required\");\r\n }\r\n }\r\n function _notifyInvalidEvent(telemetryItem) {\r\n var manager = _self[_DYN_GET_NOTIFY_MGR /* @min:%2egetNotifyMgr */]();\r\n if (manager) {\r\n manager[STR_EVENTS_DISCARDED /* @min:%2eeventsDiscarded */]([telemetryItem], 2 /* eEventsDiscardedReason.InvalidEvent */);\r\n }\r\n }\r\n });\r\n return _this;\r\n }\r\n// Removed Stub for AppInsightsCore.prototype.initialize.\r\n// Removed Stub for AppInsightsCore.prototype.track.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n AppInsightsCore.__ieDyn=1;\n\n return AppInsightsCore;\r\n}(BaseCore));\r\nexport { AppInsightsCore };\r\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\r\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\r\nexport var STR_DURATION = \"duration\";\r\nexport var STR_PROPERTIES = \"properties\";\r\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_REQUEST_URL = \"requestUrl\"; // Count: 12\r\nexport var _DYN_INST = \"inst\"; // Count: 5\r\nexport var _DYN_LENGTH = \"length\"; // Count: 10\r\nexport var _DYN_TRACE_ID = \"traceID\"; // Count: 9\r\nexport var _DYN_SPAN_ID = \"spanID\"; // Count: 8\r\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 13\r\nexport var _DYN_CONTEXT = \"context\"; // Count: 7\r\nexport var _DYN_ABORTED = \"aborted\"; // Count: 7\r\nexport var _DYN_TRACE_ID0 = \"traceId\"; // Count: 5\r\nexport var _DYN_SPAN_ID1 = \"spanId\"; // Count: 5\r\nexport var _DYN_CORE = \"core\"; // Count: 8\r\nexport var _DYN_INCLUDE_CORRELATION_2 = \"includeCorrelationHeaders\"; // Count: 4\r\nexport var _DYN_CAN_INCLUDE_CORRELAT3 = \"canIncludeCorrelationHeader\"; // Count: 2\r\nexport var _DYN_GET_ABSOLUTE_URL = \"getAbsoluteUrl\"; // Count: 3\r\nexport var _DYN_HEADERS = \"headers\"; // Count: 6\r\nexport var _DYN_REQUEST_HEADERS = \"requestHeaders\"; // Count: 13\r\nexport var _DYN_APP_ID = \"appId\"; // Count: 5\r\nexport var _DYN_SET_REQUEST_HEADER = \"setRequestHeader\"; // Count: 3\r\nexport var _DYN_TRACK_DEPENDENCY_DAT4 = \"trackDependencyDataInternal\"; // Count: 2\r\nexport var _DYN_DISTRIBUTED_TRACING_5 = \"distributedTracingMode\"; // Count: 3\r\nexport var _DYN_START_TIME = \"startTime\"; // Count: 6\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 6\r\nexport var _DYN_ENABLE_REQUEST_HEADE6 = \"enableRequestHeaderTracking\"; // Count: 2\r\nexport var _DYN_ENABLE_AJAX_ERROR_ST7 = \"enableAjaxErrorStatusText\"; // Count: 2\r\nexport var _DYN_ENABLE_AJAX_PERF_TRA8 = \"enableAjaxPerfTracking\"; // Count: 2\r\nexport var _DYN_MAX_AJAX_CALLS_PER_V9 = \"maxAjaxCallsPerView\"; // Count: 2\r\nexport var _DYN_ENABLE_RESPONSE_HEAD10 = \"enableResponseHeaderTracking\"; // Count: 2\r\nexport var _DYN_EXCLUDE_REQUEST_FROM11 = \"excludeRequestFromAutoTrackingPatterns\"; // Count: 2\r\nexport var _DYN_ADD_REQUEST_CONTEXT = \"addRequestContext\"; // Count: 2\r\nexport var _DYN_DISABLE_AJAX_TRACKIN12 = \"disableAjaxTracking\"; // Count: 2\r\nexport var _DYN_DISABLE_FETCH_TRACKI13 = \"disableFetchTracking\"; // Count: 2\r\nexport var _DYN_STATUS = \"status\"; // Count: 11\r\nexport var _DYN_STATUS_TEXT = \"statusText\"; // Count: 9\r\nexport var _DYN_HEADER_MAP = \"headerMap\"; // Count: 8\r\nexport var _DYN_OPEN_DONE = \"openDone\"; // Count: 3\r\nexport var _DYN_SEND_DONE = \"sendDone\"; // Count: 3\r\nexport var _DYN_REQUEST_SENT_TIME = \"requestSentTime\"; // Count: 9\r\nexport var _DYN_ABORT_DONE = \"abortDone\"; // Count: 3\r\nexport var _DYN_GET_TRACE_ID = \"getTraceId\"; // Count: 3\r\nexport var _DYN_GET_TRACE_FLAGS = \"getTraceFlags\"; // Count: 3\r\nexport var _DYN_METHOD = \"method\"; // Count: 8\r\nexport var _DYN_ERROR_STATUS_TEXT = \"errorStatusText\"; // Count: 3\r\nexport var _DYN_STATE_CHANGE_ATTACHE14 = \"stateChangeAttached\"; // Count: 2\r\nexport var _DYN_RESPONSE_TEXT = \"responseText\"; // Count: 6\r\nexport var _DYN_RESPONSE_FINISHED_TI15 = \"responseFinishedTime\"; // Count: 7\r\nexport var _DYN__CREATE_TRACK_ITEM = \"CreateTrackItem\"; // Count: 3\r\nexport var _DYN_RESPONSE = \"response\"; // Count: 4\r\nexport var _DYN_GET_ALL_RESPONSE_HEA16 = \"getAllResponseHeaders\"; // Count: 2\r\nexport var _DYN_GET_PART_APROPS = \"getPartAProps\"; // Count: 3\r\nexport var _DYN_GET_CORRELATION_CONT17 = \"getCorrelationContext\"; // Count: 2\r\nexport var _DYN_PERF_MARK = \"perfMark\"; // Count: 4\r\nexport var _DYN_AJAX_PERF_LOOKUP_DEL18 = \"ajaxPerfLookupDelay\"; // Count: 2\r\nexport var _DYN_NAME = \"name\"; // Count: 6\r\nexport var _DYN_PERF_TIMING = \"perfTiming\"; // Count: 3\r\nexport var _DYN_AJAX_DIAGNOSTICS_MES19 = \"ajaxDiagnosticsMessage\"; // Count: 3\r\nexport var _DYN_CORRELATION_CONTEXT = \"correlationContext\"; // Count: 3\r\nexport var _DYN_AJAX_TOTAL_DURATION = \"ajaxTotalDuration\"; // Count: 3\r\nexport var _DYN_EVENT_TRACE_CTX = \"eventTraceCtx\"; // Count: 3\r\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Extensions, dataSanitizeUrl, dateTimeUtilsDuration, msToTimeSpan, urlGetAbsoluteUrl, urlGetCompleteUrl } from \"@microsoft/applicationinsights-common\";\r\nimport { arrForEach, isNullOrUndefined, isNumber, isString, normalizeJsName, objForEachKey, objKeys } from \"@microsoft/applicationinsights-core-js\";\r\nimport { STR_DURATION, STR_PROPERTIES } from \"./InternalConstants\";\r\nimport { _DYN_ABORTED, _DYN_ABORT_DONE, _DYN_AJAX_TOTAL_DURATION, _DYN_CORRELATION_CONTEXT, _DYN_ERROR_STATUS_TEXT, _DYN_EVENT_TRACE_CTX, _DYN_GET_ABSOLUTE_URL, _DYN_GET_PART_APROPS, _DYN_GET_TRACE_FLAGS, _DYN_GET_TRACE_ID, _DYN_HEADER_MAP, _DYN_LENGTH, _DYN_METHOD, _DYN_NAME, _DYN_OPEN_DONE, _DYN_PERF_MARK, _DYN_PERF_TIMING, _DYN_REQUEST_HEADERS, _DYN_REQUEST_SENT_TIME, _DYN_REQUEST_URL, _DYN_RESPONSE, _DYN_RESPONSE_FINISHED_TI15, _DYN_SEND_DONE, _DYN_SPAN_ID, _DYN_SPAN_ID1, _DYN_START_TIME, _DYN_STATE_CHANGE_ATTACHE14, _DYN_STATUS, _DYN_STATUS_TEXT, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN_TRACE_ID0, _DYN__CREATE_TRACK_ITEM } from \"./__DynamicConstants\";\r\n/** @ignore */\r\nfunction _calcPerfDuration(resourceEntry, start, end) {\r\n var result = 0;\r\n var from = resourceEntry[start];\r\n var to = resourceEntry[end];\r\n if (from && to) {\r\n result = dateTimeUtilsDuration(from, to);\r\n }\r\n return result;\r\n}\r\n/** @ignore */\r\nfunction _setPerfDuration(props, name, resourceEntry, start, end) {\r\n var result = 0;\r\n var value = _calcPerfDuration(resourceEntry, start, end);\r\n if (value) {\r\n result = _setPerfValue(props, name, msToTimeSpan(value));\r\n }\r\n return result;\r\n}\r\n/** @ignore */\r\nfunction _setPerfValue(props, name, value) {\r\n var strPerf = \"ajaxPerf\";\r\n var result = 0;\r\n if (props && name && value) {\r\n var perfData = props[strPerf] = (props[strPerf] || {});\r\n perfData[name] = value;\r\n result = 1;\r\n }\r\n return result;\r\n}\r\n/** @ignore */\r\nfunction _populatePerfData(ajaxData, dependency) {\r\n /*\r\n * https://developer.mozilla.org/en-US/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API\r\n * | -startTime\r\n * | -redirectStart\r\n * | | -redirectEnd\r\n * | | | -fetchStart\r\n * | | | | -domainLookupStart\r\n * | | | | |- domainLookupEnd\r\n * | | | | | | -connectStart\r\n * | | | | | | | -secureConnectionStart\r\n * | | | | | | | | -connectEnd\r\n * | | | | | | | | | -requestStart\r\n * | | | | | | | | | | | -responseStart\r\n * | | | | | | | | | | | | | -responseEnd\r\n * +------------+-+---+----------------+-+--+--------+-+-----------+-+------------+-+\r\n * |--redirect--| |---|--domainLookup--| |--connect--| |--request--| |--response--| |\r\n * |-------------------networkConnect----------------|\r\n * | |---------sentRequest--------|\r\n * |------------------------------------perfTotal-----------------------------------|\r\n */\r\n var resourceEntry = ajaxData[_DYN_PERF_TIMING /* @min:%2eperfTiming */];\r\n var props = dependency[STR_PROPERTIES /* @min:%2eproperties */] || {};\r\n var propsSet = 0;\r\n var strName = \"name\";\r\n var strStart = \"Start\";\r\n var strEnd = \"End\";\r\n var strDomainLookup = \"domainLookup\";\r\n var strConnect = \"connect\";\r\n var strRedirect = \"redirect\";\r\n var strRequest = \"request\";\r\n var strResponse = \"response\";\r\n var strStartTime = \"startTime\";\r\n var strDomainLookupStart = strDomainLookup + strStart;\r\n var strDomainLookupEnd = strDomainLookup + strEnd;\r\n var strConnectStart = strConnect + strStart;\r\n var strConnectEnd = strConnect + strEnd;\r\n var strRequestStart = strRequest + strStart;\r\n var strRequestEnd = strRequest + strEnd;\r\n var strResponseStart = strResponse + strStart;\r\n var strResponseEnd = strResponse + strEnd;\r\n var strRedirectStart = strRedirect + strStart;\r\n var strRedirectEnd = strRedirect = strEnd;\r\n var strTransferSize = \"transferSize\";\r\n var strEncodedBodySize = \"encodedBodySize\";\r\n var strDecodedBodySize = \"decodedBodySize\";\r\n var strServerTiming = \"serverTiming\";\r\n if (resourceEntry) {\r\n // redirect\r\n propsSet |= _setPerfDuration(props, strRedirect, resourceEntry, strRedirectStart, strRedirectEnd);\r\n // domainLookup\r\n propsSet |= _setPerfDuration(props, strDomainLookup, resourceEntry, strDomainLookupStart, strDomainLookupEnd);\r\n // connect\r\n propsSet |= _setPerfDuration(props, strConnect, resourceEntry, strConnectStart, strConnectEnd);\r\n // request\r\n propsSet |= _setPerfDuration(props, strRequest, resourceEntry, strRequestStart, strRequestEnd);\r\n // response\r\n propsSet |= _setPerfDuration(props, strResponse, resourceEntry, strResponseStart, strResponseEnd);\r\n // Network connection time\r\n propsSet |= _setPerfDuration(props, \"networkConnect\", resourceEntry, strStartTime, strConnectEnd);\r\n // Sent Request\r\n propsSet |= _setPerfDuration(props, \"sentRequest\", resourceEntry, strRequestStart, strResponseEnd);\r\n // PerfTotal / Duration\r\n var duration = resourceEntry[STR_DURATION /* @min:%2eduration */];\r\n if (!duration) {\r\n duration = _calcPerfDuration(resourceEntry, strStartTime, strResponseEnd) || 0;\r\n }\r\n propsSet |= _setPerfValue(props, STR_DURATION, duration);\r\n propsSet |= _setPerfValue(props, \"perfTotal\", duration);\r\n var serverTiming = resourceEntry[strServerTiming];\r\n if (serverTiming) {\r\n var server_1 = {};\r\n arrForEach(serverTiming, function (value, idx) {\r\n var name = normalizeJsName(value[strName] || \"\" + idx);\r\n var newValue = server_1[name] || {};\r\n objForEachKey(value, function (key, val) {\r\n if (key !== strName && isString(val) || isNumber(val)) {\r\n if (newValue[key]) {\r\n val = newValue[key] + \";\" + val;\r\n }\r\n if (val || !isString(val)) {\r\n // Only set the value if it has a value and it's not an empty string\r\n newValue[key] = val;\r\n }\r\n }\r\n });\r\n server_1[name] = newValue;\r\n });\r\n propsSet |= _setPerfValue(props, strServerTiming, server_1);\r\n }\r\n propsSet |= _setPerfValue(props, strTransferSize, resourceEntry[strTransferSize]);\r\n propsSet |= _setPerfValue(props, strEncodedBodySize, resourceEntry[strEncodedBodySize]);\r\n propsSet |= _setPerfValue(props, strDecodedBodySize, resourceEntry[strDecodedBodySize]);\r\n }\r\n else {\r\n if (ajaxData[_DYN_PERF_MARK /* @min:%2eperfMark */]) {\r\n propsSet |= _setPerfValue(props, \"missing\", ajaxData.perfAttempts);\r\n }\r\n }\r\n if (propsSet) {\r\n dependency[STR_PROPERTIES /* @min:%2eproperties */] = props;\r\n }\r\n}\r\nvar XHRMonitoringState = /** @class */ (function () {\r\n function XHRMonitoringState() {\r\n var self = this;\r\n self[_DYN_OPEN_DONE /* @min:%2eopenDone */] = false;\r\n self.setRequestHeaderDone = false;\r\n self[_DYN_SEND_DONE /* @min:%2esendDone */] = false;\r\n self[_DYN_ABORT_DONE /* @min:%2eabortDone */] = false;\r\n // <summary>True, if onreadyStateChangeCallback function attached to xhr, otherwise false</summary>\r\n self[_DYN_STATE_CHANGE_ATTACHE14 /* @min:%2estateChangeAttached */] = false;\r\n }\r\n return XHRMonitoringState;\r\n}());\r\nexport { XHRMonitoringState };\r\nvar ajaxRecord = /** @class */ (function () {\r\n function ajaxRecord(traceId, spanId, logger, traceCtx) {\r\n var _a;\r\n var self = this;\r\n var _logger = logger;\r\n var strResponseText = \"responseText\";\r\n // Assigning the initial/default values within the constructor to avoid typescript from creating a bunch of\r\n // this.XXXX = null\r\n self[_DYN_PERF_MARK /* @min:%2eperfMark */] = null;\r\n self.completed = false;\r\n self.requestHeadersSize = null;\r\n self[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = null;\r\n self.responseReceivingDuration = null;\r\n self.callbackDuration = null;\r\n self[_DYN_AJAX_TOTAL_DURATION /* @min:%2eajaxTotalDuration */] = null;\r\n self[_DYN_ABORTED /* @min:%2eaborted */] = 0;\r\n self.pageUrl = null;\r\n self[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = null;\r\n self.requestSize = 0;\r\n self[_DYN_METHOD /* @min:%2emethod */] = null;\r\n self[_DYN_STATUS /* @min:%2estatus */] = null;\r\n self[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */] = null;\r\n self.responseStartedTime = null;\r\n self[_DYN_RESPONSE_FINISHED_TI15 /* @min:%2eresponseFinishedTime */] = null;\r\n self.callbackFinishedTime = null;\r\n self.endTime = null;\r\n self.xhrMonitoringState = new XHRMonitoringState();\r\n self.clientFailure = 0;\r\n self[_DYN_TRACE_ID /* @min:%2etraceID */] = traceId;\r\n self[_DYN_SPAN_ID /* @min:%2espanID */] = spanId;\r\n self[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = traceCtx === null || traceCtx === void 0 ? void 0 : traceCtx.getTraceFlags();\r\n if (traceCtx) {\r\n self[_DYN_EVENT_TRACE_CTX /* @min:%2eeventTraceCtx */] = (_a = {},\r\n _a[_DYN_TRACE_ID0 /* @min:traceId */] = traceCtx[_DYN_GET_TRACE_ID /* @min:%2egetTraceId */](),\r\n _a[_DYN_SPAN_ID1 /* @min:spanId */] = traceCtx.getSpanId(),\r\n _a[_DYN_TRACE_FLAGS /* @min:traceFlags */] = traceCtx[_DYN_GET_TRACE_FLAGS /* @min:%2egetTraceFlags */](),\r\n _a);\r\n }\r\n else {\r\n self[_DYN_EVENT_TRACE_CTX /* @min:%2eeventTraceCtx */] = null;\r\n }\r\n dynamicProto(ajaxRecord, self, function (self) {\r\n self.getAbsoluteUrl = function () {\r\n return self[_DYN_REQUEST_URL /* @min:%2erequestUrl */] ? urlGetAbsoluteUrl(self[_DYN_REQUEST_URL /* @min:%2erequestUrl */]) : null;\r\n };\r\n self.getPathName = function () {\r\n return self[_DYN_REQUEST_URL /* @min:%2erequestUrl */] ? dataSanitizeUrl(_logger, urlGetCompleteUrl(self[_DYN_METHOD /* @min:%2emethod */], self[_DYN_REQUEST_URL /* @min:%2erequestUrl */])) : null;\r\n };\r\n self[_DYN__CREATE_TRACK_ITEM /* @min:%2eCreateTrackItem */] = function (ajaxType, enableRequestHeaderTracking, getResponse) {\r\n var _a;\r\n // round to 3 decimal points\r\n self.ajaxTotalDuration = Math.round(dateTimeUtilsDuration(self.requestSentTime, self.responseFinishedTime) * 1000) / 1000;\r\n if (self[_DYN_AJAX_TOTAL_DURATION /* @min:%2eajaxTotalDuration */] < 0) {\r\n return null;\r\n }\r\n var dependency = (_a = {\r\n id: \"|\" + self[_DYN_TRACE_ID /* @min:%2etraceID */] + \".\" + self[_DYN_SPAN_ID /* @min:%2espanID */],\r\n target: self[_DYN_GET_ABSOLUTE_URL /* @min:%2egetAbsoluteUrl */]()\r\n },\r\n _a[_DYN_NAME /* @min:name */] = self.getPathName(),\r\n _a.type = ajaxType,\r\n _a[_DYN_START_TIME /* @min:startTime */] = null,\r\n _a.duration = self[_DYN_AJAX_TOTAL_DURATION /* @min:%2eajaxTotalDuration */],\r\n _a.success = (+(self[_DYN_STATUS /* @min:%2estatus */])) >= 200 && (+(self[_DYN_STATUS /* @min:%2estatus */])) < 400,\r\n _a.responseCode = (+(self[_DYN_STATUS /* @min:%2estatus */])),\r\n _a[STR_PROPERTIES] = { HttpMethod: self[_DYN_METHOD /* @min:%2emethod */] },\r\n _a);\r\n var props = dependency[STR_PROPERTIES];\r\n if (self[_DYN_ABORTED /* @min:%2eaborted */]) {\r\n props[_DYN_ABORTED /* @min:%2eaborted */] = true;\r\n }\r\n if (self[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */]) {\r\n // Set the correct dependency start time\r\n dependency[_DYN_START_TIME /* @min:%2estartTime */] = new Date();\r\n dependency[_DYN_START_TIME /* @min:%2estartTime */].setTime(self[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */]);\r\n }\r\n // Add Ajax perf details if available\r\n _populatePerfData(self, dependency);\r\n if (enableRequestHeaderTracking) {\r\n if (objKeys(self.requestHeaders)[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n props[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = self[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */];\r\n }\r\n }\r\n if (getResponse) {\r\n var response = getResponse();\r\n if (response) {\r\n // enrich dependency target with correlation context from the server\r\n var correlationContext = response[_DYN_CORRELATION_CONTEXT /* @min:%2ecorrelationContext */];\r\n if (correlationContext) {\r\n dependency.correlationContext = /* dependency.target + \" | \" + */ correlationContext;\r\n }\r\n if (response[_DYN_HEADER_MAP /* @min:%2eheaderMap */]) {\r\n if (objKeys(response.headerMap)[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n props.responseHeaders = response[_DYN_HEADER_MAP /* @min:%2eheaderMap */];\r\n }\r\n }\r\n if (self[_DYN_ERROR_STATUS_TEXT /* @min:%2eerrorStatusText */]) {\r\n if (self[_DYN_STATUS /* @min:%2estatus */] >= 400) {\r\n var responseType = response.type;\r\n if (responseType === \"\" || responseType === \"text\") {\r\n props.responseText = response.responseText ? response[_DYN_STATUS_TEXT /* @min:%2estatusText */] + \" - \" + response[strResponseText] : response[_DYN_STATUS_TEXT /* @min:%2estatusText */];\r\n }\r\n if (responseType === \"json\") {\r\n props.responseText = response.response ? response[_DYN_STATUS_TEXT /* @min:%2estatusText */] + \" - \" + JSON.stringify(response[_DYN_RESPONSE /* @min:%2eresponse */]) : response[_DYN_STATUS_TEXT /* @min:%2estatusText */];\r\n }\r\n }\r\n else if (self[_DYN_STATUS /* @min:%2estatus */] === 0) {\r\n props.responseText = response[_DYN_STATUS_TEXT /* @min:%2estatusText */] || \"\";\r\n }\r\n }\r\n }\r\n }\r\n return dependency;\r\n };\r\n self[_DYN_GET_PART_APROPS /* @min:%2egetPartAProps */] = function () {\r\n var _a;\r\n var partA = null;\r\n var traceCtx = self[_DYN_EVENT_TRACE_CTX /* @min:%2eeventTraceCtx */];\r\n if (traceCtx && (traceCtx[_DYN_TRACE_ID0 /* @min:%2etraceId */] || traceCtx[_DYN_SPAN_ID1 /* @min:%2espanId */])) {\r\n partA = {};\r\n var traceExt = partA[Extensions.TraceExt] = (_a = {},\r\n _a[_DYN_TRACE_ID /* @min:traceID */] = traceCtx[_DYN_TRACE_ID0 /* @min:%2etraceId */],\r\n _a.parentID = traceCtx[_DYN_SPAN_ID1 /* @min:%2espanId */],\r\n _a);\r\n if (!isNullOrUndefined(traceCtx[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */])) {\r\n traceExt[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = traceCtx[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\r\n }\r\n }\r\n return partA;\r\n };\r\n });\r\n }\r\n// Removed Stub for ajaxRecord.prototype.getAbsoluteUrl.\r\n// Removed Stub for ajaxRecord.prototype.getPathName.\r\n// Removed Stub for ajaxRecord.prototype.CreateTrackItem.\r\n// Removed Stub for ajaxRecord.prototype.getPartAProps.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n ajaxRecord.__ieDyn=1;\n\n return ajaxRecord;\r\n}());\r\nexport { ajaxRecord };\r\n","/*\n * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { __assignFn as __assign, __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { CorrelationIdHelper, DisabledPropertyName, PropertiesPluginIdentifier, RemoteDependencyData, RequestHeaders, createDistributedTraceContextFromTrace, createTelemetryItem, createTraceParent, dateTimeUtilsNow, formatTraceParent, isInternalApplicationInsightsEndpoint } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, InstrumentFunc, InstrumentProto, _throwInternal, arrForEach, createProcessTelemetryContext, createUniqueNamespace, deepFreeze, dumpObj, eventOn, generateW3CId, getExceptionName, getGlobal, getIEVersion, getLocation, getPerformance, isFunction, isNullOrUndefined, isString, isXhrSupported, mergeEvtNamespace, objForEachKey, strPrototype, strTrim } from \"@microsoft/applicationinsights-core-js\";\r\nimport { STR_PROPERTIES } from \"./InternalConstants\";\r\nimport { _DYN_ABORTED, _DYN_ABORT_DONE, _DYN_ADD_REQUEST_CONTEXT, _DYN_AJAX_PERF_LOOKUP_DEL18, _DYN_APP_ID, _DYN_CAN_INCLUDE_CORRELAT3, _DYN_CONTEXT, _DYN_CORE, _DYN_DISABLE_AJAX_TRACKIN12, _DYN_DISABLE_FETCH_TRACKI13, _DYN_DISTRIBUTED_TRACING_5, _DYN_ENABLE_AJAX_ERROR_ST7, _DYN_ENABLE_AJAX_PERF_TRA8, _DYN_ENABLE_REQUEST_HEADE6, _DYN_ENABLE_RESPONSE_HEAD10, _DYN_ERROR_STATUS_TEXT, _DYN_EXCLUDE_REQUEST_FROM11, _DYN_GET_ABSOLUTE_URL, _DYN_GET_ALL_RESPONSE_HEA16, _DYN_GET_CORRELATION_CONT17, _DYN_GET_PART_APROPS, _DYN_GET_TRACE_FLAGS, _DYN_GET_TRACE_ID, _DYN_HEADERS, _DYN_HEADER_MAP, _DYN_INCLUDE_CORRELATION_2, _DYN_INST, _DYN_LENGTH, _DYN_MAX_AJAX_CALLS_PER_V9, _DYN_METHOD, _DYN_NAME, _DYN_OPEN_DONE, _DYN_PERF_MARK, _DYN_PERF_TIMING, _DYN_REQUEST_HEADERS, _DYN_REQUEST_SENT_TIME, _DYN_REQUEST_URL, _DYN_RESPONSE, _DYN_RESPONSE_FINISHED_TI15, _DYN_RESPONSE_TEXT, _DYN_SEND_DONE, _DYN_SET_REQUEST_HEADER, _DYN_SPAN_ID, _DYN_SPAN_ID1, _DYN_START_TIME, _DYN_STATE_CHANGE_ATTACHE14, _DYN_STATUS, _DYN_STATUS_TEXT, _DYN_TO_LOWER_CASE, _DYN_TRACE_FLAGS, _DYN_TRACE_ID, _DYN_TRACE_ID0, _DYN_TRACK_DEPENDENCY_DAT4, _DYN__CREATE_TRACK_ITEM } from \"./__DynamicConstants\";\r\nimport { ajaxRecord } from \"./ajaxRecord\";\r\nvar AJAX_MONITOR_PREFIX = \"ai.ajxmn.\";\r\nvar strDiagLog = \"diagLog\";\r\nvar AJAX_DATA_CONTAINER = \"_ajaxData\";\r\nvar STR_FETCH = \"fetch\";\r\nvar ERROR_HEADER = \"Failed to monitor XMLHttpRequest\";\r\nvar ERROR_PREFIX = \", monitoring data for this ajax call \";\r\nvar ERROR_POSTFIX = ERROR_PREFIX + \"may be incorrect.\";\r\nvar ERROR_NOT_SENT = ERROR_PREFIX + \"won't be sent.\";\r\nvar CORRELATION_HEADER_ERROR = \"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.\";\r\nvar CUSTOM_REQUEST_CONTEXT_ERROR = \"Failed to add custom defined request context as configured call back may missing a null check.\";\r\nvar FAILED_TO_CALCULATE_DURATION_ERROR = \"Failed to calculate the duration of the \";\r\n// Using a global value so that to handle same iKey with multiple app insights instances (mostly for testing)\r\nvar _markCount = 0;\r\n/** @Ignore */\r\nfunction _supportsFetch() {\r\n var _global = getGlobal();\r\n if (!_global ||\r\n isNullOrUndefined(_global.Request) ||\r\n isNullOrUndefined(_global.Request[strPrototype]) ||\r\n isNullOrUndefined(_global[STR_FETCH])) {\r\n return null;\r\n }\r\n return _global[STR_FETCH];\r\n}\r\nvar _isWebWorker = null;\r\nfunction isWebWorker() {\r\n if (_isWebWorker == null) {\r\n try {\r\n _isWebWorker = !!(self && self instanceof WorkerGlobalScope);\r\n }\r\n catch (e) {\r\n _isWebWorker = false;\r\n }\r\n }\r\n return _isWebWorker;\r\n}\r\n/**\r\n * Determines whether ajax monitoring can be enabled on this document\r\n * @returns True if Ajax monitoring is supported on this page, otherwise false\r\n * @ignore\r\n */\r\nfunction _supportsAjaxMonitoring(ajaxMonitorInstance, ajaxDataId) {\r\n var _a;\r\n var result = false;\r\n if (isXhrSupported()) {\r\n var proto = XMLHttpRequest[strPrototype];\r\n result = !isNullOrUndefined(proto) &&\r\n !isNullOrUndefined(proto.open) && // eslint-disable-line security/detect-non-literal-fs-filename -- false positive\r\n !isNullOrUndefined(proto.send) &&\r\n !isNullOrUndefined(proto.abort);\r\n }\r\n var ieVer = getIEVersion();\r\n if (ieVer && ieVer < 9) {\r\n result = false;\r\n }\r\n if (result) {\r\n // Disable if the XmlHttpRequest can't be extended or hooked\r\n try {\r\n var xhr = new XMLHttpRequest();\r\n var xhrData = {\r\n xh: [],\r\n i: (_a = {},\r\n _a[ajaxDataId] = {},\r\n _a)\r\n };\r\n xhr[AJAX_DATA_CONTAINER] = xhrData;\r\n // Check that we can update the prototype\r\n var theOpen = XMLHttpRequest[strPrototype].open;\r\n XMLHttpRequest[strPrototype].open = theOpen;\r\n }\r\n catch (e) {\r\n // We can't decorate the xhr object so disable monitoring\r\n result = false;\r\n _throwInternalCritical(ajaxMonitorInstance, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, \"Failed to enable XMLHttpRequest monitoring, extension is not supported\", {\r\n exception: dumpObj(e)\r\n });\r\n }\r\n }\r\n return result;\r\n}\r\n/**\r\n * Internal helper to fetch the SDK instance tracking data for this XHR request\r\n * @param xhr\r\n * @param ajaxDataId\r\n * @returns\r\n */\r\nvar _getAjaxData = function (xhr, ajaxDataId) {\r\n if (xhr && ajaxDataId && xhr[AJAX_DATA_CONTAINER]) {\r\n return (xhr[AJAX_DATA_CONTAINER].i || {})[ajaxDataId];\r\n }\r\n return null;\r\n};\r\n/**\r\n * @ignore\r\n * Internal helper to track the singleton shared tracking headers, so we can attempt to not create headers\r\n * that might cause an issue if multiple values are populated.\r\n * @param xhr - The instrumented XHR instance\r\n */\r\nvar _addSharedXhrHeaders = function (xhr, name, value) {\r\n if (xhr) {\r\n var headers = (xhr[AJAX_DATA_CONTAINER] || {}).xh;\r\n if (headers) {\r\n headers.push({\r\n n: name,\r\n v: value\r\n });\r\n }\r\n }\r\n};\r\nvar _isHeaderSet = function (xhr, name) {\r\n var isPresent = false;\r\n if (xhr) {\r\n var headers = (xhr[AJAX_DATA_CONTAINER] || {}).xh;\r\n if (headers) {\r\n arrForEach(headers, function (header) {\r\n if (header.n === name) {\r\n isPresent = true;\r\n return -1;\r\n }\r\n });\r\n }\r\n }\r\n return isPresent;\r\n};\r\n/** @Ignore */\r\nfunction _getFailedAjaxDiagnosticsMessage(xhr, ajaxDataId) {\r\n var result = \"\";\r\n try {\r\n var ajaxData = _getAjaxData(xhr, ajaxDataId);\r\n if (ajaxData && ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */]) {\r\n result += \"(url: '\" + ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] + \"')\";\r\n }\r\n }\r\n catch (e) {\r\n // eslint-disable-next-line no-empty\r\n }\r\n return result;\r\n}\r\n/** @ignore */\r\nfunction _throwInternalCritical(ajaxMonitorInstance, msgId, message, properties, isUserAct) {\r\n _throwInternal(ajaxMonitorInstance[strDiagLog](), 1 /* eLoggingSeverity.CRITICAL */, msgId, message, properties, isUserAct);\r\n}\r\n/** @ignore */\r\nfunction _throwInternalWarning(ajaxMonitorInstance, msgId, message, properties, isUserAct) {\r\n _throwInternal(ajaxMonitorInstance[strDiagLog](), 2 /* eLoggingSeverity.WARNING */, msgId, message, properties, isUserAct);\r\n}\r\n/** @Ignore */\r\nfunction _createErrorCallbackFunc(ajaxMonitorInstance, internalMessage, message) {\r\n // tslint:disable-next-line\r\n return function (callDetails) {\r\n _throwInternalCritical(ajaxMonitorInstance, internalMessage, message, {\r\n ajaxDiagnosticsMessage: _getFailedAjaxDiagnosticsMessage(callDetails[_DYN_INST /* @min:%2einst */], ajaxMonitorInstance._ajaxDataId),\r\n exception: dumpObj(callDetails.err)\r\n });\r\n };\r\n}\r\nfunction _indexOf(value, match) {\r\n if (value && match) {\r\n return value.indexOf(match);\r\n }\r\n return -1;\r\n}\r\nfunction _addHandler(container, id, theFunc) {\r\n var theHandler = {\r\n id: id,\r\n fn: theFunc\r\n };\r\n container.push(theHandler);\r\n return {\r\n remove: function () {\r\n arrForEach(container, function (initializer, idx) {\r\n if (initializer.id === theHandler.id) {\r\n container.splice(idx, 1);\r\n return -1;\r\n }\r\n });\r\n }\r\n };\r\n}\r\nfunction _processDependencyContainer(core, container, details, message) {\r\n var result = true;\r\n arrForEach(container, function (theFunc, idx) {\r\n try {\r\n if (theFunc.fn.call(null, details) === false) {\r\n result = false;\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(core && core.logger, 1 /* eLoggingSeverity.CRITICAL */, 64 /* _eInternalMessageId.TelemetryInitializerFailed */, \"Dependency \" + message + \" [#\" + idx + \"] failed: \" + getExceptionName(e), { exception: dumpObj(e) }, true);\r\n }\r\n });\r\n return result;\r\n}\r\nfunction _processDependencyListeners(listeners, core, ajaxData, xhr, input, init) {\r\n var initializersCount = listeners[_DYN_LENGTH /* @min:%2elength */];\r\n if (initializersCount > 0) {\r\n var details = {\r\n core: core,\r\n xhr: xhr,\r\n input: input,\r\n init: init,\r\n traceId: ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */],\r\n spanId: ajaxData[_DYN_SPAN_ID /* @min:%2espanID */],\r\n traceFlags: ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */],\r\n context: ajaxData[_DYN_CONTEXT /* @min:%2econtext */] || {},\r\n aborted: !!ajaxData[_DYN_ABORTED /* @min:%2eaborted */]\r\n };\r\n _processDependencyContainer(core, listeners, details, \"listener\");\r\n ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */] = details[_DYN_TRACE_ID0 /* @min:%2etraceId */];\r\n ajaxData[_DYN_SPAN_ID /* @min:%2espanID */] = details[_DYN_SPAN_ID1 /* @min:%2espanId */];\r\n ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = details[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\r\n ajaxData[_DYN_CONTEXT /* @min:%2econtext */] = details[_DYN_CONTEXT /* @min:%2econtext */];\r\n }\r\n}\r\nvar BLOB_CORE = \"*.blob.core.\";\r\nexport var DfltAjaxCorrelationHeaderExDomains = deepFreeze([\r\n BLOB_CORE + \"windows.net\",\r\n BLOB_CORE + \"chinacloudapi.cn\",\r\n BLOB_CORE + \"cloudapi.de\",\r\n BLOB_CORE + \"usgovcloudapi.net\"\r\n]);\r\nvar _internalExcludeEndpoints = [\r\n /https:\\/\\/[^\\/]*(\\.pipe\\.aria|aria\\.pipe|events\\.data|collector\\.azure)\\.[^\\/]+\\/(OneCollector\\/1|Collector\\/3)\\.0/i\r\n];\r\nfunction _getDefaultConfig() {\r\n var config = {\r\n maxAjaxCallsPerView: 500,\r\n disableAjaxTracking: false,\r\n disableFetchTracking: false,\r\n excludeRequestFromAutoTrackingPatterns: undefined,\r\n disableCorrelationHeaders: false,\r\n distributedTracingMode: 1 /* eDistributedTracingModes.AI_AND_W3C */,\r\n correlationHeaderExcludedDomains: DfltAjaxCorrelationHeaderExDomains,\r\n correlationHeaderDomains: undefined,\r\n correlationHeaderExcludePatterns: undefined,\r\n appId: undefined,\r\n enableCorsCorrelation: false,\r\n enableRequestHeaderTracking: false,\r\n enableResponseHeaderTracking: false,\r\n enableAjaxErrorStatusText: false,\r\n enableAjaxPerfTracking: false,\r\n maxAjaxPerfLookupAttempts: 3,\r\n ajaxPerfLookupDelay: 25,\r\n ignoreHeaders: [\r\n \"Authorization\",\r\n \"X-API-Key\",\r\n \"WWW-Authenticate\"\r\n ],\r\n addRequestContext: undefined,\r\n addIntEndpoints: true\r\n };\r\n return config;\r\n}\r\nfunction _getEmptyConfig() {\r\n var emptyConfig = _getDefaultConfig();\r\n objForEachKey(emptyConfig, function (value) {\r\n emptyConfig[value] = undefined;\r\n });\r\n return emptyConfig;\r\n}\r\nvar AjaxMonitor = /** @class */ (function (_super) {\r\n __extends(AjaxMonitor, _super);\r\n function AjaxMonitor() {\r\n var _this = _super.call(this) || this;\r\n _this.identifier = AjaxMonitor.identifier;\r\n _this.priority = 120;\r\n var _fetchInitialized; // fetch monitoring initialized\r\n var _xhrInitialized; // XHR monitoring initialized\r\n var _currentWindowHost;\r\n var _config;\r\n var _enableRequestHeaderTracking;\r\n var _enableAjaxErrorStatusText;\r\n var _trackAjaxAttempts;\r\n var _context;\r\n var _isUsingW3CHeaders;\r\n var _isUsingAIHeaders;\r\n var _markPrefix;\r\n var _enableAjaxPerfTracking;\r\n var _maxAjaxCallsPerView;\r\n var _enableResponseHeaderTracking;\r\n var _disabledUrls;\r\n var _disableAjaxTracking;\r\n var _disableFetchTracking;\r\n var _excludeRequestFromAutoTrackingPatterns;\r\n var _addRequestContext;\r\n var _evtNamespace;\r\n var _ajaxDataId;\r\n var _dependencyHandlerId;\r\n var _dependencyListeners;\r\n var _dependencyInitializers;\r\n dynamicProto(AjaxMonitor, _this, function (_self, _base) {\r\n var _addHook = _base._addHook;\r\n _initDefaults();\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n if (!_self.isInitialized()) {\r\n _base.initialize(config, core, extensions, pluginChain);\r\n _evtNamespace = mergeEvtNamespace(createUniqueNamespace(\"ajax\"), core && core.evtNamespace && core.evtNamespace());\r\n _populateDefaults(config);\r\n _instrumentXhr();\r\n _instrumentFetch();\r\n _populateContext();\r\n }\r\n };\r\n _self._doTeardown = function () {\r\n _initDefaults();\r\n };\r\n _self.trackDependencyData = function (dependency, properties) {\r\n _reportDependencyInternal(_dependencyInitializers, _self[_DYN_CORE /* @min:%2ecore */], null, dependency, properties);\r\n };\r\n _self[_DYN_INCLUDE_CORRELATION_2 /* @min:%2eincludeCorrelationHeaders */] = function (ajaxData, input, init, xhr) {\r\n // Test Hook to allow the overriding of the location host\r\n var currentWindowHost = _self[\"_currentWindowHost\"] || _currentWindowHost;\r\n _processDependencyListeners(_dependencyListeners, _self[_DYN_CORE /* @min:%2ecore */], ajaxData, xhr, input, init);\r\n if (input || input === \"\") { // Fetch\r\n if (CorrelationIdHelper[_DYN_CAN_INCLUDE_CORRELAT3 /* @min:%2ecanIncludeCorrelationHeader */](_config, ajaxData[_DYN_GET_ABSOLUTE_URL /* @min:%2egetAbsoluteUrl */](), currentWindowHost)) {\r\n if (!init) {\r\n init = {};\r\n }\r\n // init headers override original request headers\r\n // so, if they exist use only them, otherwise use request's because they should have been applied in the first place\r\n // not using original request headers will result in them being lost\r\n var headers = new Headers(init[_DYN_HEADERS /* @min:%2eheaders */] || (input instanceof Request ? (input[_DYN_HEADERS /* @min:%2eheaders */] || {}) : {}));\r\n if (_isUsingAIHeaders) {\r\n var id = \"|\" + ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */] + \".\" + ajaxData[_DYN_SPAN_ID /* @min:%2espanID */];\r\n headers.set(RequestHeaders[3 /* eRequestHeaders.requestIdHeader */], id);\r\n if (_enableRequestHeaderTracking) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[3 /* eRequestHeaders.requestIdHeader */]] = id;\r\n }\r\n }\r\n var appId = _config[_DYN_APP_ID /* @min:%2eappId */] || (_context && _context[_DYN_APP_ID /* @min:%2eappId */]());\r\n if (appId) {\r\n headers.set(RequestHeaders[0 /* eRequestHeaders.requestContextHeader */], RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId);\r\n if (_enableRequestHeaderTracking) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]] = RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId;\r\n }\r\n }\r\n if (_isUsingW3CHeaders) {\r\n var traceFlags = ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\r\n if (isNullOrUndefined(traceFlags)) {\r\n traceFlags = 0x01;\r\n }\r\n var traceParent = formatTraceParent(createTraceParent(ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */], ajaxData[_DYN_SPAN_ID /* @min:%2espanID */], traceFlags));\r\n headers.set(RequestHeaders[4 /* eRequestHeaders.traceParentHeader */], traceParent);\r\n if (_enableRequestHeaderTracking) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[4 /* eRequestHeaders.traceParentHeader */]] = traceParent;\r\n }\r\n }\r\n init[_DYN_HEADERS /* @min:%2eheaders */] = headers;\r\n }\r\n return init;\r\n }\r\n else if (xhr) { // XHR\r\n if (CorrelationIdHelper[_DYN_CAN_INCLUDE_CORRELAT3 /* @min:%2ecanIncludeCorrelationHeader */](_config, ajaxData[_DYN_GET_ABSOLUTE_URL /* @min:%2egetAbsoluteUrl */](), currentWindowHost)) {\r\n if (_isUsingAIHeaders) {\r\n if (!_isHeaderSet(xhr, RequestHeaders[3 /* eRequestHeaders.requestIdHeader */])) {\r\n var id = \"|\" + ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */] + \".\" + ajaxData[_DYN_SPAN_ID /* @min:%2espanID */];\r\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[3 /* eRequestHeaders.requestIdHeader */], id);\r\n if (_enableRequestHeaderTracking) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[3 /* eRequestHeaders.requestIdHeader */]] = id;\r\n }\r\n }\r\n else {\r\n _throwInternalWarning(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, \"Unable to set [\" + RequestHeaders[3 /* eRequestHeaders.requestIdHeader */] + \"] as it has already been set by another instance\");\r\n }\r\n }\r\n var appId = _config[_DYN_APP_ID /* @min:%2eappId */] || (_context && _context[_DYN_APP_ID /* @min:%2eappId */]());\r\n if (appId) {\r\n if (!_isHeaderSet(xhr, RequestHeaders[0 /* eRequestHeaders.requestContextHeader */])) {\r\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[0 /* eRequestHeaders.requestContextHeader */], RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId);\r\n if (_enableRequestHeaderTracking) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]] = RequestHeaders[2 /* eRequestHeaders.requestContextAppIdFormat */] + appId;\r\n }\r\n }\r\n else {\r\n _throwInternalWarning(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, \"Unable to set [\" + RequestHeaders[0 /* eRequestHeaders.requestContextHeader */] + \"] as it has already been set by another instance\");\r\n }\r\n }\r\n if (_isUsingW3CHeaders) {\r\n var traceFlags = ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */];\r\n if (isNullOrUndefined(traceFlags)) {\r\n traceFlags = 0x01;\r\n }\r\n if (!_isHeaderSet(xhr, RequestHeaders[4 /* eRequestHeaders.traceParentHeader */])) {\r\n var traceParent = formatTraceParent(createTraceParent(ajaxData[_DYN_TRACE_ID /* @min:%2etraceID */], ajaxData[_DYN_SPAN_ID /* @min:%2espanID */], traceFlags));\r\n xhr[_DYN_SET_REQUEST_HEADER /* @min:%2esetRequestHeader */](RequestHeaders[4 /* eRequestHeaders.traceParentHeader */], traceParent);\r\n if (_enableRequestHeaderTracking) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][RequestHeaders[4 /* eRequestHeaders.traceParentHeader */]] = traceParent;\r\n }\r\n }\r\n else {\r\n _throwInternalWarning(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, \"Unable to set [\" + RequestHeaders[4 /* eRequestHeaders.traceParentHeader */] + \"] as it has already been set by another instance\");\r\n }\r\n }\r\n }\r\n return xhr;\r\n }\r\n return undefined;\r\n };\r\n _self[_DYN_TRACK_DEPENDENCY_DAT4 /* @min:%2etrackDependencyDataInternal */] = function (dependency, properties, systemProperties) {\r\n if (_maxAjaxCallsPerView === -1 || _trackAjaxAttempts < _maxAjaxCallsPerView) {\r\n // Hack since expected format in w3c mode is |abc.def.\r\n // Non-w3c format is |abc.def\r\n // @todo Remove if better solution is available, e.g. handle in portal\r\n if ((_config[_DYN_DISTRIBUTED_TRACING_5 /* @min:%2edistributedTracingMode */] === 2 /* eDistributedTracingModes.W3C */\r\n || _config[_DYN_DISTRIBUTED_TRACING_5 /* @min:%2edistributedTracingMode */] === 1 /* eDistributedTracingModes.AI_AND_W3C */)\r\n && typeof dependency.id === \"string\" && dependency.id[dependency.id[_DYN_LENGTH /* @min:%2elength */] - 1] !== \".\") {\r\n dependency.id += \".\";\r\n }\r\n if (isNullOrUndefined(dependency[_DYN_START_TIME /* @min:%2estartTime */])) {\r\n dependency[_DYN_START_TIME /* @min:%2estartTime */] = new Date();\r\n }\r\n var item = createTelemetryItem(dependency, RemoteDependencyData.dataType, RemoteDependencyData.envelopeType, _self[strDiagLog](), properties, systemProperties);\r\n _self[_DYN_CORE /* @min:%2ecore */].track(item);\r\n }\r\n else if (_trackAjaxAttempts === _maxAjaxCallsPerView) {\r\n _throwInternalCritical(_self, 55 /* _eInternalMessageId.MaxAjaxPerPVExceeded */, \"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.\", true);\r\n }\r\n ++_trackAjaxAttempts;\r\n };\r\n _self.addDependencyListener = function (dependencyListener) {\r\n return _addHandler(_dependencyListeners, _dependencyHandlerId++, dependencyListener);\r\n };\r\n _self.addDependencyInitializer = function (dependencyInitializer) {\r\n return _addHandler(_dependencyInitializers, _dependencyHandlerId++, dependencyInitializer);\r\n };\r\n function _initDefaults() {\r\n var location = getLocation();\r\n _fetchInitialized = false; // fetch monitoring initialized\r\n _xhrInitialized = false; // XHR monitoring initialized\r\n _currentWindowHost = location && location.host && location.host[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n _config = AjaxMonitor.getEmptyConfig();\r\n _enableRequestHeaderTracking = false;\r\n _enableAjaxErrorStatusText = false;\r\n _trackAjaxAttempts = 0;\r\n _context = null;\r\n _isUsingW3CHeaders = false;\r\n _isUsingAIHeaders = false;\r\n _markPrefix = null;\r\n _enableAjaxPerfTracking = false;\r\n _maxAjaxCallsPerView = 0;\r\n _enableResponseHeaderTracking = false;\r\n _disabledUrls = {};\r\n _disableAjaxTracking = false;\r\n _disableFetchTracking = false;\r\n _excludeRequestFromAutoTrackingPatterns = null;\r\n _addRequestContext = null;\r\n _evtNamespace = null;\r\n _dependencyHandlerId = 0;\r\n _dependencyListeners = [];\r\n _dependencyInitializers = [];\r\n _ajaxDataId = createUniqueNamespace(\"ajaxData\");\r\n _self._ajaxDataId = _ajaxDataId;\r\n }\r\n function _populateDefaults(config) {\r\n var ctx = createProcessTelemetryContext(null, config, _self[_DYN_CORE /* @min:%2ecore */]);\r\n // Reset to the empty config\r\n _config = _getEmptyConfig();\r\n var defaultConfig = _getDefaultConfig();\r\n objForEachKey(defaultConfig, function (field, value) {\r\n _config[field] = ctx.getConfig(AjaxMonitor.identifier, field, value);\r\n });\r\n var distributedTracingMode = _config[_DYN_DISTRIBUTED_TRACING_5 /* @min:%2edistributedTracingMode */];\r\n _enableRequestHeaderTracking = _config[_DYN_ENABLE_REQUEST_HEADE6 /* @min:%2eenableRequestHeaderTracking */];\r\n _enableAjaxErrorStatusText = _config[_DYN_ENABLE_AJAX_ERROR_ST7 /* @min:%2eenableAjaxErrorStatusText */];\r\n _enableAjaxPerfTracking = _config[_DYN_ENABLE_AJAX_PERF_TRA8 /* @min:%2eenableAjaxPerfTracking */];\r\n _maxAjaxCallsPerView = _config[_DYN_MAX_AJAX_CALLS_PER_V9 /* @min:%2emaxAjaxCallsPerView */];\r\n _enableResponseHeaderTracking = _config[_DYN_ENABLE_RESPONSE_HEAD10 /* @min:%2eenableResponseHeaderTracking */];\r\n _excludeRequestFromAutoTrackingPatterns = [].concat(_config[_DYN_EXCLUDE_REQUEST_FROM11 /* @min:%2eexcludeRequestFromAutoTrackingPatterns */] || [], _config.addIntEndpoints !== false ? _internalExcludeEndpoints : []);\r\n _addRequestContext = _config[_DYN_ADD_REQUEST_CONTEXT /* @min:%2eaddRequestContext */];\r\n _isUsingAIHeaders = distributedTracingMode === 0 /* eDistributedTracingModes.AI */ || distributedTracingMode === 1 /* eDistributedTracingModes.AI_AND_W3C */;\r\n _isUsingW3CHeaders = distributedTracingMode === 1 /* eDistributedTracingModes.AI_AND_W3C */ || distributedTracingMode === 2 /* eDistributedTracingModes.W3C */;\r\n if (_enableAjaxPerfTracking) {\r\n var iKey = config.instrumentationKey || \"unkwn\";\r\n if (iKey[_DYN_LENGTH /* @min:%2elength */] > 5) {\r\n _markPrefix = AJAX_MONITOR_PREFIX + iKey.substring(iKey[_DYN_LENGTH /* @min:%2elength */] - 5) + \".\";\r\n }\r\n else {\r\n _markPrefix = AJAX_MONITOR_PREFIX + iKey + \".\";\r\n }\r\n }\r\n _disableAjaxTracking = !!_config[_DYN_DISABLE_AJAX_TRACKIN12 /* @min:%2edisableAjaxTracking */];\r\n _disableFetchTracking = !!_config[_DYN_DISABLE_FETCH_TRACKI13 /* @min:%2edisableFetchTracking */];\r\n }\r\n function _populateContext() {\r\n var propExt = _self[_DYN_CORE /* @min:%2ecore */].getPlugin(PropertiesPluginIdentifier);\r\n if (propExt) {\r\n _context = propExt.plugin[_DYN_CONTEXT /* @min:%2econtext */]; // we could move IPropertiesPlugin to common as well\r\n }\r\n }\r\n // discard the header if it's defined as ignoreHeaders in ICorrelationConfig\r\n function _canIncludeHeaders(header) {\r\n var rlt = true;\r\n if (header || _config.ignoreHeaders) {\r\n arrForEach(_config.ignoreHeaders, (function (key) {\r\n if (key[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]() === header[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]()) {\r\n rlt = false;\r\n return -1;\r\n }\r\n }));\r\n }\r\n return rlt;\r\n }\r\n // Fetch Stuff\r\n function _instrumentFetch() {\r\n var fetch = _supportsFetch();\r\n if (!fetch) {\r\n return;\r\n }\r\n var global = getGlobal();\r\n var isPolyfill = fetch.polyfill;\r\n if (!_disableFetchTracking && !_fetchInitialized) {\r\n _addHook(InstrumentFunc(global, STR_FETCH, {\r\n ns: _evtNamespace,\r\n // Add request hook\r\n req: function (callDetails, input, init) {\r\n var fetchData;\r\n if (!_disableFetchTracking && _fetchInitialized &&\r\n !_isDisabledRequest(null, input, init) &&\r\n // If we have a polyfil and XHR instrumented then let XHR report otherwise we get duplicates\r\n !(isPolyfill && _xhrInitialized)) {\r\n var ctx = callDetails.ctx();\r\n fetchData = _createFetchRecord(input, init);\r\n var newInit = _self[_DYN_INCLUDE_CORRELATION_2 /* @min:%2eincludeCorrelationHeaders */](fetchData, input, init);\r\n if (newInit !== init) {\r\n callDetails.set(1, newInit);\r\n }\r\n ctx.data = fetchData;\r\n }\r\n },\r\n rsp: function (callDetails, input) {\r\n if (!_disableFetchTracking) {\r\n var fetchData_1 = callDetails.ctx().data;\r\n if (fetchData_1) {\r\n // Replace the result with the new promise from this code\r\n callDetails.rslt = callDetails.rslt.then(function (response) {\r\n _reportFetchMetrics(callDetails, (response || {})[_DYN_STATUS /* @min:%2estatus */], input, response, fetchData_1, function () {\r\n var ajaxResponse = {\r\n statusText: (response || {})[_DYN_STATUS_TEXT /* @min:%2estatusText */],\r\n headerMap: null,\r\n correlationContext: _getFetchCorrelationContext(response)\r\n };\r\n if (_enableResponseHeaderTracking && response) {\r\n var responseHeaderMap_1 = {};\r\n response.headers.forEach(function (value, name) {\r\n if (_canIncludeHeaders(name)) {\r\n responseHeaderMap_1[name] = value;\r\n }\r\n });\r\n ajaxResponse[_DYN_HEADER_MAP /* @min:%2eheaderMap */] = responseHeaderMap_1;\r\n }\r\n return ajaxResponse;\r\n });\r\n return response;\r\n })[\"catch\"](function (reason) {\r\n _reportFetchMetrics(callDetails, 0, input, null, fetchData_1, null, { error: reason.message || dumpObj(reason) });\r\n throw reason;\r\n });\r\n }\r\n }\r\n },\r\n // Create an error callback to report any hook errors\r\n hkErr: _createErrorCallbackFunc(_self, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, \"Failed to monitor Window.fetch\" + ERROR_POSTFIX)\r\n }, true, isWebWorker()));\r\n _fetchInitialized = true;\r\n }\r\n else if (isPolyfill) {\r\n // If fetch is a polyfill we need to capture the request to ensure that we correctly track\r\n // disabled request URLS (i.e. internal urls) to ensure we don't end up in a constant loop\r\n // of reporting ourselves, for example React Native uses a polyfill for fetch\r\n // Note: Polyfill implementations that don't support the \"poyyfill\" tag are not supported\r\n // the workaround is to add a polyfill property to your fetch implementation before initializing\r\n // App Insights\r\n _addHook(InstrumentFunc(global, STR_FETCH, {\r\n ns: _evtNamespace,\r\n req: function (callDetails, input, init) {\r\n // Just call so that we record any disabled URL\r\n _isDisabledRequest(null, input, init);\r\n }\r\n }));\r\n }\r\n if (isPolyfill) {\r\n // retag the instrumented fetch with the same polyfill settings this is mostly for testing\r\n // But also supports multiple App Insights usages\r\n global[STR_FETCH].polyfill = isPolyfill;\r\n }\r\n }\r\n function _hookProto(target, funcName, callbacks) {\r\n _addHook(InstrumentProto(target, funcName, callbacks));\r\n }\r\n function _instrumentXhr() {\r\n if (_supportsAjaxMonitoring(_self, _ajaxDataId) && !_disableAjaxTracking && !_xhrInitialized) {\r\n // Instrument open\r\n _hookProto(XMLHttpRequest, \"open\", {\r\n ns: _evtNamespace,\r\n req: function (callDetails, method, url, async) {\r\n if (!_disableAjaxTracking) {\r\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\r\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\r\n if (!_isDisabledRequest(xhr, url) && _isMonitoredXhrInstance(xhr, ajaxData, true)) {\r\n if (!ajaxData || !ajaxData.xhrMonitoringState[_DYN_OPEN_DONE /* @min:%2eopenDone */]) {\r\n // Only create a single ajaxData (even when multiple AI instances are running)\r\n ajaxData = _openHandler(xhr, method, url, async);\r\n }\r\n // always attach to the on ready state change (required for handling multiple instances)\r\n _attachToOnReadyStateChange(xhr, ajaxData);\r\n }\r\n }\r\n },\r\n hkErr: _createErrorCallbackFunc(_self, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, ERROR_HEADER + \".open\" + ERROR_POSTFIX)\r\n });\r\n // Instrument send\r\n _hookProto(XMLHttpRequest, \"send\", {\r\n ns: _evtNamespace,\r\n req: function (callDetails, context) {\r\n if (!_disableAjaxTracking) {\r\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\r\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\r\n if (_isMonitoredXhrInstance(xhr, ajaxData) && !ajaxData.xhrMonitoringState[_DYN_SEND_DONE /* @min:%2esendDone */]) {\r\n _createMarkId(\"xhr\", ajaxData);\r\n ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */] = dateTimeUtilsNow();\r\n _self[_DYN_INCLUDE_CORRELATION_2 /* @min:%2eincludeCorrelationHeaders */](ajaxData, undefined, undefined, xhr);\r\n ajaxData.xhrMonitoringState[_DYN_SEND_DONE /* @min:%2esendDone */] = true;\r\n }\r\n }\r\n },\r\n hkErr: _createErrorCallbackFunc(_self, 17 /* _eInternalMessageId.FailedMonitorAjaxSend */, ERROR_HEADER + ERROR_POSTFIX)\r\n });\r\n // Instrument abort\r\n _hookProto(XMLHttpRequest, \"abort\", {\r\n ns: _evtNamespace,\r\n req: function (callDetails) {\r\n if (!_disableAjaxTracking) {\r\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\r\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\r\n if (_isMonitoredXhrInstance(xhr, ajaxData) && !ajaxData.xhrMonitoringState[_DYN_ABORT_DONE /* @min:%2eabortDone */]) {\r\n ajaxData[_DYN_ABORTED /* @min:%2eaborted */] = 1;\r\n ajaxData.xhrMonitoringState[_DYN_ABORT_DONE /* @min:%2eabortDone */] = true;\r\n }\r\n }\r\n },\r\n hkErr: _createErrorCallbackFunc(_self, 13 /* _eInternalMessageId.FailedMonitorAjaxAbort */, ERROR_HEADER + \".abort\" + ERROR_POSTFIX)\r\n });\r\n // Instrument setRequestHeader\r\n _hookProto(XMLHttpRequest, \"setRequestHeader\", {\r\n ns: _evtNamespace,\r\n req: function (callDetails, header, value) {\r\n if (!_disableAjaxTracking) {\r\n var xhr = callDetails[_DYN_INST /* @min:%2einst */];\r\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\r\n if (ajaxData && _isMonitoredXhrInstance(xhr, ajaxData)) {\r\n _addSharedXhrHeaders(xhr, header, value);\r\n if (_enableRequestHeaderTracking && _canIncludeHeaders(header)) {\r\n if (ajaxData) {\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */][header] = value;\r\n }\r\n }\r\n }\r\n }\r\n },\r\n hkErr: _createErrorCallbackFunc(_self, 71 /* _eInternalMessageId.FailedMonitorAjaxSetRequestHeader */, ERROR_HEADER + \".setRequestHeader\" + ERROR_POSTFIX)\r\n });\r\n _xhrInitialized = true;\r\n }\r\n }\r\n function _isDisabledRequest(xhr, request, init) {\r\n var isDisabled = false;\r\n var theUrl = ((!isString(request) ? (request || {}).url || \"\" : request) || \"\")[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */]();\r\n // check excludeRequestFromAutoTrackingPatterns before stripping off any query string\r\n arrForEach(_excludeRequestFromAutoTrackingPatterns, function (regex) {\r\n var theRegex = regex;\r\n if (isString(regex)) {\r\n theRegex = new RegExp(regex);\r\n }\r\n if (!isDisabled) {\r\n isDisabled = theRegex.test(theUrl);\r\n }\r\n });\r\n // if request url matches with exclude regex pattern, return true and no need to check for headers\r\n if (isDisabled) {\r\n return isDisabled;\r\n }\r\n var idx = _indexOf(theUrl, \"?\");\r\n var idx2 = _indexOf(theUrl, \"#\");\r\n if (idx === -1 || (idx2 !== -1 && idx2 < idx)) {\r\n idx = idx2;\r\n }\r\n if (idx !== -1) {\r\n // Strip off any Query string\r\n theUrl = theUrl.substring(0, idx);\r\n }\r\n // check that this instance is not not used by ajax call performed inside client side monitoring to send data to collector\r\n if (!isNullOrUndefined(xhr)) {\r\n // Look on the XMLHttpRequest of the URL string value\r\n isDisabled = xhr[DisabledPropertyName] === true || theUrl[DisabledPropertyName] === true;\r\n }\r\n else if (!isNullOrUndefined(request)) { // fetch\r\n // Look for DisabledPropertyName in either Request or RequestInit\r\n isDisabled = (typeof request === \"object\" ? request[DisabledPropertyName] === true : false) ||\r\n (init ? init[DisabledPropertyName] === true : false);\r\n }\r\n // Also add extra check just in case the XHR or fetch objects where not decorated with the DisableProperty due to sealing or freezing\r\n if (!isDisabled && theUrl && isInternalApplicationInsightsEndpoint(theUrl)) {\r\n isDisabled = true;\r\n }\r\n if (isDisabled) {\r\n // Add the disabled url if not present\r\n if (!_disabledUrls[theUrl]) {\r\n _disabledUrls[theUrl] = 1;\r\n }\r\n }\r\n else {\r\n // Check to see if the url is listed as disabled\r\n if (_disabledUrls[theUrl]) {\r\n isDisabled = true;\r\n }\r\n }\r\n return isDisabled;\r\n }\r\n /// <summary>Verifies that particular instance of XMLHttpRequest needs to be monitored</summary>\r\n /// <param name=\"excludeAjaxDataValidation\">Optional parameter. True if ajaxData must be excluded from verification</param>\r\n /// <returns type=\"bool\">True if instance needs to be monitored, otherwise false</returns>\r\n function _isMonitoredXhrInstance(xhr, ajaxData, excludeAjaxDataValidation) {\r\n var ajaxValidation = true;\r\n var initialized = _xhrInitialized;\r\n if (!isNullOrUndefined(xhr)) {\r\n ajaxValidation = excludeAjaxDataValidation === true || !isNullOrUndefined(ajaxData);\r\n }\r\n // checking to see that all interested functions on xhr were instrumented\r\n return initialized\r\n // checking on ajaxData to see that it was not removed in user code\r\n && ajaxValidation;\r\n }\r\n function _getDistributedTraceCtx() {\r\n var distributedTraceCtx = null;\r\n if (_self[_DYN_CORE /* @min:%2ecore */] && _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx) {\r\n distributedTraceCtx = _self[_DYN_CORE /* @min:%2ecore */].getTraceCtx(false);\r\n }\r\n // Fall back\r\n if (!distributedTraceCtx && _context && _context.telemetryTrace) {\r\n distributedTraceCtx = createDistributedTraceContextFromTrace(_context.telemetryTrace);\r\n }\r\n return distributedTraceCtx;\r\n }\r\n function _openHandler(xhr, method, url, async) {\r\n var _a;\r\n var distributedTraceCtx = _getDistributedTraceCtx();\r\n var traceID = (distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_ID /* @min:%2egetTraceId */]()) || generateW3CId();\r\n var spanID = generateW3CId().substr(0, 16);\r\n var xhrRequestData = xhr[AJAX_DATA_CONTAINER] = (xhr[AJAX_DATA_CONTAINER] || { xh: [], i: {} });\r\n var ajaxDataCntr = xhrRequestData.i = (xhrRequestData.i || {});\r\n var ajaxData = ajaxDataCntr[_ajaxDataId] = (ajaxDataCntr[_ajaxDataId] || new ajaxRecord(traceID, spanID, _self[strDiagLog](), (_a = _self.core) === null || _a === void 0 ? void 0 : _a.getTraceCtx()));\r\n ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_FLAGS /* @min:%2egetTraceFlags */]();\r\n ajaxData[_DYN_METHOD /* @min:%2emethod */] = method;\r\n ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = url;\r\n ajaxData.xhrMonitoringState[_DYN_OPEN_DONE /* @min:%2eopenDone */] = true;\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = {};\r\n ajaxData.async = async;\r\n ajaxData[_DYN_ERROR_STATUS_TEXT /* @min:%2eerrorStatusText */] = _enableAjaxErrorStatusText;\r\n return ajaxData;\r\n }\r\n function _attachToOnReadyStateChange(xhr, ajaxData) {\r\n ajaxData.xhrMonitoringState[_DYN_STATE_CHANGE_ATTACHE14 /* @min:%2estateChangeAttached */] = eventOn(xhr, \"readystatechange\", function () {\r\n try {\r\n if (xhr && xhr.readyState === 4 && _isMonitoredXhrInstance(xhr, ajaxData)) {\r\n _onAjaxComplete(xhr);\r\n }\r\n }\r\n catch (e) {\r\n var exceptionText = dumpObj(e);\r\n // ignore messages with c00c023f, as this a known IE9 XHR abort issue\r\n if (!exceptionText || _indexOf(exceptionText[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](), \"c00c023f\") === -1) {\r\n _throwInternalCritical(_self, 16 /* _eInternalMessageId.FailedMonitorAjaxRSC */, ERROR_HEADER + \" 'readystatechange' event handler\" + ERROR_POSTFIX, {\r\n ajaxDiagnosticsMessage: _getFailedAjaxDiagnosticsMessage(xhr, _ajaxDataId),\r\n exception: exceptionText\r\n });\r\n }\r\n }\r\n }, _evtNamespace);\r\n }\r\n function _getResponseText(xhr) {\r\n try {\r\n var responseType = xhr.responseType;\r\n if (responseType === \"\" || responseType === \"text\") {\r\n // As per the specification responseText is only valid if the type is an empty string or \"text\"\r\n return xhr[_DYN_RESPONSE_TEXT /* @min:%2eresponseText */];\r\n }\r\n }\r\n catch (e) {\r\n // This shouldn't happen because of the above check -- but just in case, so just ignore\r\n }\r\n return null;\r\n }\r\n function _onAjaxComplete(xhr) {\r\n var ajaxData = _getAjaxData(xhr, _ajaxDataId);\r\n ajaxData[_DYN_RESPONSE_FINISHED_TI15 /* @min:%2eresponseFinishedTime */] = dateTimeUtilsNow();\r\n ajaxData[_DYN_STATUS /* @min:%2estatus */] = xhr[_DYN_STATUS /* @min:%2estatus */];\r\n function _reportXhrError(e, failedProps) {\r\n var errorProps = failedProps || {};\r\n errorProps[\"ajaxDiagnosticsMessage\"] = _getFailedAjaxDiagnosticsMessage(xhr, _ajaxDataId);\r\n if (e) {\r\n errorProps[\"exception\"] = dumpObj(e);\r\n }\r\n _throwInternalWarning(_self, 14 /* _eInternalMessageId.FailedMonitorAjaxDur */, FAILED_TO_CALCULATE_DURATION_ERROR + \"ajax call\" + ERROR_NOT_SENT, errorProps);\r\n }\r\n _findPerfResourceEntry(\"xmlhttprequest\", ajaxData, function () {\r\n try {\r\n var dependency = ajaxData[_DYN__CREATE_TRACK_ITEM /* @min:%2eCreateTrackItem */](\"Ajax\", _enableRequestHeaderTracking, function () {\r\n var ajaxResponse = {\r\n statusText: xhr[_DYN_STATUS_TEXT /* @min:%2estatusText */],\r\n headerMap: null,\r\n correlationContext: _getAjaxCorrelationContext(xhr),\r\n type: xhr.responseType,\r\n responseText: _getResponseText(xhr),\r\n response: xhr[_DYN_RESPONSE /* @min:%2eresponse */]\r\n };\r\n if (_enableResponseHeaderTracking) {\r\n var headers = xhr[_DYN_GET_ALL_RESPONSE_HEA16 /* @min:%2egetAllResponseHeaders */]();\r\n if (headers) {\r\n // xhr.getAllResponseHeaders() method returns all the response headers, separated by CRLF, as a string or null\r\n // the regex converts the header string into an array of individual headers\r\n var arr = strTrim(headers).split(/[\\r\\n]+/);\r\n var responseHeaderMap_2 = {};\r\n arrForEach(arr, function (line) {\r\n var parts = line.split(\": \");\r\n var header = parts.shift();\r\n var value = parts.join(\": \");\r\n if (_canIncludeHeaders(header)) {\r\n responseHeaderMap_2[header] = value;\r\n }\r\n });\r\n ajaxResponse[_DYN_HEADER_MAP /* @min:%2eheaderMap */] = responseHeaderMap_2;\r\n }\r\n }\r\n return ajaxResponse;\r\n });\r\n var properties = void 0;\r\n try {\r\n if (!!_addRequestContext) {\r\n properties = _addRequestContext({ status: xhr[_DYN_STATUS /* @min:%2estatus */], xhr: xhr });\r\n }\r\n }\r\n catch (e) {\r\n _throwInternalWarning(_self, 104 /* _eInternalMessageId.FailedAddingCustomDefinedRequestContext */, CUSTOM_REQUEST_CONTEXT_ERROR);\r\n }\r\n if (dependency) {\r\n if (properties !== undefined) {\r\n dependency[STR_PROPERTIES /* @min:%2eproperties */] = __assign(__assign({}, dependency.properties), properties);\r\n }\r\n var sysProperties = ajaxData[_DYN_GET_PART_APROPS /* @min:%2egetPartAProps */]();\r\n _reportDependencyInternal(_dependencyInitializers, _self[_DYN_CORE /* @min:%2ecore */], ajaxData, dependency, null, sysProperties);\r\n }\r\n else {\r\n _reportXhrError(null, {\r\n requestSentTime: ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */],\r\n responseFinishedTime: ajaxData[_DYN_RESPONSE_FINISHED_TI15 /* @min:%2eresponseFinishedTime */]\r\n });\r\n }\r\n }\r\n finally {\r\n // cleanup telemetry data\r\n try {\r\n var xhrRequestData = (xhr[AJAX_DATA_CONTAINER] || { i: {} });\r\n var ajaxDataCntr = (xhrRequestData.i || {});\r\n if (ajaxDataCntr[_ajaxDataId]) {\r\n ajaxDataCntr[_ajaxDataId] = null;\r\n }\r\n }\r\n catch (e) {\r\n // May throw in environments that prevent extension or freeze xhr\r\n }\r\n }\r\n }, function (e) {\r\n _reportXhrError(e, null);\r\n });\r\n }\r\n function _getAjaxCorrelationContext(xhr) {\r\n try {\r\n var responseHeadersString = xhr[_DYN_GET_ALL_RESPONSE_HEA16 /* @min:%2egetAllResponseHeaders */]();\r\n if (responseHeadersString !== null) {\r\n var index = _indexOf(responseHeadersString[_DYN_TO_LOWER_CASE /* @min:%2etoLowerCase */](), RequestHeaders[8 /* eRequestHeaders.requestContextHeaderLowerCase */]);\r\n if (index !== -1) {\r\n var responseHeader = xhr.getResponseHeader(RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]);\r\n return CorrelationIdHelper[_DYN_GET_CORRELATION_CONT17 /* @min:%2egetCorrelationContext */](responseHeader);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n _throwInternalWarning(_self, 18 /* _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader */, CORRELATION_HEADER_ERROR, {\r\n ajaxDiagnosticsMessage: _getFailedAjaxDiagnosticsMessage(xhr, _ajaxDataId),\r\n exception: dumpObj(e)\r\n });\r\n }\r\n }\r\n function _createMarkId(type, ajaxData) {\r\n if (ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] && _markPrefix && _enableAjaxPerfTracking) {\r\n var performance_1 = getPerformance();\r\n if (performance_1 && isFunction(performance_1.mark)) {\r\n _markCount++;\r\n var markId = _markPrefix + type + \"#\" + _markCount;\r\n performance_1.mark(markId);\r\n var entries = performance_1.getEntriesByName(markId);\r\n if (entries && entries[_DYN_LENGTH /* @min:%2elength */] === 1) {\r\n ajaxData[_DYN_PERF_MARK /* @min:%2eperfMark */] = entries[0];\r\n }\r\n }\r\n }\r\n }\r\n function _findPerfResourceEntry(initiatorType, ajaxData, trackCallback, reportError) {\r\n var perfMark = ajaxData[_DYN_PERF_MARK /* @min:%2eperfMark */];\r\n var performance = getPerformance();\r\n var maxAttempts = _config.maxAjaxPerfLookupAttempts;\r\n var retryDelay = _config[_DYN_AJAX_PERF_LOOKUP_DEL18 /* @min:%2eajaxPerfLookupDelay */];\r\n var requestUrl = ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */];\r\n var attempt = 0;\r\n (function locateResourceTiming() {\r\n try {\r\n if (performance && perfMark) {\r\n attempt++;\r\n var perfTiming = null;\r\n var entries = performance.getEntries();\r\n for (var lp = entries[_DYN_LENGTH /* @min:%2elength */] - 1; lp >= 0; lp--) {\r\n var entry = entries[lp];\r\n if (entry) {\r\n if (entry.entryType === \"resource\") {\r\n if (entry.initiatorType === initiatorType &&\r\n (_indexOf(entry[_DYN_NAME /* @min:%2ename */], requestUrl) !== -1 || _indexOf(requestUrl, entry[_DYN_NAME /* @min:%2ename */]) !== -1)) {\r\n perfTiming = entry;\r\n }\r\n }\r\n else if (entry.entryType === \"mark\" && entry[_DYN_NAME /* @min:%2ename */] === perfMark[_DYN_NAME /* @min:%2ename */]) {\r\n // We hit the start event\r\n ajaxData[_DYN_PERF_TIMING /* @min:%2eperfTiming */] = perfTiming;\r\n break;\r\n }\r\n if (entry[_DYN_START_TIME /* @min:%2estartTime */] < perfMark[_DYN_START_TIME /* @min:%2estartTime */] - 1000) {\r\n // Fallback to try and reduce the time spent looking for the perf entry\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n if (!perfMark || // - we don't have a perfMark or\r\n ajaxData[_DYN_PERF_TIMING /* @min:%2eperfTiming */] || // - we have not found the perf entry or\r\n attempt >= maxAttempts || // - we have tried too many attempts or\r\n ajaxData.async === false) { // - this is a sync request\r\n if (perfMark && isFunction(performance.clearMarks)) {\r\n // Remove the mark so we don't fill up the performance resources too much\r\n performance.clearMarks(perfMark[_DYN_NAME /* @min:%2ename */]);\r\n }\r\n ajaxData.perfAttempts = attempt;\r\n // just continue and report the track event\r\n trackCallback();\r\n }\r\n else {\r\n // We need to wait for the browser to populate the window.performance entry\r\n // This needs to be at least 1ms as waiting <= 1 (on firefox) is not enough time for fetch or xhr,\r\n // this is a scheduling issue for the browser implementation\r\n setTimeout(locateResourceTiming, retryDelay);\r\n }\r\n }\r\n catch (e) {\r\n reportError(e);\r\n }\r\n })();\r\n }\r\n function _createFetchRecord(input, init) {\r\n var _a;\r\n var distributedTraceCtx = _getDistributedTraceCtx();\r\n var traceID = (distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_ID /* @min:%2egetTraceId */]()) || generateW3CId();\r\n var spanID = generateW3CId().substr(0, 16);\r\n var ajaxData = new ajaxRecord(traceID, spanID, _self[strDiagLog](), (_a = _self.core) === null || _a === void 0 ? void 0 : _a.getTraceCtx());\r\n ajaxData[_DYN_TRACE_FLAGS /* @min:%2etraceFlags */] = distributedTraceCtx && distributedTraceCtx[_DYN_GET_TRACE_FLAGS /* @min:%2egetTraceFlags */]();\r\n ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */] = dateTimeUtilsNow();\r\n ajaxData[_DYN_ERROR_STATUS_TEXT /* @min:%2eerrorStatusText */] = _enableAjaxErrorStatusText;\r\n if (input instanceof Request) {\r\n ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = input ? input.url : \"\";\r\n }\r\n else {\r\n ajaxData[_DYN_REQUEST_URL /* @min:%2erequestUrl */] = input;\r\n }\r\n var method = \"GET\";\r\n if (init && init[_DYN_METHOD /* @min:%2emethod */]) {\r\n method = init[_DYN_METHOD /* @min:%2emethod */];\r\n }\r\n else if (input && input instanceof Request) {\r\n method = input[_DYN_METHOD /* @min:%2emethod */];\r\n }\r\n ajaxData[_DYN_METHOD /* @min:%2emethod */] = method;\r\n var requestHeaders = {};\r\n if (_enableRequestHeaderTracking) {\r\n var headers = new Headers((init ? init[_DYN_HEADERS /* @min:%2eheaders */] : 0) || (input instanceof Request ? (input[_DYN_HEADERS /* @min:%2eheaders */] || {}) : {}));\r\n headers.forEach(function (value, key) {\r\n if (_canIncludeHeaders(key)) {\r\n requestHeaders[key] = value;\r\n }\r\n });\r\n }\r\n ajaxData[_DYN_REQUEST_HEADERS /* @min:%2erequestHeaders */] = requestHeaders;\r\n _createMarkId(STR_FETCH, ajaxData);\r\n return ajaxData;\r\n }\r\n function _getFailedFetchDiagnosticsMessage(input) {\r\n var result = \"\";\r\n try {\r\n if (!isNullOrUndefined(input)) {\r\n if (isString(input)) {\r\n result += \"(url: '\".concat(input, \"')\");\r\n }\r\n else {\r\n result += \"(url: '\".concat(input.url, \"')\");\r\n }\r\n }\r\n }\r\n catch (e) {\r\n _throwInternalCritical(_self, 15 /* _eInternalMessageId.FailedMonitorAjaxOpen */, \"Failed to grab failed fetch diagnostics message\", { exception: dumpObj(e) });\r\n }\r\n return result;\r\n }\r\n function _reportFetchMetrics(callDetails, status, input, response, ajaxData, getResponse, properties) {\r\n if (!ajaxData) {\r\n return;\r\n }\r\n function _reportFetchError(msgId, e, failedProps) {\r\n var errorProps = failedProps || {};\r\n errorProps[\"fetchDiagnosticsMessage\"] = _getFailedFetchDiagnosticsMessage(input);\r\n if (e) {\r\n errorProps[\"exception\"] = dumpObj(e);\r\n }\r\n _throwInternalWarning(_self, msgId, FAILED_TO_CALCULATE_DURATION_ERROR + \"fetch call\" + ERROR_NOT_SENT, errorProps);\r\n }\r\n ajaxData[_DYN_RESPONSE_FINISHED_TI15 /* @min:%2eresponseFinishedTime */] = dateTimeUtilsNow();\r\n ajaxData[_DYN_STATUS /* @min:%2estatus */] = status;\r\n _findPerfResourceEntry(STR_FETCH, ajaxData, function () {\r\n var dependency = ajaxData[_DYN__CREATE_TRACK_ITEM /* @min:%2eCreateTrackItem */](\"Fetch\", _enableRequestHeaderTracking, getResponse);\r\n var properties;\r\n try {\r\n if (!!_addRequestContext) {\r\n properties = _addRequestContext({ status: status, request: input, response: response });\r\n }\r\n }\r\n catch (e) {\r\n _throwInternalWarning(_self, 104 /* _eInternalMessageId.FailedAddingCustomDefinedRequestContext */, CUSTOM_REQUEST_CONTEXT_ERROR);\r\n }\r\n if (dependency) {\r\n if (properties !== undefined) {\r\n dependency[STR_PROPERTIES /* @min:%2eproperties */] = __assign(__assign({}, dependency.properties), properties);\r\n }\r\n var sysProperties = ajaxData[_DYN_GET_PART_APROPS /* @min:%2egetPartAProps */]();\r\n _reportDependencyInternal(_dependencyInitializers, _self[_DYN_CORE /* @min:%2ecore */], ajaxData, dependency, null, sysProperties);\r\n }\r\n else {\r\n _reportFetchError(14 /* _eInternalMessageId.FailedMonitorAjaxDur */, null, {\r\n requestSentTime: ajaxData[_DYN_REQUEST_SENT_TIME /* @min:%2erequestSentTime */],\r\n responseFinishedTime: ajaxData[_DYN_RESPONSE_FINISHED_TI15 /* @min:%2eresponseFinishedTime */]\r\n });\r\n }\r\n }, function (e) {\r\n _reportFetchError(18 /* _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader */, e, null);\r\n });\r\n }\r\n function _getFetchCorrelationContext(response) {\r\n if (response && response[_DYN_HEADERS /* @min:%2eheaders */]) {\r\n try {\r\n var responseHeader = response[_DYN_HEADERS /* @min:%2eheaders */].get(RequestHeaders[0 /* eRequestHeaders.requestContextHeader */]);\r\n return CorrelationIdHelper[_DYN_GET_CORRELATION_CONT17 /* @min:%2egetCorrelationContext */](responseHeader);\r\n }\r\n catch (e) {\r\n _throwInternalWarning(_self, 18 /* _eInternalMessageId.FailedMonitorAjaxGetCorrelationHeader */, CORRELATION_HEADER_ERROR, {\r\n fetchDiagnosticsMessage: _getFailedFetchDiagnosticsMessage(response),\r\n exception: dumpObj(e)\r\n });\r\n }\r\n }\r\n }\r\n function _reportDependencyInternal(initializers, core, ajaxData, dependency, properties, systemProperties) {\r\n var result = true;\r\n var initializersCount = initializers[_DYN_LENGTH /* @min:%2elength */];\r\n if (initializersCount > 0) {\r\n var details = {\r\n item: dependency,\r\n properties: properties,\r\n sysProperties: systemProperties,\r\n context: ajaxData ? ajaxData[_DYN_CONTEXT /* @min:%2econtext */] : null,\r\n aborted: ajaxData ? !!ajaxData[_DYN_ABORTED /* @min:%2eaborted */] : false\r\n };\r\n result = _processDependencyContainer(core, initializers, details, \"initializer\");\r\n }\r\n if (result) {\r\n _self[_DYN_TRACK_DEPENDENCY_DAT4 /* @min:%2etrackDependencyDataInternal */](dependency, properties, systemProperties);\r\n }\r\n }\r\n });\r\n return _this;\r\n }\r\n// Removed Stub for AjaxMonitor.prototype.initialize.\r\n AjaxMonitor.prototype.processTelemetry = function (item, itemCtx) {\r\n this.processNext(item, itemCtx);\r\n };\r\n// Removed Stub for AjaxMonitor.prototype.trackDependencyData.\r\n// Removed Stub for AjaxMonitor.prototype.includeCorrelationHeaders.\r\n// Removed Stub for AjaxMonitor.prototype.addDependencyListener.\r\n /**\r\n * Add an dependency telemetry initializer callback function to allow populating additional properties or drop the request.\r\n * It is called after the dependency call has completed and any available performance details are available. A dependency\r\n * initializer is similar to the TelemetryInitializer function but it allows you to block the reporting of the dependency\r\n * request so that it doesn't count against the `maxAjaxCallsPerView`.\r\n * @param dependencyInitializer - The Dependency Telemetry Initializer function\r\n * @returns - A IDependencyInitializerHandler to enable the initializer to be removed\r\n */\r\n AjaxMonitor.prototype.addDependencyInitializer = function (dependencyInitializer) {\r\n return null;\r\n };\r\n// Removed Stub for AjaxMonitor.prototype.trackDependencyDataInternal.\r\n AjaxMonitor.identifier = \"AjaxDependencyPlugin\";\r\n AjaxMonitor.getDefaultConfig = _getDefaultConfig;\r\n AjaxMonitor.getEmptyConfig = _getEmptyConfig;\r\n return AjaxMonitor;\r\n}(BaseTelemetryPlugin));\r\nexport { AjaxMonitor };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nvar Application = /** @class */ (function () {\r\n function Application() {\r\n }\r\n return Application;\r\n}());\r\nexport { Application };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nvar Device = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the Device class\r\n */\r\n function Device() {\r\n // don't attempt to fingerprint browsers\r\n this.id = \"browser\";\r\n // Device type is a dimension in our data platform\r\n // Setting it to 'Browser' allows to separate client and server dependencies/exceptions\r\n this.deviceClass = \"Browser\";\r\n }\r\n return Device;\r\n}());\r\nexport { Device };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_SESSION_MANAGER = \"sessionManager\"; // Count: 3\r\nexport var _DYN_UPDATE = \"update\"; // Count: 4\r\nexport var _DYN_IS_USER_COOKIE_SET = \"isUserCookieSet\"; // Count: 4\r\nexport var _DYN_IS_NEW_USER = \"isNewUser\"; // Count: 4\r\nexport var _DYN_GET_TRACE_CTX = \"getTraceCtx\"; // Count: 3\r\nexport var _DYN_TELEMETRY_TRACE = \"telemetryTrace\"; // Count: 3\r\nexport var _DYN_APPLY_SESSION_CONTEX0 = \"applySessionContext\"; // Count: 2\r\nexport var _DYN_APPLY_APPLICATION_CO1 = \"applyApplicationContext\"; // Count: 2\r\nexport var _DYN_APPLY_DEVICE_CONTEXT = \"applyDeviceContext\"; // Count: 2\r\nexport var _DYN_APPLY_OPERATION_CONT2 = \"applyOperationContext\"; // Count: 2\r\nexport var _DYN_APPLY_USER_CONTEXT = \"applyUserContext\"; // Count: 2\r\nexport var _DYN_APPLY_OPERATING_SYST3 = \"applyOperatingSystemContxt\"; // Count: 2\r\nexport var _DYN_APPLY_LOCATION_CONTE4 = \"applyLocationContext\"; // Count: 2\r\nexport var _DYN_APPLY_INTERNAL_CONTE5 = \"applyInternalContext\"; // Count: 2\r\nexport var _DYN_ACCOUNT_ID = \"accountId\"; // Count: 8\r\nexport var _DYN_SDK_EXTENSION = \"sdkExtension\"; // Count: 4\r\nexport var _DYN_GET_SESSION_ID = \"getSessionId\"; // Count: 4\r\nexport var _DYN_NAME_PREFIX = \"namePrefix\"; // Count: 7\r\nexport var _DYN_SESSION_COOKIE_POSTF6 = \"sessionCookiePostfix\"; // Count: 4\r\nexport var _DYN_USER_COOKIE_POSTFIX = \"userCookiePostfix\"; // Count: 4\r\nexport var _DYN_ID_LENGTH = \"idLength\"; // Count: 5\r\nexport var _DYN_GET_NEW_ID = \"getNewId\"; // Count: 6\r\nexport var _DYN_LENGTH = \"length\"; // Count: 4\r\nexport var _DYN_AUTOMATIC_SESSION = \"automaticSession\"; // Count: 5\r\nexport var _DYN_AUTHENTICATED_ID = \"authenticatedId\"; // Count: 6\r\nexport var _DYN_SESSION_EXPIRATION_M7 = \"sessionExpirationMs\"; // Count: 5\r\nexport var _DYN_SESSION_RENEWAL_MS = \"sessionRenewalMs\"; // Count: 4\r\nexport var _DYN_CONFIG = \"config\"; // Count: 4\r\nexport var _DYN_ACQUISITION_DATE = \"acquisitionDate\"; // Count: 5\r\nexport var _DYN_RENEWAL_DATE = \"renewalDate\"; // Count: 4\r\nexport var _DYN_COOKIE_DOMAIN = \"cookieDomain\"; // Count: 3\r\nexport var _DYN_JOIN = \"join\"; // Count: 5\r\nexport var _DYN_COOKIE_SEPARATOR = \"cookieSeparator\"; // Count: 5\r\nexport var _DYN_AUTH_USER_COOKIE_NAM8 = \"authUserCookieName\"; // Count: 3\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { _DYN_SDK_EXTENSION } from \"../__DynamicConstants\";\r\nvar Version = '2.8.18';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config) {\r\n this.sdkVersion = (config[_DYN_SDK_EXTENSION /* @min:%2esdkExtension */] && config[_DYN_SDK_EXTENSION /* @min:%2esdkExtension */]() ? config[_DYN_SDK_EXTENSION /* @min:%2esdkExtension */]() + \"_\" : \"\") + \"javascript:\" + Version;\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nvar Location = /** @class */ (function () {\r\n function Location() {\r\n }\r\n return Location;\r\n}());\r\nexport { Location };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { utlCanUseLocalStorage, utlGetLocalStorage, utlSetLocalStorage } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal, dateNow, dumpObj, getExceptionName, isFunction, newId, safeGetCookieMgr, safeGetLogger } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_ACQUISITION_DATE, _DYN_AUTOMATIC_SESSION, _DYN_CONFIG, _DYN_COOKIE_DOMAIN, _DYN_GET_NEW_ID, _DYN_ID_LENGTH, _DYN_JOIN, _DYN_LENGTH, _DYN_NAME_PREFIX, _DYN_RENEWAL_DATE, _DYN_SESSION_COOKIE_POSTF6, _DYN_SESSION_EXPIRATION_M7, _DYN_SESSION_RENEWAL_MS, _DYN_UPDATE } from \"../__DynamicConstants\";\r\nvar cookieNameConst = \"ai_session\";\r\nvar Session = /** @class */ (function () {\r\n function Session() {\r\n }\r\n return Session;\r\n}());\r\nexport { Session };\r\nvar _SessionManager = /** @class */ (function () {\r\n function _SessionManager(config, core) {\r\n var self = this;\r\n var _storageNamePrefix;\r\n var _cookieUpdatedTimestamp;\r\n var _logger = safeGetLogger(core);\r\n var _cookieManager = safeGetCookieMgr(core);\r\n dynamicProto(_SessionManager, self, function (_self) {\r\n if (!config) {\r\n config = {};\r\n }\r\n if (!isFunction(config[_DYN_SESSION_EXPIRATION_M7 /* @min:%2esessionExpirationMs */])) {\r\n config[_DYN_SESSION_EXPIRATION_M7 /* @min:%2esessionExpirationMs */] = function () { return _SessionManager.acquisitionSpan; };\r\n }\r\n if (!isFunction(config[_DYN_SESSION_RENEWAL_MS /* @min:%2esessionRenewalMs */])) {\r\n config[_DYN_SESSION_RENEWAL_MS /* @min:%2esessionRenewalMs */] = function () { return _SessionManager.renewalSpan; };\r\n }\r\n _self[_DYN_CONFIG /* @min:%2econfig */] = config;\r\n // sessionCookiePostfix takes the preference if it is configured, otherwise takes namePrefix if configured.\r\n var sessionCookiePostfix = (_self.config[_DYN_SESSION_COOKIE_POSTF6 /* @min:%2esessionCookiePostfix */] && _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_SESSION_COOKIE_POSTF6 /* @min:%2esessionCookiePostfix */]()) ?\r\n _self.config[_DYN_SESSION_COOKIE_POSTF6 /* @min:%2esessionCookiePostfix */]() :\r\n ((_self.config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] && _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_NAME_PREFIX /* @min:%2enamePrefix */]()) ? _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() : \"\");\r\n _storageNamePrefix = function () { return cookieNameConst + sessionCookiePostfix; };\r\n _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */] = new Session();\r\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function () {\r\n // Always using Date getTime() as there is a bug in older IE instances that causes the performance timings to have the hi-bit set eg 0x800000000 causing\r\n // the number to be incorrect.\r\n var nowMs = dateNow();\r\n var isExpired = false;\r\n var session = _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */];\r\n if (!session.id) {\r\n isExpired = !_initializeAutomaticSession(session, nowMs);\r\n }\r\n var sessionExpirationMs = _self.config[_DYN_SESSION_EXPIRATION_M7 /* @min:%2esessionExpirationMs */]();\r\n if (!isExpired && sessionExpirationMs > 0) {\r\n var sessionRenewalMs = _self.config[_DYN_SESSION_RENEWAL_MS /* @min:%2esessionRenewalMs */]();\r\n var timeSinceAcqMs = nowMs - session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */];\r\n var timeSinceRenewalMs = nowMs - session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */];\r\n isExpired = timeSinceAcqMs < 0 || timeSinceRenewalMs < 0; // expired if the acquisition or last renewal are in the future\r\n isExpired = isExpired || timeSinceAcqMs > sessionExpirationMs; // expired if the time since acquisition is more than session Expiration\r\n isExpired = isExpired || timeSinceRenewalMs > sessionRenewalMs; // expired if the time since last renewal is more than renewal period\r\n }\r\n // renew if acquisitionSpan or renewalSpan has elapsed\r\n if (isExpired) {\r\n // update automaticSession so session state has correct id\r\n _renew(nowMs);\r\n }\r\n else {\r\n // do not update the cookie more often than cookieUpdateInterval\r\n if (!_cookieUpdatedTimestamp || nowMs - _cookieUpdatedTimestamp > _SessionManager.cookieUpdateInterval) {\r\n _setCookie(session, nowMs);\r\n }\r\n }\r\n };\r\n /**\r\n * Record the current state of the automatic session and store it in our cookie string format\r\n * into the browser's local storage. This is used to restore the session data when the cookie\r\n * expires.\r\n */\r\n _self.backup = function () {\r\n var session = _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */];\r\n _setStorage(session.id, session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */], session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */]);\r\n };\r\n /**\r\n * Use config.namePrefix + ai_session cookie data or local storage data (when the cookie is unavailable) to\r\n * initialize the automatic session.\r\n * @returns true if values set otherwise false\r\n */\r\n function _initializeAutomaticSession(session, now) {\r\n var isValid = false;\r\n var cookieValue = _cookieManager.get(_storageNamePrefix());\r\n if (cookieValue && isFunction(cookieValue.split)) {\r\n isValid = _initializeAutomaticSessionWithData(session, cookieValue);\r\n }\r\n else {\r\n // There's no cookie, but we might have session data in local storage\r\n // This can happen if the session expired or the user actively deleted the cookie\r\n // We only want to recover data if the cookie is missing from expiry. We should respect the user's wishes if the cookie was deleted actively.\r\n // The User class handles this for us and deletes our local storage object if the persistent user cookie was removed.\r\n var storageValue = utlGetLocalStorage(_logger, _storageNamePrefix());\r\n if (storageValue) {\r\n isValid = _initializeAutomaticSessionWithData(session, storageValue);\r\n }\r\n }\r\n return isValid || !!session.id;\r\n }\r\n /**\r\n * Extract id, acquisitionDate, and renewalDate from an ai_session payload string and\r\n * use this data to initialize automaticSession.\r\n *\r\n * @param {string} sessionData - The string stored in an ai_session cookie or local storage backup\r\n * @returns true if values set otherwise false\r\n */\r\n function _initializeAutomaticSessionWithData(session, sessionData) {\r\n var isValid = false;\r\n var sessionReset = \", session will be reset\";\r\n var tokens = sessionData.split(\"|\");\r\n if (tokens[_DYN_LENGTH /* @min:%2elength */] >= 2) {\r\n try {\r\n var acqMs = +tokens[1] || 0;\r\n var renewalMs = +tokens[2] || 0;\r\n if (isNaN(acqMs) || acqMs <= 0) {\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 27 /* _eInternalMessageId.SessionRenewalDateIsZero */, \"AI session acquisition date is 0\" + sessionReset);\r\n }\r\n else if (isNaN(renewalMs) || renewalMs <= 0) {\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 27 /* _eInternalMessageId.SessionRenewalDateIsZero */, \"AI session renewal date is 0\" + sessionReset);\r\n }\r\n else if (tokens[0]) {\r\n // Everything looks valid so set the values\r\n session.id = tokens[0];\r\n session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */] = acqMs;\r\n session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */] = renewalMs;\r\n isValid = true;\r\n }\r\n }\r\n catch (e) {\r\n _throwInternal(_logger, 1 /* eLoggingSeverity.CRITICAL */, 9 /* _eInternalMessageId.ErrorParsingAISessionCookie */, \"Error parsing ai_session value [\" + (sessionData || \"\") + \"]\" + sessionReset + \" - \" + getExceptionName(e), { exception: dumpObj(e) });\r\n }\r\n }\r\n return isValid;\r\n }\r\n function _renew(nowMs) {\r\n var theConfig = (_self[_DYN_CONFIG /* @min:%2econfig */] || {});\r\n var getNewId = (theConfig[_DYN_GET_NEW_ID /* @min:%2egetNewId */] ? theConfig[_DYN_GET_NEW_ID /* @min:%2egetNewId */]() : null) || newId;\r\n _self.automaticSession.id = getNewId(theConfig[_DYN_ID_LENGTH /* @min:%2eidLength */] ? theConfig[_DYN_ID_LENGTH /* @min:%2eidLength */]() : 22);\r\n _self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */][_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */] = nowMs;\r\n _setCookie(_self[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */], nowMs);\r\n // If this browser does not support local storage, fire an internal log to keep track of it at this point\r\n if (!utlCanUseLocalStorage()) {\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 0 /* _eInternalMessageId.BrowserDoesNotSupportLocalStorage */, \"Browser does not support local storage. Session durations will be inaccurate.\");\r\n }\r\n }\r\n function _setCookie(session, nowMs) {\r\n var acq = session[_DYN_ACQUISITION_DATE /* @min:%2eacquisitionDate */];\r\n session[_DYN_RENEWAL_DATE /* @min:%2erenewalDate */] = nowMs;\r\n var config = _self[_DYN_CONFIG /* @min:%2econfig */];\r\n var renewalPeriodMs = config[_DYN_SESSION_RENEWAL_MS /* @min:%2esessionRenewalMs */]();\r\n // Set cookie to expire after the session expiry time passes or the session renewal deadline, whichever is sooner\r\n // Expiring the cookie will cause the session to expire even if the user isn't on the page\r\n var acqTimeLeftMs = (acq + config[_DYN_SESSION_EXPIRATION_M7 /* @min:%2esessionExpirationMs */]()) - nowMs;\r\n var cookie = [session.id, acq, nowMs];\r\n var maxAgeSec = 0;\r\n if (acqTimeLeftMs < renewalPeriodMs) {\r\n maxAgeSec = acqTimeLeftMs / 1000;\r\n }\r\n else {\r\n maxAgeSec = renewalPeriodMs / 1000;\r\n }\r\n var cookieDomain = config[_DYN_COOKIE_DOMAIN /* @min:%2ecookieDomain */] ? config[_DYN_COOKIE_DOMAIN /* @min:%2ecookieDomain */]() : null;\r\n // if sessionExpirationMs is set to 0, it means the expiry is set to 0 for this session cookie\r\n // A cookie with 0 expiry in the session cookie will never expire for that browser session. If the browser is closed the cookie expires.\r\n // Depending on the browser, another instance does not inherit this cookie, however, another tab will\r\n _cookieManager.set(_storageNamePrefix(), cookie.join(\"|\"), config[_DYN_SESSION_EXPIRATION_M7 /* @min:%2esessionExpirationMs */]() > 0 ? maxAgeSec : null, cookieDomain);\r\n _cookieUpdatedTimestamp = nowMs;\r\n }\r\n function _setStorage(guid, acq, renewal) {\r\n // Keep data in local storage to retain the last session id, allowing us to cleanly end the session when it expires\r\n // Browsers that don't support local storage won't be able to end sessions cleanly from the client\r\n // The server will notice this and end the sessions itself, with loss of accurate session duration\r\n utlSetLocalStorage(_logger, _storageNamePrefix(), [guid, acq, renewal][_DYN_JOIN /* @min:%2ejoin */](\"|\"));\r\n }\r\n });\r\n }\r\n// Removed Stub for _SessionManager.prototype.update.\r\n// Removed Stub for _SessionManager.prototype.backup.\r\n _SessionManager.acquisitionSpan = 86400000; // 24 hours in ms\r\n _SessionManager.renewalSpan = 1800000; // 30 minutes in ms\r\n _SessionManager.cookieUpdateInterval = 60000; // 1 minute in ms\r\n return _SessionManager;\r\n}());\r\nexport { _SessionManager };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { dataSanitizeString } from \"@microsoft/applicationinsights-common\";\r\nimport { generateW3CId, getLocation } from \"@microsoft/applicationinsights-core-js\";\r\nvar TelemetryTrace = /** @class */ (function () {\r\n function TelemetryTrace(id, parentId, name, logger) {\r\n var _self = this;\r\n _self.traceID = id || generateW3CId();\r\n _self.parentID = parentId;\r\n var location = getLocation();\r\n if (!name && location && location.pathname) {\r\n name = location.pathname;\r\n }\r\n _self.name = dataSanitizeString(logger, name);\r\n }\r\n return TelemetryTrace;\r\n}());\r\nexport { TelemetryTrace };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { utlRemoveStorage } from \"@microsoft/applicationinsights-common\";\r\nimport { _throwInternal, newId, safeGetCookieMgr, safeGetLogger, toISOString } from \"@microsoft/applicationinsights-core-js\";\r\nimport { _DYN_ACCOUNT_ID, _DYN_AUTHENTICATED_ID, _DYN_AUTH_USER_COOKIE_NAM8, _DYN_CONFIG, _DYN_COOKIE_SEPARATOR, _DYN_GET_NEW_ID, _DYN_ID_LENGTH, _DYN_IS_NEW_USER, _DYN_IS_USER_COOKIE_SET, _DYN_JOIN, _DYN_LENGTH, _DYN_NAME_PREFIX, _DYN_UPDATE, _DYN_USER_COOKIE_POSTFIX } from \"../__DynamicConstants\";\r\nfunction _validateUserInput(id) {\r\n // Validate:\r\n // 1. Id is a non-empty string.\r\n // 2. It does not contain special characters for cookies.\r\n if (typeof id !== \"string\" ||\r\n !id ||\r\n id.match(/,|;|=| |\\|/)) {\r\n return false;\r\n }\r\n return true;\r\n}\r\nvar User = /** @class */ (function () {\r\n function User(config, core) {\r\n /**\r\n * A flag indicating whether this represents a new user\r\n */\r\n this.isNewUser = false;\r\n /**\r\n * A flag indicating whether the user cookie has been set\r\n */\r\n this.isUserCookieSet = false;\r\n var _logger = safeGetLogger(core);\r\n var _cookieManager = safeGetCookieMgr(core);\r\n var _storageNamePrefix;\r\n dynamicProto(User, this, function (_self) {\r\n _self[_DYN_CONFIG /* @min:%2econfig */] = config;\r\n var userCookiePostfix = (_self.config[_DYN_USER_COOKIE_POSTFIX /* @min:%2euserCookiePostfix */] && _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_USER_COOKIE_POSTFIX /* @min:%2euserCookiePostfix */]()) ? _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_USER_COOKIE_POSTFIX /* @min:%2euserCookiePostfix */]() : \"\";\r\n _storageNamePrefix = function () { return User.userCookieName + userCookiePostfix; };\r\n // get userId or create new one if none exists\r\n var cookie = _cookieManager.get(_storageNamePrefix());\r\n if (cookie) {\r\n _self[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;\r\n var params = cookie.split(User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]);\r\n if (params[_DYN_LENGTH /* @min:%2elength */] > 0) {\r\n _self.id = params[0];\r\n // we already have a cookie\r\n _self[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */] = !!_self.id;\r\n }\r\n }\r\n function _generateNewId() {\r\n var theConfig = (config || {});\r\n var getNewId = (theConfig[_DYN_GET_NEW_ID /* @min:%2egetNewId */] ? theConfig[_DYN_GET_NEW_ID /* @min:%2egetNewId */]() : null) || newId;\r\n var id = getNewId(theConfig[_DYN_ID_LENGTH /* @min:%2eidLength */] ? config[_DYN_ID_LENGTH /* @min:%2eidLength */]() : 22);\r\n return id;\r\n }\r\n function _generateNewCookie(userId) {\r\n var acqStr = toISOString(new Date());\r\n _self.accountAcquisitionDate = acqStr;\r\n _self[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = true;\r\n var newCookie = [userId, acqStr];\r\n return newCookie;\r\n }\r\n function _setUserCookie(cookie) {\r\n // without expiration, cookies expire at the end of the session\r\n // set it to 365 days from now\r\n // 365 * 24 * 60 * 60 = 31536000\r\n var oneYear = 31536000;\r\n _self[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */] = _cookieManager.set(_storageNamePrefix(), cookie, oneYear);\r\n }\r\n if (!_self.id) {\r\n _self.id = _generateNewId();\r\n var newCookie = _generateNewCookie(_self.id);\r\n _setUserCookie(newCookie[_DYN_JOIN /* @min:%2ejoin */](User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]));\r\n // If we have an config.namePrefix() + ai_session in local storage this means the user actively removed our cookies.\r\n // We should respect their wishes and clear ourselves from local storage\r\n var name_1 = config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */] && config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() ? config[_DYN_NAME_PREFIX /* @min:%2enamePrefix */]() + \"ai_session\" : \"ai_session\";\r\n utlRemoveStorage(_logger, name_1);\r\n }\r\n // We still take the account id from the ctor param for backward compatibility.\r\n // But if the the customer set the accountId through the newer setAuthenticatedUserContext API, we will override it.\r\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = config[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] ? config[_DYN_ACCOUNT_ID /* @min:%2eaccountId */]() : undefined;\r\n // Get the auth user id and account id from the cookie if exists\r\n // Cookie is in the pattern: <authenticatedId>|<accountId>\r\n var authCookie = _cookieManager.get(User[_DYN_AUTH_USER_COOKIE_NAM8 /* @min:%2eauthUserCookieName */]);\r\n if (authCookie) {\r\n authCookie = decodeURI(authCookie);\r\n var authCookieString = authCookie.split(User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]);\r\n if (authCookieString[0]) {\r\n _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */] = authCookieString[0];\r\n }\r\n if (authCookieString[_DYN_LENGTH /* @min:%2elength */] > 1 && authCookieString[1]) {\r\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = authCookieString[1];\r\n }\r\n }\r\n _self.setAuthenticatedUserContext = function (authenticatedUserId, accountId, storeInCookie) {\r\n if (storeInCookie === void 0) { storeInCookie = false; }\r\n // Validate inputs to ensure no cookie control characters.\r\n var isInvalidInput = !_validateUserInput(authenticatedUserId) || (accountId && !_validateUserInput(accountId));\r\n if (isInvalidInput) {\r\n _throwInternal(_logger, 2 /* eLoggingSeverity.WARNING */, 60 /* _eInternalMessageId.SetAuthContextFailedAccountName */, \"Setting auth user context failed. \" +\r\n \"User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.\", true);\r\n return;\r\n }\r\n // Create cookie string.\r\n _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */] = authenticatedUserId;\r\n var authCookie = _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */];\r\n if (accountId) {\r\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = accountId;\r\n authCookie = [_self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */], _self.accountId][_DYN_JOIN /* @min:%2ejoin */](User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]);\r\n }\r\n if (storeInCookie) {\r\n // Set the cookie. No expiration date because this is a session cookie (expires when browser closed).\r\n // Encoding the cookie to handle unexpected unicode characters.\r\n _cookieManager.set(User[_DYN_AUTH_USER_COOKIE_NAM8 /* @min:%2eauthUserCookieName */], encodeURI(authCookie));\r\n }\r\n };\r\n /**\r\n * Clears the authenticated user id and the account id from the user context.\r\n * @returns {}\r\n */\r\n _self.clearAuthenticatedUserContext = function () {\r\n _self[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */] = null;\r\n _self[_DYN_ACCOUNT_ID /* @min:%2eaccountId */] = null;\r\n _cookieManager.del(User[_DYN_AUTH_USER_COOKIE_NAM8 /* @min:%2eauthUserCookieName */]);\r\n };\r\n _self[_DYN_UPDATE /* @min:%2eupdate */] = function (userId) {\r\n // Optimizations to avoid setting and processing the cookie when not needed\r\n if (_self.id !== userId || !_self[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */]) {\r\n var user_id = userId ? userId : _generateNewId();\r\n var user_cookie = _generateNewCookie(user_id);\r\n _setUserCookie(user_cookie[_DYN_JOIN /* @min:%2ejoin */](User[_DYN_COOKIE_SEPARATOR /* @min:%2ecookieSeparator */]));\r\n }\r\n };\r\n });\r\n }\r\n// Removed Stub for User.prototype.setAuthenticatedUserContext.\r\n// Removed Stub for User.prototype.clearAuthenticatedUserContext.\r\n// Removed Stub for User.prototype.update.\r\n User.cookieSeparator = \"|\";\r\n User.userCookieName = \"ai_user\";\r\n User.authUserCookieName = \"ai_authUser\";\r\n return User;\r\n}());\r\nexport { User };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* TelemetryContext.ts\r\n* @copyright Microsoft 2018\r\n*/\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { CtxTagKeys, Extensions, PageView, dataSanitizeString } from \"@microsoft/applicationinsights-common\";\r\nimport { _InternalLogMessage, getSetValue, hasWindow, isNullOrUndefined, isString, objKeys, setValue } from \"@microsoft/applicationinsights-core-js\";\r\nimport { Application } from \"./Context/Application\";\r\nimport { Device } from \"./Context/Device\";\r\nimport { Internal } from \"./Context/Internal\";\r\nimport { Location } from \"./Context/Location\";\r\nimport { Session, _SessionManager } from \"./Context/Session\";\r\nimport { TelemetryTrace } from \"./Context/TelemetryTrace\";\r\nimport { User } from \"./Context/User\";\r\nimport { _DYN_ACCOUNT_ID, _DYN_APPLY_APPLICATION_CO1, _DYN_APPLY_DEVICE_CONTEXT, _DYN_APPLY_INTERNAL_CONTE5, _DYN_APPLY_LOCATION_CONTE4, _DYN_APPLY_OPERATING_SYST3, _DYN_APPLY_OPERATION_CONT2, _DYN_APPLY_SESSION_CONTEX0, _DYN_APPLY_USER_CONTEXT, _DYN_AUTHENTICATED_ID, _DYN_AUTOMATIC_SESSION, _DYN_GET_SESSION_ID, _DYN_LENGTH, _DYN_SESSION_MANAGER, _DYN_TELEMETRY_TRACE } from \"./__DynamicConstants\";\r\nvar strExt = \"ext\";\r\nvar strTags = \"tags\";\r\nfunction _removeEmpty(target, name) {\r\n if (target && target[name] && objKeys(target[name])[_DYN_LENGTH /* @min:%2elength */] === 0) {\r\n delete target[name];\r\n }\r\n}\r\nvar TelemetryContext = /** @class */ (function () {\r\n function TelemetryContext(core, defaultConfig, previousTraceCtx) {\r\n var _this = this;\r\n var logger = core.logger;\r\n this.appId = function () { return null; };\r\n this[_DYN_GET_SESSION_ID /* @min:%2egetSessionId */] = function () { return null; };\r\n dynamicProto(TelemetryContext, this, function (_self) {\r\n _self.application = new Application();\r\n _self.internal = new Internal(defaultConfig);\r\n if (hasWindow()) {\r\n _self[_DYN_SESSION_MANAGER /* @min:%2esessionManager */] = new _SessionManager(defaultConfig, core);\r\n _self.device = new Device();\r\n _self.location = new Location();\r\n _self.user = new User(defaultConfig, core);\r\n var traceId = void 0;\r\n var parentId = void 0;\r\n var name_1;\r\n if (previousTraceCtx) {\r\n traceId = previousTraceCtx.getTraceId();\r\n parentId = previousTraceCtx.getSpanId();\r\n name_1 = previousTraceCtx.getName();\r\n }\r\n _self[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */] = new TelemetryTrace(traceId, parentId, name_1, logger);\r\n _self.session = new Session();\r\n }\r\n _self[_DYN_GET_SESSION_ID /* @min:%2egetSessionId */] = function () {\r\n var session = _self.session;\r\n var sesId = null;\r\n // If customer set session info, apply their context; otherwise apply context automatically generated\r\n if (session && isString(session.id)) {\r\n sesId = session.id;\r\n }\r\n else {\r\n // Gets the automatic session if it exists or an empty object\r\n var autoSession = (_self[_DYN_SESSION_MANAGER /* @min:%2esessionManager */] || {})[_DYN_AUTOMATIC_SESSION /* @min:%2eautomaticSession */];\r\n sesId = autoSession && isString(autoSession.id) ? autoSession.id : null;\r\n }\r\n return sesId;\r\n };\r\n _self[_DYN_APPLY_SESSION_CONTEX0 /* @min:%2eapplySessionContext */] = function (evt, itemCtx) {\r\n setValue(getSetValue(evt.ext, Extensions.AppExt), \"sesId\", _self[_DYN_GET_SESSION_ID /* @min:%2egetSessionId */](), isString);\r\n };\r\n _self[_DYN_APPLY_OPERATING_SYST3 /* @min:%2eapplyOperatingSystemContxt */] = function (evt, itemCtx) {\r\n setValue(evt.ext, Extensions.OSExt, _self.os);\r\n };\r\n _self[_DYN_APPLY_APPLICATION_CO1 /* @min:%2eapplyApplicationContext */] = function (evt, itemCtx) {\r\n var application = _self.application;\r\n if (application) {\r\n // evt.ext.app\r\n var tags = getSetValue(evt, strTags);\r\n setValue(tags, CtxTagKeys.applicationVersion, application.ver, isString);\r\n setValue(tags, CtxTagKeys.applicationBuild, application.build, isString);\r\n }\r\n };\r\n _self[_DYN_APPLY_DEVICE_CONTEXT /* @min:%2eapplyDeviceContext */] = function (evt, itemCtx) {\r\n var device = _self.device;\r\n if (device) {\r\n // evt.ext.device\r\n var extDevice = getSetValue(getSetValue(evt, strExt), Extensions.DeviceExt);\r\n setValue(extDevice, \"localId\", device.id, isString);\r\n setValue(extDevice, \"ip\", device.ip, isString);\r\n setValue(extDevice, \"model\", device.model, isString);\r\n setValue(extDevice, \"deviceClass\", device.deviceClass, isString);\r\n }\r\n };\r\n _self[_DYN_APPLY_INTERNAL_CONTE5 /* @min:%2eapplyInternalContext */] = function (evt, itemCtx) {\r\n var internal = _self.internal;\r\n if (internal) {\r\n var tags = getSetValue(evt, strTags);\r\n setValue(tags, CtxTagKeys.internalAgentVersion, internal.agentVersion, isString); // not mapped in CS 4.0\r\n setValue(tags, CtxTagKeys.internalSdkVersion, dataSanitizeString(logger, internal.sdkVersion, 64), isString);\r\n if (evt.baseType === _InternalLogMessage.dataType || evt.baseType === PageView.dataType) {\r\n setValue(tags, CtxTagKeys.internalSnippet, internal.snippetVer, isString);\r\n setValue(tags, CtxTagKeys.internalSdkSrc, internal.sdkSrc, isString);\r\n }\r\n }\r\n };\r\n _self[_DYN_APPLY_LOCATION_CONTE4 /* @min:%2eapplyLocationContext */] = function (evt, itemCtx) {\r\n var location = _this.location;\r\n if (location) {\r\n setValue(getSetValue(evt, strTags, []), CtxTagKeys.locationIp, location.ip, isString);\r\n }\r\n };\r\n _self[_DYN_APPLY_OPERATION_CONT2 /* @min:%2eapplyOperationContext */] = function (evt, itemCtx) {\r\n var telemetryTrace = _self[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */];\r\n if (telemetryTrace) {\r\n var extTrace = getSetValue(getSetValue(evt, strExt), Extensions.TraceExt, { traceID: undefined, parentID: undefined });\r\n setValue(extTrace, \"traceID\", telemetryTrace.traceID, isString, isNullOrUndefined);\r\n setValue(extTrace, \"name\", telemetryTrace.name, isString, isNullOrUndefined);\r\n setValue(extTrace, \"parentID\", telemetryTrace.parentID, isString, isNullOrUndefined);\r\n }\r\n };\r\n _self.applyWebContext = function (evt, itemCtx) {\r\n var web = _this.web;\r\n if (web) {\r\n setValue(getSetValue(evt, strExt), Extensions.WebExt, web);\r\n }\r\n };\r\n _self[_DYN_APPLY_USER_CONTEXT /* @min:%2eapplyUserContext */] = function (evt, itemCtx) {\r\n var user = _self.user;\r\n if (user) {\r\n var tags = getSetValue(evt, strTags, []);\r\n // stays in tags\r\n setValue(tags, CtxTagKeys.userAccountId, user[_DYN_ACCOUNT_ID /* @min:%2eaccountId */], isString);\r\n // CS 4.0\r\n var extUser = getSetValue(getSetValue(evt, strExt), Extensions.UserExt);\r\n setValue(extUser, \"id\", user.id, isString);\r\n setValue(extUser, \"authId\", user[_DYN_AUTHENTICATED_ID /* @min:%2eauthenticatedId */], isString);\r\n }\r\n };\r\n _self.cleanUp = function (evt, itemCtx) {\r\n var ext = evt.ext;\r\n if (ext) {\r\n _removeEmpty(ext, Extensions.DeviceExt);\r\n _removeEmpty(ext, Extensions.UserExt);\r\n _removeEmpty(ext, Extensions.WebExt);\r\n _removeEmpty(ext, Extensions.OSExt);\r\n _removeEmpty(ext, Extensions.AppExt);\r\n _removeEmpty(ext, Extensions.TraceExt);\r\n }\r\n };\r\n });\r\n }\r\n// Removed Stub for TelemetryContext.prototype.applySessionContext.\r\n// Removed Stub for TelemetryContext.prototype.applyOperatingSystemContxt.\r\n// Removed Stub for TelemetryContext.prototype.applyApplicationContext.\r\n// Removed Stub for TelemetryContext.prototype.applyDeviceContext.\r\n// Removed Stub for TelemetryContext.prototype.applyInternalContext.\r\n// Removed Stub for TelemetryContext.prototype.applyLocationContext.\r\n// Removed Stub for TelemetryContext.prototype.applyOperationContext.\r\n// Removed Stub for TelemetryContext.prototype.applyWebContext.\r\n// Removed Stub for TelemetryContext.prototype.applyUserContext.\r\n// Removed Stub for TelemetryContext.prototype.cleanUp.\r\n // This is a workaround for an IE8 bug when using dynamicProto() with classes that don't have any\n // non-dynamic functions or static properties/functions when using uglify-js to minify the resulting code.\n // this will be removed when ES3 support is dropped.\n TelemetryContext.__ieDyn=1;\n\n return TelemetryContext;\r\n}());\r\nexport { TelemetryContext };\r\n","/*\n * Application Insights JavaScript SDK - Properties Plugin, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n/**\r\n* PropertiesPlugin.ts\r\n* @copyright Microsoft 2018\r\n*/\r\nimport { __extendsFn as __extends } from \"@microsoft/applicationinsights-shims\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { BreezeChannelIdentifier, PageView, PropertiesPluginIdentifier, createDistributedTraceContextFromTrace, utlSetStoragePrefix } from \"@microsoft/applicationinsights-common\";\r\nimport { BaseTelemetryPlugin, _InternalLogMessage, _logInternalMessage, createProcessTelemetryContext, getNavigator, getSetValue, isNullOrUndefined, objForEachKey } from \"@microsoft/applicationinsights-core-js\";\r\nimport { TelemetryContext } from \"./TelemetryContext\";\r\nimport { _DYN_ACCOUNT_ID, _DYN_APPLY_APPLICATION_CO1, _DYN_APPLY_DEVICE_CONTEXT, _DYN_APPLY_INTERNAL_CONTE5, _DYN_APPLY_LOCATION_CONTE4, _DYN_APPLY_OPERATING_SYST3, _DYN_APPLY_OPERATION_CONT2, _DYN_APPLY_SESSION_CONTEX0, _DYN_APPLY_USER_CONTEXT, _DYN_COOKIE_DOMAIN, _DYN_GET_NEW_ID, _DYN_GET_SESSION_ID, _DYN_GET_TRACE_CTX, _DYN_ID_LENGTH, _DYN_IS_NEW_USER, _DYN_IS_USER_COOKIE_SET, _DYN_NAME_PREFIX, _DYN_SDK_EXTENSION, _DYN_SESSION_COOKIE_POSTF6, _DYN_SESSION_MANAGER, _DYN_TELEMETRY_TRACE, _DYN_UPDATE, _DYN_USER_COOKIE_POSTFIX } from \"./__DynamicConstants\";\r\nvar PropertiesPlugin = /** @class */ (function (_super) {\r\n __extends(PropertiesPlugin, _super);\r\n function PropertiesPlugin() {\r\n var _this = _super.call(this) || this;\r\n _this.priority = 110;\r\n _this.identifier = PropertiesPluginIdentifier;\r\n var _extensionConfig;\r\n var _distributedTraceCtx;\r\n var _previousTraceCtx;\r\n dynamicProto(PropertiesPlugin, _this, function (_self, _base) {\r\n _initDefaults();\r\n _self.initialize = function (config, core, extensions, pluginChain) {\r\n _base.initialize(config, core, extensions, pluginChain);\r\n _populateDefaults(config);\r\n };\r\n /**\r\n * Add Part A fields to the event\r\n * @param event The event that needs to be processed\r\n */\r\n _self.processTelemetry = function (event, itemCtx) {\r\n if (isNullOrUndefined(event)) {\r\n // TODO(barustum): throw an internal event once we have support for internal logging\r\n }\r\n else {\r\n itemCtx = _self._getTelCtx(itemCtx);\r\n // If the envelope is PageView, reset the internal message count so that we can send internal telemetry for the new page.\r\n if (event.name === PageView.envelopeType) {\r\n itemCtx.diagLog().resetInternalMessageCount();\r\n }\r\n var theContext = (_self.context || {});\r\n if (theContext.session) {\r\n // If customer did not provide custom session id update the session manager\r\n if (typeof _self.context.session.id !== \"string\" && theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */]) {\r\n theContext[_DYN_SESSION_MANAGER /* @min:%2esessionManager */][_DYN_UPDATE /* @min:%2eupdate */]();\r\n }\r\n }\r\n var userCtx = theContext.user;\r\n if (userCtx && !userCtx[_DYN_IS_USER_COOKIE_SET /* @min:%2eisUserCookieSet */]) {\r\n userCtx[_DYN_UPDATE /* @min:%2eupdate */](theContext.user.id);\r\n }\r\n _processTelemetryInternal(event, itemCtx);\r\n if (userCtx && userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */]) {\r\n userCtx[_DYN_IS_NEW_USER /* @min:%2eisNewUser */] = false;\r\n var message = new _InternalLogMessage(72 /* _eInternalMessageId.SendBrowserInfoOnUserInit */, ((getNavigator() || {}).userAgent || \"\"));\r\n _logInternalMessage(itemCtx.diagLog(), 1 /* eLoggingSeverity.CRITICAL */, message);\r\n }\r\n _self.processNext(event, itemCtx);\r\n }\r\n };\r\n _self._doTeardown = function (unloadCtx, unloadState) {\r\n var core = (unloadCtx || {}).core();\r\n if (core && core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */]) {\r\n var traceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\r\n if (traceCtx === _distributedTraceCtx) {\r\n core.setTraceCtx(_previousTraceCtx);\r\n }\r\n }\r\n _initDefaults();\r\n };\r\n function _initDefaults() {\r\n _extensionConfig = null;\r\n _distributedTraceCtx = null;\r\n _previousTraceCtx = null;\r\n }\r\n function _populateDefaults(config) {\r\n var identifier = _self.identifier;\r\n var core = _self.core;\r\n var ctx = createProcessTelemetryContext(null, config, core);\r\n var defaultConfig = PropertiesPlugin.getDefaultConfig();\r\n _extensionConfig = _extensionConfig || {};\r\n objForEachKey(defaultConfig, function (field, value) {\r\n _extensionConfig[field] = function () { return ctx.getConfig(identifier, field, value()); };\r\n });\r\n if (config.storagePrefix) {\r\n utlSetStoragePrefix(config.storagePrefix);\r\n }\r\n _previousTraceCtx = core[_DYN_GET_TRACE_CTX /* @min:%2egetTraceCtx */](false);\r\n _self.context = new TelemetryContext(core, _extensionConfig, _previousTraceCtx);\r\n _distributedTraceCtx = createDistributedTraceContextFromTrace(_self.context[_DYN_TELEMETRY_TRACE /* @min:%2etelemetryTrace */], _previousTraceCtx);\r\n core.setTraceCtx(_distributedTraceCtx);\r\n _self.context.appId = function () {\r\n var breezeChannel = core.getPlugin(BreezeChannelIdentifier);\r\n return breezeChannel ? breezeChannel.plugin[\"_appId\"] : null;\r\n };\r\n // Test hook to allow accessing the internal values -- explicitly not defined as an available property on the class\r\n _self[\"_extConfig\"] = _extensionConfig;\r\n }\r\n function _processTelemetryInternal(evt, itemCtx) {\r\n // Set Part A fields\r\n getSetValue(evt, \"tags\", []);\r\n getSetValue(evt, \"ext\", {});\r\n var ctx = _self.context;\r\n ctx[_DYN_APPLY_SESSION_CONTEX0 /* @min:%2eapplySessionContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_APPLICATION_CO1 /* @min:%2eapplyApplicationContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_DEVICE_CONTEXT /* @min:%2eapplyDeviceContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_OPERATION_CONT2 /* @min:%2eapplyOperationContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_USER_CONTEXT /* @min:%2eapplyUserContext */](evt, itemCtx);\r\n ctx[_DYN_APPLY_OPERATING_SYST3 /* @min:%2eapplyOperatingSystemContxt */](evt, itemCtx);\r\n ctx.applyWebContext(evt, itemCtx);\r\n ctx[_DYN_APPLY_LOCATION_CONTE4 /* @min:%2eapplyLocationContext */](evt, itemCtx); // legacy tags\r\n ctx[_DYN_APPLY_INTERNAL_CONTE5 /* @min:%2eapplyInternalContext */](evt, itemCtx); // legacy tags\r\n ctx.cleanUp(evt, itemCtx);\r\n }\r\n });\r\n return _this;\r\n }\r\n PropertiesPlugin.getDefaultConfig = function () {\r\n var _a;\r\n var defaultValue;\r\n var nullValue = null;\r\n var defaultConfig = (_a = {\r\n instrumentationKey: function () { return defaultValue; }\r\n },\r\n _a[_DYN_ACCOUNT_ID /* @min:accountId */] = function () { return nullValue; },\r\n _a.sessionRenewalMs = function () { return 30 * 60 * 1000; },\r\n _a.samplingPercentage = function () { return 100; },\r\n _a.sessionExpirationMs = function () { return 24 * 60 * 60 * 1000; },\r\n _a[_DYN_COOKIE_DOMAIN /* @min:cookieDomain */] = function () { return nullValue; },\r\n _a[_DYN_SDK_EXTENSION /* @min:sdkExtension */] = function () { return nullValue; },\r\n _a.isBrowserLinkTrackingEnabled = function () { return false; },\r\n _a.appId = function () { return nullValue; },\r\n _a[_DYN_GET_SESSION_ID /* @min:getSessionId */] = function () { return nullValue; },\r\n _a[_DYN_NAME_PREFIX /* @min:namePrefix */] = function () { return defaultValue; },\r\n _a[_DYN_SESSION_COOKIE_POSTF6 /* @min:sessionCookiePostfix */] = function () { return defaultValue; },\r\n _a[_DYN_USER_COOKIE_POSTFIX /* @min:userCookiePostfix */] = function () { return defaultValue; },\r\n _a[_DYN_ID_LENGTH /* @min:idLength */] = function () { return 22; },\r\n _a[_DYN_GET_NEW_ID /* @min:getNewId */] = function () { return nullValue; },\r\n _a);\r\n return defaultConfig;\r\n };\r\n// Removed Stub for PropertiesPlugin.prototype.initialize.\r\n// Removed Stub for PropertiesPlugin.prototype.processTelemetry.\r\n return PropertiesPlugin;\r\n}(BaseTelemetryPlugin));\r\nexport default PropertiesPlugin;\r\n","/*\n * Application Insights JavaScript SDK - Web, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\r\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\r\nvar _AUTHENTICATED_USER_CONTEXT = \"AuthenticatedUserContext\";\r\nvar _TRACK = \"track\";\r\nexport var STR_EMPTY = \"\";\r\nexport var STR_SNIPPET = \"snippet\";\r\nexport var STR_GET_COOKIE_MGR = \"getCookieMgr\";\r\nexport var STR_START_TRACK_PAGE = \"startTrackPage\";\r\nexport var STR_STOP_TRACK_PAGE = \"stopTrackPage\";\r\nexport var STR_FLUSH = \"flush\";\r\nexport var STR_START_TRACK_EVENT = \"startTrackEvent\";\r\nexport var STR_STOP_TRACK_EVENT = \"stopTrackEvent\";\r\nexport var STR_ADD_TELEMETRY_INITIALIZER = \"addTelemetryInitializer\";\r\nexport var STR_ADD_TELEMETRY_INITIALIZERS = STR_ADD_TELEMETRY_INITIALIZER + \"s\";\r\nexport var STR_POLL_INTERNAL_LOGS = \"pollInternalLogs\";\r\nexport var STR_GET_PLUGIN = \"getPlugin\";\r\nexport var STR_EVT_NAMESPACE = \"evtNamespace\";\r\nexport var STR_TRACK_EVENT = _TRACK + \"Event\";\r\nexport var STR_TRACK_TRACE = _TRACK + \"Trace\";\r\nexport var STR_TRACK_METRIC = _TRACK + \"Metric\";\r\nexport var STR_TRACK_PAGE_VIEW = _TRACK + \"PageView\";\r\nexport var STR_TRACK_EXCEPTION = _TRACK + \"Exception\";\r\nexport var STR_TRACK_DEPENDENCY_DATA = _TRACK + \"DependencyData\";\r\nexport var STR_SET_AUTHENTICATED_USER_CONTEXT = \"set\" + _AUTHENTICATED_USER_CONTEXT;\r\nexport var STR_CLEAR_AUTHENTICATED_USER_CONTEXT = \"clear\" + _AUTHENTICATED_USER_CONTEXT;\r\n","/*\n * Application Insights JavaScript SDK - Web, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n\"use strict\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { AnalyticsPlugin } from \"@microsoft/applicationinsights-analytics-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { AnalyticsPluginIdentifier, BreezeChannelIdentifier, ConfigurationManager, ConnectionStringParser, ContextTagKeys, CorrelationIdHelper, CtxTagKeys, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, Data, DataSanitizer, DateTimeUtils, DisabledPropertyName, DistributedTracingModes, Envelope, Event, Exception, Extensions, HttpMethod, Metric, PageView, PageViewPerformance, ProcessLegacy, PropertiesPluginIdentifier, RemoteDependencyData, RequestHeaders, SampleRate, SeverityLevel, TelemetryItemCreator, Trace, UrlHelper, Util, parseConnectionString } from \"@microsoft/applicationinsights-common\";\r\nimport { AppInsightsCore, _throwInternal, addPageHideEventListener, addPageUnloadEventListener, arrForEach, arrIndexOf, createUniqueNamespace, doPerf, hasDocument, hasWindow, isArray, isFunction, isNullOrUndefined, isReactNative, isString, mergeEvtNamespace, objForEachKey, proxyAssign, proxyFunctions, removePageHideEventListener, removePageUnloadEventListener, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { AjaxPlugin as DependenciesPlugin } from \"@microsoft/applicationinsights-dependencies-js\";\r\nimport { PropertiesPlugin } from \"@microsoft/applicationinsights-properties-js\";\r\nimport { STR_ADD_TELEMETRY_INITIALIZER, STR_CLEAR_AUTHENTICATED_USER_CONTEXT, STR_EVT_NAMESPACE, STR_FLUSH, STR_GET_COOKIE_MGR, STR_GET_PLUGIN, STR_POLL_INTERNAL_LOGS, STR_SET_AUTHENTICATED_USER_CONTEXT, STR_SNIPPET, STR_START_TRACK_EVENT, STR_START_TRACK_PAGE, STR_STOP_TRACK_EVENT, STR_STOP_TRACK_PAGE, STR_TRACK_DEPENDENCY_DATA, STR_TRACK_EVENT, STR_TRACK_EXCEPTION, STR_TRACK_METRIC, STR_TRACK_PAGE_VIEW, STR_TRACK_TRACE } from \"./InternalConstants\";\r\nimport { _DYN_ADD_HOUSEKEEPING_BEF20, _DYN_APP_INSIGHTS, _DYN_CONFIG, _DYN_CONNECTION_STRING, _DYN_CONTEXT, _DYN_DIAGNOSTIC_LOG_INTER4, _DYN_DISABLE_FLUSH_ON_BEF11, _DYN_DISABLE_FLUSH_ON_UNL12, _DYN_DISABLE_IKEY_DEPRECA18, _DYN_ENDPOINT_URL, _DYN_GET_TRANSMISSION_CON19, _DYN_INDEX_OF, _DYN_INSTRUMENTATION_KEY, _DYN_LOAD_APP_INSIGHTS, _DYN_ONUNLOAD_FLUSH, _DYN_PUSH, _DYN_QUEUE, _DYN_UPDATE_SNIPPET_DEFIN0, _DYN_VERSION } from \"./__DynamicConstants\";\r\nvar _internalSdkSrc;\r\n// This is an exclude list of properties that should not be updated during initialization\r\n// They include a combination of private and internal property names\r\nvar _ignoreUpdateSnippetProperties = [\r\n STR_SNIPPET, \"dependencies\", \"properties\", \"_snippetVersion\", \"appInsightsNew\", \"getSKUDefaults\"\r\n];\r\n// Re-exposing the Common classes as Telemetry, the list was taken by reviewing the generated code for the build while using\r\n// the previous configuration :-\r\n// import * as Common from \"@microsoft/applicationinsights-common\"\r\n// export const Telemetry = Common;\r\nvar fieldType = {\r\n Default: 0 /* FieldType.Default */,\r\n Required: 1 /* FieldType.Required */,\r\n Array: 2 /* FieldType.Array */,\r\n Hidden: 4 /* FieldType.Hidden */\r\n};\r\n/**\r\n * Telemetry type classes, e.g. PageView, Exception, etc\r\n */\r\nexport var Telemetry = {\r\n __proto__: null,\r\n PropertiesPluginIdentifier: PropertiesPluginIdentifier,\r\n BreezeChannelIdentifier: BreezeChannelIdentifier,\r\n AnalyticsPluginIdentifier: AnalyticsPluginIdentifier,\r\n Util: Util,\r\n CorrelationIdHelper: CorrelationIdHelper,\r\n UrlHelper: UrlHelper,\r\n DateTimeUtils: DateTimeUtils,\r\n ConnectionStringParser: ConnectionStringParser,\r\n FieldType: fieldType,\r\n RequestHeaders: RequestHeaders,\r\n DisabledPropertyName: DisabledPropertyName,\r\n ProcessLegacy: ProcessLegacy,\r\n SampleRate: SampleRate,\r\n HttpMethod: HttpMethod,\r\n DEFAULT_BREEZE_ENDPOINT: DEFAULT_BREEZE_ENDPOINT,\r\n Envelope: Envelope,\r\n Event: Event,\r\n Exception: Exception,\r\n Metric: Metric,\r\n PageView: PageView,\r\n RemoteDependencyData: RemoteDependencyData,\r\n Trace: Trace,\r\n PageViewPerformance: PageViewPerformance,\r\n Data: Data,\r\n SeverityLevel: SeverityLevel,\r\n ConfigurationManager: ConfigurationManager,\r\n ContextTagKeys: ContextTagKeys,\r\n DataSanitizer: DataSanitizer,\r\n TelemetryItemCreator: TelemetryItemCreator,\r\n CtxTagKeys: CtxTagKeys,\r\n Extensions: Extensions,\r\n DistributedTracingModes: DistributedTracingModes\r\n};\r\n/**\r\n * Application Insights API\r\n * @class Initialization\r\n * @implements {IApplicationInsights}\r\n */\r\nvar Initialization = /** @class */ (function () {\r\n function Initialization(snippet) {\r\n var _this = this;\r\n // NOTE!: DON'T set default values here, instead set them in the _initDefaults() function as it is also called during teardown()\r\n var dependencies;\r\n var properties;\r\n var _sender;\r\n var _snippetVersion;\r\n var _evtNamespace;\r\n var _houseKeepingNamespace;\r\n var _core;\r\n dynamicProto(Initialization, this, function (_self) {\r\n _initDefaults();\r\n // initialize the queue and config in case they are undefined\r\n _snippetVersion = \"\" + (snippet.sv || snippet[_DYN_VERSION /* @min:%2eversion */] || \"\");\r\n snippet[_DYN_QUEUE /* @min:%2equeue */] = snippet[_DYN_QUEUE /* @min:%2equeue */] || [];\r\n snippet[_DYN_VERSION /* @min:%2eversion */] = snippet[_DYN_VERSION /* @min:%2eversion */] || 2.0; // Default to new version\r\n var config = snippet[_DYN_CONFIG /* @min:%2econfig */] || {};\r\n if (config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]) {\r\n var cs = parseConnectionString(config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]);\r\n var ingest = cs.ingestionendpoint;\r\n config[_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */] = ingest ? (ingest + DEFAULT_BREEZE_PATH) : config[_DYN_ENDPOINT_URL /* @min:%2eendpointUrl */]; // only add /v2/track when from connectionstring\r\n config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */] = cs.instrumentationkey || config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */];\r\n }\r\n _self[_DYN_APP_INSIGHTS /* @min:%2eappInsights */] = new AnalyticsPlugin();\r\n properties = new PropertiesPlugin();\r\n dependencies = new DependenciesPlugin();\r\n _sender = new Sender();\r\n _core = new AppInsightsCore();\r\n _self.core = _core;\r\n var isErrMessageDisabled = isNullOrUndefined(config[_DYN_DISABLE_IKEY_DEPRECA18 /* @min:%2edisableIkeyDeprecationMessage */]) ? true : config[_DYN_DISABLE_IKEY_DEPRECA18 /* @min:%2edisableIkeyDeprecationMessage */];\r\n if (!config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */] && !isErrMessageDisabled) {\r\n _throwInternal(_core.logger, 1 /* eLoggingSeverity.CRITICAL */, 106 /* _eInternalMessageId.InstrumentationKeyDeprecation */, \"Instrumentation key support will end soon, see aka.ms/IkeyMigrate\");\r\n }\r\n _self[STR_SNIPPET /* @min:%2esnippet */] = snippet;\r\n _self[_DYN_CONFIG /* @min:%2econfig */] = config;\r\n _getSKUDefaults();\r\n _self[STR_FLUSH /* @min:%2eflush */] = function (async) {\r\n if (async === void 0) { async = true; }\r\n doPerf(_core, function () { return \"AISKU.flush\"; }, function () {\r\n arrForEach(_core[_DYN_GET_TRANSMISSION_CON19 /* @min:%2egetTransmissionControls */](), function (channels) {\r\n arrForEach(channels, function (channel) {\r\n channel[STR_FLUSH /* @min:%2eflush */](async);\r\n });\r\n });\r\n }, null, async);\r\n };\r\n _self[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */] = function (async) {\r\n if (async === void 0) { async = true; }\r\n arrForEach(_core[_DYN_GET_TRANSMISSION_CON19 /* @min:%2egetTransmissionControls */](), function (channels) {\r\n arrForEach(channels, function (channel) {\r\n if (channel[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */]) {\r\n channel[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */]();\r\n }\r\n else {\r\n channel[STR_FLUSH /* @min:%2eflush */](async);\r\n }\r\n });\r\n });\r\n };\r\n _self[_DYN_LOAD_APP_INSIGHTS /* @min:%2eloadAppInsights */] = function (legacyMode, logger, notificationManager) {\r\n if (legacyMode === void 0) { legacyMode = false; }\r\n function _updateSnippetProperties(snippet) {\r\n if (snippet) {\r\n var snippetVer = \"\";\r\n if (!isNullOrUndefined(_snippetVersion)) {\r\n snippetVer += _snippetVersion;\r\n }\r\n if (legacyMode) {\r\n snippetVer += \".lg\";\r\n }\r\n if (_self[_DYN_CONTEXT /* @min:%2econtext */] && _self[_DYN_CONTEXT /* @min:%2econtext */].internal) {\r\n _self[_DYN_CONTEXT /* @min:%2econtext */].internal.snippetVer = snippetVer || \"-\";\r\n }\r\n // apply updated properties to the global instance (snippet)\r\n objForEachKey(_self, function (field, value) {\r\n if (isString(field) &&\r\n !isFunction(value) &&\r\n field && field[0] !== \"_\" && // Don't copy \"internal\" values\r\n arrIndexOf(_ignoreUpdateSnippetProperties, field) === -1) {\r\n snippet[field] = value;\r\n }\r\n });\r\n }\r\n }\r\n // dont allow additional channels/other extensions for legacy mode; legacy mode is only to allow users to switch with no code changes!\r\n if (legacyMode && _self[_DYN_CONFIG /* @min:%2econfig */].extensions && _self[_DYN_CONFIG /* @min:%2econfig */].extensions.length > 0) {\r\n throwError(\"Extensions not allowed in legacy mode\");\r\n }\r\n doPerf(_self.core, function () { return \"AISKU.loadAppInsights\"; }, function () {\r\n var extensions = [];\r\n extensions[_DYN_PUSH /* @min:%2epush */](_sender);\r\n extensions[_DYN_PUSH /* @min:%2epush */](properties);\r\n extensions[_DYN_PUSH /* @min:%2epush */](dependencies);\r\n extensions[_DYN_PUSH /* @min:%2epush */](_self[_DYN_APP_INSIGHTS /* @min:%2eappInsights */]);\r\n // initialize core\r\n _core.initialize(_self[_DYN_CONFIG /* @min:%2econfig */], extensions, logger, notificationManager);\r\n _self[_DYN_CONTEXT /* @min:%2econtext */] = properties[_DYN_CONTEXT /* @min:%2econtext */];\r\n if (_internalSdkSrc && _self[_DYN_CONTEXT /* @min:%2econtext */]) {\r\n _self[_DYN_CONTEXT /* @min:%2econtext */].internal.sdkSrc = _internalSdkSrc;\r\n }\r\n _updateSnippetProperties(_self[STR_SNIPPET /* @min:%2esnippet */]);\r\n // Empty queue of all api calls logged prior to sdk download\r\n _self.emptyQueue();\r\n _self[STR_POLL_INTERNAL_LOGS /* @min:%2epollInternalLogs */]();\r\n _self[_DYN_ADD_HOUSEKEEPING_BEF20 /* @min:%2eaddHousekeepingBeforeUnload */](_self);\r\n });\r\n return _self;\r\n };\r\n _self[_DYN_UPDATE_SNIPPET_DEFIN0 /* @min:%2eupdateSnippetDefinitions */] = function (snippet) {\r\n // apply full appInsights to the global instance\r\n // Note: This must be called before loadAppInsights is called\r\n proxyAssign(snippet, _self, function (name) {\r\n // Not excluding names prefixed with \"_\" as we need to proxy some functions like _onError\r\n return name && arrIndexOf(_ignoreUpdateSnippetProperties, name) === -1;\r\n });\r\n };\r\n _self.emptyQueue = function () {\r\n // call functions that were queued before the main script was loaded\r\n try {\r\n if (isArray(_self.snippet[_DYN_QUEUE /* @min:%2equeue */])) {\r\n // note: do not check length in the for-loop conditional in case something goes wrong and the stub methods are not overridden.\r\n var length_1 = _self.snippet[_DYN_QUEUE /* @min:%2equeue */].length;\r\n for (var i = 0; i < length_1; i++) {\r\n var call = _self.snippet[_DYN_QUEUE /* @min:%2equeue */][i];\r\n call();\r\n }\r\n _self.snippet[_DYN_QUEUE /* @min:%2equeue */] = undefined;\r\n delete _self.snippet[_DYN_QUEUE /* @min:%2equeue */];\r\n }\r\n }\r\n catch (exception) {\r\n var properties_1 = {};\r\n if (exception && isFunction(exception.toString)) {\r\n properties_1.exception = exception.toString();\r\n }\r\n // need from core\r\n // Microsoft.ApplicationInsights._InternalLogging.throwInternal(\r\n // eLoggingSeverity.WARNING,\r\n // _eInternalMessageId.FailedToSendQueuedTelemetry,\r\n // \"Failed to send queued telemetry\",\r\n // properties);\r\n }\r\n };\r\n _self[_DYN_ADD_HOUSEKEEPING_BEF20 /* @min:%2eaddHousekeepingBeforeUnload */] = function (appInsightsInstance) {\r\n // Add callback to push events when the user navigates away\r\n if (hasWindow() || hasDocument()) {\r\n var performHousekeeping = function () {\r\n // Adds the ability to flush all data before the page unloads.\r\n // Note: This approach tries to push a sync request with all the pending events onbeforeunload.\r\n // Firefox does not respect this.Other browsers DO push out the call with < 100% hit rate.\r\n // Telemetry here will help us analyze how effective this approach is.\r\n // Another approach would be to make this call sync with a acceptable timeout to reduce the\r\n // impact on user experience.\r\n // appInsightsInstance.context._sender.triggerSend();\r\n appInsightsInstance[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */](false);\r\n // Back up the current session to local storage\r\n // This lets us close expired sessions after the cookies themselves expire\r\n if (isFunction(_this.core[STR_GET_PLUGIN /* @min:%2egetPlugin */])) {\r\n var loadedPlugin = _this.core[STR_GET_PLUGIN /* @min:%2egetPlugin */](PropertiesPluginIdentifier);\r\n if (loadedPlugin) {\r\n var propertiesPlugin = loadedPlugin.plugin;\r\n if (propertiesPlugin && propertiesPlugin[_DYN_CONTEXT /* @min:%2econtext */] && propertiesPlugin[_DYN_CONTEXT /* @min:%2econtext */]._sessionManager) {\r\n propertiesPlugin[_DYN_CONTEXT /* @min:%2econtext */]._sessionManager.backup();\r\n }\r\n }\r\n }\r\n };\r\n var added = false;\r\n var excludePageUnloadEvents = appInsightsInstance.appInsights[_DYN_CONFIG /* @min:%2econfig */].disablePageUnloadEvents;\r\n if (!_houseKeepingNamespace) {\r\n _houseKeepingNamespace = mergeEvtNamespace(_evtNamespace, _core[STR_EVT_NAMESPACE /* @min:%2eevtNamespace */] && _core[STR_EVT_NAMESPACE /* @min:%2eevtNamespace */]());\r\n }\r\n if (!appInsightsInstance.appInsights.config[_DYN_DISABLE_FLUSH_ON_BEF11 /* @min:%2edisableFlushOnBeforeUnload */]) {\r\n // Hook the unload event for the document, window and body to ensure that the client events are flushed to the server\r\n // As just hooking the window does not always fire (on chrome) for page navigation's.\r\n if (addPageUnloadEventListener(performHousekeeping, excludePageUnloadEvents, _houseKeepingNamespace)) {\r\n added = true;\r\n }\r\n // We also need to hook the pagehide and visibilitychange events as not all versions of Safari support load/unload events.\r\n if (addPageHideEventListener(performHousekeeping, excludePageUnloadEvents, _houseKeepingNamespace)) {\r\n added = true;\r\n }\r\n // A reactNative app may not have a window and therefore the beforeunload/pagehide events -- so don't\r\n // log the failure in this case\r\n if (!added && !isReactNative()) {\r\n _throwInternal(appInsightsInstance[_DYN_APP_INSIGHTS /* @min:%2eappInsights */].core.logger, 1 /* eLoggingSeverity.CRITICAL */, 19 /* _eInternalMessageId.FailedToAddHandlerForOnBeforeUnload */, \"Could not add handler for beforeunload and pagehide\");\r\n }\r\n }\r\n if (!added && !appInsightsInstance.appInsights.config[_DYN_DISABLE_FLUSH_ON_UNL12 /* @min:%2edisableFlushOnUnload */]) {\r\n // If we didn't add the normal set then attempt to add the pagehide and visibilitychange only\r\n addPageHideEventListener(performHousekeeping, excludePageUnloadEvents, _houseKeepingNamespace);\r\n }\r\n }\r\n };\r\n _self.getSender = function () {\r\n return _sender;\r\n };\r\n _self.unload = function (isAsync, unloadComplete, cbTimeout) {\r\n _self[_DYN_ONUNLOAD_FLUSH /* @min:%2eonunloadFlush */](isAsync);\r\n // Remove any registered event handlers\r\n if (_houseKeepingNamespace) {\r\n removePageUnloadEventListener(null, _houseKeepingNamespace);\r\n removePageHideEventListener(null, _houseKeepingNamespace);\r\n }\r\n _core.unload && _core.unload(isAsync, unloadComplete, cbTimeout);\r\n };\r\n proxyFunctions(_self, _self[_DYN_APP_INSIGHTS /* @min:%2eappInsights */], [\r\n STR_GET_COOKIE_MGR,\r\n STR_TRACK_EVENT,\r\n STR_TRACK_PAGE_VIEW,\r\n \"trackPageViewPerformance\",\r\n STR_TRACK_EXCEPTION,\r\n \"_onerror\",\r\n STR_TRACK_TRACE,\r\n STR_TRACK_METRIC,\r\n STR_START_TRACK_PAGE,\r\n STR_STOP_TRACK_PAGE,\r\n STR_START_TRACK_EVENT,\r\n STR_STOP_TRACK_EVENT\r\n ]);\r\n proxyFunctions(_self, _getCurrentDependencies, [\r\n STR_TRACK_DEPENDENCY_DATA,\r\n \"addDependencyListener\",\r\n \"addDependencyInitializer\"\r\n ]);\r\n proxyFunctions(_self, _core, [\r\n STR_ADD_TELEMETRY_INITIALIZER,\r\n STR_POLL_INTERNAL_LOGS,\r\n \"stopPollingInternalLogs\",\r\n STR_GET_PLUGIN,\r\n \"addPlugin\",\r\n STR_EVT_NAMESPACE,\r\n \"addUnloadCb\",\r\n \"getTraceCtx\"\r\n ]);\r\n proxyFunctions(_self, function () {\r\n var context = properties[_DYN_CONTEXT /* @min:%2econtext */];\r\n return context ? context.user : null;\r\n }, [\r\n STR_SET_AUTHENTICATED_USER_CONTEXT,\r\n STR_CLEAR_AUTHENTICATED_USER_CONTEXT\r\n ]);\r\n function _getSKUDefaults() {\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER4 /* @min:%2ediagnosticLogInterval */] =\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER4 /* @min:%2ediagnosticLogInterval */] && _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_DIAGNOSTIC_LOG_INTER4 /* @min:%2ediagnosticLogInterval */] > 0 ? _self[_DYN_CONFIG /* @min:%2econfig */][_DYN_DIAGNOSTIC_LOG_INTER4 /* @min:%2ediagnosticLogInterval */] : 10000;\r\n }\r\n // Using a function to support the dynamic adding / removal of plugins, so this will always return the current value\r\n function _getCurrentDependencies() {\r\n return dependencies;\r\n }\r\n function _initDefaults() {\r\n _evtNamespace = createUniqueNamespace(\"AISKU\");\r\n _houseKeepingNamespace = null;\r\n dependencies = null;\r\n properties = null;\r\n _sender = null;\r\n _snippetVersion = null;\r\n }\r\n });\r\n }\r\n // Analytics Plugin\r\n// Removed Stub for Initialization.prototype.getCookieMgr.\r\n// Removed Stub for Initialization.prototype.trackEvent.\r\n// Removed Stub for Initialization.prototype.trackPageView.\r\n// Removed Stub for Initialization.prototype.trackPageViewPerformance.\r\n// Removed Stub for Initialization.prototype.trackException.\r\n// Removed Stub for Initialization.prototype._onerror.\r\n// Removed Stub for Initialization.prototype.trackTrace.\r\n// Removed Stub for Initialization.prototype.trackMetric.\r\n// Removed Stub for Initialization.prototype.startTrackPage.\r\n// Removed Stub for Initialization.prototype.stopTrackPage.\r\n// Removed Stub for Initialization.prototype.startTrackEvent.\r\n// Removed Stub for Initialization.prototype.stopTrackEvent.\r\n// Removed Stub for Initialization.prototype.addTelemetryInitializer.\r\n // Properties Plugin\r\n// Removed Stub for Initialization.prototype.setAuthenticatedUserContext.\r\n// Removed Stub for Initialization.prototype.clearAuthenticatedUserContext.\r\n // Dependencies Plugin\r\n// Removed Stub for Initialization.prototype.trackDependencyData.\r\n // Misc\r\n// Removed Stub for Initialization.prototype.flush.\r\n// Removed Stub for Initialization.prototype.onunloadFlush.\r\n// Removed Stub for Initialization.prototype.loadAppInsights.\r\n// Removed Stub for Initialization.prototype.updateSnippetDefinitions.\r\n// Removed Stub for Initialization.prototype.emptyQueue.\r\n// Removed Stub for Initialization.prototype.pollInternalLogs.\r\n// Removed Stub for Initialization.prototype.stopPollingInternalLogs.\r\n// Removed Stub for Initialization.prototype.addHousekeepingBeforeUnload.\r\n// Removed Stub for Initialization.prototype.getSender.\r\n// Removed Stub for Initialization.prototype.unload.\r\n// Removed Stub for Initialization.prototype.getPlugin.\r\n// Removed Stub for Initialization.prototype.addPlugin.\r\n// Removed Stub for Initialization.prototype.evtNamespace.\r\n// Removed Stub for Initialization.prototype.addUnloadCb.\r\n// Removed Stub for Initialization.prototype.addDependencyListener.\r\n /**\r\n * Add an dependency telemetry initializer callback function to allow populating additional properties or drop the request.\r\n * It is called after the dependency call has completed and any available performance details are available. A dependency\r\n * initializer is similar to the TelemetryInitializer function but it allows you to block the reporting of the dependency\r\n * request so that it doesn't count against the `maxAjaxCallsPerView`.\r\n * @param dependencyInitializer - The Dependency Telemetry Initializer function\r\n * @returns - A IDependencyInitializerHandler to enable the initializer to be removed\r\n */\r\n Initialization.prototype.addDependencyInitializer = function (dependencyInitializer) {\r\n return null;\r\n };\r\n// Removed Stub for Initialization.prototype.getTraceCtx.\r\n return Initialization;\r\n}());\r\nexport { Initialization };\r\n// tslint:disable-next-line\r\n(function () {\r\n var sdkSrc = null;\r\n var isModule = false;\r\n var cdns = [\r\n \"://js.monitor.azure.com/\",\r\n \"://az416426.vo.msecnd.net/\"\r\n ];\r\n try {\r\n // Try and determine whether the sdk is being loaded from the CDN\r\n // currentScript is only valid during initial processing\r\n var scrpt = (document || {}).currentScript;\r\n if (scrpt) {\r\n sdkSrc = scrpt.src;\r\n // } else {\r\n // // We need to update to at least typescript 2.9 for this to work :-(\r\n // // Leaving as a stub for now so after we upgrade this breadcrumb is available\r\n // let meta = import.meta;\r\n // sdkSrc = (meta || {}).url;\r\n // isModule = true;\r\n }\r\n }\r\n catch (e) {\r\n // eslint-disable-next-line no-empty\r\n }\r\n if (sdkSrc) {\r\n try {\r\n var url = sdkSrc.toLowerCase();\r\n if (url) {\r\n var src = \"\";\r\n for (var idx = 0; idx < cdns.length; idx++) {\r\n if (url[_DYN_INDEX_OF /* @min:%2eindexOf */](cdns[idx]) !== -1) {\r\n src = \"cdn\" + (idx + 1);\r\n if (url[_DYN_INDEX_OF /* @min:%2eindexOf */](\"/scripts/\") === -1) {\r\n if (url[_DYN_INDEX_OF /* @min:%2eindexOf */](\"/next/\") !== -1) {\r\n src += \"-next\";\r\n }\r\n else if (url[_DYN_INDEX_OF /* @min:%2eindexOf */](\"/beta/\") !== -1) {\r\n src += \"-beta\";\r\n }\r\n }\r\n _internalSdkSrc = src + (isModule ? \".mod\" : \"\");\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // eslint-disable-next-line no-empty\r\n }\r\n }\r\n})();\r\n","/*\n * Application Insights JavaScript SDK - Web, 2.8.18\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_UPDATE_SNIPPET_DEFIN0 = \"updateSnippetDefinitions\"; // Count: 4\r\nexport var _DYN_LOAD_APP_INSIGHTS = \"loadAppInsights\"; // Count: 4\r\nexport var _DYN_ENDPOINT_URL = \"endpointUrl\"; // Count: 4\r\nexport var _DYN_MAX_BATCH_SIZE_IN_BY1 = \"maxBatchSizeInBytes\"; // Count: 3\r\nexport var _DYN_MAX_BATCH_INTERVAL = \"maxBatchInterval\"; // Count: 3\r\nexport var _DYN_DISABLE_EXCEPTION_TR2 = \"disableExceptionTracking\"; // Count: 2\r\nexport var _DYN_DISABLE_TELEMETRY = \"disableTelemetry\"; // Count: 2\r\nexport var _DYN_EMIT_LINE_DELIMITED_3 = \"emitLineDelimitedJson\"; // Count: 2\r\nexport var _DYN_DIAGNOSTIC_LOG_INTER4 = \"diagnosticLogInterval\"; // Count: 6\r\nexport var _DYN_AUTO_TRACK_PAGE_VISI5 = \"autoTrackPageVisitTime\"; // Count: 2\r\nexport var _DYN_SAMPLING_PERCENTAGE = \"samplingPercentage\"; // Count: 4\r\nexport var _DYN_DISABLE_AJAX_TRACKIN6 = \"disableAjaxTracking\"; // Count: 2\r\nexport var _DYN_MAX_AJAX_CALLS_PER_V7 = \"maxAjaxCallsPerView\"; // Count: 3\r\nexport var _DYN_IS_BEACON_API_DISABL8 = \"isBeaconApiDisabled\"; // Count: 2\r\nexport var _DYN_DISABLE_CORRELATION_9 = \"disableCorrelationHeaders\"; // Count: 2\r\nexport var _DYN_CORRELATION_HEADER_E10 = \"correlationHeaderExcludedDomains\"; // Count: 2\r\nexport var _DYN_DISABLE_FLUSH_ON_BEF11 = \"disableFlushOnBeforeUnload\"; // Count: 4\r\nexport var _DYN_DISABLE_FLUSH_ON_UNL12 = \"disableFlushOnUnload\"; // Count: 3\r\nexport var _DYN_ENABLE_SESSION_STORA13 = \"enableSessionStorageBuffer\"; // Count: 2\r\nexport var _DYN_IS_COOKIE_USE_DISABL14 = \"isCookieUseDisabled\"; // Count: 2\r\nexport var _DYN_IS_STORAGE_USE_DISAB15 = \"isStorageUseDisabled\"; // Count: 2\r\nexport var _DYN_IS_BROWSER_LINK_TRAC16 = \"isBrowserLinkTrackingEnabled\"; // Count: 2\r\nexport var _DYN_ENABLE_CORS_CORRELAT17 = \"enableCorsCorrelation\"; // Count: 2\r\nexport var _DYN_CONFIG = \"config\"; // Count: 6\r\nexport var _DYN_CONTEXT = \"context\"; // Count: 8\r\nexport var _DYN_PUSH = \"push\"; // Count: 5\r\nexport var _DYN_VERSION = \"version\"; // Count: 6\r\nexport var _DYN_QUEUE = \"queue\"; // Count: 6\r\nexport var _DYN_CONNECTION_STRING = \"connectionString\"; // Count: 3\r\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 2\r\nexport var _DYN_APP_INSIGHTS = \"appInsights\"; // Count: 3\r\nexport var _DYN_DISABLE_IKEY_DEPRECA18 = \"disableIkeyDeprecationMessage\"; // Count: 2\r\nexport var _DYN_GET_TRANSMISSION_CON19 = \"getTransmissionControls\"; // Count: 2\r\nexport var _DYN_ONUNLOAD_FLUSH = \"onunloadFlush\"; // Count: 6\r\nexport var _DYN_ADD_HOUSEKEEPING_BEF20 = \"addHousekeepingBeforeUnload\"; // Count: 2\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 4\r\n","import { Injectable } from '@angular/core';\r\nimport { ApplicationInsights } from '@microsoft/applicationinsights-web';\r\nimport { RuntimeConfiguration } from './configuration-injection.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AppInsightsMonitoringService {\r\n appInsights: ApplicationInsights;\r\n\r\n init(runtimeConfig: RuntimeConfiguration) {\r\n this.appInsights = new ApplicationInsights({\r\n config: {\r\n instrumentationKey: runtimeConfig.instrumentationKey,\r\n enableAutoRouteTracking: true\r\n }\r\n });\r\n this.appInsights.loadAppInsights();\r\n }\r\n\r\n logPageView(name?: string, url?: string) {\r\n // option to call manually\r\n this.appInsights.trackPageView({\r\n name: name,\r\n uri: url\r\n });\r\n }\r\n\r\n logEvent(name: string, properties?: { [key: string]: any }) {\r\n this.appInsights.trackEvent({ name: name }, properties);\r\n }\r\n\r\n logMetric(name: string, average: number, properties?: { [key: string]: any }) {\r\n this.appInsights.trackMetric({ name: name, average: average }, properties);\r\n }\r\n\r\n logException(exception: Error, severityLevel?: number) {\r\n this.appInsights.trackException({ exception: exception, severityLevel: severityLevel });\r\n }\r\n\r\n logTrace(message: string, properties?: { [key: string]: any }) {\r\n this.appInsights.trackTrace({ message: message }, properties);\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { OidcSecurityService } from 'identity-manager-client-library';\r\nimport { ConfigurationService } from './configuration.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class BlockitSessionService {\r\n constructor(\r\n private http: HttpClient,\r\n private oidcSecurityService: OidcSecurityService,\r\n private configurationService: ConfigurationService\r\n ) { }\r\n\r\n getAuthToken(): string {\r\n return this.oidcSecurityService.getToken();\r\n }\r\n\r\n getBlockItSessionData() {\r\n const headers = {\r\n Authorization: `Bearer ${this.getAuthToken()}`,\r\n 'Content-Type': 'application/json',\r\n 'Ocp-Apim-Subscription-Key': `${this.configurationService.getRuntimeConfiguration().ocpApimSubscriptionKey}`\r\n };\r\n\r\n const body = {\r\n BypassCiam: false,\r\n userProfile: null\r\n };\r\n return this.http\r\n .post<any>(\r\n this.configurationService.getRuntimeConfiguration().appointmentDomainAPI,\r\n body,\r\n { headers }\r\n ).subscribe(res => {\r\n sessionStorage.setItem('blockItUrl', res.result.returnUrl);\r\n });\r\n }\r\n\r\n getBlockItData() {\r\n const headers = {\r\n Authorization:\r\n `Bearer ${this.configurationService.getRuntimeConfiguration().blockItToken}`,\r\n 'Content-Type': 'application/json'\r\n };\r\n\r\n const body = {\r\n booking_form_type: 'input',\r\n page: 'profile',\r\n patient: {\r\n given_name_1: '',\r\n given_name_2: '',\r\n family_name: '',\r\n sex: '',\r\n dob: '',\r\n phone: '',\r\n email: '',\r\n address_1: '',\r\n address_2: '',\r\n city: '',\r\n state: '',\r\n postal_code: ''\r\n }\r\n };\r\n\r\n this.http\r\n .post<any>(\r\n this.configurationService.getRuntimeConfiguration().blockItUrl,\r\n body,\r\n { headers }\r\n )\r\n .subscribe((data) => {\r\n sessionStorage.setItem('blockItUrl', data.url);\r\n });\r\n }\r\n\r\n //get the blockit url\r\n getBlockItURL() {\r\n const divisionCodes = this.configurationService?.getDivisionCodes().length > 0 ? this.configurationService.getDivisionCodes()[0] : null;\r\n if (divisionCodes?.toLowerCase() == 'dignity-health') {\r\n this.getAuthToken() ? this.getBlockItSessionData() : this.getBlockItData();\r\n }\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { FadEvent } from '../models/fad-event';\r\nimport { FadEventTypes } from '../models/fad-event-types';\r\nimport { ConfigurationService } from './configuration.service';\r\nimport { EventPublisherService } from './event-publisher.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CernerModalService {\r\n constructor(private eventPublisherService: EventPublisherService, private configurationService: ConfigurationService) {}\r\n\r\n // css class for cerner modal\r\n cernerModalClass = 'modal-cerner-content';\r\n\r\n modalOpened = 'Modal Opened';\r\n modalClosed = 'Modal Closed';\r\n\r\n embedSource = this.configurationService.getEmbedSource();\r\n\r\n publishVideoClickedEvent(event: any) {\r\n this.eventPublisherService.publish(\r\n new FadEvent({\r\n type: FadEventTypes.ViewVideoClicked,\r\n data: event\r\n })\r\n );\r\n }\r\n\r\n openModalForCerner() {\r\n if (this.embedSource === 'cerner' || this.embedSource === 'mychart') {this.publishVideoClickedEvent(this.modalOpened);}\r\n }\r\n\r\n closeModalForCerner() {\r\n if (this.embedSource === 'cerner' || this.embedSource === 'mychart') {this.publishVideoClickedEvent(this.modalClosed);}\r\n }\r\n\r\n getCernerClass(className){\r\n return (this.embedSource === 'cerner' || this.embedSource === 'mychart') ? `${className} ${this.cernerModalClass}` : className;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Provider } from '../models/provider';\r\nimport { CjaTagSearchFilter } from '../models/search-filter';\r\nimport { ConfigurationService } from './configuration.service';\r\nimport { RuntimeConfiguration } from './configuration-injection.service';\r\n \r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CjaTagService {\r\n tenantCode: string;\r\n \r\n constructor(private configurationService: ConfigurationService) { }\r\n\r\n init(runtimeConfig: RuntimeConfiguration): void {\r\n this.tenantCode = this.configurationService.getTenantCode();\r\n this.addScriptTag(runtimeConfig);\r\n }\r\n \r\n public logCJAEvent(data?: any): void {\r\n window.adobeDataLayer = window.adobeDataLayer || [];\r\n window.adobeDataLayer.push(data);\r\n }\r\n \r\n private view(provider: Provider, eventName: string) {\r\n this.logCJAEvent({\r\n event: 'cmp:show',\r\n event_name: eventName,\r\n page: {\r\n name: `${provider.displayFullName}`,\r\n section: 'Search and Schedule',\r\n system: `${this.configurationService.getTenantCode()}`,\r\n division: `${provider.divisionCodes[0]}`,\r\n facility: `${provider.officeNames}`,\r\n medicalGroup: `${provider.medicalGroupNames.join(', ')}`,\r\n serviceLine: `${provider.primarySpecialty}`,\r\n market: `${provider.marketCodes[0]}`,\r\n doctor_name: `${provider.displayFullName}`,\r\n doctor_NPI: `${provider.npi}`\r\n },\r\n site: {\r\n language: `${provider.languages}`\r\n },\r\n visitor: {\r\n loginStatus: ''\r\n },\r\n patientEngagement: 'false'\r\n });\r\n }\r\n \r\n providerProfileViewed(provider: Provider): void {\r\n this.view(provider, 'search_schedule:provider_profile_view');\r\n }\r\n \r\n providerVideoViewed(provider: Provider): void {\r\n this.view(provider, 'search_schedule:youtube_open');\r\n }\r\n \r\n searchResults(cjaTagSearchFilter: CjaTagSearchFilter): void {\r\n this.logCJAEvent({\r\n event: 'cmp:show',\r\n event_name: `${cjaTagSearchFilter.eventName}`,\r\n page: {\r\n name: '',\r\n section: 'Search and Schedule',\r\n system: `${this.configurationService.getTenantCode()}`,\r\n division: '',\r\n facility: `${cjaTagSearchFilter.facility}`,\r\n medicalGroup: `${cjaTagSearchFilter.medicalGroup}`,\r\n serviceLine: `${cjaTagSearchFilter.serviceLine}`,\r\n market: '',\r\n subMarket: '',\r\n url: `${cjaTagSearchFilter.searchURL}`\r\n },\r\n site: {\r\n language: 'en'\r\n },\r\n visitor: {\r\n loginStatus: ''\r\n },\r\n search: {\r\n schedule_filter_details: `${cjaTagSearchFilter.scheduleFilterDetails}`,\r\n schedule_location: `${cjaTagSearchFilter.scheduleLocation}`,\r\n schedule_book_online: `${cjaTagSearchFilter.scheduleBookOnline}`,\r\n schedule_keyword: `${cjaTagSearchFilter.scheduleKeyword}`,\r\n schedule_results_count: `${cjaTagSearchFilter.totalResultsCount}`\r\n },\r\n patientEngagement: 'false'\r\n });\r\n }\r\n \r\n providersImpressions(providers: Provider[]) {\r\n const data = {\r\n event: 'customEvent',\r\n event_name: 'search and schedule:provider detail:impressions',\r\n event_category: 'search and schedule',\r\n event_action: 'providers impression',\r\n event_label: 'rating and comments',\r\n doctor_name_list: providers.map((p) => p.displayFullName),\r\n doctor_npi_list: providers.map((p) => p.npi),\r\n doctor_starRating_list: providers.map((p) => (p.rating !== undefined ? p.rating?.overallRating.value : 'not set')),\r\n doctor_ratingCount_list: providers.map((p) => (p.rating !== undefined ? p.rating?.totalRatingCount : 'not set')),\r\n doctor_commentsCount_list: providers.map((p) => (p.rating !== undefined ? p.rating?.totalCommentCount : 'not set')),\r\n patientEngagement: 'false',\r\n visitor_loginStatus: ''\r\n };\r\n this.logCJAEvent(data);\r\n }\r\n \r\n providerRatingsAndComments(provider: Provider): void {\r\n const data = {\r\n event: 'customEvent',\r\n event_name: 'search and schedule:provider detail:profile view',\r\n event_category: 'search and schedule',\r\n event_action: 'provider profile view',\r\n event_label: 'rating and comments',\r\n event_doctor_name: `${provider.displayFullName}`,\r\n event_doctor_npi: `${provider.npi}`,\r\n event_doctor_hasStarRating: `${provider.rating?.totalRatingCount === 0 ? false : true}`,\r\n event_doctor_starRating: `${provider.rating !== undefined ? provider.rating?.overallRating.value : 'not set'}`,\r\n event_doctor_starRatingCount: `${provider.rating !== undefined ? provider.rating?.totalRatingCount : 'not set'}`,\r\n event_doctor_hasComments: `${provider.rating?.totalCommentCount === 0 ? false : true}`,\r\n event_doctor_commentsCount: `${provider.rating !== undefined ? provider.rating?.totalCommentCount : 'not set'}`,\r\n patientEngagement: 'false',\r\n visitor_loginStatus: ''\r\n };\r\n this.logCJAEvent(data);\r\n }\r\n\r\n scriptLoaded(adobeScriptSrc: string): boolean {\r\n return Array.from(document.getElementsByTagName('script')).some((script) => script.src.includes(adobeScriptSrc));\r\n }\r\n\r\n public addScriptTag(runtimeConfig: RuntimeConfiguration): void {\r\n if (!runtimeConfig.adobeScriptSrc || this.scriptLoaded(runtimeConfig.adobeScriptSrc)) {\r\n return;\r\n }\r\n const bodyElement = document.querySelector('body');\r\n const scriptTag: HTMLScriptElement = document.createElement('script');\r\n scriptTag.type = 'text/javascript';\r\n scriptTag.innerHTML = `(function(a,b,c,d){\r\n a='${runtimeConfig.adobeScriptSrc}';\r\n b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true;\r\n a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);\r\n })();`;\r\n bodyElement?.appendChild(scriptTag);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport {\r\n ErrorLink,\r\n FadConfigurationData,\r\n HelplineNumber,\r\n MedgroupDictionary,\r\n SortingConfiguration,\r\n SortingOption,\r\n QuickLinksCategories,\r\n ERLinkCategories,\r\n Division,\r\n MedicalGroup,\r\n ILocationAutoSuggSearchParams,\r\n ITitleTag\r\n} from '../models/configuration';\r\nimport { isNumeric } from 'rxjs/internal-compatibility';\r\nimport { FiltersModelPartialHelper } from '../models/filters';\r\nimport { RuntimeConfiguration } from './configuration-injection.service';\r\nimport { Provider } from '../models/provider';\r\nimport { DynamicFilterContentDetails } from '../models/DynamicFilterContentDetails';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ConfigurationService {\r\n\r\n defaultSearchRadius = 10;\r\n defaultSearchRadiusWhenMedGroupFilterApplied = 25;\r\n locationRequired = true;\r\n defaultTenantCode = 'common-spirit';\r\n defaultDesktopSearchTerm = 'Doctor’s name, specialty, procedure, or insurance';\r\n defaultTabletSearchTerm = 'Name, specialty, insurance';\r\n defaultMobileSearchTerm = 'Name, specialty, insurance';\r\n defaultShowProviderCardLogo = true;\r\n defaultShowNewSchedulingApp = true;\r\n defaultCaptchaEnabled = true;\r\n defaultShowSearchRadiusFilter = true;\r\n defaultShowVideoVisitsBanner = true;\r\n defaultShowGuidedFlowButton = true;\r\n defaultInMyOwnWordsTitle = 'In my own words';\r\n defaultOnlineSchedulingType = 'GuidedFlow';\r\n defaultproviderSchedulingFeature = false;\r\n defaultDocAsapProviderLookupUrl = '';\r\n defaultShowProviderVideo = false;\r\n defaultShowMedGroupBanner = true;\r\n defaultUseNewProviderDetailsRoute = false;\r\n defaultShowMyProviders = false;\r\n defaultShowMedGroupLogo = true;\r\n defaultDivisions = [];\r\n defaultShowProviderPrefix = false;\r\n defaultProviderRatings = {\r\n defaultUseNewRatingsEndpoint: false,\r\n defaultShowStarRatings: false,\r\n defaultShowProviderReviews: false,\r\n defaultRatingsFooterText: '',\r\n defaultRatingsFooterLinkText: '',\r\n defaultRatingsFooterLink: '',\r\n defaultRatingsBannerText: 'We now display star ratings for our providers! ',\r\n defaultRatingsBannerLink: '',\r\n defaultRatingsBannerLinkText: 'Learn more about our rating system.',\r\n defaultRatingsTooltipText: '',\r\n defaultShowStarRatingBanner: false,\r\n defaultUseLiveMedGroups: false,\r\n defaultLiveMedGroups: [\r\n 'bakersfield',\r\n 'dominican',\r\n 'inland-empire',\r\n 'merced',\r\n 'north-state',\r\n 'northridge',\r\n 'san-francisco',\r\n 'dhmn-santa-cruz',\r\n 'mmg',\r\n 'sequoia',\r\n 'sierra-nevada',\r\n 'stockton',\r\n 'ventura',\r\n 'woodland'\r\n ]\r\n };\r\n\r\n defaultShowContent = false;\r\n defaultOnlineSchedulingContent: DynamicFilterContentDetails[] = [];\r\n defaultMedicalGroupContent: DynamicFilterContentDetails[] = [];\r\n defaultSpecialtyGroupContent: DynamicFilterContentDetails[] = [];\r\n\r\n defaultCovidSupportUseV5 = false;\r\n private defaultMedicalGroupHoverText = 'Search providers within network';\r\n private defaultMedicalGroupToolTipText = 'Choose a medical group to show providers within network.';\r\n private defaultHospitalAffiliationToolTipText = 'Check all hospital affiliations of interest from the list below:';\r\n private defaultHospitalAffiliationHoverText = 'Search providers that have affiliations with specific hospitals.';\r\n defaultDisclaimerCopy =\r\n 'Notice: \"Find a Doctor\" is provided by Dignity Health as a convenience to you. The information on each participating doctor is submitted to Dignity Health by each doctor and is not independently verified by Dignity Health. Each doctor is solely responsible for the completeness and accuracy of the information listed about him or her. Dignity Health is not responsible for any loss or damages caused by your reliance on the doctor information contained on Find a Doctor. You should telephone the doctor\\'s office in advance to verify the accuracy of the information.';\r\n\r\n defaultVideoVisitsFilter = true;\r\n defaultAcceptingNewPatientsFilter = true;\r\n defaultAvailabilityFilter = true;\r\n defaultSpecialtyFilter = true;\r\n defaultMedicalGroupFilter = true;\r\n defaultMedicalGroupMoreFilter = false;\r\n defaultHospitalAffiliationFilter = false;\r\n defaultGenderFilter = true;\r\n defaultInsuranceFilter = true;\r\n defaultInsuranceAcceptedFilter = false;\r\n defaultLanguageFilter = true;\r\n defaultSearchRadiusFilter = true;\r\n medGroupDictionary: MedgroupDictionary[] = [];\r\n defaultEmergencyCopy = '';\r\n defaultEmergencyNumber = '';\r\n defaultShowEmergencyCopy = false;\r\n defaultLegalCopy = '';\r\n defaultLegalCopyTooltip = '';\r\n defaultLegalCopyTooltipInfo = '';\r\n defaultShowLegalCopy = false;\r\n defaultEmergencyCare = false;\r\n femalePlaceholder =\r\n 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAMDAwMDAwQEBAQFBQUFBQcHBgYHBwsICQgJCAsRCwwLCwwLEQ8SDw4PEg8bFRMTFRsfGhkaHyYiIiYwLTA+PlQBAwMDAwMDBAQEBAUFBQUFBwcGBgcHCwgJCAkICxELDAsLDAsRDxIPDg8SDxsVExMVGx8aGRofJiIiJjAtMD4+VP/CABEIAKAAeAMBIgACEQEDEQH/xAAdAAABAwUBAAAAAAAAAAAAAAAAAwcIAQIFBgkE/9oACAEBAAAAAJ11vUrW/Dr5C2lltlVblKsZClvln1npm7U7Kq33x/57AD69F7E7BRTz8odbADqzuliVVFIrQZqAUnTKtJOiqnLtsQAHx6TJJ2rIQNjMAB6uwnpRsWWZLmjUAKdIX5RTpBKPWFtACkr52JJ6/wA65Swh1sALZJdAr08NHduI2YuytFrNz6mZtBFdpon0wDR47My6ki2MPXkmzYtoOlo05weyTk/cwNLCboWktndaj69XIt7Og7khSN7i5vM5CFe77NCCYUmgDVdS2XbGLxb96RHSaKoBRnt72dmtk3eEkwdkqAUalw/M2D1R7y73Hk9QBpu4tv6mTXlJiOZUwpFgGsaI1+6J+CSMA4xz9k4BTVP/xAAZAQADAQEBAAAAAAAAAAAAAAAAAgQDAQX/2gAIAQIQAAAA9MNeZdOLWxjgyvUCx941gEIU6gS493oHlTFlqq8+Olk1SzyTtc+28ChYa4vNkXf/xAAZAQADAQEBAAAAAAAAAAAAAAAAAgQDAQX/2gAIAQMQAAAA8wMu7KdaRTfZWzmBrO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yUjdBjXOwwvgTKRBpi2NY6gQeThyc/8AWJvmN98TCQJQypVyH+ajtGQqbGU1u2u0f6jOw9X4ONyYJW0ZCPSIh+ZoIec4gijw7W6W94SURChte/vCS6ZuY/MDi2HDoj1bNOKpqEvtbSeHVNWTvPEXsiL1a/tN6P8AjfuL9j9sOU21EZ3fcsZwb5K6Ht7zj3zV7dFlNgAVOgf9wgohuN2Al8RrpEJVlPSVX+JVZurQ6GXJ3OH/xAAqEQACAQIFAgYCAwAAAAAAAAABAgADEQQQEiExgZEFIEFRUnEiMqGxwf/aAAgBAwEBPwCWMtbmGqsVg2wztLZVXt+IzptqWW8lQWc50AdzlbICVAQ7XzoKdzD5MQF0XPOagaRbjIwSxMxGqpS1jlGPURHDi4lRrLtzEtSWmp+P8icQywHGVHcOD8jHBw1cr6f5MPqrYhQflftAgeowYXtaBdFXSOCvYw09+csS7pSJWYSo2vTyDv1niVPZX6Tw1Luz+wt3nFf7X+of3U/eZ3FjERE4CjpMYmvDuOvaeHppw9/diZUDbMOV36QFajpY7BSYM+I41IwPrKKGnSVT6KJyN4ABxl//2Q==';\r\n blankPlaceholder = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\r\n defaultRegionalHelplineNumbers = false;\r\n defaultHelplineHeading = 'Prefer to talk to someone? We\\'re here, 24/7';\r\n defaultHelplineHeadingInvalid='Prefer to talk with someone? We\\'re here Monday through Friday from 7:30 a.m. to 5:30 p.m.';\r\n defaultLandingPageHeader = 'Find a doctor';\r\n defaultHelplineNumbers = [];\r\n defaultLocationSearchCookieName = 'fadLocationSearch';\r\n defaultShowSuggestAnEdit = false;\r\n defaultSuggestAnEditLink = null;\r\n defaultMyProvidersLink = 'https://www.dignityhealth.org/login?returnUrl=/my-home/myproviders';\r\n defaultLogLevel = 4;\r\n defaultShowQuickLinks = true;\r\n defaultEnableAutoSuggestionProviders = false;\r\n defaultAemUrlPathName = 'find-a-doctor';\r\n defaultShowButtonsbyRows = false;\r\n defaultShowSearchButton = true;\r\n defaultSearchButton = '';\r\n showUpdatedProviderDetailPageUX = false;\r\n defaultIsFuzzyMatch = false;\r\n getToKnowDisclaimerText = '(DISCLAIMER) CDC Guidelines: If you treat anyone 18 years old or younger';\r\n\r\n defaultQuickLinksCategories: QuickLinksCategories[] = [\r\n {\r\n value: 'Video Visits',\r\n type: 'videovisits',\r\n icon: 'videocam'\r\n },\r\n {\r\n value: 'Online scheduling',\r\n type: 'bookonline',\r\n alternateText: 'Online scheduling'\r\n },\r\n {\r\n value: 'Primary Care',\r\n type: 'keywords'\r\n },\r\n {\r\n value: 'Cardiology',\r\n type: 'keywords'\r\n },\r\n {\r\n value: 'Gynecology',\r\n type: 'keywords'\r\n }\r\n ];\r\n\r\n defaultERLinkCategories: ERLinkCategories[] = [\r\n {\r\n type: 'erUrgent',\r\n linkScheme: 'https://www.dignityhealth.org/emergency-care'\r\n }\r\n ];\r\n defaultShowHospitalAffiliations = true;\r\n defaultShowSpecialtySuggestions = true;\r\n defaultShowProviderVideoLink = false;\r\n defaultUseLegacyAPI = true;\r\n defaultInjectCanonicals = false;\r\n defaultIncludeProviderRoleCheckBox = false;\r\n defaultProviderRolesForUrgentCare = ['Hospital Based', 'Urgent Care'];\r\n defaultAutoCheckBoxSelectionSpecialities = [];\r\n defaultMultipleMedicalGroupSelection = false;\r\n defaultImprovedUX = false;\r\n defaultOnlineSchedulingAllVisit = false;\r\n\r\n private configuration: FadConfigurationData;\r\n private runtimeConfiguration: RuntimeConfiguration;\r\n private embedSource: string;\r\n private isCernerPage: boolean;\r\n\r\n private divisionCodes: string[] = undefined;\r\n\r\n private marketCodes: string[] = undefined;\r\n\r\n requiredSearchKeys = [\r\n 'tenantCode',\r\n 'divisions',\r\n 'medgroupDictionary',\r\n 'disclaimer',\r\n 'errorLinks',\r\n 'logLevel',\r\n 'quickLinks',\r\n 'onlineScheduling',\r\n 'landingPageHeader',\r\n 'filters',\r\n 'emergencyCare',\r\n 'helplineNumbers',\r\n 'suggestAnEdit',\r\n 'myProviders'\r\n ];\r\n\r\n warningSearchKeys = [\r\n 'locationRequired',\r\n 'marketCode',\r\n 'sorting',\r\n 'medicalGroup',\r\n 'showProviderVideo',\r\n 'showMedGroupBanner',\r\n 'inMyOwnWords',\r\n 'guidedFlowButton',\r\n 'searchTerm',\r\n 'covidSupport',\r\n 'hospitalAffiliations',\r\n 'showStarRatings',\r\n 'showProviderReviews',\r\n 'showStarRatingsBanner',\r\n 'showRatingText',\r\n 'ratingsFooterText',\r\n 'ratingsFooterLinkText',\r\n 'ratingsFooterLink',\r\n 'ratingsBannerText',\r\n 'ratingsBannerLink',\r\n 'ratingsBannerLinkText',\r\n 'ratingsTooltipText',\r\n 'useLiveMedGroups',\r\n 'liveMedGroups'\r\n ];\r\n\r\n defaultMedGroupLegendShow = false;\r\n defaultMedGroupLegendHeader = '';\r\n defaultAutoSuggLocationSearchParams = {};\r\n deafaultTitletags = {};\r\n defaultShowPatientAgeRestrictions = false;\r\n defaultAutoSuggestionLoadingMessage = 'Loading suggestions...';\r\n defaultIsFiltersLeftSidePanelRequired = false;\r\n defaultPrintablePdfFooter = '';\r\n defaultPrintablePdfHeaderUrl = '';\r\n defaultShowPdfPrint = false;\r\n\r\n\r\n // Only called by the Config Injection Service when the app starts up\r\n public init(config: FadConfigurationData, runtimeConfiguration: RuntimeConfiguration, embedSource: string = null,isCernerPage :boolean=null): void {\r\n this.configuration = config;\r\n this.runtimeConfiguration = runtimeConfiguration;\r\n this.embedSource = embedSource;\r\n this.isCernerPage = isCernerPage;\r\n this.initLocationRequired();\r\n this.initDefaultSearchDistance();\r\n this.initDefaultSearchDistanceWhenMedGroupFilterApplied();\r\n this.initSorting();\r\n this.initMedicalGroupFilter();\r\n this.initHospitalAffiliationFilter();\r\n this.initIsFilterLeftSidePanelRequired();\r\n }\r\n\r\n public injectCanonicals(): boolean {\r\n return this.configuration?.linkCanonicals ?? this.defaultInjectCanonicals;\r\n }\r\n\r\n public getRuntimeConfiguration(): RuntimeConfiguration {\r\n return this.runtimeConfiguration;\r\n }\r\n\r\n public getEmbedSource(): string {\r\n return this.embedSource ?? '';\r\n }\r\n public getCernerPage(): boolean {\r\n return this.isCernerPage ?? false;\r\n }\r\n public getSlotUrl(): string {\r\n return this.runtimeConfiguration.slotUrl ?? '';\r\n }\r\n public getConfigType(): string {\r\n return this.configuration?.configType;\r\n }\r\n\r\n public getDefaultSearchDistance(): number | undefined {\r\n return this.configuration?.interfaces.filters?.searchRadius?.defaultDistance;\r\n }\r\n\r\n public getDefaultSearchDistanceWhenMedGroupFilterApplied(): number | undefined {\r\n return this.configuration?.interfaces.filters?.searchRadius?.defaultDistanceMedGroupFilterApplied;\r\n }\r\n\r\n public getSortingConfig(): SortingConfiguration {\r\n return this.configuration.interfaces.sorting;\r\n }\r\n\r\n public getDefaultSortOption(): SortingOption {\r\n const sortingData = this.getSortingConfig();\r\n return sortingData.options.find((o: SortingOption) => o.name === sortingData.default);\r\n }\r\n\r\n public getSortingOptionByQueryParam(queryParam: string): SortingOption {\r\n return this.getSortingConfig().options.find((o: SortingOption) => o.queryParam === queryParam);\r\n }\r\n\r\n public getSortingOptionByValue(value: number): SortingOption {\r\n return this.getSortingConfig().options.find((o: SortingOption) => o.value === value);\r\n }\r\n\r\n public getLocationRequiredDefaultValue(): boolean | undefined {\r\n return this.configuration.interfaces.search?.locationRequired;\r\n }\r\n\r\n private setDefaultSearchDistance(value: number) {\r\n this.configuration.interfaces.filters.searchRadius.defaultDistance = value;\r\n }\r\n\r\n private setDefaultSearchDistanceWhenMedGroupFilterApplied(value: number) {\r\n this.configuration.interfaces.filters.searchRadius.defaultDistanceMedGroupFilterApplied = value;\r\n }\r\n\r\n private setLocationRequiredDefaultValue(value: boolean) {\r\n this.configuration.interfaces.search.locationRequired = value;\r\n }\r\n\r\n public getMedicalGroupFilterToolTipText(): string {\r\n return this.configuration?.interfaces.filters.medicalGroup?.tooltipText;\r\n }\r\n\r\n public getMedicalGroupFilterHoverText(): string {\r\n return this.configuration?.interfaces.filters.medicalGroup?.hoverText;\r\n }\r\n\r\n public getHospitalAffiliationFilterToolTipText(): string {\r\n return this.configuration?.interfaces.filters.hospitalAffiliation?.tooltipText;\r\n }\r\n\r\n public getHospitalAffiliationFilterHoverText(): string {\r\n return this.configuration?.interfaces.filters.hospitalAffiliation?.hoverText;\r\n }\r\n\r\n private initMedicalGroupFilter(): void {\r\n if (!this.configuration.interfaces.filters.medicalGroup) {\r\n this.configuration.interfaces.filters.medicalGroup = { enabled: this.defaultMedicalGroupFilter } as MedicalGroup;\r\n }\r\n\r\n if (!this.configuration.interfaces.filters.medicalGroup?.tooltipText) {\r\n this.configuration.interfaces.filters.medicalGroup.tooltipText =\r\n this.configuration.interfaces.filters.medicalGroup?.tooltipText?.trim() === '' ? '' : this.defaultMedicalGroupToolTipText;\r\n }\r\n\r\n if (!this.configuration.interfaces.filters.medicalGroup?.hoverText) {\r\n this.configuration.interfaces.filters.medicalGroup.hoverText =\r\n this.configuration.interfaces.filters.medicalGroup?.hoverText?.trim() === '' ? '' : this.defaultMedicalGroupHoverText;\r\n }\r\n }\r\n\r\n private initHospitalAffiliationFilter(): void {\r\n if (this.configuration.interfaces.filters.hospitalAffiliation) {\r\n if (!this.configuration.interfaces.filters.hospitalAffiliation?.tooltipText) {\r\n this.configuration.interfaces.filters.hospitalAffiliation.tooltipText =\r\n this.configuration.interfaces.filters.hospitalAffiliation?.tooltipText?.trim() === ''\r\n ? ''\r\n : this.defaultHospitalAffiliationToolTipText;\r\n }\r\n\r\n if (!this.configuration.interfaces.filters.hospitalAffiliation?.hoverText) {\r\n this.configuration.interfaces.filters.hospitalAffiliation.hoverText =\r\n this.configuration.interfaces.filters.hospitalAffiliation?.hoverText?.trim() === ''\r\n ? ''\r\n : this.defaultHospitalAffiliationHoverText;\r\n }\r\n }\r\n }\r\n\r\n private initDefaultSearchDistance(): void {\r\n // it's possible that the config has nothing in it or bad values. So, we need to set to sensible values.\r\n const searchDistanceFromConfigFile = this.getDefaultSearchDistance();\r\n\r\n if (this.configuration.interfaces.filters.searchRadius?.enabled) {\r\n if (!searchDistanceFromConfigFile || !isNumeric(searchDistanceFromConfigFile)) {\r\n // set to a sensible default\r\n this.setDefaultSearchDistance(this.defaultSearchRadius);\r\n } else {\r\n this.defaultSearchRadius = searchDistanceFromConfigFile;\r\n const closestKnownDistance = FiltersModelPartialHelper.radiusValueMapping\r\n .filter((item) => item.value <= +searchDistanceFromConfigFile)\r\n .pop()?.value;\r\n this.setDefaultSearchDistance(closestKnownDistance ?? this.defaultSearchRadius);\r\n }\r\n }\r\n }\r\n\r\n private initDefaultSearchDistanceWhenMedGroupFilterApplied(): void {\r\n // it's possible that the config has nothing in it or bad values. So, we need to set to sensible values.\r\n const searchDistanceFromConfigFile = this.getDefaultSearchDistanceWhenMedGroupFilterApplied();\r\n\r\n if (this.configuration.interfaces.filters.searchRadius?.enabled) {\r\n if (!searchDistanceFromConfigFile || !isNumeric(searchDistanceFromConfigFile)) {\r\n this.setDefaultSearchDistanceWhenMedGroupFilterApplied(this.defaultSearchRadiusWhenMedGroupFilterApplied);\r\n } else {\r\n this.defaultSearchRadiusWhenMedGroupFilterApplied = searchDistanceFromConfigFile;\r\n const closestKnownDistance = FiltersModelPartialHelper.radiusValueMapping\r\n .filter((item) => item.value <= +searchDistanceFromConfigFile)\r\n .pop()?.value;\r\n this.setDefaultSearchDistanceWhenMedGroupFilterApplied(closestKnownDistance ?? this.defaultSearchRadiusWhenMedGroupFilterApplied);\r\n }\r\n }\r\n }\r\n\r\n private initSorting(): void {\r\n if (!this.configuration.interfaces.sorting) {\r\n // Nothing in config. Create sensible defaults\r\n const sortingData = {\r\n default: 'BestMatch',\r\n showOptions: false,\r\n options: [\r\n {\r\n name: 'BestMatch',\r\n label: 'Best Match',\r\n queryParam: 'bestmatch',\r\n value: 2\r\n } as SortingOption\r\n ] as SortingOption[]\r\n } as SortingConfiguration;\r\n this.configuration.interfaces.sorting = sortingData;\r\n }\r\n // ensure all query params are lower case\r\n this.configuration.interfaces.sorting.options.forEach((o) => {\r\n o.queryParam = o.queryParam?.toLowerCase();\r\n });\r\n }\r\n\r\n private initLocationRequired(): void {\r\n // it's possible that the config has nothing in it or bad values. So, we need to set to sensible values.\r\n const isLocationRequired = this.getLocationRequiredDefaultValue();\r\n\r\n if (isLocationRequired === null || isLocationRequired === undefined) {\r\n // set to a sensible default\r\n this.setLocationRequiredDefaultValue(this.locationRequired);\r\n }\r\n }\r\n\r\n private initIsFilterLeftSidePanelRequired(): void {\r\n // it's possible that the config has nothing in it or bad values. So, we need to set to sensible values.\r\n const isLeftFilter = this.getIsFilterLeftSidePanelRequiredDefaultValue();\r\n\r\n if (isLeftFilter === null || isLeftFilter === undefined) {\r\n // set to a sensible default\r\n this.setIsFilterLeftSidePanelRequiredDefaultValue(this.defaultIsFiltersLeftSidePanelRequired);\r\n }\r\n }\r\n\r\n public getIsFilterLeftSidePanelRequiredDefaultValue(): boolean | undefined {\r\n return this.configuration.interfaces.search?.isFiltersLeftSidePanelRequired;\r\n }\r\n\r\n private setIsFilterLeftSidePanelRequiredDefaultValue(value: boolean) {\r\n this.configuration.interfaces.search.isFiltersLeftSidePanelRequired = value;\r\n }\r\n\r\n public getDisclaimerCopy(): string {\r\n if (this.configuration?.interfaces.disclaimer && this.configuration.interfaces.disclaimer.enabled) {\r\n if (this.configuration.interfaces.disclaimer.text) {\r\n return this.configuration.interfaces.disclaimer.text;\r\n } else {\r\n return this.defaultDisclaimerCopy;\r\n }\r\n } else {\r\n return this.defaultDisclaimerCopy;\r\n }\r\n }\r\n\r\n public getEmergencyCopy(): string {\r\n if (this.configuration?.interfaces.emergencyCopy && this.configuration.interfaces.emergencyCopy.enabled) {\r\n if (this.configuration.interfaces.emergencyCopy.text) {\r\n return this.configuration.interfaces.emergencyCopy.text;\r\n } else {\r\n return this.defaultEmergencyCopy;\r\n }\r\n } else {\r\n return this.defaultEmergencyCopy;\r\n }\r\n }\r\n\r\n public getEmergencyNumber(): string {\r\n if (this.configuration?.interfaces.emergencyCopy && this.configuration.interfaces.emergencyCopy.enabled) {\r\n if (this.configuration.interfaces.emergencyCopy.number) {\r\n return this.configuration.interfaces.emergencyCopy.number;\r\n } else {\r\n return this.defaultEmergencyNumber;\r\n }\r\n } else {\r\n return this.defaultEmergencyNumber;\r\n }\r\n }\r\n\r\n public getLegalCopy(): string {\r\n if (this.configuration?.interfaces.legalCopy && this.configuration.interfaces.legalCopy.enabled) {\r\n if (this.configuration.interfaces.legalCopy.text) {\r\n return this.configuration.interfaces.legalCopy.text;\r\n } else {\r\n return this.defaultLegalCopy;\r\n }\r\n } else {\r\n return this.defaultLegalCopy;\r\n }\r\n }\r\n\r\n public getLegalCopyToolTip(): string {\r\n if (this.configuration?.interfaces.legalCopy && this.configuration.interfaces.legalCopy.enabled) {\r\n if (this.configuration.interfaces.legalCopy.tooltip) {\r\n return this.configuration.interfaces.legalCopy.tooltip;\r\n } else {\r\n return this.defaultLegalCopyTooltip;\r\n }\r\n } else {\r\n return this.defaultLegalCopyTooltip;\r\n }\r\n }\r\n\r\n public getLegalCopyToolTipInfo(): string {\r\n if (this.configuration?.interfaces.legalCopy\r\n && this.configuration.interfaces.legalCopy.enabled\r\n && this.configuration.interfaces.legalCopy.tooltipInfo) {\r\n return this.configuration.interfaces.legalCopy.tooltipInfo;\r\n }\r\n return this.defaultLegalCopyTooltipInfo;\r\n }\r\n\r\n public getTenantCode(): string {\r\n return this.configuration?.interfaces?.tenant?.tenantCode ?? this.defaultTenantCode;\r\n }\r\n\r\n public showProviderVideo(): boolean {\r\n return this.configuration.interfaces?.tenant?.showProviderVideo ?? this.defaultShowProviderVideo;\r\n }\r\n\r\n public showProviderPrefix(): boolean{\r\n return this.configuration?.interfaces?.tenant.showProviderPrefix ?? this.defaultShowProviderPrefix;\r\n }\r\n\r\n public showMedGroupBanner(): boolean {\r\n return this.configuration.interfaces?.tenant?.showMedGroupBanner ?? this.defaultShowMedGroupBanner;\r\n }\r\n\r\n public UseNewProviderDetailsRoute(): boolean {\r\n return this.configuration?.interfaces?.useNewProviderDetailsRoute ?? this.defaultUseNewProviderDetailsRoute;\r\n }\r\n\r\n public getDivisions(): Division[] {\r\n return this.configuration?.interfaces?.tenant.divisions ?? this.defaultDivisions;\r\n }\r\n\r\n public getMedGroupCodes(): MedgroupDictionary[] {\r\n if (this.medGroupDictionary.length < 1) {\r\n this.configuration?.interfaces?.search?.medgroupDictionary?.forEach((mG) => {\r\n this.medGroupDictionary.push(mG);\r\n });\r\n }\r\n return this.medGroupDictionary;\r\n }\r\n\r\n public getActiveMedgroups(provider: Provider): boolean {\r\n const liveGroups = this.medGroupDictionary.filter((x) => x.showStarRatings === true);\r\n\r\n return liveGroups.some((x) => provider.medicalGroupNames.includes(x.code));\r\n }\r\n\r\n public getTenantSection() {\r\n return this.configuration?.interfaces?.tenant ?? undefined;\r\n }\r\n\r\n public showMedGroupLogo(): boolean {\r\n return this.configuration?.interfaces.tenant.showMedGroupLogo ?? this.defaultShowMedGroupLogo;\r\n }\r\n\r\n public getOnlineSchedulingType(): string {\r\n return this.configuration.interfaces.onlineScheduling?.onlineSchedulingType ?? this.defaultOnlineSchedulingType;\r\n }\r\n\r\n public getProviderSchedulingFeature(): boolean {\r\n return this.configuration.interfaces.onlineScheduling?.providerSchedulingFeature ?? this.defaultproviderSchedulingFeature;\r\n }\r\n\r\n public getDocAsapProviderLookupUrl(): string {\r\n return this.configuration.interfaces.onlineScheduling?.docAsapProviderLookupUrl ?? this.defaultDocAsapProviderLookupUrl;\r\n }\r\n\r\n public showProviderCardLogo(): boolean {\r\n return this.configuration.interfaces.providerCardLogo?.enabled ?? this.defaultShowProviderCardLogo;\r\n }\r\n\r\n public showNewSchedulingApp(): boolean {\r\n return this.configuration.interfaces.showNewSchedulingApp ?? this.defaultShowNewSchedulingApp;\r\n }\r\n\r\n public getCaptchaEnabled(): boolean {\r\n return this.configuration.interfaces.captcha?.enabled ?? this.defaultCaptchaEnabled;\r\n }\r\n\r\n public getInMyOwnWordsTitle(): string {\r\n return this.configuration?.interfaces.inMyOwnWords?.title ?? this.defaultInMyOwnWordsTitle;\r\n }\r\n\r\n public showGuidedFlowButton(): boolean {\r\n return this.configuration.interfaces.guidedFlowButton?.enabled ?? this.defaultShowGuidedFlowButton;\r\n }\r\n\r\n public showVideoVisitsBanner(): boolean {\r\n return this.configuration.interfaces.videoVisitsBanner?.enabled ?? this.defaultShowVideoVisitsBanner;\r\n }\r\n\r\n public getSearchTermDeskTop(): string {\r\n return this.configuration.interfaces.placeholders?.searchTerm?.desktop ?? this.defaultDesktopSearchTerm;\r\n }\r\n\r\n public getSearchTermTablet(): string {\r\n return this.configuration.interfaces.placeholders?.searchTerm?.tablet ?? this.defaultTabletSearchTerm;\r\n }\r\n\r\n public getSearchTermMobile(): string {\r\n return this.configuration.interfaces.placeholders?.searchTerm?.mobile ?? this.defaultMobileSearchTerm;\r\n }\r\n\r\n public showContent(): boolean {\r\n return this.configuration.interfaces?.tenant?.dynamicSEOContent?.showContent ?? this.defaultShowContent;\r\n }\r\n\r\n public getOnlineSchedulingContent(): DynamicFilterContentDetails[] {\r\n return this.configuration.interfaces?.tenant?.dynamicSEOContent?.onlineSchedulingContent ?? this.defaultOnlineSchedulingContent;\r\n }\r\n\r\n public getMedicalGroupContent(): DynamicFilterContentDetails[] {\r\n return this.configuration.interfaces?.tenant?.dynamicSEOContent?.medicalGroupContent ?? this.defaultMedicalGroupContent;\r\n }\r\n\r\n public getSpecialtyGroupContent(): DynamicFilterContentDetails[] {\r\n return this.configuration.interfaces?.tenant?.dynamicSEOContent?.specialtyGroupContent ?? this.defaultSpecialtyGroupContent;\r\n }\r\n\r\n public getCovidSupportUseV5(): boolean {\r\n return this.configuration?.interfaces?.covidSupport?.useV5 ?? this.defaultCovidSupportUseV5;\r\n }\r\n\r\n public getDivisionCodes(): string[] {\r\n if (this.divisionCodes === undefined) {\r\n this.divisionCodes = this.configuration?.interfaces.tenant.divisions?.map((d) => d.divisionCode) ?? this.defaultDivisions;\r\n }\r\n return this.divisionCodes;\r\n }\r\n\r\n public getMarketCodes(): string[] {\r\n if (this.marketCodes === undefined) {\r\n this.marketCodes =\r\n this.configuration.interfaces.tenant.divisions?.reduce(\r\n (flat, division) => flat.concat(division.markets?.map((m) => m.marketCode) ?? []),\r\n []\r\n ) ?? [];\r\n }\r\n return this.marketCodes;\r\n }\r\n\r\n public showOnlineSchedulingFilter(): boolean {\r\n return this.configuration?.interfaces.onlineScheduling?.onlineSchedulingType?.toLowerCase() !== 'none';\r\n }\r\n\r\n public showOnlineSchedulingAllVisitFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.onlineSchedulingAllVisit?.enabled ?? this.defaultOnlineSchedulingAllVisit;\r\n }\r\n\r\n public showVideoVisitsFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.videoVisits?.enabled ?? this.defaultVideoVisitsFilter;\r\n }\r\n\r\n public showAcceptingNewPatientsFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.acceptingNewPatients?.enabled ?? this.defaultAcceptingNewPatientsFilter;\r\n }\r\n\r\n public showAvailabilityFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.availability?.enabled ?? this.defaultAvailabilityFilter;\r\n }\r\n\r\n public showSpecialtyFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.specialty?.enabled ?? this.defaultSpecialtyFilter;\r\n }\r\n\r\n public showMedicalGroupFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.medicalGroup?.enabled ?? this.defaultMedicalGroupFilter;\r\n }\r\n\r\n public showAffiliationFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.hospitalAffiliation?.enabled ?? this.defaultHospitalAffiliationFilter;\r\n }\r\n\r\n public showGenderFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.gender?.enabled ?? this.defaultGenderFilter;\r\n }\r\n\r\n public showInsuranceFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.insurance?.enabled ?? this.defaultInsuranceFilter;\r\n }\r\n\r\n public showInsuranceAcceptedFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.insurancesAccepted?.enabled ?? this.defaultInsuranceAcceptedFilter;\r\n }\r\n\r\n public showLanguageFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.language?.enabled ?? this.defaultLanguageFilter;\r\n }\r\n\r\n public showSearchRadiusFilter(): boolean {\r\n return this.configuration?.interfaces.filters?.searchRadius?.enabled ?? this.defaultSearchRadiusFilter;\r\n }\r\n\r\n public getErrorLinks(): ErrorLink[] {\r\n return this.configuration.interfaces.errorLinks ?? [];\r\n }\r\n\r\n public showEmergencyCare(): boolean {\r\n return this.configuration.interfaces.emergencyCare?.enabled ?? this.defaultEmergencyCare;\r\n }\r\n\r\n public showEmergencyCopy(): boolean {\r\n return this.configuration.interfaces.emergencyCopy?.enabled ?? this.defaultShowEmergencyCopy;\r\n }\r\n\r\n public showLegalCopy(): boolean {\r\n return this.configuration.interfaces.legalCopy?.enabled ?? this.defaultShowLegalCopy;\r\n }\r\n\r\n public getEmergencyCareLinkScheme(): ERLinkCategories[] {\r\n return this.configuration?.interfaces?.emergencyCare?.linkCategories ?? this.defaultERLinkCategories;\r\n }\r\n\r\n public showRegionalHelplineNumbers(): boolean {\r\n return this.configuration.interfaces.helplineNumbers?.enabled ?? this.defaultRegionalHelplineNumbers;\r\n }\r\n\r\n public getHelplineHeading(): string {\r\n return this.configuration.interfaces.helplineNumbers?.heading ?? this.defaultHelplineHeading;\r\n }\r\n\r\n public getHelplineHeadingInvalid(): string {\r\n return this.configuration.interfaces.invalidSearchHelplineHeading?.heading ?? this.defaultHelplineHeadingInvalid;\r\n }\r\n\r\n public getHelplineNumbers(): HelplineNumber[] {\r\n return this.configuration.interfaces.helplineNumbers?.numbers ?? this.defaultHelplineNumbers;\r\n }\r\n\r\n public getLandingPageHeader(): string {\r\n return this.configuration.interfaces.landingPage?.landingPageHeader ?? this.defaultLandingPageHeader;\r\n }\r\n\r\n public getLocationSearchCookieName(): string {\r\n return this.configuration.interfaces.search?.locationSearchCookieName ?? this.defaultLocationSearchCookieName;\r\n }\r\n public showSuggestAnEdit(): boolean {\r\n return this.configuration?.interfaces.suggestAnEdit?.enabled ?? this.defaultShowSuggestAnEdit;\r\n }\r\n\r\n public showMyProviders(): boolean {\r\n return this.configuration.interfaces.myProviders?.enabled ?? this.defaultShowMyProviders;\r\n }\r\n\r\n public myProvidersLinkScheme(): string {\r\n return this.configuration.interfaces.myProviders?.linkScheme ?? this.defaultMyProvidersLink;\r\n }\r\n\r\n public suggestAnEditLinkScheme(): string {\r\n return this.configuration?.interfaces.suggestAnEdit?.linkScheme ?? this.defaultSuggestAnEditLink;\r\n }\r\n\r\n public getLogLevel(): number {\r\n return this.configuration?.interfaces.logging?.logLevel ?? this.defaultLogLevel;\r\n }\r\n\r\n public showquickLinks(): boolean {\r\n return this.configuration.interfaces.quickLinks?.enabled ?? this.defaultShowQuickLinks;\r\n }\r\n\r\n public ShowButtonsbyRows(): boolean {\r\n return this.configuration.interfaces.quickLinks?.showButtonsbyRows ?? this.defaultShowButtonsbyRows;\r\n }\r\n\r\n public shouldEnableAutoSuggestionProviders(): boolean {\r\n return this.configuration.enableAutoSuggestionProviders ?? this.defaultEnableAutoSuggestionProviders;\r\n }\r\n\r\n public quickLinksCategories(): QuickLinksCategories[] {\r\n return this.configuration.interfaces.quickLinks?.categories ?? this.defaultQuickLinksCategories;\r\n }\r\n\r\n public showHospitalAffiliations(): boolean {\r\n return this.configuration.interfaces?.hospitalAffiliations?.enabled ?? this.defaultShowHospitalAffiliations;\r\n }\r\n\r\n public showImprovedUX(): boolean {\r\n return this.configuration.interfaces?.showImprovedUX?.enabled ?? this.defaultImprovedUX;\r\n }\r\n\r\n public showSpecialtySuggestions(): boolean {\r\n return this.configuration.interfaces?.specialtySuggestions?.enabled ?? this.defaultShowSpecialtySuggestions;\r\n }\r\n\r\n public showProviderVideoLink(): boolean {\r\n return this.configuration.interfaces?.includeVideoLinkOnSearchResults?.enabled ?? this.defaultShowProviderVideoLink;\r\n }\r\n\r\n public useLegacyAPI(): boolean {\r\n return this.configuration?.useLegacyAPI ?? this.defaultUseLegacyAPI;\r\n }\r\n\r\n public includeProviderRoleCheckBox(): boolean {\r\n return this.configuration?.includeProviderRoleCheckBox ?? this.defaultIncludeProviderRoleCheckBox;\r\n }\r\n\r\n public getProviderRolesForUrgentCare(): string[] {\r\n return this.configuration?.interfaces?.providerRolesForUrgentCare ?? this.defaultProviderRolesForUrgentCare;\r\n }\r\n\r\n public getAemFadUrlPathName(): string {\r\n return this.configuration?.aemFadUrlPathName ?? this.defaultAemUrlPathName;\r\n }\r\n public getMultipleMedicalGroupSelection(): boolean {\r\n return this.configuration?.interfaces?.multipleMedicalGroupSelection ?? this.defaultMultipleMedicalGroupSelection;\r\n }\r\n\r\n public getRedirectInAEM(): string {\r\n return this.configuration?.redirectInAEM != 'undefined' ? this.configuration?.redirectInAEM : '';\r\n }\r\n\r\n public getRedirectToLocation(): string {\r\n return this.configuration?.redirectToLocation != 'undefined' ? this.configuration?.redirectToLocation : '';\r\n }\r\n\r\n public getRedirectURLPathForFADEpic(): string {\r\n return this.configuration?.redirectToFADinEPIC != 'undefined' ? this.configuration?.redirectToFADinEPIC : '';\r\n }\r\n public getRedirectToFADinCerner(): string {\r\n return this.configuration?.redirectToFADinCerner != 'undefined' ? this.configuration?.redirectToFADinCerner : '';\r\n }\r\n public getRedirectToFALinCerner(): string {\r\n return this.configuration?.redirectToFALinCerner != 'undefined' ? this.configuration?.redirectToFALinCerner : '';\r\n }\r\n\r\n public getRedirectURLPathForFALEpic(): string {\r\n return this.configuration?.redirectToFALinEPIC != 'undefined' ? this.configuration?.redirectToFALinEPIC : '';\r\n }\r\n\r\n public showLogoLegend(): boolean {\r\n return this.configuration?.interfaces?.search?.medGroupLegend?.show ?? this.defaultMedGroupLegendShow;\r\n }\r\n\r\n public getLogoLegendHeader(): string {\r\n return this.configuration?.interfaces?.search?.medGroupLegend?.header ?? this.defaultMedGroupLegendHeader;\r\n }\r\n\r\n public getAutoSuggLocationSearchParams(): ILocationAutoSuggSearchParams {\r\n return this.configuration.interfaces.search?.autoSuggLocationSearchParams ?? this.defaultAutoSuggLocationSearchParams;\r\n }\r\n\r\n public getAutoCheckBoxSelectionSpecalities(): string[] {\r\n return this.configuration?.interfaces?.autoCheckBoxSelectionSpecialities ?? this.defaultAutoCheckBoxSelectionSpecialities;\r\n }\r\n\r\n public showTitleTag(): ITitleTag {\r\n return this.configuration.interfaces?.titleTag ?? this.deafaultTitletags;\r\n }\r\n\r\n public showPatientAgeRestrictions(): boolean {\r\n return this.configuration.interfaces?.showPatientAgeRestrictions?.enabled ?? this.defaultShowPatientAgeRestrictions;\r\n }\r\n\r\n public getAutoSuggestionLoadingMessage(): string {\r\n return this.configuration.interfaces?.search?.autoSuggestionLoadingMessage ?? this.defaultAutoSuggestionLoadingMessage;\r\n }\r\n\r\n public getIsFiltersLeftSidePanelRequired(): boolean {\r\n if (this.configuration?.interfaces?.search?.isFiltersLeftSidePanelRequired != null) {\r\n return this.configuration.interfaces.search.isFiltersLeftSidePanelRequired;\r\n } else {\r\n return this.defaultIsFiltersLeftSidePanelRequired;\r\n }\r\n }\r\n\r\n public useNewRatingsEndpoint(): boolean {\r\n return (\r\n this.configuration.interfaces?.tenant?.providerRatings?.useNewRatingsEndpoint ??\r\n this.defaultProviderRatings.defaultUseNewRatingsEndpoint\r\n );\r\n }\r\n\r\n public getPrintablePdfFooter(): string {\r\n return this.configuration.interfaces?.printablePdf?.footer ?? this.defaultPrintablePdfFooter;\r\n }\r\n\r\n public getPrintablePdfHeaderImageUrl(): string {\r\n return this.configuration.interfaces?.printablePdf?.headerImagePath ?? this.defaultPrintablePdfHeaderUrl;\r\n }\r\n\r\n public showPrintablePdf(): boolean {\r\n return this.configuration.interfaces?.printablePdf?.enabled ?? this.defaultShowPdfPrint;\r\n }\r\n\r\n public showSearchButton():boolean{\r\n return this.configuration.interfaces.searchButton?.iconButton ?? this.defaultShowSearchButton;\r\n }\r\n\r\n public getSearchButton():string{\r\n if(this.configuration.interfaces?.searchButton?.enabled && this.configuration.interfaces?.searchButton?.text){\r\n return this.configuration.interfaces?.searchButton?.text;\r\n }\r\n return this.defaultSearchButton;\r\n }\r\n\r\n public getShowUpdatedProviderDetailPageUX(): boolean {\r\n return this.configuration?.showUpdatedProviderDetailPageUX ?? this.showUpdatedProviderDetailPageUX;\r\n }\r\n\r\n public getShowFuzzyMatch(): boolean {\r\n return this.configuration?.isFuzzyMatch ?? this.defaultIsFuzzyMatch;\r\n }\r\n\r\n public getToKnowDisclaimer(): string {\r\n return this.configuration?.getToKnowDisclaimer ?? this.getToKnowDisclaimerText;\r\n }\r\n\r\n public acceptQueryString(): boolean {\r\n if (this.useLegacyAPI())\r\n {return this.configuration?.interfaces?.search?.acceptStarRatingQuery;}\r\n }\r\n\r\n\r\n\r\n /**\r\n * Extract all keys from fad-configuration.json file\r\n * @param {*} jsonObj\r\n * @param {Array<string>} [keyList=[]]\r\n * @returns {Array<string>}\r\n * @memberof AppComponent\r\n */\r\n public extractKeys(jsonObj: unknown, keyList: Array<string> = []): Array<string> {\r\n const results = keyList;\r\n Object.keys(jsonObj).forEach((key: string) => {\r\n const value: unknown = jsonObj[key];\r\n results.push(key);\r\n if (value instanceof Object) {\r\n this.extractKeys(value, keyList);\r\n }\r\n });\r\n return results;\r\n }\r\n\r\n /**\r\n * Find missing keys from fad-configuration.json file.\r\n * @memberof AppComponent\r\n */\r\n public findMissingKeys(searchKeys: Array<string>, fadConfigsJson: FadConfigurationData): Array<string> {\r\n const keys = this.extractKeys(fadConfigsJson);\r\n const missingKeys: Array<string> = [];\r\n searchKeys.forEach((keyword: string) => {\r\n if (!keys.includes(keyword)) {\r\n missingKeys.push(keyword);\r\n }\r\n });\r\n\r\n return missingKeys;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { LocationByIpResult, LocationConverter, LocationCookieData, SelectedLocation } from '../models/location';\r\nimport { Observable, of } from 'rxjs';\r\nimport { ApiResponse } from '../utils/api-response';\r\nimport { tap } from 'rxjs/operators';\r\nimport { LocationService } from './location.service';\r\nimport { ConfigurationService } from './configuration.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CookieService {\r\n locationSearchCookieName: string;\r\n constructor(private locationService: LocationService, private configurationService: ConfigurationService) {\r\n this.locationSearchCookieName = this.configurationService.getLocationSearchCookieName();\r\n }\r\n\r\n getRawLocationCookieFromBrowser(): string {\r\n return document.cookie.split(';').find((cookie: string) => cookie.trim().includes(`${this.locationSearchCookieName}=`));\r\n }\r\n\r\n addLocationCookieToBrowser(location: LocationCookieData): void {\r\n const key = this.locationSearchCookieName;\r\n const locationString = encodeURIComponent(JSON.stringify(location));\r\n document.cookie = `${key}=${locationString};max-age=${60 * 60 * 24 * 30};path=/`;\r\n }\r\n\r\n createLocationCookie(): Observable<ApiResponse<LocationByIpResult>> {\r\n if (!this.configurationService.getLocationRequiredDefaultValue()) {\r\n // No need to get user's location if it's not required.\r\n return of(null);\r\n }\r\n const locationCookie = this.getLocationCookieFromBrowser();\r\n\r\n if (!locationCookie || (locationCookie && locationCookie.name === '')) {\r\n return this.locationService.getLocationByIP().pipe(\r\n tap((response: ApiResponse<LocationByIpResult>) => {\r\n const location = response.result.location;\r\n this.addLocationCookieToBrowser(location);\r\n })\r\n );\r\n }\r\n return of(null);\r\n }\r\n\r\n getLocationCookieFromBrowser(): LocationCookieData {\r\n const rawLocationCookie = this.getRawLocationCookieFromBrowser();\r\n const unparsedCookie = rawLocationCookie?.replace(`${this.locationSearchCookieName}=`, '');\r\n\r\n if (unparsedCookie && !unparsedCookie.trim().includes('undefined')) {\r\n return JSON.parse(decodeURIComponent(unparsedCookie));\r\n }\r\n }\r\n\r\n createSelectedLocationFromLocationCookie(): SelectedLocation {\r\n const locationCookie: LocationCookieData = this.getLocationCookieFromBrowser();\r\n if (!locationCookie) {\r\n return null;\r\n }\r\n\r\n return LocationConverter.convertTo(locationCookie);\r\n }\r\n\r\n isBannerDisabled(): boolean {\r\n return document.cookie.split(';').findIndex((c) => c.trim().startsWith('BannerDisabled=')) !== -1;\r\n }\r\n\r\n setBannerDisabledCookie() {\r\n document.cookie = `BannerDisable=true;max-age=${60 * 60 * 24};path=/`;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { FadEvent } from '../models/fad-event';\r\nimport { LogService } from '../services/log.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EventPublisherService {\r\n private eventName = 'CommonSpirit:FindADoctor';\r\n\r\n constructor(private logService: LogService) {}\r\n\r\n publish(event: FadEvent) {\r\n this.logService.debug('Event publish started.', this.eventName, event);\r\n window.dispatchEvent(new CustomEvent(this.eventName, { detail: event }));\r\n }\r\n}\r\n","import { Inject, Injectable } from '@angular/core';\r\nimport { ROOT_ELEMENT } from '../utils/utils';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FadLinkService {\r\n private static CsFadElementName = 'cs-fad';\r\n private static FadSaasWebElementName = 'fad-saas';\r\n\r\n public isFadSpa: boolean;\r\n public baseUrl: string;\r\n\r\n constructor(@Inject(ROOT_ELEMENT) private rootEl: HTMLElement) {\r\n if (rootEl) {\r\n this.isFadSpa = this.isSelfHosted() || this.isFadSaasAngularElement();\r\n this.baseUrl =\r\n rootEl.getAttribute('fad-base-url') ??\r\n rootEl.getAttribute('fadBaseUrl') ??\r\n rootEl.getAttribute('base-url') ??\r\n rootEl.getAttribute('baseUrl') ??\r\n '';\r\n }\r\n }\r\n\r\n public createUrlWithBase(url: string): string {\r\n url = url.trimTrailingForwardSlash();\r\n if (this.isFadSpa) {\r\n return url;\r\n }\r\n return `${this.baseUrl}/${url.trimForwardSlashes()}`;\r\n }\r\n\r\n public isSelfHosted(): boolean {\r\n return this.rootEl.tagName.toLowerCase() === FadLinkService.CsFadElementName;\r\n }\r\n\r\n public isFadSaasAngularElement(): boolean {\r\n return this.rootEl.tagName.toLowerCase() === FadLinkService.FadSaasWebElementName;\r\n }\r\n}\r\n","import { HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, Subject, BehaviorSubject } from 'rxjs';\r\nimport { SelectedLocation } from '../models/location';\r\nimport { FacetSummary, FiltersModel } from '../models/filters';\r\nimport { Provider } from '../models/provider';\r\nimport { SearchFilter } from '../models/search-filter';\r\nimport { ApiResponse } from '../utils/api-response';\r\nimport './../utils/http-params-prototypes';\r\nimport { Params } from '@angular/router';\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport abstract class FilterService {\r\n public showGuidedFlow = false;\r\n private displayDialog = new Subject<boolean>();\r\n\r\n private processing = new BehaviorSubject<boolean>(false);\r\n isProcessing$ = this.processing.asObservable();\r\n\r\n displayDialog$ = this.displayDialog.asObservable();\r\n\r\n setProcessingState(state:boolean) {\r\n this.processing.next(state);\r\n }\r\n\r\n abstract getFilterStates(queryParams: Params, filtersModel: FiltersModel, medGroupCode?: string, searchstring?: string): FiltersModel;\r\n\r\n abstract createQueryParams(filtersModel: Partial<FiltersModel>): Params | null | undefined;\r\n\r\n abstract getFacetInfo(searchFilters: SearchFilter, filtersModel: FiltersModel): FiltersModel;\r\n\r\n abstract convertFilterModelToQueryString(\r\n searchTerm: string,\r\n locationInfo: SelectedLocation,\r\n filtersModel: FiltersModel,\r\n serachFrom: string,\r\n searchFilters?: SearchFilter,\r\n pageNumber?: number\r\n ): [string, HttpParams];\r\n\r\n abstract getTypedFilterSearchResults(\r\n searchTerm: string,\r\n locationInfo: SelectedLocation,\r\n filtersModel: FiltersModel,\r\n serachFrom: string,\r\n searchFilters?: SearchFilter,\r\n pageNumber?: number,\r\n searchSessionId?: string,\r\n includeProviderRole?: boolean\r\n ): Observable<ApiResponse<ProviderSearchResponse>>;\r\n\r\n abstract getFilteredSearchResults(\r\n searchTerm: string,\r\n locationInfo: SelectedLocation,\r\n filtersModel: FiltersModel,\r\n serachFrom: string,\r\n searchFilters?: SearchFilter,\r\n pageNumber?: number\r\n );\r\n\r\n abstract splitAndMapQueryString(queryString: string): FacetSummary[];\r\n\r\n abstract handleManualProviderRoleSelectionProcess(filtersModel: FiltersModel);\r\n\r\n handleDialogDisplay(display: boolean) {\r\n this.displayDialog.next(display);\r\n }\r\n}\r\n\r\nexport interface ProviderSearchResponse extends SearchFilter {\r\n providers: Provider[];\r\n}\r\nexport interface Value {\r\n label: string;\r\n value: string;\r\n count: number;\r\n selected: boolean;\r\n}\r\n\r\nexport interface FacetResponse {\r\n type: string;\r\n values: Value[];\r\n}\r\n\r\nexport interface ProviderSearchResponse {\r\n searchDistanceMiles: number;\r\n currentPageNumber: number;\r\n pageSize: number;\r\n pages: number;\r\n isMoreDataAvailable: boolean;\r\n totalResults: number;\r\n searchTerm: string;\r\n sortBy: number;\r\n sortByName: string;\r\n facets: FacetResponse[];\r\n providers: Provider[];\r\n recommendations: [];\r\n}\r\n\r\nexport interface LocationSearchRequest {\r\n locationId: string;\r\n searchSessionId: string;\r\n page: number;\r\n distance: number;\r\n sortby: number;\r\n includeProviderRoleType: boolean;\r\n patients: string;\r\n languages: string;\r\n bookOnline: string;\r\n gender: string;\r\n videoCalls: string;\r\n specialties?: string;\r\n medGroups?: string;\r\n allVisits: string;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { LocationByIpResult, LocationDetailResult, LocationSuggestionResult, SelectedLocation } from '../models/location';\r\nimport { ApiResponse } from '../utils/api-response';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport abstract class LocationService {\r\n abstract getTypedLocationSuggestions(location: string, sessionToken?: string): Observable<ApiResponse<LocationSuggestionResult[]>>;\r\n\r\n abstract getLocationSuggestions(query: string, sessionToken?: string);\r\n\r\n abstract getLocationByIP(): Observable<ApiResponse<LocationByIpResult>>;\r\n\r\n abstract getTypedLocationDetail(placeId: string): Observable<ApiResponse<LocationDetailResult>>;\r\n\r\n abstract getLocationDetail(placeId: string): Observable<ApiResponse<LocationDetailResult>>;\r\n\r\n abstract queryLocation(location: string): Observable<SelectedLocation>;\r\n}\r\n","export enum LogLevel {\r\n All = 0,\r\n Debug = 1,\r\n Info = 2,\r\n Warn = 3,\r\n Error = 4,\r\n Fatal = 5,\r\n Off = 6\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ConfigurationService } from './configuration.service';\r\nimport { LogLevel } from '../models/log-level';\r\nimport { FadConfigurationData } from '../models/configuration';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LogService {\r\n configLogLevel: number;\r\n constructor(private configService: ConfigurationService) {}\r\n\r\n writeToLog(message: string, logLevel: number, ...optionalParams: unknown[]): void {\r\n this.configLogLevel = this.configService.getLogLevel();\r\n if (this.configLogLevel <= logLevel) {\r\n switch (logLevel) {\r\n case LogLevel.Debug:\r\n console.debug(message, logLevel, optionalParams);\r\n break;\r\n case LogLevel.Info:\r\n console.info(message, logLevel, optionalParams);\r\n break;\r\n case LogLevel.Warn:\r\n console.warn(message, logLevel, optionalParams);\r\n break;\r\n case LogLevel.Error:\r\n console.error(message, logLevel, optionalParams);\r\n break;\r\n default:\r\n console.log(message, logLevel, optionalParams);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n debug(msg: string, ...optionalParams: unknown[]): void {\r\n this.writeToLog(msg, LogLevel.Debug, optionalParams);\r\n }\r\n\r\n info(msg: string, ...optionalParams: unknown[]): void {\r\n this.writeToLog(msg, LogLevel.Info, optionalParams);\r\n }\r\n\r\n warn(msg: string, ...optionalParams: unknown[]): void {\r\n if (optionalParams[1]) {\r\n const config = optionalParams[1] as FadConfigurationData;\r\n if (config?.interfaces?.logging?.logLevel <= LogLevel.Warn) {\r\n console.warn(msg, LogLevel.Warn, optionalParams[0]);\r\n }\r\n } else {this.writeToLog(msg, LogLevel.Warn, optionalParams);}\r\n }\r\n\r\n error(msg: string, ...optionalParams: unknown[]): void {\r\n this.writeToLog(msg, LogLevel.Error, optionalParams);\r\n }\r\n\r\n fatal(msg: string, ...optionalParams: unknown[]): void {\r\n this.writeToLog(msg, LogLevel.Fatal, optionalParams);\r\n }\r\n\r\n log(msg: string, ...optionalParams: unknown[]): void {\r\n this.writeToLog(msg, LogLevel.All, optionalParams);\r\n }\r\n}\r\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { ProviderRating } from '../models/provider-rating';\r\nimport { RuntimeConfiguration } from './configuration-injection.service';\r\nimport { ConfigurationService } from './configuration.service';\r\nimport { LogService } from '../services/log.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProviderRatingService {\r\n apiOptions: { headers: HttpHeaders };\r\n runtimeConfig: RuntimeConfiguration;\r\n\r\n constructor(public http: HttpClient, private logService: LogService, private configurationService: ConfigurationService) {\r\n this.runtimeConfig = this.configurationService.getRuntimeConfiguration();\r\n }\r\n\r\n getProviderRatings(npis: number[] | string[], includeComments = false): Observable<ProviderRating[]> {\r\n const useLegacyAPI = this.configurationService.useLegacyAPI();\r\n const useNewRatingsEndpoint = this.configurationService.useNewRatingsEndpoint();\r\n if (useLegacyAPI || !useNewRatingsEndpoint) {\r\n return this.http.post<ProviderRating[]>(this.runtimeConfig.pressGaneyRatingsUrl, npis, this.apiOptions).pipe(\r\n catchError((err: Error) => {\r\n this.logService.error(err.toString());\r\n return of(Array<ProviderRating>());\r\n })\r\n );\r\n }\r\n\r\n if (this.runtimeConfig.newApiBaseUrl) {\r\n const ratingsUrl = `${this.runtimeConfig.newApiBaseUrl}getratings?showComments=${includeComments ? 'true' : 'false'}`;\r\n return this.http.post<ProviderRating[]>(ratingsUrl, npis, this.apiOptions).pipe(\r\n catchError((err: Error) => {\r\n this.logService.error(err.toString());\r\n return of(Array<ProviderRating>());\r\n })\r\n );\r\n }\r\n\r\n return of(Array<ProviderRating>());\r\n }\r\n}\r\n","import { HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { KeywordSuggestionResponse, Provider, ProviderSuggestionResponse, ProviderSuggestionV2Response } from '../models/provider';\r\nimport { ApiResponse } from '../utils/api-response';\r\nimport '../utils/http-params-prototypes';\r\nimport { LocationSearchRequest, ProviderSearchResponse } from './filter.service';\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport abstract class ProviderService {\r\n abstract getProviderDetailsFull(npi: number | string, page?: number, pageSize?: number): Observable<ApiResponse<ProviderSearchResponse>>;\r\n\r\n abstract getTypedProviderSuggestions(query: string, suggestionType: string): Observable<ApiResponse<ProviderSuggestionResponse>>;\r\n\r\n abstract getTypedProviderSuggestionsV2(query: string): Observable<ApiResponse<ProviderSuggestionV2Response>>;\r\n\r\n abstract getTypedKeywordSuggestions(query: string): Observable<ApiResponse<KeywordSuggestionResponse>>;\r\n\r\n abstract getTypedFilterSearchResults<T>(url: string, params: HttpParams): Observable<T>;\r\n\r\n abstract getFilteredSearchResults(url: string, params?: HttpParams);\r\n\r\n abstract getDocAsapIds();\r\n\r\n abstract getLocationDetailsbyLocationId<T>(request: LocationSearchRequest): Observable<ApiResponse<ProviderSearchResponse>>;\r\n\r\n abstract normalizeProviderBeforeScheduling(provider: Provider): Provider;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { EventManager } from '@angular/platform-browser';\r\nimport { ReplaySubject, Subject } from 'rxjs';\r\nimport { map, startWith, tap } from 'rxjs/operators';\r\n\r\nexport enum ViewPortSize {\r\n Desktop,\r\n Tablet,\r\n Mobile\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ResizeService {\r\n viewPortChanged: ReplaySubject<ViewPortSize> = new ReplaySubject<ViewPortSize>(1);\r\n\r\n constructor(private eventManager: EventManager) {\r\n this.resizeSubject = new Subject<Window>();\r\n window.addEventListener('resize', this.onResize.bind(this));\r\n this.resizeSubject\r\n .asObservable()\r\n .pipe(\r\n startWith(window),\r\n map((window: Window) => window.innerWidth),\r\n tap((windowWidth: number) => {\r\n this.setViewportFlags(windowWidth);\r\n })\r\n )\r\n .subscribe();\r\n }\r\n\r\n private resizeSubject: Subject<Window>;\r\n\r\n /*\r\n Make these private and only return events that tell the consumer the current viewport.\r\n This will minimize the Angular change detection as we will only run component change detection\r\n when the viewport changes from one viewport to another.\r\n */\r\n public isDesktopViewport: boolean;\r\n public isTabletViewport: boolean;\r\n public isMobileViewport: boolean;\r\n\r\n private setViewportFlags(windowWidth: number) {\r\n let viewPortSize: ViewPortSize;\r\n if (windowWidth > 1024) {\r\n if (!this.isDesktopViewport) {\r\n viewPortSize = ViewPortSize.Desktop;\r\n }\r\n this.isDesktopViewport = true;\r\n this.isMobileViewport = this.isTabletViewport = false;\r\n } else if (windowWidth > 767 && windowWidth < 1025) {\r\n if (!this.isTabletViewport) {\r\n viewPortSize = ViewPortSize.Tablet;\r\n }\r\n this.isTabletViewport = true;\r\n this.isDesktopViewport = this.isMobileViewport = false;\r\n } else {\r\n if (!this.isMobileViewport) {\r\n viewPortSize = ViewPortSize.Mobile;\r\n }\r\n this.isMobileViewport = true;\r\n this.isDesktopViewport = this.isTabletViewport = false;\r\n }\r\n\r\n if (viewPortSize !== undefined) {\r\n this.onViewPortChanged(viewPortSize);\r\n }\r\n }\r\n\r\n public onViewPortChanged(viewPortSize: ViewPortSize) {\r\n this.viewPortChanged.next(viewPortSize);\r\n }\r\n\r\n private onResize(event: UIEvent) {\r\n this.resizeSubject.next(event.target as Window);\r\n }\r\n}\r\n","import { Inject, Injectable } from '@angular/core';\r\nimport { Title, Meta } from '@angular/platform-browser';\r\nimport { SelectedLocation } from '../models/location';\r\nimport { Provider, ProviderInterfaceHelper } from '../models/provider';\r\nimport { ConfigurationService } from './configuration.service';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { ActivatedRouteSnapshot } from '@angular/router';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TitleTagHandlerService {\r\n marketCode = '';\r\n isTagEnabled = false;\r\n canonicals = true;\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/explicit-module-boundary-types\r\n constructor(private titleService: Title, private metaService: Meta, private configService: ConfigurationService, @Inject(DOCUMENT) private dom) {\r\n const titleTag = this.configService.showTitleTag();\r\n this.canonicals = this.configService.injectCanonicals();\r\n if (Object.keys(titleTag).length > 0) {\r\n this.isTagEnabled = titleTag.enable;\r\n this.marketCode = titleTag.marketCode;\r\n }\r\n }\r\n\r\n setPageTitle(searchTerm: string, selectedLocation: string, routeSnapshot: ActivatedRouteSnapshot) {\r\n searchTerm = searchTerm?.replace(/-+/g, ' ').toTitleCase();\r\n if (selectedLocation) {\r\n selectedLocation = this.formatLocation(selectedLocation);\r\n }\r\n\r\n if (this.isTagEnabled) {\r\n let title = '';\r\n\r\n if (searchTerm && selectedLocation) {\r\n title = `${searchTerm} in ${selectedLocation} `;\r\n } else if (searchTerm && !selectedLocation) {\r\n title = `${searchTerm} `;\r\n } else if (!searchTerm && selectedLocation) {\r\n title = `Doctors in ${selectedLocation} `;\r\n } else {\r\n title = 'Find a doctor ';\r\n }\r\n \r\n title = this.setSearchToggleFilers(title, routeSnapshot);\r\n title = this.setSearchFilterTitle(title, routeSnapshot);\r\n\r\n title = title.replace(/,(?=\\s*$)/, '');\r\n title += `| ${this.marketCode}`;\r\n\r\n this.titleService.setTitle(title);\r\n this.setPageMeta(title);\r\n }\r\n }\r\n\r\n\r\n setSearchToggleFilers(title: string, routeSnapshot: ActivatedRouteSnapshot):string {\r\n if (routeSnapshot?.queryParamMap) {\r\n if(routeSnapshot.queryParamMap.get('bookonline')){\r\n title += 'Online Scheduling, ';\r\n }\r\n if(routeSnapshot.queryParamMap.get('videovisits')){\r\n title += 'Video Visits, ';\r\n }\r\n if(routeSnapshot.queryParamMap.get('acceptingnew')){\r\n title += 'Accepting New Patients, ';\r\n }\r\n if(routeSnapshot.queryParamMap.get('allVisits')){\r\n title += 'Online Scheduling - All Visits, ';\r\n }\r\n }\r\n return title;\r\n }\r\n\r\n setSearchFilterTitle(title: string, routeSnapshot: ActivatedRouteSnapshot): string{\r\n if (routeSnapshot?.queryParamMap) {\r\n if(routeSnapshot.paramMap.get('specialty')){\r\n title += `${this.formatFilters(routeSnapshot.paramMap.get('specialty'))}, `;\r\n }\r\n if(routeSnapshot.queryParamMap.get('specialties')){\r\n title += `${this.formatFilters(decodeURIComponent(routeSnapshot.queryParamMap.get('specialties')).split('|').join(', '))}, `;\r\n }\r\n if(routeSnapshot.paramMap.get('medGroup')) {\r\n title += `${this.formatFilters(decodeURIComponent(routeSnapshot.paramMap.get('medGroup')).split('|').join(', '))}, `;\r\n }\r\n if(routeSnapshot.queryParamMap.get('gender')){\r\n title += `${this.formatFilters(routeSnapshot.queryParamMap.get('gender'))}, `;\r\n }\r\n if(routeSnapshot.queryParamMap.get('languages')){\r\n title += `${this.formatFilters(decodeURIComponent(routeSnapshot.queryParamMap.get('languages')).split('|').join(', '))}, `;\r\n }\r\n }\r\n return title;\r\n }\r\n\r\n formatFilters(param: string): string{\r\n if (param.includes('-')) {\r\n const splitParam = param.split('-');\r\n const titleCaseParam = splitParam.map(x => x.toTitleCase());\r\n return titleCaseParam.join(' ');\r\n }\r\n return param.toTitleCase();\r\n }\r\n\r\n\r\n setPageTitleforNoRecords(location: SelectedLocation): void {\r\n let title = '';\r\n if (location) {\r\n title = `Find a doctor in ${location?.city}, ${location?.state} | ${this.configService.getMarketCodes().toString().toUpperCase()}`;\r\n } else {\r\n title = `Find a doctor | ${this.configService.getMarketCodes().toString().toUpperCase()}`;\r\n }\r\n this.titleService.setTitle(title);\r\n }\r\n\r\n setProviderPageTitle(provider: Provider): void {\r\n if (this.isTagEnabled) {\r\n let cityStateZip = '';\r\n if (provider.offices[0]?.addresses.length > 0) {\r\n cityStateZip = `${provider.offices[0].addresses[0].city}, ${provider.offices[0].addresses[0].state?.toUpperCase()} ${\r\n provider.offices[0].addresses[0].zip\r\n }`;\r\n }\r\n\r\n this.updateProviderFullName(provider);\r\n const primarySpec = provider.primarySpecialty ? `${' | '+provider.primarySpecialty?.toTitleCase() +' | '}`: ' | ';\r\n const location = cityStateZip ?\r\n `${provider.displayFullName}${primarySpec}${cityStateZip} | ${this.marketCode}`:\r\n `${provider.displayFullName}${primarySpec}${this.marketCode}`;\r\n this.titleService.setTitle(location);\r\n this.setProviderDetailsMeta(provider, location);\r\n }\r\n\r\n }\r\n\r\n updateProviderFullName(provider: Provider): void {\r\n if(!this.configService.showProviderPrefix())\r\n {\r\n provider.displayFullName = ProviderInterfaceHelper.removeProviderNamePrefix(provider.firstName, provider.lastName, provider.degree);\r\n }\r\n }\r\n\r\n setPageMeta(title: string): void {\r\n if (this.configService.injectCanonicals()) {\r\n this.setMetaProperty('og:title', title );\r\n this.setMetaProperty('og:site_name', this.marketCode );\r\n this.setMetaProperty('twitter:site', this.marketCode);\r\n }\r\n }\r\n\r\n setProviderDetailsMeta(provider: Provider, providerTitle: string): void {\r\n if (this.configService.injectCanonicals()) {\r\n const discription = provider.personalInfo?.split('</p>')[0]?.replace(/<[^>]*>/g, '');\r\n this.setMetaName('description', discription);\r\n this.setMetaProperty('og:description', discription );\r\n this.setMetaProperty('og:title', providerTitle );\r\n this.setMetaProperty('twitter:card', 'summary_large_image');\r\n this.setMetaProperty('og:site_name', this.marketCode );\r\n this.setMetaProperty('twitter:site', this.marketCode );\r\n this.setMetaProperty('og:image', provider.images[0]?.url);\r\n }\r\n }\r\n\r\n setNoFollowMetaPage(): void {\r\n if (this.configService.injectCanonicals()) {\r\n this.setMetaName('robots', 'noindex,nofollow');\r\n }\r\n }\r\n\r\n removeMetaNoIndexName(): void {\r\n if (this.configService.injectCanonicals()) {\r\n this.metaService.removeTag('name=\\'robots\\'');\r\n }\r\n }\r\n\r\n setMetaName(metaName: string, metaContent: string): void {\r\n const metaDescription = this.dom.querySelector(`meta[name='${metaName}']`) || null;\r\n if (metaDescription === null) {\r\n this.metaService.addTag({ name: metaName, content: metaContent });\r\n } else {\r\n this.metaService.updateTag({ name: metaName, content: metaContent });\r\n }\r\n }\r\n\r\n setMetaProperty(metaProperty: string, metaContent: string): void {\r\n const metaDescription = this.dom.querySelector(`meta[property='${metaProperty}']`) || null;\r\n if (metaDescription === null) {\r\n this.metaService.addTag({ property: metaProperty, content: metaContent });\r\n } else {\r\n this.metaService.updateTag({ property: metaProperty, content: metaContent });\r\n }\r\n }\r\n\r\n setPageCanonicals(url: string): void {\r\n if(this.configService.injectCanonicals()) {\r\n const head = this.dom.getElementsByTagName('head')[0];\r\n let element = this.dom.querySelector('link[rel=\\'canonical\\']') || null;\r\n if (element === null) {\r\n element = this.dom.createElement('link');\r\n head.appendChild(element);\r\n }\r\n element.setAttribute('rel','canonical');\r\n element.setAttribute('href',url);\r\n this.setMetaProperty('og:url', url);\r\n }\r\n }\r\n\r\n removePageCanonicals(strUrl: string): void {\r\n try {\r\n if(this.configService.injectCanonicals()) {\r\n const element = this.dom.querySelectorAll('link[rel=\\'canonical\\']') || null;\r\n if (element != null) {\r\n element.forEach(x => {\r\n if (x.href === strUrl) {\r\n x.remove();\r\n }\r\n });\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n formatLocation(selectedLocation: string): string {\r\n if (selectedLocation.includes('-')) {\r\n const splitLocation = selectedLocation.split('-');\r\n if (splitLocation.length > 1) {\r\n const state = `${splitLocation[splitLocation.length - 1].toUpperCase()}`;\r\n const city = splitLocation.slice(0, splitLocation.length - 1).join(' ');\r\n selectedLocation = `${city.toTitleCase()}, ${state.toUpperCase()}`;\r\n }\r\n }\r\n return selectedLocation;\r\n }\r\n\r\n setErrorPageTagTitle(titleStr: string): void {\r\n const titleString = `${titleStr} | ${this.marketCode}`;\r\n this.titleService.setTitle(titleString);\r\n const metaRobots = this.dom.querySelector('meta[name=\\'robots\\']') || null;\r\n if(metaRobots === null) {\r\n this.metaService.addTag({ name: 'robots', content: 'noindex, nofollow' });\r\n }\r\n else {\r\n this.metaService.updateTag({ name: 'robots', content: 'noindex, nofollow' });\r\n }\r\n \r\n const metaGoogleBot = this.dom.querySelector('meta[name=\\'googlebot\\']') || null;\r\n if(metaGoogleBot === null) {\r\n this.metaService.addTag({ name: 'googlebot', content: 'noindex, nofollow' });\r\n }\r\n else {\r\n this.metaService.updateTag({ name: 'googlebot', content: 'noindex, nofollow' });\r\n }\r\n }\r\n}\r\n","import { Observable, of } from 'rxjs';\r\n\r\nexport class ApiResponseCreator {\r\n public static create<T>(object: T, isValid = true): ApiResponse<T> {\r\n return {\r\n result: object,\r\n isValid\r\n } as ApiResponse<T>;\r\n }\r\n\r\n public static createObservable<T>(object: T, isValid = true): Observable<ApiResponse<T>> {\r\n return of(ApiResponseCreator.create(object, isValid));\r\n }\r\n}\r\n\r\nexport interface ApiResponse<T> {\r\n errors: string[];\r\n isValid: boolean;\r\n warnings: string[];\r\n result: T;\r\n}\r\n","import { HttpParams } from '@angular/common/http';\r\n\r\ndeclare module '@angular/common/http' {\r\n interface HttpParams {\r\n setSanitizedKey(key: string, value: string | number): HttpParams;\r\n setNonString(key: string, value: number | boolean): HttpParams;\r\n setKeyValue(keyValue: string): HttpParams;\r\n setPipeDelimitedArray(key: string, values: string[] | number[]): HttpParams;\r\n setNonNull(key: string, value: string | number | boolean): HttpParams;\r\n getNumber(key: string): number;\r\n getBoolean(key: string): boolean;\r\n }\r\n}\r\n\r\nHttpParams.prototype.setSanitizedKey = function(this: HttpParams, key: string, value: string | number): HttpParams {\r\n key = key.replace(/=$/, '').replace(/^&/, '');\r\n return this.set(key, value.toString());\r\n};\r\n\r\nHttpParams.prototype.setNonString = function(this: HttpParams, key: string, value: number | boolean): HttpParams {\r\n return this.set(key, value.toString());\r\n};\r\n\r\nHttpParams.prototype.setKeyValue = function(this: HttpParams, keyValue: string): HttpParams {\r\n const array = keyValue.split('=');\r\n return this.setSanitizedKey(array[0], array[1]);\r\n};\r\n\r\nHttpParams.prototype.setPipeDelimitedArray = function(this: HttpParams, key: string, values: string[] | number[]): HttpParams {\r\n if (!values || values.length === 0) {\r\n return this;\r\n }\r\n return this.set(key, values.join('|'));\r\n};\r\n\r\nHttpParams.prototype.setNonNull = function(this: HttpParams, key: string, value: string | number | boolean): HttpParams {\r\n if (value === null || value === undefined) {\r\n return this;\r\n }\r\n return this.set(key, value.toString());\r\n};\r\n\r\nexport {};\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cs-scheduling',\r\n templateUrl: './scheduling.component.html'\r\n})\r\nexport class SchedulingComponent {\r\n}\r\n","<p>scheduling works!</p>\r\n","import { Type } from '@angular/core';\r\nimport { AppComponent } from '../app.component';\r\nimport { SearchLandingComponent } from '../pages/search-landing/search-landing.component';\r\nimport { ProviderDetailsComponent } from '../pages/provider-details/provider-details.component';\r\nimport { SchedulingComponent } from '../pages/scheduling/scheduling.component';\r\nimport { ProviderCardComponent } from '../components/provider-card/provider-card.component';\r\nimport { FindDoctorWidgetComponent } from '../pages/find-doctor-widget/find-doctor-widget.component';\r\nimport { VaccinationLocationComponent } from '../pages/vaccination-location/vaccination-location.component';\r\nimport { ResultCardComponent } from '../components/result-card/result-card.component';\r\nimport { FadLiteSearchLandingComponent } from '../pages/fad-lite-search-landing/fad-lite-search-landing.component';\r\n\r\nexport function getBaseLocation(root: HTMLElement): string {\r\n const base = root.getAttribute('base-url')?.replace(/^\\/+|\\/+$/g, '');\r\n return `/${base ?? ''}`;\r\n}\r\n\r\nexport function getRootElement(): HTMLElement {\r\n const csFadEl = document.body.querySelector<HTMLElement>('cs-fad');\r\n if (csFadEl) {\r\n return csFadEl;\r\n } else {\r\n const angularElement = FadAngularElements.find((e: [string, Type<any>]) => !!document.body.querySelector<HTMLElement>(e[0]));\r\n return angularElement ? document.body.querySelector<HTMLElement>(angularElement[0]) : null;\r\n }\r\n}\r\n\r\nexport const FadAngularElements: [string, Type<any>][] = [\r\n ['fad-saas', AppComponent],\r\n ['fad-landing-page', SearchLandingComponent],\r\n ['fad-provider-details', ProviderDetailsComponent],\r\n ['fad-scheduling', SchedulingComponent],\r\n ['fad-provider-cards', ProviderCardComponent],\r\n ['fad-find-a-doctor', FindDoctorWidgetComponent],\r\n ['fad-covid-vaccine-launch', VaccinationLocationComponent],\r\n ['fad-provider-hero-card', ResultCardComponent],\r\n ['fad-lite-landing-page', FadLiteSearchLandingComponent]\r\n];\r\n","declare global {\r\n interface String {\r\n equalsIgnoreDash(other: string, ignoreCase?: boolean): boolean;\r\n stripDash(replaceWith?: string): string;\r\n toUrlFriendly(): string;\r\n fromUrlFriendly(): string;\r\n toTitleCase(): string;\r\n trimTrailingForwardSlash(): string;\r\n trimForwardSlashes(): string;\r\n stripPeriod(): string;\r\n sanitizeSpaces(): string;\r\n sanitizeHyphens(): string;\r\n stripParentheses(): string;\r\n trimForwardSlash(): string;\r\n replaceAmpersandwithHyphen(): string;\r\n makeURLFriendly(): string;\r\n removeSpecialCharacters(): string;\r\n replaceWithDash(searchWith?: string): string;\r\n }\r\n}\r\n\r\nString.prototype.equalsIgnoreDash = function(this: string, other: string, ignoreCase = true) {\r\n if (this === other) {\r\n return true;\r\n }\r\n let thisString = this.stripDash();\r\n let otherString = other.stripDash();\r\n if (ignoreCase) {\r\n thisString = thisString.toLowerCase();\r\n otherString = otherString.toLowerCase();\r\n }\r\n return thisString === otherString;\r\n};\r\n\r\nString.prototype.stripDash = function(this: string, replaceWith = '') {\r\n return this.replace(/-/g, replaceWith);\r\n};\r\n\r\nString.prototype.replaceWithDash = function(this: string, searchWith = '') {\r\n const searchExp = new RegExp(searchWith,'g');\r\n return this.length > 0 ? this.replace(searchExp, '-') : this;\r\n};\r\n\r\n\r\nString.prototype.toUrlFriendly = function(this: string) {\r\n return this.toLowerCase().replace(/ /g, '-');\r\n};\r\n\r\nString.prototype.fromUrlFriendly = function(this: string) {\r\n return this.toLowerCase().replace(/-/g, ' ');\r\n};\r\n\r\nString.prototype.toTitleCase = function(this: string) {\r\n return this.split(' ')\r\n .map((word) => `${word.charAt(0).toUpperCase()}${word.substring(1)}`)\r\n .join(' ');\r\n};\r\n\r\nString.prototype.trimTrailingForwardSlash = function(this: string) {\r\n return this.replace(/\\/+$/g, '');\r\n};\r\n\r\nString.prototype.trimForwardSlashes = function(this: string) {\r\n return this.replace(/^\\/+|\\/+$/g, '');\r\n};\r\n\r\nString.prototype.stripPeriod = function(this: string) {\r\n return this.replace(/\\./g, '');\r\n};\r\n\r\nString.prototype.sanitizeSpaces = function(this: string) {\r\n return this.replace(/ +/g, ' ');\r\n};\r\n\r\nString.prototype.sanitizeHyphens = function(this: string) {\r\n return this.replace(/--+/g, '-');\r\n};\r\n\r\nString.prototype.stripParentheses = function(this: string) {\r\n return this.replace(/\\(|\\)/g, '');\r\n};\r\n\r\nString.prototype.trimForwardSlash = function(this: string) {\r\n return this.replace(/\\//g, '-');\r\n};\r\n\r\nString.prototype.replaceAmpersandwithHyphen = function(this: string) {\r\n return this.replace(/&/g, '-');\r\n};\r\n\r\nString.prototype.removeSpecialCharacters = function(this: string) {\r\n return this.replace(/[^a-zA-Z0-9-]/g, '');\r\n};\r\n\r\nString.prototype.makeURLFriendly = function(this: string) {\r\n return this.trim()\r\n .sanitizeSpaces()\r\n .stripParentheses()\r\n .stripPeriod()\r\n .trimForwardSlash()\r\n .replaceAmpersandwithHyphen()\r\n .toUrlFriendly()\r\n .sanitizeHyphens();\r\n};\r\nexport {};\r\n","import { UrlSegment, UrlSegmentGroup } from '@angular/router';\r\nimport { SelectedLocation } from '../../models/location';\r\nimport { UrlBuilderParams } from './url-builder-params';\r\nimport '../string-prototypes';\r\n\r\nexport abstract class FadUrlBuilderStrategy {\r\n private segments: UrlSegment[] = [];\r\n abstract shouldBuild(urlBuilderParams: UrlBuilderParams): boolean;\r\n\r\n abstract createUrlSegments(urlBuilderParams: UrlBuilderParams): void;\r\n \r\n addSegments(...newSegments: string[]): void {\r\n const items: UrlSegment[] = newSegments.map((s) => new UrlSegment(s.toUrlFriendly().trimTrailingForwardSlash(), {}));\r\n this.segments.push(...items);\r\n }\r\n\r\n addCityAndStateSegment(selectedLocation: SelectedLocation): void {\r\n if (selectedLocation.city && selectedLocation.state) {\r\n this.addSegments(\r\n `${selectedLocation.neighborhood ? selectedLocation.neighborhood.toLowerCase().toUrlFriendly() + '-' : ''}${selectedLocation.city\r\n .toLowerCase()\r\n .toUrlFriendly()}-${selectedLocation.state.toLowerCase()}${selectedLocation.zip ? '-' + selectedLocation.zip.toLowerCase() : ''}`\r\n );\r\n } else if (selectedLocation.name) {\r\n this.addSegments(selectedLocation.name.toLowerCase().replace(/,/g, '').toUrlFriendly());\r\n }\r\n }\r\n\r\n addSpecialtySegment(selectedSpeciality: string): void {\r\n const urlSegment = new UrlSegment(\r\n selectedSpeciality \r\n .replace(/[^a-zA-Z0-9 &/-]/g, '') // ,: () '=> replaced to '' whereas & - and / are retained in the url\r\n .replace(/[ /]/g, '-') // space and / in the string => replaced to -\r\n .trimTrailingForwardSlash(),\r\n {}\r\n );\r\n this.segments.push(urlSegment);\r\n }\r\n\r\n build(urlBuilderParams: UrlBuilderParams, baseUrl: string = null): string {\r\n this.segments = [];\r\n\r\n this.createUrlSegments(urlBuilderParams);\r\n const url: string = new UrlSegmentGroup(this.segments, {}).toString().trimTrailingForwardSlash();\r\n if (baseUrl) {\r\n baseUrl = baseUrl.trimTrailingForwardSlash();\r\n // url already starts with a forward slash.\r\n return `${baseUrl}${url}`;\r\n }\r\n return url;\r\n }\r\n\r\n hasLocationData(urlBuilderParams: UrlBuilderParams): boolean {\r\n return (\r\n (!!urlBuilderParams.selectedLocation?.city && !!urlBuilderParams.selectedLocation?.state) || !!urlBuilderParams.selectedLocation?.name\r\n );\r\n }\r\n}\r\n","import { UrlBuilderParams } from './url-builder-params';\r\nimport { FadUrlBuilderStrategy } from './fad-url-builder-strategy';\r\n\r\nexport class MedGroupUrlBuilderStrategy extends FadUrlBuilderStrategy {\r\n shouldBuild(urlBuilderParams: UrlBuilderParams): boolean {\r\n return !!urlBuilderParams.medGroup;\r\n }\r\n\r\n createUrlSegments(urlBuilderParams: UrlBuilderParams): void {\r\n this.addSegments('', 'm', urlBuilderParams.medGroup);\r\n\r\n if (urlBuilderParams.searchTerm) {\r\n this.addSegments(urlBuilderParams.searchTerm.stripDash('_'));\r\n }\r\n }\r\n}\r\n","import { FadUrlBuilderStrategy } from './fad-url-builder-strategy';\r\nimport { UrlBuilderParams } from './url-builder-params';\r\n\r\nexport class LocationUrlBuilderStrategy extends FadUrlBuilderStrategy {\r\n shouldBuild(urlBuilderParams: UrlBuilderParams): boolean {\r\n if (!!urlBuilderParams.medGroup || !!urlBuilderParams.searchTerm) {\r\n return false;\r\n }\r\n return this.hasLocationData(urlBuilderParams);\r\n }\r\n\r\n createUrlSegments(urlBuilderParams: UrlBuilderParams): void {\r\n this.addSegments('', 'l');\r\n this.addCityAndStateSegment(urlBuilderParams.selectedLocation);\r\n }\r\n}\r\n","import { FadUrlBuilderStrategy } from './fad-url-builder-strategy';\r\nimport { UrlBuilderParams } from './url-builder-params';\r\n\r\nexport class LocationAndTermUrlBuilderStrategy extends FadUrlBuilderStrategy {\r\n createUrlSegments(urlBuilderParams: UrlBuilderParams): void {\r\n this.addSegments('', 'r');\r\n this.addCityAndStateSegment(urlBuilderParams.selectedLocation);\r\n this.addSegments(urlBuilderParams.searchTerm.stripDash('_'));\r\n }\r\n\r\n shouldBuild(urlBuilderParams: UrlBuilderParams): boolean {\r\n return !urlBuilderParams.medGroup && !!urlBuilderParams.searchTerm && this.hasLocationData(urlBuilderParams);\r\n }\r\n}\r\n","import { FadUrlBuilderStrategy } from './fad-url-builder-strategy';\r\nimport { UrlBuilderParams } from './url-builder-params';\r\n\r\nexport class SearchTermUrlBuilderStrategy extends FadUrlBuilderStrategy {\r\n shouldBuild(urlBuilderParams: UrlBuilderParams): boolean {\r\n return !urlBuilderParams.medGroup && !this.hasLocationData(urlBuilderParams);\r\n }\r\n\r\n createUrlSegments(urlBuilderParams: UrlBuilderParams): void {\r\n this.addSegments('', 't');\r\n if (urlBuilderParams.searchTerm) {\r\n this.addSegments(urlBuilderParams.searchTerm.stripDash('_'));\r\n }\r\n }\r\n}\r\n","import { UrlBuilderParams } from './url-builder-params';\r\nimport { FadUrlBuilderStrategy } from './fad-url-builder-strategy';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\n\r\nexport class SpecialtyUrlBuilderStrategy extends FadUrlBuilderStrategy {\r\n\r\n \r\n useLegacyAPI = false;\r\n constructor(private configurationService: ConfigurationService)\r\n {\r\n super();\r\n this.useLegacyAPI = this.configurationService.useLegacyAPI();\r\n }\r\n \r\n shouldBuild(urlBuilderParams: UrlBuilderParams): boolean {\r\n return !!urlBuilderParams.specialty;\r\n }\r\n\r\n createUrlSegments(urlBuilderParams: UrlBuilderParams): void {\r\n this.addSegments('', 's');\r\n \r\n let speciality = urlBuilderParams.specialty; \r\n \r\n if(!this.useLegacyAPI)\r\n {\r\n speciality = speciality.toLocaleLowerCase();\r\n }\r\n\r\n this.addSpecialtySegment(speciality);\r\n \r\n if (urlBuilderParams.selectedLocation) {\r\n this.addCityAndStateSegment(urlBuilderParams.selectedLocation);\r\n }\r\n }\r\n}\r\n","import { FadUrlBuilderStrategy } from './fad-url-builder-strategy';\r\nimport { MedGroupUrlBuilderStrategy } from './med-group-url-builder-strategy';\r\nimport { LocationUrlBuilderStrategy } from './location-url-builder-strategy';\r\nimport { LocationAndTermUrlBuilderStrategy } from './location-and-term-url-builder-strategy';\r\nimport { SearchTermUrlBuilderStrategy } from './search-term-url-builder-strategy';\r\nimport { UrlBuilderParams } from './url-builder-params';\r\nimport { Injectable } from '@angular/core';\r\nimport { SpecialtyUrlBuilderStrategy } from './specialty-url-builder-strategy';\r\nimport { ConfigurationService } from '../../services/configuration.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FadUrlBuilder {\r\n builders: FadUrlBuilderStrategy[] = [\r\n // Note: the order of these matters.\r\n new MedGroupUrlBuilderStrategy(),\r\n new SpecialtyUrlBuilderStrategy(this.configurationService),\r\n new SearchTermUrlBuilderStrategy(),\r\n new LocationUrlBuilderStrategy(),\r\n new LocationAndTermUrlBuilderStrategy()\r\n ];\r\n\r\n defaultBuilder: FadUrlBuilderStrategy;\r\n\r\n constructor(private configurationService: ConfigurationService) {\r\n this.defaultBuilder = new SearchTermUrlBuilderStrategy(); \r\n }\r\n\r\n public build(urlBuilderParams: UrlBuilderParams, baseUrl: string = null): string {\r\n for (const builder of this.builders) {\r\n if (builder.shouldBuild(urlBuilderParams)) {\r\n return builder.build(urlBuilderParams, baseUrl);\r\n }\r\n }\r\n return this.defaultBuilder.build(urlBuilderParams, baseUrl);\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\nimport { SessionObjectNames } from '../models/stringconst-names';\r\nimport { getRootElement } from './root-element';\r\n\r\nexport function hiddenContentAvailable(parentContainerSelector: string, contentLineHeightSelector: string): boolean {\r\n if (document.getElementsByClassName(parentContainerSelector)[0]) {\r\n return (\r\n document.getElementsByClassName(parentContainerSelector)[0].scrollHeight /\r\n parseInt(window.getComputedStyle(document.querySelectorAll(contentLineHeightSelector)[0]).lineHeight.slice(0, 2), 10) >\r\n 6\r\n );\r\n }\r\n\r\n return false;\r\n}\r\n\r\nexport function checkDesktopViewport(width: number): boolean {\r\n return width > 767;\r\n}\r\n\r\nexport const ROOT_ELEMENT = new InjectionToken<HTMLElement>('root-element');\r\n\r\nexport function setDialogPosition(): void {\r\n const dialogs = Array.from(document.getElementsByClassName('filter-dialog'));\r\n dialogs.forEach((element: any) => {\r\n element.style.left = 'initial';\r\n element.style.right = 'initial';\r\n\r\n if (element.getBoundingClientRect().right > document.body.clientWidth) {\r\n element.style.right = 0;\r\n element.style.left = 'initial';\r\n } else if (element.getBoundingClientRect().left < 0) {\r\n element.style.right = 'initial';\r\n }\r\n });\r\n}\r\n\r\nexport function inFadLiteMode(): boolean {\r\n let fadLiteSetting = false;\r\n const root = getRootElement();\r\n // parse enable fad lite attribute\r\n const enableFadLite = (\r\n root?.hasAttribute('enable-fad-lite')\r\n ? root?.getAttribute('enable-fad-lite')\r\n : root?.hasAttribute('enableFadLite')\r\n ? root?.getAttribute('enableFadLite')\r\n : root?.hasAttribute('enablefadlite')\r\n ? root?.getAttribute('enablefadlite')\r\n : 'false'\r\n )?.replace(/^\\/+|\\/+$/g, '');\r\n if (\r\n enableFadLite != undefined &&\r\n enableFadLite != null &&\r\n enableFadLite.trim() != '' &&\r\n (enableFadLite.toLowerCase() === 'true' || enableFadLite.toLowerCase() === 'false')\r\n ) {\r\n fadLiteSetting = Boolean(JSON.parse(enableFadLite.toLowerCase() ?? 'false'));\r\n }\r\n // check for base url attribute\r\n const baseUrl = (\r\n root?.hasAttribute('base-url')\r\n ? root?.getAttribute('base-url')\r\n : root?.hasAttribute('baseUrl')\r\n ? root?.getAttribute('baseUrl')\r\n : root?.hasAttribute('baseurl')\r\n ? root?.getAttribute('baseurl')\r\n : ''\r\n )\r\n ?.replace(/^\\/+|\\/+$/g, '')\r\n ?.trim();\r\n\r\n return fadLiteSetting && !baseUrl;\r\n}\r\n\r\nexport function clearAllSessionVariables(): void {\r\n for (const sessionConstant in SessionObjectNames) {\r\n window.sessionStorage.removeItem(SessionObjectNames[sessionConstant]);\r\n }\r\n}\r\n","import { Observable } from '../Observable';\nimport { isScheduler } from '../util/isScheduler';\nimport { mergeAll } from '../operators/mergeAll';\nimport { fromArray } from './fromArray';\nexport function merge(...observables) {\n let concurrent = Number.POSITIVE_INFINITY;\n let scheduler = null;\n let last = observables[observables.length - 1];\n if (isScheduler(last)) {\n scheduler = observables.pop();\n if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {\n concurrent = observables.pop();\n }\n }\n else if (typeof last === 'number') {\n concurrent = observables.pop();\n }\n if (scheduler === null && observables.length === 1 && observables[0] instanceof Observable) {\n return observables[0];\n }\n return mergeAll(concurrent)(fromArray(observables, scheduler));\n}\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ComponentFactoryResolver, NgZone, Injector, ChangeDetectorRef, ApplicationRef, SimpleChange, Version } from '@angular/core';\nimport { ReplaySubject, merge } from 'rxjs';\nimport { switchMap, map } from 'rxjs/operators';\n\n/**\n * Provide methods for scheduling the execution of a callback.\n */\nconst scheduler = {\n /**\n * Schedule a callback to be called after some delay.\n *\n * Returns a function that when executed will cancel the scheduled function.\n */\n schedule(taskFn, delay) {\n const id = setTimeout(taskFn, delay);\n return () => clearTimeout(id);\n },\n /**\n * Schedule a callback to be called before the next render.\n * (If `window.requestAnimationFrame()` is not available, use `scheduler.schedule()` instead.)\n *\n * Returns a function that when executed will cancel the scheduled function.\n */\n scheduleBeforeRender(taskFn) {\n // TODO(gkalpak): Implement a better way of accessing `requestAnimationFrame()`\n // (e.g. accounting for vendor prefix, SSR-compatibility, etc).\n if (typeof window === 'undefined') {\n // For SSR just schedule immediately.\n return scheduler.schedule(taskFn, 0);\n }\n if (typeof window.requestAnimationFrame === 'undefined') {\n const frameMs = 16;\n return scheduler.schedule(taskFn, frameMs);\n }\n const id = window.requestAnimationFrame(taskFn);\n return () => window.cancelAnimationFrame(id);\n },\n};\n/**\n * Convert a camelCased string to kebab-cased.\n */\nfunction camelToDashCase(input) {\n return input.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`);\n}\n/**\n * Check whether the input is an `Element`.\n */\nfunction isElement(node) {\n return !!node && node.nodeType === Node.ELEMENT_NODE;\n}\n/**\n * Check whether the input is a function.\n */\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n/**\n * Convert a kebab-cased string to camelCased.\n */\nfunction kebabToCamelCase(input) {\n return input.replace(/-([a-z\\d])/g, (_, char) => char.toUpperCase());\n}\nlet _matches;\n/**\n * Check whether an `Element` matches a CSS selector.\n * NOTE: this is duplicated from @angular/upgrade, and can\n * be consolidated in the future\n */\nfunction matchesSelector(el, selector) {\n if (!_matches) {\n const elProto = Element.prototype;\n _matches =\n elProto.matches ||\n elProto.matchesSelector ||\n elProto.mozMatchesSelector ||\n elProto.msMatchesSelector ||\n elProto.oMatchesSelector ||\n elProto.webkitMatchesSelector;\n }\n return el.nodeType === Node.ELEMENT_NODE ? _matches.call(el, selector) : false;\n}\n/**\n * Test two values for strict equality, accounting for the fact that `NaN !== NaN`.\n */\nfunction strictEquals(value1, value2) {\n return value1 === value2 || (value1 !== value1 && value2 !== value2);\n}\n/** Gets a map of default set of attributes to observe and the properties they affect. */\nfunction getDefaultAttributeToPropertyInputs(inputs) {\n const attributeToPropertyInputs = {};\n inputs.forEach(({ propName, templateName, transform }) => {\n attributeToPropertyInputs[camelToDashCase(templateName)] = [propName, transform];\n });\n return attributeToPropertyInputs;\n}\n/**\n * Gets a component's set of inputs. Uses the injector to get the component factory where the inputs\n * are defined.\n */\nfunction getComponentInputs(component, injector) {\n const componentFactoryResolver = injector.get(ComponentFactoryResolver);\n const componentFactory = componentFactoryResolver.resolveComponentFactory(component);\n return componentFactory.inputs;\n}\n\n// NOTE: This is a (slightly improved) version of what is used in ngUpgrade's\nfunction extractProjectableNodes(host, ngContentSelectors) {\n const nodes = host.childNodes;\n const projectableNodes = ngContentSelectors.map(() => []);\n let wildcardIndex = -1;\n ngContentSelectors.some((selector, i) => {\n if (selector === '*') {\n wildcardIndex = i;\n return true;\n }\n return false;\n });\n for (let i = 0, ii = nodes.length; i < ii; ++i) {\n const node = nodes[i];\n const ngContentIndex = findMatchingIndex(node, ngContentSelectors, wildcardIndex);\n if (ngContentIndex !== -1) {\n projectableNodes[ngContentIndex].push(node);\n }\n }\n return projectableNodes;\n}\nfunction findMatchingIndex(node, selectors, defaultIndex) {\n let matchingIndex = defaultIndex;\n if (isElement(node)) {\n selectors.some((selector, i) => {\n if (selector !== '*' && matchesSelector(node, selector)) {\n matchingIndex = i;\n return true;\n }\n return false;\n });\n }\n return matchingIndex;\n}\n\n/** Time in milliseconds to wait before destroying the component ref when disconnected. */\nconst DESTROY_DELAY = 10;\n/**\n * Factory that creates new ComponentNgElementStrategy instance. Gets the component factory with the\n * constructor's injector's factory resolver and passes that factory to each strategy.\n */\nclass ComponentNgElementStrategyFactory {\n constructor(component, injector) {\n this.componentFactory = injector\n .get(ComponentFactoryResolver)\n .resolveComponentFactory(component);\n }\n create(injector) {\n return new ComponentNgElementStrategy(this.componentFactory, injector);\n }\n}\n/**\n * Creates and destroys a component ref using a component factory and handles change detection\n * in response to input changes.\n */\nclass ComponentNgElementStrategy {\n constructor(componentFactory, injector) {\n this.componentFactory = componentFactory;\n this.injector = injector;\n // Subject of `NgElementStrategyEvent` observables corresponding to the component's outputs.\n this.eventEmitters = new ReplaySubject(1);\n /** Merged stream of the component's output events. */\n this.events = this.eventEmitters.pipe(switchMap((emitters) => merge(...emitters)));\n /** Reference to the component that was created on connect. */\n this.componentRef = null;\n /** Reference to the component view's `ChangeDetectorRef`. */\n this.viewChangeDetectorRef = null;\n /**\n * Changes that have been made to component inputs since the last change detection run.\n * (NOTE: These are only recorded if the component implements the `OnChanges` interface.)\n */\n this.inputChanges = null;\n /** Whether changes have been made to component inputs since the last change detection run. */\n this.hasInputChanges = false;\n /** Whether the created component implements the `OnChanges` interface. */\n this.implementsOnChanges = false;\n /** Whether a change detection has been scheduled to run on the component. */\n this.scheduledChangeDetectionFn = null;\n /** Callback function that when called will cancel a scheduled destruction on the component. */\n this.scheduledDestroyFn = null;\n /** Initial input values that were set before the component was created. */\n this.initialInputValues = new Map();\n this.unchangedInputs = new Set(this.componentFactory.inputs.map(({ propName }) => propName));\n this.ngZone = this.injector.get(NgZone);\n this.elementZone = typeof Zone === 'undefined' ? null : this.ngZone.run(() => Zone.current);\n }\n /**\n * Initializes a new component if one has not yet been created and cancels any scheduled\n * destruction.\n */\n connect(element) {\n this.runInZone(() => {\n // If the element is marked to be destroyed, cancel the task since the component was\n // reconnected\n if (this.scheduledDestroyFn !== null) {\n this.scheduledDestroyFn();\n this.scheduledDestroyFn = null;\n return;\n }\n if (this.componentRef === null) {\n this.initializeComponent(element);\n }\n });\n }\n /**\n * Schedules the component to be destroyed after some small delay in case the element is just\n * being moved across the DOM.\n */\n disconnect() {\n this.runInZone(() => {\n // Return if there is no componentRef or the component is already scheduled for destruction\n if (this.componentRef === null || this.scheduledDestroyFn !== null) {\n return;\n }\n // Schedule the component to be destroyed after a small timeout in case it is being\n // moved elsewhere in the DOM\n this.scheduledDestroyFn = scheduler.schedule(() => {\n if (this.componentRef !== null) {\n this.componentRef.destroy();\n this.componentRef = null;\n this.viewChangeDetectorRef = null;\n }\n }, DESTROY_DELAY);\n });\n }\n /**\n * Returns the component property value. If the component has not yet been created, the value is\n * retrieved from the cached initialization values.\n */\n getInputValue(property) {\n return this.runInZone(() => {\n if (this.componentRef === null) {\n return this.initialInputValues.get(property);\n }\n return this.componentRef.instance[property];\n });\n }\n /**\n * Sets the input value for the property. If the component has not yet been created, the value is\n * cached and set when the component is created.\n */\n setInputValue(property, value, transform) {\n this.runInZone(() => {\n if (transform) {\n value = transform.call(this.componentRef?.instance, value);\n }\n if (this.componentRef === null) {\n this.initialInputValues.set(property, value);\n return;\n }\n // Ignore the value if it is strictly equal to the current value, except if it is `undefined`\n // and this is the first change to the value (because an explicit `undefined` _is_ strictly\n // equal to not having a value set at all, but we still need to record this as a change).\n if (strictEquals(value, this.getInputValue(property)) &&\n !(value === undefined && this.unchangedInputs.has(property))) {\n return;\n }\n // Record the changed value and update internal state to reflect the fact that this input has\n // changed.\n this.recordInputChange(property, value);\n this.unchangedInputs.delete(property);\n this.hasInputChanges = true;\n // Update the component instance and schedule change detection.\n this.componentRef.instance[property] = value;\n this.scheduleDetectChanges();\n });\n }\n /**\n * Creates a new component through the component factory with the provided element host and\n * sets up its initial inputs, listens for outputs changes, and runs an initial change detection.\n */\n initializeComponent(element) {\n const childInjector = Injector.create({ providers: [], parent: this.injector });\n const projectableNodes = extractProjectableNodes(element, this.componentFactory.ngContentSelectors);\n this.componentRef = this.componentFactory.create(childInjector, projectableNodes, element);\n this.viewChangeDetectorRef = this.componentRef.injector.get(ChangeDetectorRef);\n this.implementsOnChanges = isFunction(this.componentRef.instance.ngOnChanges);\n this.initializeInputs();\n this.initializeOutputs(this.componentRef);\n this.detectChanges();\n const applicationRef = this.injector.get(ApplicationRef);\n applicationRef.attachView(this.componentRef.hostView);\n }\n /** Set any stored initial inputs on the component's properties. */\n initializeInputs() {\n this.componentFactory.inputs.forEach(({ propName, transform }) => {\n if (this.initialInputValues.has(propName)) {\n // Call `setInputValue()` now that the component has been instantiated to update its\n // properties and fire `ngOnChanges()`.\n this.setInputValue(propName, this.initialInputValues.get(propName), transform);\n }\n });\n this.initialInputValues.clear();\n }\n /** Sets up listeners for the component's outputs so that the events stream emits the events. */\n initializeOutputs(componentRef) {\n const eventEmitters = this.componentFactory.outputs.map(({ propName, templateName }) => {\n const emitter = componentRef.instance[propName];\n return emitter.pipe(map((value) => ({ name: templateName, value })));\n });\n this.eventEmitters.next(eventEmitters);\n }\n /** Calls ngOnChanges with all the inputs that have changed since the last call. */\n callNgOnChanges(componentRef) {\n if (!this.implementsOnChanges || this.inputChanges === null) {\n return;\n }\n // Cache the changes and set inputChanges to null to capture any changes that might occur\n // during ngOnChanges.\n const inputChanges = this.inputChanges;\n this.inputChanges = null;\n componentRef.instance.ngOnChanges(inputChanges);\n }\n /**\n * Marks the component view for check, if necessary.\n * (NOTE: This is required when the `ChangeDetectionStrategy` is set to `OnPush`.)\n */\n markViewForCheck(viewChangeDetectorRef) {\n if (this.hasInputChanges) {\n this.hasInputChanges = false;\n viewChangeDetectorRef.markForCheck();\n }\n }\n /**\n * Schedules change detection to run on the component.\n * Ignores subsequent calls if already scheduled.\n */\n scheduleDetectChanges() {\n if (this.scheduledChangeDetectionFn) {\n return;\n }\n this.scheduledChangeDetectionFn = scheduler.scheduleBeforeRender(() => {\n this.scheduledChangeDetectionFn = null;\n this.detectChanges();\n });\n }\n /**\n * Records input changes so that the component receives SimpleChanges in its onChanges function.\n */\n recordInputChange(property, currentValue) {\n // Do not record the change if the component does not implement `OnChanges`.\n if (!this.implementsOnChanges) {\n return;\n }\n if (this.inputChanges === null) {\n this.inputChanges = {};\n }\n // If there already is a change, modify the current value to match but leave the values for\n // `previousValue` and `isFirstChange`.\n const pendingChange = this.inputChanges[property];\n if (pendingChange) {\n pendingChange.currentValue = currentValue;\n return;\n }\n const isFirstChange = this.unchangedInputs.has(property);\n const previousValue = isFirstChange ? undefined : this.getInputValue(property);\n this.inputChanges[property] = new SimpleChange(previousValue, currentValue, isFirstChange);\n }\n /** Runs change detection on the component. */\n detectChanges() {\n if (this.componentRef === null) {\n return;\n }\n this.callNgOnChanges(this.componentRef);\n this.markViewForCheck(this.viewChangeDetectorRef);\n this.componentRef.changeDetectorRef.detectChanges();\n }\n /** Runs in the angular zone, if present. */\n runInZone(fn) {\n return this.elementZone && Zone.current !== this.elementZone ? this.ngZone.run(fn) : fn();\n }\n}\n\n/**\n * Implements the functionality needed for a custom element.\n *\n * @publicApi\n */\nclass NgElement extends HTMLElement {\n constructor() {\n super(...arguments);\n /**\n * A subscription to change, connect, and disconnect events in the custom element.\n */\n this.ngElementEventsSubscription = null;\n }\n}\n/**\n * @description Creates a custom element class based on an Angular component.\n *\n * Builds a class that encapsulates the functionality of the provided component and\n * uses the configuration information to provide more context to the class.\n * Takes the component factory's inputs and outputs to convert them to the proper\n * custom element API and add hooks to input changes.\n *\n * The configuration's injector is the initial injector set on the class,\n * and used by default for each created instance.This behavior can be overridden with the\n * static property to affect all newly created instances, or as a constructor argument for\n * one-off creations.\n *\n * @see [Angular Elements Overview](guide/elements \"Turning Angular components into custom elements\")\n *\n * @param component The component to transform.\n * @param config A configuration that provides initialization information to the created class.\n * @returns The custom-element construction class, which can be registered with\n * a browser's `CustomElementRegistry`.\n *\n * @publicApi\n */\nfunction createCustomElement(component, config) {\n const inputs = getComponentInputs(component, config.injector);\n const strategyFactory = config.strategyFactory || new ComponentNgElementStrategyFactory(component, config.injector);\n const attributeToPropertyInputs = getDefaultAttributeToPropertyInputs(inputs);\n class NgElementImpl extends NgElement {\n // Work around a bug in closure typed optimizations(b/79557487) where it is not honoring static\n // field externs. So using quoted access to explicitly prevent renaming.\n static { this['observedAttributes'] = Object.keys(attributeToPropertyInputs); }\n get ngElementStrategy() {\n // TODO(andrewseguin): Add e2e tests that cover cases where the constructor isn't called. For\n // now this is tested using a Google internal test suite.\n if (!this._ngElementStrategy) {\n const strategy = (this._ngElementStrategy = strategyFactory.create(this.injector || config.injector));\n // Re-apply pre-existing input values (set as properties on the element) through the\n // strategy.\n inputs.forEach(({ propName, transform }) => {\n if (!this.hasOwnProperty(propName)) {\n // No pre-existing value for `propName`.\n return;\n }\n // Delete the property from the instance and re-apply it through the strategy.\n const value = this[propName];\n delete this[propName];\n strategy.setInputValue(propName, value, transform);\n });\n }\n return this._ngElementStrategy;\n }\n constructor(injector) {\n super();\n this.injector = injector;\n }\n attributeChangedCallback(attrName, oldValue, newValue, namespace) {\n const [propName, transform] = attributeToPropertyInputs[attrName];\n this.ngElementStrategy.setInputValue(propName, newValue, transform);\n }\n connectedCallback() {\n // For historical reasons, some strategies may not have initialized the `events` property\n // until after `connect()` is run. Subscribe to `events` if it is available before running\n // `connect()` (in order to capture events emitted during initialization), otherwise subscribe\n // afterwards.\n //\n // TODO: Consider deprecating/removing the post-connect subscription in a future major version\n // (e.g. v11).\n let subscribedToEvents = false;\n if (this.ngElementStrategy.events) {\n // `events` are already available: Subscribe to it asap.\n this.subscribeToEvents();\n subscribedToEvents = true;\n }\n this.ngElementStrategy.connect(this);\n if (!subscribedToEvents) {\n // `events` were not initialized before running `connect()`: Subscribe to them now.\n // The events emitted during the component initialization have been missed, but at least\n // future events will be captured.\n this.subscribeToEvents();\n }\n }\n disconnectedCallback() {\n // Not using `this.ngElementStrategy` to avoid unnecessarily creating the `NgElementStrategy`.\n if (this._ngElementStrategy) {\n this._ngElementStrategy.disconnect();\n }\n if (this.ngElementEventsSubscription) {\n this.ngElementEventsSubscription.unsubscribe();\n this.ngElementEventsSubscription = null;\n }\n }\n subscribeToEvents() {\n // Listen for events from the strategy and dispatch them as custom events.\n this.ngElementEventsSubscription = this.ngElementStrategy.events.subscribe((e) => {\n const customEvent = new CustomEvent(e.name, { detail: e.value });\n this.dispatchEvent(customEvent);\n });\n }\n }\n // Add getters and setters to the prototype for each property input.\n inputs.forEach(({ propName, transform }) => {\n Object.defineProperty(NgElementImpl.prototype, propName, {\n get() {\n return this.ngElementStrategy.getInputValue(propName);\n },\n set(newValue) {\n this.ngElementStrategy.setInputValue(propName, newValue, transform);\n },\n configurable: true,\n enumerable: true,\n });\n });\n return NgElementImpl;\n}\n\n/**\n * @publicApi\n */\nconst VERSION = new Version('17.3.12');\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the `elements` package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NgElement, VERSION, createCustomElement };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵAnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE, sequence, AnimationMetadataType, style } from '@angular/animations';\nimport * as i0 from '@angular/core';\nimport { ɵRuntimeError, Injectable } from '@angular/core';\n\nconst LINE_START = '\\n - ';\nfunction invalidTimingValue(exp) {\n return new ɵRuntimeError(3000 /* RuntimeErrorCode.INVALID_TIMING_VALUE */, ngDevMode && `The provided timing value \"${exp}\" is invalid.`);\n}\nfunction negativeStepValue() {\n return new ɵRuntimeError(3100 /* RuntimeErrorCode.NEGATIVE_STEP_VALUE */, ngDevMode && 'Duration values below 0 are not allowed for this animation step.');\n}\nfunction negativeDelayValue() {\n return new ɵRuntimeError(3101 /* RuntimeErrorCode.NEGATIVE_DELAY_VALUE */, ngDevMode && 'Delay values below 0 are not allowed for this animation step.');\n}\nfunction invalidStyleParams(varName) {\n return new ɵRuntimeError(3001 /* RuntimeErrorCode.INVALID_STYLE_PARAMS */, ngDevMode &&\n `Unable to resolve the local animation param ${varName} in the given list of values`);\n}\nfunction invalidParamValue(varName) {\n return new ɵRuntimeError(3003 /* RuntimeErrorCode.INVALID_PARAM_VALUE */, ngDevMode && `Please provide a value for the animation param ${varName}`);\n}\nfunction invalidNodeType(nodeType) {\n return new ɵRuntimeError(3004 /* RuntimeErrorCode.INVALID_NODE_TYPE */, ngDevMode && `Unable to resolve animation metadata node #${nodeType}`);\n}\nfunction invalidCssUnitValue(userProvidedProperty, value) {\n return new ɵRuntimeError(3005 /* RuntimeErrorCode.INVALID_CSS_UNIT_VALUE */, ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`);\n}\nfunction invalidTrigger() {\n return new ɵRuntimeError(3006 /* RuntimeErrorCode.INVALID_TRIGGER */, ngDevMode &&\n \"animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))\");\n}\nfunction invalidDefinition() {\n return new ɵRuntimeError(3007 /* RuntimeErrorCode.INVALID_DEFINITION */, ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()');\n}\nfunction invalidState(metadataName, missingSubs) {\n return new ɵRuntimeError(3008 /* RuntimeErrorCode.INVALID_STATE */, ngDevMode &&\n `state(\"${metadataName}\", ...) must define default values for all the following style substitutions: ${missingSubs.join(', ')}`);\n}\nfunction invalidStyleValue(value) {\n return new ɵRuntimeError(3002 /* RuntimeErrorCode.INVALID_STYLE_VALUE */, ngDevMode && `The provided style string value ${value} is not allowed.`);\n}\nfunction invalidProperty(prop) {\n return new ɵRuntimeError(3009 /* RuntimeErrorCode.INVALID_PROPERTY */, ngDevMode &&\n `The provided animation property \"${prop}\" is not a supported CSS property for animations`);\n}\nfunction invalidParallelAnimation(prop, firstStart, firstEnd, secondStart, secondEnd) {\n return new ɵRuntimeError(3010 /* RuntimeErrorCode.INVALID_PARALLEL_ANIMATION */, ngDevMode &&\n `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${firstEnd}ms\" is also being animated in a parallel animation between the times of \"${secondStart}ms\" and \"${secondEnd}ms\"`);\n}\nfunction invalidKeyframes() {\n return new ɵRuntimeError(3011 /* RuntimeErrorCode.INVALID_KEYFRAMES */, ngDevMode && `keyframes() must be placed inside of a call to animate()`);\n}\nfunction invalidOffset() {\n return new ɵRuntimeError(3012 /* RuntimeErrorCode.INVALID_OFFSET */, ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`);\n}\nfunction keyframeOffsetsOutOfOrder() {\n return new ɵRuntimeError(3200 /* RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER */, ngDevMode && `Please ensure that all keyframe offsets are in order`);\n}\nfunction keyframesMissingOffsets() {\n return new ɵRuntimeError(3202 /* RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS */, ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`);\n}\nfunction invalidStagger() {\n return new ɵRuntimeError(3013 /* RuntimeErrorCode.INVALID_STAGGER */, ngDevMode && `stagger() can only be used inside of query()`);\n}\nfunction invalidQuery(selector) {\n return new ɵRuntimeError(3014 /* RuntimeErrorCode.INVALID_QUERY */, ngDevMode &&\n `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${selector}\", { optional: true })\\` if you wish to allow this.)`);\n}\nfunction invalidExpression(expr) {\n return new ɵRuntimeError(3015 /* RuntimeErrorCode.INVALID_EXPRESSION */, ngDevMode && `The provided transition expression \"${expr}\" is not supported`);\n}\nfunction invalidTransitionAlias(alias) {\n return new ɵRuntimeError(3016 /* RuntimeErrorCode.INVALID_TRANSITION_ALIAS */, ngDevMode && `The transition alias value \"${alias}\" is not supported`);\n}\nfunction validationFailed(errors) {\n return new ɵRuntimeError(3500 /* RuntimeErrorCode.VALIDATION_FAILED */, ngDevMode && `animation validation failed:\\n${errors.map((err) => err.message).join('\\n')}`);\n}\nfunction buildingFailed(errors) {\n return new ɵRuntimeError(3501 /* RuntimeErrorCode.BUILDING_FAILED */, ngDevMode && `animation building failed:\\n${errors.map((err) => err.message).join('\\n')}`);\n}\nfunction triggerBuildFailed(name, errors) {\n return new ɵRuntimeError(3404 /* RuntimeErrorCode.TRIGGER_BUILD_FAILED */, ngDevMode &&\n `The animation trigger \"${name}\" has failed to build due to the following errors:\\n - ${errors\n .map((err) => err.message)\n .join('\\n - ')}`);\n}\nfunction animationFailed(errors) {\n return new ɵRuntimeError(3502 /* RuntimeErrorCode.ANIMATION_FAILED */, ngDevMode &&\n `Unable to animate due to the following errors:${LINE_START}${errors\n .map((err) => err.message)\n .join(LINE_START)}`);\n}\nfunction registerFailed(errors) {\n return new ɵRuntimeError(3503 /* RuntimeErrorCode.REGISTRATION_FAILED */, ngDevMode &&\n `Unable to build the animation due to the following errors: ${errors\n .map((err) => err.message)\n .join('\\n')}`);\n}\nfunction missingOrDestroyedAnimation() {\n return new ɵRuntimeError(3300 /* RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION */, ngDevMode && \"The requested animation doesn't exist or has already been destroyed\");\n}\nfunction createAnimationFailed(errors) {\n return new ɵRuntimeError(3504 /* RuntimeErrorCode.CREATE_ANIMATION_FAILED */, ngDevMode &&\n `Unable to create the animation due to the following errors:${errors\n .map((err) => err.message)\n .join('\\n')}`);\n}\nfunction missingPlayer(id) {\n return new ɵRuntimeError(3301 /* RuntimeErrorCode.MISSING_PLAYER */, ngDevMode && `Unable to find the timeline player referenced by ${id}`);\n}\nfunction missingTrigger(phase, name) {\n return new ɵRuntimeError(3302 /* RuntimeErrorCode.MISSING_TRIGGER */, ngDevMode &&\n `Unable to listen on the animation trigger event \"${phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`);\n}\nfunction missingEvent(name) {\n return new ɵRuntimeError(3303 /* RuntimeErrorCode.MISSING_EVENT */, ngDevMode &&\n `Unable to listen on the animation trigger \"${name}\" because the provided event is undefined!`);\n}\nfunction unsupportedTriggerEvent(phase, name) {\n return new ɵRuntimeError(3400 /* RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT */, ngDevMode &&\n `The provided animation trigger event \"${phase}\" for the animation trigger \"${name}\" is not supported!`);\n}\nfunction unregisteredTrigger(name) {\n return new ɵRuntimeError(3401 /* RuntimeErrorCode.UNREGISTERED_TRIGGER */, ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`);\n}\nfunction triggerTransitionsFailed(errors) {\n return new ɵRuntimeError(3402 /* RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED */, ngDevMode &&\n `Unable to process animations due to the following failed trigger transitions\\n ${errors\n .map((err) => err.message)\n .join('\\n')}`);\n}\nfunction triggerParsingFailed(name, errors) {\n return new ɵRuntimeError(3403 /* RuntimeErrorCode.TRIGGER_PARSING_FAILED */, ngDevMode &&\n `Animation parsing for the ${name} trigger have failed:${LINE_START}${errors\n .map((err) => err.message)\n .join(LINE_START)}`);\n}\nfunction transitionFailed(name, errors) {\n return new ɵRuntimeError(3505 /* RuntimeErrorCode.TRANSITION_FAILED */, ngDevMode && `@${name} has failed due to:\\n ${errors.map((err) => err.message).join('\\n- ')}`);\n}\n\n/**\n * Set of all animatable CSS properties\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties\n */\nconst ANIMATABLE_PROP_SET = new Set([\n '-moz-outline-radius',\n '-moz-outline-radius-bottomleft',\n '-moz-outline-radius-bottomright',\n '-moz-outline-radius-topleft',\n '-moz-outline-radius-topright',\n '-ms-grid-columns',\n '-ms-grid-rows',\n '-webkit-line-clamp',\n '-webkit-text-fill-color',\n '-webkit-text-stroke',\n '-webkit-text-stroke-color',\n 'accent-color',\n 'all',\n 'backdrop-filter',\n 'background',\n 'background-color',\n 'background-position',\n 'background-size',\n 'block-size',\n 'border',\n 'border-block-end',\n 'border-block-end-color',\n 'border-block-end-width',\n 'border-block-start',\n 'border-block-start-color',\n 'border-block-start-width',\n 'border-bottom',\n 'border-bottom-color',\n 'border-bottom-left-radius',\n 'border-bottom-right-radius',\n 'border-bottom-width',\n 'border-color',\n 'border-end-end-radius',\n 'border-end-start-radius',\n 'border-image-outset',\n 'border-image-slice',\n 'border-image-width',\n 'border-inline-end',\n 'border-inline-end-color',\n 'border-inline-end-width',\n 'border-inline-start',\n 'border-inline-start-color',\n 'border-inline-start-width',\n 'border-left',\n 'border-left-color',\n 'border-left-width',\n 'border-radius',\n 'border-right',\n 'border-right-color',\n 'border-right-width',\n 'border-start-end-radius',\n 'border-start-start-radius',\n 'border-top',\n 'border-top-color',\n 'border-top-left-radius',\n 'border-top-right-radius',\n 'border-top-width',\n 'border-width',\n 'bottom',\n 'box-shadow',\n 'caret-color',\n 'clip',\n 'clip-path',\n 'color',\n 'column-count',\n 'column-gap',\n 'column-rule',\n 'column-rule-color',\n 'column-rule-width',\n 'column-width',\n 'columns',\n 'filter',\n 'flex',\n 'flex-basis',\n 'flex-grow',\n 'flex-shrink',\n 'font',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-variation-settings',\n 'font-weight',\n 'gap',\n 'grid-column-gap',\n 'grid-gap',\n 'grid-row-gap',\n 'grid-template-columns',\n 'grid-template-rows',\n 'height',\n 'inline-size',\n 'input-security',\n 'inset',\n 'inset-block',\n 'inset-block-end',\n 'inset-block-start',\n 'inset-inline',\n 'inset-inline-end',\n 'inset-inline-start',\n 'left',\n 'letter-spacing',\n 'line-clamp',\n 'line-height',\n 'margin',\n 'margin-block-end',\n 'margin-block-start',\n 'margin-bottom',\n 'margin-inline-end',\n 'margin-inline-start',\n 'margin-left',\n 'margin-right',\n 'margin-top',\n 'mask',\n 'mask-border',\n 'mask-position',\n 'mask-size',\n 'max-block-size',\n 'max-height',\n 'max-inline-size',\n 'max-lines',\n 'max-width',\n 'min-block-size',\n 'min-height',\n 'min-inline-size',\n 'min-width',\n 'object-position',\n 'offset',\n 'offset-anchor',\n 'offset-distance',\n 'offset-path',\n 'offset-position',\n 'offset-rotate',\n 'opacity',\n 'order',\n 'outline',\n 'outline-color',\n 'outline-offset',\n 'outline-width',\n 'padding',\n 'padding-block-end',\n 'padding-block-start',\n 'padding-bottom',\n 'padding-inline-end',\n 'padding-inline-start',\n 'padding-left',\n 'padding-right',\n 'padding-top',\n 'perspective',\n 'perspective-origin',\n 'right',\n 'rotate',\n 'row-gap',\n 'scale',\n 'scroll-margin',\n 'scroll-margin-block',\n 'scroll-margin-block-end',\n 'scroll-margin-block-start',\n 'scroll-margin-bottom',\n 'scroll-margin-inline',\n 'scroll-margin-inline-end',\n 'scroll-margin-inline-start',\n 'scroll-margin-left',\n 'scroll-margin-right',\n 'scroll-margin-top',\n 'scroll-padding',\n 'scroll-padding-block',\n 'scroll-padding-block-end',\n 'scroll-padding-block-start',\n 'scroll-padding-bottom',\n 'scroll-padding-inline',\n 'scroll-padding-inline-end',\n 'scroll-padding-inline-start',\n 'scroll-padding-left',\n 'scroll-padding-right',\n 'scroll-padding-top',\n 'scroll-snap-coordinate',\n 'scroll-snap-destination',\n 'scrollbar-color',\n 'shape-image-threshold',\n 'shape-margin',\n 'shape-outside',\n 'tab-size',\n 'text-decoration',\n 'text-decoration-color',\n 'text-decoration-thickness',\n 'text-emphasis',\n 'text-emphasis-color',\n 'text-indent',\n 'text-shadow',\n 'text-underline-offset',\n 'top',\n 'transform',\n 'transform-origin',\n 'translate',\n 'vertical-align',\n 'visibility',\n 'width',\n 'word-spacing',\n 'z-index',\n 'zoom',\n]);\n\nfunction optimizeGroupPlayer(players) {\n switch (players.length) {\n case 0:\n return new NoopAnimationPlayer();\n case 1:\n return players[0];\n default:\n return new ɵAnimationGroupPlayer(players);\n }\n}\nfunction normalizeKeyframes$1(normalizer, keyframes, preStyles = new Map(), postStyles = new Map()) {\n const errors = [];\n const normalizedKeyframes = [];\n let previousOffset = -1;\n let previousKeyframe = null;\n keyframes.forEach((kf) => {\n const offset = kf.get('offset');\n const isSameOffset = offset == previousOffset;\n const normalizedKeyframe = (isSameOffset && previousKeyframe) || new Map();\n kf.forEach((val, prop) => {\n let normalizedProp = prop;\n let normalizedValue = val;\n if (prop !== 'offset') {\n normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);\n switch (normalizedValue) {\n case ɵPRE_STYLE:\n normalizedValue = preStyles.get(prop);\n break;\n case AUTO_STYLE:\n normalizedValue = postStyles.get(prop);\n break;\n default:\n normalizedValue = normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);\n break;\n }\n }\n normalizedKeyframe.set(normalizedProp, normalizedValue);\n });\n if (!isSameOffset) {\n normalizedKeyframes.push(normalizedKeyframe);\n }\n previousKeyframe = normalizedKeyframe;\n previousOffset = offset;\n });\n if (errors.length) {\n throw animationFailed(errors);\n }\n return normalizedKeyframes;\n}\nfunction listenOnPlayer(player, eventName, event, callback) {\n switch (eventName) {\n case 'start':\n player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));\n break;\n case 'done':\n player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));\n break;\n case 'destroy':\n player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));\n break;\n }\n}\nfunction copyAnimationEvent(e, phaseName, player) {\n const totalTime = player.totalTime;\n const disabled = player.disabled ? true : false;\n const event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);\n const data = e['_data'];\n if (data != null) {\n event['_data'] = data;\n }\n return event;\n}\nfunction makeAnimationEvent(element, triggerName, fromState, toState, phaseName = '', totalTime = 0, disabled) {\n return { element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled };\n}\nfunction getOrSetDefaultValue(map, key, defaultValue) {\n let value = map.get(key);\n if (!value) {\n map.set(key, (value = defaultValue));\n }\n return value;\n}\nfunction parseTimelineCommand(command) {\n const separatorPos = command.indexOf(':');\n const id = command.substring(1, separatorPos);\n const action = command.slice(separatorPos + 1);\n return [id, action];\n}\nconst documentElement = /* @__PURE__ */ (() => typeof document === 'undefined' ? null : document.documentElement)();\nfunction getParentElement(element) {\n const parent = element.parentNode || element.host || null; // consider host to support shadow DOM\n if (parent === documentElement) {\n return null;\n }\n return parent;\n}\nfunction containsVendorPrefix(prop) {\n // Webkit is the only real popular vendor prefix nowadays\n // cc: http://shouldiprefix.com/\n return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit\n}\nlet _CACHED_BODY = null;\nlet _IS_WEBKIT = false;\nfunction validateStyleProperty(prop) {\n if (!_CACHED_BODY) {\n _CACHED_BODY = getBodyNode() || {};\n _IS_WEBKIT = _CACHED_BODY.style ? 'WebkitAppearance' in _CACHED_BODY.style : false;\n }\n let result = true;\n if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {\n result = prop in _CACHED_BODY.style;\n if (!result && _IS_WEBKIT) {\n const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);\n result = camelProp in _CACHED_BODY.style;\n }\n }\n return result;\n}\nfunction validateWebAnimatableStyleProperty(prop) {\n return ANIMATABLE_PROP_SET.has(prop);\n}\nfunction getBodyNode() {\n if (typeof document != 'undefined') {\n return document.body;\n }\n return null;\n}\nfunction containsElement(elm1, elm2) {\n while (elm2) {\n if (elm2 === elm1) {\n return true;\n }\n elm2 = getParentElement(elm2);\n }\n return false;\n}\nfunction invokeQuery(element, selector, multi) {\n if (multi) {\n return Array.from(element.querySelectorAll(selector));\n }\n const elem = element.querySelector(selector);\n return elem ? [elem] : [];\n}\nfunction hypenatePropsKeys(original) {\n const newMap = new Map();\n original.forEach((val, prop) => {\n const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');\n newMap.set(newProp, val);\n });\n return newMap;\n}\n\n/**\n * @publicApi\n *\n * `AnimationDriver` implentation for Noop animations\n */\nclass NoopAnimationDriver {\n /**\n * @returns Whether `prop` is a valid CSS property\n */\n validateStyleProperty(prop) {\n return validateStyleProperty(prop);\n }\n /**\n * @deprecated unused\n */\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n /**\n *\n * @returns Whether elm1 contains elm2.\n */\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n /**\n * @returns Rhe parent of the given element or `null` if the element is the `document`\n */\n getParentElement(element) {\n return getParentElement(element);\n }\n /**\n * @returns The result of the query selector on the element. The array will contain up to 1 item\n * if `multi` is `false`.\n */\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n /**\n * @returns The `defaultValue` or empty string\n */\n computeStyle(element, prop, defaultValue) {\n return defaultValue || '';\n }\n /**\n * @returns An `NoopAnimationPlayer`\n */\n animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {\n return new NoopAnimationPlayer(duration, delay);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationDriver }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationDriver, decorators: [{\n type: Injectable\n }] });\n/**\n * @publicApi\n */\nclass AnimationDriver {\n /**\n * @deprecated Use the NoopAnimationDriver class.\n */\n static { this.NOOP = new NoopAnimationDriver(); }\n}\n\nclass AnimationStyleNormalizer {\n}\nclass NoopAnimationStyleNormalizer {\n normalizePropertyName(propertyName, errors) {\n return propertyName;\n }\n normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n return value;\n }\n}\n\nconst ONE_SECOND = 1000;\nconst SUBSTITUTION_EXPR_START = '{{';\nconst SUBSTITUTION_EXPR_END = '}}';\nconst ENTER_CLASSNAME = 'ng-enter';\nconst LEAVE_CLASSNAME = 'ng-leave';\nconst NG_TRIGGER_CLASSNAME = 'ng-trigger';\nconst NG_TRIGGER_SELECTOR = '.ng-trigger';\nconst NG_ANIMATING_CLASSNAME = 'ng-animating';\nconst NG_ANIMATING_SELECTOR = '.ng-animating';\nfunction resolveTimingValue(value) {\n if (typeof value == 'number')\n return value;\n const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);\n if (!matches || matches.length < 2)\n return 0;\n return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n}\nfunction _convertTimeValueToMS(value, unit) {\n switch (unit) {\n case 's':\n return value * ONE_SECOND;\n default: // ms or something else\n return value;\n }\n}\nfunction resolveTiming(timings, errors, allowNegativeValues) {\n return timings.hasOwnProperty('duration')\n ? timings\n : parseTimeExpression(timings, errors, allowNegativeValues);\n}\nfunction parseTimeExpression(exp, errors, allowNegativeValues) {\n const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;\n let duration;\n let delay = 0;\n let easing = '';\n if (typeof exp === 'string') {\n const matches = exp.match(regex);\n if (matches === null) {\n errors.push(invalidTimingValue(exp));\n return { duration: 0, delay: 0, easing: '' };\n }\n duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n const delayMatch = matches[3];\n if (delayMatch != null) {\n delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);\n }\n const easingVal = matches[5];\n if (easingVal) {\n easing = easingVal;\n }\n }\n else {\n duration = exp;\n }\n if (!allowNegativeValues) {\n let containsErrors = false;\n let startIndex = errors.length;\n if (duration < 0) {\n errors.push(negativeStepValue());\n containsErrors = true;\n }\n if (delay < 0) {\n errors.push(negativeDelayValue());\n containsErrors = true;\n }\n if (containsErrors) {\n errors.splice(startIndex, 0, invalidTimingValue(exp));\n }\n }\n return { duration, delay, easing };\n}\nfunction normalizeKeyframes(keyframes) {\n if (!keyframes.length) {\n return [];\n }\n if (keyframes[0] instanceof Map) {\n return keyframes;\n }\n return keyframes.map((kf) => new Map(Object.entries(kf)));\n}\nfunction normalizeStyles(styles) {\n return Array.isArray(styles) ? new Map(...styles) : new Map(styles);\n}\nfunction setStyles(element, styles, formerStyles) {\n styles.forEach((val, prop) => {\n const camelProp = dashCaseToCamelCase(prop);\n if (formerStyles && !formerStyles.has(prop)) {\n formerStyles.set(prop, element.style[camelProp]);\n }\n element.style[camelProp] = val;\n });\n}\nfunction eraseStyles(element, styles) {\n styles.forEach((_, prop) => {\n const camelProp = dashCaseToCamelCase(prop);\n element.style[camelProp] = '';\n });\n}\nfunction normalizeAnimationEntry(steps) {\n if (Array.isArray(steps)) {\n if (steps.length == 1)\n return steps[0];\n return sequence(steps);\n }\n return steps;\n}\nfunction validateStyleParams(value, options, errors) {\n const params = options.params || {};\n const matches = extractStyleParams(value);\n if (matches.length) {\n matches.forEach((varName) => {\n if (!params.hasOwnProperty(varName)) {\n errors.push(invalidStyleParams(varName));\n }\n });\n }\n}\nconst PARAM_REGEX = new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g');\nfunction extractStyleParams(value) {\n let params = [];\n if (typeof value === 'string') {\n let match;\n while ((match = PARAM_REGEX.exec(value))) {\n params.push(match[1]);\n }\n PARAM_REGEX.lastIndex = 0;\n }\n return params;\n}\nfunction interpolateParams(value, params, errors) {\n const original = `${value}`;\n const str = original.replace(PARAM_REGEX, (_, varName) => {\n let localVal = params[varName];\n // this means that the value was never overridden by the data passed in by the user\n if (localVal == null) {\n errors.push(invalidParamValue(varName));\n localVal = '';\n }\n return localVal.toString();\n });\n // we do this to assert that numeric values stay as they are\n return str == original ? value : str;\n}\nconst DASH_CASE_REGEXP = /-+([a-z0-9])/g;\nfunction dashCaseToCamelCase(input) {\n return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());\n}\nfunction camelCaseToDashCase(input) {\n return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n}\nfunction allowPreviousPlayerStylesMerge(duration, delay) {\n return duration === 0 || delay === 0;\n}\nfunction balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {\n if (previousStyles.size && keyframes.length) {\n let startingKeyframe = keyframes[0];\n let missingStyleProps = [];\n previousStyles.forEach((val, prop) => {\n if (!startingKeyframe.has(prop)) {\n missingStyleProps.push(prop);\n }\n startingKeyframe.set(prop, val);\n });\n if (missingStyleProps.length) {\n for (let i = 1; i < keyframes.length; i++) {\n let kf = keyframes[i];\n missingStyleProps.forEach((prop) => kf.set(prop, computeStyle(element, prop)));\n }\n }\n }\n return keyframes;\n}\nfunction visitDslNode(visitor, node, context) {\n switch (node.type) {\n case AnimationMetadataType.Trigger:\n return visitor.visitTrigger(node, context);\n case AnimationMetadataType.State:\n return visitor.visitState(node, context);\n case AnimationMetadataType.Transition:\n return visitor.visitTransition(node, context);\n case AnimationMetadataType.Sequence:\n return visitor.visitSequence(node, context);\n case AnimationMetadataType.Group:\n return visitor.visitGroup(node, context);\n case AnimationMetadataType.Animate:\n return visitor.visitAnimate(node, context);\n case AnimationMetadataType.Keyframes:\n return visitor.visitKeyframes(node, context);\n case AnimationMetadataType.Style:\n return visitor.visitStyle(node, context);\n case AnimationMetadataType.Reference:\n return visitor.visitReference(node, context);\n case AnimationMetadataType.AnimateChild:\n return visitor.visitAnimateChild(node, context);\n case AnimationMetadataType.AnimateRef:\n return visitor.visitAnimateRef(node, context);\n case AnimationMetadataType.Query:\n return visitor.visitQuery(node, context);\n case AnimationMetadataType.Stagger:\n return visitor.visitStagger(node, context);\n default:\n throw invalidNodeType(node.type);\n }\n}\nfunction computeStyle(element, prop) {\n return window.getComputedStyle(element)[prop];\n}\n\nconst DIMENSIONAL_PROP_SET = new Set([\n 'width',\n 'height',\n 'minWidth',\n 'minHeight',\n 'maxWidth',\n 'maxHeight',\n 'left',\n 'top',\n 'bottom',\n 'right',\n 'fontSize',\n 'outlineWidth',\n 'outlineOffset',\n 'paddingTop',\n 'paddingLeft',\n 'paddingBottom',\n 'paddingRight',\n 'marginTop',\n 'marginLeft',\n 'marginBottom',\n 'marginRight',\n 'borderRadius',\n 'borderWidth',\n 'borderTopWidth',\n 'borderLeftWidth',\n 'borderRightWidth',\n 'borderBottomWidth',\n 'textIndent',\n 'perspective',\n]);\nclass WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {\n normalizePropertyName(propertyName, errors) {\n return dashCaseToCamelCase(propertyName);\n }\n normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n let unit = '';\n const strVal = value.toString().trim();\n if (DIMENSIONAL_PROP_SET.has(normalizedProperty) && value !== 0 && value !== '0') {\n if (typeof value === 'number') {\n unit = 'px';\n }\n else {\n const valAndSuffixMatch = value.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\n if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\n errors.push(invalidCssUnitValue(userProvidedProperty, value));\n }\n }\n }\n return strVal + unit;\n }\n}\n\nfunction createListOfWarnings(warnings) {\n const LINE_START = '\\n - ';\n return `${LINE_START}${warnings\n .filter(Boolean)\n .map((warning) => warning)\n .join(LINE_START)}`;\n}\nfunction warnValidation(warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`animation validation warnings:${createListOfWarnings(warnings)}`);\n}\nfunction warnTriggerBuild(name, warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`The animation trigger \"${name}\" has built with the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction warnRegister(warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`Animation built with the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction triggerParsingWarnings(name, warnings) {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n console.warn(`Animation parsing for the ${name} trigger presents the following warnings:${createListOfWarnings(warnings)}`);\n}\nfunction pushUnrecognizedPropertiesWarning(warnings, props) {\n if (props.length) {\n warnings.push(`The following provided properties are not recognized: ${props.join(', ')}`);\n }\n}\n\nconst ANY_STATE = '*';\nfunction parseTransitionExpr(transitionValue, errors) {\n const expressions = [];\n if (typeof transitionValue == 'string') {\n transitionValue\n .split(/\\s*,\\s*/)\n .forEach((str) => parseInnerTransitionStr(str, expressions, errors));\n }\n else {\n expressions.push(transitionValue);\n }\n return expressions;\n}\nfunction parseInnerTransitionStr(eventStr, expressions, errors) {\n if (eventStr[0] == ':') {\n const result = parseAnimationAlias(eventStr, errors);\n if (typeof result == 'function') {\n expressions.push(result);\n return;\n }\n eventStr = result;\n }\n const match = eventStr.match(/^(\\*|[-\\w]+)\\s*(<?[=-]>)\\s*(\\*|[-\\w]+)$/);\n if (match == null || match.length < 4) {\n errors.push(invalidExpression(eventStr));\n return expressions;\n }\n const fromState = match[1];\n const separator = match[2];\n const toState = match[3];\n expressions.push(makeLambdaFromStates(fromState, toState));\n const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;\n if (separator[0] == '<' && !isFullAnyStateExpr) {\n expressions.push(makeLambdaFromStates(toState, fromState));\n }\n return;\n}\nfunction parseAnimationAlias(alias, errors) {\n switch (alias) {\n case ':enter':\n return 'void => *';\n case ':leave':\n return '* => void';\n case ':increment':\n return (fromState, toState) => parseFloat(toState) > parseFloat(fromState);\n case ':decrement':\n return (fromState, toState) => parseFloat(toState) < parseFloat(fromState);\n default:\n errors.push(invalidTransitionAlias(alias));\n return '* => *';\n }\n}\n// DO NOT REFACTOR ... keep the follow set instantiations\n// with the values intact (closure compiler for some reason\n// removes follow-up lines that add the values outside of\n// the constructor...\nconst TRUE_BOOLEAN_VALUES = new Set(['true', '1']);\nconst FALSE_BOOLEAN_VALUES = new Set(['false', '0']);\nfunction makeLambdaFromStates(lhs, rhs) {\n const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);\n const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);\n return (fromState, toState) => {\n let lhsMatch = lhs == ANY_STATE || lhs == fromState;\n let rhsMatch = rhs == ANY_STATE || rhs == toState;\n if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {\n lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);\n }\n if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {\n rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);\n }\n return lhsMatch && rhsMatch;\n };\n}\n\nconst SELF_TOKEN = ':self';\nconst SELF_TOKEN_REGEX = new RegExp(`s*${SELF_TOKEN}s*,?`, 'g');\n/*\n * [Validation]\n * The visitor code below will traverse the animation AST generated by the animation verb functions\n * (the output is a tree of objects) and attempt to perform a series of validations on the data. The\n * following corner-cases will be validated:\n *\n * 1. Overlap of animations\n * Given that a CSS property cannot be animated in more than one place at the same time, it's\n * important that this behavior is detected and validated. The way in which this occurs is that\n * each time a style property is examined, a string-map containing the property will be updated with\n * the start and end times for when the property is used within an animation step.\n *\n * If there are two or more parallel animations that are currently running (these are invoked by the\n * group()) on the same element then the validator will throw an error. Since the start/end timing\n * values are collected for each property then if the current animation step is animating the same\n * property and its timing values fall anywhere into the window of time that the property is\n * currently being animated within then this is what causes an error.\n *\n * 2. Timing values\n * The validator will validate to see if a timing value of `duration delay easing` or\n * `durationNumber` is valid or not.\n *\n * (note that upon validation the code below will replace the timing data with an object containing\n * {duration,delay,easing}.\n *\n * 3. Offset Validation\n * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().\n * Offsets within keyframes() are considered valid when:\n *\n * - No offsets are used at all\n * - Each style() entry contains an offset value\n * - Each offset is between 0 and 1\n * - Each offset is greater to or equal than the previous one\n *\n * Otherwise an error will be thrown.\n */\nfunction buildAnimationAst(driver, metadata, errors, warnings) {\n return new AnimationAstBuilderVisitor(driver).build(metadata, errors, warnings);\n}\nconst ROOT_SELECTOR = '';\nclass AnimationAstBuilderVisitor {\n constructor(_driver) {\n this._driver = _driver;\n }\n build(metadata, errors, warnings) {\n const context = new AnimationAstBuilderContext(errors);\n this._resetContextStyleTimingState(context);\n const ast = (visitDslNode(this, normalizeAnimationEntry(metadata), context));\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (context.unsupportedCSSPropertiesFound.size) {\n pushUnrecognizedPropertiesWarning(warnings, [\n ...context.unsupportedCSSPropertiesFound.keys(),\n ]);\n }\n }\n return ast;\n }\n _resetContextStyleTimingState(context) {\n context.currentQuerySelector = ROOT_SELECTOR;\n context.collectedStyles = new Map();\n context.collectedStyles.set(ROOT_SELECTOR, new Map());\n context.currentTime = 0;\n }\n visitTrigger(metadata, context) {\n let queryCount = (context.queryCount = 0);\n let depCount = (context.depCount = 0);\n const states = [];\n const transitions = [];\n if (metadata.name.charAt(0) == '@') {\n context.errors.push(invalidTrigger());\n }\n metadata.definitions.forEach((def) => {\n this._resetContextStyleTimingState(context);\n if (def.type == AnimationMetadataType.State) {\n const stateDef = def;\n const name = stateDef.name;\n name\n .toString()\n .split(/\\s*,\\s*/)\n .forEach((n) => {\n stateDef.name = n;\n states.push(this.visitState(stateDef, context));\n });\n stateDef.name = name;\n }\n else if (def.type == AnimationMetadataType.Transition) {\n const transition = this.visitTransition(def, context);\n queryCount += transition.queryCount;\n depCount += transition.depCount;\n transitions.push(transition);\n }\n else {\n context.errors.push(invalidDefinition());\n }\n });\n return {\n type: AnimationMetadataType.Trigger,\n name: metadata.name,\n states,\n transitions,\n queryCount,\n depCount,\n options: null,\n };\n }\n visitState(metadata, context) {\n const styleAst = this.visitStyle(metadata.styles, context);\n const astParams = (metadata.options && metadata.options.params) || null;\n if (styleAst.containsDynamicStyles) {\n const missingSubs = new Set();\n const params = astParams || {};\n styleAst.styles.forEach((style) => {\n if (style instanceof Map) {\n style.forEach((value) => {\n extractStyleParams(value).forEach((sub) => {\n if (!params.hasOwnProperty(sub)) {\n missingSubs.add(sub);\n }\n });\n });\n }\n });\n if (missingSubs.size) {\n context.errors.push(invalidState(metadata.name, [...missingSubs.values()]));\n }\n }\n return {\n type: AnimationMetadataType.State,\n name: metadata.name,\n style: styleAst,\n options: astParams ? { params: astParams } : null,\n };\n }\n visitTransition(metadata, context) {\n context.queryCount = 0;\n context.depCount = 0;\n const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n const matchers = parseTransitionExpr(metadata.expr, context.errors);\n return {\n type: AnimationMetadataType.Transition,\n matchers,\n animation,\n queryCount: context.queryCount,\n depCount: context.depCount,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitSequence(metadata, context) {\n return {\n type: AnimationMetadataType.Sequence,\n steps: metadata.steps.map((s) => visitDslNode(this, s, context)),\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitGroup(metadata, context) {\n const currentTime = context.currentTime;\n let furthestTime = 0;\n const steps = metadata.steps.map((step) => {\n context.currentTime = currentTime;\n const innerAst = visitDslNode(this, step, context);\n furthestTime = Math.max(furthestTime, context.currentTime);\n return innerAst;\n });\n context.currentTime = furthestTime;\n return {\n type: AnimationMetadataType.Group,\n steps,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitAnimate(metadata, context) {\n const timingAst = constructTimingAst(metadata.timings, context.errors);\n context.currentAnimateTimings = timingAst;\n let styleAst;\n let styleMetadata = metadata.styles\n ? metadata.styles\n : style({});\n if (styleMetadata.type == AnimationMetadataType.Keyframes) {\n styleAst = this.visitKeyframes(styleMetadata, context);\n }\n else {\n let styleMetadata = metadata.styles;\n let isEmpty = false;\n if (!styleMetadata) {\n isEmpty = true;\n const newStyleData = {};\n if (timingAst.easing) {\n newStyleData['easing'] = timingAst.easing;\n }\n styleMetadata = style(newStyleData);\n }\n context.currentTime += timingAst.duration + timingAst.delay;\n const _styleAst = this.visitStyle(styleMetadata, context);\n _styleAst.isEmptyStep = isEmpty;\n styleAst = _styleAst;\n }\n context.currentAnimateTimings = null;\n return {\n type: AnimationMetadataType.Animate,\n timings: timingAst,\n style: styleAst,\n options: null,\n };\n }\n visitStyle(metadata, context) {\n const ast = this._makeStyleAst(metadata, context);\n this._validateStyleAst(ast, context);\n return ast;\n }\n _makeStyleAst(metadata, context) {\n const styles = [];\n const metadataStyles = Array.isArray(metadata.styles) ? metadata.styles : [metadata.styles];\n for (let styleTuple of metadataStyles) {\n if (typeof styleTuple === 'string') {\n if (styleTuple === AUTO_STYLE) {\n styles.push(styleTuple);\n }\n else {\n context.errors.push(invalidStyleValue(styleTuple));\n }\n }\n else {\n styles.push(new Map(Object.entries(styleTuple)));\n }\n }\n let containsDynamicStyles = false;\n let collectedEasing = null;\n styles.forEach((styleData) => {\n if (styleData instanceof Map) {\n if (styleData.has('easing')) {\n collectedEasing = styleData.get('easing');\n styleData.delete('easing');\n }\n if (!containsDynamicStyles) {\n for (let value of styleData.values()) {\n if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {\n containsDynamicStyles = true;\n break;\n }\n }\n }\n }\n });\n return {\n type: AnimationMetadataType.Style,\n styles,\n easing: collectedEasing,\n offset: metadata.offset,\n containsDynamicStyles,\n options: null,\n };\n }\n _validateStyleAst(ast, context) {\n const timings = context.currentAnimateTimings;\n let endTime = context.currentTime;\n let startTime = context.currentTime;\n if (timings && startTime > 0) {\n startTime -= timings.duration + timings.delay;\n }\n ast.styles.forEach((tuple) => {\n if (typeof tuple === 'string')\n return;\n tuple.forEach((value, prop) => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._driver.validateStyleProperty(prop)) {\n tuple.delete(prop);\n context.unsupportedCSSPropertiesFound.add(prop);\n return;\n }\n }\n // This is guaranteed to have a defined Map at this querySelector location making it\n // safe to add the assertion here. It is set as a default empty map in prior methods.\n const collectedStyles = context.collectedStyles.get(context.currentQuerySelector);\n const collectedEntry = collectedStyles.get(prop);\n let updateCollectedStyle = true;\n if (collectedEntry) {\n if (startTime != endTime &&\n startTime >= collectedEntry.startTime &&\n endTime <= collectedEntry.endTime) {\n context.errors.push(invalidParallelAnimation(prop, collectedEntry.startTime, collectedEntry.endTime, startTime, endTime));\n updateCollectedStyle = false;\n }\n // we always choose the smaller start time value since we\n // want to have a record of the entire animation window where\n // the style property is being animated in between\n startTime = collectedEntry.startTime;\n }\n if (updateCollectedStyle) {\n collectedStyles.set(prop, { startTime, endTime });\n }\n if (context.options) {\n validateStyleParams(value, context.options, context.errors);\n }\n });\n });\n }\n visitKeyframes(metadata, context) {\n const ast = { type: AnimationMetadataType.Keyframes, styles: [], options: null };\n if (!context.currentAnimateTimings) {\n context.errors.push(invalidKeyframes());\n return ast;\n }\n const MAX_KEYFRAME_OFFSET = 1;\n let totalKeyframesWithOffsets = 0;\n const offsets = [];\n let offsetsOutOfOrder = false;\n let keyframesOutOfRange = false;\n let previousOffset = 0;\n const keyframes = metadata.steps.map((styles) => {\n const style = this._makeStyleAst(styles, context);\n let offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);\n let offset = 0;\n if (offsetVal != null) {\n totalKeyframesWithOffsets++;\n offset = style.offset = offsetVal;\n }\n keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;\n offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;\n previousOffset = offset;\n offsets.push(offset);\n return style;\n });\n if (keyframesOutOfRange) {\n context.errors.push(invalidOffset());\n }\n if (offsetsOutOfOrder) {\n context.errors.push(keyframeOffsetsOutOfOrder());\n }\n const length = metadata.steps.length;\n let generatedOffset = 0;\n if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {\n context.errors.push(keyframesMissingOffsets());\n }\n else if (totalKeyframesWithOffsets == 0) {\n generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);\n }\n const limit = length - 1;\n const currentTime = context.currentTime;\n const currentAnimateTimings = context.currentAnimateTimings;\n const animateDuration = currentAnimateTimings.duration;\n keyframes.forEach((kf, i) => {\n const offset = generatedOffset > 0 ? (i == limit ? 1 : generatedOffset * i) : offsets[i];\n const durationUpToThisFrame = offset * animateDuration;\n context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;\n currentAnimateTimings.duration = durationUpToThisFrame;\n this._validateStyleAst(kf, context);\n kf.offset = offset;\n ast.styles.push(kf);\n });\n return ast;\n }\n visitReference(metadata, context) {\n return {\n type: AnimationMetadataType.Reference,\n animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitAnimateChild(metadata, context) {\n context.depCount++;\n return {\n type: AnimationMetadataType.AnimateChild,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitAnimateRef(metadata, context) {\n return {\n type: AnimationMetadataType.AnimateRef,\n animation: this.visitReference(metadata.animation, context),\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitQuery(metadata, context) {\n const parentSelector = context.currentQuerySelector;\n const options = (metadata.options || {});\n context.queryCount++;\n context.currentQuery = metadata;\n const [selector, includeSelf] = normalizeSelector(metadata.selector);\n context.currentQuerySelector = parentSelector.length\n ? parentSelector + ' ' + selector\n : selector;\n getOrSetDefaultValue(context.collectedStyles, context.currentQuerySelector, new Map());\n const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n context.currentQuery = null;\n context.currentQuerySelector = parentSelector;\n return {\n type: AnimationMetadataType.Query,\n selector,\n limit: options.limit || 0,\n optional: !!options.optional,\n includeSelf,\n animation,\n originalSelector: metadata.selector,\n options: normalizeAnimationOptions(metadata.options),\n };\n }\n visitStagger(metadata, context) {\n if (!context.currentQuery) {\n context.errors.push(invalidStagger());\n }\n const timings = metadata.timings === 'full'\n ? { duration: 0, delay: 0, easing: 'full' }\n : resolveTiming(metadata.timings, context.errors, true);\n return {\n type: AnimationMetadataType.Stagger,\n animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n timings,\n options: null,\n };\n }\n}\nfunction normalizeSelector(selector) {\n const hasAmpersand = selector.split(/\\s*,\\s*/).find((token) => token == SELF_TOKEN)\n ? true\n : false;\n if (hasAmpersand) {\n selector = selector.replace(SELF_TOKEN_REGEX, '');\n }\n // Note: the :enter and :leave aren't normalized here since those\n // selectors are filled in at runtime during timeline building\n selector = selector\n .replace(/@\\*/g, NG_TRIGGER_SELECTOR)\n .replace(/@\\w+/g, (match) => NG_TRIGGER_SELECTOR + '-' + match.slice(1))\n .replace(/:animating/g, NG_ANIMATING_SELECTOR);\n return [selector, hasAmpersand];\n}\nfunction normalizeParams(obj) {\n return obj ? { ...obj } : null;\n}\nclass AnimationAstBuilderContext {\n constructor(errors) {\n this.errors = errors;\n this.queryCount = 0;\n this.depCount = 0;\n this.currentTransition = null;\n this.currentQuery = null;\n this.currentQuerySelector = null;\n this.currentAnimateTimings = null;\n this.currentTime = 0;\n this.collectedStyles = new Map();\n this.options = null;\n this.unsupportedCSSPropertiesFound = new Set();\n }\n}\nfunction consumeOffset(styles) {\n if (typeof styles == 'string')\n return null;\n let offset = null;\n if (Array.isArray(styles)) {\n styles.forEach((styleTuple) => {\n if (styleTuple instanceof Map && styleTuple.has('offset')) {\n const obj = styleTuple;\n offset = parseFloat(obj.get('offset'));\n obj.delete('offset');\n }\n });\n }\n else if (styles instanceof Map && styles.has('offset')) {\n const obj = styles;\n offset = parseFloat(obj.get('offset'));\n obj.delete('offset');\n }\n return offset;\n}\nfunction constructTimingAst(value, errors) {\n if (value.hasOwnProperty('duration')) {\n return value;\n }\n if (typeof value == 'number') {\n const duration = resolveTiming(value, errors).duration;\n return makeTimingAst(duration, 0, '');\n }\n const strValue = value;\n const isDynamic = strValue.split(/\\s+/).some((v) => v.charAt(0) == '{' && v.charAt(1) == '{');\n if (isDynamic) {\n const ast = makeTimingAst(0, 0, '');\n ast.dynamic = true;\n ast.strValue = strValue;\n return ast;\n }\n const timings = resolveTiming(strValue, errors);\n return makeTimingAst(timings.duration, timings.delay, timings.easing);\n}\nfunction normalizeAnimationOptions(options) {\n if (options) {\n options = { ...options };\n if (options['params']) {\n options['params'] = normalizeParams(options['params']);\n }\n }\n else {\n options = {};\n }\n return options;\n}\nfunction makeTimingAst(duration, delay, easing) {\n return { duration, delay, easing };\n}\n\nfunction createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay, easing = null, subTimeline = false) {\n return {\n type: 1 /* AnimationTransitionInstructionType.TimelineAnimation */,\n element,\n keyframes,\n preStyleProps,\n postStyleProps,\n duration,\n delay,\n totalTime: duration + delay,\n easing,\n subTimeline,\n };\n}\n\nclass ElementInstructionMap {\n constructor() {\n this._map = new Map();\n }\n get(element) {\n return this._map.get(element) || [];\n }\n append(element, instructions) {\n let existingInstructions = this._map.get(element);\n if (!existingInstructions) {\n this._map.set(element, (existingInstructions = []));\n }\n existingInstructions.push(...instructions);\n }\n has(element) {\n return this._map.has(element);\n }\n clear() {\n this._map.clear();\n }\n}\n\nconst ONE_FRAME_IN_MILLISECONDS = 1;\nconst ENTER_TOKEN = ':enter';\nconst ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');\nconst LEAVE_TOKEN = ':leave';\nconst LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');\n/*\n * The code within this file aims to generate web-animations-compatible keyframes from Angular's\n * animation DSL code.\n *\n * The code below will be converted from:\n *\n * ```\n * sequence([\n * style({ opacity: 0 }),\n * animate(1000, style({ opacity: 0 }))\n * ])\n * ```\n *\n * To:\n * ```\n * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]\n * duration = 1000\n * delay = 0\n * easing = ''\n * ```\n *\n * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a\n * combination of AST traversal and merge-sort-like algorithms are used.\n *\n * [AST Traversal]\n * Each of the animation verbs, when executed, will return an string-map object representing what\n * type of action it is (style, animate, group, etc...) and the data associated with it. This means\n * that when functional composition mix of these functions is evaluated (like in the example above)\n * then it will end up producing a tree of objects representing the animation itself.\n *\n * When this animation object tree is processed by the visitor code below it will visit each of the\n * verb statements within the visitor. And during each visit it will build the context of the\n * animation keyframes by interacting with the `TimelineBuilder`.\n *\n * [TimelineBuilder]\n * This class is responsible for tracking the styles and building a series of keyframe objects for a\n * timeline between a start and end time. The builder starts off with an initial timeline and each\n * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a\n * `sequence()` then it will generate a sub timeline for each step as well as a new one after\n * they are complete.\n *\n * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub\n * timeline was created (based on one of the cases above) then the parent timeline will attempt to\n * merge the styles used within the sub timelines into itself (only with group() this will happen).\n * This happens with a merge operation (much like how the merge works in mergeSort) and it will only\n * copy the most recently used styles from the sub timelines into the parent timeline. This ensures\n * that if the styles are used later on in another phase of the animation then they will be the most\n * up-to-date values.\n *\n * [How Missing Styles Are Updated]\n * Each timeline has a `backFill` property which is responsible for filling in new styles into\n * already processed keyframes if a new style shows up later within the animation sequence.\n *\n * ```\n * sequence([\n * style({ width: 0 }),\n * animate(1000, style({ width: 100 })),\n * animate(1000, style({ width: 200 })),\n * animate(1000, style({ width: 300 }))\n * animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere\n * else\n * ])\n * ```\n *\n * What is happening here is that the `height` value is added later in the sequence, but is missing\n * from all previous animation steps. Therefore when a keyframe is created it would also be missing\n * from all previous keyframes up until where it is first used. For the timeline keyframe generation\n * to properly fill in the style it will place the previous value (the value from the parent\n * timeline) or a default value of `*` into the backFill map.\n *\n * When a sub-timeline is created it will have its own backFill property. This is done so that\n * styles present within the sub-timeline do not accidentally seep into the previous/future timeline\n * keyframes\n *\n * [Validation]\n * The code in this file is not responsible for validation. That functionality happens with within\n * the `AnimationValidatorVisitor` code.\n */\nfunction buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles = new Map(), finalStyles = new Map(), options, subInstructions, errors = []) {\n return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);\n}\nclass AnimationTimelineBuilderVisitor {\n buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors = []) {\n subInstructions = subInstructions || new ElementInstructionMap();\n const context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);\n context.options = options;\n const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n context.currentTimeline.delayNextStep(delay);\n context.currentTimeline.setStyles([startingStyles], null, context.errors, options);\n visitDslNode(this, ast, context);\n // this checks to see if an actual animation happened\n const timelines = context.timelines.filter((timeline) => timeline.containsAnimation());\n // note: we just want to apply the final styles for the rootElement, so we do not\n // just apply the styles to the last timeline but the last timeline which\n // element is the root one (basically `*`-styles are replaced with the actual\n // state style values only for the root element)\n if (timelines.length && finalStyles.size) {\n let lastRootTimeline;\n for (let i = timelines.length - 1; i >= 0; i--) {\n const timeline = timelines[i];\n if (timeline.element === rootElement) {\n lastRootTimeline = timeline;\n break;\n }\n }\n if (lastRootTimeline && !lastRootTimeline.allowOnlyTimelineStyles()) {\n lastRootTimeline.setStyles([finalStyles], null, context.errors, options);\n }\n }\n return timelines.length\n ? timelines.map((timeline) => timeline.buildKeyframes())\n : [createTimelineInstruction(rootElement, [], [], [], 0, delay, '', false)];\n }\n visitTrigger(ast, context) {\n // these values are not visited in this AST\n }\n visitState(ast, context) {\n // these values are not visited in this AST\n }\n visitTransition(ast, context) {\n // these values are not visited in this AST\n }\n visitAnimateChild(ast, context) {\n const elementInstructions = context.subInstructions.get(context.element);\n if (elementInstructions) {\n const innerContext = context.createSubContext(ast.options);\n const startTime = context.currentTimeline.currentTime;\n const endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);\n if (startTime != endTime) {\n // we do this on the upper context because we created a sub context for\n // the sub child animations\n context.transformIntoNewTimeline(endTime);\n }\n }\n context.previousNode = ast;\n }\n visitAnimateRef(ast, context) {\n const innerContext = context.createSubContext(ast.options);\n innerContext.transformIntoNewTimeline();\n this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);\n this.visitReference(ast.animation, innerContext);\n context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);\n context.previousNode = ast;\n }\n _applyAnimationRefDelays(animationsRefsOptions, context, innerContext) {\n for (const animationRefOptions of animationsRefsOptions) {\n const animationDelay = animationRefOptions?.delay;\n if (animationDelay) {\n const animationDelayValue = typeof animationDelay === 'number'\n ? animationDelay\n : resolveTimingValue(interpolateParams(animationDelay, animationRefOptions?.params ?? {}, context.errors));\n innerContext.delayNextStep(animationDelayValue);\n }\n }\n }\n _visitSubInstructions(instructions, context, options) {\n const startTime = context.currentTimeline.currentTime;\n let furthestTime = startTime;\n // this is a special-case for when a user wants to skip a sub\n // animation from being fired entirely.\n const duration = options.duration != null ? resolveTimingValue(options.duration) : null;\n const delay = options.delay != null ? resolveTimingValue(options.delay) : null;\n if (duration !== 0) {\n instructions.forEach((instruction) => {\n const instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);\n furthestTime = Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);\n });\n }\n return furthestTime;\n }\n visitReference(ast, context) {\n context.updateOptions(ast.options, true);\n visitDslNode(this, ast.animation, context);\n context.previousNode = ast;\n }\n visitSequence(ast, context) {\n const subContextCount = context.subContextCount;\n let ctx = context;\n const options = ast.options;\n if (options && (options.params || options.delay)) {\n ctx = context.createSubContext(options);\n ctx.transformIntoNewTimeline();\n if (options.delay != null) {\n if (ctx.previousNode.type == AnimationMetadataType.Style) {\n ctx.currentTimeline.snapshotCurrentStyles();\n ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n }\n const delay = resolveTimingValue(options.delay);\n ctx.delayNextStep(delay);\n }\n }\n if (ast.steps.length) {\n ast.steps.forEach((s) => visitDslNode(this, s, ctx));\n // this is here just in case the inner steps only contain or end with a style() call\n ctx.currentTimeline.applyStylesToKeyframe();\n // this means that some animation function within the sequence\n // ended up creating a sub timeline (which means the current\n // timeline cannot overlap with the contents of the sequence)\n if (ctx.subContextCount > subContextCount) {\n ctx.transformIntoNewTimeline();\n }\n }\n context.previousNode = ast;\n }\n visitGroup(ast, context) {\n const innerTimelines = [];\n let furthestTime = context.currentTimeline.currentTime;\n const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;\n ast.steps.forEach((s) => {\n const innerContext = context.createSubContext(ast.options);\n if (delay) {\n innerContext.delayNextStep(delay);\n }\n visitDslNode(this, s, innerContext);\n furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);\n innerTimelines.push(innerContext.currentTimeline);\n });\n // this operation is run after the AST loop because otherwise\n // if the parent timeline's collected styles were updated then\n // it would pass in invalid data into the new-to-be forked items\n innerTimelines.forEach((timeline) => context.currentTimeline.mergeTimelineCollectedStyles(timeline));\n context.transformIntoNewTimeline(furthestTime);\n context.previousNode = ast;\n }\n _visitTiming(ast, context) {\n if (ast.dynamic) {\n const strValue = ast.strValue;\n const timingValue = context.params\n ? interpolateParams(strValue, context.params, context.errors)\n : strValue;\n return resolveTiming(timingValue, context.errors);\n }\n else {\n return { duration: ast.duration, delay: ast.delay, easing: ast.easing };\n }\n }\n visitAnimate(ast, context) {\n const timings = (context.currentAnimateTimings = this._visitTiming(ast.timings, context));\n const timeline = context.currentTimeline;\n if (timings.delay) {\n context.incrementTime(timings.delay);\n timeline.snapshotCurrentStyles();\n }\n const style = ast.style;\n if (style.type == AnimationMetadataType.Keyframes) {\n this.visitKeyframes(style, context);\n }\n else {\n context.incrementTime(timings.duration);\n this.visitStyle(style, context);\n timeline.applyStylesToKeyframe();\n }\n context.currentAnimateTimings = null;\n context.previousNode = ast;\n }\n visitStyle(ast, context) {\n const timeline = context.currentTimeline;\n const timings = context.currentAnimateTimings;\n // this is a special case for when a style() call\n // directly follows an animate() call (but not inside of an animate() call)\n if (!timings && timeline.hasCurrentStyleProperties()) {\n timeline.forwardFrame();\n }\n const easing = (timings && timings.easing) || ast.easing;\n if (ast.isEmptyStep) {\n timeline.applyEmptyStep(easing);\n }\n else {\n timeline.setStyles(ast.styles, easing, context.errors, context.options);\n }\n context.previousNode = ast;\n }\n visitKeyframes(ast, context) {\n const currentAnimateTimings = context.currentAnimateTimings;\n const startTime = context.currentTimeline.duration;\n const duration = currentAnimateTimings.duration;\n const innerContext = context.createSubContext();\n const innerTimeline = innerContext.currentTimeline;\n innerTimeline.easing = currentAnimateTimings.easing;\n ast.styles.forEach((step) => {\n const offset = step.offset || 0;\n innerTimeline.forwardTime(offset * duration);\n innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);\n innerTimeline.applyStylesToKeyframe();\n });\n // this will ensure that the parent timeline gets all the styles from\n // the child even if the new timeline below is not used\n context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);\n // we do this because the window between this timeline and the sub timeline\n // should ensure that the styles within are exactly the same as they were before\n context.transformIntoNewTimeline(startTime + duration);\n context.previousNode = ast;\n }\n visitQuery(ast, context) {\n // in the event that the first step before this is a style step we need\n // to ensure the styles are applied before the children are animated\n const startTime = context.currentTimeline.currentTime;\n const options = (ast.options || {});\n const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n if (delay &&\n (context.previousNode.type === AnimationMetadataType.Style ||\n (startTime == 0 && context.currentTimeline.hasCurrentStyleProperties()))) {\n context.currentTimeline.snapshotCurrentStyles();\n context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n }\n let furthestTime = startTime;\n const elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);\n context.currentQueryTotal = elms.length;\n let sameElementTimeline = null;\n elms.forEach((element, i) => {\n context.currentQueryIndex = i;\n const innerContext = context.createSubContext(ast.options, element);\n if (delay) {\n innerContext.delayNextStep(delay);\n }\n if (element === context.element) {\n sameElementTimeline = innerContext.currentTimeline;\n }\n visitDslNode(this, ast.animation, innerContext);\n // this is here just incase the inner steps only contain or end\n // with a style() call (which is here to signal that this is a preparatory\n // call to style an element before it is animated again)\n innerContext.currentTimeline.applyStylesToKeyframe();\n const endTime = innerContext.currentTimeline.currentTime;\n furthestTime = Math.max(furthestTime, endTime);\n });\n context.currentQueryIndex = 0;\n context.currentQueryTotal = 0;\n context.transformIntoNewTimeline(furthestTime);\n if (sameElementTimeline) {\n context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);\n context.currentTimeline.snapshotCurrentStyles();\n }\n context.previousNode = ast;\n }\n visitStagger(ast, context) {\n const parentContext = context.parentContext;\n const tl = context.currentTimeline;\n const timings = ast.timings;\n const duration = Math.abs(timings.duration);\n const maxTime = duration * (context.currentQueryTotal - 1);\n let delay = duration * context.currentQueryIndex;\n let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;\n switch (staggerTransformer) {\n case 'reverse':\n delay = maxTime - delay;\n break;\n case 'full':\n delay = parentContext.currentStaggerTime;\n break;\n }\n const timeline = context.currentTimeline;\n if (delay) {\n timeline.delayNextStep(delay);\n }\n const startingTime = timeline.currentTime;\n visitDslNode(this, ast.animation, context);\n context.previousNode = ast;\n // time = duration + delay\n // the reason why this computation is so complex is because\n // the inner timeline may either have a delay value or a stretched\n // keyframe depending on if a subtimeline is not used or is used.\n parentContext.currentStaggerTime =\n tl.currentTime - startingTime + (tl.startTime - parentContext.currentTimeline.startTime);\n }\n}\nconst DEFAULT_NOOP_PREVIOUS_NODE = {};\nclass AnimationTimelineContext {\n constructor(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {\n this._driver = _driver;\n this.element = element;\n this.subInstructions = subInstructions;\n this._enterClassName = _enterClassName;\n this._leaveClassName = _leaveClassName;\n this.errors = errors;\n this.timelines = timelines;\n this.parentContext = null;\n this.currentAnimateTimings = null;\n this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n this.subContextCount = 0;\n this.options = {};\n this.currentQueryIndex = 0;\n this.currentQueryTotal = 0;\n this.currentStaggerTime = 0;\n this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);\n timelines.push(this.currentTimeline);\n }\n get params() {\n return this.options.params;\n }\n updateOptions(options, skipIfExists) {\n if (!options)\n return;\n const newOptions = options;\n let optionsToUpdate = this.options;\n // NOTE: this will get patched up when other animation methods support duration overrides\n if (newOptions.duration != null) {\n optionsToUpdate.duration = resolveTimingValue(newOptions.duration);\n }\n if (newOptions.delay != null) {\n optionsToUpdate.delay = resolveTimingValue(newOptions.delay);\n }\n const newParams = newOptions.params;\n if (newParams) {\n let paramsToUpdate = optionsToUpdate.params;\n if (!paramsToUpdate) {\n paramsToUpdate = this.options.params = {};\n }\n Object.keys(newParams).forEach((name) => {\n if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {\n paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);\n }\n });\n }\n }\n _copyOptions() {\n const options = {};\n if (this.options) {\n const oldParams = this.options.params;\n if (oldParams) {\n const params = (options['params'] = {});\n Object.keys(oldParams).forEach((name) => {\n params[name] = oldParams[name];\n });\n }\n }\n return options;\n }\n createSubContext(options = null, element, newTime) {\n const target = element || this.element;\n const context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));\n context.previousNode = this.previousNode;\n context.currentAnimateTimings = this.currentAnimateTimings;\n context.options = this._copyOptions();\n context.updateOptions(options);\n context.currentQueryIndex = this.currentQueryIndex;\n context.currentQueryTotal = this.currentQueryTotal;\n context.parentContext = this;\n this.subContextCount++;\n return context;\n }\n transformIntoNewTimeline(newTime) {\n this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n this.currentTimeline = this.currentTimeline.fork(this.element, newTime);\n this.timelines.push(this.currentTimeline);\n return this.currentTimeline;\n }\n appendInstructionToTimeline(instruction, duration, delay) {\n const updatedTimings = {\n duration: duration != null ? duration : instruction.duration,\n delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,\n easing: '',\n };\n const builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);\n this.timelines.push(builder);\n return updatedTimings;\n }\n incrementTime(time) {\n this.currentTimeline.forwardTime(this.currentTimeline.duration + time);\n }\n delayNextStep(delay) {\n // negative delays are not yet supported\n if (delay > 0) {\n this.currentTimeline.delayNextStep(delay);\n }\n }\n invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {\n let results = [];\n if (includeSelf) {\n results.push(this.element);\n }\n if (selector.length > 0) {\n // only if :self is used then the selector can be empty\n selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);\n selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);\n const multi = limit != 1;\n let elements = this._driver.query(this.element, selector, multi);\n if (limit !== 0) {\n elements =\n limit < 0\n ? elements.slice(elements.length + limit, elements.length)\n : elements.slice(0, limit);\n }\n results.push(...elements);\n }\n if (!optional && results.length == 0) {\n errors.push(invalidQuery(originalSelector));\n }\n return results;\n }\n}\nclass TimelineBuilder {\n constructor(_driver, element, startTime, _elementTimelineStylesLookup) {\n this._driver = _driver;\n this.element = element;\n this.startTime = startTime;\n this._elementTimelineStylesLookup = _elementTimelineStylesLookup;\n this.duration = 0;\n this.easing = null;\n this._previousKeyframe = new Map();\n this._currentKeyframe = new Map();\n this._keyframes = new Map();\n this._styleSummary = new Map();\n this._localTimelineStyles = new Map();\n this._pendingStyles = new Map();\n this._backFill = new Map();\n this._currentEmptyStepKeyframe = null;\n if (!this._elementTimelineStylesLookup) {\n this._elementTimelineStylesLookup = new Map();\n }\n this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);\n if (!this._globalTimelineStyles) {\n this._globalTimelineStyles = this._localTimelineStyles;\n this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);\n }\n this._loadKeyframe();\n }\n containsAnimation() {\n switch (this._keyframes.size) {\n case 0:\n return false;\n case 1:\n return this.hasCurrentStyleProperties();\n default:\n return true;\n }\n }\n hasCurrentStyleProperties() {\n return this._currentKeyframe.size > 0;\n }\n get currentTime() {\n return this.startTime + this.duration;\n }\n delayNextStep(delay) {\n // in the event that a style() step is placed right before a stagger()\n // and that style() step is the very first style() value in the animation\n // then we need to make a copy of the keyframe [0, copy, 1] so that the delay\n // properly applies the style() values to work with the stagger...\n const hasPreStyleStep = this._keyframes.size === 1 && this._pendingStyles.size;\n if (this.duration || hasPreStyleStep) {\n this.forwardTime(this.currentTime + delay);\n if (hasPreStyleStep) {\n this.snapshotCurrentStyles();\n }\n }\n else {\n this.startTime += delay;\n }\n }\n fork(element, currentTime) {\n this.applyStylesToKeyframe();\n return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);\n }\n _loadKeyframe() {\n if (this._currentKeyframe) {\n this._previousKeyframe = this._currentKeyframe;\n }\n this._currentKeyframe = this._keyframes.get(this.duration);\n if (!this._currentKeyframe) {\n this._currentKeyframe = new Map();\n this._keyframes.set(this.duration, this._currentKeyframe);\n }\n }\n forwardFrame() {\n this.duration += ONE_FRAME_IN_MILLISECONDS;\n this._loadKeyframe();\n }\n forwardTime(time) {\n this.applyStylesToKeyframe();\n this.duration = time;\n this._loadKeyframe();\n }\n _updateStyle(prop, value) {\n this._localTimelineStyles.set(prop, value);\n this._globalTimelineStyles.set(prop, value);\n this._styleSummary.set(prop, { time: this.currentTime, value });\n }\n allowOnlyTimelineStyles() {\n return this._currentEmptyStepKeyframe !== this._currentKeyframe;\n }\n applyEmptyStep(easing) {\n if (easing) {\n this._previousKeyframe.set('easing', easing);\n }\n // special case for animate(duration):\n // all missing styles are filled with a `*` value then\n // if any destination styles are filled in later on the same\n // keyframe then they will override the overridden styles\n // We use `_globalTimelineStyles` here because there may be\n // styles in previous keyframes that are not present in this timeline\n for (let [prop, value] of this._globalTimelineStyles) {\n this._backFill.set(prop, value || AUTO_STYLE);\n this._currentKeyframe.set(prop, AUTO_STYLE);\n }\n this._currentEmptyStepKeyframe = this._currentKeyframe;\n }\n setStyles(input, easing, errors, options) {\n if (easing) {\n this._previousKeyframe.set('easing', easing);\n }\n const params = (options && options.params) || {};\n const styles = flattenStyles(input, this._globalTimelineStyles);\n for (let [prop, value] of styles) {\n const val = interpolateParams(value, params, errors);\n this._pendingStyles.set(prop, val);\n if (!this._localTimelineStyles.has(prop)) {\n this._backFill.set(prop, this._globalTimelineStyles.get(prop) ?? AUTO_STYLE);\n }\n this._updateStyle(prop, val);\n }\n }\n applyStylesToKeyframe() {\n if (this._pendingStyles.size == 0)\n return;\n this._pendingStyles.forEach((val, prop) => {\n this._currentKeyframe.set(prop, val);\n });\n this._pendingStyles.clear();\n this._localTimelineStyles.forEach((val, prop) => {\n if (!this._currentKeyframe.has(prop)) {\n this._currentKeyframe.set(prop, val);\n }\n });\n }\n snapshotCurrentStyles() {\n for (let [prop, val] of this._localTimelineStyles) {\n this._pendingStyles.set(prop, val);\n this._updateStyle(prop, val);\n }\n }\n getFinalKeyframe() {\n return this._keyframes.get(this.duration);\n }\n get properties() {\n const properties = [];\n for (let prop in this._currentKeyframe) {\n properties.push(prop);\n }\n return properties;\n }\n mergeTimelineCollectedStyles(timeline) {\n timeline._styleSummary.forEach((details1, prop) => {\n const details0 = this._styleSummary.get(prop);\n if (!details0 || details1.time > details0.time) {\n this._updateStyle(prop, details1.value);\n }\n });\n }\n buildKeyframes() {\n this.applyStylesToKeyframe();\n const preStyleProps = new Set();\n const postStyleProps = new Set();\n const isEmpty = this._keyframes.size === 1 && this.duration === 0;\n let finalKeyframes = [];\n this._keyframes.forEach((keyframe, time) => {\n const finalKeyframe = new Map([...this._backFill, ...keyframe]);\n finalKeyframe.forEach((value, prop) => {\n if (value === ɵPRE_STYLE) {\n preStyleProps.add(prop);\n }\n else if (value === AUTO_STYLE) {\n postStyleProps.add(prop);\n }\n });\n if (!isEmpty) {\n finalKeyframe.set('offset', time / this.duration);\n }\n finalKeyframes.push(finalKeyframe);\n });\n const preProps = [...preStyleProps.values()];\n const postProps = [...postStyleProps.values()];\n // special case for a 0-second animation (which is designed just to place styles onscreen)\n if (isEmpty) {\n const kf0 = finalKeyframes[0];\n const kf1 = new Map(kf0);\n kf0.set('offset', 0);\n kf1.set('offset', 1);\n finalKeyframes = [kf0, kf1];\n }\n return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);\n }\n}\nclass SubTimelineBuilder extends TimelineBuilder {\n constructor(driver, element, keyframes, preStyleProps, postStyleProps, timings, _stretchStartingKeyframe = false) {\n super(driver, element, timings.delay);\n this.keyframes = keyframes;\n this.preStyleProps = preStyleProps;\n this.postStyleProps = postStyleProps;\n this._stretchStartingKeyframe = _stretchStartingKeyframe;\n this.timings = { duration: timings.duration, delay: timings.delay, easing: timings.easing };\n }\n containsAnimation() {\n return this.keyframes.length > 1;\n }\n buildKeyframes() {\n let keyframes = this.keyframes;\n let { delay, duration, easing } = this.timings;\n if (this._stretchStartingKeyframe && delay) {\n const newKeyframes = [];\n const totalTime = duration + delay;\n const startingGap = delay / totalTime;\n // the original starting keyframe now starts once the delay is done\n const newFirstKeyframe = new Map(keyframes[0]);\n newFirstKeyframe.set('offset', 0);\n newKeyframes.push(newFirstKeyframe);\n const oldFirstKeyframe = new Map(keyframes[0]);\n oldFirstKeyframe.set('offset', roundOffset(startingGap));\n newKeyframes.push(oldFirstKeyframe);\n /*\n When the keyframe is stretched then it means that the delay before the animation\n starts is gone. Instead the first keyframe is placed at the start of the animation\n and it is then copied to where it starts when the original delay is over. This basically\n means nothing animates during that delay, but the styles are still rendered. For this\n to work the original offset values that exist in the original keyframes must be \"warped\"\n so that they can take the new keyframe + delay into account.\n \n delay=1000, duration=1000, keyframes = 0 .5 1\n \n turns into\n \n delay=0, duration=2000, keyframes = 0 .33 .66 1\n */\n // offsets between 1 ... n -1 are all warped by the keyframe stretch\n const limit = keyframes.length - 1;\n for (let i = 1; i <= limit; i++) {\n let kf = new Map(keyframes[i]);\n const oldOffset = kf.get('offset');\n const timeAtKeyframe = delay + oldOffset * duration;\n kf.set('offset', roundOffset(timeAtKeyframe / totalTime));\n newKeyframes.push(kf);\n }\n // the new starting keyframe should be added at the start\n duration = totalTime;\n delay = 0;\n easing = '';\n keyframes = newKeyframes;\n }\n return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);\n }\n}\nfunction roundOffset(offset, decimalPoints = 3) {\n const mult = Math.pow(10, decimalPoints - 1);\n return Math.round(offset * mult) / mult;\n}\nfunction flattenStyles(input, allStyles) {\n const styles = new Map();\n let allProperties;\n input.forEach((token) => {\n if (token === '*') {\n allProperties ??= allStyles.keys();\n for (let prop of allProperties) {\n styles.set(prop, AUTO_STYLE);\n }\n }\n else {\n for (let [prop, val] of token) {\n styles.set(prop, val);\n }\n }\n });\n return styles;\n}\n\nfunction createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {\n return {\n type: 0 /* AnimationTransitionInstructionType.TransitionAnimation */,\n element,\n triggerName,\n isRemovalTransition,\n fromState,\n fromStyles,\n toState,\n toStyles,\n timelines,\n queriedElements,\n preStyleProps,\n postStyleProps,\n totalTime,\n errors,\n };\n}\n\nconst EMPTY_OBJECT = {};\nclass AnimationTransitionFactory {\n constructor(_triggerName, ast, _stateStyles) {\n this._triggerName = _triggerName;\n this.ast = ast;\n this._stateStyles = _stateStyles;\n }\n match(currentState, nextState, element, params) {\n return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);\n }\n buildStyles(stateName, params, errors) {\n let styler = this._stateStyles.get('*');\n if (stateName !== undefined) {\n styler = this._stateStyles.get(stateName?.toString()) || styler;\n }\n return styler ? styler.buildStyles(params, errors) : new Map();\n }\n build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {\n const errors = [];\n const transitionAnimationParams = (this.ast.options && this.ast.options.params) || EMPTY_OBJECT;\n const currentAnimationParams = (currentOptions && currentOptions.params) || EMPTY_OBJECT;\n const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);\n const nextAnimationParams = (nextOptions && nextOptions.params) || EMPTY_OBJECT;\n const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);\n const queriedElements = new Set();\n const preStyleMap = new Map();\n const postStyleMap = new Map();\n const isRemoval = nextState === 'void';\n const animationOptions = {\n params: applyParamDefaults(nextAnimationParams, transitionAnimationParams),\n delay: this.ast.options?.delay,\n };\n const timelines = skipAstBuild\n ? []\n : buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);\n let totalTime = 0;\n timelines.forEach((tl) => {\n totalTime = Math.max(tl.duration + tl.delay, totalTime);\n });\n if (errors.length) {\n return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);\n }\n timelines.forEach((tl) => {\n const elm = tl.element;\n const preProps = getOrSetDefaultValue(preStyleMap, elm, new Set());\n tl.preStyleProps.forEach((prop) => preProps.add(prop));\n const postProps = getOrSetDefaultValue(postStyleMap, elm, new Set());\n tl.postStyleProps.forEach((prop) => postProps.add(prop));\n if (elm !== element) {\n queriedElements.add(elm);\n }\n });\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n checkNonAnimatableInTimelines(timelines, this._triggerName, driver);\n }\n return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, [...queriedElements.values()], preStyleMap, postStyleMap, totalTime);\n }\n}\n/**\n * Checks inside a set of timelines if they try to animate a css property which is not considered\n * animatable, in that case it prints a warning on the console.\n * Besides that the function doesn't have any other effect.\n *\n * Note: this check is done here after the timelines are built instead of doing on a lower level so\n * that we can make sure that the warning appears only once per instruction (we can aggregate here\n * all the issues instead of finding them separately).\n *\n * @param timelines The built timelines for the current instruction.\n * @param triggerName The name of the trigger for the current instruction.\n * @param driver Animation driver used to perform the check.\n *\n */\nfunction checkNonAnimatableInTimelines(timelines, triggerName, driver) {\n if (!driver.validateAnimatableStyleProperty) {\n return;\n }\n const allowedNonAnimatableProps = new Set([\n // 'easing' is a utility/synthetic prop we use to represent\n // easing functions, it represents a property of the animation\n // which is not animatable but different values can be used\n // in different steps\n 'easing',\n ]);\n const invalidNonAnimatableProps = new Set();\n timelines.forEach(({ keyframes }) => {\n const nonAnimatablePropsInitialValues = new Map();\n keyframes.forEach((keyframe) => {\n const entriesToCheck = Array.from(keyframe.entries()).filter(([prop]) => !allowedNonAnimatableProps.has(prop));\n for (const [prop, value] of entriesToCheck) {\n if (!driver.validateAnimatableStyleProperty(prop)) {\n if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {\n const propInitialValue = nonAnimatablePropsInitialValues.get(prop);\n if (propInitialValue !== value) {\n invalidNonAnimatableProps.add(prop);\n }\n }\n else {\n nonAnimatablePropsInitialValues.set(prop, value);\n }\n }\n }\n });\n });\n if (invalidNonAnimatableProps.size > 0) {\n console.warn(`Warning: The animation trigger \"${triggerName}\" is attempting to animate the following` +\n ' not animatable properties: ' +\n Array.from(invalidNonAnimatableProps).join(', ') +\n '\\n' +\n '(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)');\n }\n}\nfunction oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {\n return matchFns.some((fn) => fn(currentState, nextState, element, params));\n}\nfunction applyParamDefaults(userParams, defaults) {\n const result = { ...defaults };\n Object.entries(userParams).forEach(([key, value]) => {\n if (value != null) {\n result[key] = value;\n }\n });\n return result;\n}\nclass AnimationStateStyles {\n constructor(styles, defaultParams, normalizer) {\n this.styles = styles;\n this.defaultParams = defaultParams;\n this.normalizer = normalizer;\n }\n buildStyles(params, errors) {\n const finalStyles = new Map();\n const combinedParams = applyParamDefaults(params, this.defaultParams);\n this.styles.styles.forEach((value) => {\n if (typeof value !== 'string') {\n value.forEach((val, prop) => {\n if (val) {\n val = interpolateParams(val, combinedParams, errors);\n }\n const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);\n val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);\n finalStyles.set(prop, val);\n });\n }\n });\n return finalStyles;\n }\n}\n\nfunction buildTrigger(name, ast, normalizer) {\n return new AnimationTrigger(name, ast, normalizer);\n}\nclass AnimationTrigger {\n constructor(name, ast, _normalizer) {\n this.name = name;\n this.ast = ast;\n this._normalizer = _normalizer;\n this.transitionFactories = [];\n this.states = new Map();\n ast.states.forEach((ast) => {\n const defaultParams = (ast.options && ast.options.params) || {};\n this.states.set(ast.name, new AnimationStateStyles(ast.style, defaultParams, _normalizer));\n });\n balanceProperties(this.states, 'true', '1');\n balanceProperties(this.states, 'false', '0');\n ast.transitions.forEach((ast) => {\n this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));\n });\n this.fallbackTransition = createFallbackTransition(name, this.states, this._normalizer);\n }\n get containsQueries() {\n return this.ast.queryCount > 0;\n }\n matchTransition(currentState, nextState, element, params) {\n const entry = this.transitionFactories.find((f) => f.match(currentState, nextState, element, params));\n return entry || null;\n }\n matchStyles(currentState, params, errors) {\n return this.fallbackTransition.buildStyles(currentState, params, errors);\n }\n}\nfunction createFallbackTransition(triggerName, states, normalizer) {\n const matchers = [(fromState, toState) => true];\n const animation = { type: AnimationMetadataType.Sequence, steps: [], options: null };\n const transition = {\n type: AnimationMetadataType.Transition,\n animation,\n matchers,\n options: null,\n queryCount: 0,\n depCount: 0,\n };\n return new AnimationTransitionFactory(triggerName, transition, states);\n}\nfunction balanceProperties(stateMap, key1, key2) {\n if (stateMap.has(key1)) {\n if (!stateMap.has(key2)) {\n stateMap.set(key2, stateMap.get(key1));\n }\n }\n else if (stateMap.has(key2)) {\n stateMap.set(key1, stateMap.get(key2));\n }\n}\n\nconst EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();\nclass TimelineAnimationEngine {\n constructor(bodyNode, _driver, _normalizer) {\n this.bodyNode = bodyNode;\n this._driver = _driver;\n this._normalizer = _normalizer;\n this._animations = new Map();\n this._playersById = new Map();\n this.players = [];\n }\n register(id, metadata) {\n const errors = [];\n const warnings = [];\n const ast = buildAnimationAst(this._driver, metadata, errors, warnings);\n if (errors.length) {\n throw registerFailed(errors);\n }\n else {\n if (warnings.length) {\n warnRegister(warnings);\n }\n this._animations.set(id, ast);\n }\n }\n _buildPlayer(i, preStyles, postStyles) {\n const element = i.element;\n const keyframes = normalizeKeyframes$1(this._normalizer, i.keyframes, preStyles, postStyles);\n return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);\n }\n create(id, element, options = {}) {\n const errors = [];\n const ast = this._animations.get(id);\n let instructions;\n const autoStylesMap = new Map();\n if (ast) {\n instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, new Map(), new Map(), options, EMPTY_INSTRUCTION_MAP, errors);\n instructions.forEach((inst) => {\n const styles = getOrSetDefaultValue(autoStylesMap, inst.element, new Map());\n inst.postStyleProps.forEach((prop) => styles.set(prop, null));\n });\n }\n else {\n errors.push(missingOrDestroyedAnimation());\n instructions = [];\n }\n if (errors.length) {\n throw createAnimationFailed(errors);\n }\n autoStylesMap.forEach((styles, element) => {\n styles.forEach((_, prop) => {\n styles.set(prop, this._driver.computeStyle(element, prop, AUTO_STYLE));\n });\n });\n const players = instructions.map((i) => {\n const styles = autoStylesMap.get(i.element);\n return this._buildPlayer(i, new Map(), styles);\n });\n const player = optimizeGroupPlayer(players);\n this._playersById.set(id, player);\n player.onDestroy(() => this.destroy(id));\n this.players.push(player);\n return player;\n }\n destroy(id) {\n const player = this._getPlayer(id);\n player.destroy();\n this._playersById.delete(id);\n const index = this.players.indexOf(player);\n if (index >= 0) {\n this.players.splice(index, 1);\n }\n }\n _getPlayer(id) {\n const player = this._playersById.get(id);\n if (!player) {\n throw missingPlayer(id);\n }\n return player;\n }\n listen(id, element, eventName, callback) {\n // triggerName, fromState, toState are all ignored for timeline animations\n const baseEvent = makeAnimationEvent(element, '', '', '');\n listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);\n return () => { };\n }\n command(id, element, command, args) {\n if (command == 'register') {\n this.register(id, args[0]);\n return;\n }\n if (command == 'create') {\n const options = (args[0] || {});\n this.create(id, element, options);\n return;\n }\n const player = this._getPlayer(id);\n switch (command) {\n case 'play':\n player.play();\n break;\n case 'pause':\n player.pause();\n break;\n case 'reset':\n player.reset();\n break;\n case 'restart':\n player.restart();\n break;\n case 'finish':\n player.finish();\n break;\n case 'init':\n player.init();\n break;\n case 'setPosition':\n player.setPosition(parseFloat(args[0]));\n break;\n case 'destroy':\n this.destroy(id);\n break;\n }\n }\n}\n\nconst QUEUED_CLASSNAME = 'ng-animate-queued';\nconst QUEUED_SELECTOR = '.ng-animate-queued';\nconst DISABLED_CLASSNAME = 'ng-animate-disabled';\nconst DISABLED_SELECTOR = '.ng-animate-disabled';\nconst STAR_CLASSNAME = 'ng-star-inserted';\nconst STAR_SELECTOR = '.ng-star-inserted';\nconst EMPTY_PLAYER_ARRAY = [];\nconst NULL_REMOVAL_STATE = {\n namespaceId: '',\n setForRemoval: false,\n setForMove: false,\n hasAnimation: false,\n removedBeforeQueried: false,\n};\nconst NULL_REMOVED_QUERIED_STATE = {\n namespaceId: '',\n setForMove: false,\n setForRemoval: false,\n hasAnimation: false,\n removedBeforeQueried: true,\n};\nconst REMOVAL_FLAG = '__ng_removed';\nclass StateValue {\n get params() {\n return this.options.params;\n }\n constructor(input, namespaceId = '') {\n this.namespaceId = namespaceId;\n const isObj = input && input.hasOwnProperty('value');\n const value = isObj ? input['value'] : input;\n this.value = normalizeTriggerValue(value);\n if (isObj) {\n // we drop the value property from options.\n const { value, ...options } = input;\n this.options = options;\n }\n else {\n this.options = {};\n }\n if (!this.options.params) {\n this.options.params = {};\n }\n }\n absorbOptions(options) {\n const newParams = options.params;\n if (newParams) {\n const oldParams = this.options.params;\n Object.keys(newParams).forEach((prop) => {\n if (oldParams[prop] == null) {\n oldParams[prop] = newParams[prop];\n }\n });\n }\n }\n}\nconst VOID_VALUE = 'void';\nconst DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);\nclass AnimationTransitionNamespace {\n constructor(id, hostElement, _engine) {\n this.id = id;\n this.hostElement = hostElement;\n this._engine = _engine;\n this.players = [];\n this._triggers = new Map();\n this._queue = [];\n this._elementListeners = new Map();\n this._hostClassName = 'ng-tns-' + id;\n addClass(hostElement, this._hostClassName);\n }\n listen(element, name, phase, callback) {\n if (!this._triggers.has(name)) {\n throw missingTrigger(phase, name);\n }\n if (phase == null || phase.length == 0) {\n throw missingEvent(name);\n }\n if (!isTriggerEventValid(phase)) {\n throw unsupportedTriggerEvent(phase, name);\n }\n const listeners = getOrSetDefaultValue(this._elementListeners, element, []);\n const data = { name, phase, callback };\n listeners.push(data);\n const triggersWithStates = getOrSetDefaultValue(this._engine.statesByElement, element, new Map());\n if (!triggersWithStates.has(name)) {\n addClass(element, NG_TRIGGER_CLASSNAME);\n addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);\n triggersWithStates.set(name, DEFAULT_STATE_VALUE);\n }\n return () => {\n // the event listener is removed AFTER the flush has occurred such\n // that leave animations callbacks can fire (otherwise if the node\n // is removed in between then the listeners would be deregistered)\n this._engine.afterFlush(() => {\n const index = listeners.indexOf(data);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n if (!this._triggers.has(name)) {\n triggersWithStates.delete(name);\n }\n });\n };\n }\n register(name, ast) {\n if (this._triggers.has(name)) {\n // throw\n return false;\n }\n else {\n this._triggers.set(name, ast);\n return true;\n }\n }\n _getTrigger(name) {\n const trigger = this._triggers.get(name);\n if (!trigger) {\n throw unregisteredTrigger(name);\n }\n return trigger;\n }\n trigger(element, triggerName, value, defaultToFallback = true) {\n const trigger = this._getTrigger(triggerName);\n const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n let triggersWithStates = this._engine.statesByElement.get(element);\n if (!triggersWithStates) {\n addClass(element, NG_TRIGGER_CLASSNAME);\n addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);\n this._engine.statesByElement.set(element, (triggersWithStates = new Map()));\n }\n let fromState = triggersWithStates.get(triggerName);\n const toState = new StateValue(value, this.id);\n const isObj = value && value.hasOwnProperty('value');\n if (!isObj && fromState) {\n toState.absorbOptions(fromState.options);\n }\n triggersWithStates.set(triggerName, toState);\n if (!fromState) {\n fromState = DEFAULT_STATE_VALUE;\n }\n const isRemoval = toState.value === VOID_VALUE;\n // normally this isn't reached by here, however, if an object expression\n // is passed in then it may be a new object each time. Comparing the value\n // is important since that will stay the same despite there being a new object.\n // The removal arc here is special cased because the same element is triggered\n // twice in the event that it contains animations on the outer/inner portions\n // of the host container\n if (!isRemoval && fromState.value === toState.value) {\n // this means that despite the value not changing, some inner params\n // have changed which means that the animation final styles need to be applied\n if (!objEquals(fromState.params, toState.params)) {\n const errors = [];\n const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);\n const toStyles = trigger.matchStyles(toState.value, toState.params, errors);\n if (errors.length) {\n this._engine.reportError(errors);\n }\n else {\n this._engine.afterFlush(() => {\n eraseStyles(element, fromStyles);\n setStyles(element, toStyles);\n });\n }\n }\n return;\n }\n const playersOnElement = getOrSetDefaultValue(this._engine.playersByElement, element, []);\n playersOnElement.forEach((player) => {\n // only remove the player if it is queued on the EXACT same trigger/namespace\n // we only also deal with queued players here because if the animation has\n // started then we want to keep the player alive until the flush happens\n // (which is where the previousPlayers are passed into the new player)\n if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {\n player.destroy();\n }\n });\n let transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);\n let isFallbackTransition = false;\n if (!transition) {\n if (!defaultToFallback)\n return;\n transition = trigger.fallbackTransition;\n isFallbackTransition = true;\n }\n this._engine.totalQueuedPlayers++;\n this._queue.push({\n element,\n triggerName,\n transition,\n fromState,\n toState,\n player,\n isFallbackTransition,\n });\n if (!isFallbackTransition) {\n addClass(element, QUEUED_CLASSNAME);\n player.onStart(() => {\n removeClass(element, QUEUED_CLASSNAME);\n });\n }\n player.onDone(() => {\n let index = this.players.indexOf(player);\n if (index >= 0) {\n this.players.splice(index, 1);\n }\n const players = this._engine.playersByElement.get(element);\n if (players) {\n let index = players.indexOf(player);\n if (index >= 0) {\n players.splice(index, 1);\n }\n }\n });\n this.players.push(player);\n playersOnElement.push(player);\n return player;\n }\n deregister(name) {\n this._triggers.delete(name);\n this._engine.statesByElement.forEach((stateMap) => stateMap.delete(name));\n this._elementListeners.forEach((listeners, element) => {\n this._elementListeners.set(element, listeners.filter((entry) => {\n return entry.name != name;\n }));\n });\n }\n clearElementCache(element) {\n this._engine.statesByElement.delete(element);\n this._elementListeners.delete(element);\n const elementPlayers = this._engine.playersByElement.get(element);\n if (elementPlayers) {\n elementPlayers.forEach((player) => player.destroy());\n this._engine.playersByElement.delete(element);\n }\n }\n _signalRemovalForInnerTriggers(rootElement, context) {\n const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);\n // emulate a leave animation for all inner nodes within this node.\n // If there are no animations found for any of the nodes then clear the cache\n // for the element.\n elements.forEach((elm) => {\n // this means that an inner remove() operation has already kicked off\n // the animation on this element...\n if (elm[REMOVAL_FLAG])\n return;\n const namespaces = this._engine.fetchNamespacesByElement(elm);\n if (namespaces.size) {\n namespaces.forEach((ns) => ns.triggerLeaveAnimation(elm, context, false, true));\n }\n else {\n this.clearElementCache(elm);\n }\n });\n // If the child elements were removed along with the parent, their animations might not\n // have completed. Clear all the elements from the cache so we don't end up with a memory leak.\n this._engine.afterFlushAnimationsDone(() => elements.forEach((elm) => this.clearElementCache(elm)));\n }\n triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {\n const triggerStates = this._engine.statesByElement.get(element);\n const previousTriggersValues = new Map();\n if (triggerStates) {\n const players = [];\n triggerStates.forEach((state, triggerName) => {\n previousTriggersValues.set(triggerName, state.value);\n // this check is here in the event that an element is removed\n // twice (both on the host level and the component level)\n if (this._triggers.has(triggerName)) {\n const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);\n if (player) {\n players.push(player);\n }\n }\n });\n if (players.length) {\n this._engine.markElementAsRemoved(this.id, element, true, context, previousTriggersValues);\n if (destroyAfterComplete) {\n optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));\n }\n return true;\n }\n }\n return false;\n }\n prepareLeaveAnimationListeners(element) {\n const listeners = this._elementListeners.get(element);\n const elementStates = this._engine.statesByElement.get(element);\n // if this statement fails then it means that the element was picked up\n // by an earlier flush (or there are no listeners at all to track the leave).\n if (listeners && elementStates) {\n const visitedTriggers = new Set();\n listeners.forEach((listener) => {\n const triggerName = listener.name;\n if (visitedTriggers.has(triggerName))\n return;\n visitedTriggers.add(triggerName);\n const trigger = this._triggers.get(triggerName);\n const transition = trigger.fallbackTransition;\n const fromState = elementStates.get(triggerName) || DEFAULT_STATE_VALUE;\n const toState = new StateValue(VOID_VALUE);\n const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n this._engine.totalQueuedPlayers++;\n this._queue.push({\n element,\n triggerName,\n transition,\n fromState,\n toState,\n player,\n isFallbackTransition: true,\n });\n });\n }\n }\n removeNode(element, context) {\n const engine = this._engine;\n if (element.childElementCount) {\n this._signalRemovalForInnerTriggers(element, context);\n }\n // this means that a * => VOID animation was detected and kicked off\n if (this.triggerLeaveAnimation(element, context, true))\n return;\n // find the player that is animating and make sure that the\n // removal is delayed until that player has completed\n let containsPotentialParentTransition = false;\n if (engine.totalAnimations) {\n const currentPlayers = engine.players.length\n ? engine.playersByQueriedElement.get(element)\n : [];\n // when this `if statement` does not continue forward it means that\n // a previous animation query has selected the current element and\n // is animating it. In this situation want to continue forwards and\n // allow the element to be queued up for animation later.\n if (currentPlayers && currentPlayers.length) {\n containsPotentialParentTransition = true;\n }\n else {\n let parent = element;\n while ((parent = parent.parentNode)) {\n const triggers = engine.statesByElement.get(parent);\n if (triggers) {\n containsPotentialParentTransition = true;\n break;\n }\n }\n }\n }\n // at this stage we know that the element will either get removed\n // during flush or will be picked up by a parent query. Either way\n // we need to fire the listeners for this element when it DOES get\n // removed (once the query parent animation is done or after flush)\n this.prepareLeaveAnimationListeners(element);\n // whether or not a parent has an animation we need to delay the deferral of the leave\n // operation until we have more information (which we do after flush() has been called)\n if (containsPotentialParentTransition) {\n engine.markElementAsRemoved(this.id, element, false, context);\n }\n else {\n const removalFlag = element[REMOVAL_FLAG];\n if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {\n // we do this after the flush has occurred such\n // that the callbacks can be fired\n engine.afterFlush(() => this.clearElementCache(element));\n engine.destroyInnerAnimations(element);\n engine._onRemovalComplete(element, context);\n }\n }\n }\n insertNode(element, parent) {\n addClass(element, this._hostClassName);\n }\n drainQueuedTransitions(microtaskId) {\n const instructions = [];\n this._queue.forEach((entry) => {\n const player = entry.player;\n if (player.destroyed)\n return;\n const element = entry.element;\n const listeners = this._elementListeners.get(element);\n if (listeners) {\n listeners.forEach((listener) => {\n if (listener.name == entry.triggerName) {\n const baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);\n baseEvent['_data'] = microtaskId;\n listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);\n }\n });\n }\n if (player.markedForDestroy) {\n this._engine.afterFlush(() => {\n // now we can destroy the element properly since the event listeners have\n // been bound to the player\n player.destroy();\n });\n }\n else {\n instructions.push(entry);\n }\n });\n this._queue = [];\n return instructions.sort((a, b) => {\n // if depCount == 0 them move to front\n // otherwise if a contains b then move back\n const d0 = a.transition.ast.depCount;\n const d1 = b.transition.ast.depCount;\n if (d0 == 0 || d1 == 0) {\n return d0 - d1;\n }\n return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;\n });\n }\n destroy(context) {\n this.players.forEach((p) => p.destroy());\n this._signalRemovalForInnerTriggers(this.hostElement, context);\n }\n}\nclass TransitionAnimationEngine {\n /** @internal */\n _onRemovalComplete(element, context) {\n this.onRemovalComplete(element, context);\n }\n constructor(bodyNode, driver, _normalizer, scheduler) {\n this.bodyNode = bodyNode;\n this.driver = driver;\n this._normalizer = _normalizer;\n this.scheduler = scheduler;\n this.players = [];\n this.newHostElements = new Map();\n this.playersByElement = new Map();\n this.playersByQueriedElement = new Map();\n this.statesByElement = new Map();\n this.disabledNodes = new Set();\n this.totalAnimations = 0;\n this.totalQueuedPlayers = 0;\n this._namespaceLookup = {};\n this._namespaceList = [];\n this._flushFns = [];\n this._whenQuietFns = [];\n this.namespacesByHostElement = new Map();\n this.collectedEnterElements = [];\n this.collectedLeaveElements = [];\n // this method is designed to be overridden by the code that uses this engine\n this.onRemovalComplete = (element, context) => { };\n }\n get queuedPlayers() {\n const players = [];\n this._namespaceList.forEach((ns) => {\n ns.players.forEach((player) => {\n if (player.queued) {\n players.push(player);\n }\n });\n });\n return players;\n }\n createNamespace(namespaceId, hostElement) {\n const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);\n if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {\n this._balanceNamespaceList(ns, hostElement);\n }\n else {\n // defer this later until flush during when the host element has\n // been inserted so that we know exactly where to place it in\n // the namespace list\n this.newHostElements.set(hostElement, ns);\n // given that this host element is a part of the animation code, it\n // may or may not be inserted by a parent node that is of an\n // animation renderer type. If this happens then we can still have\n // access to this item when we query for :enter nodes. If the parent\n // is a renderer then the set data-structure will normalize the entry\n this.collectEnterElement(hostElement);\n }\n return (this._namespaceLookup[namespaceId] = ns);\n }\n _balanceNamespaceList(ns, hostElement) {\n const namespaceList = this._namespaceList;\n const namespacesByHostElement = this.namespacesByHostElement;\n const limit = namespaceList.length - 1;\n if (limit >= 0) {\n let found = false;\n // Find the closest ancestor with an existing namespace so we can then insert `ns` after it,\n // establishing a top-down ordering of namespaces in `this._namespaceList`.\n let ancestor = this.driver.getParentElement(hostElement);\n while (ancestor) {\n const ancestorNs = namespacesByHostElement.get(ancestor);\n if (ancestorNs) {\n // An animation namespace has been registered for this ancestor, so we insert `ns`\n // right after it to establish top-down ordering of animation namespaces.\n const index = namespaceList.indexOf(ancestorNs);\n namespaceList.splice(index + 1, 0, ns);\n found = true;\n break;\n }\n ancestor = this.driver.getParentElement(ancestor);\n }\n if (!found) {\n // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to\n // ensure that any existing descendants are ordered after `ns`, retaining the desired\n // top-down ordering.\n namespaceList.unshift(ns);\n }\n }\n else {\n namespaceList.push(ns);\n }\n namespacesByHostElement.set(hostElement, ns);\n return ns;\n }\n register(namespaceId, hostElement) {\n let ns = this._namespaceLookup[namespaceId];\n if (!ns) {\n ns = this.createNamespace(namespaceId, hostElement);\n }\n return ns;\n }\n registerTrigger(namespaceId, name, trigger) {\n let ns = this._namespaceLookup[namespaceId];\n if (ns && ns.register(name, trigger)) {\n this.totalAnimations++;\n }\n }\n destroy(namespaceId, context) {\n if (!namespaceId)\n return;\n this.afterFlush(() => { });\n this.afterFlushAnimationsDone(() => {\n const ns = this._fetchNamespace(namespaceId);\n this.namespacesByHostElement.delete(ns.hostElement);\n const index = this._namespaceList.indexOf(ns);\n if (index >= 0) {\n this._namespaceList.splice(index, 1);\n }\n ns.destroy(context);\n delete this._namespaceLookup[namespaceId];\n });\n }\n _fetchNamespace(id) {\n return this._namespaceLookup[id];\n }\n fetchNamespacesByElement(element) {\n // normally there should only be one namespace per element, however\n // if @triggers are placed on both the component element and then\n // its host element (within the component code) then there will be\n // two namespaces returned. We use a set here to simply deduplicate\n // the namespaces in case (for the reason described above) there are multiple triggers\n const namespaces = new Set();\n const elementStates = this.statesByElement.get(element);\n if (elementStates) {\n for (let stateValue of elementStates.values()) {\n if (stateValue.namespaceId) {\n const ns = this._fetchNamespace(stateValue.namespaceId);\n if (ns) {\n namespaces.add(ns);\n }\n }\n }\n }\n return namespaces;\n }\n trigger(namespaceId, element, name, value) {\n if (isElementNode(element)) {\n const ns = this._fetchNamespace(namespaceId);\n if (ns) {\n ns.trigger(element, name, value);\n return true;\n }\n }\n return false;\n }\n insertNode(namespaceId, element, parent, insertBefore) {\n if (!isElementNode(element))\n return;\n // special case for when an element is removed and reinserted (move operation)\n // when this occurs we do not want to use the element for deletion later\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n details.setForRemoval = false;\n details.setForMove = true;\n const index = this.collectedLeaveElements.indexOf(element);\n if (index >= 0) {\n this.collectedLeaveElements.splice(index, 1);\n }\n }\n // in the event that the namespaceId is blank then the caller\n // code does not contain any animation code in it, but it is\n // just being called so that the node is marked as being inserted\n if (namespaceId) {\n const ns = this._fetchNamespace(namespaceId);\n // This if-statement is a workaround for router issue #21947.\n // The router sometimes hits a race condition where while a route\n // is being instantiated a new navigation arrives, triggering leave\n // animation of DOM that has not been fully initialized, until this\n // is resolved, we need to handle the scenario when DOM is not in a\n // consistent state during the animation.\n if (ns) {\n ns.insertNode(element, parent);\n }\n }\n // only *directives and host elements are inserted before\n if (insertBefore) {\n this.collectEnterElement(element);\n }\n }\n collectEnterElement(element) {\n this.collectedEnterElements.push(element);\n }\n markElementAsDisabled(element, value) {\n if (value) {\n if (!this.disabledNodes.has(element)) {\n this.disabledNodes.add(element);\n addClass(element, DISABLED_CLASSNAME);\n }\n }\n else if (this.disabledNodes.has(element)) {\n this.disabledNodes.delete(element);\n removeClass(element, DISABLED_CLASSNAME);\n }\n }\n removeNode(namespaceId, element, context) {\n if (isElementNode(element)) {\n this.scheduler?.notify();\n const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;\n if (ns) {\n ns.removeNode(element, context);\n }\n else {\n this.markElementAsRemoved(namespaceId, element, false, context);\n }\n const hostNS = this.namespacesByHostElement.get(element);\n if (hostNS && hostNS.id !== namespaceId) {\n hostNS.removeNode(element, context);\n }\n }\n else {\n this._onRemovalComplete(element, context);\n }\n }\n markElementAsRemoved(namespaceId, element, hasAnimation, context, previousTriggersValues) {\n this.collectedLeaveElements.push(element);\n element[REMOVAL_FLAG] = {\n namespaceId,\n setForRemoval: context,\n hasAnimation,\n removedBeforeQueried: false,\n previousTriggersValues,\n };\n }\n listen(namespaceId, element, name, phase, callback) {\n if (isElementNode(element)) {\n return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);\n }\n return () => { };\n }\n _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {\n return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);\n }\n destroyInnerAnimations(containerElement) {\n let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);\n elements.forEach((element) => this.destroyActiveAnimationsForElement(element));\n if (this.playersByQueriedElement.size == 0)\n return;\n elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);\n elements.forEach((element) => this.finishActiveQueriedAnimationOnElement(element));\n }\n destroyActiveAnimationsForElement(element) {\n const players = this.playersByElement.get(element);\n if (players) {\n players.forEach((player) => {\n // special case for when an element is set for destruction, but hasn't started.\n // in this situation we want to delay the destruction until the flush occurs\n // so that any event listeners attached to the player are triggered.\n if (player.queued) {\n player.markedForDestroy = true;\n }\n else {\n player.destroy();\n }\n });\n }\n }\n finishActiveQueriedAnimationOnElement(element) {\n const players = this.playersByQueriedElement.get(element);\n if (players) {\n players.forEach((player) => player.finish());\n }\n }\n whenRenderingDone() {\n return new Promise((resolve) => {\n if (this.players.length) {\n return optimizeGroupPlayer(this.players).onDone(() => resolve());\n }\n else {\n resolve();\n }\n });\n }\n processLeaveNode(element) {\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n // this will prevent it from removing it twice\n element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;\n if (details.namespaceId) {\n this.destroyInnerAnimations(element);\n const ns = this._fetchNamespace(details.namespaceId);\n if (ns) {\n ns.clearElementCache(element);\n }\n }\n this._onRemovalComplete(element, details.setForRemoval);\n }\n if (element.classList?.contains(DISABLED_CLASSNAME)) {\n this.markElementAsDisabled(element, false);\n }\n this.driver.query(element, DISABLED_SELECTOR, true).forEach((node) => {\n this.markElementAsDisabled(node, false);\n });\n }\n flush(microtaskId = -1) {\n let players = [];\n if (this.newHostElements.size) {\n this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));\n this.newHostElements.clear();\n }\n if (this.totalAnimations && this.collectedEnterElements.length) {\n for (let i = 0; i < this.collectedEnterElements.length; i++) {\n const elm = this.collectedEnterElements[i];\n addClass(elm, STAR_CLASSNAME);\n }\n }\n if (this._namespaceList.length &&\n (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {\n const cleanupFns = [];\n try {\n players = this._flushAnimations(cleanupFns, microtaskId);\n }\n finally {\n for (let i = 0; i < cleanupFns.length; i++) {\n cleanupFns[i]();\n }\n }\n }\n else {\n for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n const element = this.collectedLeaveElements[i];\n this.processLeaveNode(element);\n }\n }\n this.totalQueuedPlayers = 0;\n this.collectedEnterElements.length = 0;\n this.collectedLeaveElements.length = 0;\n this._flushFns.forEach((fn) => fn());\n this._flushFns = [];\n if (this._whenQuietFns.length) {\n // we move these over to a variable so that\n // if any new callbacks are registered in another\n // flush they do not populate the existing set\n const quietFns = this._whenQuietFns;\n this._whenQuietFns = [];\n if (players.length) {\n optimizeGroupPlayer(players).onDone(() => {\n quietFns.forEach((fn) => fn());\n });\n }\n else {\n quietFns.forEach((fn) => fn());\n }\n }\n }\n reportError(errors) {\n throw triggerTransitionsFailed(errors);\n }\n _flushAnimations(cleanupFns, microtaskId) {\n const subTimelines = new ElementInstructionMap();\n const skippedPlayers = [];\n const skippedPlayersMap = new Map();\n const queuedInstructions = [];\n const queriedElements = new Map();\n const allPreStyleElements = new Map();\n const allPostStyleElements = new Map();\n const disabledElementsSet = new Set();\n this.disabledNodes.forEach((node) => {\n disabledElementsSet.add(node);\n const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);\n for (let i = 0; i < nodesThatAreDisabled.length; i++) {\n disabledElementsSet.add(nodesThatAreDisabled[i]);\n }\n });\n const bodyNode = this.bodyNode;\n const allTriggerElements = Array.from(this.statesByElement.keys());\n const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);\n // this must occur before the instructions are built below such that\n // the :enter queries match the elements (since the timeline queries\n // are fired during instruction building).\n const enterNodeMapIds = new Map();\n let i = 0;\n enterNodeMap.forEach((nodes, root) => {\n const className = ENTER_CLASSNAME + i++;\n enterNodeMapIds.set(root, className);\n nodes.forEach((node) => addClass(node, className));\n });\n const allLeaveNodes = [];\n const mergedLeaveNodes = new Set();\n const leaveNodesWithoutAnimations = new Set();\n for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n const element = this.collectedLeaveElements[i];\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n allLeaveNodes.push(element);\n mergedLeaveNodes.add(element);\n if (details.hasAnimation) {\n this.driver\n .query(element, STAR_SELECTOR, true)\n .forEach((elm) => mergedLeaveNodes.add(elm));\n }\n else {\n leaveNodesWithoutAnimations.add(element);\n }\n }\n }\n const leaveNodeMapIds = new Map();\n const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));\n leaveNodeMap.forEach((nodes, root) => {\n const className = LEAVE_CLASSNAME + i++;\n leaveNodeMapIds.set(root, className);\n nodes.forEach((node) => addClass(node, className));\n });\n cleanupFns.push(() => {\n enterNodeMap.forEach((nodes, root) => {\n const className = enterNodeMapIds.get(root);\n nodes.forEach((node) => removeClass(node, className));\n });\n leaveNodeMap.forEach((nodes, root) => {\n const className = leaveNodeMapIds.get(root);\n nodes.forEach((node) => removeClass(node, className));\n });\n allLeaveNodes.forEach((element) => {\n this.processLeaveNode(element);\n });\n });\n const allPlayers = [];\n const erroneousTransitions = [];\n for (let i = this._namespaceList.length - 1; i >= 0; i--) {\n const ns = this._namespaceList[i];\n ns.drainQueuedTransitions(microtaskId).forEach((entry) => {\n const player = entry.player;\n const element = entry.element;\n allPlayers.push(player);\n if (this.collectedEnterElements.length) {\n const details = element[REMOVAL_FLAG];\n // animations for move operations (elements being removed and reinserted,\n // e.g. when the order of an *ngFor list changes) are currently not supported\n if (details && details.setForMove) {\n if (details.previousTriggersValues &&\n details.previousTriggersValues.has(entry.triggerName)) {\n const previousValue = details.previousTriggersValues.get(entry.triggerName);\n // we need to restore the previous trigger value since the element has\n // only been moved and hasn't actually left the DOM\n const triggersWithStates = this.statesByElement.get(entry.element);\n if (triggersWithStates && triggersWithStates.has(entry.triggerName)) {\n const state = triggersWithStates.get(entry.triggerName);\n state.value = previousValue;\n triggersWithStates.set(entry.triggerName, state);\n }\n }\n player.destroy();\n return;\n }\n }\n const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);\n const leaveClassName = leaveNodeMapIds.get(element);\n const enterClassName = enterNodeMapIds.get(element);\n const instruction = this._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);\n if (instruction.errors && instruction.errors.length) {\n erroneousTransitions.push(instruction);\n return;\n }\n // even though the element may not be in the DOM, it may still\n // be added at a later point (due to the mechanics of content\n // projection and/or dynamic component insertion) therefore it's\n // important to still style the element.\n if (nodeIsOrphaned) {\n player.onStart(() => eraseStyles(element, instruction.fromStyles));\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n skippedPlayers.push(player);\n return;\n }\n // if an unmatched transition is queued and ready to go\n // then it SHOULD NOT render an animation and cancel the\n // previously running animations.\n if (entry.isFallbackTransition) {\n player.onStart(() => eraseStyles(element, instruction.fromStyles));\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n skippedPlayers.push(player);\n return;\n }\n // this means that if a parent animation uses this animation as a sub-trigger\n // then it will instruct the timeline builder not to add a player delay, but\n // instead stretch the first keyframe gap until the animation starts. This is\n // important in order to prevent extra initialization styles from being\n // required by the user for the animation.\n const timelines = [];\n instruction.timelines.forEach((tl) => {\n tl.stretchStartingKeyframe = true;\n if (!this.disabledNodes.has(tl.element)) {\n timelines.push(tl);\n }\n });\n instruction.timelines = timelines;\n subTimelines.append(element, instruction.timelines);\n const tuple = { instruction, player, element };\n queuedInstructions.push(tuple);\n instruction.queriedElements.forEach((element) => getOrSetDefaultValue(queriedElements, element, []).push(player));\n instruction.preStyleProps.forEach((stringMap, element) => {\n if (stringMap.size) {\n let setVal = allPreStyleElements.get(element);\n if (!setVal) {\n allPreStyleElements.set(element, (setVal = new Set()));\n }\n stringMap.forEach((_, prop) => setVal.add(prop));\n }\n });\n instruction.postStyleProps.forEach((stringMap, element) => {\n let setVal = allPostStyleElements.get(element);\n if (!setVal) {\n allPostStyleElements.set(element, (setVal = new Set()));\n }\n stringMap.forEach((_, prop) => setVal.add(prop));\n });\n });\n }\n if (erroneousTransitions.length) {\n const errors = [];\n erroneousTransitions.forEach((instruction) => {\n errors.push(transitionFailed(instruction.triggerName, instruction.errors));\n });\n allPlayers.forEach((player) => player.destroy());\n this.reportError(errors);\n }\n const allPreviousPlayersMap = new Map();\n // this map tells us which element in the DOM tree is contained by\n // which animation. Further down this map will get populated once\n // the players are built and in doing so we can use it to efficiently\n // figure out if a sub player is skipped due to a parent player having priority.\n const animationElementMap = new Map();\n queuedInstructions.forEach((entry) => {\n const element = entry.element;\n if (subTimelines.has(element)) {\n animationElementMap.set(element, element);\n this._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);\n }\n });\n skippedPlayers.forEach((player) => {\n const element = player.element;\n const previousPlayers = this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);\n previousPlayers.forEach((prevPlayer) => {\n getOrSetDefaultValue(allPreviousPlayersMap, element, []).push(prevPlayer);\n prevPlayer.destroy();\n });\n });\n // this is a special case for nodes that will be removed either by\n // having their own leave animations or by being queried in a container\n // that will be removed once a parent animation is complete. The idea\n // here is that * styles must be identical to ! styles because of\n // backwards compatibility (* is also filled in by default in many places).\n // Otherwise * styles will return an empty value or \"auto\" since the element\n // passed to getComputedStyle will not be visible (since * === destination)\n const replaceNodes = allLeaveNodes.filter((node) => {\n return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);\n });\n // POST STAGE: fill the * styles\n const postStylesMap = new Map();\n const allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);\n allLeaveQueriedNodes.forEach((node) => {\n if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {\n replaceNodes.push(node);\n }\n });\n // PRE STAGE: fill the ! styles\n const preStylesMap = new Map();\n enterNodeMap.forEach((nodes, root) => {\n cloakAndComputeStyles(preStylesMap, this.driver, new Set(nodes), allPreStyleElements, ɵPRE_STYLE);\n });\n replaceNodes.forEach((node) => {\n const post = postStylesMap.get(node);\n const pre = preStylesMap.get(node);\n postStylesMap.set(node, new Map([...(post?.entries() ?? []), ...(pre?.entries() ?? [])]));\n });\n const rootPlayers = [];\n const subPlayers = [];\n const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};\n queuedInstructions.forEach((entry) => {\n const { element, player, instruction } = entry;\n // this means that it was never consumed by a parent animation which\n // means that it is independent and therefore should be set for animation\n if (subTimelines.has(element)) {\n if (disabledElementsSet.has(element)) {\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n player.disabled = true;\n player.overrideTotalTime(instruction.totalTime);\n skippedPlayers.push(player);\n return;\n }\n // this will flow up the DOM and query the map to figure out\n // if a parent animation has priority over it. In the situation\n // that a parent is detected then it will cancel the loop. If\n // nothing is detected, or it takes a few hops to find a parent,\n // then it will fill in the missing nodes and signal them as having\n // a detected parent (or a NO_PARENT value via a special constant).\n let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;\n if (animationElementMap.size > 1) {\n let elm = element;\n const parentsToAdd = [];\n while ((elm = elm.parentNode)) {\n const detectedParent = animationElementMap.get(elm);\n if (detectedParent) {\n parentWithAnimation = detectedParent;\n break;\n }\n parentsToAdd.push(elm);\n }\n parentsToAdd.forEach((parent) => animationElementMap.set(parent, parentWithAnimation));\n }\n const innerPlayer = this._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);\n player.setRealPlayer(innerPlayer);\n if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {\n rootPlayers.push(player);\n }\n else {\n const parentPlayers = this.playersByElement.get(parentWithAnimation);\n if (parentPlayers && parentPlayers.length) {\n player.parentPlayer = optimizeGroupPlayer(parentPlayers);\n }\n skippedPlayers.push(player);\n }\n }\n else {\n eraseStyles(element, instruction.fromStyles);\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n // there still might be a ancestor player animating this\n // element therefore we will still add it as a sub player\n // even if its animation may be disabled\n subPlayers.push(player);\n if (disabledElementsSet.has(element)) {\n skippedPlayers.push(player);\n }\n }\n });\n // find all of the sub players' corresponding inner animation players\n subPlayers.forEach((player) => {\n // even if no players are found for a sub animation it\n // will still complete itself after the next tick since it's Noop\n const playersForElement = skippedPlayersMap.get(player.element);\n if (playersForElement && playersForElement.length) {\n const innerPlayer = optimizeGroupPlayer(playersForElement);\n player.setRealPlayer(innerPlayer);\n }\n });\n // the reason why we don't actually play the animation is\n // because all that a skipped player is designed to do is to\n // fire the start/done transition callback events\n skippedPlayers.forEach((player) => {\n if (player.parentPlayer) {\n player.syncPlayerEvents(player.parentPlayer);\n }\n else {\n player.destroy();\n }\n });\n // run through all of the queued removals and see if they\n // were picked up by a query. If not then perform the removal\n // operation right away unless a parent animation is ongoing.\n for (let i = 0; i < allLeaveNodes.length; i++) {\n const element = allLeaveNodes[i];\n const details = element[REMOVAL_FLAG];\n removeClass(element, LEAVE_CLASSNAME);\n // this means the element has a removal animation that is being\n // taken care of and therefore the inner elements will hang around\n // until that animation is over (or the parent queried animation)\n if (details && details.hasAnimation)\n continue;\n let players = [];\n // if this element is queried or if it contains queried children\n // then we want for the element not to be removed from the page\n // until the queried animations have finished\n if (queriedElements.size) {\n let queriedPlayerResults = queriedElements.get(element);\n if (queriedPlayerResults && queriedPlayerResults.length) {\n players.push(...queriedPlayerResults);\n }\n let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);\n for (let j = 0; j < queriedInnerElements.length; j++) {\n let queriedPlayers = queriedElements.get(queriedInnerElements[j]);\n if (queriedPlayers && queriedPlayers.length) {\n players.push(...queriedPlayers);\n }\n }\n }\n const activePlayers = players.filter((p) => !p.destroyed);\n if (activePlayers.length) {\n removeNodesAfterAnimationDone(this, element, activePlayers);\n }\n else {\n this.processLeaveNode(element);\n }\n }\n // this is required so the cleanup method doesn't remove them\n allLeaveNodes.length = 0;\n rootPlayers.forEach((player) => {\n this.players.push(player);\n player.onDone(() => {\n player.destroy();\n const index = this.players.indexOf(player);\n this.players.splice(index, 1);\n });\n player.play();\n });\n return rootPlayers;\n }\n afterFlush(callback) {\n this._flushFns.push(callback);\n }\n afterFlushAnimationsDone(callback) {\n this._whenQuietFns.push(callback);\n }\n _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {\n let players = [];\n if (isQueriedElement) {\n const queriedElementPlayers = this.playersByQueriedElement.get(element);\n if (queriedElementPlayers) {\n players = queriedElementPlayers;\n }\n }\n else {\n const elementPlayers = this.playersByElement.get(element);\n if (elementPlayers) {\n const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;\n elementPlayers.forEach((player) => {\n if (player.queued)\n return;\n if (!isRemovalAnimation && player.triggerName != triggerName)\n return;\n players.push(player);\n });\n }\n }\n if (namespaceId || triggerName) {\n players = players.filter((player) => {\n if (namespaceId && namespaceId != player.namespaceId)\n return false;\n if (triggerName && triggerName != player.triggerName)\n return false;\n return true;\n });\n }\n return players;\n }\n _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {\n const triggerName = instruction.triggerName;\n const rootElement = instruction.element;\n // when a removal animation occurs, ALL previous players are collected\n // and destroyed (even if they are outside of the current namespace)\n const targetNameSpaceId = instruction.isRemovalTransition\n ? undefined\n : namespaceId;\n const targetTriggerName = instruction.isRemovalTransition\n ? undefined\n : triggerName;\n for (const timelineInstruction of instruction.timelines) {\n const element = timelineInstruction.element;\n const isQueriedElement = element !== rootElement;\n const players = getOrSetDefaultValue(allPreviousPlayersMap, element, []);\n const previousPlayers = this._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);\n previousPlayers.forEach((player) => {\n const realPlayer = player.getRealPlayer();\n if (realPlayer.beforeDestroy) {\n realPlayer.beforeDestroy();\n }\n player.destroy();\n players.push(player);\n });\n }\n // this needs to be done so that the PRE/POST styles can be\n // computed properly without interfering with the previous animation\n eraseStyles(rootElement, instruction.fromStyles);\n }\n _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {\n const triggerName = instruction.triggerName;\n const rootElement = instruction.element;\n // we first run this so that the previous animation player\n // data can be passed into the successive animation players\n const allQueriedPlayers = [];\n const allConsumedElements = new Set();\n const allSubElements = new Set();\n const allNewPlayers = instruction.timelines.map((timelineInstruction) => {\n const element = timelineInstruction.element;\n allConsumedElements.add(element);\n // FIXME (matsko): make sure to-be-removed animations are removed properly\n const details = element[REMOVAL_FLAG];\n if (details && details.removedBeforeQueried)\n return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);\n const isQueriedElement = element !== rootElement;\n const previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY).map((p) => p.getRealPlayer())).filter((p) => {\n // the `element` is not apart of the AnimationPlayer definition, but\n // Mock/WebAnimations\n // use the element within their implementation. This will be added in Angular5 to\n // AnimationPlayer\n const pp = p;\n return pp.element ? pp.element === element : false;\n });\n const preStyles = preStylesMap.get(element);\n const postStyles = postStylesMap.get(element);\n const keyframes = normalizeKeyframes$1(this._normalizer, timelineInstruction.keyframes, preStyles, postStyles);\n const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);\n // this means that this particular player belongs to a sub trigger. It is\n // important that we match this player up with the corresponding (@trigger.listener)\n if (timelineInstruction.subTimeline && skippedPlayersMap) {\n allSubElements.add(element);\n }\n if (isQueriedElement) {\n const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);\n wrappedPlayer.setRealPlayer(player);\n allQueriedPlayers.push(wrappedPlayer);\n }\n return player;\n });\n allQueriedPlayers.forEach((player) => {\n getOrSetDefaultValue(this.playersByQueriedElement, player.element, []).push(player);\n player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));\n });\n allConsumedElements.forEach((element) => addClass(element, NG_ANIMATING_CLASSNAME));\n const player = optimizeGroupPlayer(allNewPlayers);\n player.onDestroy(() => {\n allConsumedElements.forEach((element) => removeClass(element, NG_ANIMATING_CLASSNAME));\n setStyles(rootElement, instruction.toStyles);\n });\n // this basically makes all of the callbacks for sub element animations\n // be dependent on the upper players for when they finish\n allSubElements.forEach((element) => {\n getOrSetDefaultValue(skippedPlayersMap, element, []).push(player);\n });\n return player;\n }\n _buildPlayer(instruction, keyframes, previousPlayers) {\n if (keyframes.length > 0) {\n return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);\n }\n // special case for when an empty transition|definition is provided\n // ... there is no point in rendering an empty animation\n return new NoopAnimationPlayer(instruction.duration, instruction.delay);\n }\n}\nclass TransitionAnimationPlayer {\n constructor(namespaceId, triggerName, element) {\n this.namespaceId = namespaceId;\n this.triggerName = triggerName;\n this.element = element;\n this._player = new NoopAnimationPlayer();\n this._containsRealPlayer = false;\n this._queuedCallbacks = new Map();\n this.destroyed = false;\n this.parentPlayer = null;\n this.markedForDestroy = false;\n this.disabled = false;\n this.queued = true;\n this.totalTime = 0;\n }\n setRealPlayer(player) {\n if (this._containsRealPlayer)\n return;\n this._player = player;\n this._queuedCallbacks.forEach((callbacks, phase) => {\n callbacks.forEach((callback) => listenOnPlayer(player, phase, undefined, callback));\n });\n this._queuedCallbacks.clear();\n this._containsRealPlayer = true;\n this.overrideTotalTime(player.totalTime);\n this.queued = false;\n }\n getRealPlayer() {\n return this._player;\n }\n overrideTotalTime(totalTime) {\n this.totalTime = totalTime;\n }\n syncPlayerEvents(player) {\n const p = this._player;\n if (p.triggerCallback) {\n player.onStart(() => p.triggerCallback('start'));\n }\n player.onDone(() => this.finish());\n player.onDestroy(() => this.destroy());\n }\n _queueEvent(name, callback) {\n getOrSetDefaultValue(this._queuedCallbacks, name, []).push(callback);\n }\n onDone(fn) {\n if (this.queued) {\n this._queueEvent('done', fn);\n }\n this._player.onDone(fn);\n }\n onStart(fn) {\n if (this.queued) {\n this._queueEvent('start', fn);\n }\n this._player.onStart(fn);\n }\n onDestroy(fn) {\n if (this.queued) {\n this._queueEvent('destroy', fn);\n }\n this._player.onDestroy(fn);\n }\n init() {\n this._player.init();\n }\n hasStarted() {\n return this.queued ? false : this._player.hasStarted();\n }\n play() {\n !this.queued && this._player.play();\n }\n pause() {\n !this.queued && this._player.pause();\n }\n restart() {\n !this.queued && this._player.restart();\n }\n finish() {\n this._player.finish();\n }\n destroy() {\n this.destroyed = true;\n this._player.destroy();\n }\n reset() {\n !this.queued && this._player.reset();\n }\n setPosition(p) {\n if (!this.queued) {\n this._player.setPosition(p);\n }\n }\n getPosition() {\n return this.queued ? 0 : this._player.getPosition();\n }\n /** @internal */\n triggerCallback(phaseName) {\n const p = this._player;\n if (p.triggerCallback) {\n p.triggerCallback(phaseName);\n }\n }\n}\nfunction deleteOrUnsetInMap(map, key, value) {\n let currentValues = map.get(key);\n if (currentValues) {\n if (currentValues.length) {\n const index = currentValues.indexOf(value);\n currentValues.splice(index, 1);\n }\n if (currentValues.length == 0) {\n map.delete(key);\n }\n }\n return currentValues;\n}\nfunction normalizeTriggerValue(value) {\n // we use `!= null` here because it's the most simple\n // way to test against a \"falsy\" value without mixing\n // in empty strings or a zero value. DO NOT OPTIMIZE.\n return value != null ? value : null;\n}\nfunction isElementNode(node) {\n return node && node['nodeType'] === 1;\n}\nfunction isTriggerEventValid(eventName) {\n return eventName == 'start' || eventName == 'done';\n}\nfunction cloakElement(element, value) {\n const oldValue = element.style.display;\n element.style.display = value != null ? value : 'none';\n return oldValue;\n}\nfunction cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {\n const cloakVals = [];\n elements.forEach((element) => cloakVals.push(cloakElement(element)));\n const failedElements = [];\n elementPropsMap.forEach((props, element) => {\n const styles = new Map();\n props.forEach((prop) => {\n const value = driver.computeStyle(element, prop, defaultStyle);\n styles.set(prop, value);\n // there is no easy way to detect this because a sub element could be removed\n // by a parent animation element being detached.\n if (!value || value.length == 0) {\n element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;\n failedElements.push(element);\n }\n });\n valuesMap.set(element, styles);\n });\n // we use a index variable here since Set.forEach(a, i) does not return\n // an index value for the closure (but instead just the value)\n let i = 0;\n elements.forEach((element) => cloakElement(element, cloakVals[i++]));\n return failedElements;\n}\n/*\nSince the Angular renderer code will return a collection of inserted\nnodes in all areas of a DOM tree, it's up to this algorithm to figure\nout which nodes are roots for each animation @trigger.\n\nBy placing each inserted node into a Set and traversing upwards, it\nis possible to find the @trigger elements and well any direct *star\ninsertion nodes, if a @trigger root is found then the enter element\nis placed into the Map[@trigger] spot.\n */\nfunction buildRootMap(roots, nodes) {\n const rootMap = new Map();\n roots.forEach((root) => rootMap.set(root, []));\n if (nodes.length == 0)\n return rootMap;\n const NULL_NODE = 1;\n const nodeSet = new Set(nodes);\n const localRootMap = new Map();\n function getRoot(node) {\n if (!node)\n return NULL_NODE;\n let root = localRootMap.get(node);\n if (root)\n return root;\n const parent = node.parentNode;\n if (rootMap.has(parent)) {\n // ngIf inside @trigger\n root = parent;\n }\n else if (nodeSet.has(parent)) {\n // ngIf inside ngIf\n root = NULL_NODE;\n }\n else {\n // recurse upwards\n root = getRoot(parent);\n }\n localRootMap.set(node, root);\n return root;\n }\n nodes.forEach((node) => {\n const root = getRoot(node);\n if (root !== NULL_NODE) {\n rootMap.get(root).push(node);\n }\n });\n return rootMap;\n}\nfunction addClass(element, className) {\n element.classList?.add(className);\n}\nfunction removeClass(element, className) {\n element.classList?.remove(className);\n}\nfunction removeNodesAfterAnimationDone(engine, element, players) {\n optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element));\n}\nfunction flattenGroupPlayers(players) {\n const finalPlayers = [];\n _flattenGroupPlayersRecur(players, finalPlayers);\n return finalPlayers;\n}\nfunction _flattenGroupPlayersRecur(players, finalPlayers) {\n for (let i = 0; i < players.length; i++) {\n const player = players[i];\n if (player instanceof ɵAnimationGroupPlayer) {\n _flattenGroupPlayersRecur(player.players, finalPlayers);\n }\n else {\n finalPlayers.push(player);\n }\n }\n}\nfunction objEquals(a, b) {\n const k1 = Object.keys(a);\n const k2 = Object.keys(b);\n if (k1.length != k2.length)\n return false;\n for (let i = 0; i < k1.length; i++) {\n const prop = k1[i];\n if (!b.hasOwnProperty(prop) || a[prop] !== b[prop])\n return false;\n }\n return true;\n}\nfunction replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {\n const postEntry = allPostStyleElements.get(element);\n if (!postEntry)\n return false;\n let preEntry = allPreStyleElements.get(element);\n if (preEntry) {\n postEntry.forEach((data) => preEntry.add(data));\n }\n else {\n allPreStyleElements.set(element, postEntry);\n }\n allPostStyleElements.delete(element);\n return true;\n}\n\nclass AnimationEngine {\n constructor(doc, _driver, _normalizer, scheduler) {\n this._driver = _driver;\n this._normalizer = _normalizer;\n this._triggerCache = {};\n // this method is designed to be overridden by the code that uses this engine\n this.onRemovalComplete = (element, context) => { };\n this._transitionEngine = new TransitionAnimationEngine(doc.body, _driver, _normalizer, scheduler);\n this._timelineEngine = new TimelineAnimationEngine(doc.body, _driver, _normalizer);\n this._transitionEngine.onRemovalComplete = (element, context) => this.onRemovalComplete(element, context);\n }\n registerTrigger(componentId, namespaceId, hostElement, name, metadata) {\n const cacheKey = componentId + '-' + name;\n let trigger = this._triggerCache[cacheKey];\n if (!trigger) {\n const errors = [];\n const warnings = [];\n const ast = buildAnimationAst(this._driver, metadata, errors, warnings);\n if (errors.length) {\n throw triggerBuildFailed(name, errors);\n }\n if (warnings.length) {\n warnTriggerBuild(name, warnings);\n }\n trigger = buildTrigger(name, ast, this._normalizer);\n this._triggerCache[cacheKey] = trigger;\n }\n this._transitionEngine.registerTrigger(namespaceId, name, trigger);\n }\n register(namespaceId, hostElement) {\n this._transitionEngine.register(namespaceId, hostElement);\n }\n destroy(namespaceId, context) {\n this._transitionEngine.destroy(namespaceId, context);\n }\n onInsert(namespaceId, element, parent, insertBefore) {\n this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);\n }\n onRemove(namespaceId, element, context) {\n this._transitionEngine.removeNode(namespaceId, element, context);\n }\n disableAnimations(element, disable) {\n this._transitionEngine.markElementAsDisabled(element, disable);\n }\n process(namespaceId, element, property, value) {\n if (property.charAt(0) == '@') {\n const [id, action] = parseTimelineCommand(property);\n const args = value;\n this._timelineEngine.command(id, element, action, args);\n }\n else {\n this._transitionEngine.trigger(namespaceId, element, property, value);\n }\n }\n listen(namespaceId, element, eventName, eventPhase, callback) {\n // @@listen\n if (eventName.charAt(0) == '@') {\n const [id, action] = parseTimelineCommand(eventName);\n return this._timelineEngine.listen(id, element, action, callback);\n }\n return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);\n }\n flush(microtaskId = -1) {\n this._transitionEngine.flush(microtaskId);\n }\n get players() {\n return [...this._transitionEngine.players, ...this._timelineEngine.players];\n }\n whenRenderingDone() {\n return this._transitionEngine.whenRenderingDone();\n }\n afterFlushAnimationsDone(cb) {\n this._transitionEngine.afterFlushAnimationsDone(cb);\n }\n}\n\n/**\n * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are\n * detected.\n *\n * In CSS there exist properties that cannot be animated within a keyframe animation\n * (whether it be via CSS keyframes or web-animations) and the animation implementation\n * will ignore them. This function is designed to detect those special cased styles and\n * return a container that will be executed at the start and end of the animation.\n *\n * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`\n */\nfunction packageNonAnimatableStyles(element, styles) {\n let startStyles = null;\n let endStyles = null;\n if (Array.isArray(styles) && styles.length) {\n startStyles = filterNonAnimatableStyles(styles[0]);\n if (styles.length > 1) {\n endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);\n }\n }\n else if (styles instanceof Map) {\n startStyles = filterNonAnimatableStyles(styles);\n }\n return startStyles || endStyles ? new SpecialCasedStyles(element, startStyles, endStyles) : null;\n}\n/**\n * Designed to be executed during a keyframe-based animation to apply any special-cased styles.\n *\n * When started (when the `start()` method is run) then the provided `startStyles`\n * will be applied. When finished (when the `finish()` method is called) the\n * `endStyles` will be applied as well any any starting styles. Finally when\n * `destroy()` is called then all styles will be removed.\n */\nclass SpecialCasedStyles {\n static { this.initialStylesByElement = new WeakMap(); }\n constructor(_element, _startStyles, _endStyles) {\n this._element = _element;\n this._startStyles = _startStyles;\n this._endStyles = _endStyles;\n this._state = 0 /* SpecialCasedStylesState.Pending */;\n let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);\n if (!initialStyles) {\n SpecialCasedStyles.initialStylesByElement.set(_element, (initialStyles = new Map()));\n }\n this._initialStyles = initialStyles;\n }\n start() {\n if (this._state < 1 /* SpecialCasedStylesState.Started */) {\n if (this._startStyles) {\n setStyles(this._element, this._startStyles, this._initialStyles);\n }\n this._state = 1 /* SpecialCasedStylesState.Started */;\n }\n }\n finish() {\n this.start();\n if (this._state < 2 /* SpecialCasedStylesState.Finished */) {\n setStyles(this._element, this._initialStyles);\n if (this._endStyles) {\n setStyles(this._element, this._endStyles);\n this._endStyles = null;\n }\n this._state = 1 /* SpecialCasedStylesState.Started */;\n }\n }\n destroy() {\n this.finish();\n if (this._state < 3 /* SpecialCasedStylesState.Destroyed */) {\n SpecialCasedStyles.initialStylesByElement.delete(this._element);\n if (this._startStyles) {\n eraseStyles(this._element, this._startStyles);\n this._endStyles = null;\n }\n if (this._endStyles) {\n eraseStyles(this._element, this._endStyles);\n this._endStyles = null;\n }\n setStyles(this._element, this._initialStyles);\n this._state = 3 /* SpecialCasedStylesState.Destroyed */;\n }\n }\n}\nfunction filterNonAnimatableStyles(styles) {\n let result = null;\n styles.forEach((val, prop) => {\n if (isNonAnimatableStyle(prop)) {\n result = result || new Map();\n result.set(prop, val);\n }\n });\n return result;\n}\nfunction isNonAnimatableStyle(prop) {\n return prop === 'display' || prop === 'position';\n}\n\nclass WebAnimationsPlayer {\n constructor(element, keyframes, options, _specialStyles) {\n this.element = element;\n this.keyframes = keyframes;\n this.options = options;\n this._specialStyles = _specialStyles;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._onDestroyFns = [];\n this._initialized = false;\n this._finished = false;\n this._started = false;\n this._destroyed = false;\n // the following original fns are persistent copies of the _onStartFns and _onDoneFns\n // and are used to reset the fns to their original values upon reset()\n // (since the _onStartFns and _onDoneFns get deleted after they are called)\n this._originalOnDoneFns = [];\n this._originalOnStartFns = [];\n this.time = 0;\n this.parentPlayer = null;\n this.currentSnapshot = new Map();\n this._duration = options['duration'];\n this._delay = options['delay'] || 0;\n this.time = this._duration + this._delay;\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach((fn) => fn());\n this._onDoneFns = [];\n }\n }\n init() {\n this._buildPlayer();\n this._preparePlayerBeforeStart();\n }\n _buildPlayer() {\n if (this._initialized)\n return;\n this._initialized = true;\n const keyframes = this.keyframes;\n // @ts-expect-error overwriting a readonly property\n this.domPlayer = this._triggerWebAnimation(this.element, keyframes, this.options);\n this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : new Map();\n const onFinish = () => this._onFinish();\n this.domPlayer.addEventListener('finish', onFinish);\n this.onDestroy(() => {\n // We must remove the `finish` event listener once an animation has completed all its\n // iterations. This action is necessary to prevent a memory leak since the listener captures\n // `this`, creating a closure that prevents `this` from being garbage collected.\n this.domPlayer.removeEventListener('finish', onFinish);\n });\n }\n _preparePlayerBeforeStart() {\n // this is required so that the player doesn't start to animate right away\n if (this._delay) {\n this._resetDomPlayerState();\n }\n else {\n this.domPlayer.pause();\n }\n }\n _convertKeyframesToObject(keyframes) {\n const kfs = [];\n keyframes.forEach((frame) => {\n kfs.push(Object.fromEntries(frame));\n });\n return kfs;\n }\n /** @internal */\n _triggerWebAnimation(element, keyframes, options) {\n return element.animate(this._convertKeyframesToObject(keyframes), options);\n }\n onStart(fn) {\n this._originalOnStartFns.push(fn);\n this._onStartFns.push(fn);\n }\n onDone(fn) {\n this._originalOnDoneFns.push(fn);\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n play() {\n this._buildPlayer();\n if (!this.hasStarted()) {\n this._onStartFns.forEach((fn) => fn());\n this._onStartFns = [];\n this._started = true;\n if (this._specialStyles) {\n this._specialStyles.start();\n }\n }\n this.domPlayer.play();\n }\n pause() {\n this.init();\n this.domPlayer.pause();\n }\n finish() {\n this.init();\n if (this._specialStyles) {\n this._specialStyles.finish();\n }\n this._onFinish();\n this.domPlayer.finish();\n }\n reset() {\n this._resetDomPlayerState();\n this._destroyed = false;\n this._finished = false;\n this._started = false;\n this._onStartFns = this._originalOnStartFns;\n this._onDoneFns = this._originalOnDoneFns;\n }\n _resetDomPlayerState() {\n if (this.domPlayer) {\n this.domPlayer.cancel();\n }\n }\n restart() {\n this.reset();\n this.play();\n }\n hasStarted() {\n return this._started;\n }\n destroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n this._resetDomPlayerState();\n this._onFinish();\n if (this._specialStyles) {\n this._specialStyles.destroy();\n }\n this._onDestroyFns.forEach((fn) => fn());\n this._onDestroyFns = [];\n }\n }\n setPosition(p) {\n if (this.domPlayer === undefined) {\n this.init();\n }\n this.domPlayer.currentTime = p * this.time;\n }\n getPosition() {\n // tsc is complaining with TS2362 without the conversion to number\n return +(this.domPlayer.currentTime ?? 0) / this.time;\n }\n get totalTime() {\n return this._delay + this._duration;\n }\n beforeDestroy() {\n const styles = new Map();\n if (this.hasStarted()) {\n // note: this code is invoked only when the `play` function was called prior to this\n // (thus `hasStarted` returns true), this implies that the code that initializes\n // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here\n const finalKeyframe = this._finalKeyframe;\n finalKeyframe.forEach((val, prop) => {\n if (prop !== 'offset') {\n styles.set(prop, this._finished ? val : computeStyle(this.element, prop));\n }\n });\n }\n this.currentSnapshot = styles;\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName === 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach((fn) => fn());\n methods.length = 0;\n }\n}\n\nclass WebAnimationsDriver {\n validateStyleProperty(prop) {\n // Perform actual validation in dev mode only, in prod mode this check is a noop.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n return validateStyleProperty(prop);\n }\n return true;\n }\n validateAnimatableStyleProperty(prop) {\n // Perform actual validation in dev mode only, in prod mode this check is a noop.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const cssProp = camelCaseToDashCase(prop);\n return validateWebAnimatableStyleProperty(cssProp);\n }\n return true;\n }\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n getParentElement(element) {\n return getParentElement(element);\n }\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n computeStyle(element, prop, defaultValue) {\n return computeStyle(element, prop);\n }\n animate(element, keyframes, duration, delay, easing, previousPlayers = []) {\n const fill = delay == 0 ? 'both' : 'forwards';\n const playerOptions = { duration, delay, fill };\n // we check for this to avoid having a null|undefined value be present\n // for the easing (which results in an error for certain browsers #9752)\n if (easing) {\n playerOptions['easing'] = easing;\n }\n const previousStyles = new Map();\n const previousWebAnimationPlayers = (previousPlayers.filter((player) => player instanceof WebAnimationsPlayer));\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousWebAnimationPlayers.forEach((player) => {\n player.currentSnapshot.forEach((val, prop) => previousStyles.set(prop, val));\n });\n }\n let _keyframes = normalizeKeyframes(keyframes).map((styles) => new Map(styles));\n _keyframes = balancePreviousStylesIntoKeyframes(element, _keyframes, previousStyles);\n const specialStyles = packageNonAnimatableStyles(element, _keyframes);\n return new WebAnimationsPlayer(element, _keyframes, playerOptions, specialStyles);\n }\n}\n\nfunction createEngine(type, doc, scheduler) {\n // TODO: find a way to make this tree shakable.\n if (type === 'noop') {\n return new AnimationEngine(doc, new NoopAnimationDriver(), new NoopAnimationStyleNormalizer(), scheduler);\n }\n return new AnimationEngine(doc, new WebAnimationsDriver(), new WebAnimationsStyleNormalizer(), scheduler);\n}\n\nclass Animation {\n constructor(_driver, input) {\n this._driver = _driver;\n const errors = [];\n const warnings = [];\n const ast = buildAnimationAst(_driver, input, errors, warnings);\n if (errors.length) {\n throw validationFailed(errors);\n }\n if (warnings.length) {\n warnValidation(warnings);\n }\n this._animationAst = ast;\n }\n buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {\n const start = Array.isArray(startingStyles)\n ? normalizeStyles(startingStyles)\n : startingStyles;\n const dest = Array.isArray(destinationStyles)\n ? normalizeStyles(destinationStyles)\n : destinationStyles;\n const errors = [];\n subInstructions = subInstructions || new ElementInstructionMap();\n const result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);\n if (errors.length) {\n throw buildingFailed(errors);\n }\n return result;\n }\n}\n\nconst ANIMATION_PREFIX = '@';\nconst DISABLE_ANIMATIONS_FLAG = '@.disabled';\nclass BaseAnimationRenderer {\n constructor(namespaceId, delegate, engine, _onDestroy) {\n this.namespaceId = namespaceId;\n this.delegate = delegate;\n this.engine = engine;\n this._onDestroy = _onDestroy;\n // We need to explicitly type this property because of an api-extractor bug\n // See https://github.com/microsoft/rushstack/issues/4390\n this.ɵtype = 0 /* AnimationRendererType.Regular */;\n }\n get data() {\n return this.delegate.data;\n }\n destroyNode(node) {\n this.delegate.destroyNode?.(node);\n }\n destroy() {\n this.engine.destroy(this.namespaceId, this.delegate);\n this.engine.afterFlushAnimationsDone(() => {\n // Call the renderer destroy method after the animations has finished as otherwise\n // styles will be removed too early which will cause an unstyled animation.\n queueMicrotask(() => {\n this.delegate.destroy();\n });\n });\n this._onDestroy?.();\n }\n createElement(name, namespace) {\n return this.delegate.createElement(name, namespace);\n }\n createComment(value) {\n return this.delegate.createComment(value);\n }\n createText(value) {\n return this.delegate.createText(value);\n }\n appendChild(parent, newChild) {\n this.delegate.appendChild(parent, newChild);\n this.engine.onInsert(this.namespaceId, newChild, parent, false);\n }\n insertBefore(parent, newChild, refChild, isMove = true) {\n this.delegate.insertBefore(parent, newChild, refChild);\n // If `isMove` true than we should animate this insert.\n this.engine.onInsert(this.namespaceId, newChild, parent, isMove);\n }\n removeChild(parent, oldChild, isHostElement) {\n this.engine.onRemove(this.namespaceId, oldChild, this.delegate);\n }\n selectRootElement(selectorOrNode, preserveContent) {\n return this.delegate.selectRootElement(selectorOrNode, preserveContent);\n }\n parentNode(node) {\n return this.delegate.parentNode(node);\n }\n nextSibling(node) {\n return this.delegate.nextSibling(node);\n }\n setAttribute(el, name, value, namespace) {\n this.delegate.setAttribute(el, name, value, namespace);\n }\n removeAttribute(el, name, namespace) {\n this.delegate.removeAttribute(el, name, namespace);\n }\n addClass(el, name) {\n this.delegate.addClass(el, name);\n }\n removeClass(el, name) {\n this.delegate.removeClass(el, name);\n }\n setStyle(el, style, value, flags) {\n this.delegate.setStyle(el, style, value, flags);\n }\n removeStyle(el, style, flags) {\n this.delegate.removeStyle(el, style, flags);\n }\n setProperty(el, name, value) {\n if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {\n this.disableAnimations(el, !!value);\n }\n else {\n this.delegate.setProperty(el, name, value);\n }\n }\n setValue(node, value) {\n this.delegate.setValue(node, value);\n }\n listen(target, eventName, callback) {\n return this.delegate.listen(target, eventName, callback);\n }\n disableAnimations(element, value) {\n this.engine.disableAnimations(element, value);\n }\n}\nclass AnimationRenderer extends BaseAnimationRenderer {\n constructor(factory, namespaceId, delegate, engine, onDestroy) {\n super(namespaceId, delegate, engine, onDestroy);\n this.factory = factory;\n this.namespaceId = namespaceId;\n }\n setProperty(el, name, value) {\n if (name.charAt(0) == ANIMATION_PREFIX) {\n if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {\n value = value === undefined ? true : !!value;\n this.disableAnimations(el, value);\n }\n else {\n this.engine.process(this.namespaceId, el, name.slice(1), value);\n }\n }\n else {\n this.delegate.setProperty(el, name, value);\n }\n }\n listen(target, eventName, callback) {\n if (eventName.charAt(0) == ANIMATION_PREFIX) {\n const element = resolveElementFromTarget(target);\n let name = eventName.slice(1);\n let phase = '';\n // @listener.phase is for trigger animation callbacks\n // @@listener is for animation builder callbacks\n if (name.charAt(0) != ANIMATION_PREFIX) {\n [name, phase] = parseTriggerCallbackName(name);\n }\n return this.engine.listen(this.namespaceId, element, name, phase, (event) => {\n const countId = event['_data'] || -1;\n this.factory.scheduleListenerCallback(countId, callback, event);\n });\n }\n return this.delegate.listen(target, eventName, callback);\n }\n}\nfunction resolveElementFromTarget(target) {\n switch (target) {\n case 'body':\n return document.body;\n case 'document':\n return document;\n case 'window':\n return window;\n default:\n return target;\n }\n}\nfunction parseTriggerCallbackName(triggerName) {\n const dotIndex = triggerName.indexOf('.');\n const trigger = triggerName.substring(0, dotIndex);\n const phase = triggerName.slice(dotIndex + 1);\n return [trigger, phase];\n}\n\nclass AnimationRendererFactory {\n constructor(delegate, engine, _zone) {\n this.delegate = delegate;\n this.engine = engine;\n this._zone = _zone;\n this._currentId = 0;\n this._microtaskId = 1;\n this._animationCallbacksBuffer = [];\n this._rendererCache = new Map();\n this._cdRecurDepth = 0;\n engine.onRemovalComplete = (element, delegate) => {\n // Note: if a component element has a leave animation, and a host leave animation,\n // the view engine will call `removeChild` for the parent\n // component renderer as well as for the child component renderer.\n // Therefore, we need to check if we already removed the element.\n const parentNode = delegate?.parentNode(element);\n if (parentNode) {\n delegate.removeChild(parentNode, element);\n }\n };\n }\n createRenderer(hostElement, type) {\n const EMPTY_NAMESPACE_ID = '';\n // cache the delegates to find out which cached delegate can\n // be used by which cached renderer\n const delegate = this.delegate.createRenderer(hostElement, type);\n if (!hostElement || !type?.data?.['animation']) {\n const cache = this._rendererCache;\n let renderer = cache.get(delegate);\n if (!renderer) {\n // Ensure that the renderer is removed from the cache on destroy\n // since it may contain references to detached DOM nodes.\n const onRendererDestroy = () => cache.delete(delegate);\n renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine, onRendererDestroy);\n // only cache this result when the base renderer is used\n cache.set(delegate, renderer);\n }\n return renderer;\n }\n const componentId = type.id;\n const namespaceId = type.id + '-' + this._currentId;\n this._currentId++;\n this.engine.register(namespaceId, hostElement);\n const registerTrigger = (trigger) => {\n if (Array.isArray(trigger)) {\n trigger.forEach(registerTrigger);\n }\n else {\n this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);\n }\n };\n const animationTriggers = type.data['animation'];\n animationTriggers.forEach(registerTrigger);\n return new AnimationRenderer(this, namespaceId, delegate, this.engine);\n }\n begin() {\n this._cdRecurDepth++;\n if (this.delegate.begin) {\n this.delegate.begin();\n }\n }\n _scheduleCountTask() {\n queueMicrotask(() => {\n this._microtaskId++;\n });\n }\n /** @internal */\n scheduleListenerCallback(count, fn, data) {\n if (count >= 0 && count < this._microtaskId) {\n this._zone.run(() => fn(data));\n return;\n }\n const animationCallbacksBuffer = this._animationCallbacksBuffer;\n if (animationCallbacksBuffer.length == 0) {\n queueMicrotask(() => {\n this._zone.run(() => {\n animationCallbacksBuffer.forEach((tuple) => {\n const [fn, data] = tuple;\n fn(data);\n });\n this._animationCallbacksBuffer = [];\n });\n });\n }\n animationCallbacksBuffer.push([fn, data]);\n }\n end() {\n this._cdRecurDepth--;\n // this is to prevent animations from running twice when an inner\n // component does CD when a parent component instead has inserted it\n if (this._cdRecurDepth == 0) {\n this._zone.runOutsideAngular(() => {\n this._scheduleCountTask();\n this.engine.flush(this._microtaskId);\n });\n }\n if (this.delegate.end) {\n this.delegate.end();\n }\n }\n whenRenderingDone() {\n return this.engine.whenRenderingDone();\n }\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AnimationDriver, NoopAnimationDriver, Animation as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, BaseAnimationRenderer as ɵBaseAnimationRenderer, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, camelCaseToDashCase as ɵcamelCaseToDashCase, containsElement as ɵcontainsElement, createEngine as ɵcreateEngine, getParentElement as ɵgetParentElement, invokeQuery as ɵinvokeQuery, normalizeKeyframes as ɵnormalizeKeyframes, validateStyleProperty as ɵvalidateStyleProperty, validateWebAnimatableStyleProperty as ɵvalidateWebAnimatableStyleProperty };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule, ɵperformanceMarkFeature } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationRendererFactory, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, NoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\n\nclass InjectableAnimationEngine extends ɵAnimationEngine {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(doc, driver, normalizer) {\n super(doc, driver, normalizer, inject(ɵChangeDetectionScheduler, { optional: true }));\n }\n ngOnDestroy() {\n this.flush();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: InjectableAnimationEngine }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: InjectableAnimationEngine, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1.AnimationDriver }, { type: i1.ɵAnimationStyleNormalizer }] });\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new ɵAnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [\n { provide: ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },\n { provide: ɵAnimationEngine, useClass: InjectableAnimationEngine }, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n }\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [\n { provide: AnimationDriver, useFactory: () => new ɵWebAnimationsDriver() },\n { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [\n { provide: AnimationDriver, useClass: NoopAnimationDriver },\n { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nclass BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS :\n BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationsModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [BrowserModule],\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n }]\n }] });\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAnimations() {\n ɵperformanceMarkFeature('NgEagerAnimations');\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nclass NoopAnimationsModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoopAnimationsModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [BrowserModule],\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n }]\n }] });\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideNoopAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import { UrlMatchResult, UrlSegment } from '@angular/router';\r\n\r\n/**\r\n * FAD needs to match any of the routes here and use the SearchResultsComponent\r\n * https://dignityhealth.atlassian.net/wiki/spaces/OOD/pages/340951041/Marketing\r\n * This requires a custom route matcher to match all these specific routes\r\n * and reuse the same SearchResultsComponent.\r\n * Without that, new instances of SearchResultsComponent will be created, and\r\n * a custom route reuse strategy won't work easily.\r\n *\r\n * @param url Url to match on\r\n */\r\nexport function fadSearchResultsVanityUrlMatcher(url: UrlSegment[]): UrlMatchResult {\r\n if (url.length === 0) {\r\n return null;\r\n }\r\n if (url[0].path.match(/^t$/s)) {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n searchType: url[0],\r\n searchTerm: getUrlSegmentOrEmptyUrlSegment(url, 1)\r\n }\r\n };\r\n } else if (url[0].path.match(/^l$/s)) {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n searchType: url[0],\r\n location: getUrlSegmentOrEmptyUrlSegment(url, 1)\r\n }\r\n };\r\n } else if (url[0].path.match(/^m$/s)) {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n searchType: url[0],\r\n medGroup: getUrlSegmentOrEmptyUrlSegment(url, 1),\r\n searchTerm: getUrlSegmentOrEmptyUrlSegment(url, 2)\r\n }\r\n };\r\n } else if (url[0].path.match(/^r$/s)) {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n searchType: url[0],\r\n location: getUrlSegmentOrEmptyUrlSegment(url, 1),\r\n searchTerm: getUrlSegmentOrEmptyUrlSegment(url, 2)\r\n }\r\n };\r\n } else if (url[0].path.match(/^s$/s)) {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n searchType: url[0],\r\n specialty: getUrlSegmentOrEmptyUrlSegment(url, 1),\r\n location: getUrlSegmentOrEmptyUrlSegment(url, 2)\r\n }\r\n };\r\n }\r\n return null;\r\n}\r\n\r\nexport function fadProviderDetailsUrlMatcher(url: UrlSegment[]): UrlMatchResult {\r\n if (url.length === 0) {\r\n return null;\r\n }\r\n\r\n if (url.length > 1) {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n specialty: url[0],\r\n providerId: url[1]\r\n }\r\n };\r\n } else {\r\n return {\r\n consumed: url,\r\n posParams: {\r\n providerId: url[0]\r\n }\r\n };\r\n }\r\n}\r\n\r\nfunction getUrlSegmentOrEmptyUrlSegment(urlSegments: UrlSegment[], index: number): UrlSegment {\r\n return urlSegments.length > index ? urlSegments[index] : new UrlSegment('', {});\r\n}\r\n","import { PreloadAllModules, RouterModule, Routes } from '@angular/router';\r\nimport { NgModule } from '@angular/core';\r\nimport { fadProviderDetailsUrlMatcher, fadSearchResultsVanityUrlMatcher } from './utils/fad-marketing-route-matcher';\r\nimport { inFadLiteMode } from './utils/utils';\r\nimport { ErrorPageComponent } from './components/error-page/error-page.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: 'covid-vaccine/launch',\r\n loadChildren: () => import('./pages/vaccination-location/vaccination-location.module').then((m) => m.VaccinationLocationModule)\r\n },\r\n {\r\n path: 'find-doctor-widget',\r\n loadChildren: () => import('./pages/find-doctor-widget/find-doctor-widget.module').then((m) => m.FindDoctorWidgetModule)\r\n },\r\n {\r\n path: 'fad-lite',\r\n loadChildren: () => import('./pages/fad-lite-search-landing/fad-lite-search-landing.module').then((m) => m.FadLiteSearchLandingModule)\r\n },\r\n {\r\n matcher: fadSearchResultsVanityUrlMatcher,\r\n loadChildren: () => import('./pages/search-results/search-results.module').then((m) => m.SearchResultsModule),\r\n data: {\r\n storageKey: 'SearchResultsComponent'\r\n }\r\n },\r\n {\r\n matcher: fadProviderDetailsUrlMatcher,\r\n loadChildren: () => import('./pages/provider-details/provider-details.module').then((m) => m.ProviderDetailsModule)\r\n },\r\n {\r\n path: '',\r\n loadChildren: () => inFadLiteMode()? \r\n import('./pages/fad-lite-search-landing/fad-lite-search-landing.module').then((m) => m.FadLiteSearchLandingModule):\r\n import('./pages/search-landing/search-landing.module').then((m) => m.SearchLandingModule)\r\n },\r\n { path: '**', component: ErrorPageComponent, pathMatch: 'full' }\r\n];\r\n\r\n@NgModule({\r\n imports: [\r\n RouterModule.forRoot(routes, {\r\n preloadingStrategy: PreloadAllModules,\r\n onSameUrlNavigation: 'reload',\r\n scrollPositionRestoration: 'enabled',\r\n anchorScrolling: 'enabled'\r\n // This is useful to debug and see router events.\r\n // enableTracing: true\r\n })\r\n ],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule {}\r\n\r\n\r\n","import { ComponentRef, Inject, Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { catchError, tap } from 'rxjs/operators';\r\nimport { ROOT_ELEMENT } from '../utils/utils';\r\nimport { forkJoin, Observable, of, throwError } from 'rxjs';\r\nimport { FadConfigurationData } from '../models/configuration';\r\nimport { CovidVaccinationLocation } from '../models/covid-vaccination-location';\r\nimport { ConfigurationService } from './configuration.service';\r\nimport { FadLinkService } from './fad-link.service';\r\nimport { LogService } from './log.service';\r\nimport { AppInsightsMonitoringService } from './app-insights-monitoring.service';\r\nimport { OidcConfig as OpenIdConfiguration } from 'identity-manager-client-library';\r\nimport { CjaTagService } from './cja-tag.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ConfigurationInjectionService {\r\n private runtimeConfig: RuntimeConfiguration;\r\n\r\n private readonly RuntimeConfigJson = 'runtime.config.json';\r\n private embedSource: string;\r\n private isCernerPage=false;\r\n\r\n private readonly noCacheHeader = {\r\n headers: new HttpHeaders({\r\n 'Cache-Control': 'no-cache',\r\n Pragma: 'no-cache',\r\n Expires: '0'\r\n })\r\n };\r\n\r\n constructor(\r\n private http: HttpClient,\r\n private configurationService: ConfigurationService,\r\n private fadLinkServer: FadLinkService,\r\n private logService: LogService,\r\n private appInsights: AppInsightsMonitoringService,\r\n private cjatagservice : CjaTagService,\r\n @Inject(ROOT_ELEMENT) private rootElement: HTMLElement\r\n ) {}\r\n\r\n public load(): Promise<any> {\r\n this.setRootElementCssClass();\r\n this.embedSource = this.rootElement.hasAttribute('embedSource') ? this.rootElement.getAttribute('embedSource') : null;\r\n if(this.rootElement.hasAttribute('isCernerPage'))\r\n {\r\n this.isCernerPage = this.rootElement.getAttribute('isCernerPage') == 'true' ? true : false ;\r\n }\r\n\r\n return new Promise<void>((resolve) => {\r\n this.loadInitialConfiguration()\r\n .toPromise()\r\n .then(() => {\r\n resolve();\r\n })\r\n .catch((error: any) => {\r\n if (error instanceof HttpErrorResponse) {\r\n this.logService.error(`Loading configuration failed: ${error.message}`);\r\n return;\r\n }\r\n this.logService.error(`Loading configuration failed: ${error.message}`);\r\n });\r\n });\r\n }\r\n\r\n private setRootElementCssClass() {\r\n // This dynamically adds a css class to the root element\r\n // in order to apply css at the entire FAD component level.\r\n this.rootElement.classList.add('fad-root-element');\r\n }\r\n\r\n private loadInitialConfiguration(): Observable<any> {\r\n let jsonConfigUrl = './fad-configuration.json';\r\n if (!this.rootElement.hasAttribute('configuration-url') && !this.rootElement.hasAttribute('configurationUrl')) {\r\n this.logService.warn(\r\n `Could not find attribute 'configuration-url' on root element ${this.rootElement.tagName}. Falling back to ${jsonConfigUrl}`\r\n );\r\n } else {\r\n jsonConfigUrl = this.rootElement.getAttribute('configuration-url') ?? this.rootElement.getAttribute('configurationUrl');\r\n }\r\n\r\n // Config Adobe after loading Runtime config\r\n const configAndAdobe$: Observable<RuntimeConfiguration> = this.loadRuntimeConfig().pipe(\r\n tap(() => {\r\n this.setupAdobe(); \r\n this.setupAppInsights();\r\n })\r\n );\r\n\r\n return forkJoin([this.setConfigurationElements(jsonConfigUrl), configAndAdobe$]).pipe(\r\n tap(([config, runtimeConfig]: [FadConfigurationData, RuntimeConfiguration]) => {\r\n // Check missing keys in fad-configuration.json file.\r\n this.reportMissingKeys(config);\r\n this.configurationService.init(config, runtimeConfig, this.embedSource,this.isCernerPage);\r\n })\r\n );\r\n }\r\n\r\n private getUrlOfFadScript(): URL {\r\n let baseUrl = document.location.href;\r\n if (!this.fadLinkServer.isSelfHosted()) {\r\n let scriptElement = document.getElementsByTagName('script')?.namedItem('fad-saas-script');\r\n if (scriptElement) {\r\n this.logService.info(`scriptElement with namedItem fad-saas src: ${scriptElement.src}`);\r\n }\r\n if (!scriptElement) {\r\n const scriptElements: HTMLCollectionOf<HTMLScriptElement> = document.getElementsByTagName('script');\r\n for (let i = 0; i < scriptElements.length; i++) {\r\n const el = scriptElements.item(i);\r\n if (el.src.includes('fad-saas.js')) {\r\n scriptElement = el;\r\n break;\r\n }\r\n }\r\n }\r\n if (!scriptElement) {\r\n throw new Error('Could not find the FAD Saas script element');\r\n }\r\n baseUrl = scriptElement.src;\r\n }\r\n return new URL(baseUrl);\r\n }\r\n\r\n private loadRuntimeConfig(): Observable<RuntimeConfiguration> {\r\n const url = this.getUrlOfFadScript();\r\n let environment = `${url.protocol}//${url.hostname}${url.port ? ':' + url.port : ''}`;\r\n if (!this.fadLinkServer.isSelfHosted()) {\r\n environment = url.href.replace('/fad-saas.js', '');\r\n }\r\n // The no-cache properties help protect the runtime config against CORS issues\r\n return this.http\r\n .get<RuntimeConfiguration>(`${environment}/${this.RuntimeConfigJson}`, this.noCacheHeader)\r\n .pipe(tap((result: RuntimeConfiguration) => (this.runtimeConfig = result)));\r\n }\r\n\r\n private setConfigurationElements(configurationUrl: string): Observable<FadConfigurationData> {\r\n if (configurationUrl) {\r\n // The no-cache properties help protect the fad config against CORS issues\r\n return this.http.get<any>(configurationUrl, this.noCacheHeader)?.pipe(\r\n catchError((err: HttpErrorResponse) => {\r\n if (err.status === 404) {\r\n this.logService.error(err.message);\r\n return throwError(err);\r\n }\r\n this.logService.error(err.message);\r\n return throwError(err);\r\n }),\r\n tap((config: FadConfigurationData) => {\r\n this.mapConfiguration(config);\r\n })\r\n );\r\n } else {\r\n of(null);\r\n }\r\n }\r\n\r\n mapConfiguration(config: FadConfigurationData): void {\r\n if (!config) {\r\n return;\r\n }\r\n if (config.theme && this.rootElement) {\r\n if (config.theme.colorPalette) {\r\n const htmlTag = document.querySelector('html');\r\n htmlTag.classList.add(config.theme.colorPalette);\r\n }\r\n\r\n if (config.theme.colors) {\r\n this.rootElement.style.setProperty('--location-pin-color', config.theme.colors.locationPinColor ?? '#ed711c');\r\n this.rootElement.style.setProperty('--location-pin-outline', config.theme.colors.locationPinOutline ?? '#c85200');\r\n this.rootElement.style.setProperty('--location-pin-label', config.theme.colors.locationPinLabel ?? '#fff');\r\n }\r\n this.setFonts(config, this.rootElement);\r\n }\r\n }\r\n\r\n private setFonts(config: FadConfigurationData, rootElement: HTMLElement): void {\r\n if (!config.theme?.fonts) {\r\n return;\r\n }\r\n\r\n const headElement = document.querySelector('head');\r\n const link = document.createElement('link');\r\n link.setAttribute('rel', 'stylesheet');\r\n link.href = `${config.theme.fonts.fontCssUrl}?display=swap`;\r\n link.type = 'text/css';\r\n headElement.appendChild(link);\r\n }\r\n\r\n private setupAdobe(): void {\r\n this.cjatagservice.init(this.runtimeConfig);\r\n }\r\n\r\n private setupAppInsights(): void {\r\n this.appInsights.init(this.runtimeConfig);\r\n }\r\n\r\n listener(componentRef: ComponentRef<any>): void {\r\n this.logService.log(componentRef.componentType?.name);\r\n this.logService.log(componentRef.location?.nativeElement?.name);\r\n }\r\n\r\n reportMissingKeys(fadConfig: FadConfigurationData): void {\r\n const requiredSearchKeys = this.configurationService.requiredSearchKeys;\r\n const warningSearchKeys = this.configurationService.warningSearchKeys;\r\n const requiredMissingKeys = this.configurationService.findMissingKeys(requiredSearchKeys, fadConfig);\r\n const warningMissingKeys = this.configurationService.findMissingKeys(warningSearchKeys, fadConfig);\r\n if (requiredMissingKeys.length > 0) {\r\n this.logService.error('Required missing key(s) in fad-configuration.json file.', requiredMissingKeys);\r\n }\r\n\r\n if (warningMissingKeys.length > 0) {\r\n this.logService.warn('Warning missing key(s) in fad-configuration.json file.', warningMissingKeys, fadConfig);\r\n }\r\n }\r\n}\r\n\r\nexport interface RuntimeConfiguration {\r\n apiBaseUrl: string;\r\n newApiBaseUrl?: string;\r\n schedulingApiBaseUrl: string;\r\n apimSubscriptionKey?: string;\r\n notableTokenValidationUrl?: string;\r\n envName: string;\r\n covidVaccinationLocations?: CovidVaccinationLocation[];\r\n cshValidationUrl?: string;\r\n adobeScriptSrc?: string;\r\n marketLocations?: string;\r\n pressGaneyRatingsUrl: string;\r\n covidAppointmentTypes?: string;\r\n v5OpenSlotsEndpoint?: string;\r\n instrumentationKey?: string;\r\n googleMapUrl?: string;\r\n falBaseUrl?: string;\r\n fadBaseUrl?: string;\r\n myChartUrl?: string;\r\n slotUrl?:string;\r\n Cerner_MyAppointments_OIDC_Token?: string;\r\n blockItUrl?: string;\r\n blockItToken?: string;\r\n oidcConfig?: OpenIdConfiguration;\r\n appointmentDomainAPI?: string;\r\n ocpApimSubscriptionKey?: string;\r\n}\r\n","import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpErrorResponse } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { LogService } from '../../services/log.service';\r\n\r\n\r\n\r\n@Injectable()\r\nexport class HttpLogInterceptor implements HttpInterceptor {\r\nconstructor(private logService: LogService) {}\r\n\r\n\r\n\r\nintercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\r\nreturn next.handle(req).pipe(\r\ncatchError((error) => {\r\nif (error instanceof HttpErrorResponse) {\r\nif (error.error instanceof ErrorEvent) {\r\nthis.logService.warn(`${error.error.message}`);\r\n} else {\r\nif (error.status >= 400 && error.status < 600) {\r\nthis.logService.error(`status:${error.status}- URL:${error.url} ::error message: ${error.error.message}`);\r\n}\r\n}\r\n} else {\r\nthis.logService.warn(`${error.message}`);\r\n}\r\n\r\n\r\n\r\nreturn throwError(error);\r\n})\r\n);\r\n}\r\n}\r\n","import { ActionReducerMap, MetaReducer } from '@ngrx/store';\r\n\r\n// eslint-disable-next-line\r\nexport interface AppState {}\r\n\r\nexport const reducers: ActionReducerMap<AppState> = {};\r\n\r\nexport const metaReducers: MetaReducer<AppState>[] = [];\r\n","import { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function withLatestFrom(...args) {\n return (source) => {\n let project;\n if (typeof args[args.length - 1] === 'function') {\n project = args.pop();\n }\n const observables = args;\n return source.lift(new WithLatestFromOperator(observables, project));\n };\n}\nclass WithLatestFromOperator {\n constructor(observables, project) {\n this.observables = observables;\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));\n }\n}\nclass WithLatestFromSubscriber extends OuterSubscriber {\n constructor(destination, observables, project) {\n super(destination);\n this.observables = observables;\n this.project = project;\n this.toRespond = [];\n const len = observables.length;\n this.values = new Array(len);\n for (let i = 0; i < len; i++) {\n this.toRespond.push(i);\n }\n for (let i = 0; i < len; i++) {\n let observable = observables[i];\n this.add(subscribeToResult(this, observable, undefined, i));\n }\n }\n notifyNext(_outerValue, innerValue, outerIndex) {\n this.values[outerIndex] = innerValue;\n const toRespond = this.toRespond;\n if (toRespond.length > 0) {\n const found = toRespond.indexOf(outerIndex);\n if (found !== -1) {\n toRespond.splice(found, 1);\n }\n }\n }\n notifyComplete() {\n }\n _next(value) {\n if (this.toRespond.length === 0) {\n const args = [value, ...this.values];\n if (this.project) {\n this._tryProject(args);\n }\n else {\n this.destination.next(args);\n }\n }\n }\n _tryProject(args) {\n let result;\n try {\n result = this.project.apply(this, args);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function distinctUntilChanged(compare, keySelector) {\n return (source) => source.lift(new DistinctUntilChangedOperator(compare, keySelector));\n}\nclass DistinctUntilChangedOperator {\n constructor(compare, keySelector) {\n this.compare = compare;\n this.keySelector = keySelector;\n }\n call(subscriber, source) {\n return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n }\n}\nclass DistinctUntilChangedSubscriber extends Subscriber {\n constructor(destination, compare, keySelector) {\n super(destination);\n this.keySelector = keySelector;\n this.hasKey = false;\n if (typeof compare === 'function') {\n this.compare = compare;\n }\n }\n compare(x, y) {\n return x === y;\n }\n _next(value) {\n let key;\n try {\n const { keySelector } = this;\n key = keySelector ? keySelector(value) : value;\n }\n catch (err) {\n return this.destination.error(err);\n }\n let result = false;\n if (this.hasKey) {\n try {\n const { compare } = this;\n result = compare(this.key, key);\n }\n catch (err) {\n return this.destination.error(err);\n }\n }\n else {\n this.hasKey = true;\n }\n if (!result) {\n this.key = key;\n this.destination.next(value);\n }\n }\n}\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { assertInInjectionContext, inject, DestroyRef, ɵRuntimeError, ɵgetOutputDestroyRef, Injector, effect, untracked, assertNotInReactiveContext, signal, computed } from '@angular/core';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\n/**\n * Operator which completes the Observable when the calling context (component, directive, service,\n * etc) is destroyed.\n *\n * @param destroyRef optionally, the `DestroyRef` representing the current context. This can be\n * passed explicitly to use `takeUntilDestroyed` outside of an [injection\n * context](guide/dependency-injection-context). Otherwise, the current `DestroyRef` is injected.\n *\n * @developerPreview\n */\nfunction takeUntilDestroyed(destroyRef) {\n if (!destroyRef) {\n assertInInjectionContext(takeUntilDestroyed);\n destroyRef = inject(DestroyRef);\n }\n const destroyed$ = new Observable(observer => {\n const unregisterFn = destroyRef.onDestroy(observer.next.bind(observer));\n return unregisterFn;\n });\n return (source) => {\n return source.pipe(takeUntil(destroyed$));\n };\n}\n\n/**\n * Implementation of `OutputRef` that emits values from\n * an RxJS observable source.\n *\n * @internal\n */\nclass OutputFromObservableRef {\n constructor(source) {\n this.source = source;\n this.destroyed = false;\n this.destroyRef = inject(DestroyRef);\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n });\n }\n subscribe(callbackFn) {\n if (this.destroyed) {\n throw new ɵRuntimeError(953 /* ɵRuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode &&\n 'Unexpected subscription to destroyed `OutputRef`. ' +\n 'The owning directive/component is destroyed.');\n }\n // Stop yielding more values when the directive/component is already destroyed.\n const subscription = this.source.pipe(takeUntilDestroyed(this.destroyRef)).subscribe({\n next: value => callbackFn(value),\n });\n return {\n unsubscribe: () => subscription.unsubscribe(),\n };\n }\n}\n/**\n * Declares an Angular output that is using an RxJS observable as a source\n * for events dispatched to parent subscribers.\n *\n * The behavior for an observable as source is defined as followed:\n * 1. New values are forwarded to the Angular output (next notifications).\n * 2. Errors notifications are not handled by Angular. You need to handle these manually.\n * For example by using `catchError`.\n * 3. Completion notifications stop the output from emitting new values.\n *\n * @usageNotes\n * Initialize an output in your directive by declaring a\n * class field and initializing it with the `outputFromObservable()` function.\n *\n * ```ts\n * @Directive({..})\n * export class MyDir {\n * nameChange$ = <some-observable>;\n * nameChange = outputFromObservable(this.nameChange$);\n * }\n * ```\n *\n * @developerPreview\n */\nfunction outputFromObservable(observable, opts) {\n ngDevMode && assertInInjectionContext(outputFromObservable);\n return new OutputFromObservableRef(observable);\n}\n\n/**\n * Converts an Angular output declared via `output()` or `outputFromObservable()`\n * to an observable.\n *\n * You can subscribe to the output via `Observable.subscribe` then.\n *\n * @developerPreview\n */\nfunction outputToObservable(ref) {\n const destroyRef = ɵgetOutputDestroyRef(ref);\n return new Observable(observer => {\n // Complete the observable upon directive/component destroy.\n // Note: May be `undefined` if an `EventEmitter` is declared outside\n // of an injection context.\n destroyRef?.onDestroy(() => observer.complete());\n const subscription = ref.subscribe(v => observer.next(v));\n return () => subscription.unsubscribe();\n });\n}\n\n/**\n * Exposes the value of an Angular `Signal` as an RxJS `Observable`.\n *\n * The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.\n *\n * `toObservable` must be called in an injection context unless an injector is provided via options.\n *\n * @developerPreview\n */\nfunction toObservable(source, options) {\n !options?.injector && assertInInjectionContext(toObservable);\n const injector = options?.injector ?? inject(Injector);\n const subject = new ReplaySubject(1);\n const watcher = effect(() => {\n let value;\n try {\n value = source();\n }\n catch (err) {\n untracked(() => subject.error(err));\n return;\n }\n untracked(() => subject.next(value));\n }, { injector, manualCleanup: true });\n injector.get(DestroyRef).onDestroy(() => {\n watcher.destroy();\n subject.complete();\n });\n return subject.asObservable();\n}\n\n/**\n * Get the current value of an `Observable` as a reactive `Signal`.\n *\n * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced\n * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always\n * have the most recent value emitted by the subscription, and will throw an error if the\n * `Observable` errors.\n *\n * With `requireSync` set to `true`, `toSignal` will assert that the `Observable` produces a value\n * immediately upon subscription. No `initialValue` is needed in this case, and the returned signal\n * does not include an `undefined` type.\n *\n * By default, the subscription will be automatically cleaned up when the current [injection\n * context](/guide/dependency-injection-context) is destroyed. For example, when `toSignal` is\n * called during the construction of a component, the subscription will be cleaned up when the\n * component is destroyed. If an injection context is not available, an explicit `Injector` can be\n * passed instead.\n *\n * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`\n * option can be specified instead, which disables the automatic subscription teardown. No injection\n * context is needed in this configuration as well.\n *\n * @developerPreview\n */\nfunction toSignal(source, options) {\n ngDevMode &&\n assertNotInReactiveContext(toSignal, 'Invoking `toSignal` causes new subscriptions every time. ' +\n 'Consider moving `toSignal` outside of the reactive context and read the signal value where needed.');\n const requiresCleanup = !options?.manualCleanup;\n requiresCleanup && !options?.injector && assertInInjectionContext(toSignal);\n const cleanupRef = requiresCleanup ? options?.injector?.get(DestroyRef) ?? inject(DestroyRef) : null;\n // Note: T is the Observable value type, and U is the initial value type. They don't have to be\n // the same - the returned signal gives values of type `T`.\n let state;\n if (options?.requireSync) {\n // Initially the signal is in a `NoValue` state.\n state = signal({ kind: 0 /* StateKind.NoValue */ });\n }\n else {\n // If an initial value was passed, use it. Otherwise, use `undefined` as the initial value.\n state = signal({ kind: 1 /* StateKind.Value */, value: options?.initialValue });\n }\n // Note: This code cannot run inside a reactive context (see assertion above). If we'd support\n // this, we would subscribe to the observable outside of the current reactive context, avoiding\n // that side-effect signal reads/writes are attribute to the current consumer. The current\n // consumer only needs to be notified when the `state` signal changes through the observable\n // subscription. Additional context (related to async pipe):\n // https://github.com/angular/angular/pull/50522.\n const sub = source.subscribe({\n next: value => state.set({ kind: 1 /* StateKind.Value */, value }),\n error: error => {\n if (options?.rejectErrors) {\n // Kick the error back to RxJS. It will be caught and rethrown in a macrotask, which causes\n // the error to end up as an uncaught exception.\n throw error;\n }\n state.set({ kind: 2 /* StateKind.Error */, error });\n },\n // Completion of the Observable is meaningless to the signal. Signals don't have a concept of\n // \"complete\".\n });\n if (ngDevMode && options?.requireSync && state().kind === 0 /* StateKind.NoValue */) {\n throw new ɵRuntimeError(601 /* ɵRuntimeErrorCode.REQUIRE_SYNC_WITHOUT_SYNC_EMIT */, '`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.');\n }\n // Unsubscribe when the current context is destroyed, if requested.\n cleanupRef?.onDestroy(sub.unsubscribe.bind(sub));\n // The actual returned signal is a `computed` of the `State` signal, which maps the various states\n // to either values or errors.\n return computed(() => {\n const current = state();\n switch (current.kind) {\n case 1 /* StateKind.Value */:\n return current.value;\n case 2 /* StateKind.Error */:\n throw current.error;\n case 0 /* StateKind.NoValue */:\n // This shouldn't really happen because the error is thrown on creation.\n // TODO(alxhub): use a RuntimeError when we finalize the error semantics\n throw new ɵRuntimeError(601 /* ɵRuntimeErrorCode.REQUIRE_SYNC_WITHOUT_SYNC_EMIT */, '`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.');\n }\n });\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { outputFromObservable, outputToObservable, takeUntilDestroyed, toObservable, toSignal };\n","import * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, Inject, computed, isDevMode, inject, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, NgModule, Optional } from '@angular/core';\nimport { BehaviorSubject, Observable, Subject, queueScheduler } from 'rxjs';\nimport { observeOn, withLatestFrom, scan, pluck, map, distinctUntilChanged } from 'rxjs/operators';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\nconst REGISTERED_ACTION_TYPES = {};\nfunction resetRegisteredActionTypes() {\n for (const key of Object.keys(REGISTERED_ACTION_TYPES)) {\n delete REGISTERED_ACTION_TYPES[key];\n }\n}\n\n/**\n * @description\n * Creates a configured `Creator` function that, when called, returns an object in the shape of the `Action` interface.\n *\n * Action creators reduce the explicitness of class-based action creators.\n *\n * @param type Describes the action that will be dispatched\n * @param config Additional metadata needed for the handling of the action. See {@link createAction#usage-notes Usage Notes}.\n *\n * @usageNotes\n *\n * **Declaring an action creator**\n *\n * Without additional metadata:\n * ```ts\n * export const increment = createAction('[Counter] Increment');\n * ```\n * With additional metadata:\n * ```ts\n * export const loginSuccess = createAction(\n * '[Auth/API] Login Success',\n * props<{ user: User }>()\n * );\n * ```\n * With a function:\n * ```ts\n * export const loginSuccess = createAction(\n * '[Auth/API] Login Success',\n * (response: Response) => response.user\n * );\n * ```\n *\n * **Dispatching an action**\n *\n * Without additional metadata:\n * ```ts\n * store.dispatch(increment());\n * ```\n * With additional metadata:\n * ```ts\n * store.dispatch(loginSuccess({ user: newUser }));\n * ```\n *\n * **Referencing an action in a reducer**\n *\n * Using a switch statement:\n * ```ts\n * switch (action.type) {\n * // ...\n * case AuthApiActions.loginSuccess.type: {\n * return {\n * ...state,\n * user: action.user\n * };\n * }\n * }\n * ```\n * Using a reducer creator:\n * ```ts\n * on(AuthApiActions.loginSuccess, (state, { user }) => ({ ...state, user }))\n * ```\n *\n * **Referencing an action in an effect**\n * ```ts\n * effectName$ = createEffect(\n * () => this.actions$.pipe(\n * ofType(AuthApiActions.loginSuccess),\n * // ...\n * )\n * );\n * ```\n */\nfunction createAction(type, config) {\n REGISTERED_ACTION_TYPES[type] = (REGISTERED_ACTION_TYPES[type] || 0) + 1;\n if (typeof config === 'function') {\n return defineType(type, (...args) => ({\n ...config(...args),\n type,\n }));\n }\n const as = config ? config._as : 'empty';\n switch (as) {\n case 'empty':\n return defineType(type, () => ({ type }));\n case 'props':\n return defineType(type, (props) => ({\n ...props,\n type,\n }));\n default:\n throw new Error('Unexpected config.');\n }\n}\nfunction props() {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return { _as: 'props', _p: undefined };\n}\nfunction union(creators) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return undefined;\n}\nfunction defineType(type, creator) {\n return Object.defineProperty(creator, 'type', {\n value: type,\n writable: false,\n });\n}\n\nfunction capitalize(text) {\n return (text.charAt(0).toUpperCase() + text.substring(1));\n}\nfunction uncapitalize(text) {\n return (text.charAt(0).toLowerCase() + text.substring(1));\n}\n\n/**\n * @description\n * A function that creates a group of action creators with the same source.\n *\n * @param config An object that contains a source and dictionary of events.\n * An event is a key-value pair of an event name and event props.\n * @returns A dictionary of action creators.\n * The name of each action creator is created by camel casing the event name.\n * The type of each action is created using the \"[Source] Event Name\" pattern.\n *\n * @usageNotes\n *\n * ```ts\n * const authApiActions = createActionGroup({\n * source: 'Auth API',\n * events: {\n * // defining events with payload using the `props` function\n * 'Login Success': props<{ userId: number; token: string }>(),\n * 'Login Failure': props<{ error: string }>(),\n *\n * // defining an event without payload using the `emptyProps` function\n * 'Logout Success': emptyProps(),\n *\n * // defining an event with payload using the props factory\n * 'Logout Failure': (error: Error) => ({ error }),\n * },\n * });\n *\n * // action type: \"[Auth API] Login Success\"\n * authApiActions.loginSuccess({ userId: 10, token: 'ngrx' });\n *\n * // action type: \"[Auth API] Login Failure\"\n * authApiActions.loginFailure({ error: 'Login Failure!' });\n *\n * // action type: \"[Auth API] Logout Success\"\n * authApiActions.logoutSuccess();\n *\n * // action type: \"[Auth API] Logout Failure\";\n * authApiActions.logoutFailure(new Error('Logout Failure!'));\n * ```\n */\nfunction createActionGroup(config) {\n const { source, events } = config;\n return Object.keys(events).reduce((actionGroup, eventName) => ({\n ...actionGroup,\n [toActionName(eventName)]: createAction(toActionType(source, eventName), events[eventName]),\n }), {});\n}\nfunction emptyProps() {\n return props();\n}\nfunction toActionName(eventName) {\n return eventName\n .trim()\n .split(' ')\n .map((word, i) => (i === 0 ? uncapitalize(word) : capitalize(word)))\n .join('');\n}\nfunction toActionType(source, eventName) {\n return `[${source}] ${eventName}`;\n}\n\nconst INIT = '@ngrx/store/init';\nclass ActionsSubject extends BehaviorSubject {\n constructor() {\n super({ type: INIT });\n }\n next(action) {\n if (typeof action === 'function') {\n 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().`);\n }\n else if (typeof action === 'undefined') {\n throw new TypeError(`Actions must be objects`);\n }\n else if (typeof action.type === 'undefined') {\n throw new TypeError(`Actions must have a type property`);\n }\n super.next(action);\n }\n complete() {\n /* noop */\n }\n ngOnDestroy() {\n super.complete();\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ActionsSubject, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ActionsSubject }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ActionsSubject, decorators: [{\n type: Injectable\n }], ctorParameters: () => [] });\nconst ACTIONS_SUBJECT_PROVIDERS = [ActionsSubject];\n\nconst _ROOT_STORE_GUARD = new InjectionToken('@ngrx/store Internal Root Guard');\nconst _INITIAL_STATE = new InjectionToken('@ngrx/store Internal Initial State');\nconst INITIAL_STATE = new InjectionToken('@ngrx/store Initial State');\nconst REDUCER_FACTORY = new InjectionToken('@ngrx/store Reducer Factory');\nconst _REDUCER_FACTORY = new InjectionToken('@ngrx/store Internal Reducer Factory Provider');\nconst INITIAL_REDUCERS = new InjectionToken('@ngrx/store Initial Reducers');\nconst _INITIAL_REDUCERS = new InjectionToken('@ngrx/store Internal Initial Reducers');\nconst STORE_FEATURES = new InjectionToken('@ngrx/store Store Features');\nconst _STORE_REDUCERS = new InjectionToken('@ngrx/store Internal Store Reducers');\nconst _FEATURE_REDUCERS = new InjectionToken('@ngrx/store Internal Feature Reducers');\nconst _FEATURE_CONFIGS = new InjectionToken('@ngrx/store Internal Feature Configs');\nconst _STORE_FEATURES = new InjectionToken('@ngrx/store Internal Store Features');\nconst _FEATURE_REDUCERS_TOKEN = new InjectionToken('@ngrx/store Internal Feature Reducers Token');\nconst FEATURE_REDUCERS = new InjectionToken('@ngrx/store Feature Reducers');\n/**\n * User-defined meta reducers from StoreModule.forRoot()\n */\nconst USER_PROVIDED_META_REDUCERS = new InjectionToken('@ngrx/store User Provided Meta Reducers');\n/**\n * Meta reducers defined either internally by @ngrx/store or by library authors\n */\nconst META_REDUCERS = new InjectionToken('@ngrx/store Meta Reducers');\n/**\n * Concats the user provided meta reducers and the meta reducers provided on the multi\n * injection token\n */\nconst _RESOLVED_META_REDUCERS = new InjectionToken('@ngrx/store Internal Resolved Meta Reducers');\n/**\n * Runtime checks defined by the user via an InjectionToken\n * Defaults to `_USER_RUNTIME_CHECKS`\n */\nconst USER_RUNTIME_CHECKS = new InjectionToken('@ngrx/store User Runtime Checks Config');\n/**\n * Runtime checks defined by the user via forRoot()\n */\nconst _USER_RUNTIME_CHECKS = new InjectionToken('@ngrx/store Internal User Runtime Checks Config');\n/**\n * Runtime checks currently in use\n */\nconst ACTIVE_RUNTIME_CHECKS = new InjectionToken('@ngrx/store Internal Runtime Checks');\nconst _ACTION_TYPE_UNIQUENESS_CHECK = new InjectionToken('@ngrx/store Check if Action types are unique');\n/**\n * InjectionToken that registers the global Store.\n * Mainly used to provide a hook that can be injected\n * to ensure the root state is loaded before something\n * that depends on it.\n */\nconst ROOT_STORE_PROVIDER = new InjectionToken('@ngrx/store Root Store Provider');\n/**\n * InjectionToken that registers feature states.\n * Mainly used to provide a hook that can be injected\n * to ensure feature state is loaded before something\n * that depends on it.\n */\nconst FEATURE_STATE_PROVIDER = new InjectionToken('@ngrx/store Feature State Provider');\n\n/**\n * @description\n * Combines reducers for individual features into a single reducer.\n *\n * You can use this function to delegate handling of state transitions to multiple reducers, each acting on their\n * own sub-state within the root state.\n *\n * @param reducers An object mapping keys of the root state to their corresponding feature reducer.\n * @param initialState Provides a state value if the current state is `undefined`, as it is initially.\n * @returns A reducer function.\n *\n * @usageNotes\n *\n * **Example combining two feature reducers into one \"root\" reducer**\n *\n * ```ts\n * export const reducer = combineReducers({\n * featureA: featureAReducer,\n * featureB: featureBReducer\n * });\n * ```\n *\n * You can also override the initial states of the sub-features:\n * ```ts\n * export const reducer = combineReducers({\n * featureA: featureAReducer,\n * featureB: featureBReducer\n * }, {\n * featureA: { counterA: 13 },\n * featureB: { counterB: 37 }\n * });\n * ```\n */\nfunction combineReducers(reducers, initialState = {}) {\n const reducerKeys = Object.keys(reducers);\n const finalReducers = {};\n for (let i = 0; i < reducerKeys.length; i++) {\n const key = reducerKeys[i];\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n const finalReducerKeys = Object.keys(finalReducers);\n return function combination(state, action) {\n state = state === undefined ? initialState : state;\n let hasChanged = false;\n const nextState = {};\n for (let i = 0; i < finalReducerKeys.length; i++) {\n const key = finalReducerKeys[i];\n const reducer = finalReducers[key];\n const previousStateForKey = state[key];\n const nextStateForKey = reducer(previousStateForKey, action);\n nextState[key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n return hasChanged ? nextState : state;\n };\n}\nfunction omit(object, keyToRemove) {\n return Object.keys(object)\n .filter((key) => key !== keyToRemove)\n .reduce((result, key) => Object.assign(result, { [key]: object[key] }), {});\n}\nfunction compose(...functions) {\n return function (arg) {\n if (functions.length === 0) {\n return arg;\n }\n const last = functions[functions.length - 1];\n const rest = functions.slice(0, -1);\n return rest.reduceRight((composed, fn) => fn(composed), last(arg));\n };\n}\nfunction createReducerFactory(reducerFactory, metaReducers) {\n if (Array.isArray(metaReducers) && metaReducers.length > 0) {\n reducerFactory = compose.apply(null, [\n ...metaReducers,\n reducerFactory,\n ]);\n }\n return (reducers, initialState) => {\n const reducer = reducerFactory(reducers);\n return (state, action) => {\n state = state === undefined ? initialState : state;\n return reducer(state, action);\n };\n };\n}\nfunction createFeatureReducerFactory(metaReducers) {\n const reducerFactory = Array.isArray(metaReducers) && metaReducers.length > 0\n ? compose(...metaReducers)\n : (r) => r;\n return (reducer, initialState) => {\n reducer = reducerFactory(reducer);\n return (state, action) => {\n state = state === undefined ? initialState : state;\n return reducer(state, action);\n };\n };\n}\n\nclass ReducerObservable extends Observable {\n}\nclass ReducerManagerDispatcher extends ActionsSubject {\n}\nconst UPDATE = '@ngrx/store/update-reducers';\nclass ReducerManager extends BehaviorSubject {\n get currentReducers() {\n return this.reducers;\n }\n constructor(dispatcher, initialState, reducers, reducerFactory) {\n super(reducerFactory(reducers, initialState));\n this.dispatcher = dispatcher;\n this.initialState = initialState;\n this.reducers = reducers;\n this.reducerFactory = reducerFactory;\n }\n addFeature(feature) {\n this.addFeatures([feature]);\n }\n addFeatures(features) {\n const reducers = features.reduce((reducerDict, { reducers, reducerFactory, metaReducers, initialState, key }) => {\n const reducer = typeof reducers === 'function'\n ? createFeatureReducerFactory(metaReducers)(reducers, initialState)\n : createReducerFactory(reducerFactory, metaReducers)(reducers, initialState);\n reducerDict[key] = reducer;\n return reducerDict;\n }, {});\n this.addReducers(reducers);\n }\n removeFeature(feature) {\n this.removeFeatures([feature]);\n }\n removeFeatures(features) {\n this.removeReducers(features.map((p) => p.key));\n }\n addReducer(key, reducer) {\n this.addReducers({ [key]: reducer });\n }\n addReducers(reducers) {\n this.reducers = { ...this.reducers, ...reducers };\n this.updateReducers(Object.keys(reducers));\n }\n removeReducer(featureKey) {\n this.removeReducers([featureKey]);\n }\n removeReducers(featureKeys) {\n featureKeys.forEach((key) => {\n this.reducers = omit(this.reducers, key) /*TODO(#823)*/;\n });\n this.updateReducers(featureKeys);\n }\n updateReducers(featureKeys) {\n this.next(this.reducerFactory(this.reducers, this.initialState));\n this.dispatcher.next({\n type: UPDATE,\n features: featureKeys,\n });\n }\n ngOnDestroy() {\n this.complete();\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ReducerManager, deps: [{ token: ReducerManagerDispatcher }, { token: INITIAL_STATE }, { token: INITIAL_REDUCERS }, { token: REDUCER_FACTORY }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ReducerManager }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ReducerManager, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: ReducerManagerDispatcher }, { type: undefined, decorators: [{\n type: Inject,\n args: [INITIAL_STATE]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [INITIAL_REDUCERS]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [REDUCER_FACTORY]\n }] }] });\nconst REDUCER_MANAGER_PROVIDERS = [\n ReducerManager,\n { provide: ReducerObservable, useExisting: ReducerManager },\n { provide: ReducerManagerDispatcher, useExisting: ActionsSubject },\n];\n\nclass ScannedActionsSubject extends Subject {\n ngOnDestroy() {\n this.complete();\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ScannedActionsSubject, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ScannedActionsSubject }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: ScannedActionsSubject, decorators: [{\n type: Injectable\n }] });\nconst SCANNED_ACTIONS_SUBJECT_PROVIDERS = [\n ScannedActionsSubject,\n];\n\nclass StateObservable extends Observable {\n}\nclass State extends BehaviorSubject {\n static { this.INIT = INIT; }\n constructor(actions$, reducer$, scannedActions, initialState) {\n super(initialState);\n const actionsOnQueue$ = actions$.pipe(observeOn(queueScheduler));\n const withLatestReducer$ = actionsOnQueue$.pipe(withLatestFrom(reducer$));\n const seed = { state: initialState };\n const stateAndAction$ = withLatestReducer$.pipe(scan(reduceState, seed));\n this.stateSubscription = stateAndAction$.subscribe(({ state, action }) => {\n this.next(state);\n scannedActions.next(action);\n });\n this.state = toSignal(this, { manualCleanup: true, requireSync: true });\n }\n ngOnDestroy() {\n this.stateSubscription.unsubscribe();\n this.complete();\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: State, deps: [{ token: ActionsSubject }, { token: ReducerObservable }, { token: ScannedActionsSubject }, { token: INITIAL_STATE }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: State }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: State, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: ActionsSubject }, { type: ReducerObservable }, { type: ScannedActionsSubject }, { type: undefined, decorators: [{\n type: Inject,\n args: [INITIAL_STATE]\n }] }] });\nfunction reduceState(stateActionPair = { state: undefined }, [action, reducer]) {\n const { state } = stateActionPair;\n return { state: reducer(state, action), action };\n}\nconst STATE_PROVIDERS = [\n State,\n { provide: StateObservable, useExisting: State },\n];\n\n// disabled because we have lowercase generics for `select`\nclass Store extends Observable {\n constructor(state$, actionsObserver, reducerManager) {\n super();\n this.actionsObserver = actionsObserver;\n this.reducerManager = reducerManager;\n this.source = state$;\n this.state = state$.state;\n }\n select(pathOrMapFn, ...paths) {\n return select.call(null, pathOrMapFn, ...paths)(this);\n }\n /**\n * Returns a signal of the provided selector.\n *\n * @param selector selector function\n * @param options select signal options\n */\n selectSignal(selector, options) {\n return computed(() => selector(this.state()), options);\n }\n lift(operator) {\n const store = new Store(this, this.actionsObserver, this.reducerManager);\n store.operator = operator;\n return store;\n }\n dispatch(action) {\n this.actionsObserver.next(action);\n }\n next(action) {\n this.actionsObserver.next(action);\n }\n error(err) {\n this.actionsObserver.error(err);\n }\n complete() {\n this.actionsObserver.complete();\n }\n addReducer(key, reducer) {\n this.reducerManager.addReducer(key, reducer);\n }\n removeReducer(key) {\n this.reducerManager.removeReducer(key);\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: Store, deps: [{ token: StateObservable }, { token: ActionsSubject }, { token: ReducerManager }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: Store }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: Store, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: StateObservable }, { type: ActionsSubject }, { type: ReducerManager }] });\nconst STORE_PROVIDERS = [Store];\nfunction select(pathOrMapFn, propsOrPath, ...paths) {\n return function selectOperator(source$) {\n let mapped$;\n if (typeof pathOrMapFn === 'string') {\n const pathSlices = [propsOrPath, ...paths].filter(Boolean);\n mapped$ = source$.pipe(pluck(pathOrMapFn, ...pathSlices));\n }\n else if (typeof pathOrMapFn === 'function') {\n mapped$ = source$.pipe(map((source) => pathOrMapFn(source, propsOrPath)));\n }\n else {\n throw new TypeError(`Unexpected type '${typeof pathOrMapFn}' in select operator,` +\n ` expected 'string' or 'function'`);\n }\n return mapped$.pipe(distinctUntilChanged());\n };\n}\n\nconst RUNTIME_CHECK_URL = 'https://ngrx.io/guide/store/configuration/runtime-checks';\nfunction isUndefined(target) {\n return target === undefined;\n}\nfunction isNull(target) {\n return target === null;\n}\nfunction isArray(target) {\n return Array.isArray(target);\n}\nfunction isString(target) {\n return typeof target === 'string';\n}\nfunction isBoolean(target) {\n return typeof target === 'boolean';\n}\nfunction isNumber(target) {\n return typeof target === 'number';\n}\nfunction isObjectLike(target) {\n return typeof target === 'object' && target !== null;\n}\nfunction isObject(target) {\n return isObjectLike(target) && !isArray(target);\n}\nfunction isPlainObject(target) {\n if (!isObject(target)) {\n return false;\n }\n const targetPrototype = Object.getPrototypeOf(target);\n return targetPrototype === Object.prototype || targetPrototype === null;\n}\nfunction isFunction(target) {\n return typeof target === 'function';\n}\nfunction isComponent(target) {\n return isFunction(target) && target.hasOwnProperty('ɵcmp');\n}\nfunction hasOwnProperty(target, propertyName) {\n return Object.prototype.hasOwnProperty.call(target, propertyName);\n}\n\nlet _ngrxMockEnvironment = false;\nfunction setNgrxMockEnvironment(value) {\n _ngrxMockEnvironment = value;\n}\nfunction isNgrxMockEnvironment() {\n return _ngrxMockEnvironment;\n}\n\nfunction isEqualCheck(a, b) {\n return a === b;\n}\nfunction isArgumentsChanged(args, lastArguments, comparator) {\n for (let i = 0; i < args.length; i++) {\n if (!comparator(args[i], lastArguments[i])) {\n return true;\n }\n }\n return false;\n}\nfunction resultMemoize(projectionFn, isResultEqual) {\n return defaultMemoize(projectionFn, isEqualCheck, isResultEqual);\n}\nfunction defaultMemoize(projectionFn, isArgumentsEqual = isEqualCheck, isResultEqual = isEqualCheck) {\n let lastArguments = null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, , , , ,\n let lastResult = null;\n let overrideResult;\n function reset() {\n lastArguments = null;\n lastResult = null;\n }\n function setResult(result = undefined) {\n overrideResult = { result };\n }\n function clearResult() {\n overrideResult = undefined;\n }\n /* eslint-disable prefer-rest-params, prefer-spread */\n // disabled because of the use of `arguments`\n function memoized() {\n if (overrideResult !== undefined) {\n return overrideResult.result;\n }\n if (!lastArguments) {\n lastResult = projectionFn.apply(null, arguments);\n lastArguments = arguments;\n return lastResult;\n }\n if (!isArgumentsChanged(arguments, lastArguments, isArgumentsEqual)) {\n return lastResult;\n }\n const newResult = projectionFn.apply(null, arguments);\n lastArguments = arguments;\n if (isResultEqual(lastResult, newResult)) {\n return lastResult;\n }\n lastResult = newResult;\n return newResult;\n }\n return { memoized, reset, setResult, clearResult };\n}\nfunction createSelector(...input) {\n return createSelectorFactory(defaultMemoize)(...input);\n}\nfunction defaultStateFn(state, selectors, props, memoizedProjector) {\n if (props === undefined) {\n const args = selectors.map((fn) => fn(state));\n return memoizedProjector.memoized.apply(null, args);\n }\n const args = selectors.map((fn) => fn(state, props));\n return memoizedProjector.memoized.apply(null, [...args, props]);\n}\n/**\n *\n * @param memoize The function used to memoize selectors\n * @param options Config Object that may include a `stateFn` function defining how to return the selector's value, given the entire `Store`'s state, parent `Selector`s, `Props`, and a `MemoizedProjection`\n *\n * @usageNotes\n *\n * **Creating a Selector Factory Where Array Order Does Not Matter**\n *\n * ```ts\n * function removeMatch(arr: string[], target: string): string[] {\n * const matchIndex = arr.indexOf(target);\n * return [...arr.slice(0, matchIndex), ...arr.slice(matchIndex + 1)];\n * }\n *\n * function orderDoesNotMatterComparer(a: any, b: any): boolean {\n * if (!Array.isArray(a) || !Array.isArray(b)) {\n * return a === b;\n * }\n * if (a.length !== b.length) {\n * return false;\n * }\n * let tempB = [...b];\n * function reduceToDetermineIfArraysContainSameContents(\n * previousCallResult: boolean,\n * arrayMember: any\n * ): boolean {\n * if (previousCallResult === false) {\n * return false;\n * }\n * if (tempB.includes(arrayMember)) {\n * tempB = removeMatch(tempB, arrayMember);\n * return true;\n * }\n * return false;\n * }\n * return a.reduce(reduceToDetermineIfArraysContainSameContents, true);\n * }\n *\n * export const createOrderDoesNotMatterSelector = createSelectorFactory(\n * (projectionFun) => defaultMemoize(\n * projectionFun,\n * orderDoesNotMatterComparer,\n * orderDoesNotMatterComparer\n * )\n * );\n * ```\n *\n * **Creating an Alternative Memoization Strategy**\n *\n * ```ts\n * function serialize(x: any): string {\n * return JSON.stringify(x);\n * }\n *\n * export const createFullHistorySelector = createSelectorFactory(\n * (projectionFunction) => {\n * const cache = {};\n *\n * function memoized() {\n * const serializedArguments = serialize(...arguments);\n * if (cache[serializedArguments] != null) {\n * cache[serializedArguments] = projectionFunction.apply(null, arguments);\n * }\n * return cache[serializedArguments];\n * }\n * return {\n * memoized,\n * reset: () => {},\n * setResult: () => {},\n * clearResult: () => {},\n * };\n * }\n * );\n * ```\n */\nfunction createSelectorFactory(memoize, options = {\n stateFn: defaultStateFn,\n}) {\n return function (...input) {\n let args = input;\n if (Array.isArray(args[0])) {\n const [head, ...tail] = args;\n args = [...head, ...tail];\n }\n else if (args.length === 1 && isSelectorsDictionary(args[0])) {\n args = extractArgsFromSelectorsDictionary(args[0]);\n }\n const selectors = args.slice(0, args.length - 1);\n const projector = args[args.length - 1];\n const memoizedSelectors = selectors.filter((selector) => selector.release && typeof selector.release === 'function');\n const memoizedProjector = memoize(function (...selectors) {\n return projector.apply(null, selectors);\n });\n const memoizedState = defaultMemoize(function (state, props) {\n return options.stateFn.apply(null, [\n state,\n selectors,\n props,\n memoizedProjector,\n ]);\n });\n function release() {\n memoizedState.reset();\n memoizedProjector.reset();\n memoizedSelectors.forEach((selector) => selector.release());\n }\n return Object.assign(memoizedState.memoized, {\n release,\n projector: memoizedProjector.memoized,\n setResult: memoizedState.setResult,\n clearResult: memoizedState.clearResult,\n });\n };\n}\nfunction createFeatureSelector(featureName) {\n return createSelector((state) => {\n const featureState = state[featureName];\n if (!isNgrxMockEnvironment() && isDevMode() && !(featureName in state)) {\n console.warn(`@ngrx/store: The feature name \"${featureName}\" does ` +\n 'not exist in the state, therefore createFeatureSelector ' +\n 'cannot access it. Be sure it is imported in a loaded module ' +\n `using StoreModule.forRoot('${featureName}', ...) or ` +\n `StoreModule.forFeature('${featureName}', ...). If the default ` +\n 'state is intended to be undefined, as is the case with router ' +\n 'state, this development-only warning message can be ignored.');\n }\n return featureState;\n }, (featureState) => featureState);\n}\nfunction isSelectorsDictionary(selectors) {\n return (!!selectors &&\n typeof selectors === 'object' &&\n Object.values(selectors).every((selector) => typeof selector === 'function'));\n}\nfunction extractArgsFromSelectorsDictionary(selectorsDictionary) {\n const selectors = Object.values(selectorsDictionary);\n const resultKeys = Object.keys(selectorsDictionary);\n const projector = (...selectorResults) => resultKeys.reduce((result, key, index) => ({\n ...result,\n [key]: selectorResults[index],\n }), {});\n return [...selectors, projector];\n}\n\n/**\n * @description\n * A function that accepts a feature name and a feature reducer, and creates\n * a feature selector and a selector for each feature state property.\n * This function also provides the ability to add extra selectors to\n * the feature object.\n *\n * @param featureConfig An object that contains a feature name and a feature\n * reducer as required, and extra selectors factory as an optional argument.\n * @returns An object that contains a feature name, a feature reducer,\n * a feature selector, a selector for each feature state property, and extra\n * selectors.\n *\n * @usageNotes\n *\n * ```ts\n * interface ProductsState {\n * products: Product[];\n * selectedId: string | null;\n * }\n *\n * const initialState: ProductsState = {\n * products: [],\n * selectedId: null,\n * };\n *\n * const productsFeature = createFeature({\n * name: 'products',\n * reducer: createReducer(\n * initialState,\n * on(ProductsApiActions.loadSuccess(state, { products }) => ({\n * ...state,\n * products,\n * }),\n * ),\n * });\n *\n * const {\n * name,\n * reducer,\n * // feature selector\n * selectProductsState, // type: MemoizedSelector<Record<string, any>, ProductsState>\n * // feature state properties selectors\n * selectProducts, // type: MemoizedSelector<Record<string, any>, Product[]>\n * selectSelectedId, // type: MemoizedSelector<Record<string, any>, string | null>\n * } = productsFeature;\n * ```\n *\n * **Creating Feature with Extra Selectors**\n *\n * ```ts\n * type CallState = 'init' | 'loading' | 'loaded' | { error: string };\n *\n * interface State extends EntityState<Product> {\n * callState: CallState;\n * }\n *\n * const adapter = createEntityAdapter<Product>();\n * const initialState: State = adapter.getInitialState({\n * callState: 'init',\n * });\n *\n * export const productsFeature = createFeature({\n * name: 'products',\n * reducer: createReducer(initialState),\n * extraSelectors: ({ selectProductsState, selectCallState }) => ({\n * ...adapter.getSelectors(selectProductsState),\n * ...getCallStateSelectors(selectCallState)\n * }),\n * });\n *\n * const {\n * name,\n * reducer,\n * // feature selector\n * selectProductsState,\n * // feature state properties selectors\n * selectIds,\n * selectEntities,\n * selectCallState,\n * // selectors returned by `adapter.getSelectors`\n * selectAll,\n * selectTotal,\n * // selectors returned by `getCallStateSelectors`\n * selectIsLoading,\n * selectIsLoaded,\n * selectError,\n * } = productsFeature;\n * ```\n */\nfunction createFeature(featureConfig) {\n const { name, reducer, extraSelectors: extraSelectorsFactory, } = featureConfig;\n const featureSelector = createFeatureSelector(name);\n const nestedSelectors = createNestedSelectors(featureSelector, reducer);\n const baseSelectors = {\n [`select${capitalize(name)}State`]: featureSelector,\n ...nestedSelectors,\n };\n const extraSelectors = extraSelectorsFactory\n ? extraSelectorsFactory(baseSelectors)\n : {};\n return {\n name,\n reducer,\n ...baseSelectors,\n ...extraSelectors,\n };\n}\nfunction createNestedSelectors(featureSelector, reducer) {\n const initialState = getInitialState(reducer);\n const nestedKeys = (isPlainObject(initialState) ? Object.keys(initialState) : []);\n return nestedKeys.reduce((nestedSelectors, nestedKey) => ({\n ...nestedSelectors,\n [`select${capitalize(nestedKey)}`]: createSelector(featureSelector, (parentState) => parentState?.[nestedKey]),\n }), {});\n}\nfunction getInitialState(reducer) {\n return reducer(undefined, { type: '@ngrx/feature/init' });\n}\n\nfunction _createStoreReducers(reducers) {\n return reducers instanceof InjectionToken ? inject(reducers) : reducers;\n}\nfunction _createFeatureStore(configs, featureStores) {\n return featureStores.map((feat, index) => {\n if (configs[index] instanceof InjectionToken) {\n const conf = inject(configs[index]);\n return {\n key: feat.key,\n reducerFactory: conf.reducerFactory\n ? conf.reducerFactory\n : combineReducers,\n metaReducers: conf.metaReducers ? conf.metaReducers : [],\n initialState: conf.initialState,\n };\n }\n return feat;\n });\n}\nfunction _createFeatureReducers(reducerCollection) {\n return reducerCollection.map((reducer) => {\n return reducer instanceof InjectionToken ? inject(reducer) : reducer;\n });\n}\nfunction _initialStateFactory(initialState) {\n if (typeof initialState === 'function') {\n return initialState();\n }\n return initialState;\n}\nfunction _concatMetaReducers(metaReducers, userProvidedMetaReducers) {\n return metaReducers.concat(userProvidedMetaReducers);\n}\nfunction _provideForRootGuard() {\n const store = inject(Store, { optional: true, skipSelf: true });\n if (store) {\n throw new TypeError(`The root Store has been provided more than once. Feature modules should provide feature states instead.`);\n }\n return 'guarded';\n}\n\nfunction immutabilityCheckMetaReducer(reducer, checks) {\n return function (state, action) {\n const act = checks.action(action) ? freeze(action) : action;\n const nextState = reducer(state, act);\n return checks.state() ? freeze(nextState) : nextState;\n };\n}\nfunction freeze(target) {\n Object.freeze(target);\n const targetIsFunction = isFunction(target);\n Object.getOwnPropertyNames(target).forEach((prop) => {\n // Ignore Ivy properties, ref: https://github.com/ngrx/platform/issues/2109#issuecomment-582689060\n if (prop.startsWith('ɵ')) {\n return;\n }\n if (hasOwnProperty(target, prop) &&\n (targetIsFunction\n ? prop !== 'caller' && prop !== 'callee' && prop !== 'arguments'\n : true)) {\n const propValue = target[prop];\n if ((isObjectLike(propValue) || isFunction(propValue)) &&\n !Object.isFrozen(propValue)) {\n freeze(propValue);\n }\n }\n });\n return target;\n}\n\nfunction serializationCheckMetaReducer(reducer, checks) {\n return function (state, action) {\n if (checks.action(action)) {\n const unserializableAction = getUnserializable(action);\n throwIfUnserializable(unserializableAction, 'action');\n }\n const nextState = reducer(state, action);\n if (checks.state()) {\n const unserializableState = getUnserializable(nextState);\n throwIfUnserializable(unserializableState, 'state');\n }\n return nextState;\n };\n}\nfunction getUnserializable(target, path = []) {\n // Guard against undefined and null, e.g. a reducer that returns undefined\n if ((isUndefined(target) || isNull(target)) && path.length === 0) {\n return {\n path: ['root'],\n value: target,\n };\n }\n const keys = Object.keys(target);\n return keys.reduce((result, key) => {\n if (result) {\n return result;\n }\n const value = target[key];\n // Ignore Ivy components\n if (isComponent(value)) {\n return result;\n }\n if (isUndefined(value) ||\n isNull(value) ||\n isNumber(value) ||\n isBoolean(value) ||\n isString(value) ||\n isArray(value)) {\n return false;\n }\n if (isPlainObject(value)) {\n return getUnserializable(value, [...path, key]);\n }\n return {\n path: [...path, key],\n value,\n };\n }, false);\n}\nfunction throwIfUnserializable(unserializable, context) {\n if (unserializable === false) {\n return;\n }\n const unserializablePath = unserializable.path.join('.');\n const error = new Error(`Detected unserializable ${context} at \"${unserializablePath}\". ${RUNTIME_CHECK_URL}#strict${context}serializability`);\n error.value = unserializable.value;\n error.unserializablePath = unserializablePath;\n throw error;\n}\n\nfunction inNgZoneAssertMetaReducer(reducer, checks) {\n return function (state, action) {\n if (checks.action(action) && !i0.NgZone.isInAngularZone()) {\n throw new Error(`Action '${action.type}' running outside NgZone. ${RUNTIME_CHECK_URL}#strictactionwithinngzone`);\n }\n return reducer(state, action);\n };\n}\n\nfunction createActiveRuntimeChecks(runtimeChecks) {\n if (isDevMode()) {\n return {\n strictStateSerializability: false,\n strictActionSerializability: false,\n strictStateImmutability: true,\n strictActionImmutability: true,\n strictActionWithinNgZone: false,\n strictActionTypeUniqueness: false,\n ...runtimeChecks,\n };\n }\n return {\n strictStateSerializability: false,\n strictActionSerializability: false,\n strictStateImmutability: false,\n strictActionImmutability: false,\n strictActionWithinNgZone: false,\n strictActionTypeUniqueness: false,\n };\n}\nfunction createSerializationCheckMetaReducer({ strictActionSerializability, strictStateSerializability, }) {\n return (reducer) => strictActionSerializability || strictStateSerializability\n ? serializationCheckMetaReducer(reducer, {\n action: (action) => strictActionSerializability && !ignoreNgrxAction(action),\n state: () => strictStateSerializability,\n })\n : reducer;\n}\nfunction createImmutabilityCheckMetaReducer({ strictActionImmutability, strictStateImmutability, }) {\n return (reducer) => strictActionImmutability || strictStateImmutability\n ? immutabilityCheckMetaReducer(reducer, {\n action: (action) => strictActionImmutability && !ignoreNgrxAction(action),\n state: () => strictStateImmutability,\n })\n : reducer;\n}\nfunction ignoreNgrxAction(action) {\n return action.type.startsWith('@ngrx');\n}\nfunction createInNgZoneCheckMetaReducer({ strictActionWithinNgZone, }) {\n return (reducer) => strictActionWithinNgZone\n ? inNgZoneAssertMetaReducer(reducer, {\n action: (action) => strictActionWithinNgZone && !ignoreNgrxAction(action),\n })\n : reducer;\n}\nfunction provideRuntimeChecks(runtimeChecks) {\n return [\n {\n provide: _USER_RUNTIME_CHECKS,\n useValue: runtimeChecks,\n },\n {\n provide: USER_RUNTIME_CHECKS,\n useFactory: _runtimeChecksFactory,\n deps: [_USER_RUNTIME_CHECKS],\n },\n {\n provide: ACTIVE_RUNTIME_CHECKS,\n deps: [USER_RUNTIME_CHECKS],\n useFactory: createActiveRuntimeChecks,\n },\n {\n provide: META_REDUCERS,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: createImmutabilityCheckMetaReducer,\n },\n {\n provide: META_REDUCERS,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: createSerializationCheckMetaReducer,\n },\n {\n provide: META_REDUCERS,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: createInNgZoneCheckMetaReducer,\n },\n ];\n}\nfunction checkForActionTypeUniqueness() {\n return [\n {\n provide: _ACTION_TYPE_UNIQUENESS_CHECK,\n multi: true,\n deps: [ACTIVE_RUNTIME_CHECKS],\n useFactory: _actionTypeUniquenessCheck,\n },\n ];\n}\nfunction _runtimeChecksFactory(runtimeChecks) {\n return runtimeChecks;\n}\nfunction _actionTypeUniquenessCheck(config) {\n if (!config.strictActionTypeUniqueness) {\n return;\n }\n const duplicates = Object.entries(REGISTERED_ACTION_TYPES)\n .filter(([, registrations]) => registrations > 1)\n .map(([type]) => type);\n if (duplicates.length) {\n throw new Error(`Action types are registered more than once, ${duplicates\n .map((type) => `\"${type}\"`)\n .join(', ')}. ${RUNTIME_CHECK_URL}#strictactiontypeuniqueness`);\n }\n}\n\n/**\n * Provides additional slices of state in the Store.\n * These providers cannot be used at the component level.\n *\n * @usageNotes\n *\n * ### Providing Store Features\n *\n * ```ts\n * const booksRoutes: Route[] = [\n * {\n * path: '',\n * providers: [provideState('books', booksReducer)],\n * children: [\n * { path: '', component: BookListComponent },\n * { path: ':id', component: BookDetailsComponent },\n * ],\n * },\n * ];\n * ```\n */\nfunction provideState(featureNameOrSlice, reducers, config = {}) {\n return makeEnvironmentProviders([\n ..._provideState(featureNameOrSlice, reducers, config),\n ENVIRONMENT_STATE_PROVIDER,\n ]);\n}\nfunction _provideStore(reducers = {}, config = {}) {\n return [\n {\n provide: _ROOT_STORE_GUARD,\n useFactory: _provideForRootGuard,\n },\n { provide: _INITIAL_STATE, useValue: config.initialState },\n {\n provide: INITIAL_STATE,\n useFactory: _initialStateFactory,\n deps: [_INITIAL_STATE],\n },\n { provide: _INITIAL_REDUCERS, useValue: reducers },\n {\n provide: _STORE_REDUCERS,\n useExisting: reducers instanceof InjectionToken ? reducers : _INITIAL_REDUCERS,\n },\n {\n provide: INITIAL_REDUCERS,\n deps: [_INITIAL_REDUCERS, [new Inject(_STORE_REDUCERS)]],\n useFactory: _createStoreReducers,\n },\n {\n provide: USER_PROVIDED_META_REDUCERS,\n useValue: config.metaReducers ? config.metaReducers : [],\n },\n {\n provide: _RESOLVED_META_REDUCERS,\n deps: [META_REDUCERS, USER_PROVIDED_META_REDUCERS],\n useFactory: _concatMetaReducers,\n },\n {\n provide: _REDUCER_FACTORY,\n useValue: config.reducerFactory ? config.reducerFactory : combineReducers,\n },\n {\n provide: REDUCER_FACTORY,\n deps: [_REDUCER_FACTORY, _RESOLVED_META_REDUCERS],\n useFactory: createReducerFactory,\n },\n ACTIONS_SUBJECT_PROVIDERS,\n REDUCER_MANAGER_PROVIDERS,\n SCANNED_ACTIONS_SUBJECT_PROVIDERS,\n STATE_PROVIDERS,\n STORE_PROVIDERS,\n provideRuntimeChecks(config.runtimeChecks),\n checkForActionTypeUniqueness(),\n ];\n}\nfunction rootStoreProviderFactory() {\n inject(ActionsSubject);\n inject(ReducerObservable);\n inject(ScannedActionsSubject);\n inject(Store);\n inject(_ROOT_STORE_GUARD, { optional: true });\n inject(_ACTION_TYPE_UNIQUENESS_CHECK, { optional: true });\n}\n/**\n * Environment Initializer used in the root\n * providers to initialize the Store\n */\nconst ENVIRONMENT_STORE_PROVIDER = [\n { provide: ROOT_STORE_PROVIDER, useFactory: rootStoreProviderFactory },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => inject(ROOT_STORE_PROVIDER);\n },\n },\n];\n/**\n * Provides the global Store providers and initializes\n * the Store.\n * These providers cannot be used at the component level.\n *\n * @usageNotes\n *\n * ### Providing the Global Store\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideStore()],\n * });\n * ```\n */\nfunction provideStore(reducers, config) {\n return makeEnvironmentProviders([\n ..._provideStore(reducers, config),\n ENVIRONMENT_STORE_PROVIDER,\n ]);\n}\nfunction featureStateProviderFactory() {\n inject(ROOT_STORE_PROVIDER);\n const features = inject(_STORE_FEATURES);\n const featureReducers = inject(FEATURE_REDUCERS);\n const reducerManager = inject(ReducerManager);\n inject(_ACTION_TYPE_UNIQUENESS_CHECK, { optional: true });\n const feats = features.map((feature, index) => {\n const featureReducerCollection = featureReducers.shift();\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const reducers = featureReducerCollection /*TODO(#823)*/[index];\n return {\n ...feature,\n reducers,\n initialState: _initialStateFactory(feature.initialState),\n };\n });\n reducerManager.addFeatures(feats);\n}\n/**\n * Environment Initializer used in the feature\n * providers to register state features\n */\nconst ENVIRONMENT_STATE_PROVIDER = [\n {\n provide: FEATURE_STATE_PROVIDER,\n useFactory: featureStateProviderFactory,\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => inject(FEATURE_STATE_PROVIDER);\n },\n },\n];\nfunction _provideState(featureNameOrSlice, reducers, config = {}) {\n return [\n {\n provide: _FEATURE_CONFIGS,\n multi: true,\n useValue: featureNameOrSlice instanceof Object ? {} : config,\n },\n {\n provide: STORE_FEATURES,\n multi: true,\n useValue: {\n key: featureNameOrSlice instanceof Object\n ? featureNameOrSlice.name\n : featureNameOrSlice,\n reducerFactory: !(config instanceof InjectionToken) && config.reducerFactory\n ? config.reducerFactory\n : combineReducers,\n metaReducers: !(config instanceof InjectionToken) && config.metaReducers\n ? config.metaReducers\n : [],\n initialState: !(config instanceof InjectionToken) && config.initialState\n ? config.initialState\n : undefined,\n },\n },\n {\n provide: _STORE_FEATURES,\n deps: [_FEATURE_CONFIGS, STORE_FEATURES],\n useFactory: _createFeatureStore,\n },\n {\n provide: _FEATURE_REDUCERS,\n multi: true,\n useValue: featureNameOrSlice instanceof Object\n ? featureNameOrSlice.reducer\n : reducers,\n },\n {\n provide: _FEATURE_REDUCERS_TOKEN,\n multi: true,\n useExisting: reducers instanceof InjectionToken ? reducers : _FEATURE_REDUCERS,\n },\n {\n provide: FEATURE_REDUCERS,\n multi: true,\n deps: [_FEATURE_REDUCERS, [new Inject(_FEATURE_REDUCERS_TOKEN)]],\n useFactory: _createFeatureReducers,\n },\n checkForActionTypeUniqueness(),\n ];\n}\n\nclass StoreRootModule {\n constructor(actions$, reducer$, scannedActions$, store, guard, actionCheck) { }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRootModule, deps: [{ token: ActionsSubject }, { token: ReducerObservable }, { token: ScannedActionsSubject }, { token: Store }, { token: _ROOT_STORE_GUARD, optional: true }, { token: _ACTION_TYPE_UNIQUENESS_CHECK, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRootModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRootModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRootModule, decorators: [{\n type: NgModule,\n args: [{}]\n }], ctorParameters: () => [{ type: ActionsSubject }, { type: ReducerObservable }, { type: ScannedActionsSubject }, { type: Store }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [_ROOT_STORE_GUARD]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [_ACTION_TYPE_UNIQUENESS_CHECK]\n }] }] });\nclass StoreFeatureModule {\n constructor(features, featureReducers, reducerManager, root, actionCheck) {\n this.features = features;\n this.featureReducers = featureReducers;\n this.reducerManager = reducerManager;\n const feats = features.map((feature, index) => {\n const featureReducerCollection = featureReducers.shift();\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const reducers = featureReducerCollection /*TODO(#823)*/[index];\n return {\n ...feature,\n reducers,\n initialState: _initialStateFactory(feature.initialState),\n };\n });\n reducerManager.addFeatures(feats);\n }\n // eslint-disable-next-line @angular-eslint/contextual-lifecycle\n ngOnDestroy() {\n this.reducerManager.removeFeatures(this.features);\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreFeatureModule, deps: [{ token: _STORE_FEATURES }, { token: FEATURE_REDUCERS }, { token: ReducerManager }, { token: StoreRootModule }, { token: _ACTION_TYPE_UNIQUENESS_CHECK, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreFeatureModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreFeatureModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreFeatureModule, decorators: [{\n type: NgModule,\n args: [{}]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [_STORE_FEATURES]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [FEATURE_REDUCERS]\n }] }, { type: ReducerManager }, { type: StoreRootModule }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [_ACTION_TYPE_UNIQUENESS_CHECK]\n }] }] });\nclass StoreModule {\n static forRoot(reducers, config) {\n return {\n ngModule: StoreRootModule,\n providers: [..._provideStore(reducers, config)],\n };\n }\n static forFeature(featureNameOrSlice, reducers, config = {}) {\n return {\n ngModule: StoreFeatureModule,\n providers: [..._provideState(featureNameOrSlice, reducers, config)],\n };\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreModule, decorators: [{\n type: NgModule,\n args: [{}]\n }] });\n\n/**\n * @description\n * Associates actions with a given state change function.\n * A state change function must be provided as the last parameter.\n *\n * @param args `ActionCreator`'s followed by a state change function.\n *\n * @returns an association of action types with a state change function.\n *\n * @usageNotes\n * ```ts\n * on(AuthApiActions.loginSuccess, (state, { user }) => ({ ...state, user }))\n * ```\n */\nfunction on(...args) {\n const reducer = args.pop();\n const types = args.map((creator) => creator.type);\n return { reducer, types };\n}\n/**\n * @description\n * Creates a reducer function to handle state transitions.\n *\n * Reducer creators reduce the explicitness of reducer functions with switch statements.\n *\n * @param initialState Provides a state value if the current state is `undefined`, as it is initially.\n * @param ons Associations between actions and state changes.\n * @returns A reducer function.\n *\n * @usageNotes\n *\n * - Must be used with `ActionCreator`'s (returned by `createAction`). Cannot be used with class-based action creators.\n * - The returned `ActionReducer` does not require being wrapped with another function.\n *\n * **Declaring a reducer creator**\n *\n * ```ts\n * export const reducer = createReducer(\n * initialState,\n * on(\n * featureActions.actionOne,\n * featureActions.actionTwo,\n * (state, { updatedValue }) => ({ ...state, prop: updatedValue })\n * ),\n * on(featureActions.actionThree, () => initialState);\n * );\n * ```\n */\nfunction createReducer(initialState, ...ons) {\n const map = new Map();\n for (const on of ons) {\n for (const type of on.types) {\n const existingReducer = map.get(type);\n if (existingReducer) {\n const newReducer = (state, action) => on.reducer(existingReducer(state, action), action);\n map.set(type, newReducer);\n }\n else {\n map.set(type, on.reducer);\n }\n }\n }\n return function (state = initialState, action) {\n const reducer = map.get(action.type);\n return reducer ? reducer(state, action) : state;\n };\n}\n\n/**\n * DO NOT EDIT\n *\n * This file is automatically generated at build\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ACTIVE_RUNTIME_CHECKS, ActionsSubject, FEATURE_REDUCERS, FEATURE_STATE_PROVIDER, INIT, INITIAL_REDUCERS, INITIAL_STATE, META_REDUCERS, REDUCER_FACTORY, ROOT_STORE_PROVIDER, ReducerManager, ReducerManagerDispatcher, ReducerObservable, STORE_FEATURES, ScannedActionsSubject, State, StateObservable, Store, StoreFeatureModule, StoreModule, StoreRootModule, UPDATE, USER_PROVIDED_META_REDUCERS, USER_RUNTIME_CHECKS, combineReducers, compose, createAction, createActionGroup, createFeature, createFeatureSelector, createReducer, createReducerFactory, createSelector, createSelectorFactory, defaultMemoize, defaultStateFn, emptyProps, isNgrxMockEnvironment, on, props, provideState, provideStore, reduceState, resultMemoize, select, setNgrxMockEnvironment, union };\n","import { map } from './map';\nexport function pluck(...properties) {\n const length = properties.length;\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n return (source) => map(plucker(properties, length))(source);\n}\nfunction plucker(props, length) {\n const mapper = (x) => {\n let currentProp = x;\n for (let i = 0; i < length; i++) {\n const p = currentProp != null ? currentProp[props[i]] : undefined;\n if (p !== void 0) {\n currentProp = p;\n }\n else {\n return undefined;\n }\n }\n return currentProp;\n };\n return mapper;\n}\n","import { Subscriber } from '../Subscriber';\nexport function ignoreElements() {\n return function ignoreElementsOperatorFunction(source) {\n return source.lift(new IgnoreElementsOperator());\n };\n}\nclass IgnoreElementsOperator {\n call(subscriber, source) {\n return source.subscribe(new IgnoreElementsSubscriber(subscriber));\n }\n}\nclass IgnoreElementsSubscriber extends Subscriber {\n _next(unused) {\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function materialize() {\n return function materializeOperatorFunction(source) {\n return source.lift(new MaterializeOperator());\n };\n}\nclass MaterializeOperator {\n call(subscriber, source) {\n return source.subscribe(new MaterializeSubscriber(subscriber));\n }\n}\nclass MaterializeSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n }\n _next(value) {\n this.destination.next(Notification.createNext(value));\n }\n _error(err) {\n const destination = this.destination;\n destination.next(Notification.createError(err));\n destination.complete();\n }\n _complete() {\n const destination = this.destination;\n destination.next(Notification.createComplete());\n destination.complete();\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nexport function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {\n return (source) => source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n}\nclass GroupByOperator {\n constructor(keySelector, elementSelector, durationSelector, subjectSelector) {\n this.keySelector = keySelector;\n this.elementSelector = elementSelector;\n this.durationSelector = durationSelector;\n this.subjectSelector = subjectSelector;\n }\n call(subscriber, source) {\n return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));\n }\n}\nclass GroupBySubscriber extends Subscriber {\n constructor(destination, keySelector, elementSelector, durationSelector, subjectSelector) {\n super(destination);\n this.keySelector = keySelector;\n this.elementSelector = elementSelector;\n this.durationSelector = durationSelector;\n this.subjectSelector = subjectSelector;\n this.groups = null;\n this.attemptedToUnsubscribe = false;\n this.count = 0;\n }\n _next(value) {\n let key;\n try {\n key = this.keySelector(value);\n }\n catch (err) {\n this.error(err);\n return;\n }\n this._group(value, key);\n }\n _group(value, key) {\n let groups = this.groups;\n if (!groups) {\n groups = this.groups = new Map();\n }\n let group = groups.get(key);\n let element;\n if (this.elementSelector) {\n try {\n element = this.elementSelector(value);\n }\n catch (err) {\n this.error(err);\n }\n }\n else {\n element = value;\n }\n if (!group) {\n group = (this.subjectSelector ? this.subjectSelector() : new Subject());\n groups.set(key, group);\n const groupedObservable = new GroupedObservable(key, group, this);\n this.destination.next(groupedObservable);\n if (this.durationSelector) {\n let duration;\n try {\n duration = this.durationSelector(new GroupedObservable(key, group));\n }\n catch (err) {\n this.error(err);\n return;\n }\n this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n }\n }\n if (!group.closed) {\n group.next(element);\n }\n }\n _error(err) {\n const groups = this.groups;\n if (groups) {\n groups.forEach((group, key) => {\n group.error(err);\n });\n groups.clear();\n }\n this.destination.error(err);\n }\n _complete() {\n const groups = this.groups;\n if (groups) {\n groups.forEach((group, key) => {\n group.complete();\n });\n groups.clear();\n }\n this.destination.complete();\n }\n removeGroup(key) {\n this.groups.delete(key);\n }\n unsubscribe() {\n if (!this.closed) {\n this.attemptedToUnsubscribe = true;\n if (this.count === 0) {\n super.unsubscribe();\n }\n }\n }\n}\nclass GroupDurationSubscriber extends Subscriber {\n constructor(key, group, parent) {\n super(group);\n this.key = key;\n this.group = group;\n this.parent = parent;\n }\n _next(value) {\n this.complete();\n }\n _unsubscribe() {\n const { parent, key } = this;\n this.key = this.parent = null;\n if (parent) {\n parent.removeGroup(key);\n }\n }\n}\nexport class GroupedObservable extends Observable {\n constructor(key, groupSubject, refCountSubscription) {\n super();\n this.key = key;\n this.groupSubject = groupSubject;\n this.refCountSubscription = refCountSubscription;\n }\n _subscribe(subscriber) {\n const subscription = new Subscription();\n const { refCountSubscription, groupSubject } = this;\n if (refCountSubscription && !refCountSubscription.closed) {\n subscription.add(new InnerRefCountSubscription(refCountSubscription));\n }\n subscription.add(groupSubject.subscribe(subscriber));\n return subscription;\n }\n}\nclass InnerRefCountSubscription extends Subscription {\n constructor(parent) {\n super();\n this.parent = parent;\n parent.count++;\n }\n unsubscribe() {\n const parent = this.parent;\n if (!parent.closed && !this.closed) {\n super.unsubscribe();\n parent.count -= 1;\n if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n parent.unsubscribe();\n }\n }\n }\n}\n","import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function exhaustMap(project, resultSelector) {\n if (resultSelector) {\n return (source) => source.pipe(exhaustMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii)))));\n }\n return (source) => source.lift(new ExhaustMapOperator(project));\n}\nclass ExhaustMapOperator {\n constructor(project) {\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));\n }\n}\nclass ExhaustMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project) {\n super(destination);\n this.project = project;\n this.hasSubscription = false;\n this.hasCompleted = false;\n this.index = 0;\n }\n _next(value) {\n if (!this.hasSubscription) {\n this.tryNext(value);\n }\n }\n tryNext(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.hasSubscription = true;\n this._innerSub(result);\n }\n _innerSub(result) {\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n const innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n }\n _complete() {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n this.unsubscribe();\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyError(err) {\n this.destination.error(err);\n }\n notifyComplete() {\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function dematerialize() {\n return function dematerializeOperatorFunction(source) {\n return source.lift(new DeMaterializeOperator());\n };\n}\nclass DeMaterializeOperator {\n call(subscriber, source) {\n return source.subscribe(new DeMaterializeSubscriber(subscriber));\n }\n}\nclass DeMaterializeSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n }\n _next(value) {\n value.observe(this.destination);\n }\n}\n","import * as operators from '@ngrx/operators';\nimport * as i1 from 'rxjs';\nimport { merge, Observable, Subject, defer } from 'rxjs';\nimport { ignoreElements, materialize, map, catchError, filter, groupBy, mergeMap, exhaustMap, dematerialize, take, concatMap, finalize } from 'rxjs/operators';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, Inject, NgModule, Optional, inject, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER } from '@angular/core';\nimport * as i3 from '@ngrx/store';\nimport { ScannedActionsSubject, createAction, ROOT_STORE_PROVIDER, FEATURE_STATE_PROVIDER, Store } from '@ngrx/store';\n\nconst DEFAULT_EFFECT_CONFIG = {\n dispatch: true,\n functional: false,\n useEffectsErrorHandler: true,\n};\nconst CREATE_EFFECT_METADATA_KEY = '__@ngrx/effects_create__';\n\n/**\n * @description\n *\n * Creates an effect from a source and an `EffectConfig`.\n *\n * @param source A function which returns an observable or observable factory.\n * @param config A `EffectConfig` to configure the effect. By default,\n * `dispatch` is true, `functional` is false, and `useEffectsErrorHandler` is\n * true.\n * @returns If `EffectConfig`#`functional` is true, returns the source function.\n * Else, returns the source function result. When `EffectConfig`#`dispatch` is\n * true, the source function result needs to be `Observable<Action>`.\n *\n * @usageNotes\n *\n * ### Class Effects\n *\n * ```ts\n * @Injectable()\n * export class FeatureEffects {\n * // mapping to a different action\n * readonly effect1$ = createEffect(\n * () => this.actions$.pipe(\n * ofType(FeatureActions.actionOne),\n * map(() => FeatureActions.actionTwo())\n * )\n * );\n *\n * // non-dispatching effect\n * readonly effect2$ = createEffect(\n * () => this.actions$.pipe(\n * ofType(FeatureActions.actionTwo),\n * tap(() => console.log('Action Two Dispatched'))\n * ),\n * { dispatch: false } // FeatureActions.actionTwo is not dispatched\n * );\n *\n * constructor(private readonly actions$: Actions) {}\n * }\n * ```\n *\n * ### Functional Effects\n *\n * ```ts\n * // mapping to a different action\n * export const loadUsers = createEffect(\n * (actions$ = inject(Actions), usersService = inject(UsersService)) => {\n * return actions$.pipe(\n * ofType(UsersPageActions.opened),\n * exhaustMap(() => {\n * return usersService.getAll().pipe(\n * map((users) => UsersApiActions.usersLoadedSuccess({ users })),\n * catchError((error) =>\n * of(UsersApiActions.usersLoadedFailure({ error }))\n * )\n * );\n * })\n * );\n * },\n * { functional: true }\n * );\n *\n * // non-dispatching functional effect\n * export const logDispatchedActions = createEffect(\n * () => inject(Actions).pipe(tap(console.log)),\n * { functional: true, dispatch: false }\n * );\n * ```\n */\nfunction createEffect(source, config = {}) {\n const effect = config.functional ? source : source();\n const value = {\n ...DEFAULT_EFFECT_CONFIG,\n ...config, // Overrides any defaults if values are provided\n };\n Object.defineProperty(effect, CREATE_EFFECT_METADATA_KEY, {\n value,\n });\n return effect;\n}\nfunction getCreateEffectMetadata(instance) {\n const propertyNames = Object.getOwnPropertyNames(instance);\n const metadata = propertyNames\n .filter((propertyName) => {\n if (instance[propertyName] &&\n instance[propertyName].hasOwnProperty(CREATE_EFFECT_METADATA_KEY)) {\n // If the property type has overridden `hasOwnProperty` we need to ensure\n // that the metadata is valid (containing a `dispatch` property)\n // https://github.com/ngrx/platform/issues/2975\n const property = instance[propertyName];\n return property[CREATE_EFFECT_METADATA_KEY].hasOwnProperty('dispatch');\n }\n return false;\n })\n .map((propertyName) => {\n const metaData = instance[propertyName][CREATE_EFFECT_METADATA_KEY];\n return {\n propertyName,\n ...metaData,\n };\n });\n return metadata;\n}\n\nfunction getEffectsMetadata(instance) {\n return getSourceMetadata(instance).reduce((acc, { propertyName, dispatch, useEffectsErrorHandler }) => {\n acc[propertyName] = { dispatch, useEffectsErrorHandler };\n return acc;\n }, {});\n}\nfunction getSourceMetadata(instance) {\n return getCreateEffectMetadata(instance);\n}\n\nfunction getSourceForInstance(instance) {\n return Object.getPrototypeOf(instance);\n}\nfunction isClassInstance(obj) {\n return (!!obj.constructor &&\n obj.constructor.name !== 'Object' &&\n obj.constructor.name !== 'Function');\n}\nfunction isClass(classOrRecord) {\n return typeof classOrRecord === 'function';\n}\nfunction getClasses(classesAndRecords) {\n return classesAndRecords.filter(isClass);\n}\nfunction isToken(tokenOrRecord) {\n return tokenOrRecord instanceof InjectionToken || isClass(tokenOrRecord);\n}\n\nfunction mergeEffects(sourceInstance, globalErrorHandler, effectsErrorHandler) {\n const source = getSourceForInstance(sourceInstance);\n const isClassBasedEffect = !!source && source.constructor.name !== 'Object';\n const sourceName = isClassBasedEffect ? source.constructor.name : null;\n const observables$ = getSourceMetadata(sourceInstance).map(({ propertyName, dispatch, useEffectsErrorHandler, }) => {\n const observable$ = typeof sourceInstance[propertyName] === 'function'\n ? sourceInstance[propertyName]()\n : sourceInstance[propertyName];\n const effectAction$ = useEffectsErrorHandler\n ? effectsErrorHandler(observable$, globalErrorHandler)\n : observable$;\n if (dispatch === false) {\n return effectAction$.pipe(ignoreElements());\n }\n const materialized$ = effectAction$.pipe(materialize());\n return materialized$.pipe(map((notification) => ({\n effect: sourceInstance[propertyName],\n notification,\n propertyName,\n sourceName,\n sourceInstance,\n })));\n });\n return merge(...observables$);\n}\n\nconst MAX_NUMBER_OF_RETRY_ATTEMPTS = 10;\nfunction defaultEffectsErrorHandler(observable$, errorHandler, retryAttemptLeft = MAX_NUMBER_OF_RETRY_ATTEMPTS) {\n return observable$.pipe(catchError((error) => {\n if (errorHandler)\n errorHandler.handleError(error);\n if (retryAttemptLeft <= 1) {\n return observable$; // last attempt\n }\n // Return observable that produces this particular effect\n return defaultEffectsErrorHandler(observable$, errorHandler, retryAttemptLeft - 1);\n }));\n}\n\nclass Actions extends Observable {\n constructor(source) {\n super();\n if (source) {\n this.source = source;\n }\n }\n lift(operator) {\n const observable = new Actions();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: Actions, deps: [{ token: ScannedActionsSubject }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: Actions, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: Actions, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i1.Observable, decorators: [{\n type: Inject,\n args: [ScannedActionsSubject]\n }] }] });\n/**\n * `ofType` filters an Observable of `Actions` into an Observable of the actions\n * whose type strings are passed to it.\n *\n * For example, if `actions` has type `Actions<AdditionAction|SubstractionAction>`, and\n * the type of the `Addition` action is `add`, then\n * `actions.pipe(ofType('add'))` returns an `Observable<AdditionAction>`.\n *\n * Properly typing this function is hard and requires some advanced TS tricks\n * below.\n *\n * Type narrowing automatically works, as long as your `actions` object\n * starts with a `Actions<SomeUnionOfActions>` instead of generic `Actions`.\n *\n * For backwards compatibility, when one passes a single type argument\n * `ofType<T>('something')` the result is an `Observable<T>`. Note, that `T`\n * completely overrides any possible inference from 'something'.\n *\n * Unfortunately, for unknown 'actions: Actions' these types will produce\n * 'Observable<never>'. In such cases one has to manually set the generic type\n * like `actions.ofType<AdditionAction>('add')`.\n *\n * @usageNotes\n *\n * Filter the Actions stream on the \"customers page loaded\" action\n *\n * ```ts\n * import { ofType } from '@ngrx/effects';\n * import * fromCustomers from '../customers';\n *\n * this.actions$.pipe(\n * ofType(fromCustomers.pageLoaded)\n * )\n * ```\n */\nfunction ofType(...allowedTypes) {\n return filter((action) => allowedTypes.some((typeOrActionCreator) => {\n if (typeof typeOrActionCreator === 'string') {\n // Comparing the string to type\n return typeOrActionCreator === action.type;\n }\n // We are filtering by ActionCreator\n return typeOrActionCreator.type === action.type;\n }));\n}\n\nconst _ROOT_EFFECTS_GUARD = new InjectionToken('@ngrx/effects Internal Root Guard');\nconst USER_PROVIDED_EFFECTS = new InjectionToken('@ngrx/effects User Provided Effects');\nconst _ROOT_EFFECTS = new InjectionToken('@ngrx/effects Internal Root Effects');\nconst _ROOT_EFFECTS_INSTANCES = new InjectionToken('@ngrx/effects Internal Root Effects Instances');\nconst _FEATURE_EFFECTS = new InjectionToken('@ngrx/effects Internal Feature Effects');\nconst _FEATURE_EFFECTS_INSTANCE_GROUPS = new InjectionToken('@ngrx/effects Internal Feature Effects Instance Groups');\nconst EFFECTS_ERROR_HANDLER = new InjectionToken('@ngrx/effects Effects Error Handler', { providedIn: 'root', factory: () => defaultEffectsErrorHandler });\n\nconst ROOT_EFFECTS_INIT = '@ngrx/effects/init';\nconst rootEffectsInit = createAction(ROOT_EFFECTS_INIT);\n\nfunction reportInvalidActions(output, reporter) {\n if (output.notification.kind === 'N') {\n const action = output.notification.value;\n const isInvalidAction = !isAction(action);\n if (isInvalidAction) {\n reporter.handleError(new Error(`Effect ${getEffectName(output)} dispatched an invalid action: ${stringify(action)}`));\n }\n }\n}\nfunction isAction(action) {\n return (typeof action !== 'function' &&\n action &&\n action.type &&\n typeof action.type === 'string');\n}\nfunction getEffectName({ propertyName, sourceInstance, sourceName, }) {\n const isMethod = typeof sourceInstance[propertyName] === 'function';\n const isClassBasedEffect = !!sourceName;\n return isClassBasedEffect\n ? `\"${sourceName}.${String(propertyName)}${isMethod ? '()' : ''}\"`\n : `\"${String(propertyName)}()\"`;\n}\nfunction stringify(action) {\n try {\n return JSON.stringify(action);\n }\n catch {\n return action;\n }\n}\n\nconst onIdentifyEffectsKey = 'ngrxOnIdentifyEffects';\nfunction isOnIdentifyEffects(instance) {\n return isFunction(instance, onIdentifyEffectsKey);\n}\nconst onRunEffectsKey = 'ngrxOnRunEffects';\nfunction isOnRunEffects(instance) {\n return isFunction(instance, onRunEffectsKey);\n}\nconst onInitEffects = 'ngrxOnInitEffects';\nfunction isOnInitEffects(instance) {\n return isFunction(instance, onInitEffects);\n}\nfunction isFunction(instance, functionName) {\n return (instance &&\n functionName in instance &&\n typeof instance[functionName] === 'function');\n}\n\nclass EffectSources extends Subject {\n constructor(errorHandler, effectsErrorHandler) {\n super();\n this.errorHandler = errorHandler;\n this.effectsErrorHandler = effectsErrorHandler;\n }\n addEffects(effectSourceInstance) {\n this.next(effectSourceInstance);\n }\n /**\n * @internal\n */\n toActions() {\n return this.pipe(groupBy((effectsInstance) => isClassInstance(effectsInstance)\n ? getSourceForInstance(effectsInstance)\n : effectsInstance), mergeMap((source$) => {\n return source$.pipe(groupBy(effectsInstance));\n }), mergeMap((source$) => {\n const effect$ = source$.pipe(exhaustMap((sourceInstance) => {\n return resolveEffectSource(this.errorHandler, this.effectsErrorHandler)(sourceInstance);\n }), map((output) => {\n reportInvalidActions(output, this.errorHandler);\n return output.notification;\n }), filter((notification) => notification.kind === 'N' && notification.value != null), dematerialize());\n // start the stream with an INIT action\n // do this only for the first Effect instance\n const init$ = source$.pipe(take(1), filter(isOnInitEffects), map((instance) => instance.ngrxOnInitEffects()));\n return merge(effect$, init$);\n }));\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectSources, deps: [{ token: i0.ErrorHandler }, { token: EFFECTS_ERROR_HANDLER }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectSources, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectSources, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i0.ErrorHandler }, { type: undefined, decorators: [{\n type: Inject,\n args: [EFFECTS_ERROR_HANDLER]\n }] }] });\nfunction effectsInstance(sourceInstance) {\n if (isOnIdentifyEffects(sourceInstance)) {\n return sourceInstance.ngrxOnIdentifyEffects();\n }\n return '';\n}\nfunction resolveEffectSource(errorHandler, effectsErrorHandler) {\n return (sourceInstance) => {\n const mergedEffects$ = mergeEffects(sourceInstance, errorHandler, effectsErrorHandler);\n if (isOnRunEffects(sourceInstance)) {\n return sourceInstance.ngrxOnRunEffects(mergedEffects$);\n }\n return mergedEffects$;\n };\n}\n\nclass EffectsRunner {\n get isStarted() {\n return !!this.effectsSubscription;\n }\n constructor(effectSources, store) {\n this.effectSources = effectSources;\n this.store = store;\n this.effectsSubscription = null;\n }\n start() {\n if (!this.effectsSubscription) {\n this.effectsSubscription = this.effectSources\n .toActions()\n .subscribe(this.store);\n }\n }\n ngOnDestroy() {\n if (this.effectsSubscription) {\n this.effectsSubscription.unsubscribe();\n this.effectsSubscription = null;\n }\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRunner, deps: [{ token: EffectSources }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRunner, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRunner, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: EffectSources }, { type: i3.Store }] });\n\nclass EffectsRootModule {\n constructor(sources, runner, store, rootEffectsInstances, storeRootModule, storeFeatureModule, guard) {\n this.sources = sources;\n runner.start();\n for (const effectsInstance of rootEffectsInstances) {\n sources.addEffects(effectsInstance);\n }\n store.dispatch({ type: ROOT_EFFECTS_INIT });\n }\n addEffects(effectsInstance) {\n this.sources.addEffects(effectsInstance);\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRootModule, deps: [{ token: EffectSources }, { token: EffectsRunner }, { token: i3.Store }, { token: _ROOT_EFFECTS_INSTANCES }, { token: i3.StoreRootModule, optional: true }, { token: i3.StoreFeatureModule, optional: true }, { token: _ROOT_EFFECTS_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRootModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRootModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsRootModule, decorators: [{\n type: NgModule,\n args: [{}]\n }], ctorParameters: () => [{ type: EffectSources }, { type: EffectsRunner }, { type: i3.Store }, { type: undefined, decorators: [{\n type: Inject,\n args: [_ROOT_EFFECTS_INSTANCES]\n }] }, { type: i3.StoreRootModule, decorators: [{\n type: Optional\n }] }, { type: i3.StoreFeatureModule, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [_ROOT_EFFECTS_GUARD]\n }] }] });\n\nclass EffectsFeatureModule {\n constructor(effectsRootModule, effectsInstanceGroups, storeRootModule, storeFeatureModule) {\n const effectsInstances = effectsInstanceGroups.flat();\n for (const effectsInstance of effectsInstances) {\n effectsRootModule.addEffects(effectsInstance);\n }\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsFeatureModule, deps: [{ token: EffectsRootModule }, { token: _FEATURE_EFFECTS_INSTANCE_GROUPS }, { token: i3.StoreRootModule, optional: true }, { token: i3.StoreFeatureModule, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsFeatureModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsFeatureModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsFeatureModule, decorators: [{\n type: NgModule,\n args: [{}]\n }], ctorParameters: () => [{ type: EffectsRootModule }, { type: undefined, decorators: [{\n type: Inject,\n args: [_FEATURE_EFFECTS_INSTANCE_GROUPS]\n }] }, { type: i3.StoreRootModule, decorators: [{\n type: Optional\n }] }, { type: i3.StoreFeatureModule, decorators: [{\n type: Optional\n }] }] });\n\nclass EffectsModule {\n static forFeature(...featureEffects) {\n const effects = featureEffects.flat();\n const effectsClasses = getClasses(effects);\n return {\n ngModule: EffectsFeatureModule,\n providers: [\n effectsClasses,\n {\n provide: _FEATURE_EFFECTS,\n multi: true,\n useValue: effects,\n },\n {\n provide: USER_PROVIDED_EFFECTS,\n multi: true,\n useValue: [],\n },\n {\n provide: _FEATURE_EFFECTS_INSTANCE_GROUPS,\n multi: true,\n useFactory: createEffectsInstances,\n deps: [_FEATURE_EFFECTS, USER_PROVIDED_EFFECTS],\n },\n ],\n };\n }\n static forRoot(...rootEffects) {\n const effects = rootEffects.flat();\n const effectsClasses = getClasses(effects);\n return {\n ngModule: EffectsRootModule,\n providers: [\n effectsClasses,\n {\n provide: _ROOT_EFFECTS,\n useValue: [effects],\n },\n {\n provide: _ROOT_EFFECTS_GUARD,\n useFactory: _provideForRootGuard,\n },\n {\n provide: USER_PROVIDED_EFFECTS,\n multi: true,\n useValue: [],\n },\n {\n provide: _ROOT_EFFECTS_INSTANCES,\n useFactory: createEffectsInstances,\n deps: [_ROOT_EFFECTS, USER_PROVIDED_EFFECTS],\n },\n ],\n };\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: EffectsModule, decorators: [{\n type: NgModule,\n args: [{}]\n }] });\nfunction createEffectsInstances(effectsGroups, userProvidedEffectsGroups) {\n const effects = [];\n for (const effectsGroup of effectsGroups) {\n effects.push(...effectsGroup);\n }\n for (const userProvidedEffectsGroup of userProvidedEffectsGroups) {\n effects.push(...userProvidedEffectsGroup);\n }\n return effects.map((effectsTokenOrRecord) => isToken(effectsTokenOrRecord)\n ? inject(effectsTokenOrRecord)\n : effectsTokenOrRecord);\n}\nfunction _provideForRootGuard() {\n const runner = inject(EffectsRunner, { optional: true, skipSelf: true });\n const rootEffects = inject(_ROOT_EFFECTS, { self: true });\n // check whether any effects are actually passed\n const hasEffects = !(rootEffects.length === 1 && rootEffects[0].length === 0);\n if (hasEffects && runner) {\n throw new TypeError(`EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.`);\n }\n return 'guarded';\n}\n\n/**\n * Wraps project fn with error handling making it safe to use in Effects.\n * Takes either a config with named properties that represent different possible\n * callbacks or project/error callbacks that are required.\n */\nfunction act(\n/** Allow to take either config object or project/error functions */\nconfigOrProject, errorFn) {\n const { project, error, complete, operator, unsubscribe } = typeof configOrProject === 'function'\n ? {\n project: configOrProject,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n error: errorFn,\n operator: concatMap,\n complete: undefined,\n unsubscribe: undefined,\n }\n : { ...configOrProject, operator: configOrProject.operator || concatMap };\n return (source) => defer(() => {\n const subject = new Subject();\n return merge(source.pipe(operator((input, index) => defer(() => {\n let completed = false;\n let errored = false;\n let projectedCount = 0;\n return project(input, index).pipe(materialize(), map((notification) => {\n switch (notification.kind) {\n case 'E':\n errored = true;\n return {\n kind: 'N',\n value: error(notification.error, input),\n };\n case 'C':\n completed = true;\n return complete\n ? {\n kind: 'N',\n value: complete(projectedCount, input),\n }\n : undefined;\n default:\n ++projectedCount;\n return notification;\n }\n }), filter((n) => n != null), dematerialize(), finalize(() => {\n if (!completed && !errored && unsubscribe) {\n subject.next(unsubscribe(projectedCount, input));\n }\n }));\n }))), subject);\n });\n}\n\n/**\n * @usageNotes\n *\n * ### Providing effects at the root level\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideEffects(RouterEffects)],\n * });\n * ```\n *\n * ### Providing effects at the feature level\n *\n * ```ts\n * const booksRoutes: Route[] = [\n * {\n * path: '',\n * providers: [provideEffects(BooksApiEffects)],\n * children: [\n * { path: '', component: BookListComponent },\n * { path: ':id', component: BookDetailsComponent },\n * ],\n * },\n * ];\n * ```\n */\nfunction provideEffects(...effects) {\n const effectsClassesAndRecords = effects.flat();\n const effectsClasses = getClasses(effectsClassesAndRecords);\n return makeEnvironmentProviders([\n effectsClasses,\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useValue: () => {\n inject(ROOT_STORE_PROVIDER);\n inject(FEATURE_STATE_PROVIDER, { optional: true });\n const effectsRunner = inject(EffectsRunner);\n const effectSources = inject(EffectSources);\n const shouldInitEffects = !effectsRunner.isStarted;\n if (shouldInitEffects) {\n effectsRunner.start();\n }\n for (const effectsClassOrRecord of effectsClassesAndRecords) {\n const effectsInstance = isClass(effectsClassOrRecord)\n ? inject(effectsClassOrRecord)\n : effectsClassOrRecord;\n effectSources.addEffects(effectsInstance);\n }\n if (shouldInitEffects) {\n const store = inject(Store);\n store.dispatch(rootEffectsInit());\n }\n },\n },\n ]);\n}\n\n/**\n * @deprecated Use `concatLatestFrom` from `@ngrx/operators` instead.\n */\nconst concatLatestFrom = operators.concatLatestFrom;\n\n/**\n * DO NOT EDIT\n *\n * This file is automatically generated at build\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Actions, EFFECTS_ERROR_HANDLER, EffectSources, EffectsFeatureModule, EffectsModule, EffectsRootModule, EffectsRunner, ROOT_EFFECTS_INIT, USER_PROVIDED_EFFECTS, act, concatLatestFrom, createEffect, defaultEffectsErrorHandler, getEffectsMetadata, mergeEffects, ofType, provideEffects, rootEffectsInit };\n","import { connectableObservableDescriptor } from '../observable/ConnectableObservable';\nexport function multicast(subjectOrSubjectFactory, selector) {\n return function multicastOperatorFunction(source) {\n let subjectFactory;\n if (typeof subjectOrSubjectFactory === 'function') {\n subjectFactory = subjectOrSubjectFactory;\n }\n else {\n subjectFactory = function subjectFactory() {\n return subjectOrSubjectFactory;\n };\n }\n if (typeof selector === 'function') {\n return source.lift(new MulticastOperator(subjectFactory, selector));\n }\n const connectable = Object.create(source, connectableObservableDescriptor);\n connectable.source = source;\n connectable.subjectFactory = subjectFactory;\n return connectable;\n };\n}\nexport class MulticastOperator {\n constructor(subjectFactory, selector) {\n this.subjectFactory = subjectFactory;\n this.selector = selector;\n }\n call(subscriber, source) {\n const { selector } = this;\n const subject = this.subjectFactory();\n const subscription = selector(subject).subscribe(subscriber);\n subscription.add(source.subscribe(subject));\n return subscription;\n }\n}\n","import { multicast } from './multicast';\nimport { refCount } from './refCount';\nimport { Subject } from '../Subject';\nfunction shareSubjectFactory() {\n return new Subject();\n}\nexport function share() {\n return (source) => refCount()(multicast(shareSubjectFactory)(source));\n}\n","const TimeoutErrorImpl = (() => {\n function TimeoutErrorImpl() {\n Error.call(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n return this;\n }\n TimeoutErrorImpl.prototype = Object.create(Error.prototype);\n return TimeoutErrorImpl;\n})();\nexport const TimeoutError = TimeoutErrorImpl;\n","import { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function timeoutWith(due, withObservable, scheduler = async) {\n return (source) => {\n let absoluteTimeout = isDate(due);\n let waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n };\n}\nclass TimeoutWithOperator {\n constructor(waitFor, absoluteTimeout, withObservable, scheduler) {\n this.waitFor = waitFor;\n this.absoluteTimeout = absoluteTimeout;\n this.withObservable = withObservable;\n this.scheduler = scheduler;\n }\n call(subscriber, source) {\n return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));\n }\n}\nclass TimeoutWithSubscriber extends SimpleOuterSubscriber {\n constructor(destination, absoluteTimeout, waitFor, withObservable, scheduler) {\n super(destination);\n this.absoluteTimeout = absoluteTimeout;\n this.waitFor = waitFor;\n this.withObservable = withObservable;\n this.scheduler = scheduler;\n this.scheduleTimeout();\n }\n static dispatchTimeout(subscriber) {\n const { withObservable } = subscriber;\n subscriber._unsubscribeAndRecycle();\n subscriber.add(innerSubscribe(withObservable, new SimpleInnerSubscriber(subscriber)));\n }\n scheduleTimeout() {\n const { action } = this;\n if (action) {\n this.action = action.schedule(this, this.waitFor);\n }\n else {\n this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));\n }\n }\n _next(value) {\n if (!this.absoluteTimeout) {\n this.scheduleTimeout();\n }\n super._next(value);\n }\n _unsubscribe() {\n this.action = undefined;\n this.scheduler = null;\n this.withObservable = null;\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function skip(count) {\n return (source) => source.lift(new SkipOperator(count));\n}\nclass SkipOperator {\n constructor(total) {\n this.total = total;\n }\n call(subscriber, source) {\n return source.subscribe(new SkipSubscriber(subscriber, this.total));\n }\n}\nclass SkipSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.count = 0;\n }\n _next(x) {\n if (++this.count > this.total) {\n this.destination.next(x);\n }\n }\n}\n","import * as i0 from '@angular/core';\nimport { InjectionToken, inject, NgZone, Injectable, Inject, makeEnvironmentProviders, NgModule } from '@angular/core';\nimport * as i2 from '@ngrx/store';\nimport { ActionsSubject, UPDATE, INIT, INITIAL_STATE, StateObservable, ReducerManagerDispatcher } from '@ngrx/store';\nimport { EMPTY, Observable, of, merge, queueScheduler, ReplaySubject } from 'rxjs';\nimport { share, filter, map, concatMap, timeout, debounceTime, catchError, take, takeUntil, switchMap, skip, observeOn, withLatestFrom, scan } from 'rxjs/operators';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\nconst PERFORM_ACTION = 'PERFORM_ACTION';\nconst REFRESH = 'REFRESH';\nconst RESET = 'RESET';\nconst ROLLBACK = 'ROLLBACK';\nconst COMMIT = 'COMMIT';\nconst SWEEP = 'SWEEP';\nconst TOGGLE_ACTION = 'TOGGLE_ACTION';\nconst SET_ACTIONS_ACTIVE = 'SET_ACTIONS_ACTIVE';\nconst JUMP_TO_STATE = 'JUMP_TO_STATE';\nconst JUMP_TO_ACTION = 'JUMP_TO_ACTION';\nconst IMPORT_STATE = 'IMPORT_STATE';\nconst LOCK_CHANGES = 'LOCK_CHANGES';\nconst PAUSE_RECORDING = 'PAUSE_RECORDING';\nclass PerformAction {\n constructor(action, timestamp) {\n this.action = action;\n this.timestamp = timestamp;\n this.type = PERFORM_ACTION;\n if (typeof action.type === 'undefined') {\n throw new Error('Actions may not have an undefined \"type\" property. ' +\n 'Have you misspelled a constant?');\n }\n }\n}\nclass Refresh {\n constructor() {\n this.type = REFRESH;\n }\n}\nclass Reset {\n constructor(timestamp) {\n this.timestamp = timestamp;\n this.type = RESET;\n }\n}\nclass Rollback {\n constructor(timestamp) {\n this.timestamp = timestamp;\n this.type = ROLLBACK;\n }\n}\nclass Commit {\n constructor(timestamp) {\n this.timestamp = timestamp;\n this.type = COMMIT;\n }\n}\nclass Sweep {\n constructor() {\n this.type = SWEEP;\n }\n}\nclass ToggleAction {\n constructor(id) {\n this.id = id;\n this.type = TOGGLE_ACTION;\n }\n}\nclass SetActionsActive {\n constructor(start, end, active = true) {\n this.start = start;\n this.end = end;\n this.active = active;\n this.type = SET_ACTIONS_ACTIVE;\n }\n}\nclass JumpToState {\n constructor(index) {\n this.index = index;\n this.type = JUMP_TO_STATE;\n }\n}\nclass JumpToAction {\n constructor(actionId) {\n this.actionId = actionId;\n this.type = JUMP_TO_ACTION;\n }\n}\nclass ImportState {\n constructor(nextLiftedState) {\n this.nextLiftedState = nextLiftedState;\n this.type = IMPORT_STATE;\n }\n}\nclass LockChanges {\n constructor(status) {\n this.status = status;\n this.type = LOCK_CHANGES;\n }\n}\nclass PauseRecording {\n constructor(status) {\n this.status = status;\n this.type = PAUSE_RECORDING;\n }\n}\n\n/**\n * Chrome extension documentation\n * @see https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md\n * Firefox extension documentation\n * @see https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md\n */\nclass StoreDevtoolsConfig {\n constructor() {\n /**\n * Maximum allowed actions to be stored in the history tree (default: `false`)\n */\n this.maxAge = false;\n }\n}\nconst STORE_DEVTOOLS_CONFIG = new InjectionToken('@ngrx/store-devtools Options');\n/**\n * Used to provide a `StoreDevtoolsConfig` for the store-devtools.\n */\nconst INITIAL_OPTIONS = new InjectionToken('@ngrx/store-devtools Initial Config');\nfunction noMonitor() {\n return null;\n}\nconst DEFAULT_NAME = 'NgRx Store DevTools';\nfunction createConfig(optionsInput) {\n const DEFAULT_OPTIONS = {\n maxAge: false,\n monitor: noMonitor,\n actionSanitizer: undefined,\n stateSanitizer: undefined,\n name: DEFAULT_NAME,\n serialize: false,\n logOnly: false,\n autoPause: false,\n trace: false,\n traceLimit: 75,\n // Add all features explicitly. This prevent buggy behavior for\n // options like \"lock\" which might otherwise not show up.\n features: {\n pause: true, // Start/pause recording of dispatched actions\n lock: true, // Lock/unlock dispatching actions and side effects\n persist: true, // Persist states on page reloading\n export: true, // Export history of actions in a file\n import: 'custom', // Import history of actions from a file\n jump: true, // Jump back and forth (time travelling)\n skip: true, // Skip (cancel) actions\n reorder: true, // Drag and drop actions in the history list\n dispatch: true, // Dispatch custom actions or action creators\n test: true, // Generate tests for the selected actions\n },\n connectInZone: false,\n };\n const options = typeof optionsInput === 'function' ? optionsInput() : optionsInput;\n const logOnly = options.logOnly\n ? { pause: true, export: true, test: true }\n : false;\n const features = options.features ||\n logOnly ||\n DEFAULT_OPTIONS.features;\n if (features.import === true) {\n features.import = 'custom';\n }\n const config = Object.assign({}, DEFAULT_OPTIONS, { features }, options);\n if (config.maxAge && config.maxAge < 2) {\n throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${config.maxAge}`);\n }\n return config;\n}\n\nfunction difference(first, second) {\n return first.filter((item) => second.indexOf(item) < 0);\n}\n/**\n * Provides an app's view into the state of the lifted store.\n */\nfunction unliftState(liftedState) {\n const { computedStates, currentStateIndex } = liftedState;\n // At start up NgRx dispatches init actions,\n // When these init actions are being filtered out by the predicate or safe/block list options\n // we don't have a complete computed states yet.\n // At this point it could happen that we're out of bounds, when this happens we fall back to the last known state\n if (currentStateIndex >= computedStates.length) {\n const { state } = computedStates[computedStates.length - 1];\n return state;\n }\n const { state } = computedStates[currentStateIndex];\n return state;\n}\nfunction unliftAction(liftedState) {\n return liftedState.actionsById[liftedState.nextActionId - 1];\n}\n/**\n * Lifts an app's action into an action on the lifted store.\n */\nfunction liftAction(action) {\n return new PerformAction(action, +Date.now());\n}\n/**\n * Sanitizes given actions with given function.\n */\nfunction sanitizeActions(actionSanitizer, actions) {\n return Object.keys(actions).reduce((sanitizedActions, actionIdx) => {\n const idx = Number(actionIdx);\n sanitizedActions[idx] = sanitizeAction(actionSanitizer, actions[idx], idx);\n return sanitizedActions;\n }, {});\n}\n/**\n * Sanitizes given action with given function.\n */\nfunction sanitizeAction(actionSanitizer, action, actionIdx) {\n return {\n ...action,\n action: actionSanitizer(action.action, actionIdx),\n };\n}\n/**\n * Sanitizes given states with given function.\n */\nfunction sanitizeStates(stateSanitizer, states) {\n return states.map((computedState, idx) => ({\n state: sanitizeState(stateSanitizer, computedState.state, idx),\n error: computedState.error,\n }));\n}\n/**\n * Sanitizes given state with given function.\n */\nfunction sanitizeState(stateSanitizer, state, stateIdx) {\n return stateSanitizer(state, stateIdx);\n}\n/**\n * Read the config and tell if actions should be filtered\n */\nfunction shouldFilterActions(config) {\n return config.predicate || config.actionsSafelist || config.actionsBlocklist;\n}\n/**\n * Return a full filtered lifted state\n */\nfunction filterLiftedState(liftedState, predicate, safelist, blocklist) {\n const filteredStagedActionIds = [];\n const filteredActionsById = {};\n const filteredComputedStates = [];\n liftedState.stagedActionIds.forEach((id, idx) => {\n const liftedAction = liftedState.actionsById[id];\n if (!liftedAction)\n return;\n if (idx &&\n isActionFiltered(liftedState.computedStates[idx], liftedAction, predicate, safelist, blocklist)) {\n return;\n }\n filteredActionsById[id] = liftedAction;\n filteredStagedActionIds.push(id);\n filteredComputedStates.push(liftedState.computedStates[idx]);\n });\n return {\n ...liftedState,\n stagedActionIds: filteredStagedActionIds,\n actionsById: filteredActionsById,\n computedStates: filteredComputedStates,\n };\n}\n/**\n * Return true is the action should be ignored\n */\nfunction isActionFiltered(state, action, predicate, safelist, blockedlist) {\n const predicateMatch = predicate && !predicate(state, action.action);\n const safelistMatch = safelist &&\n !action.action.type.match(safelist.map((s) => escapeRegExp(s)).join('|'));\n const blocklistMatch = blockedlist &&\n action.action.type.match(blockedlist.map((s) => escapeRegExp(s)).join('|'));\n return predicateMatch || safelistMatch || blocklistMatch;\n}\n/**\n * Return string with escaped RegExp special characters\n * https://stackoverflow.com/a/6969486/1337347\n */\nfunction escapeRegExp(s) {\n return s.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n}\n\nfunction injectZoneConfig(connectInZone) {\n const ngZone = connectInZone ? inject(NgZone) : null;\n return { ngZone, connectInZone };\n}\n\nclass DevtoolsDispatcher extends ActionsSubject {\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: DevtoolsDispatcher, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: DevtoolsDispatcher }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: DevtoolsDispatcher, decorators: [{\n type: Injectable\n }] });\n\nconst ExtensionActionTypes = {\n START: 'START',\n DISPATCH: 'DISPATCH',\n STOP: 'STOP',\n ACTION: 'ACTION',\n};\nconst REDUX_DEVTOOLS_EXTENSION = new InjectionToken('@ngrx/store-devtools Redux Devtools Extension');\nclass DevtoolsExtension {\n constructor(devtoolsExtension, config, dispatcher) {\n this.config = config;\n this.dispatcher = dispatcher;\n this.zoneConfig = injectZoneConfig(this.config.connectInZone);\n this.devtoolsExtension = devtoolsExtension;\n this.createActionStreams();\n }\n notify(action, state) {\n if (!this.devtoolsExtension) {\n return;\n }\n // Check to see if the action requires a full update of the liftedState.\n // If it is a simple action generated by the user's app and the recording\n // is not locked/paused, only send the action and the current state (fast).\n //\n // A full liftedState update (slow: serializes the entire liftedState) is\n // only required when:\n // a) redux-devtools-extension fires the @@Init action (ignored by\n // @ngrx/store-devtools)\n // b) an action is generated by an @ngrx module (e.g. @ngrx/effects/init\n // or @ngrx/store/update-reducers)\n // c) the state has been recomputed due to time-traveling\n // d) any action that is not a PerformAction to err on the side of\n // caution.\n if (action.type === PERFORM_ACTION) {\n if (state.isLocked || state.isPaused) {\n return;\n }\n const currentState = unliftState(state);\n if (shouldFilterActions(this.config) &&\n isActionFiltered(currentState, action, this.config.predicate, this.config.actionsSafelist, this.config.actionsBlocklist)) {\n return;\n }\n const sanitizedState = this.config.stateSanitizer\n ? sanitizeState(this.config.stateSanitizer, currentState, state.currentStateIndex)\n : currentState;\n const sanitizedAction = this.config.actionSanitizer\n ? sanitizeAction(this.config.actionSanitizer, action, state.nextActionId)\n : action;\n this.sendToReduxDevtools(() => this.extensionConnection.send(sanitizedAction, sanitizedState));\n }\n else {\n // Requires full state update\n const sanitizedLiftedState = {\n ...state,\n stagedActionIds: state.stagedActionIds,\n actionsById: this.config.actionSanitizer\n ? sanitizeActions(this.config.actionSanitizer, state.actionsById)\n : state.actionsById,\n computedStates: this.config.stateSanitizer\n ? sanitizeStates(this.config.stateSanitizer, state.computedStates)\n : state.computedStates,\n };\n this.sendToReduxDevtools(() => this.devtoolsExtension.send(null, sanitizedLiftedState, this.getExtensionConfig(this.config)));\n }\n }\n createChangesObservable() {\n if (!this.devtoolsExtension) {\n return EMPTY;\n }\n return new Observable((subscriber) => {\n const connection = this.zoneConfig.connectInZone\n ? // To reduce change detection cycles, we need to run the `connect` method\n // outside of the Angular zone. The `connect` method adds a `message`\n // event listener to communicate with an extension using `window.postMessage`\n // and handle message events.\n this.zoneConfig.ngZone.runOutsideAngular(() => this.devtoolsExtension.connect(this.getExtensionConfig(this.config)))\n : this.devtoolsExtension.connect(this.getExtensionConfig(this.config));\n this.extensionConnection = connection;\n connection.init();\n connection.subscribe((change) => subscriber.next(change));\n return connection.unsubscribe;\n });\n }\n createActionStreams() {\n // Listens to all changes\n const changes$ = this.createChangesObservable().pipe(share());\n // Listen for the start action\n const start$ = changes$.pipe(filter((change) => change.type === ExtensionActionTypes.START));\n // Listen for the stop action\n const stop$ = changes$.pipe(filter((change) => change.type === ExtensionActionTypes.STOP));\n // Listen for lifted actions\n const liftedActions$ = changes$.pipe(filter((change) => change.type === ExtensionActionTypes.DISPATCH), map((change) => this.unwrapAction(change.payload)), concatMap((action) => {\n if (action.type === IMPORT_STATE) {\n // State imports may happen in two situations:\n // 1. Explicitly by user\n // 2. User activated the \"persist state accross reloads\" option\n // and now the state is imported during reload.\n // Because of option 2, we need to give possible\n // lazy loaded reducers time to instantiate.\n // As soon as there is no UPDATE action within 1 second,\n // it is assumed that all reducers are loaded.\n return this.dispatcher.pipe(filter((action) => action.type === UPDATE), timeout(1000), debounceTime(1000), map(() => action), catchError(() => of(action)), take(1));\n }\n else {\n return of(action);\n }\n }));\n // Listen for unlifted actions\n const actions$ = changes$.pipe(filter((change) => change.type === ExtensionActionTypes.ACTION), map((change) => this.unwrapAction(change.payload)));\n const actionsUntilStop$ = actions$.pipe(takeUntil(stop$));\n const liftedUntilStop$ = liftedActions$.pipe(takeUntil(stop$));\n this.start$ = start$.pipe(takeUntil(stop$));\n // Only take the action sources between the start/stop events\n this.actions$ = this.start$.pipe(switchMap(() => actionsUntilStop$));\n this.liftedActions$ = this.start$.pipe(switchMap(() => liftedUntilStop$));\n }\n unwrapAction(action) {\n // indirect eval according to https://esbuild.github.io/content-types/#direct-eval\n return typeof action === 'string' ? (0, eval)(`(${action})`) : action;\n }\n getExtensionConfig(config) {\n const extensionOptions = {\n name: config.name,\n features: config.features,\n serialize: config.serialize,\n autoPause: config.autoPause ?? false,\n trace: config.trace ?? false,\n traceLimit: config.traceLimit ?? 75,\n // The action/state sanitizers are not added to the config\n // because sanitation is done in this class already.\n // It is done before sending it to the devtools extension for consistency:\n // - If we call extensionConnection.send(...),\n // the extension would call the sanitizers.\n // - If we call devtoolsExtension.send(...) (aka full state update),\n // the extension would NOT call the sanitizers, so we have to do it ourselves.\n };\n if (config.maxAge !== false /* support === 0 */) {\n extensionOptions.maxAge = config.maxAge;\n }\n return extensionOptions;\n }\n sendToReduxDevtools(send) {\n try {\n send();\n }\n catch (err) {\n console.warn('@ngrx/store-devtools: something went wrong inside the redux devtools', err);\n }\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: DevtoolsExtension, deps: [{ token: REDUX_DEVTOOLS_EXTENSION }, { token: STORE_DEVTOOLS_CONFIG }, { token: DevtoolsDispatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: DevtoolsExtension }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: DevtoolsExtension, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [REDUX_DEVTOOLS_EXTENSION]\n }] }, { type: StoreDevtoolsConfig, decorators: [{\n type: Inject,\n args: [STORE_DEVTOOLS_CONFIG]\n }] }, { type: DevtoolsDispatcher }] });\n\nconst INIT_ACTION = { type: INIT };\nconst RECOMPUTE = '@ngrx/store-devtools/recompute';\nconst RECOMPUTE_ACTION = { type: RECOMPUTE };\n/**\n * Computes the next entry in the log by applying an action.\n */\nfunction computeNextEntry(reducer, action, state, error, errorHandler) {\n if (error) {\n return {\n state,\n error: 'Interrupted by an error up the chain',\n };\n }\n let nextState = state;\n let nextError;\n try {\n nextState = reducer(state, action);\n }\n catch (err) {\n nextError = err.toString();\n errorHandler.handleError(err);\n }\n return {\n state: nextState,\n error: nextError,\n };\n}\n/**\n * Runs the reducer on invalidated actions to get a fresh computation log.\n */\nfunction recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds, errorHandler, isPaused) {\n // Optimization: exit early and return the same reference\n // if we know nothing could have changed.\n if (minInvalidatedStateIndex >= computedStates.length &&\n computedStates.length === stagedActionIds.length) {\n return computedStates;\n }\n const nextComputedStates = computedStates.slice(0, minInvalidatedStateIndex);\n // If the recording is paused, recompute all states up until the pause state,\n // else recompute all states.\n const lastIncludedActionId = stagedActionIds.length - (isPaused ? 1 : 0);\n for (let i = minInvalidatedStateIndex; i < lastIncludedActionId; i++) {\n const actionId = stagedActionIds[i];\n const action = actionsById[actionId].action;\n const previousEntry = nextComputedStates[i - 1];\n const previousState = previousEntry ? previousEntry.state : committedState;\n const previousError = previousEntry ? previousEntry.error : undefined;\n const shouldSkip = skippedActionIds.indexOf(actionId) > -1;\n const entry = shouldSkip\n ? previousEntry\n : computeNextEntry(reducer, action, previousState, previousError, errorHandler);\n nextComputedStates.push(entry);\n }\n // If the recording is paused, the last state will not be recomputed,\n // because it's essentially not part of the state history.\n if (isPaused) {\n nextComputedStates.push(computedStates[computedStates.length - 1]);\n }\n return nextComputedStates;\n}\nfunction liftInitialState(initialCommittedState, monitorReducer) {\n return {\n monitorState: monitorReducer(undefined, {}),\n nextActionId: 1,\n actionsById: { 0: liftAction(INIT_ACTION) },\n stagedActionIds: [0],\n skippedActionIds: [],\n committedState: initialCommittedState,\n currentStateIndex: 0,\n computedStates: [],\n isLocked: false,\n isPaused: false,\n };\n}\n/**\n * Creates a history state reducer from an app's reducer.\n */\nfunction liftReducerWith(initialCommittedState, initialLiftedState, errorHandler, monitorReducer, options = {}) {\n /**\n * Manages how the history actions modify the history state.\n */\n return (reducer) => (liftedState, liftedAction) => {\n let { monitorState, actionsById, nextActionId, stagedActionIds, skippedActionIds, committedState, currentStateIndex, computedStates, isLocked, isPaused, } = liftedState || initialLiftedState;\n if (!liftedState) {\n // Prevent mutating initialLiftedState\n actionsById = Object.create(actionsById);\n }\n function commitExcessActions(n) {\n // Auto-commits n-number of excess actions.\n let excess = n;\n let idsToDelete = stagedActionIds.slice(1, excess + 1);\n for (let i = 0; i < idsToDelete.length; i++) {\n if (computedStates[i + 1].error) {\n // Stop if error is found. Commit actions up to error.\n excess = i;\n idsToDelete = stagedActionIds.slice(1, excess + 1);\n break;\n }\n else {\n delete actionsById[idsToDelete[i]];\n }\n }\n skippedActionIds = skippedActionIds.filter((id) => idsToDelete.indexOf(id) === -1);\n stagedActionIds = [0, ...stagedActionIds.slice(excess + 1)];\n committedState = computedStates[excess].state;\n computedStates = computedStates.slice(excess);\n currentStateIndex =\n currentStateIndex > excess ? currentStateIndex - excess : 0;\n }\n function commitChanges() {\n // Consider the last committed state the new starting point.\n // Squash any staged actions into a single committed state.\n actionsById = { 0: liftAction(INIT_ACTION) };\n nextActionId = 1;\n stagedActionIds = [0];\n skippedActionIds = [];\n committedState = computedStates[currentStateIndex].state;\n currentStateIndex = 0;\n computedStates = [];\n }\n // By default, aggressively recompute every state whatever happens.\n // This has O(n) performance, so we'll override this to a sensible\n // value whenever we feel like we don't have to recompute the states.\n let minInvalidatedStateIndex = 0;\n switch (liftedAction.type) {\n case LOCK_CHANGES: {\n isLocked = liftedAction.status;\n minInvalidatedStateIndex = Infinity;\n break;\n }\n case PAUSE_RECORDING: {\n isPaused = liftedAction.status;\n if (isPaused) {\n // Add a pause action to signal the devtools-user the recording is paused.\n // The corresponding state will be overwritten on each update to always contain\n // the latest state (see Actions.PERFORM_ACTION).\n stagedActionIds = [...stagedActionIds, nextActionId];\n actionsById[nextActionId] = new PerformAction({\n type: '@ngrx/devtools/pause',\n }, +Date.now());\n nextActionId++;\n minInvalidatedStateIndex = stagedActionIds.length - 1;\n computedStates = computedStates.concat(computedStates[computedStates.length - 1]);\n if (currentStateIndex === stagedActionIds.length - 2) {\n currentStateIndex++;\n }\n minInvalidatedStateIndex = Infinity;\n }\n else {\n commitChanges();\n }\n break;\n }\n case RESET: {\n // Get back to the state the store was created with.\n actionsById = { 0: liftAction(INIT_ACTION) };\n nextActionId = 1;\n stagedActionIds = [0];\n skippedActionIds = [];\n committedState = initialCommittedState;\n currentStateIndex = 0;\n computedStates = [];\n break;\n }\n case COMMIT: {\n commitChanges();\n break;\n }\n case ROLLBACK: {\n // Forget about any staged actions.\n // Start again from the last committed state.\n actionsById = { 0: liftAction(INIT_ACTION) };\n nextActionId = 1;\n stagedActionIds = [0];\n skippedActionIds = [];\n currentStateIndex = 0;\n computedStates = [];\n break;\n }\n case TOGGLE_ACTION: {\n // Toggle whether an action with given ID is skipped.\n // Being skipped means it is a no-op during the computation.\n const { id: actionId } = liftedAction;\n const index = skippedActionIds.indexOf(actionId);\n if (index === -1) {\n skippedActionIds = [actionId, ...skippedActionIds];\n }\n else {\n skippedActionIds = skippedActionIds.filter((id) => id !== actionId);\n }\n // Optimization: we know history before this action hasn't changed\n minInvalidatedStateIndex = stagedActionIds.indexOf(actionId);\n break;\n }\n case SET_ACTIONS_ACTIVE: {\n // Toggle whether an action with given ID is skipped.\n // Being skipped means it is a no-op during the computation.\n const { start, end, active } = liftedAction;\n const actionIds = [];\n for (let i = start; i < end; i++)\n actionIds.push(i);\n if (active) {\n skippedActionIds = difference(skippedActionIds, actionIds);\n }\n else {\n skippedActionIds = [...skippedActionIds, ...actionIds];\n }\n // Optimization: we know history before this action hasn't changed\n minInvalidatedStateIndex = stagedActionIds.indexOf(start);\n break;\n }\n case JUMP_TO_STATE: {\n // Without recomputing anything, move the pointer that tell us\n // which state is considered the current one. Useful for sliders.\n currentStateIndex = liftedAction.index;\n // Optimization: we know the history has not changed.\n minInvalidatedStateIndex = Infinity;\n break;\n }\n case JUMP_TO_ACTION: {\n // Jumps to a corresponding state to a specific action.\n // Useful when filtering actions.\n const index = stagedActionIds.indexOf(liftedAction.actionId);\n if (index !== -1)\n currentStateIndex = index;\n minInvalidatedStateIndex = Infinity;\n break;\n }\n case SWEEP: {\n // Forget any actions that are currently being skipped.\n stagedActionIds = difference(stagedActionIds, skippedActionIds);\n skippedActionIds = [];\n currentStateIndex = Math.min(currentStateIndex, stagedActionIds.length - 1);\n break;\n }\n case PERFORM_ACTION: {\n // Ignore action and return state as is if recording is locked\n if (isLocked) {\n return liftedState || initialLiftedState;\n }\n if (isPaused ||\n (liftedState &&\n isActionFiltered(liftedState.computedStates[currentStateIndex], liftedAction, options.predicate, options.actionsSafelist, options.actionsBlocklist))) {\n // If recording is paused or if the action should be ignored, overwrite the last state\n // (corresponds to the pause action) and keep everything else as is.\n // This way, the app gets the new current state while the devtools\n // do not record another action.\n const lastState = computedStates[computedStates.length - 1];\n computedStates = [\n ...computedStates.slice(0, -1),\n computeNextEntry(reducer, liftedAction.action, lastState.state, lastState.error, errorHandler),\n ];\n minInvalidatedStateIndex = Infinity;\n break;\n }\n // Auto-commit as new actions come in.\n if (options.maxAge && stagedActionIds.length === options.maxAge) {\n commitExcessActions(1);\n }\n if (currentStateIndex === stagedActionIds.length - 1) {\n currentStateIndex++;\n }\n const actionId = nextActionId++;\n // Mutation! This is the hottest path, and we optimize on purpose.\n // It is safe because we set a new key in a cache dictionary.\n actionsById[actionId] = liftedAction;\n stagedActionIds = [...stagedActionIds, actionId];\n // Optimization: we know that only the new action needs computing.\n minInvalidatedStateIndex = stagedActionIds.length - 1;\n break;\n }\n case IMPORT_STATE: {\n // Completely replace everything.\n ({\n monitorState,\n actionsById,\n nextActionId,\n stagedActionIds,\n skippedActionIds,\n committedState,\n currentStateIndex,\n computedStates,\n isLocked,\n isPaused,\n } = liftedAction.nextLiftedState);\n break;\n }\n case INIT: {\n // Always recompute states on hot reload and init.\n minInvalidatedStateIndex = 0;\n if (options.maxAge && stagedActionIds.length > options.maxAge) {\n // States must be recomputed before committing excess.\n computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds, errorHandler, isPaused);\n commitExcessActions(stagedActionIds.length - options.maxAge);\n // Avoid double computation.\n minInvalidatedStateIndex = Infinity;\n }\n break;\n }\n case UPDATE: {\n const stateHasErrors = computedStates.filter((state) => state.error).length > 0;\n if (stateHasErrors) {\n // Recompute all states\n minInvalidatedStateIndex = 0;\n if (options.maxAge && stagedActionIds.length > options.maxAge) {\n // States must be recomputed before committing excess.\n computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds, errorHandler, isPaused);\n commitExcessActions(stagedActionIds.length - options.maxAge);\n // Avoid double computation.\n minInvalidatedStateIndex = Infinity;\n }\n }\n else {\n // If not paused/locked, add a new action to signal devtools-user\n // that there was a reducer update.\n if (!isPaused && !isLocked) {\n if (currentStateIndex === stagedActionIds.length - 1) {\n currentStateIndex++;\n }\n // Add a new action to only recompute state\n const actionId = nextActionId++;\n actionsById[actionId] = new PerformAction(liftedAction, +Date.now());\n stagedActionIds = [...stagedActionIds, actionId];\n minInvalidatedStateIndex = stagedActionIds.length - 1;\n computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds, errorHandler, isPaused);\n }\n // Recompute state history with latest reducer and update action\n computedStates = computedStates.map((cmp) => ({\n ...cmp,\n state: reducer(cmp.state, RECOMPUTE_ACTION),\n }));\n currentStateIndex = stagedActionIds.length - 1;\n if (options.maxAge && stagedActionIds.length > options.maxAge) {\n commitExcessActions(stagedActionIds.length - options.maxAge);\n }\n // Avoid double computation.\n minInvalidatedStateIndex = Infinity;\n }\n break;\n }\n default: {\n // If the action is not recognized, it's a monitor action.\n // Optimization: a monitor action can't change history.\n minInvalidatedStateIndex = Infinity;\n break;\n }\n }\n computedStates = recomputeStates(computedStates, minInvalidatedStateIndex, reducer, committedState, actionsById, stagedActionIds, skippedActionIds, errorHandler, isPaused);\n monitorState = monitorReducer(monitorState, liftedAction);\n return {\n monitorState,\n actionsById,\n nextActionId,\n stagedActionIds,\n skippedActionIds,\n committedState,\n currentStateIndex,\n computedStates,\n isLocked,\n isPaused,\n };\n };\n}\n\nclass StoreDevtools {\n constructor(dispatcher, actions$, reducers$, extension, scannedActions, errorHandler, initialState, config) {\n const liftedInitialState = liftInitialState(initialState, config.monitor);\n const liftReducer = liftReducerWith(initialState, liftedInitialState, errorHandler, config.monitor, config);\n const liftedAction$ = merge(merge(actions$.asObservable().pipe(skip(1)), extension.actions$).pipe(map(liftAction)), dispatcher, extension.liftedActions$).pipe(observeOn(queueScheduler));\n const liftedReducer$ = reducers$.pipe(map(liftReducer));\n const zoneConfig = injectZoneConfig(config.connectInZone);\n const liftedStateSubject = new ReplaySubject(1);\n this.liftedStateSubscription = liftedAction$\n .pipe(withLatestFrom(liftedReducer$), \n // The extension would post messages back outside of the Angular zone\n // because we call `connect()` wrapped with `runOutsideAngular`. We run change\n // detection only once at the end after all the required asynchronous tasks have\n // been processed (for instance, `setInterval` scheduled by the `timeout` operator).\n // We have to re-enter the Angular zone before the `scan` since it runs the reducer\n // which must be run within the Angular zone.\n emitInZone(zoneConfig), scan(({ state: liftedState }, [action, reducer]) => {\n let reducedLiftedState = reducer(liftedState, action);\n // On full state update\n // If we have actions filters, we must filter completely our lifted state to be sync with the extension\n if (action.type !== PERFORM_ACTION && shouldFilterActions(config)) {\n reducedLiftedState = filterLiftedState(reducedLiftedState, config.predicate, config.actionsSafelist, config.actionsBlocklist);\n }\n // Extension should be sent the sanitized lifted state\n extension.notify(action, reducedLiftedState);\n return { state: reducedLiftedState, action };\n }, { state: liftedInitialState, action: null }))\n .subscribe(({ state, action }) => {\n liftedStateSubject.next(state);\n if (action.type === PERFORM_ACTION) {\n const unliftedAction = action.action;\n scannedActions.next(unliftedAction);\n }\n });\n this.extensionStartSubscription = extension.start$\n .pipe(emitInZone(zoneConfig))\n .subscribe(() => {\n this.refresh();\n });\n const liftedState$ = liftedStateSubject.asObservable();\n const state$ = liftedState$.pipe(map(unliftState));\n Object.defineProperty(state$, 'state', {\n value: toSignal(state$, { manualCleanup: true, requireSync: true }),\n });\n this.dispatcher = dispatcher;\n this.liftedState = liftedState$;\n this.state = state$;\n }\n ngOnDestroy() {\n // Even though the store devtools plugin is recommended to be\n // used only in development mode, it can still cause a memory leak\n // in microfrontend applications that are being created and destroyed\n // multiple times during development. This results in excessive memory\n // consumption, as it prevents entire apps from being garbage collected.\n this.liftedStateSubscription.unsubscribe();\n this.extensionStartSubscription.unsubscribe();\n }\n dispatch(action) {\n this.dispatcher.next(action);\n }\n next(action) {\n this.dispatcher.next(action);\n }\n error(error) { }\n complete() { }\n performAction(action) {\n this.dispatch(new PerformAction(action, +Date.now()));\n }\n refresh() {\n this.dispatch(new Refresh());\n }\n reset() {\n this.dispatch(new Reset(+Date.now()));\n }\n rollback() {\n this.dispatch(new Rollback(+Date.now()));\n }\n commit() {\n this.dispatch(new Commit(+Date.now()));\n }\n sweep() {\n this.dispatch(new Sweep());\n }\n toggleAction(id) {\n this.dispatch(new ToggleAction(id));\n }\n jumpToAction(actionId) {\n this.dispatch(new JumpToAction(actionId));\n }\n jumpToState(index) {\n this.dispatch(new JumpToState(index));\n }\n importState(nextLiftedState) {\n this.dispatch(new ImportState(nextLiftedState));\n }\n lockChanges(status) {\n this.dispatch(new LockChanges(status));\n }\n pauseRecording(status) {\n this.dispatch(new PauseRecording(status));\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtools, deps: [{ token: DevtoolsDispatcher }, { token: i2.ActionsSubject }, { token: i2.ReducerObservable }, { token: DevtoolsExtension }, { token: i2.ScannedActionsSubject }, { token: i0.ErrorHandler }, { token: INITIAL_STATE }, { token: STORE_DEVTOOLS_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtools }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtools, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: DevtoolsDispatcher }, { type: i2.ActionsSubject }, { type: i2.ReducerObservable }, { type: DevtoolsExtension }, { type: i2.ScannedActionsSubject }, { type: i0.ErrorHandler }, { type: undefined, decorators: [{\n type: Inject,\n args: [INITIAL_STATE]\n }] }, { type: StoreDevtoolsConfig, decorators: [{\n type: Inject,\n args: [STORE_DEVTOOLS_CONFIG]\n }] }] });\n/**\n * If the devtools extension is connected out of the Angular zone,\n * this operator will emit all events within the zone.\n */\nfunction emitInZone({ ngZone, connectInZone, }) {\n return (source) => connectInZone\n ? new Observable((subscriber) => source.subscribe({\n next: (value) => ngZone.run(() => subscriber.next(value)),\n error: (error) => ngZone.run(() => subscriber.error(error)),\n complete: () => ngZone.run(() => subscriber.complete()),\n }))\n : source;\n}\n\nconst IS_EXTENSION_OR_MONITOR_PRESENT = new InjectionToken('@ngrx/store-devtools Is Devtools Extension or Monitor Present');\nfunction createIsExtensionOrMonitorPresent(extension, config) {\n return Boolean(extension) || config.monitor !== noMonitor;\n}\nfunction createReduxDevtoolsExtension() {\n const extensionKey = '__REDUX_DEVTOOLS_EXTENSION__';\n if (typeof window === 'object' &&\n typeof window[extensionKey] !== 'undefined') {\n return window[extensionKey];\n }\n else {\n return null;\n }\n}\n/**\n * Provides developer tools and instrumentation for `Store`.\n *\n * @usageNotes\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideStoreDevtools({\n * maxAge: 25,\n * logOnly: !isDevMode(),\n * }),\n * ],\n * });\n * ```\n */\nfunction provideStoreDevtools(options = {}) {\n return makeEnvironmentProviders([\n DevtoolsExtension,\n DevtoolsDispatcher,\n StoreDevtools,\n {\n provide: INITIAL_OPTIONS,\n useValue: options,\n },\n {\n provide: IS_EXTENSION_OR_MONITOR_PRESENT,\n deps: [REDUX_DEVTOOLS_EXTENSION, STORE_DEVTOOLS_CONFIG],\n useFactory: createIsExtensionOrMonitorPresent,\n },\n {\n provide: REDUX_DEVTOOLS_EXTENSION,\n useFactory: createReduxDevtoolsExtension,\n },\n {\n provide: STORE_DEVTOOLS_CONFIG,\n deps: [INITIAL_OPTIONS],\n useFactory: createConfig,\n },\n {\n provide: StateObservable,\n deps: [StoreDevtools],\n useFactory: createStateObservable,\n },\n {\n provide: ReducerManagerDispatcher,\n useExisting: DevtoolsDispatcher,\n },\n ]);\n}\n\nfunction createStateObservable(devtools) {\n return devtools.state;\n}\nclass StoreDevtoolsModule {\n static instrument(options = {}) {\n return {\n ngModule: StoreDevtoolsModule,\n providers: [provideStoreDevtools(options)],\n };\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtoolsModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtoolsModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreDevtoolsModule, decorators: [{\n type: NgModule,\n args: [{}]\n }] });\n\n/**\n * DO NOT EDIT\n *\n * This file is automatically generated at build\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { INITIAL_OPTIONS, RECOMPUTE, REDUX_DEVTOOLS_EXTENSION, StoreDevtools, StoreDevtoolsConfig, StoreDevtoolsModule, provideStoreDevtools };\n","import { async } from '../scheduler/async';\nimport { TimeoutError } from '../util/TimeoutError';\nimport { timeoutWith } from './timeoutWith';\nimport { throwError } from '../observable/throwError';\nexport function timeout(due, scheduler = async) {\n return timeoutWith(due, throwError(new TimeoutError()), scheduler);\n}\n","export function isDate(value) {\n return value instanceof Date && !isNaN(+value);\n}\n","import * as i1 from '@ngrx/store';\nimport { createAction, props, isNgrxMockEnvironment, select, ACTIVE_RUNTIME_CHECKS, createFeatureSelector, createSelector } from '@ngrx/store';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, isDevMode, Injectable, Inject, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, inject, NgModule } from '@angular/core';\nimport * as i2 from '@angular/router';\nimport { NavigationStart, RoutesRecognized, NavigationCancel, NavigationError, NavigationEnd } from '@angular/router';\nimport { withLatestFrom } from 'rxjs/operators';\n\n/**\n * An action dispatched when a router navigation request is fired.\n */\nconst ROUTER_REQUEST = '@ngrx/router-store/request';\nconst routerRequestAction = createAction(ROUTER_REQUEST, props());\n/**\n * An action dispatched when the router navigates.\n */\nconst ROUTER_NAVIGATION = '@ngrx/router-store/navigation';\nconst routerNavigationAction = createAction(ROUTER_NAVIGATION, props());\n/**\n * An action dispatched when the router cancels navigation.\n */\nconst ROUTER_CANCEL = '@ngrx/router-store/cancel';\nconst routerCancelAction = createAction(ROUTER_CANCEL, props());\n/**\n * An action dispatched when the router errors.\n */\nconst ROUTER_ERROR = '@ngrx/router-store/error';\nconst routerErrorAction = createAction(ROUTER_ERROR, props());\n/**\n * An action dispatched after navigation has ended and new route is active.\n */\nconst ROUTER_NAVIGATED = '@ngrx/router-store/navigated';\nconst routerNavigatedAction = createAction(ROUTER_NAVIGATED, props());\n\nfunction routerReducer(state, action) {\n // Allow compilation with strictFunctionTypes - ref: #1344\n const routerAction = action;\n switch (routerAction.type) {\n case ROUTER_NAVIGATION:\n case ROUTER_ERROR:\n case ROUTER_CANCEL:\n return {\n state: routerAction.payload.routerState,\n navigationId: routerAction.payload.event.id,\n };\n default:\n return state;\n }\n}\n\nclass MinimalRouterStateSerializer {\n serialize(routerState) {\n return {\n root: this.serializeRoute(routerState.root),\n url: routerState.url,\n };\n }\n serializeRoute(route) {\n const children = route.children.map((c) => this.serializeRoute(c));\n return {\n params: route.params,\n data: route.data,\n url: route.url,\n outlet: route.outlet,\n title: route.title,\n routeConfig: route.routeConfig\n ? {\n path: route.routeConfig.path,\n pathMatch: route.routeConfig.pathMatch,\n redirectTo: route.routeConfig.redirectTo,\n outlet: route.routeConfig.outlet,\n title: typeof route.routeConfig.title === 'string'\n ? route.routeConfig.title\n : undefined,\n }\n : null,\n queryParams: route.queryParams,\n fragment: route.fragment,\n firstChild: children[0],\n children,\n };\n }\n}\n\nvar NavigationActionTiming;\n(function (NavigationActionTiming) {\n NavigationActionTiming[NavigationActionTiming[\"PreActivation\"] = 1] = \"PreActivation\";\n NavigationActionTiming[NavigationActionTiming[\"PostActivation\"] = 2] = \"PostActivation\";\n})(NavigationActionTiming || (NavigationActionTiming = {}));\nconst DEFAULT_ROUTER_FEATURENAME = 'router';\nconst _ROUTER_CONFIG = new InjectionToken('@ngrx/router-store Internal Configuration');\nconst ROUTER_CONFIG = new InjectionToken('@ngrx/router-store Configuration');\nfunction _createRouterConfig(config) {\n return {\n stateKey: DEFAULT_ROUTER_FEATURENAME,\n serializer: MinimalRouterStateSerializer,\n navigationActionTiming: NavigationActionTiming.PreActivation,\n ...config,\n };\n}\n\nclass FullRouterStateSerializer {\n serialize(routerState) {\n return {\n root: this.serializeRoute(routerState.root),\n url: routerState.url,\n };\n }\n serializeRoute(route) {\n const children = route.children.map((c) => this.serializeRoute(c));\n return {\n params: route.params,\n paramMap: route.paramMap,\n data: route.data,\n url: route.url,\n outlet: route.outlet,\n title: route.title,\n routeConfig: route.routeConfig\n ? {\n component: route.routeConfig.component,\n path: route.routeConfig.path,\n pathMatch: route.routeConfig.pathMatch,\n redirectTo: route.routeConfig.redirectTo,\n outlet: route.routeConfig.outlet,\n title: route.routeConfig.title,\n }\n : null,\n queryParams: route.queryParams,\n queryParamMap: route.queryParamMap,\n fragment: route.fragment,\n component: (route.routeConfig\n ? route.routeConfig.component\n : undefined),\n root: undefined,\n parent: undefined,\n firstChild: children[0],\n pathFromRoot: undefined,\n children,\n };\n }\n}\n\nclass RouterStateSerializer {\n}\n\nvar RouterTrigger;\n(function (RouterTrigger) {\n RouterTrigger[RouterTrigger[\"NONE\"] = 1] = \"NONE\";\n RouterTrigger[RouterTrigger[\"ROUTER\"] = 2] = \"ROUTER\";\n RouterTrigger[RouterTrigger[\"STORE\"] = 3] = \"STORE\";\n})(RouterTrigger || (RouterTrigger = {}));\n/**\n * Shared router initialization logic used alongside both the StoreRouterConnectingModule and the provideRouterStore\n * function\n */\nclass StoreRouterConnectingService {\n constructor(store, router, serializer, errorHandler, config, activeRuntimeChecks) {\n this.store = store;\n this.router = router;\n this.serializer = serializer;\n this.errorHandler = errorHandler;\n this.config = config;\n this.activeRuntimeChecks = activeRuntimeChecks;\n this.lastEvent = null;\n this.routerState = null;\n this.trigger = RouterTrigger.NONE;\n this.stateKey = this.config.stateKey;\n if (!isNgrxMockEnvironment() &&\n isDevMode() &&\n (activeRuntimeChecks?.strictActionSerializability ||\n activeRuntimeChecks?.strictStateSerializability) &&\n this.serializer instanceof FullRouterStateSerializer) {\n console.warn('@ngrx/router-store: The serializability runtime checks cannot be enabled ' +\n 'with the FullRouterStateSerializer. The FullRouterStateSerializer ' +\n 'has an unserializable router state and actions that are not serializable. ' +\n 'To use the serializability runtime checks either use ' +\n 'the MinimalRouterStateSerializer or implement a custom router state serializer.');\n }\n this.setUpStoreStateListener();\n this.setUpRouterEventsListener();\n }\n setUpStoreStateListener() {\n this.store\n .pipe(select(this.stateKey), withLatestFrom(this.store))\n .subscribe(([routerStoreState, storeState]) => {\n this.navigateIfNeeded(routerStoreState, storeState);\n });\n }\n navigateIfNeeded(routerStoreState, storeState) {\n if (!routerStoreState || !routerStoreState.state) {\n return;\n }\n if (this.trigger === RouterTrigger.ROUTER) {\n return;\n }\n if (this.lastEvent instanceof NavigationStart) {\n return;\n }\n const url = routerStoreState.state.url;\n if (!isSameUrl(this.router.url, url)) {\n this.storeState = storeState;\n this.trigger = RouterTrigger.STORE;\n this.router.navigateByUrl(url).catch((error) => {\n this.errorHandler.handleError(error);\n });\n }\n }\n setUpRouterEventsListener() {\n const dispatchNavLate = this.config.navigationActionTiming ===\n NavigationActionTiming.PostActivation;\n let routesRecognized;\n this.router.events\n .pipe(withLatestFrom(this.store))\n .subscribe(([event, storeState]) => {\n this.lastEvent = event;\n if (event instanceof NavigationStart) {\n this.routerState = this.serializer.serialize(this.router.routerState.snapshot);\n if (this.trigger !== RouterTrigger.STORE) {\n this.storeState = storeState;\n this.dispatchRouterRequest(event);\n }\n }\n else if (event instanceof RoutesRecognized) {\n routesRecognized = event;\n if (!dispatchNavLate && this.trigger !== RouterTrigger.STORE) {\n this.dispatchRouterNavigation(event);\n }\n }\n else if (event instanceof NavigationCancel) {\n this.dispatchRouterCancel(event);\n this.reset();\n }\n else if (event instanceof NavigationError) {\n this.dispatchRouterError(event);\n this.reset();\n }\n else if (event instanceof NavigationEnd) {\n if (this.trigger !== RouterTrigger.STORE) {\n if (dispatchNavLate) {\n this.dispatchRouterNavigation(routesRecognized);\n }\n this.dispatchRouterNavigated(event);\n }\n this.reset();\n }\n });\n }\n dispatchRouterRequest(event) {\n this.dispatchRouterAction(ROUTER_REQUEST, { event });\n }\n dispatchRouterNavigation(lastRoutesRecognized) {\n const nextRouterState = this.serializer.serialize(lastRoutesRecognized.state);\n this.dispatchRouterAction(ROUTER_NAVIGATION, {\n routerState: nextRouterState,\n event: new RoutesRecognized(lastRoutesRecognized.id, lastRoutesRecognized.url, lastRoutesRecognized.urlAfterRedirects, nextRouterState),\n });\n }\n dispatchRouterCancel(event) {\n this.dispatchRouterAction(ROUTER_CANCEL, {\n storeState: this.storeState,\n event,\n });\n }\n dispatchRouterError(event) {\n this.dispatchRouterAction(ROUTER_ERROR, {\n storeState: this.storeState,\n event: new NavigationError(event.id, event.url, `${event}`),\n });\n }\n dispatchRouterNavigated(event) {\n const routerState = this.serializer.serialize(this.router.routerState.snapshot);\n this.dispatchRouterAction(ROUTER_NAVIGATED, { event, routerState });\n }\n dispatchRouterAction(type, payload) {\n this.trigger = RouterTrigger.ROUTER;\n try {\n this.store.dispatch({\n type,\n payload: {\n routerState: this.routerState,\n ...payload,\n event: this.config.routerState === 0 /* RouterState.Full */\n ? payload.event\n : {\n id: payload.event.id,\n url: payload.event.url,\n // safe, as it will just be `undefined` for non-NavigationEnd router events\n urlAfterRedirects: payload.event\n .urlAfterRedirects,\n },\n },\n });\n }\n finally {\n this.trigger = RouterTrigger.NONE;\n }\n }\n reset() {\n this.trigger = RouterTrigger.NONE;\n this.storeState = null;\n this.routerState = null;\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingService, deps: [{ token: i1.Store }, { token: i2.Router }, { token: RouterStateSerializer }, { token: i0.ErrorHandler }, { token: ROUTER_CONFIG }, { token: ACTIVE_RUNTIME_CHECKS }], target: i0.ɵɵFactoryTarget.Injectable }); }\n /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingService }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingService, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i1.Store }, { type: i2.Router }, { type: RouterStateSerializer }, { type: i0.ErrorHandler }, { type: undefined, decorators: [{\n type: Inject,\n args: [ROUTER_CONFIG]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [ACTIVE_RUNTIME_CHECKS]\n }] }] });\n/**\n * Check if the URLs are matching. Accounts for the possibility of trailing \"/\" in url.\n */\nfunction isSameUrl(first, second) {\n return stripTrailingSlash(first) === stripTrailingSlash(second);\n}\nfunction stripTrailingSlash(text) {\n if (text?.length > 0 && text[text.length - 1] === '/') {\n return text.substring(0, text.length - 1);\n }\n return text;\n}\n\n/**\n * Connects the Angular Router to the Store.\n *\n * @usageNotes\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideStore({ router: routerReducer }),\n * provideRouterStore(),\n * ],\n * });\n * ```\n */\nfunction provideRouterStore(config = {}) {\n return makeEnvironmentProviders([\n { provide: _ROUTER_CONFIG, useValue: config },\n {\n provide: ROUTER_CONFIG,\n useFactory: _createRouterConfig,\n deps: [_ROUTER_CONFIG],\n },\n {\n provide: RouterStateSerializer,\n useClass: config.serializer\n ? config.serializer\n : config.routerState === 0 /* RouterState.Full */\n ? FullRouterStateSerializer\n : MinimalRouterStateSerializer,\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => inject(StoreRouterConnectingService);\n },\n },\n StoreRouterConnectingService,\n ]);\n}\n\n/**\n * Connects RouterModule with StoreModule.\n *\n * During the navigation, before any guards or resolvers run, the router will dispatch\n * a ROUTER_NAVIGATION action, which has the following signature:\n *\n * ```\n * export type RouterNavigationPayload = {\n * routerState: SerializedRouterStateSnapshot,\n * event: RoutesRecognized\n * }\n * ```\n *\n * Either a reducer or an effect can be invoked in response to this action.\n * If the invoked reducer throws, the navigation will be canceled.\n *\n * If navigation gets canceled because of a guard, a ROUTER_CANCEL action will be\n * dispatched. If navigation results in an error, a ROUTER_ERROR action will be dispatched.\n *\n * Both ROUTER_CANCEL and ROUTER_ERROR contain the store state before the navigation\n * which can be used to restore the consistency of the store.\n *\n * Usage:\n *\n * ```typescript\n * @NgModule({\n * declarations: [AppCmp, SimpleCmp],\n * imports: [\n * BrowserModule,\n * StoreModule.forRoot(mapOfReducers),\n * RouterModule.forRoot([\n * { path: '', component: SimpleCmp },\n * { path: 'next', component: SimpleCmp }\n * ]),\n * StoreRouterConnectingModule.forRoot()\n * ],\n * bootstrap: [AppCmp]\n * })\n * export class AppModule {\n * }\n * ```\n */\nclass StoreRouterConnectingModule {\n static forRoot(config = {}) {\n return {\n ngModule: StoreRouterConnectingModule,\n providers: [provideRouterStore(config)],\n };\n }\n /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingModule }); }\n /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.0\", ngImport: i0, type: StoreRouterConnectingModule, decorators: [{\n type: NgModule,\n args: [{}]\n }] });\n\nfunction createRouterSelector() {\n return createFeatureSelector(DEFAULT_ROUTER_FEATURENAME);\n}\nfunction getRouterSelectors(selectState = createRouterSelector()) {\n const selectRouterState = createSelector(selectState, (router) => router && router.state);\n const selectRootRoute = createSelector(selectRouterState, (routerState) => routerState && routerState.root);\n const selectCurrentRoute = createSelector(selectRootRoute, (rootRoute) => {\n if (!rootRoute) {\n return undefined;\n }\n let route = rootRoute;\n while (route.firstChild) {\n route = route.firstChild;\n }\n return route;\n });\n const selectFragment = createSelector(selectRootRoute, (route) => route && route.fragment);\n const selectQueryParams = createSelector(selectRootRoute, (route) => route && route.queryParams);\n const selectQueryParam = (param) => createSelector(selectQueryParams, (params) => params && params[param]);\n const selectRouteParams = createSelector(selectCurrentRoute, (route) => route && route.params);\n const selectRouteParam = (param) => createSelector(selectRouteParams, (params) => params && params[param]);\n const selectRouteData = createSelector(selectCurrentRoute, (route) => route && route.data);\n const selectRouteDataParam = (param) => createSelector(selectRouteData, (data) => data && data[param]);\n const selectUrl = createSelector(selectRouterState, (routerState) => routerState && routerState.url);\n const selectTitle = createSelector(selectCurrentRoute, (route) => {\n if (!route?.routeConfig) {\n return undefined;\n }\n return typeof route.routeConfig.title === 'string'\n ? route.routeConfig.title // static title\n : route.title; // resolved title\n });\n return {\n selectCurrentRoute,\n selectFragment,\n selectQueryParams,\n selectQueryParam,\n selectRouteParams,\n selectRouteParam,\n selectRouteData,\n selectRouteDataParam,\n selectUrl,\n selectTitle,\n };\n}\n\n/**\n * DO NOT EDIT\n *\n * This file is automatically generated at build\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DEFAULT_ROUTER_FEATURENAME, FullRouterStateSerializer, MinimalRouterStateSerializer, NavigationActionTiming, ROUTER_CANCEL, ROUTER_CONFIG, ROUTER_ERROR, ROUTER_NAVIGATED, ROUTER_NAVIGATION, ROUTER_REQUEST, RouterStateSerializer, StoreRouterConnectingModule, createRouterSelector, getRouterSelectors, provideRouterStore, routerCancelAction, routerErrorAction, routerNavigatedAction, routerNavigationAction, routerReducer, routerRequestAction };\n","import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HTTP_INTERCEPTORS } from '@angular/common/http';\r\nimport { HttpLogInterceptor } from './http-interceptors/http-log-interceptor';\r\nimport { reducers, metaReducers } from '../core/core.state';\r\nimport { StoreModule } from '@ngrx/store';\r\nimport { EffectsModule } from '@ngrx/effects';\r\nimport { StoreDevtoolsModule } from '@ngrx/store-devtools';\r\nimport { StoreRouterConnectingModule } from '@ngrx/router-store';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n // ngrx\r\n StoreModule.forRoot(reducers, { metaReducers }),\r\n StoreRouterConnectingModule.forRoot(),\r\n StoreDevtoolsModule.instrument({\r\n name: 'fad-saas'\r\n }),\r\n EffectsModule.forRoot([])\r\n ],\r\n providers: [\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: HttpLogInterceptor,\r\n multi: true\r\n }\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class CoreModule {}\r\n","import { ErrorHandler, Injectable } from '@angular/core';\r\nimport { AppInsightsMonitoringService } from './app-insights-monitoring.service';\r\n\r\n\r\n\r\n@Injectable({\r\nprovidedIn: 'root'\r\n})\r\nexport class ErrorHandlerService extends ErrorHandler {\r\nconstructor(private appInsightService: AppInsightsMonitoringService) {\r\nsuper();\r\n}\r\n\r\n\r\n\r\nhandleError(error: Error): void {\r\nthis.appInsightService.logException(error);\r\n}\r\n}\r\n","export const ApiConstants = {\r\n providerDetailsApi: 'v2/providers/search/',\r\n suggestionsBaseApiUrl: 'v2/suggestions/',\r\n locationDetailsApi: 'v1/location/',\r\n providerSearchApi: 'v2/providers/search',\r\n searchWithoutInputApiUrl:\r\n '&page=1&distance=10&sortby=Default&include=ExtendedData,OnlineBookingSupport,NextAvailableTimes,AvailableTimes&maxAppointments=5&facets=all:0&searchMode=All',\r\n addPagesinUrl: 'page=',\r\n addDistanceinUrl: '&distance=',\r\n addSortbyinUrl: '&sortby=Default',\r\n addMaxAppointmentsinUrl: 'maxAppointments=5',\r\n addIncludeOptionsinUrl: '&include=ExtendedData,OnlineBookingSupport,NextAvailableTimes,AvailableTimes&maxAppointments=5',\r\n addIncludeOptionsinUrlForGuidedFlow: '&include=ExtendedData',\r\n addFacetsinUrl: '&facets=all:0',\r\n addsearchModeinUrl: '&searchMode=All', \r\n addProviderRoleTypes: '&providerRoleTypes=Urgent Care|Hospital Based|Non-hospital Based'\r\n};\r\n","import { HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { ActivatedRoute, Params } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { isNumeric } from 'rxjs/internal-compatibility';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.legacy';\r\nimport { AvailabilitySelect } from 'src/app/models/availability-select.enum';\r\nimport { Facet } from 'src/app/models/facet';\r\nimport { FiltersModel, FiltersModelPartialHelper, FacetSummary } from 'src/app/models/filters';\r\nimport { SelectedLocation } from 'src/app/models/location';\r\nimport { MedGroup } from 'src/app/models/medgroup';\r\nimport { SearchFacet } from 'src/app/models/search-facet';\r\nimport { SearchFilter } from 'src/app/models/search-filter';\r\nimport { ApiResponse, ApiResponseCreator } from 'src/app/utils/api-response';\r\nimport { RuntimeConfiguration } from '../configuration-injection.service';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { FilterService, ProviderSearchResponse } from '../filter.service';\r\nimport { ProviderService } from '../provider.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FilterLegacyService extends FilterService {\r\n public showGuidedFlow = false;\r\n public runtimeConfig: RuntimeConfiguration;\r\n public apiConstants: { [key: string]: string };\r\n public apiBaseUrl: string;\r\n private useLegacyAPI = false;\r\n constructor(\r\n protected providerService: ProviderService,\r\n protected configurationService: ConfigurationService,\r\n protected route: ActivatedRoute\r\n ) {\r\n super();\r\n this.showGuidedFlow = this.configurationService.getOnlineSchedulingType() === 'GuidedFlow';\r\n this.runtimeConfig = configurationService.getRuntimeConfiguration();\r\n this.apiBaseUrl = this.runtimeConfig.apiBaseUrl;\r\n this.apiConstants = ApiConstants;\r\n this.useLegacyAPI = this.configurationService?.useLegacyAPI();\r\n }\r\n\r\n getFilterStates(queryParams: Params, filtersModel: FiltersModel, medGroupCode: string = null, searchstring: string = null): FiltersModel {\r\n const bookOnline = queryParams.bookonline ?? false;\r\n const allVisits = queryParams.allVisits ?? false;\r\n const acceptingNewPatients = queryParams.acceptingnew ?? false;\r\n let videoVisits = false;\r\n if (queryParams?.videovisits || searchstring?.trim().toLowerCase().replace(/\\s/g, '').replace(/\\W/g, '') === 'videovisits') {\r\n videoVisits = true;\r\n }\r\n const availability = !queryParams.availability\r\n ? null\r\n : queryParams.availability === '0'\r\n ? AvailabilitySelect.Today\r\n : queryParams.availability === '7'\r\n ? AvailabilitySelect.Next7Days\r\n : queryParams.availability === '14'\r\n ? AvailabilitySelect.Next14Days\r\n : queryParams.availability === '30'\r\n ? AvailabilitySelect.Next30Days\r\n : AvailabilitySelect.None;\r\n const specialties = !queryParams.specialties ? null : this.splitAndMapQueryString(queryParams.specialties);\r\n const affiliations = !queryParams.affiliations ? null : this.splitAndMapAffiliationQueryString(queryParams.affiliations);\r\n const gender = queryParams.gender;\r\n const insurances = !queryParams.insurances ? null : this.splitAndMapQueryString(queryParams.insurances);\r\n const languages = !queryParams.languages ? null : this.splitAndMapQueryString(queryParams.languages);\r\n let searchRadius: number = this.configurationService.getDefaultSearchDistance();\r\n\r\n filtersModel.onlineSchedulingToggle = filtersModel.onlineSchedulingApplied = bookOnline ?? filtersModel.onlineSchedulingApplied;\r\n filtersModel.onlineSchedulingAllVisitToggle = filtersModel.onlineSchedulingAllVisitApplied = allVisits ?? filtersModel.onlineSchedulingAllVisitApplied;\r\n filtersModel.newPatientsToggle = filtersModel.newPatientsApplied = acceptingNewPatients ?? filtersModel.newPatientsApplied;\r\n filtersModel.videoVisitsToggle = filtersModel.videoVisitsApplied = videoVisits ?? filtersModel.videoVisitsApplied;\r\n filtersModel.availabilitySelect = filtersModel.providerAvailability = availability ?? AvailabilitySelect.None;\r\n filtersModel.selectedSpecialties = filtersModel.providerSpecialties = specialties\r\n ? specialties\r\n : filtersModel.selectedSpecialties\r\n ? filtersModel.selectedSpecialties\r\n : [];\r\n filtersModel.selectedHospitals = filtersModel.providerHospitals = affiliations ?? [];\r\n filtersModel.availabilityTitle = availability ?? 'Availability';\r\n\r\n if (medGroupCode) {\r\n const selectedMedgroup = filtersModel.medicalGroupList.find((medGroup: any) => medGroup.value === medGroupCode);\r\n const selectedMedgroupList: FacetSummary[] = [];\r\n selectedMedgroupList.push({ name: selectedMedgroup.label, count: 0, selected: true });\r\n filtersModel.selectedMedicalGroup = filtersModel.providerMedicalGroup = selectedMedgroupList;\r\n\r\n if (filtersModel.providerMedicalGroup) {\r\n searchRadius = this.configurationService.getDefaultSearchDistanceWhenMedGroupFilterApplied();\r\n }\r\n } else {\r\n filtersModel.selectedMedicalGroup = filtersModel.providerMedicalGroup = null;\r\n filtersModel.medicalGroupTitle = 'Medical group';\r\n if (\r\n filtersModel.providerSearchRadius ===\r\n FiltersModelPartialHelper.getRadiusKeyForDistance(this.configurationService.getDefaultSearchDistanceWhenMedGroupFilterApplied())\r\n ) {\r\n filtersModel.providerSearchRadius = filtersModel.searchRadius = FiltersModelPartialHelper.getRadiusKeyForDistance(\r\n this.configurationService.getDefaultSearchDistance()\r\n );\r\n }\r\n }\r\n\r\n if (isNumeric(queryParams.distance) && FiltersModelPartialHelper.hasRadiusKeyForDistance(+queryParams.distance)) {\r\n searchRadius = +queryParams.distance;\r\n }\r\n\r\n filtersModel.genderSelect = filtersModel.providerGender = gender ?? '';\r\n filtersModel.selectedInsurances = filtersModel.providerInsurances = insurances ?? [];\r\n filtersModel.selectedLanguages = filtersModel.providerLanguages = languages ?? [];\r\n FiltersModelPartialHelper.setRadiusKeyForDistance(filtersModel, searchRadius);\r\n return filtersModel;\r\n }\r\n\r\n createQueryParams(filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n let queryParams: Params = {};\r\n\r\n queryParams = this.checkForToggleSpecialtiesHospitals(queryParams, filtersModel);\r\n queryParams = this.checkForAvailability(queryParams, filtersModel);\r\n queryParams = this.checkForGenderInsuranceAndLanguages(queryParams, filtersModel);\r\n queryParams = this.checkForLocationAndDistanceParams(queryParams, filtersModel);\r\n queryParams = this.checkForProviderRoleType(queryParams, filtersModel);\r\n queryParams = this.checkForSortBy(queryParams, filtersModel);\r\n\r\n return queryParams;\r\n }\r\n\r\n private checkForSortBy(queryParams: Params, filtersModel: Partial<FiltersModel>): Params {\r\n if (filtersModel.sortBy) {\r\n queryParams.sortby = filtersModel.sortBy;\r\n }\r\n return queryParams;\r\n }\r\n\r\n private checkForGenderInsuranceAndLanguages(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n if (filtersModel.providerGender) {\r\n queryParams.gender = filtersModel.providerGender;\r\n }\r\n if (filtersModel.providerInsurances && filtersModel.providerInsurances.length > 0) {\r\n queryParams.insurances = filtersModel.providerInsurances.map((x) => x.name).join('|');\r\n }\r\n if (filtersModel.providerLanguages && filtersModel.providerLanguages.length > 0) {\r\n queryParams.languages = filtersModel.providerLanguages.map((x) => x.name).join('|');\r\n }\r\n\r\n return queryParams;\r\n }\r\n\r\n private checkForToggleSpecialtiesHospitals(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n if (filtersModel.onlineSchedulingApplied) {\r\n queryParams.bookonline = filtersModel.onlineSchedulingApplied;\r\n }\r\n if (filtersModel.videoVisitsApplied) {\r\n queryParams.videovisits = filtersModel.videoVisitsApplied;\r\n }\r\n if (filtersModel.newPatientsApplied) {\r\n queryParams.acceptingnew = filtersModel.newPatientsApplied;\r\n }\r\n if (filtersModel.providerSpecialties && filtersModel.providerSpecialties.length > 0) {\r\n queryParams.specialties = filtersModel.providerSpecialties.map((x) => x.name).join('|');\r\n }\r\n if (filtersModel.providerHospitals && filtersModel.providerHospitals.length > 0) {\r\n queryParams.affiliations = filtersModel.providerHospitals.map((x) => x.name.replace('\\'', '\\'')).join('|');\r\n }\r\n if (filtersModel.onlineSchedulingAllVisitApplied) {\r\n queryParams.allVisits = filtersModel.onlineSchedulingAllVisitApplied;\r\n }\r\n\r\n return queryParams;\r\n }\r\n\r\n private checkForAvailability(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n if (filtersModel.providerAvailability) {\r\n queryParams.availability =\r\n filtersModel.providerAvailability === AvailabilitySelect.Today\r\n ? 0\r\n : filtersModel.providerAvailability === AvailabilitySelect.Next7Days\r\n ? 7\r\n : filtersModel.providerAvailability === AvailabilitySelect.Next14Days\r\n ? 14\r\n : filtersModel.providerAvailability === AvailabilitySelect.Next30Days\r\n ? 30\r\n : null;\r\n }\r\n\r\n return queryParams;\r\n }\r\n private checkForLocationAndDistanceParams(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n const selectedDistance = FiltersModelPartialHelper.getDistanceForSearchRadiusKey(filtersModel);\r\n if (\r\n filtersModel.providerMedicalGroup.length > 0 &&\r\n selectedDistance !== this.configurationService.getDefaultSearchDistanceWhenMedGroupFilterApplied()\r\n ) {\r\n queryParams.distance = selectedDistance;\r\n } else if (filtersModel.providerMedicalGroup.length == 0 && selectedDistance !== this.configurationService.getDefaultSearchDistance()) {\r\n queryParams.distance = selectedDistance;\r\n }\r\n if (this.route.snapshot.queryParamMap.has('location')) {\r\n queryParams.location = this.route.snapshot.queryParamMap.get('location');\r\n }\r\n return queryParams;\r\n }\r\n\r\n // Adding Provider role types dynamic to queryParams\r\n private checkForProviderRoleType(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n queryParams = this.checkForMedicalGroupSelection(queryParams, filtersModel);\r\n queryParams = this.checkForAutoSelectionCheckBoxSpecialties(queryParams, filtersModel);\r\n queryParams = this.checkForOtherConditions(queryParams, filtersModel);\r\n\r\n return queryParams;\r\n }\r\n\r\n // Medical Group Provider role Check box validation for auto selection\r\n checkForMedicalGroupSelection(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n let needToIncludeRoleType = false;\r\n if (filtersModel.providerMedicalGroup?.length > 0) {\r\n const medicalGroupList = FiltersModelPartialHelper.getMedGroups(this.configurationService.getMedGroupCodes());\r\n for (const providerMedicalGroup of filtersModel.providerMedicalGroup) {\r\n const currentGroup = medicalGroupList.filter((s) => s.label === providerMedicalGroup.name)[0];\r\n if (currentGroup?.enableProviderRoleTypes) {\r\n needToIncludeRoleType = true;\r\n }\r\n }\r\n\r\n if (needToIncludeRoleType) {\r\n if (sessionStorage.getItem('manualSelection') === 'false') {\r\n delete queryParams.includeProviderRoleTypes;\r\n } else {\r\n queryParams.includeProviderRoleTypes = true;\r\n filtersModel.includeProviderRoleType = true;\r\n }\r\n } else {\r\n delete queryParams.includeProviderRoleTypes;\r\n }\r\n }\r\n\r\n return queryParams;\r\n }\r\n\r\n // Specialties Provider role Check box validation for auto selection\r\n checkForAutoSelectionCheckBoxSpecialties(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n if (\r\n this.configurationService.getAutoCheckBoxSelectionSpecalities() &&\r\n filtersModel.providerSpecialties &&\r\n filtersModel.providerSpecialties.length > 0\r\n ) {\r\n const findAutoSelectSpecialties = filtersModel.providerSpecialties.filter((val) => this.configurationService.getAutoCheckBoxSelectionSpecalities().includes(val.name));\r\n\r\n if (\r\n findAutoSelectSpecialties.length > 0 ||\r\n (findAutoSelectSpecialties.length <= 0 && sessionStorage.getItem('manualSelection') === 'true')\r\n ) {\r\n queryParams.includeProviderRoleTypes = true;\r\n }\r\n }\r\n\r\n if (\r\n !this.configurationService\r\n .getAutoCheckBoxSelectionSpecalities()\r\n .includes(filtersModel.specialtyFilterText?.replace('-', ' ').toTitleCase()) &&\r\n sessionStorage.getItem('prevSpecialityisAutoTgrChkbx') === 'true'\r\n ) {\r\n delete queryParams.includeProviderRoleTypes;\r\n sessionStorage.removeItem('prevSpecialityisAutoTgrChkbx');\r\n }\r\n\r\n return queryParams;\r\n }\r\n\r\n // Provider role Check box validation for all other Auto selection condition\r\n checkForOtherConditions(queryParams: Params, filtersModel: Partial<FiltersModel>): Params | null | undefined {\r\n if (\r\n (!filtersModel.providerMedicalGroup || filtersModel.providerMedicalGroup.length === 0) &&\r\n (!filtersModel.providerSpecialties || filtersModel.providerSpecialties.length === 0)\r\n ) {\r\n if (sessionStorage.getItem('manualSelection') === 'true') {\r\n queryParams.includeProviderRoleTypes = true;\r\n } else {\r\n delete queryParams.includeProviderRoleTypes;\r\n }\r\n }\r\n\r\n return queryParams;\r\n }\r\n\r\n protected getFacetCount(searchFilters: SearchFilter, facetType: string, facetValue: string): number {\r\n return (\r\n searchFilters.facets\r\n .find((facet: SearchFacet) => facet.type.toLowerCase() === facetType.toLowerCase())\r\n ?.values.find((val: Facet) => val.value.toLowerCase() === facetValue.toLowerCase())?.count ?? 0\r\n );\r\n }\r\n\r\n protected getFacetValues(searchFilters: SearchFilter, facetType: string): FacetSummary[] {\r\n return (\r\n searchFilters.facets\r\n .find((facet: SearchFacet) => facet.type === facetType)\r\n ?.values.map((val: Facet) => ({\r\n name: val.value,\r\n count: val.count,\r\n selected: val.selected\r\n } as FacetSummary)) ?? []\r\n );\r\n }\r\n\r\n getFacetInfo(searchFilters: SearchFilter, filtersModel: FiltersModel): FiltersModel {\r\n filtersModel.searchDone = true;\r\n\r\n const divisionCodes = this.configurationService.getDivisionCodes();\r\n if (divisionCodes.length > 0 && divisionCodes[0].toString() === 'dignity-health' && this.configurationService.getMarketCodes()[0] === undefined) {\r\n this.getNewAppointmentTypes(searchFilters, filtersModel);\r\n }\r\n else\r\n {\r\n filtersModel.onlineSchedulingProvidersCount = !this.useLegacyAPI\r\n ? this.getFacetCount(searchFilters, 'bookOnlineAvailable', 'true')\r\n : this.getFacetCount(searchFilters, 'bookOnline', 'True');\r\n filtersModel.videoVisitsProvidersCount = this.getFacetCount(searchFilters, 'videoCalls', 'True'); \r\n }\r\n \r\n filtersModel.newPatientsProvidersCount = this.getFacetCount(searchFilters, 'patients', 'True');\r\n filtersModel.todayCount = this.getFacetCount(searchFilters, 'appointmentDatesBuckets', AvailabilitySelect.Today);\r\n filtersModel.next7Count = this.getFacetCount(searchFilters, 'appointmentDatesBuckets', AvailabilitySelect.Next7Days);\r\n filtersModel.next14Count = this.getFacetCount(searchFilters, 'appointmentDatesBuckets', AvailabilitySelect.Next14Days);\r\n filtersModel.next30Count = this.getFacetCount(searchFilters, 'appointmentDatesBuckets', '15 days and later');\r\n\r\n \r\n\r\n filtersModel.availableSpecialties = this.getFacetValues(searchFilters, 'specialties');\r\n filtersModel.availableSpecialties.sort((prev, next) => prev.name.localeCompare(next.name));\r\n if (filtersModel.availableSpecialties.length > 0) {\r\n filtersModel.selectedSpecialties = filtersModel.providerSpecialties = filtersModel.availableSpecialties.filter(\r\n (facet: FacetSummary) => facet.selected\r\n );\r\n }\r\n\r\n filtersModel.specialtyFilterText =\r\n filtersModel.providerSpecialties.length > 1\r\n ? `${filtersModel.providerSpecialties.length} specialties`\r\n : filtersModel.providerSpecialties[0]?.name ?? 'Specialty';\r\n\r\n filtersModel.availableHospitals = this.getFacetValues(searchFilters, 'hospitals');\r\n filtersModel.availableHospitals.sort((prev, next) => prev.name.localeCompare(next.name));\r\n if (filtersModel.availableHospitals.length > 0) {\r\n filtersModel.selectedHospitals = filtersModel.providerHospitals = filtersModel.availableHospitals.filter(\r\n (facet: FacetSummary) => facet.selected\r\n );\r\n }\r\n\r\n filtersModel.hospitalFilterText =\r\n filtersModel.providerHospitals.length > 1\r\n ? `${filtersModel.providerHospitals.length} hospital affiliations`\r\n : filtersModel.providerHospitals[0]?.name ?? 'Hospital Affiliation';\r\n\r\n filtersModel.femaleCount = this.getFacetCount(searchFilters, 'genders', 'F');\r\n filtersModel.maleCount = this.getFacetCount(searchFilters, 'genders', 'M');\r\n filtersModel.nonbinaryCount = this.getFacetCount(searchFilters, 'genders', 'N');\r\n filtersModel.otherCount = this.getFacetCount(searchFilters, 'genders', 'O');\r\n\r\n filtersModel.availableInsurances = this.getFacetValues(searchFilters, 'insurances');\r\n filtersModel.selectedInsurances = filtersModel.providerInsurances = filtersModel.availableInsurances.filter(\r\n (facet: FacetSummary) => facet.selected\r\n );\r\n\r\n filtersModel.availableLanguages = this.getFacetValues(searchFilters, 'languages');\r\n filtersModel.availableLanguages.sort((prev, next) => prev.name.localeCompare(next.name));\r\n filtersModel.selectedLanguages = filtersModel.providerLanguages = filtersModel.availableLanguages.filter(\r\n (facet: FacetSummary) => facet.selected\r\n );\r\n\r\n filtersModel.insuranceFilterText =\r\n filtersModel.providerInsurances.length > 1\r\n ? `${filtersModel.providerInsurances.length} insurances`\r\n : filtersModel.providerInsurances[0]?.name ?? 'Insurances accepted';\r\n\r\n\r\n return JSON.parse(JSON.stringify(filtersModel));\r\n }\r\n\r\n getNewAppointmentTypes(searchFilters, filtersModel) {\r\n const appointmentTypes = this.getFacetValues(searchFilters, 'appointmentTypes');\r\n if (appointmentTypes != null && appointmentTypes.length > 0) {\r\n appointmentTypes.forEach(e => {\r\n if (e.name == 'online scheduling for all visits') {\r\n filtersModel.onlineSchedulingAllVisitProvidersCount = e.count;\r\n }\r\n if (e.name == 'online scheduling for new patients') {\r\n filtersModel.onlineSchedulingProvidersCount = e.count;\r\n }\r\n if (e.name == 'online scheduling for video visits') {\r\n filtersModel.videoVisitsProvidersCount = e.count;\r\n }\r\n });\r\n }\r\n return filtersModel;\r\n }\r\n\r\n getSortingValue(sortParam: string): string {\r\n let sortName = '';\r\n switch (sortParam) {\r\n case 'lastName-asc': {\r\n sortName = 'LastName';\r\n break;\r\n }\r\n case 'lastName-desc': {\r\n sortName = 'LastNameInverted';\r\n break;\r\n }\r\n default: {\r\n sortName = sortParam;\r\n break;\r\n }\r\n }\r\n return sortName.toLowerCase();\r\n }\r\n\r\n convertFilterModelToQueryString(\r\n searchTerm: string,\r\n locationInfo: SelectedLocation,\r\n filtersModel: FiltersModel,\r\n searchFrom: string,\r\n searchFilters: SearchFilter = null,\r\n pageNumber = 1,\r\n includeProviderRole?: boolean\r\n ): [string, HttpParams] {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.setSanitizedKey(this.apiConstants.addPagesinUrl, pageNumber);\r\n\r\n const query = `${this.apiBaseUrl}${this.apiConstants.providerSearchApi}`;\r\n if (searchTerm && searchTerm.toLowerCase().indexOf('video') < 0) {\r\n httpParams = httpParams.set('query', searchTerm);\r\n }\r\n\r\n httpParams = httpParams.setKeyValue(this.apiConstants.addIncludeOptionsinUrlForGuidedFlow);\r\n\r\n if (!this.showGuidedFlow) {\r\n httpParams = httpParams.setKeyValue(this.apiConstants.addMaxAppointmentsinUrl);\r\n }\r\n\r\n httpParams = httpParams.setKeyValue(this.apiConstants.addFacetsinUrl);\r\n httpParams = httpParams.setKeyValue(this.apiConstants.addsearchModeinUrl);\r\n\r\n httpParams = this.setSortByParams(httpParams, searchFilters);\r\n\r\n httpParams = this.filterModelParam(httpParams, filtersModel, locationInfo);\r\n\r\n httpParams = this.setLocationParam(httpParams, locationInfo);\r\n\r\n if (includeProviderRole) {\r\n httpParams = httpParams.setKeyValue(this.apiConstants.addProviderRoleTypes);\r\n }\r\n return [query, httpParams];\r\n }\r\n\r\n setLocationParam(httpParams: HttpParams, locationInfo: SelectedLocation): HttpParams {\r\n if (locationInfo && (locationInfo.name || locationInfo.city || locationInfo.state || locationInfo.zip || locationInfo.latitude || locationInfo.longitude)) {\r\n httpParams = httpParams.setNonNull('name', locationInfo.name);\r\n httpParams = httpParams.setNonNull('city', locationInfo.city);\r\n httpParams = httpParams.setNonNull('state', locationInfo.state);\r\n if (locationInfo.zip) {\r\n httpParams = httpParams.setNonNull('zip', locationInfo.zip);\r\n }\r\n httpParams = httpParams.setNonNull('latitude', locationInfo.latitude);\r\n httpParams = httpParams.setNonNull('longitude', locationInfo.longitude);\r\n }\r\n return httpParams;\r\n }\r\n\r\n setSortByParams(httpParams: HttpParams, searchFilters: SearchFilter): HttpParams {\r\n if (searchFilters?.sortBy) {\r\n if (!isNumeric(searchFilters.sortBy)) {\r\n const sortingOptions = this.configurationService.getSortingConfig();\r\n const sortName = this.getSortingValue(searchFilters.sortBy);\r\n const selectedOption = sortingOptions.options.filter((s) => s.name.toLowerCase() === sortName)[0];\r\n searchFilters.sortBy = selectedOption.value;\r\n }\r\n httpParams = httpParams.setNonString(\r\n 'sortby',\r\n searchFilters.sortBy\r\n );\r\n } else if (this.route.snapshot.queryParamMap.get('sortby')) {\r\n const sortBy = this.route.snapshot.queryParamMap.get('sortby');\r\n const sortingOption = this.configurationService.getSortingOptionByQueryParam(sortBy);\r\n if (sortingOption) {\r\n httpParams = httpParams.setNonString(\r\n 'sortby',\r\n sortingOption.value\r\n );\r\n httpParams = httpParams.setNonString('sortby', sortingOption.value);\r\n }\r\n }\r\n return httpParams;\r\n }\r\n\r\n filterModelParam(httpParams: HttpParams, filtersModel: FiltersModel, locationInfo: SelectedLocation): HttpParams {\r\n if (filtersModel) {\r\n filtersModel = this.mapMedgroupIfNeeded(filtersModel);\r\n\r\n let distanceMapping =\r\n FiltersModelPartialHelper.getDistanceForProviderSearchRadiusKey(filtersModel) ??\r\n this.configurationService.getDefaultSearchDistance();\r\n\r\n if (filtersModel.providerMedicalGroup) {\r\n distanceMapping =\r\n FiltersModelPartialHelper.getDistanceForProviderSearchRadiusKey(filtersModel) ??\r\n this.configurationService.getDefaultSearchDistanceWhenMedGroupFilterApplied();\r\n }\r\n\r\n if (this.configurationService.showSearchRadiusFilter() && locationInfo) {\r\n httpParams = httpParams.setSanitizedKey(this.apiConstants.addDistanceinUrl, distanceMapping);\r\n }\r\n\r\n if (filtersModel.onlineSchedulingApplied) {\r\n httpParams = httpParams.setNonString('bookOnline', true);\r\n }\r\n\r\n if (filtersModel.onlineSchedulingAllVisitApplied) {\r\n httpParams = httpParams.setNonString('allVisits', true);\r\n }\r\n\r\n if (filtersModel.providerMedicalGroup && filtersModel.providerMedicalGroup.length > 0) {\r\n if (filtersModel.providerMedicalGroup.length > 1) {\r\n httpParams = httpParams.set('medgroup', filtersModel.providerMedicalGroup.map((x) => x.name).join('|'));\r\n } else {\r\n httpParams = httpParams.set('medgroup', filtersModel.providerMedicalGroup[0].name);\r\n }\r\n }\r\n\r\n if (filtersModel.videoVisitsApplied) {\r\n httpParams = httpParams.set('videoCalls', 'True');\r\n }\r\n\r\n if (filtersModel.newPatientsApplied) {\r\n httpParams = httpParams.set('patients', 'True');\r\n }\r\n\r\n if (filtersModel.availabilitySelect !== undefined && filtersModel.availabilitySelect !== AvailabilitySelect.None) {\r\n if (filtersModel.availabilitySelect === AvailabilitySelect.Next30Days) {\r\n httpParams = httpParams.set('appointmentDatesBuckets', '15 days and later');\r\n } else {\r\n httpParams = httpParams.set('appointmentDatesBuckets', filtersModel.availabilitySelect);\r\n }\r\n }\r\n httpParams = this.providerFilterParam(httpParams, filtersModel);\r\n }\r\n return httpParams;\r\n }\r\n\r\n providerFilterParam(httpParams: HttpParams, filtersModel: FiltersModel): HttpParams {\r\n if (filtersModel.providerSpecialties?.length > 0) {\r\n httpParams = httpParams.setPipeDelimitedArray(\r\n 'specialties',\r\n filtersModel.providerSpecialties.map((x) => x.name)\r\n );\r\n }\r\n\r\n if (filtersModel.providerMedicalGroup?.length > 0) {\r\n httpParams = httpParams.setPipeDelimitedArray(\r\n 'medgroup',\r\n filtersModel.providerMedicalGroup.map((x) => x.name)\r\n );\r\n }\r\n\r\n if (filtersModel.providerHospitals?.length > 0) {\r\n httpParams = httpParams.setPipeDelimitedArray(\r\n 'facilities',\r\n filtersModel.providerHospitals.map((x) => x.name)\r\n );\r\n }\r\n\r\n if (filtersModel.providerInsurances?.length > 0) {\r\n httpParams = httpParams.setPipeDelimitedArray(\r\n 'insurances',\r\n filtersModel.providerInsurances.map((x) => x.name)\r\n );\r\n }\r\n\r\n if (filtersModel.providerLanguages?.length > 0) {\r\n httpParams = httpParams.setPipeDelimitedArray(\r\n 'languages',\r\n filtersModel.providerLanguages.map((x) => x.name)\r\n );\r\n }\r\n\r\n if (filtersModel.providerGender === 'female') {\r\n httpParams = httpParams.set('gender', 'F');\r\n }\r\n if (filtersModel.providerGender === 'male') {\r\n httpParams = httpParams.set('gender', 'M');\r\n }\r\n if (filtersModel.providerGender === 'non-binary') {\r\n httpParams = httpParams.set('gender', 'N');\r\n }\r\n if (filtersModel.providerGender === 'other') {\r\n httpParams = httpParams.set('gender', 'O');\r\n }\r\n return httpParams;\r\n }\r\n\r\n mapMedgroupIfNeeded(filtersModel: FiltersModel): FiltersModel {\r\n const medGroups = this.configurationService.getMedGroupCodes();\r\n\r\n if (filtersModel.providerMedicalGroup?.length > 0) {\r\n let isMappingNeeded = false;\r\n\r\n for (const pmg of filtersModel.providerMedicalGroup) {\r\n isMappingNeeded =\r\n medGroups.filter((group: MedGroup) => group.code === pmg.name).length === 0;\r\n\r\n if (isMappingNeeded) {break;}\r\n }\r\n\r\n if (isMappingNeeded) {\r\n for (const pmg of filtersModel.providerMedicalGroup) {\r\n const medgroupItem = medGroups.filter((group: MedGroup) => group.title === pmg.name)[0];\r\n pmg.name = medgroupItem.code;\r\n }\r\n }\r\n }\r\n\r\n return filtersModel;\r\n }\r\n\r\n getTypedFilterSearchResults(\r\n searchTerm: string,\r\n locationInfo: SelectedLocation,\r\n filtersModel: FiltersModel,\r\n searchFrom: string,\r\n searchFilters?: SearchFilter,\r\n pageNumber = 1,\r\n searchSessionId: string = null,\r\n includeProviderRole?: boolean\r\n ): Observable<ApiResponse<ProviderSearchResponse>> {\r\n const [url, tempParams] = this.convertFilterModelToQueryString(\r\n searchTerm,\r\n locationInfo,\r\n filtersModel,\r\n searchFrom,\r\n searchFilters,\r\n pageNumber,\r\n includeProviderRole\r\n );\r\n let params = tempParams;\r\n\r\n if (searchSessionId) {\r\n params = params.set('searchSessionId', searchSessionId);\r\n }\r\n\r\n return this.providerService.getTypedFilterSearchResults<ApiResponse<ProviderSearchResponse>>(url, params).pipe(\r\n catchError(() => ApiResponseCreator.createObservable<ProviderSearchResponse>(\r\n {\r\n providers: []\r\n } as ProviderSearchResponse,\r\n false\r\n ))\r\n );\r\n }\r\n\r\n getFilteredSearchResults(\r\n searchTerm: string,\r\n locationInfo: SelectedLocation,\r\n filtersModel: FiltersModel,\r\n searchFrom: string,\r\n searchFilters: SearchFilter = null,\r\n pageNumber = 1\r\n ) {\r\n const [url, params] = this.convertFilterModelToQueryString(searchTerm, locationInfo, filtersModel, searchFrom, searchFilters, pageNumber);\r\n return this.providerService.getFilteredSearchResults(url, params);\r\n }\r\n\r\n splitAndMapQueryString(queryString: string): FacetSummary[] {\r\n return decodeURIComponent(queryString)\r\n .split('|')\r\n .map((name: string) => ({ name } as FacetSummary));\r\n }\r\n\r\n splitAndMapAffiliationQueryString(queryString: string): FacetSummary[] {\r\n return queryString.split('|').map(\r\n (name: string) =>\r\n ({\r\n name: name.replace('Baylor St. Lukes Medical Center - Houston, TX', 'Baylor St. Luke\\'s Medical Center - Houston, TX')\r\n } as FacetSummary)\r\n );\r\n }\r\n\r\n handleManualProviderRoleSelectionProcess(filtersModel: FiltersModel): void {\r\n const medicalGroupList = FiltersModelPartialHelper.getMedGroups(this.configurationService.getMedGroupCodes());\r\n filtersModel.selectedMedicalGroup?.forEach((medGroup) => {\r\n const isProviderRoleGroup = medicalGroupList.some(\r\n (medList) => medList.label === medGroup['label'] && medList.enableProviderRoleTypes\r\n );\r\n if (isProviderRoleGroup) {\r\n sessionStorage.removeItem('manualSelection');\r\n }\r\n });\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.new';\r\nimport { RuntimeConfiguration } from '../configuration-injection.service';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { ProviderService } from '../provider.service';\r\nimport { FilterLegacyService } from './filter.legacy.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FilterNewService extends FilterLegacyService {\r\n public showGuidedFlow = false;\r\n public runtimeConfig: RuntimeConfiguration;\r\n\r\n constructor(\r\n protected providerService: ProviderService,\r\n protected configurationService: ConfigurationService,\r\n protected route: ActivatedRoute\r\n ) {\r\n super(providerService, configurationService, route);\r\n this.apiBaseUrl = this.runtimeConfig.newApiBaseUrl;\r\n this.apiConstants = ApiConstants;\r\n }\r\n}\r\n","import { ActivatedRoute } from '@angular/router';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { ProviderService } from '../provider.service';\r\nimport { FilterLegacyService } from './filter.legacy.service';\r\nimport { FilterNewService } from './filter.new.service';\r\n\r\nexport function FilterServiceFactory(providerService: ProviderService, configService: ConfigurationService, route: ActivatedRoute) {\r\n if (configService.useLegacyAPI()) {\r\n return new FilterLegacyService(providerService, configService, route);\r\n }\r\n return new FilterNewService(providerService, configService, route);\r\n}\r\n","import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { catchError, concatMap, map, tap } from 'rxjs/operators';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.legacy';\r\nimport { GlobalParams } from 'src/app/global-params';\r\nimport { ApiResponse } from 'src/app/utils/api-response';\r\nimport { RuntimeConfiguration } from '../configuration-injection.service';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { LocationByIpResult, LocationDetailResult, LocationSuggestionResult, SelectedLocation } from '../../models/location';\r\nimport { LocationService } from '../location.service';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LocationLegacyService extends LocationService {\r\n apiOptions: { headers: HttpHeaders };\r\n runtimeConfig: RuntimeConfiguration;\r\n public apiConstants: { [key: string]: string };\r\n public apiBaseUrl: string;\r\n constructor(public http: HttpClient, public configurationService: ConfigurationService) {\r\n super();\r\n this.runtimeConfig = this.configurationService.getRuntimeConfiguration();\r\n this.apiBaseUrl = this.runtimeConfig.apiBaseUrl;\r\n this.apiConstants = ApiConstants;\r\n this.apiOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'x-tenant': this.configurationService.getTenantCode(),\r\n 'ocp-apim-subscription-key': this.runtimeConfig.apimSubscriptionKey\r\n })\r\n };\r\n }\r\n\r\n getTypedLocationSuggestions(location: string, sessionToken?: string): Observable<ApiResponse<LocationSuggestionResult[]>> {\r\n const zipPattern = /\\d+/g;\r\n if (location?.match(zipPattern) && location?.split(',').length < 3 && !GlobalParams.isNeighborhoodSearch) {\r\n location = location.replace(/^\\D+/g, '').trim();\r\n }\r\n const token = sessionToken ?? window.sessionStorage.getItem(SessionObjectNames.LocationSessionId) ?? '';\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('latitude', null);\r\n httpParams = httpParams.append('longitude', null);\r\n httpParams = httpParams.append('api-version', '2');\r\n httpParams = httpParams.append('sessionToken', token);\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${encodeURIComponent(location)}/locations`;\r\n\r\n return this.http.get<ApiResponse<LocationSuggestionResult[]>>(url, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getLocationSuggestions(query: string, sessionToken = '') {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('latitude', null);\r\n httpParams = httpParams.append('longitude', null);\r\n httpParams = httpParams.append('api-version', '2');\r\n httpParams = httpParams.append('sessionToken', sessionToken);\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${query}/locations`;\r\n return this.http.get(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getLocationByIP(): Observable<ApiResponse<LocationByIpResult>> {\r\n const LOCATION_DETAILS_API = `${this.apiBaseUrl}${this.apiConstants.locationDetailsApi}`;\r\n return this.http.get<ApiResponse<LocationByIpResult>>(`${LOCATION_DETAILS_API}`, this.apiOptions);\r\n }\r\n\r\n getTypedLocationDetail(placeId: string): Observable<ApiResponse<LocationDetailResult>> {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('api-version', '2');\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${placeId}/location-detail`;\r\n\r\n return this.http\r\n .get<ApiResponse<LocationDetailResult>>(url, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n })\r\n .pipe(\r\n tap((response) => {\r\n if (response.result) {\r\n window.sessionStorage.setItem(SessionObjectNames.LocationSessionId, response.result.sessionToken);\r\n }\r\n })\r\n );\r\n }\r\n\r\n getLocationDetail(placeId: string) {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('api-version', '2');\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${placeId}/location-detail`;\r\n return this.http.get<ApiResponse<LocationDetailResult>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n public queryLocation(location: string): Observable<SelectedLocation> {\r\n if (!location) {\r\n return of(null);\r\n }\r\n return this.getTypedLocationSuggestions(location).pipe(\r\n catchError(() => of(null)),\r\n concatMap((suggestionResponse: ApiResponse<LocationSuggestionResult[]>) => {\r\n if (!suggestionResponse.isValid || suggestionResponse.result.length === 0) {\r\n return of({ isLocationValid: false } as SelectedLocation);\r\n }\r\n const zipPattern = /\\d+/g;\r\n\r\n let placeId = '';\r\n const isZipExist = location.match(zipPattern);\r\n if (isZipExist) {\r\n placeId = suggestionResponse.result[0].googlePlaceId;\r\n } else {\r\n placeId = suggestionResponse.result.find((l) =>\r\n l.locationName\r\n .replace(/[,.]|-|\\s/g, '')\r\n .toLowerCase()\r\n .trim()\r\n .includes(\r\n location\r\n .replace(/[,.]|-|\\s/g, '')\r\n .toLowerCase()\r\n .trim()\r\n )\r\n ).googlePlaceId;\r\n }\r\n return this.getTypedLocationDetail(placeId).pipe(\r\n map((detailResponse) => {\r\n GlobalParams.isNeighborhoodSearch = false;\r\n return {\r\n googlePlaceId: placeId,\r\n name: detailResponse.result.name + (isZipExist && detailResponse.result.zip ? ' ' + detailResponse.result.zip : ''),\r\n neighborhood: detailResponse.result.neighborhood ? detailResponse.result.neighborhood : '',\r\n city: detailResponse.result.city,\r\n state: detailResponse.result.state,\r\n latitude: detailResponse.result.latitude,\r\n longitude: detailResponse.result.longitude,\r\n zip: isZipExist ? detailResponse.result.zip : '',\r\n isLocationValid: true\r\n } as SelectedLocation;\r\n }),\r\n catchError(() => of(null))\r\n );\r\n })\r\n );\r\n }\r\n}\r\n","import { HttpClient, HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, of } from 'rxjs';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.new';\r\nimport { GlobalParams } from 'src/app/global-params';\r\nimport { ILocationAutoSuggSearchParams } from 'src/app/models/configuration';\r\nimport { LocationByIpResult, LocationDetailResult, LocationSuggestionResult, SelectedLocation } from 'src/app/models/location';\r\nimport { SessionObjectNames } from 'src/app/models/stringconst-names';\r\nimport { ApiResponse } from 'src/app/utils/api-response';\r\nimport { ConfigurationService } from '..//configuration.service';\r\nimport { LocationLegacyService } from './location.legacy.service';\r\nimport { catchError, concatMap, map, tap } from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LocationNewService extends LocationLegacyService {\r\n constructor(public http: HttpClient, public configurationService: ConfigurationService) {\r\n super(http, configurationService);\r\n this.apiBaseUrl = this.runtimeConfig.newApiBaseUrl;\r\n this.apiConstants = ApiConstants;\r\n }\r\n getLocationByIP(): Observable<ApiResponse<LocationByIpResult>> {\r\n const LOCATION_DETAILS_API = `${this.apiBaseUrl}${this.apiConstants.locationDetailsApi}`;\r\n return this.http.get<ApiResponse<LocationByIpResult>>(`${LOCATION_DETAILS_API}`, this.apiOptions);\r\n }\r\n\r\n getTypedLocationSuggestions(location: string, sessionToken?: string): Observable<ApiResponse<LocationSuggestionResult[]>> {\r\n const zipPattern = /\\d+/g;\r\n if (location?.match(zipPattern) && location?.split(',').length < 3 && !GlobalParams.isNeighborhoodSearch) {\r\n location = location.replace(/^\\D+/g, '').trim();\r\n }\r\n\r\n let httpParams = this.getLocationSearchParams(sessionToken);\r\n httpParams = httpParams.append('searchQuery', location.replace(/\\s/g, '-'));\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}locations`;\r\n\r\n return this.http.get<ApiResponse<LocationSuggestionResult[]>>(url, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getLocationSearchParams(sessionToken?: string): HttpParams {\r\n let httpParams = new HttpParams();\r\n const token = sessionToken ?? window.sessionStorage.getItem(SessionObjectNames.LocationSessionId) ?? '';\r\n httpParams = httpParams.append('api-version', '2');\r\n httpParams = httpParams.append('sessionToken', token);\r\n\r\n if (Object.keys(this.configurationService.getAutoSuggLocationSearchParams()).length > 0) {\r\n httpParams = this.autoSuggLocationSearchParams(this.configurationService.getAutoSuggLocationSearchParams(), httpParams);\r\n } else {\r\n httpParams = httpParams.append('latitude', null);\r\n httpParams = httpParams.append('longitude', null);\r\n }\r\n return httpParams;\r\n }\r\n\r\n autoSuggLocationSearchParams(_suggParams: ILocationAutoSuggSearchParams, httpParams: HttpParams): HttpParams {\r\n // All three Params are Mandaorty as per US\r\n if (_suggParams.latitude && _suggParams.longitude && _suggParams.radius) {\r\n httpParams = httpParams.set('latitude', _suggParams.latitude);\r\n httpParams = httpParams.set('longitude', _suggParams.longitude);\r\n httpParams = httpParams.set('radius', _suggParams.radius);\r\n httpParams = httpParams.set('strictbounds', true);\r\n }\r\n\r\n return httpParams;\r\n }\r\n\r\n getLocationDetail(placeId: string) {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('locationId', placeId);\r\n httpParams = httpParams.append('api-version', '2');\r\n const detailUrl = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}location-detail`;\r\n return this.http.get<ApiResponse<LocationDetailResult>>(detailUrl.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getTypedLocationDetail(placeId: string): Observable<ApiResponse<LocationDetailResult>> {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('locationId', placeId);\r\n httpParams = httpParams.append('api-version', '2');\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}location-detail`;\r\n\r\n return this.http\r\n .get<ApiResponse<LocationDetailResult>>(url, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n })\r\n .pipe(\r\n tap((response) => {\r\n if (response.result) {\r\n window.sessionStorage.setItem(SessionObjectNames.LocationSessionId, response.result.sessionToken);\r\n }\r\n })\r\n );\r\n }\r\n\r\n public queryLocation(location: string): Observable<SelectedLocation> {\r\n if (!location) {\r\n return of(null);\r\n }\r\n return this.getTypedLocationSuggestions(location).pipe(\r\n catchError(() => of(null)),\r\n concatMap((suggestionResponse: ApiResponse<LocationSuggestionResult[]>) => {\r\n if (!suggestionResponse.isValid || suggestionResponse.result.length === 0) {\r\n return of({ isLocationValid: false } as SelectedLocation);\r\n }\r\n const zipPattern = /\\d+/g;\r\n const isZipExist = location.match(zipPattern);\r\n let placeId = '';\r\n if (isZipExist) {\r\n placeId = suggestionResponse.result[0].googlePlaceId;\r\n } else {\r\n placeId = suggestionResponse.result.find((l) =>\r\n l.locationName\r\n .replace(/[,.]|-|\\s/g, '')\r\n .trim()\r\n .toLowerCase()\r\n .includes(\r\n location\r\n .replace(/[,.]|-|\\s/g, '')\r\n .trim()\r\n .toLowerCase()\r\n )\r\n ).googlePlaceId;\r\n }\r\n return this.getLocationDetailInfo(placeId, isZipExist);\r\n })\r\n );\r\n }\r\n\r\n private getLocationDetailInfo(locationId: string, isZipExist: RegExpMatchArray): Observable<SelectedLocation> {\r\n return this.getTypedLocationDetail(locationId).pipe(\r\n map((detailResponse) => {\r\n GlobalParams.isNeighborhoodSearch = false;\r\n return {\r\n googlePlaceId: locationId,\r\n name: detailResponse.result.name + (isZipExist && detailResponse.result.zip ? ' ' + detailResponse.result.zip : ''),\r\n neighborhood: detailResponse.result.neighborhood ? detailResponse.result.neighborhood : '',\r\n latitude: detailResponse.result.latitude,\r\n longitude: detailResponse.result.longitude,\r\n city: detailResponse.result.city,\r\n state: detailResponse.result.state,\r\n isLocationValid: true,\r\n zip: isZipExist ? detailResponse.result.zip : ''\r\n } as SelectedLocation;\r\n }),\r\n catchError(() => of(null))\r\n );\r\n }\r\n\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { LocationLegacyService } from './location.legacy.service';\r\nimport { LocationNewService } from './location.new.service';\r\n\r\nexport function LocationServiceFactory(http: HttpClient, configService: ConfigurationService) {\r\n if (configService.useLegacyAPI()) {\r\n return new LocationLegacyService(http, configService);\r\n }\r\n return new LocationNewService(http, configService);\r\n}\r\n","import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { ApiConstants } from '../../constants/api-constants.legacy';\r\nimport { KeywordSuggestionResponse, Provider, ProviderSuggestionResponse, ProviderSuggestionV2Response } from '../../models/provider';\r\nimport { ApiResponse } from '../../utils/api-response';\r\nimport { RuntimeConfiguration } from '../configuration-injection.service';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { LocationSearchRequest, ProviderSearchResponse } from '../filter.service';\r\nimport { ProviderService } from '../provider.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProviderLegacyService extends ProviderService {\r\n apiOptions: { headers: HttpHeaders };\r\n runtimeConfig: RuntimeConfiguration;\r\n public apiConstants: { [key: string]: string };\r\n public apiBaseUrl: string;\r\n\r\n constructor(public http: HttpClient, public configurationService: ConfigurationService) {\r\n super();\r\n this.runtimeConfig = this.configurationService.getRuntimeConfiguration();\r\n this.apiBaseUrl = this.runtimeConfig.apiBaseUrl;\r\n this.apiConstants = ApiConstants;\r\n this.apiOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n 'x-tenant': this.configurationService.getTenantCode(),\r\n 'ocp-apim-subscription-key': this.runtimeConfig.apimSubscriptionKey\r\n })\r\n };\r\n }\r\n\r\n protected addRequiredProviderHttpParams(httpParams?: HttpParams): HttpParams {\r\n if (!httpParams) {\r\n httpParams = new HttpParams();\r\n }\r\n const divisionCodes = this.configurationService.getDivisionCodes();\r\n if (divisionCodes.length > 0) {\r\n httpParams = httpParams.setPipeDelimitedArray('divisionCodes', divisionCodes);\r\n const marketCodes = this.configurationService.getMarketCodes();\r\n if (marketCodes) {\r\n httpParams = httpParams.setPipeDelimitedArray('marketCodes', marketCodes);\r\n }\r\n }\r\n return httpParams;\r\n }\r\n\r\n getProviderDetailsFull(npi: number | string, page = 1, pageSize = 20): Observable<ApiResponse<ProviderSearchResponse>> {\r\n npi = npi.toString().slice(0, 10);\r\n\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n httpParams = httpParams.setNonString('page', page);\r\n httpParams = httpParams.setNonString('pageSize', pageSize);\r\n httpParams = httpParams.set('facets', 'All:0');\r\n httpParams = httpParams.set('include', 'metadata,extendeddata');\r\n httpParams = httpParams.set('npis', npi);\r\n\r\n const PROVIDER_DETAILS_BASE_API = `${this.apiBaseUrl}${this.apiConstants.providerDetailsApi}`;\r\n\r\n return this.http.get<ApiResponse<ProviderSearchResponse>>(PROVIDER_DETAILS_BASE_API, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getTypedProviderSuggestions(query: string, suggestionType: string): Observable<ApiResponse<ProviderSuggestionResponse>> {\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${encodeURIComponent(query)}/providers`;\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n httpParams = httpParams.append('mode', 'Auto');\r\n if (suggestionType === 'provider')\r\n {httpParams = httpParams.append('fields', 'primarySpecialty,procedures,conditions,insuranceCarriers,fullName');}\r\n if (suggestionType === 'specialty') {httpParams = httpParams.append('fields', 'specialties');}\r\n return this.http.get<ApiResponse<ProviderSuggestionResponse>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n \r\n getTypedProviderSuggestionsV2(query: string): Observable<ApiResponse<ProviderSuggestionV2Response>> {\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${encodeURIComponent(query)}/providers`;\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n httpParams = httpParams.append('mode', 'Auto');\r\n httpParams = httpParams.append('fields', 'specialties');\r\n return this.http.get<ApiResponse<ProviderSuggestionV2Response>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getTypedKeywordSuggestions(query: string): Observable<ApiResponse<KeywordSuggestionResponse>> {\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}${encodeURIComponent(query)}/autocomplete`;\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n httpParams = httpParams.append('mode', 'Auto');\r\n httpParams = httpParams.append('fields', 'procedures,conditions,insuranceCarriers');\r\n\r\n return this.http.get<ApiResponse<KeywordSuggestionResponse>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getTypedFilterSearchResults<T>(url: string, params: HttpParams): Observable<T> {\r\n params = this.addRequiredProviderHttpParams(params);\r\n\r\n return this.http.get<T>(url, {\r\n headers: this.apiOptions.headers,\r\n params\r\n });\r\n }\r\n\r\n getFilteredSearchResults(url: string, params?: HttpParams) {\r\n return this.http.get(url, {\r\n headers: this.apiOptions.headers,\r\n params\r\n });\r\n }\r\n\r\n getDocAsapIds() {\r\n const options = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n })\r\n };\r\n\r\n return this.http.get(this.configurationService.getDocAsapProviderLookupUrl(), options);\r\n }\r\n\r\n getLocationDetailsbyLocationId(request: LocationSearchRequest): Observable<ApiResponse<ProviderSearchResponse>> {\r\n let httpParams = new HttpParams();\r\n httpParams = httpParams.append('page', request.page);\r\n httpParams = httpParams.append('include', 'ExtendedData,OnlineBookingSupport,NextAvailableTimes,AvailableTimes');\r\n httpParams = httpParams.append('maxAppointments', '5');\r\n httpParams = httpParams.append('facets', 'all:0');\r\n httpParams = httpParams.append('searchMode', 'All');\r\n httpParams = httpParams.append('sortby', request.sortby);\r\n httpParams = httpParams.append('distance', '10');\r\n httpParams = httpParams.append('locationIds', request.locationId);\r\n httpParams = httpParams.append('searchSessionId', request.searchSessionId);\r\n if (request.includeProviderRoleType) {\r\n httpParams = httpParams.setKeyValue(this.apiConstants.addProviderRoleTypes);\r\n }\r\n if (request.gender) {\r\n httpParams = httpParams.append('gender', request.gender);\r\n }\r\n if (request.patients === 'true') {\r\n httpParams = httpParams.append('patients', request.patients);\r\n }\r\n if (request.languages) {\r\n httpParams = httpParams.append('languages', request.languages);\r\n }\r\n if (request.specialties) {\r\n httpParams = httpParams.append('specialties', request.specialties);\r\n }\r\n if (request.medGroups && request.medGroups !== 'null') {\r\n httpParams = httpParams.append('medgroup', request.medGroups);\r\n }\r\n if (request.bookOnline === 'true') {\r\n httpParams = httpParams.append('bookOnline', request.bookOnline);\r\n }\r\n if (request.videoCalls === 'true') {\r\n httpParams = httpParams.append('videoCalls', request.videoCalls);\r\n }\r\n httpParams = this.addRequiredProviderHttpParams(httpParams);\r\n\r\n const PROVIDER_DETAILS_BASE_API = `${this.apiBaseUrl}${this.apiConstants.providerSearchApi}`;\r\n\r\n return this.http.get<ApiResponse<ProviderSearchResponse>>(PROVIDER_DETAILS_BASE_API, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n normalizeProviderBeforeScheduling(provider: Provider): Provider {\r\n return provider;\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { ApiConstants } from 'src/app/constants/api-constants.new';\r\nimport { KeywordSuggestionResponse, Provider, ProviderSuggestionResponse, ProviderSuggestionV2Response } from 'src/app/models/provider';\r\nimport { ApiResponse } from 'src/app/utils/api-response';\r\nimport { ConfigurationService } from '..//configuration.service';\r\nimport { ProviderSearchResponse } from '../filter.service';\r\nimport { ProviderLegacyService } from './provider.legacy.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ProviderNewService extends ProviderLegacyService {\r\n constructor(public http: HttpClient, public configurationService: ConfigurationService) {\r\n super(http, configurationService);\r\n this.apiBaseUrl = this.runtimeConfig.newApiBaseUrl;\r\n this.apiConstants = ApiConstants;\r\n }\r\n getProviderDetailsFull(npi: number | string, page = 1, pageSize = 20): Observable<ApiResponse<ProviderSearchResponse>> {\r\n npi = npi.toString().slice(0, 10);\r\n\r\n const httpParams = this.addRequiredProviderHttpParams();\r\n const PROVIDER_DETAILS_BASE_API = `${this.apiBaseUrl}${this.apiConstants.providerDetailsApi}${npi}`;\r\n\r\n return this.http.get<ApiResponse<ProviderSearchResponse>>(PROVIDER_DETAILS_BASE_API, {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n normalizeProviderBeforeScheduling(provider: Provider): Provider {\r\n if (provider && provider.onlineBookingAvailability) {\r\n let normalizedBookingAvailability = [];\r\n const validCount = provider.onlineBookingAvailability.filter((s) => s.supportsOnlineBooking).length;\r\n if (validCount > 0) {\r\n [...new Set(provider.onlineBookingAvailability.map((item) => item.officeAddressId))].forEach((bookingAvailability) => {\r\n const normalizedList = [];\r\n const officeAddressIdList = provider.onlineBookingAvailability.filter((a) => a.officeAddressId && a.officeAddressId === bookingAvailability);\r\n for (const officeAddressId of officeAddressIdList) {\r\n if (normalizedList.length === 0) {\r\n normalizedList.push(officeAddressId);\r\n } else {\r\n normalizedList[0].appointmentTypes = [...normalizedList[0].appointmentTypes, ...officeAddressId.appointmentTypes];\r\n normalizedList[0].availableTimes = [...normalizedList[0].availableTimes, ...officeAddressId.availableTimes];\r\n }\r\n }\r\n normalizedBookingAvailability = [...normalizedBookingAvailability, ...normalizedList];\r\n });\r\n\r\n normalizedBookingAvailability.forEach((a) => {\r\n let dateList = [];\r\n\r\n if (a.availableTimes) {\r\n [...new Set(a.availableTimes.map((item) => item.date))].forEach((availableDates) => {\r\n const normalizedList = [];\r\n const datesList = a.availableTimes.filter((dl) => dl.date === availableDates);\r\n for (const dateValue of datesList) {\r\n if (normalizedList.length === 0) {\r\n normalizedList.push(dateValue);\r\n } else {\r\n normalizedList[0].times = [...normalizedList[0].times, ...dateValue.times];\r\n }\r\n }\r\n dateList = [...dateList, ...normalizedList];\r\n });\r\n dateList.forEach((date) => {\r\n const times = [];\r\n [...new Set(date.times.map((dateAvailability) => dateAvailability.time))].forEach((time) => {\r\n date.times\r\n .filter((appointmentTime) => appointmentTime.time === time)\r\n .forEach((t) => {\r\n times.push(t);\r\n });\r\n });\r\n date.times = [...times];\r\n });\r\n a.availableTimes = [...dateList];\r\n }\r\n });\r\n }\r\n\r\n provider.onlineBookingAvailability = normalizedBookingAvailability;\r\n\r\n for (const onlineBookingItem of provider.onlineBookingAvailability) {\r\n if (!onlineBookingItem.nextAvailableTimes && onlineBookingItem.appointmentTypes) {\r\n onlineBookingItem.appointmentTypes.forEach((appItem) => {\r\n appItem.id = appItem.name;\r\n appItem.remoteId = appItem.name;\r\n });\r\n onlineBookingItem.nextAvailableTimes = [];\r\n onlineBookingItem.officeAddressId = onlineBookingItem.officeAddressId.toString();\r\n const appointmentTypeIds = onlineBookingItem.appointmentTypes?.map((a) => a.id) || [];\r\n onlineBookingItem.availableTimes?.forEach((currentDateAvailability: any) => {\r\n currentDateAvailability.times?.forEach((currentTimeAvailability: any) => {\r\n currentTimeAvailability.appointmentTypes?.forEach((currentAppointmentAvailability: any) => {\r\n if (appointmentTypeIds.length > 0 && appointmentTypeIds.indexOf(currentAppointmentAvailability.id) >= 0) {\r\n appointmentTypeIds.splice(appointmentTypeIds.indexOf(currentAppointmentAvailability.id), 1);\r\n onlineBookingItem.nextAvailableTimes.push({\r\n appointmentType: currentAppointmentAvailability.id,\r\n time: currentTimeAvailability.time\r\n });\r\n }\r\n });\r\n });\r\n });\r\n }\r\n }\r\n provider.onlineBookingAvailability.forEach((obj) => {\r\n if (obj.appointmentTypes) {\r\n obj.appointmentTypes = [...new Map(obj.appointmentTypes.map((item) => [item['visitId'], item])).values()];\r\n }\r\n });\r\n }\r\n if(provider.onlineBookingAvailability.length===0){\r\n provider.isBookOnline=false;\r\n }\r\n console.log(provider);\r\n return provider;\r\n }\r\n\r\n getTypedProviderSuggestions(query: string, suggestionType: string): Observable<ApiResponse<ProviderSuggestionResponse>> {\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}providers`;\r\n httpParams = httpParams.append('mode', 'Auto');\r\n if (suggestionType === 'specialty') {\r\n httpParams = httpParams.append('fields', 'specialties');\r\n httpParams = httpParams.append('searchQuery', query); \r\n }\r\n if (suggestionType === 'provider'){\r\n httpParams = httpParams.append('fields', 'primarySpecialty,procedures,conditions,insuranceCarriers,fullName');\r\n httpParams = httpParams.append('searchQuery', query);\r\n }\r\n return this.http.get<ApiResponse<ProviderSuggestionResponse>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getTypedProviderSuggestionsV2(query: string): Observable<ApiResponse<ProviderSuggestionV2Response>> {\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n httpParams = httpParams.append('mode', 'Auto');\r\n httpParams = httpParams.append('fields', 'specialties');\r\n httpParams = httpParams.append('searchQuery', query);\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}providers`;\r\n return this.http.get<ApiResponse<ProviderSuggestionV2Response>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n\r\n getTypedKeywordSuggestions(query: string): Observable<ApiResponse<KeywordSuggestionResponse>> {\r\n let httpParams = this.addRequiredProviderHttpParams();\r\n httpParams = httpParams.append('mode', 'Auto');\r\n httpParams = httpParams.append('fields', 'procedures,conditions,insuranceCarriers');\r\n httpParams = httpParams.append('query', query);\r\n const url = `${this.apiBaseUrl}${this.apiConstants.suggestionsBaseApiUrl}autocomplete`;\r\n return this.http.get<ApiResponse<KeywordSuggestionResponse>>(url.toString(), {\r\n headers: this.apiOptions.headers,\r\n params: httpParams\r\n });\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { ConfigurationService } from '../configuration.service';\r\nimport { ProviderService } from '../provider.service';\r\nimport { ProviderLegacyService } from './provider.legacy.service';\r\nimport { ProviderNewService } from './provider.new.service';\r\n\r\nexport function ProviderServiceFactory(http: HttpClient, configService: ConfigurationService): ProviderService {\r\n if (configService.useLegacyAPI()) {\r\n return new ProviderLegacyService(http, configService);\r\n }\r\n return new ProviderNewService(http, configService);\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { DefaultUrlSerializer, UrlTree } from '@angular/router';\r\n@Injectable()\r\nexport class OverrideUrlSerializer extends DefaultUrlSerializer {\r\n serialize(tree: UrlTree): string {\r\n if (tree.toString() === '/') {\r\n return '';\r\n }\r\n return super.serialize(tree);\r\n }\r\n}\r\n","import { APP_BASE_HREF } from '@angular/common';\r\nimport { Inject, Injectable } from '@angular/core';\r\nimport { LogLevel, OidcConfigService } from 'identity-manager-client-library';\r\nimport { ConfigurationService } from 'src/app/services/configuration.service';\r\nimport { StsServerResponse } from '../interfaces/StsServerResponse';\r\nimport { RuntimeConfiguration } from './configuration-injection.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthHelperService {\r\n private runtimeConfig: RuntimeConfiguration;\r\n stsServerResponse: StsServerResponse;\r\n stsServer?: string;\r\n constructor(\r\n private configurationService: ConfigurationService,\r\n @Inject(APP_BASE_HREF) private basePath: string,\r\n private document: Document\r\n ) {}\r\n\r\n async configureAuth(oidcConfigService: OidcConfigService): Promise<() => any> {\r\n this.runtimeConfig = this.configurationService.getRuntimeConfiguration();\r\n const oidcResult = await oidcConfigService\r\n .withConfig({\r\n stsServerInfoLookupUrl: this.runtimeConfig.oidcConfig.stsServerInfoLookupUrl,\r\n redirectUrl: this.runtimeConfig.oidcConfig.redirectUrl.replace('{location}', window.location.origin),\r\n postLogoutRedirectUri: this.buildUrl('unauthorized'),\r\n clientId: this.runtimeConfig.oidcConfig.clientId,\r\n scope: this.runtimeConfig.oidcConfig.scope,\r\n responseType: this.runtimeConfig.oidcConfig.responseType,\r\n silentRenew: this.runtimeConfig.oidcConfig.silentRenew,\r\n silentRenewUrl: window.location.origin + '/silent-renew.html',\r\n logLevel: LogLevel.Debug,\r\n renewTimeBeforeTokenExpiresInSeconds: 10,\r\n customParams: this.runtimeConfig.oidcConfig.customParams\r\n })\r\n .then(() => {\r\n this.stsServer = oidcConfigService.configuration.stsServer;\r\n });\r\n\r\n window.sessionStorage.setItem('okta-token-checked', 'true');\r\n return () => oidcResult;\r\n }\r\n\r\n public buildUrl(route?: string): string {\r\n let url = this.document.location.origin;\r\n [this.basePath, route].forEach(path => {\r\n if (path !== '/' && path?.length) {\r\n url += `${url.endsWith('/') || path?.startsWith('/') ? '' : '/'}${path}`;\r\n }\r\n });\r\n\r\n return url;\r\n }\r\n}\r\n","import { APP_BASE_HREF, Location, DOCUMENT } from '@angular/common';\r\nimport { HttpClient, HttpClientJsonpModule, HttpClientModule } from '@angular/common/http';\r\nimport {\r\n ApplicationRef, APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA,\r\n DoBootstrap, ErrorHandler, Injector,\r\n LOCALE_ID,\r\n NgModule,\r\n Type\r\n} from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { ActivatedRoute, NavigationEnd, Router, RouteReuseStrategy, UrlSerializer } from '@angular/router';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { DignityHealthComponentsModule } from './dignity-health-components.module';\r\nimport { SchedulingComponent } from './pages/scheduling/scheduling.component';\r\nimport { ConfigurationInjectionService } from './services/configuration-injection.service';\r\n\r\nimport { filter } from 'rxjs/operators';\r\nimport { SharedModule } from './components/shared.module';\r\nimport { CoreModule } from './core/core.module';\r\nimport { mapRouterEventToFadEvent } from './models/fad-event';\r\nimport { PipesModule } from './pipes/pipes.module';\r\nimport { ConfigurationService } from './services/configuration.service';\r\nimport { ErrorHandlerService } from './services/error-handler.service';\r\nimport { EventPublisherService } from './services/event-publisher.service';\r\nimport { FadLinkService } from './services/fad-link.service';\r\nimport { FilterService } from './services/filter.service';\r\nimport { FilterServiceFactory } from './services/filter/filter.service.factory';\r\nimport { LocationService } from './services/location.service';\r\nimport { LocationServiceFactory } from './services/location/location.service.factory';\r\nimport { ProviderService } from './services/provider.service';\r\nimport { ProviderServiceFactory } from './services/provider/provider.service.factory';\r\nimport { CustomRouteReuseStrategy } from './utils/custom-route-reuse-strategy';\r\nimport { FadAngularElements, getBaseLocation, getRootElement } from './utils/root-element';\r\nimport { ROOT_ELEMENT } from './utils/utils';\r\nimport { FindDoctorWidgetModule } from './pages/find-doctor-widget/find-doctor-widget.module';\r\nimport { VaccinationLocationModule } from './pages/vaccination-location/vaccination-location.module';\r\nimport { FadLiteSearchLandingModule } from './pages/fad-lite-search-landing/fad-lite-search-landing.module';\r\nimport { SearchLandingModule } from './pages/search-landing/search-landing.module';\r\nimport { SearchResultsModule } from './pages/search-results/search-results.module';\r\nimport { ProviderDetailsModule } from './pages/provider-details/provider-details.module';\r\nimport { GoogleMapsModule } from '@angular/google-maps';\r\nimport { OverrideUrlSerializer } from './services/override-url-serializer.service';\r\nimport { OidcConfigService, OidcSecurityService, resolveOidcConfigService, resolveOidcSecurityService } from 'identity-manager-client-library';\r\nimport { AuthHelperService } from './services/auth-helper.service';\r\n\r\nconst appInitializer = (\r\n configInjService: ConfigurationInjectionService,\r\n oidcConfigService: OidcConfigService,\r\n authHelper: AuthHelperService\r\n): (() => Promise<any>) => () =>\r\n configInjService\r\n .load()\r\n .then(async () => {\r\n await authHelper.configureAuth(oidcConfigService);\r\n })\r\n .catch(error => {\r\n console.log(error.message);\r\n });\r\n\r\n@NgModule({\r\n declarations: [AppComponent, SchedulingComponent],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n BrowserAnimationsModule,\r\n HttpClientModule,\r\n HttpClientJsonpModule,\r\n FormsModule,\r\n DignityHealthComponentsModule,\r\n GoogleMapsModule,\r\n PipesModule,\r\n CoreModule,\r\n SharedModule,\r\n FadLiteSearchLandingModule,\r\n VaccinationLocationModule,\r\n FindDoctorWidgetModule,\r\n SearchLandingModule,\r\n SearchResultsModule,\r\n ProviderDetailsModule\r\n ],\r\n\r\n providers: [\r\n { provide: LOCALE_ID, useValue: 'en-US' },\r\n { provide: ROOT_ELEMENT, useFactory: getRootElement },\r\n {\r\n provide: APP_BASE_HREF,\r\n useFactory: getBaseLocation,\r\n deps: [ROOT_ELEMENT]\r\n },\r\n { provide: Document, useExisting: DOCUMENT },\r\n ConfigurationInjectionService,\r\n AuthHelperService,\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: appInitializer,\r\n multi: true,\r\n deps: [ConfigurationInjectionService, OidcConfigService, AuthHelperService]\r\n },\r\n {\r\n provide: ProviderService,\r\n useFactory: ProviderServiceFactory,\r\n deps: [HttpClient, ConfigurationService]\r\n },\r\n {\r\n provide: LocationService,\r\n useFactory: LocationServiceFactory,\r\n deps: [HttpClient, ConfigurationService]\r\n },\r\n {\r\n provide: FilterService,\r\n useFactory: FilterServiceFactory,\r\n deps: [ProviderService, ConfigurationService, ActivatedRoute]\r\n },\r\n {\r\n provide: ErrorHandler,\r\n useClass: ErrorHandlerService\r\n },\r\n {\r\n provide: UrlSerializer,\r\n useClass: OverrideUrlSerializer\r\n },\r\n { \r\n provide: OidcConfigService, \r\n useValue: resolveOidcConfigService() \r\n },\r\n {\r\n provide: OidcSecurityService,\r\n useFactory: resolveOidcSecurityService\r\n }\r\n ],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n})\r\nexport class AppModule implements DoBootstrap {\r\n constructor(\r\n private injector: Injector,\r\n private router: Router,\r\n private location: Location,\r\n private fadLinkService: FadLinkService,\r\n private eventPublisherService: EventPublisherService\r\n ) {\r\n // This router subscription was initially in the AppComponent, but there was an inconsistency.\r\n // Running locally with `ng serve`, the first `RouteChanged` event would be captured and logged\r\n // to the browser console. After concatenating our js files together and running on a web server,\r\n // the very first `RouteChanged` event stopped being fired. Moving the subscription to the AppModule\r\n // made it so that we fire the `RouteChanged` event every time.\r\n this.router.events\r\n .pipe(filter((event) => event instanceof NavigationEnd))\r\n .subscribe((event: any) => this.eventPublisherService.publish(mapRouterEventToFadEvent(event)));\r\n\r\n if (!this.fadLinkService.isSelfHosted()) {\r\n // Without this, the FAD SPA as an Angular element will not load the initial route, or do routing.\r\n // This seems to be following this article to make it work\r\n // eslint-disable-next-line\r\n // http://chatwithme.io/angularjs%20upgrade/web%20components/angular%20elements/angular/angularjs/ngupgrade/2019/04/25/shipping-an-angular-application-as-a-web-component.html\r\n // Other possible resources to consider:\r\n // https://medium.com/@timon.grassl/how-to-use-routing-in-angular-web-components-c6a76449cdb\r\n // https://github.com/fboeller/ngx-elements-router\r\n this.router.navigateByUrl(this.location.path(true)).then();\r\n this.location.subscribe((data) => {\r\n this.router.navigateByUrl(data.url).then();\r\n });\r\n }\r\n }\r\n\r\n ngDoBootstrap(appRef: ApplicationRef): void {\r\n if (document.body.querySelector('cs-fad')) {\r\n appRef.bootstrap(AppComponent);\r\n }\r\n FadAngularElements.forEach((e) => this.registerCustomElement(e[1], e[0]));\r\n }\r\n\r\n /**\r\n * Registers a Component as a custom element if it's not already registered.\r\n */\r\n registerCustomElement(componentType: Type<any>, name: string): void {\r\n if (!customElements.get(name)) {\r\n const component = createCustomElement(componentType, { injector: this.injector });\r\n customElements.define(name, component);\r\n }\r\n }\r\n}\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\nimport { AppModule } from './app/app.module';\r\n\r\nenableProdMode();\r\n\r\nplatformBrowserDynamic()\r\n .bootstrapModule(AppModule)\r\n .catch((err) => console.error(err));\r\n","/*! For license information please see identity-manager-client.js.LICENSE.txt */\nvar e={4263:function(e,t,r){var n,i,o;i=[r(343)],void 0===(o=\"function\"==typeof(n=function(e){var t=/(^|@)\\S+\\:\\d+/,r=/^\\s*at .*(\\S+\\:\\d+|\\(native\\))/m,n=/^(eval@)?(\\[native code\\])?$/;function i(e,t,r){if(\"function\"==typeof Array.prototype.map)return e.map(t,r);for(var n=new Array(e.length),i=0;i<e.length;i++)n[i]=t.call(r,e[i]);return n}function o(e,t,r){if(\"function\"==typeof Array.prototype.filter)return e.filter(t,r);for(var n=[],i=0;i<e.length;i++)t.call(r,e[i])&&n.push(e[i]);return n}return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e[\"opera#sourceloc\"])return this.parseOpera(e);if(e.stack&&e.stack.match(r))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error(\"Cannot parse given Error object\")},extractLocation:function(e){if(-1===e.indexOf(\":\"))return[e];var t=/(.+?)(?:\\:(\\d+))?(?:\\:(\\d+))?$/.exec(e.replace(/[\\(\\)]/g,\"\"));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return i(o(t.stack.split(\"\\n\"),(function(e){return!!e.match(r)}),this),(function(t){t.indexOf(\"(eval \")>-1&&(t=t.replace(/eval code/g,\"eval\").replace(/(\\(eval at [^\\()]*)|(\\)\\,.*$)/g,\"\"));var r=t.replace(/^\\s+/,\"\").replace(/\\(eval code/g,\"(\").split(/\\s+/).slice(1),n=this.extractLocation(r.pop()),i=r.join(\" \")||void 0,o=function(e,t){if(\"function\"==typeof Array.prototype.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}([\"eval\",\"<anonymous>\"],n[0])>-1?void 0:n[0];return new e(i,void 0,o,n[1],n[2],t)}),this)},parseFFOrSafari:function(t){return i(o(t.stack.split(\"\\n\"),(function(e){return!e.match(n)}),this),(function(t){if(t.indexOf(\" > eval\")>-1&&(t=t.replace(/ line (\\d+)(?: > eval line \\d+)* > eval\\:\\d+\\:\\d+/g,\":$1\")),-1===t.indexOf(\"@\")&&-1===t.indexOf(\":\"))return new e(t);var r=t.split(\"@\"),n=this.extractLocation(r.pop()),i=r.join(\"@\")||void 0;return new e(i,void 0,n[0],n[1],n[2],t)}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(\"\\n\")>-1&&e.message.split(\"\\n\").length>e.stacktrace.split(\"\\n\").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\\d+).*script (?:in )?(\\S+)/i,n=t.message.split(\"\\n\"),i=[],o=2,s=n.length;o<s;o+=2){var a=r.exec(n[o]);a&&i.push(new e(void 0,void 0,a[2],a[1],void 0,n[o]))}return i},parseOpera10:function(t){for(var r=/Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i,n=t.stacktrace.split(\"\\n\"),i=[],o=0,s=n.length;o<s;o+=2){var a=r.exec(n[o]);a&&i.push(new e(a[3]||void 0,void 0,a[2],a[1],void 0,n[o]))}return i},parseOpera11:function(r){return i(o(r.stack.split(\"\\n\"),(function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this),(function(t){var r,n=t.split(\"@\"),i=this.extractLocation(n.pop()),o=n.shift()||\"\",s=o.replace(/<anonymous function(: (\\w+))?>/,\"$2\").replace(/\\([^\\)]*\\)/g,\"\")||void 0;o.match(/\\(([^\\)]*)\\)/)&&(r=o.replace(/^[^\\(]+\\(([^\\)]*)\\)$/,\"$1\"));var a=void 0===r||\"[arguments not available]\"===r?void 0:r.split(\",\");return new e(s,a,i[0],i[1],i[2],t)}),this)}}})?n.apply(t,i):n)||(e.exports=o)},6405:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=22)}([function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i={debug:function(){},info:function(){},warn:function(){},error:function(){}},o=void 0,s=void 0;(t.Log=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.reset=function(){s=3,o=i},e.debug=function(){if(s>=4){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.debug.apply(o,Array.from(t))}},e.info=function(){if(s>=3){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.info.apply(o,Array.from(t))}},e.warn=function(){if(s>=2){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.warn.apply(o,Array.from(t))}},e.error=function(){if(s>=1){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];o.error.apply(o,Array.from(t))}},n(e,null,[{key:\"NONE\",get:function(){return 0}},{key:\"ERROR\",get:function(){return 1}},{key:\"WARN\",get:function(){return 2}},{key:\"INFO\",get:function(){return 3}},{key:\"DEBUG\",get:function(){return 4}},{key:\"level\",get:function(){return s},set:function(e){if(!(0<=e&&e<=4))throw new Error(\"Invalid log level\");s=e}},{key:\"logger\",get:function(){return o},set:function(e){if(!e.debug&&e.info&&(e.debug=e.info),!(e.debug&&e.info&&e.warn&&e.error))throw new Error(\"Invalid logger\");o=e}}]),e}()).reset()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i={setInterval:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return setInterval(e,t)})),clearInterval:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return clearInterval(e)}))},o=!1,s=null;t.Global=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e._testing=function(){o=!0},e.setXMLHttpRequest=function(e){s=e},n(e,null,[{key:\"location\",get:function(){if(!o)return location}},{key:\"localStorage\",get:function(){if(!o&&\"undefined\"!=typeof window)return localStorage}},{key:\"sessionStorage\",get:function(){if(!o&&\"undefined\"!=typeof window)return sessionStorage}},{key:\"XMLHttpRequest\",get:function(){if(!o&&\"undefined\"!=typeof window)return s||XMLHttpRequest}},{key:\"timer\",get:function(){if(!o)return i}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.MetadataService=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(7),s=\".well-known/openid-configuration\";t.MetadataService=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!t)throw i.Log.error(\"MetadataService: No settings passed to MetadataService\"),new Error(\"settings\");this._settings=t,this._jsonService=new r([\"application/jwk-set+json\"])}return e.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(i.Log.debug(\"MetadataService.getMetadata: Returning metadata from settings\"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(i.Log.debug(\"MetadataService.getMetadata: getting metadata from\",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(t){i.Log.debug(\"MetadataService.getMetadata: json received\");var r=e._settings.metadataSeed||{};return e._settings.metadata=Object.assign({},r,t),e._settings.metadata}))):(i.Log.error(\"MetadataService.getMetadata: No authority or metadataUrl configured on settings\"),Promise.reject(new Error(\"No authority or metadataUrl configured on settings\")))},e.prototype.getIssuer=function(){return this._getMetadataProperty(\"issuer\")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty(\"authorization_endpoint\")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty(\"userinfo_endpoint\")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty(\"token_endpoint\",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty(\"check_session_iframe\",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty(\"end_session_endpoint\",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty(\"revocation_endpoint\",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty(\"jwks_uri\",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.Log.debug(\"MetadataService.getMetadataProperty for: \"+e),this.getMetadata().then((function(r){if(i.Log.debug(\"MetadataService.getMetadataProperty: metadata recieved\"),void 0===r[e]){if(!0===t)return void i.Log.warn(\"MetadataService.getMetadataProperty: Metadata does not contain optional property \"+e);throw i.Log.error(\"MetadataService.getMetadataProperty: Metadata does not contain property \"+e),new Error(\"Metadata does not contain property \"+e)}return r[e]}))},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(i.Log.debug(\"MetadataService.getSigningKeys: Returning signingKeys from settings\"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty(\"jwks_uri\").then((function(t){return i.Log.debug(\"MetadataService.getSigningKeys: jwks_uri received\",t),e._jsonService.getJson(t).then((function(t){if(i.Log.debug(\"MetadataService.getSigningKeys: key set received\",t),!t.keys)throw i.Log.error(\"MetadataService.getSigningKeys: Missing keys on keyset\"),new Error(\"Missing keys on keyset\");return e._settings.signingKeys=t.keys,e._settings.signingKeys}))}))},n(e,[{key:\"metadataUrl\",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(s)<0&&(\"/\"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+=\"/\"),this._metadataUrl+=s))),this._metadataUrl}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.UrlUtility=void 0;var n=r(0),i=r(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.addQueryParam=function(e,t,r){return e.indexOf(\"?\")<0&&(e+=\"?\"),\"?\"!==e[e.length-1]&&(e+=\"&\"),e+=encodeURIComponent(t),(e+=\"=\")+encodeURIComponent(r)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"#\",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Global;\"string\"!=typeof e&&(e=r.location.href);var o=e.lastIndexOf(t);o>=0&&(e=e.substr(o+1)),\"?\"===t&&(o=e.indexOf(\"#\"))>=0&&(e=e.substr(0,o));for(var s,a={},u=/([^&=]+)=([^&]*)/g,c=0;s=u.exec(e);)if(a[decodeURIComponent(s[1])]=decodeURIComponent(s[2].replace(/\\+/g,\" \")),c++>50)return n.Log.error(\"UrlUtility.parseUrlFragment: response exceeded expected number of parameters\",e),{error:\"Response exceeded expected number of parameters\"};for(var l in a)return a;return{}},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.JoseUtil=void 0;var n=r(26),i=function(e){return e&&e.__esModule?e:{default:e}}(r(33));t.JoseUtil=(0,i.default)({jws:n.jws,KeyUtil:n.KeyUtil,X509:n.X509,crypto:n.crypto,hextob64u:n.hextob64u,b64tohex:n.b64tohex,AllowedSigningAlgs:n.AllowedSigningAlgs})},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.OidcClientSettings=void 0;var n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),s=r(23),a=r(6),u=r(24),c=r(2),l=\".well-known/openid-configuration\";t.OidcClientSettings=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.authority,i=t.metadataUrl,o=t.metadata,l=t.signingKeys,h=t.metadataSeed,f=t.client_id,g=t.client_secret,p=t.response_type,d=void 0===p?\"id_token\":p,v=t.scope,y=void 0===v?\"openid\":v,m=t.redirect_uri,_=t.post_logout_redirect_uri,b=t.client_authentication,w=void 0===b?\"client_secret_post\":b,S=t.prompt,F=t.display,E=t.max_age,x=t.ui_locales,C=t.acr_values,A=t.resource,k=t.response_mode,L=t.filterProtocolClaims,P=void 0===L||L,T=t.loadUserInfo,R=void 0===T||T,O=t.staleStateAge,I=void 0===O?900:O,N=t.clockSkew,j=void 0===N?300:N,M=t.clockService,D=void 0===M?new s.ClockService:M,U=t.userInfoJwtIssuer,B=void 0===U?\"OP\":U,H=t.mergeClaims,V=void 0!==H&&H,K=t.stateStore,q=void 0===K?new a.WebStorageStateStore:K,J=t.ResponseValidatorCtor,W=void 0===J?u.ResponseValidator:J,G=t.MetadataServiceCtor,Y=void 0===G?c.MetadataService:G,z=t.extraQueryParams,$=void 0===z?{}:z,X=t.extraTokenParams,Q=void 0===X?{}:X;(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),this._authority=r,this._metadataUrl=i,this._metadata=o,this._metadataSeed=h,this._signingKeys=l,this._client_id=f,this._client_secret=g,this._response_type=d,this._scope=y,this._redirect_uri=m,this._post_logout_redirect_uri=_,this._client_authentication=w,this._prompt=S,this._display=F,this._max_age=E,this._ui_locales=x,this._acr_values=C,this._resource=A,this._response_mode=k,this._filterProtocolClaims=!!P,this._loadUserInfo=!!R,this._staleStateAge=I,this._clockSkew=j,this._clockService=D,this._userInfoJwtIssuer=B,this._mergeClaims=!!V,this._stateStore=q,this._validator=new W(this),this._metadataService=new Y(this),this._extraQueryParams=\"object\"===(void 0===$?\"undefined\":n($))?$:{},this._extraTokenParams=\"object\"===(void 0===Q?\"undefined\":n(Q))?Q:{}}return e.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},i(e,[{key:\"client_id\",get:function(){return this._client_id},set:function(e){if(this._client_id)throw o.Log.error(\"OidcClientSettings.set_client_id: client_id has already been assigned.\"),new Error(\"client_id has already been assigned.\");this._client_id=e}},{key:\"client_secret\",get:function(){return this._client_secret}},{key:\"response_type\",get:function(){return this._response_type}},{key:\"scope\",get:function(){return this._scope}},{key:\"redirect_uri\",get:function(){return this._redirect_uri}},{key:\"post_logout_redirect_uri\",get:function(){return this._post_logout_redirect_uri}},{key:\"client_authentication\",get:function(){return this._client_authentication}},{key:\"prompt\",get:function(){return this._prompt}},{key:\"display\",get:function(){return this._display}},{key:\"max_age\",get:function(){return this._max_age}},{key:\"ui_locales\",get:function(){return this._ui_locales}},{key:\"acr_values\",get:function(){return this._acr_values}},{key:\"resource\",get:function(){return this._resource}},{key:\"response_mode\",get:function(){return this._response_mode}},{key:\"authority\",get:function(){return this._authority},set:function(e){if(this._authority)throw o.Log.error(\"OidcClientSettings.set_authority: authority has already been assigned.\"),new Error(\"authority has already been assigned.\");this._authority=e}},{key:\"metadataUrl\",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(l)<0&&(\"/\"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+=\"/\"),this._metadataUrl+=l)),this._metadataUrl}},{key:\"metadata\",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:\"metadataSeed\",get:function(){return this._metadataSeed},set:function(e){this._metadataSeed=e}},{key:\"signingKeys\",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:\"filterProtocolClaims\",get:function(){return this._filterProtocolClaims}},{key:\"loadUserInfo\",get:function(){return this._loadUserInfo}},{key:\"staleStateAge\",get:function(){return this._staleStateAge}},{key:\"clockSkew\",get:function(){return this._clockSkew}},{key:\"userInfoJwtIssuer\",get:function(){return this._userInfoJwtIssuer}},{key:\"mergeClaims\",get:function(){return this._mergeClaims}},{key:\"stateStore\",get:function(){return this._stateStore}},{key:\"validator\",get:function(){return this._validator}},{key:\"metadataService\",get:function(){return this._metadataService}},{key:\"extraQueryParams\",get:function(){return this._extraQueryParams},set:function(e){\"object\"===(void 0===e?\"undefined\":n(e))?this._extraQueryParams=e:this._extraQueryParams={}}},{key:\"extraTokenParams\",get:function(){return this._extraTokenParams},set:function(e){\"object\"===(void 0===e?\"undefined\":n(e))?this._extraTokenParams=e:this._extraTokenParams={}}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebStorageStateStore=void 0;var n=r(0),i=r(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.prefix,n=void 0===r?\"oidc.\":r,o=t.store,s=void 0===o?i.Global.localStorage:o;(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),this._store=s,this._prefix=n}return e.prototype.set=function(e,t){return n.Log.debug(\"WebStorageStateStore.set\",e),e=this._prefix+e,this._store.setItem(e,t),Promise.resolve()},e.prototype.get=function(e){n.Log.debug(\"WebStorageStateStore.get\",e),e=this._prefix+e;var t=this._store.getItem(e);return Promise.resolve(t)},e.prototype.remove=function(e){n.Log.debug(\"WebStorageStateStore.remove\",e),e=this._prefix+e;var t=this._store.getItem(e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){n.Log.debug(\"WebStorageStateStore.getAllKeys\");for(var e=[],t=0;t<this._store.length;t++){var r=this._store.key(t);0===r.indexOf(this._prefix)&&e.push(r.substr(this._prefix.length))}return Promise.resolve(e)},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.JsonService=void 0;var n=r(0),i=r(1);t.JsonService=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),t&&Array.isArray(t)?this._contentTypes=t.slice():this._contentTypes=[],this._contentTypes.push(\"application/json\"),n&&this._contentTypes.push(\"application/jwt\"),this._XMLHttpRequest=r,this._jwtHandler=n}return e.prototype.getJson=function(e,t){var r=this;if(!e)throw n.Log.error(\"JsonService.getJson: No url passed\"),new Error(\"url\");return n.Log.debug(\"JsonService.getJson, url: \",e),new Promise((function(i,o){var s=new r._XMLHttpRequest;s.open(\"GET\",e);var a=r._contentTypes,u=r._jwtHandler;s.onload=function(){if(n.Log.debug(\"JsonService.getJson: HTTP response received, status\",s.status),200===s.status){var t=s.getResponseHeader(\"Content-Type\");if(t){var r=a.find((function(e){if(t.startsWith(e))return!0}));if(\"application/jwt\"==r)return void u(s).then(i,o);if(r)try{return void i(JSON.parse(s.responseText))}catch(e){return n.Log.error(\"JsonService.getJson: Error parsing JSON response\",e.message),void o(e)}}o(Error(\"Invalid response Content-Type: \"+t+\", from URL: \"+e))}else o(Error(s.statusText+\" (\"+s.status+\")\"))},s.onerror=function(){n.Log.error(\"JsonService.getJson: network error\"),o(Error(\"Network Error\"))},t&&(n.Log.debug(\"JsonService.getJson: token passed, setting Authorization header\"),s.setRequestHeader(\"Authorization\",\"Bearer \"+t)),s.send()}))},e.prototype.postForm=function(e,t,r){var i=this;if(!e)throw n.Log.error(\"JsonService.postForm: No url passed\"),new Error(\"url\");return n.Log.debug(\"JsonService.postForm, url: \",e),new Promise((function(o,s){var a=new i._XMLHttpRequest;a.open(\"POST\",e);var u=i._contentTypes;a.onload=function(){if(n.Log.debug(\"JsonService.postForm: HTTP response received, status\",a.status),200!==a.status){if(400===a.status&&(r=a.getResponseHeader(\"Content-Type\"))&&u.find((function(e){if(r.startsWith(e))return!0})))try{var t=JSON.parse(a.responseText);if(t&&t.error)return n.Log.error(\"JsonService.postForm: Error from server: \",t.error),void s(new Error(t.error))}catch(e){return n.Log.error(\"JsonService.postForm: Error parsing JSON response\",e.message),void s(e)}s(Error(a.statusText+\" (\"+a.status+\")\"))}else{var r;if((r=a.getResponseHeader(\"Content-Type\"))&&u.find((function(e){if(r.startsWith(e))return!0})))try{return void o(JSON.parse(a.responseText))}catch(e){return n.Log.error(\"JsonService.postForm: Error parsing JSON response\",e.message),void s(e)}s(Error(\"Invalid response Content-Type: \"+r+\", from URL: \"+e))}},a.onerror=function(){n.Log.error(\"JsonService.postForm: network error\"),s(Error(\"Network Error\"))};var c=\"\";for(var l in t){var h=t[l];h&&(c.length>0&&(c+=\"&\"),c+=encodeURIComponent(l),c+=\"=\",c+=encodeURIComponent(h))}a.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\"),void 0!==r&&a.setRequestHeader(\"Authorization\",\"Basic \"+btoa(r)),a.send(c)}))},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SigninRequest=void 0;var n=r(0),i=r(3),o=r(13);t.SigninRequest=function(){function e(t){var r=t.url,s=t.client_id,a=t.redirect_uri,u=t.response_type,c=t.scope,l=t.authority,h=t.data,f=t.prompt,g=t.display,p=t.max_age,d=t.ui_locales,v=t.id_token_hint,y=t.login_hint,m=t.acr_values,_=t.resource,b=t.response_mode,w=t.request,S=t.request_uri,F=t.extraQueryParams,E=t.request_type,x=t.client_secret,C=t.extraTokenParams,A=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!r)throw n.Log.error(\"SigninRequest.ctor: No url passed\"),new Error(\"url\");if(!s)throw n.Log.error(\"SigninRequest.ctor: No client_id passed\"),new Error(\"client_id\");if(!a)throw n.Log.error(\"SigninRequest.ctor: No redirect_uri passed\"),new Error(\"redirect_uri\");if(!u)throw n.Log.error(\"SigninRequest.ctor: No response_type passed\"),new Error(\"response_type\");if(!c)throw n.Log.error(\"SigninRequest.ctor: No scope passed\"),new Error(\"scope\");if(!l)throw n.Log.error(\"SigninRequest.ctor: No authority passed\"),new Error(\"authority\");var k=e.isOidc(u),L=e.isCode(u);b||(b=e.isCode(u)?\"query\":null),this.state=new o.SigninState({nonce:k,data:h,client_id:s,authority:l,redirect_uri:a,code_verifier:L,request_type:E,response_mode:b,client_secret:x,scope:c,extraTokenParams:C,skipUserInfo:A}),r=i.UrlUtility.addQueryParam(r,\"client_id\",s),r=i.UrlUtility.addQueryParam(r,\"redirect_uri\",a),r=i.UrlUtility.addQueryParam(r,\"response_type\",u),r=i.UrlUtility.addQueryParam(r,\"scope\",c),r=i.UrlUtility.addQueryParam(r,\"state\",this.state.id),k&&(r=i.UrlUtility.addQueryParam(r,\"nonce\",this.state.nonce)),L&&(r=i.UrlUtility.addQueryParam(r,\"code_challenge\",this.state.code_challenge),r=i.UrlUtility.addQueryParam(r,\"code_challenge_method\",\"S256\"));var P={prompt:f,display:g,max_age:p,ui_locales:d,id_token_hint:v,login_hint:y,acr_values:m,resource:_,request:w,request_uri:S,response_mode:b};for(var T in P)P[T]&&(r=i.UrlUtility.addQueryParam(r,T,P[T]));for(var R in F)r=i.UrlUtility.addQueryParam(r,R,F[R]);this.url=r}return e.isOidc=function(e){return!!e.split(/\\s+/g).filter((function(e){return\"id_token\"===e}))[0]},e.isOAuth=function(e){return!!e.split(/\\s+/g).filter((function(e){return\"token\"===e}))[0]},e.isCode=function(e){return!!e.split(/\\s+/g).filter((function(e){return\"code\"===e}))[0]},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.State=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(14));t.State=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id,n=t.data,i=t.created,s=t.request_type;(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),this._id=r||(0,o.default)(),this._data=n,this._created=\"number\"==typeof i&&i>0?i:parseInt(Date.now()/1e3),this._request_type=s}return e.prototype.toStorageString=function(){return i.Log.debug(\"State.toStorageString\"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return i.Log.debug(\"State.fromStorageString\"),new e(JSON.parse(t))},e.clearStaleState=function(t,r){var n=Date.now()/1e3-r;return t.getAllKeys().then((function(r){i.Log.debug(\"State.clearStaleState: got keys\",r);for(var o=[],s=function(s){var a=r[s];u=t.get(a).then((function(r){var o=!1;if(r)try{var s=e.fromStorageString(r);i.Log.debug(\"State.clearStaleState: got item from key: \",a,s.created),s.created<=n&&(o=!0)}catch(e){i.Log.error(\"State.clearStaleState: Error parsing state for key\",a,e.message),o=!0}else i.Log.debug(\"State.clearStaleState: no item in storage for key: \",a),o=!0;if(o)return i.Log.debug(\"State.clearStaleState: removed item for key: \",a),t.remove(a)})),o.push(u)},a=0;a<r.length;a++){var u;s(a)}return i.Log.debug(\"State.clearStaleState: waiting on promise count:\",o.length),Promise.all(o)}))},n(e,[{key:\"id\",get:function(){return this._id}},{key:\"data\",get:function(){return this._data}},{key:\"created\",get:function(){return this._created}},{key:\"request_type\",get:function(){return this._request_type}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.OidcClient=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(5),s=r(12),a=r(8),u=r(34),c=r(35),l=r(36),h=r(13),f=r(9);t.OidcClient=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),t instanceof o.OidcClientSettings?this._settings=t:this._settings=new o.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.response_type,n=t.scope,o=t.redirect_uri,s=t.data,u=t.state,c=t.prompt,l=t.display,h=t.max_age,f=t.ui_locales,g=t.id_token_hint,p=t.login_hint,d=t.acr_values,v=t.resource,y=t.request,m=t.request_uri,_=t.response_mode,b=t.extraQueryParams,w=t.extraTokenParams,S=t.request_type,F=t.skipUserInfo,E=arguments[1];i.Log.debug(\"OidcClient.createSigninRequest\");var x=this._settings.client_id;r=r||this._settings.response_type,n=n||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,h=h||this._settings.max_age,f=f||this._settings.ui_locales,d=d||this._settings.acr_values,v=v||this._settings.resource,_=_||this._settings.response_mode,b=b||this._settings.extraQueryParams,w=w||this._settings.extraTokenParams;var C=this._settings.authority;return a.SigninRequest.isCode(r)&&\"code\"!==r?Promise.reject(new Error(\"OpenID Connect hybrid flow is not supported\")):this._metadataService.getAuthorizationEndpoint().then((function(t){i.Log.debug(\"OidcClient.createSigninRequest: Received authorization endpoint\",t);var A=new a.SigninRequest({url:t,client_id:x,redirect_uri:o,response_type:r,scope:n,data:s||u,authority:C,prompt:c,display:l,max_age:h,ui_locales:f,id_token_hint:g,login_hint:p,acr_values:d,resource:v,request:y,request_uri:m,extraQueryParams:b,extraTokenParams:w,request_type:S,response_mode:_,client_secret:e._settings.client_secret,skipUserInfo:F}),k=A.state;return(E=E||e._stateStore).set(k.id,k.toStorageString()).then((function(){return A}))}))},e.prototype.readSigninResponseState=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug(\"OidcClient.readSigninResponseState\");var n=\"query\"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type)?\"?\":\"#\",o=new u.SigninResponse(e,n);return o.state?(t=t||this._stateStore,(r?t.remove.bind(t):t.get.bind(t))(o.state).then((function(e){if(!e)throw i.Log.error(\"OidcClient.readSigninResponseState: No matching state found in storage\"),new Error(\"No matching state found in storage\");return{state:h.SigninState.fromStorageString(e),response:o}}))):(i.Log.error(\"OidcClient.readSigninResponseState: No state in response\"),Promise.reject(new Error(\"No state in response\")))},e.prototype.processSigninResponse=function(e,t){var r=this;return i.Log.debug(\"OidcClient.processSigninResponse\"),this.readSigninResponseState(e,t,!0).then((function(e){var t=e.state,n=e.response;return i.Log.debug(\"OidcClient.processSigninResponse: Received state from storage; validating response\"),r._validator.validateSigninResponse(t,n)}))},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.id_token_hint,n=t.data,o=t.state,s=t.post_logout_redirect_uri,a=t.extraQueryParams,u=t.request_type,l=arguments[1];return i.Log.debug(\"OidcClient.createSignoutRequest\"),s=s||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(t){if(!t)throw i.Log.error(\"OidcClient.createSignoutRequest: No end session endpoint url returned\"),new Error(\"no end session endpoint\");i.Log.debug(\"OidcClient.createSignoutRequest: Received end session endpoint\",t);var h=new c.SignoutRequest({url:t,id_token_hint:r,post_logout_redirect_uri:s,data:n||o,extraQueryParams:a,request_type:u}),f=h.state;return f&&(i.Log.debug(\"OidcClient.createSignoutRequest: Signout request has state to persist\"),(l=l||e._stateStore).set(f.id,f.toStorageString())),h}))},e.prototype.readSignoutResponseState=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug(\"OidcClient.readSignoutResponseState\");var n=new l.SignoutResponse(e);if(!n.state)return i.Log.debug(\"OidcClient.readSignoutResponseState: No state in response\"),n.error?(i.Log.warn(\"OidcClient.readSignoutResponseState: Response was error: \",n.error),Promise.reject(new s.ErrorResponse(n))):Promise.resolve({state:void 0,response:n});var o=n.state;return t=t||this._stateStore,(r?t.remove.bind(t):t.get.bind(t))(o).then((function(e){if(!e)throw i.Log.error(\"OidcClient.readSignoutResponseState: No matching state found in storage\"),new Error(\"No matching state found in storage\");return{state:f.State.fromStorageString(e),response:n}}))},e.prototype.processSignoutResponse=function(e,t){var r=this;return i.Log.debug(\"OidcClient.processSignoutResponse\"),this.readSignoutResponseState(e,t,!0).then((function(e){var t=e.state,n=e.response;return t?(i.Log.debug(\"OidcClient.processSignoutResponse: Received state from storage; validating response\"),r._validator.validateSignoutResponse(t,n)):(i.Log.debug(\"OidcClient.processSignoutResponse: No state from storage; skipping validating response\"),n)}))},e.prototype.clearStaleState=function(e){return i.Log.debug(\"OidcClient.clearStaleState\"),e=e||this._stateStore,f.State.clearStaleState(e,this.settings.staleStateAge)},n(e,[{key:\"_stateStore\",get:function(){return this.settings.stateStore}},{key:\"_validator\",get:function(){return this.settings.validator}},{key:\"_metadataService\",get:function(){return this.settings.metadataService}},{key:\"settings\",get:function(){return this._settings}},{key:\"metadataService\",get:function(){return this._metadataService}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.TokenClient=void 0;var n=r(7),i=r(2),o=r(0);t.TokenClient=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!t)throw o.Log.error(\"TokenClient.ctor: No settings passed\"),new Error(\"settings\");this._settings=t,this._jsonService=new r,this._metadataService=new s(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||\"authorization_code\",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri;var r=void 0,n=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.code?t.redirect_uri?t.code_verifier?t.client_id?t.client_secret||\"client_secret_basic\"!=n?(\"client_secret_basic\"==n&&(r=t.client_id+\":\"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(n){return o.Log.debug(\"TokenClient.exchangeCode: Received token endpoint\"),e._jsonService.postForm(n,t,r).then((function(e){return o.Log.debug(\"TokenClient.exchangeCode: response received\"),e}))}))):(o.Log.error(\"TokenClient.exchangeCode: No client_secret passed\"),Promise.reject(new Error(\"A client_secret is required\"))):(o.Log.error(\"TokenClient.exchangeCode: No client_id passed\"),Promise.reject(new Error(\"A client_id is required\"))):(o.Log.error(\"TokenClient.exchangeCode: No code_verifier passed\"),Promise.reject(new Error(\"A code_verifier is required\"))):(o.Log.error(\"TokenClient.exchangeCode: No redirect_uri passed\"),Promise.reject(new Error(\"A redirect_uri is required\"))):(o.Log.error(\"TokenClient.exchangeCode: No code passed\"),Promise.reject(new Error(\"A code is required\")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||\"refresh_token\",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret;var r=void 0,n=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.refresh_token?t.client_id?(\"client_secret_basic\"==n&&(r=t.client_id+\":\"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(n){return o.Log.debug(\"TokenClient.exchangeRefreshToken: Received token endpoint\"),e._jsonService.postForm(n,t,r).then((function(e){return o.Log.debug(\"TokenClient.exchangeRefreshToken: response received\"),e}))}))):(o.Log.error(\"TokenClient.exchangeRefreshToken: No client_id passed\"),Promise.reject(new Error(\"A client_id is required\"))):(o.Log.error(\"TokenClient.exchangeRefreshToken: No refresh_token passed\"),Promise.reject(new Error(\"A refresh_token is required\")))},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.ErrorResponse=void 0;var n=r(0);t.ErrorResponse=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.error,o=r.error_description,s=r.error_uri,a=r.state,u=r.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t),!i)throw n.Log.error(\"No error passed to ErrorResponse\"),new Error(\"error\");var c=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,e.call(this,o||i));return c.name=\"ErrorResponse\",c.error=i,c.error_description=o,c.error_uri=s,c.state=a,c.session_state=u,c}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SigninState=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(9),s=r(4),a=function(e){return e&&e.__esModule?e:{default:e}}(r(14));t.SigninState=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.nonce,i=r.authority,o=r.client_id,u=r.redirect_uri,c=r.code_verifier,l=r.response_mode,h=r.client_secret,f=r.scope,g=r.extraTokenParams,p=r.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var d=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===n?d._nonce=(0,a.default)():n&&(d._nonce=n),!0===c?d._code_verifier=(0,a.default)()+(0,a.default)()+(0,a.default)():c&&(d._code_verifier=c),d.code_verifier){var v=s.JoseUtil.hashString(d.code_verifier,\"SHA256\");d._code_challenge=s.JoseUtil.hexToBase64Url(v)}return d._redirect_uri=u,d._authority=i,d._client_id=o,d._response_mode=l,d._client_secret=h,d._scope=f,d._extraTokenParams=g,d._skipUserInfo=p,d}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return i.Log.debug(\"SigninState.toStorageString\"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return i.Log.debug(\"SigninState.fromStorageString\"),new t(JSON.parse(e))},n(t,[{key:\"nonce\",get:function(){return this._nonce}},{key:\"authority\",get:function(){return this._authority}},{key:\"client_id\",get:function(){return this._client_id}},{key:\"redirect_uri\",get:function(){return this._redirect_uri}},{key:\"code_verifier\",get:function(){return this._code_verifier}},{key:\"code_challenge\",get:function(){return this._code_challenge}},{key:\"response_mode\",get:function(){return this._response_mode}},{key:\"client_secret\",get:function(){return this._client_secret}},{key:\"scope\",get:function(){return this._scope}},{key:\"extraTokenParams\",get:function(){return this._extraTokenParams}},{key:\"skipUserInfo\",get:function(){return this._skipUserInfo}}]),t}(o.State)},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(){return(\"undefined\"!=n&&null!==n&&void 0!==n.getRandomValues?i:o)().replace(/-/g,\"\")};var n=\"undefined\"!=typeof window?window.crypto||window.msCrypto:null;function i(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^n.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}function o(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^16*Math.random()>>e/4).toString(16)}))}e.exports=t.default},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.User=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);t.User=function(){function e(t){var r=t.id_token,n=t.session_state,i=t.access_token,o=t.refresh_token,s=t.token_type,a=t.scope,u=t.profile,c=t.expires_at,l=t.state;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.id_token=r,this.session_state=n,this.access_token=i,this.refresh_token=o,this.token_type=s,this.scope=a,this.profile=u,this.expires_at=c,this.state=l}return e.prototype.toStorageString=function(){return i.Log.debug(\"User.toStorageString\"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},e.fromStorageString=function(t){return i.Log.debug(\"User.fromStorageString\"),new e(JSON.parse(t))},n(e,[{key:\"expires_in\",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if(\"number\"==typeof t&&t>0){var r=parseInt(Date.now()/1e3);this.expires_at=r+t}}},{key:\"expired\",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:\"scopes\",get:function(){return(this.scope||\"\").split(\" \")}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.AccessTokenEvents=void 0;var n=r(0),i=r(46);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accessTokenExpiringNotificationTime,n=void 0===r?60:r,o=t.accessTokenExpiringTimer,s=void 0===o?new i.Timer(\"Access token expiring\"):o,a=t.accessTokenExpiredTimer,u=void 0===a?new i.Timer(\"Access token expired\"):a;(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),this._accessTokenExpiringNotificationTime=n,this._accessTokenExpiring=s,this._accessTokenExpired=u}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(n.Log.debug(\"AccessTokenEvents.load: access token present, remaining duration:\",t),t>0){var r=t-this._accessTokenExpiringNotificationTime;r<=0&&(r=1),n.Log.debug(\"AccessTokenEvents.load: registering expiring timer in:\",r),this._accessTokenExpiring.init(r)}else n.Log.debug(\"AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration.\"),this._accessTokenExpiring.cancel();var i=t+1;n.Log.debug(\"AccessTokenEvents.load: registering expired timer in:\",i),this._accessTokenExpired.init(i)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){n.Log.debug(\"AccessTokenEvents.unload: canceling existing access token timers\"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.Event=void 0;var n=r(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex((function(t){return t===e}));t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){n.Log.debug(\"Event: Raising event: \"+this._name);for(var e=0;e<this._callbacks.length;e++){var t;(t=this._callbacks)[e].apply(t,arguments)}},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SessionMonitor=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(19),s=r(1);t.SessionMonitor=function(){function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!t)throw i.Log.error(\"SessionMonitor.ctor: No user manager passed to SessionMonitor\"),new Error(\"userManager\");this._userManager=t,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then((function(e){e?r._start(e):r._settings.monitorAnonymousSession&&r._userManager.querySessionStatus().then((function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),r._start(t)})).catch((function(e){i.Log.error(\"SessionMonitor ctor: error from querySessionStatus:\",e.message)}))})).catch((function(e){i.Log.error(\"SessionMonitor ctor: error from getUser:\",e.message)})))}return e.prototype._start=function(e){var t=this,r=e.session_state;r&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,i.Log.debug(\"SessionMonitor._start: session_state:\",r,\", sub:\",this._sub)):(this._sub=void 0,this._sid=void 0,i.Log.debug(\"SessionMonitor._start: session_state:\",r,\", anonymous user\")),this._checkSessionIFrame?this._checkSessionIFrame.start(r):this._metadataService.getCheckSessionIframe().then((function(e){if(e){i.Log.debug(\"SessionMonitor._start: Initializing check session iframe\");var n=t._client_id,o=t._checkSessionInterval,s=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),n,e,o,s),t._checkSessionIFrame.load().then((function(){t._checkSessionIFrame.start(r)}))}else i.Log.warn(\"SessionMonitor._start: No check session iframe found in the metadata\")})).catch((function(e){i.Log.error(\"SessionMonitor._start: Error from getCheckSessionIframe:\",e.message)})))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(i.Log.debug(\"SessionMonitor._stop\"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval((function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then((function(t){var r={session_state:t.session_state};t.sub&&t.sid&&(r.profile={sub:t.sub,sid:t.sid}),e._start(r)})).catch((function(e){i.Log.error(\"SessionMonitor: error from querySessionStatus:\",e.message)}))}),1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then((function(t){var r=!0;t?t.sub===e._sub?(r=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?i.Log.debug(\"SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:\",t.session_state):(i.Log.debug(\"SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:\",t.session_state),e._userManager.events._raiseUserSessionChanged())):i.Log.debug(\"SessionMonitor._callback: Different subject signed into OP:\",t.sub):i.Log.debug(\"SessionMonitor._callback: Subject no longer signed into OP\"),r&&(e._sub?(i.Log.debug(\"SessionMonitor._callback: SessionMonitor._callback; raising signed out event\"),e._userManager.events._raiseUserSignedOut()):(i.Log.debug(\"SessionMonitor._callback: SessionMonitor._callback; raising signed in event\"),e._userManager.events._raiseUserSignedIn()))})).catch((function(t){e._sub&&(i.Log.debug(\"SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event\",t.message),e._userManager.events._raiseUserSignedOut())}))},n(e,[{key:\"_settings\",get:function(){return this._userManager.settings}},{key:\"_metadataService\",get:function(){return this._userManager.metadataService}},{key:\"_client_id\",get:function(){return this._settings.client_id}},{key:\"_checkSessionInterval\",get:function(){return this._settings.checkSessionInterval}},{key:\"_stopCheckSessionOnError\",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.CheckSessionIFrame=void 0;var n=r(0);t.CheckSessionIFrame=function(){function e(t,r,n,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,e),this._callback=t,this._client_id=r,this._url=n,this._interval=i||2e3,this._stopOnError=o;var s=n.indexOf(\"/\",n.indexOf(\"//\")+2);this._frame_origin=n.substr(0,s),this._frame=window.document.createElement(\"iframe\"),this._frame.style.visibility=\"hidden\",this._frame.style.position=\"absolute\",this._frame.style.display=\"none\",this._frame.width=0,this._frame.height=0,this._frame.src=n}return e.prototype.load=function(){var e=this;return new Promise((function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener(\"message\",e._boundMessageEvent,!1)}))},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&(\"error\"===e.data?(n.Log.error(\"CheckSessionIFrame: error message from check session op iframe\"),this._stopOnError&&this.stop()):\"changed\"===e.data?(n.Log.debug(\"CheckSessionIFrame: changed message from check session op iframe\"),this.stop(),this._callback()):n.Log.debug(\"CheckSessionIFrame: \"+e.data+\" message from check session op iframe\"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){n.Log.debug(\"CheckSessionIFrame.start\"),this.stop(),this._session_state=e;var r=function(){t._frame.contentWindow.postMessage(t._client_id+\" \"+t._session_state,t._frame_origin)};r(),this._timer=window.setInterval(r,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug(\"CheckSessionIFrame.stop\"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.TokenRevocationClient=void 0;var n=r(0),i=r(2),o=r(1);t.TokenRevocationClient=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!t)throw n.Log.error(\"TokenRevocationClient.ctor: No settings provided\"),new Error(\"No settings provided.\");this._settings=t,this._XMLHttpRequestCtor=r,this._metadataService=new s(this._settings)}return e.prototype.revoke=function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"access_token\";if(!e)throw n.Log.error(\"TokenRevocationClient.revoke: No token provided\"),new Error(\"No token provided.\");if(\"access_token\"!==i&&\"refresh_token\"!=i)throw n.Log.error(\"TokenRevocationClient.revoke: Invalid token type\"),new Error(\"Invalid token type.\");return this._metadataService.getRevocationEndpoint().then((function(o){if(o){n.Log.debug(\"TokenRevocationClient.revoke: Revoking \"+i);var s=r._settings.client_id,a=r._settings.client_secret;return r._revoke(o,s,a,e,i)}if(t)throw n.Log.error(\"TokenRevocationClient.revoke: Revocation not supported\"),new Error(\"Revocation not supported\")}))},e.prototype._revoke=function(e,t,r,i,o){var s=this;return new Promise((function(a,u){var c=new s._XMLHttpRequestCtor;c.open(\"POST\",e),c.onload=function(){n.Log.debug(\"TokenRevocationClient.revoke: HTTP response received, status\",c.status),200===c.status?a():u(Error(c.statusText+\" (\"+c.status+\")\"))},c.onerror=function(){n.Log.debug(\"TokenRevocationClient.revoke: Network Error.\"),u(\"Network Error\")};var l=\"client_id=\"+encodeURIComponent(t);r&&(l+=\"&client_secret=\"+encodeURIComponent(r)),l+=\"&token_type_hint=\"+encodeURIComponent(o),l+=\"&token=\"+encodeURIComponent(i),c.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\"),c.send(l)}))},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.CordovaPopupWindow=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);t.CordovaPopupWindow=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._promise=new Promise((function(e,t){r._resolve=e,r._reject=t})),this.features=t.popupWindowFeatures||\"location=no,toolbar=no,zoom=no\",this.target=t.popupWindowTarget||\"_blank\",this.redirect_uri=t.startUrl,i.Log.debug(\"CordovaPopupWindow.ctor: redirect_uri: \"+this.redirect_uri)}return e.prototype._isInAppBrowserInstalled=function(e){return[\"cordova-plugin-inappbrowser\",\"cordova-plugin-inappbrowser.inappbrowser\",\"org.apache.cordova.inappbrowser\"].some((function(t){return e.hasOwnProperty(t)}))},e.prototype.navigate=function(e){if(e&&e.url){if(!window.cordova)return this._error(\"cordova is undefined\");var t=window.cordova.require(\"cordova/plugin_list\").metadata;if(!1===this._isInAppBrowserInstalled(t))return this._error(\"InAppBrowser plugin not found\");this._popup=cordova.InAppBrowser.open(e.url,this.target,this.features),this._popup?(i.Log.debug(\"CordovaPopupWindow.navigate: popup successfully created\"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener(\"exit\",this._exitCallbackEvent,!1),this._popup.addEventListener(\"loadstart\",this._loadStartCallbackEvent,!1)):this._error(\"Error opening popup window\")}else this._error(\"No url provided\");return this.promise},e.prototype._loadStartCallback=function(e){0===e.url.indexOf(this.redirect_uri)&&this._success({url:e.url})},e.prototype._exitCallback=function(e){this._error(e)},e.prototype._success=function(e){this._cleanup(),i.Log.debug(\"CordovaPopupWindow: Successful response from cordova popup window\"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._popup&&(i.Log.debug(\"CordovaPopupWindow: cleaning up popup\"),this._popup.removeEventListener(\"exit\",this._exitCallbackEvent,!1),this._popup.removeEventListener(\"loadstart\",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},n(e,[{key:\"promise\",get:function(){return this._promise}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(0),i=r(10),o=r(5),s=r(6),a=r(37),u=r(38),c=r(16),l=r(2),h=r(48),f=r(49),g=r(19),p=r(20),d=r(18),v=r(1),y=r(15),m=r(50);t.default={Version:m.Version,Log:n.Log,OidcClient:i.OidcClient,OidcClientSettings:o.OidcClientSettings,WebStorageStateStore:s.WebStorageStateStore,InMemoryWebStorage:a.InMemoryWebStorage,UserManager:u.UserManager,AccessTokenEvents:c.AccessTokenEvents,MetadataService:l.MetadataService,CordovaPopupNavigator:h.CordovaPopupNavigator,CordovaIFrameNavigator:f.CordovaIFrameNavigator,CheckSessionIFrame:g.CheckSessionIFrame,TokenRevocationClient:p.TokenRevocationClient,SessionMonitor:d.SessionMonitor,Global:v.Global,User:y.User},e.exports=t.default},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.ClockService=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.ResponseValidator=void 0;var n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i=r(0),o=r(2),s=r(25),a=r(11),u=r(12),c=r(4),l=[\"nonce\",\"at_hash\",\"iat\",\"nbf\",\"exp\",\"aud\",\"iss\",\"c_hash\"];t.ResponseValidator=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!t)throw i.Log.error(\"ResponseValidator.ctor: No settings passed to ResponseValidator\"),new Error(\"settings\");this._settings=t,this._metadataService=new r(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var r=this;return i.Log.debug(\"ResponseValidator.validateSigninResponse\"),this._processSigninParams(e,t).then((function(t){return i.Log.debug(\"ResponseValidator.validateSigninResponse: state processed\"),r._validateTokens(e,t).then((function(t){return i.Log.debug(\"ResponseValidator.validateSigninResponse: tokens validated\"),r._processClaims(e,t).then((function(e){return i.Log.debug(\"ResponseValidator.validateSigninResponse: claims processed\"),e}))}))}))},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(i.Log.error(\"ResponseValidator.validateSignoutResponse: State does not match\"),Promise.reject(new Error(\"State does not match\"))):(i.Log.debug(\"ResponseValidator.validateSignoutResponse: state validated\"),t.state=e.data,t.error?(i.Log.warn(\"ResponseValidator.validateSignoutResponse: Response was error\",t.error),Promise.reject(new u.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return i.Log.error(\"ResponseValidator._processSigninParams: State does not match\"),Promise.reject(new Error(\"State does not match\"));if(!e.client_id)return i.Log.error(\"ResponseValidator._processSigninParams: No client_id on state\"),Promise.reject(new Error(\"No client_id on state\"));if(!e.authority)return i.Log.error(\"ResponseValidator._processSigninParams: No authority on state\"),Promise.reject(new Error(\"No authority on state\"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return i.Log.error(\"ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state\"),Promise.reject(new Error(\"authority mismatch on settings vs. signin state\"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return i.Log.error(\"ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state\"),Promise.reject(new Error(\"client_id mismatch on settings vs. signin state\"))}else this._settings.client_id=e.client_id;return i.Log.debug(\"ResponseValidator._processSigninParams: state validated\"),t.state=e.data,t.error?(i.Log.warn(\"ResponseValidator._processSigninParams: Response was error\",t.error),Promise.reject(new u.ErrorResponse(t))):e.nonce&&!t.id_token?(i.Log.error(\"ResponseValidator._processSigninParams: Expecting id_token in response\"),Promise.reject(new Error(\"No id_token in response\"))):!e.nonce&&t.id_token?(i.Log.error(\"ResponseValidator._processSigninParams: Not expecting id_token in response\"),Promise.reject(new Error(\"Unexpected id_token in response\"))):e.code_verifier&&!t.code?(i.Log.error(\"ResponseValidator._processSigninParams: Expecting code in response\"),Promise.reject(new Error(\"No code in response\"))):!e.code_verifier&&t.code?(i.Log.error(\"ResponseValidator._processSigninParams: Not expecting code in response\"),Promise.reject(new Error(\"Unexpected code in response\"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var r=this;if(t.isOpenIdConnect){if(i.Log.debug(\"ResponseValidator._processClaims: response is OIDC, processing claims\"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return i.Log.debug(\"ResponseValidator._processClaims: loading user info\"),this._userInfoService.getClaims(t.access_token).then((function(e){return i.Log.debug(\"ResponseValidator._processClaims: user info claims received from user info endpoint\"),e.sub!==t.profile.sub?(i.Log.error(\"ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token\"),Promise.reject(new Error(\"sub from user info endpoint does not match sub in id_token\"))):(t.profile=r._mergeClaims(t.profile,e),i.Log.debug(\"ResponseValidator._processClaims: user info claims received, updated profile:\",t.profile),t)}));i.Log.debug(\"ResponseValidator._processClaims: not loading user info\")}else i.Log.debug(\"ResponseValidator._processClaims: response is not OIDC, not processing claims\");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var r=Object.assign({},e);for(var i in t){var o=t[i];Array.isArray(o)||(o=[o]);for(var s=0;s<o.length;s++){var a=o[s];r[i]?Array.isArray(r[i])?r[i].indexOf(a)<0&&r[i].push(a):r[i]!==a&&(\"object\"===(void 0===a?\"undefined\":n(a))&&this._settings.mergeClaims?r[i]=this._mergeClaims(r[i],a):r[i]=[r[i],a]):r[i]=a}}return r},e.prototype._filterProtocolClaims=function(e){i.Log.debug(\"ResponseValidator._filterProtocolClaims, incoming claims:\",e);var t=Object.assign({},e);return this._settings._filterProtocolClaims?(l.forEach((function(e){delete t[e]})),i.Log.debug(\"ResponseValidator._filterProtocolClaims: protocol claims filtered\",t)):i.Log.debug(\"ResponseValidator._filterProtocolClaims: protocol claims not filtered\"),t},e.prototype._validateTokens=function(e,t){return t.code?(i.Log.debug(\"ResponseValidator._validateTokens: Validating code\"),this._processCode(e,t)):t.id_token?t.access_token?(i.Log.debug(\"ResponseValidator._validateTokens: Validating id_token and access_token\"),this._validateIdTokenAndAccessToken(e,t)):(i.Log.debug(\"ResponseValidator._validateTokens: Validating id_token\"),this._validateIdToken(e,t)):(i.Log.debug(\"ResponseValidator._validateTokens: No code to process or id_token to validate\"),Promise.resolve(t))},e.prototype._processCode=function(e,t){var r=this,o={client_id:e.client_id,client_secret:e.client_secret,code:t.code,redirect_uri:e.redirect_uri,code_verifier:e.code_verifier};return e.extraTokenParams&&\"object\"===n(e.extraTokenParams)&&Object.assign(o,e.extraTokenParams),this._tokenClient.exchangeCode(o).then((function(n){for(var o in n)t[o]=n[o];return t.id_token?(i.Log.debug(\"ResponseValidator._processCode: token response successful, processing id_token\"),r._validateIdTokenAttributes(e,t)):(i.Log.debug(\"ResponseValidator._processCode: token response successful, returning response\"),t)}))},e.prototype._validateIdTokenAttributes=function(e,t){var r=this;return this._metadataService.getIssuer().then((function(n){var o=e.client_id,s=r._settings.clockSkew;return i.Log.debug(\"ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: \",s),r._settings.getEpochTime().then((function(a){return r._joseUtil.validateJwtAttributes(t.id_token,n,o,s,a).then((function(r){return e.nonce&&e.nonce!==r.nonce?(i.Log.error(\"ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token\"),Promise.reject(new Error(\"Invalid nonce in id_token\"))):r.sub?(t.profile=r,t):(i.Log.error(\"ResponseValidator._validateIdTokenAttributes: No sub present in id_token\"),Promise.reject(new Error(\"No sub present in id_token\")))}))}))}))},e.prototype._validateIdTokenAndAccessToken=function(e,t){var r=this;return this._validateIdToken(e,t).then((function(e){return r._validateAccessToken(e)}))},e.prototype._getSigningKeyForJwt=function(e){var t=this;return this._metadataService.getSigningKeys().then((function(r){var n=e.header.kid;if(!r)return i.Log.error(\"ResponseValidator._validateIdToken: No signing keys from metadata\"),Promise.reject(new Error(\"No signing keys from metadata\"));i.Log.debug(\"ResponseValidator._validateIdToken: Received signing keys\");var o=void 0;if(n)o=r.filter((function(e){return e.kid===n}))[0];else{if((r=t._filterByAlg(r,e.header.alg)).length>1)return i.Log.error(\"ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata\"),Promise.reject(new Error(\"No kid found in id_token and more than one key found in metadata\"));o=r[0]}return Promise.resolve(o)}))},e.prototype._getSigningKeyForJwtWithSingleRetry=function(e){var t=this;return this._getSigningKeyForJwt(e).then((function(r){return r?Promise.resolve(r):(t._metadataService.resetSigningKeys(),t._getSigningKeyForJwt(e))}))},e.prototype._validateIdToken=function(e,t){var r=this;if(!e.nonce)return i.Log.error(\"ResponseValidator._validateIdToken: No nonce on state\"),Promise.reject(new Error(\"No nonce on state\"));var n=this._joseUtil.parseJwt(t.id_token);return n&&n.header&&n.payload?e.nonce!==n.payload.nonce?(i.Log.error(\"ResponseValidator._validateIdToken: Invalid nonce in id_token\"),Promise.reject(new Error(\"Invalid nonce in id_token\"))):this._metadataService.getIssuer().then((function(o){return i.Log.debug(\"ResponseValidator._validateIdToken: Received issuer\"),r._getSigningKeyForJwtWithSingleRetry(n).then((function(s){if(!s)return i.Log.error(\"ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys\"),Promise.reject(new Error(\"No key matching kid or alg found in signing keys\"));var a=e.client_id,u=r._settings.clockSkew;return i.Log.debug(\"ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: \",u),r._joseUtil.validateJwt(t.id_token,s,o,a,u).then((function(){return i.Log.debug(\"ResponseValidator._validateIdToken: JWT validation successful\"),n.payload.sub?(t.profile=n.payload,t):(i.Log.error(\"ResponseValidator._validateIdToken: No sub present in id_token\"),Promise.reject(new Error(\"No sub present in id_token\")))}))}))})):(i.Log.error(\"ResponseValidator._validateIdToken: Failed to parse id_token\",n),Promise.reject(new Error(\"Failed to parse id_token\")))},e.prototype._filterByAlg=function(e,t){var r=null;if(t.startsWith(\"RS\"))r=\"RSA\";else if(t.startsWith(\"PS\"))r=\"PS\";else{if(!t.startsWith(\"ES\"))return i.Log.debug(\"ResponseValidator._filterByAlg: alg not supported: \",t),[];r=\"EC\"}return i.Log.debug(\"ResponseValidator._filterByAlg: Looking for keys that match kty: \",r),e=e.filter((function(e){return e.kty===r})),i.Log.debug(\"ResponseValidator._filterByAlg: Number of keys that match kty: \",r,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return i.Log.error(\"ResponseValidator._validateAccessToken: No profile loaded from id_token\"),Promise.reject(new Error(\"No profile loaded from id_token\"));if(!e.profile.at_hash)return i.Log.error(\"ResponseValidator._validateAccessToken: No at_hash in id_token\"),Promise.reject(new Error(\"No at_hash in id_token\"));if(!e.id_token)return i.Log.error(\"ResponseValidator._validateAccessToken: No id_token\"),Promise.reject(new Error(\"No id_token\"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return i.Log.error(\"ResponseValidator._validateAccessToken: Failed to parse id_token\",t),Promise.reject(new Error(\"Failed to parse id_token\"));var r=t.header.alg;if(!r||5!==r.length)return i.Log.error(\"ResponseValidator._validateAccessToken: Unsupported alg:\",r),Promise.reject(new Error(\"Unsupported alg: \"+r));var n=r.substr(2,3);if(!n)return i.Log.error(\"ResponseValidator._validateAccessToken: Unsupported alg:\",r,n),Promise.reject(new Error(\"Unsupported alg: \"+r));if(256!==(n=parseInt(n))&&384!==n&&512!==n)return i.Log.error(\"ResponseValidator._validateAccessToken: Unsupported alg:\",r,n),Promise.reject(new Error(\"Unsupported alg: \"+r));var o=\"sha\"+n,s=this._joseUtil.hashString(e.access_token,o);if(!s)return i.Log.error(\"ResponseValidator._validateAccessToken: access_token hash failed:\",o),Promise.reject(new Error(\"Failed to validate at_hash\"));var a=s.substr(0,s.length/2),u=this._joseUtil.hexToBase64Url(a);return u!==e.profile.at_hash?(i.Log.error(\"ResponseValidator._validateAccessToken: Failed to validate at_hash\",u,e.profile.at_hash),Promise.reject(new Error(\"Failed to validate at_hash\"))):(i.Log.debug(\"ResponseValidator._validateAccessToken: success\"),Promise.resolve(e))},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.UserInfoService=void 0;var n=r(7),i=r(2),o=r(0),s=r(4);t.UserInfoService=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!t)throw o.Log.error(\"UserInfoService.ctor: No settings passed\"),new Error(\"settings\");this._settings=t,this._jsonService=new r(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=u}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then((function(r){return o.Log.debug(\"UserInfoService.getClaims: received userinfo url\",r),t._jsonService.getJson(r,e).then((function(e){return o.Log.debug(\"UserInfoService.getClaims: claims received\",e),e}))})):(o.Log.error(\"UserInfoService.getClaims: No token passed\"),Promise.reject(new Error(\"A token is required\")))},e.prototype._getClaimsFromJwt=function e(t){var r=this;try{var n=this._joseUtil.parseJwt(t.responseText);if(!n||!n.header||!n.payload)return o.Log.error(\"UserInfoService._getClaimsFromJwt: Failed to parse JWT\",n),Promise.reject(new Error(\"Failed to parse id_token\"));var i=n.header.kid,s=void 0;switch(this._settings.userInfoJwtIssuer){case\"OP\":s=this._metadataService.getIssuer();break;case\"ANY\":s=Promise.resolve(n.payload.iss);break;default:s=Promise.resolve(this._settings.userInfoJwtIssuer)}return s.then((function(e){return o.Log.debug(\"UserInfoService._getClaimsFromJwt: Received issuer:\"+e),r._metadataService.getSigningKeys().then((function(s){if(!s)return o.Log.error(\"UserInfoService._getClaimsFromJwt: No signing keys from metadata\"),Promise.reject(new Error(\"No signing keys from metadata\"));o.Log.debug(\"UserInfoService._getClaimsFromJwt: Received signing keys\");var a=void 0;if(i)a=s.filter((function(e){return e.kid===i}))[0];else{if((s=r._filterByAlg(s,n.header.alg)).length>1)return o.Log.error(\"UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata\"),Promise.reject(new Error(\"No kid found in id_token and more than one key found in metadata\"));a=s[0]}if(!a)return o.Log.error(\"UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys\"),Promise.reject(new Error(\"No key matching kid or alg found in signing keys\"));var u=r._settings.client_id,c=r._settings.clockSkew;return o.Log.debug(\"UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: \",c),r._joseUtil.validateJwt(t.responseText,a,e,u,c,void 0,!0).then((function(){return o.Log.debug(\"UserInfoService._getClaimsFromJwt: JWT validation successful\"),n.payload}))}))}))}catch(e){return o.Log.error(\"UserInfoService._getClaimsFromJwt: Error parsing JWT response\",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var r=null;if(t.startsWith(\"RS\"))r=\"RSA\";else if(t.startsWith(\"PS\"))r=\"PS\";else{if(!t.startsWith(\"ES\"))return o.Log.debug(\"UserInfoService._filterByAlg: alg not supported: \",t),[];r=\"EC\"}return o.Log.debug(\"UserInfoService._filterByAlg: Looking for keys that match kty: \",r),e=e.filter((function(e){return e.kty===r})),o.Log.debug(\"UserInfoService._filterByAlg: Number of keys that match kty: \",r,e.length),e},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var n=r(27);t.jws=n.jws,t.KeyUtil=n.KEYUTIL,t.X509=n.X509,t.crypto=n.crypto,t.hextob64u=n.hextob64u,t.b64tohex=n.b64tohex,t.AllowedSigningAlgs=[\"RS256\",\"RS384\",\"RS512\",\"PS256\",\"PS384\",\"PS512\",\"ES256\",\"ES384\",\"ES512\"]},function(e,t,r){(function(e){Object.defineProperty(t,\"__esModule\",{value:!0});var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},n={userAgent:!1},i={};if(void 0===o)var o={};o.lang={extend:function(e,t,r){if(!t||!e)throw new Error(\"YAHOO.lang.extend failed, please check that all dependencies are included.\");var i=function(){};if(i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var o;for(o in r)e.prototype[o]=r[o];var s=function(){},a=[\"toString\",\"valueOf\"];try{/MSIE/.test(n.userAgent)&&(s=function(e,t){for(o=0;o<a.length;o+=1){var r=a[o],n=t[r];\"function\"==typeof n&&n!=Object.prototype[r]&&(e[r]=n)}})}catch(e){}s(e.prototype,r)}}};var s,a,u,c,l,h,f,g,p,d,v,y=y||(s=Math,u=(a={}).lib={},c=u.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var r=new e;return t&&r.mixIn(t),r.hasOwnProperty(\"init\")||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(\"toString\")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=u.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=s<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(4294967296*s.random()|0);return new l.init(t,e)}}),h=a.enc={},f=h.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join(\"\")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},g=h.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join(\"\")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},p=h.Utf8={stringify:function(e){try{return decodeURIComponent(escape(g.stringify(e)))}catch(e){throw new Error(\"Malformed UTF-8 data\")}},parse:function(e){return g.parse(unescape(encodeURIComponent(e)))}},d=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){\"string\"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,n=t.sigBytes,i=this.blockSize,o=n/(4*i),a=(o=e?s.ceil(o):s.max((0|o)-this._minBufferSize,0))*i,u=s.min(4*a,n);if(a){for(var c=0;c<a;c+=i)this._doProcessBlock(r,c);var h=r.splice(0,a);t.sigBytes-=u}return new l.init(h,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),u.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new v.HMAC.init(e,r).finalize(t)}}}),v=a.algo={},a);!function(e){var t,r=(t=y).lib,n=r.Base,i=r.WordArray;(t=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}})}(),function(){var e=y,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp(),e=[];for(var i=0;i<r;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;4>s&&i+.75*s<r;s++)e.push(n.charAt(o>>>6*(3-s)&63));if(t=n.charAt(64))for(;e.length%4;)e.push(t);return e.join(\"\")},parse:function(e){var r=e.length,n=this._map;(i=n.charAt(64))&&-1!=(i=e.indexOf(i))&&(r=i);for(var i=[],o=0,s=0;s<r;s++)if(s%4){var a=n.indexOf(e.charAt(s-1))<<s%4*2,u=n.indexOf(e.charAt(s))>>>6-s%4*2;i[o>>>2]|=(a|u)<<24-o%4*8,o++}return t.create(i,o)},_map:\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\"}}(),function(e){for(var t=y,r=(i=t.lib).WordArray,n=i.Hasher,i=t.algo,o=[],s=[],a=function(e){return 4294967296*(e-(0|e))|0},u=2,c=0;64>c;){var l;e:{l=u;for(var h=e.sqrt(l),f=2;f<=h;f++)if(!(l%f)){l=!1;break e}l=!0}l&&(8>c&&(o[c]=a(e.pow(u,.5))),s[c]=a(e.pow(u,1/3)),c++),u++}var g=[];i=i.SHA256=n.extend({_doReset:function(){this._hash=new r.init(o.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],c=r[5],l=r[6],h=r[7],f=0;64>f;f++){if(16>f)g[f]=0|e[t+f];else{var p=g[f-15],d=g[f-2];g[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+g[f-7]+((d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10)+g[f-16]}p=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+s[f]+g[f],d=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&i^n&o^i&o),h=l,l=c,c=u,u=a+p|0,a=o,o=i,i=n,n=p+d|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0,r[5]=r[5]+c|0,r[6]=r[6]+l|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=n._createHelper(i),t.HmacSHA256=n._createHmacHelper(i)}(Math),function(){function e(){return n.create.apply(n,arguments)}for(var t=y,r=t.lib.Hasher,n=(o=t.x64).Word,i=o.WordArray,o=t.algo,s=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[],u=0;80>u;u++)a[u]=e();o=o.SHA512=r.extend({_doReset:function(){this._hash=new i.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=(h=this._hash.words)[0],n=h[1],i=h[2],o=h[3],u=h[4],c=h[5],l=h[6],h=h[7],f=r.high,g=r.low,p=n.high,d=n.low,v=i.high,y=i.low,m=o.high,_=o.low,b=u.high,w=u.low,S=c.high,F=c.low,E=l.high,x=l.low,C=h.high,A=h.low,k=f,L=g,P=p,T=d,R=v,O=y,I=m,N=_,j=b,M=w,D=S,U=F,B=E,H=x,V=C,K=A,q=0;80>q;q++){var J=a[q];if(16>q)var W=J.high=0|e[t+2*q],G=J.low=0|e[t+2*q+1];else{W=((G=(W=a[q-15]).high)>>>1|(Y=W.low)<<31)^(G>>>8|Y<<24)^G>>>7;var Y=(Y>>>1|G<<31)^(Y>>>8|G<<24)^(Y>>>7|G<<25),z=((G=(z=a[q-2]).high)>>>19|($=z.low)<<13)^(G<<3|$>>>29)^G>>>6,$=($>>>19|G<<13)^($<<3|G>>>29)^($>>>6|G<<26),X=(G=a[q-7]).high,Q=(Z=a[q-16]).high,Z=Z.low;W=(W=(W=W+X+((G=Y+G.low)>>>0<Y>>>0?1:0))+z+((G+=$)>>>0<$>>>0?1:0))+Q+((G+=Z)>>>0<Z>>>0?1:0),J.high=W,J.low=G}X=j&D^~j&B,Z=M&U^~M&H,J=k&P^k&R^P&R;var ee=L&T^L&O^T&O,te=(Y=(k>>>28|L<<4)^(k<<30|L>>>2)^(k<<25|L>>>7),z=(L>>>28|k<<4)^(L<<30|k>>>2)^(L<<25|k>>>7),($=s[q]).high),re=$.low;Q=V+((j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9))+(($=K+((M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9)))>>>0<K>>>0?1:0),V=B,K=H,B=D,H=U,D=j,U=M,j=I+(Q=(Q=(Q=Q+X+(($+=Z)>>>0<Z>>>0?1:0))+te+(($+=re)>>>0<re>>>0?1:0))+W+(($+=G)>>>0<G>>>0?1:0))+((M=N+$|0)>>>0<N>>>0?1:0)|0,I=R,N=O,R=P,O=T,P=k,T=L,k=Q+(J=Y+J+((G=z+ee)>>>0<z>>>0?1:0))+((L=$+G|0)>>>0<$>>>0?1:0)|0}g=r.low=g+L,r.high=f+k+(g>>>0<L>>>0?1:0),d=n.low=d+T,n.high=p+P+(d>>>0<T>>>0?1:0),y=i.low=y+O,i.high=v+R+(y>>>0<O>>>0?1:0),_=o.low=_+N,o.high=m+I+(_>>>0<N>>>0?1:0),w=u.low=w+M,u.high=b+j+(w>>>0<M>>>0?1:0),F=c.low=F+U,c.high=S+D+(F>>>0<U>>>0?1:0),x=l.low=x+H,l.high=E+B+(x>>>0<H>>>0?1:0),A=h.low=A+K,h.high=C+V+(A>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=r._createHelper(o),t.HmacSHA512=r._createHmacHelper(o)}(),function(){var e=y,t=(i=e.x64).Word,r=i.WordArray,n=(i=e.algo).SHA512,i=i.SHA384=n.extend({_doReset:function(){this._hash=new r.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=n._createHelper(i),e.HmacSHA384=n._createHmacHelper(i)}();var m,_=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";function b(e){var t,r,n=\"\";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=_.charAt(r>>6)+_.charAt(63&r);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=_.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=_.charAt(r>>2)+_.charAt((3&r)<<4));(3&n.length)>0;)n+=\"=\";return n}function w(e){var t,r,n,i=\"\",o=0;for(t=0;t<e.length&&\"=\"!=e.charAt(t);++t)(n=_.indexOf(e.charAt(t)))<0||(0==o?(i+=k(n>>2),r=3&n,o=1):1==o?(i+=k(r<<2|n>>4),r=15&n,o=2):2==o?(i+=k(r),i+=k(n>>2),r=3&n,o=3):(i+=k(r<<2|n>>4),i+=k(15&n),o=0));return 1==o&&(i+=k(r<<2)),i}function S(e){var t,r=w(e),n=new Array;for(t=0;2*t<r.length;++t)n[t]=parseInt(r.substring(2*t,2*t+2),16);return n}function F(e,t,r){null!=e&&(\"number\"==typeof e?this.fromNumber(e,t,r):null==t&&\"string\"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function E(){return new F(null)}\"Microsoft Internet Explorer\"==n.appName?(F.prototype.am=function(e,t,r,n,i,o){for(var s=32767&t,a=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=a*u+c*s;i=((u=s*u+((32767&l)<<15)+r[n]+(1073741823&i))>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=1073741823&u}return i},m=30):\"Netscape\"!=n.appName?(F.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var s=t*this[e++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},m=26):(F.prototype.am=function(e,t,r,n,i,o){for(var s=16383&t,a=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=a*u+c*s;i=((u=s*u+((16383&l)<<14)+r[n]+i)>>28)+(l>>14)+a*c,r[n++]=268435455&u}return i},m=28),F.prototype.DB=m,F.prototype.DM=(1<<m)-1,F.prototype.DV=1<<m,F.prototype.FV=Math.pow(2,52),F.prototype.F1=52-m,F.prototype.F2=2*m-52;var x,C,A=new Array;for(x=\"0\".charCodeAt(0),C=0;C<=9;++C)A[x++]=C;for(x=\"a\".charCodeAt(0),C=10;C<36;++C)A[x++]=C;for(x=\"A\".charCodeAt(0),C=10;C<36;++C)A[x++]=C;function k(e){return\"0123456789abcdefghijklmnopqrstuvwxyz\".charAt(e)}function L(e,t){var r=A[e.charCodeAt(t)];return null==r?-1:r}function P(e){var t=E();return t.fromInt(e),t}function T(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function R(e){this.m=e}function O(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function I(e,t){return e&t}function N(e,t){return e|t}function j(e,t){return e^t}function M(e,t){return e&~t}function D(e){if(0==e)return-1;var t=0;return!(65535&e)&&(e>>=16,t+=16),!(255&e)&&(e>>=8,t+=8),!(15&e)&&(e>>=4,t+=4),!(3&e)&&(e>>=2,t+=2),!(1&e)&&++t,t}function U(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function B(){}function H(e){return e}function V(e){this.r2=E(),this.q3=E(),F.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}R.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},R.prototype.revert=function(e){return e},R.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},R.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},R.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},O.prototype.convert=function(e){var t=E();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(F.ZERO)>0&&this.m.subTo(t,t),t},O.prototype.revert=function(e){var t=E();return e.copyTo(t),this.reduce(t),t},O.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},O.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},O.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},F.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},F.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},F.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var n=e.length,i=!1,o=0;--n>=0;){var s=8==r?255&e[n]:L(e,n);s<0?\"-\"==e.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&!!(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&F.ZERO.subTo(this,this)},F.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},F.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},F.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},F.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(e/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)t[r]=0;t[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()},F.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<i,t[s-r]=this[s]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()}},F.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},F.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t[i]=0;for(i=0;i<n.t;++i)t[i+r.t]=r.am(0,n[i],t,i,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&F.ZERO.subTo(t,t)},F.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},F.prototype.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=t&&t.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=E());var o=E(),s=this.s,a=e.s,u=this.DB-T(n[n.t-1]);u>0?(n.lShiftTo(u,o),i.lShiftTo(u,r)):(n.copyTo(o),i.copyTo(r));var c=o.t,l=o[c-1];if(0!=l){var h=l*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),f=this.FV/h,g=(1<<this.F1)/h,p=1<<this.F2,d=r.t,v=d-c,y=null==t?E():t;for(o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),F.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--v>=0;){var m=r[--d]==l?this.DM:Math.floor(r[d]*f+(r[d-1]+p)*g);if((r[d]+=o.am(0,m,r,v,0,c))<m)for(o.dlShiftTo(v,y),r.subTo(y,r);r[d]<--m;)r.subTo(y,r)}null!=t&&(r.drShiftTo(c,t),s!=a&&F.ZERO.subTo(t,t)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&F.ZERO.subTo(r,r)}}},F.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},F.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},F.prototype.exp=function(e,t){if(e>4294967295||e<1)return F.ONE;var r=E(),n=E(),i=t.convert(this),o=T(e)-1;for(i.copyTo(r);--o>=0;)if(t.sqrTo(r,n),(e&1<<o)>0)t.mulTo(n,i,r);else{var s=r;r=n,n=s}return t.revert(r)},F.prototype.toString=function(e){if(this.s<0)return\"-\"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,o=\"\",s=this.t,a=this.DB-s*this.DB%t;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=k(r));s>=0;)a<t?(r=(this[s]&(1<<a)-1)<<t-a,r|=this[--s]>>(a+=this.DB-t)):(r=this[s]>>(a-=t)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=k(r));return i?o:\"0\"},F.prototype.negate=function(){var e=E();return F.ZERO.subTo(this,e),e},F.prototype.abs=function(){return this.s<0?this.negate():this},F.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},F.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+T(this[this.t-1]^this.s&this.DM)},F.prototype.mod=function(e){var t=E();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(F.ZERO)>0&&e.subTo(t,t),t},F.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new R(t):new O(t),this.exp(e,r)},F.ZERO=P(0),F.ONE=P(1),B.prototype.convert=H,B.prototype.revert=H,B.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},B.prototype.sqrTo=function(e,t){e.squareTo(t)},V.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=E();return e.copyTo(t),this.reduce(t),t},V.prototype.revert=function(e){return e},V.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},V.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},V.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var K,q,J,W=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],G=(1<<26)/W[W.length-1];function Y(){this.i=0,this.j=0,this.S=new Array}function z(){!function(e){q[J++]^=255&e,q[J++]^=e>>8&255,q[J++]^=e>>16&255,q[J++]^=e>>24&255,J>=256&&(J-=256)}((new Date).getTime())}if(F.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},F.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return\"0\";var t=this.chunkSize(e),r=Math.pow(e,t),n=P(r),i=E(),o=E(),s=\"\";for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,i.divRemTo(n,i,o);return o.intValue().toString(e)+s},F.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),n=Math.pow(t,r),i=!1,o=0,s=0,a=0;a<e.length;++a){var u=L(e,a);u<0?\"-\"==e.charAt(a)&&0==this.signum()&&(i=!0):(s=t*s+u,++o>=r&&(this.dMultiply(n),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),i&&F.ZERO.subTo(this,this)},F.prototype.fromNumber=function(e,t,r){if(\"number\"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(F.ONE.shiftLeft(e-1),N,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(F.ONE.shiftLeft(e-1),this);else{var n=new Array,i=7&e;n.length=1+(e>>3),t.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},F.prototype.bitwiseTo=function(e,t,r){var n,i,o=Math.min(e.t,this.t);for(n=0;n<o;++n)r[n]=t(this[n],e[n]);if(e.t<this.t){for(i=e.s&this.DM,n=o;n<this.t;++n)r[n]=t(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<e.t;++n)r[n]=t(i,e[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},F.prototype.changeBit=function(e,t){var r=F.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},F.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},F.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},F.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},F.prototype.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(n=Math.min(e.t,t);i<n;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},F.prototype.multiplyUpperTo=function(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r[this.t+n-t]=this.am(t-n,e[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)},F.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r},F.prototype.millerRabin=function(e){var t=this.subtract(F.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var n=t.shiftRight(r);(e=e+1>>1)>W.length&&(e=W.length);for(var i=E(),o=0;o<e;++o){i.fromInt(W[Math.floor(Math.random()*W.length)]);var s=i.modPow(n,this);if(0!=s.compareTo(F.ONE)&&0!=s.compareTo(t)){for(var a=1;a++<r&&0!=s.compareTo(t);)if(0==(s=s.modPowInt(2,this)).compareTo(F.ONE))return!1;if(0!=s.compareTo(t))return!1}}return!0},F.prototype.clone=function(){var e=E();return this.copyTo(e),e},F.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},F.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},F.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},F.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},F.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,n=this.DB-e*this.DB%8,i=0;if(e-- >0)for(n<this.DB&&(r=this[e]>>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<<this.DB-n);e>=0;)n<8?(r=(this[e]&(1<<n)-1)<<8-n,r|=this[--e]>>(n+=this.DB-8)):(r=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),!!(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},F.prototype.equals=function(e){return 0==this.compareTo(e)},F.prototype.min=function(e){return this.compareTo(e)<0?this:e},F.prototype.max=function(e){return this.compareTo(e)>0?this:e},F.prototype.and=function(e){var t=E();return this.bitwiseTo(e,I,t),t},F.prototype.or=function(e){var t=E();return this.bitwiseTo(e,N,t),t},F.prototype.xor=function(e){var t=E();return this.bitwiseTo(e,j,t),t},F.prototype.andNot=function(e){var t=E();return this.bitwiseTo(e,M,t),t},F.prototype.not=function(){for(var e=E(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},F.prototype.shiftLeft=function(e){var t=E();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},F.prototype.shiftRight=function(e){var t=E();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},F.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+D(this[e]);return this.s<0?this.t*this.DB:-1},F.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=U(this[r]^t);return e},F.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},F.prototype.setBit=function(e){return this.changeBit(e,N)},F.prototype.clearBit=function(e){return this.changeBit(e,M)},F.prototype.flipBit=function(e){return this.changeBit(e,j)},F.prototype.add=function(e){var t=E();return this.addTo(e,t),t},F.prototype.subtract=function(e){var t=E();return this.subTo(e,t),t},F.prototype.multiply=function(e){var t=E();return this.multiplyTo(e,t),t},F.prototype.divide=function(e){var t=E();return this.divRemTo(e,t,null),t},F.prototype.remainder=function(e){var t=E();return this.divRemTo(e,null,t),t},F.prototype.divideAndRemainder=function(e){var t=E(),r=E();return this.divRemTo(e,t,r),new Array(t,r)},F.prototype.modPow=function(e,t){var r,n,i=e.bitLength(),o=P(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new R(t):t.isEven()?new V(t):new O(t);var s=new Array,a=3,u=r-1,c=(1<<r)-1;if(s[1]=n.convert(this),r>1){var l=E();for(n.sqrTo(s[1],l);a<=c;)s[a]=E(),n.mulTo(l,s[a-2],s[a]),a+=2}var h,f,g=e.t-1,p=!0,d=E();for(i=T(e[g])-1;g>=0;){for(i>=u?h=e[g]>>i-u&c:(h=(e[g]&(1<<i+1)-1)<<u-i,g>0&&(h|=e[g-1]>>this.DB+i-u)),a=r;!(1&h);)h>>=1,--a;if((i-=a)<0&&(i+=this.DB,--g),p)s[h].copyTo(o),p=!1;else{for(;a>1;)n.sqrTo(o,d),n.sqrTo(d,o),a-=2;a>0?n.sqrTo(o,d):(f=o,o=d,d=f),n.mulTo(d,s[h],o)}for(;g>=0&&!(e[g]&1<<i);)n.sqrTo(o,d),f=o,o=d,d=f,--i<0&&(i=this.DB-1,--g)}return n.revert(o)},F.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return F.ZERO;for(var r=e.clone(),n=this.clone(),i=P(1),o=P(0),s=P(0),a=P(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;n.isEven();)n.rShiftTo(1,n),t?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);r.compareTo(n)>=0?(r.subTo(n,r),t&&i.subTo(s,i),o.subTo(a,o)):(n.subTo(r,n),t&&s.subTo(i,s),a.subTo(o,a))}return 0!=n.compareTo(F.ONE)?F.ZERO:a.compareTo(e)>=0?a.subtract(e):a.signum()<0?(a.addTo(e,a),a.signum()<0?a.add(e):a):a},F.prototype.pow=function(e){return this.exp(e,new B)},F.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},F.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=W[W.length-1]){for(t=0;t<W.length;++t)if(r[0]==W[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<W.length;){for(var n=W[t],i=t+1;i<W.length&&n<G;)n*=W[i++];for(n=r.modInt(n);t<i;)if(n%W[t++]==0)return!1}return r.millerRabin(e)},F.prototype.square=function(){var e=E();return this.squareTo(e),e},Y.prototype.init=function(e){var t,r,n;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,n=this.S[t],this.S[t]=this.S[r],this.S[r]=n;this.i=0,this.j=0},Y.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},null==q){var $;if(q=new Array,J=0,void 0!==i&&(void 0!==i.crypto||void 0!==i.msCrypto)){var X=i.crypto||i.msCrypto;if(X.getRandomValues){var Q=new Uint8Array(32);for(X.getRandomValues(Q),$=0;$<32;++$)q[J++]=Q[$]}else if(\"Netscape\"==n.appName&&n.appVersion<\"5\"){var Z=i.crypto.random(32);for($=0;$<Z.length;++$)q[J++]=255&Z.charCodeAt($)}}for(;J<256;)$=Math.floor(65536*Math.random()),q[J++]=$>>>8,q[J++]=255&$;J=0,z()}function ee(){if(null==K){for(z(),(K=new Y).init(q),J=0;J<q.length;++J)q[J]=0;J=0}return K.next()}function te(){}function re(e,t){return new F(e,t)}function ne(e,t,r){for(var n=\"\",i=0;n.length<t;)n+=r(String.fromCharCode.apply(String,e.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return n}function ie(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function oe(e,t){this.x=t,this.q=e}function se(e,t,r,n){this.curve=e,this.x=t,this.y=r,this.z=null==n?F.ONE:n,this.zinv=null}function ae(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new se(this,null,null)}te.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=ee()},ie.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},ie.prototype.setPublic=function(e,t){if(this.isPublic=!0,this.isPrivate=!1,\"string\"!=typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw\"Invalid RSA public key\";this.n=re(e,16),this.e=parseInt(t,16)}},ie.prototype.encrypt=function(e){var t=function(e,t){if(t<e.length+11)throw\"Message too long for RSA\";for(var r=new Array,n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=63&i|128,r[--t]=i>>6|192):(r[--t]=63&i|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var o=new te,s=new Array;t>2;){for(s[0]=0;0==s[0];)o.nextBytes(s);r[--t]=s[0]}return r[--t]=2,r[--t]=0,new F(r)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var r=this.doPublic(t);if(null==r)return null;var n=r.toString(16);return 1&n.length?\"0\"+n:n},ie.prototype.encryptOAEP=function(e,t,r){var n=function(e,t,r,n){var i=ce.crypto.MessageDigest,o=ce.crypto.Util,s=null;if(r||(r=\"sha1\"),\"string\"==typeof r&&(s=i.getCanonicalAlgName(r),n=i.getHashLength(s),r=function(e){return Fe(o.hashHex(Ee(e),s))}),e.length+2*n+2>t)throw\"Message too long for RSA\";var a,u=\"\";for(a=0;a<t-e.length-2*n-2;a+=1)u+=\"\\0\";var c=r(\"\")+u+\"\u0001\"+e,l=new Array(n);(new te).nextBytes(l);var h=ne(l,c.length,r),f=[];for(a=0;a<c.length;a+=1)f[a]=c.charCodeAt(a)^h.charCodeAt(a);var g=ne(f,l.length,r),p=[0];for(a=0;a<l.length;a+=1)p[a+1]=l[a]^g.charCodeAt(a);return new F(p.concat(f))}(e,this.n.bitLength()+7>>3,t,r);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;var o=i.toString(16);return 1&o.length?\"0\"+o:o},ie.prototype.type=\"RSA\",oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},se.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},se.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},se.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(F.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(F.ZERO))},se.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(F.ZERO)&&!this.y.toBigInteger().equals(F.ZERO)},se.prototype.negate=function(){return new se(this.curve,this.x,this.y.negate(),this.z)},se.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(F.ZERO.equals(r))return F.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new F(\"3\"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),r.square()),a=s.multiply(r),u=i.multiply(s),c=t.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(e.z).subtract(a).multiply(r).mod(this.curve.q),h=u.multiply(n).multiply(t).subtract(o.multiply(a)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(a)).mod(this.curve.q),f=a.multiply(this.z).multiply(e.z).mod(this.curve.q);return new se(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(h),f)},se.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new F(\"3\"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=t.square().multiply(e);F.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),u=s.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new se(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(u),c)},se.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,r=e,n=r.multiply(new F(\"3\")),i=this.negate(),o=this,s=this.curve.q.subtract(e),a=s.multiply(new F(\"3\")),u=new se(this.curve,this.x,this.y),c=u.negate();for(t=n.bitLength()-2;t>0;--t){o=o.twice();var l=n.testBit(t);l!=r.testBit(t)&&(o=o.add(l?this:i))}for(t=a.bitLength()-2;t>0;--t){u=u.twice();var h=a.testBit(t);h!=s.testBit(t)&&(u=u.add(h?u:c))}return o},se.prototype.multiplyTwo=function(e,t,r){var n;n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);n>=0;)i=i.twice(),e.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(t)),--n;return i},ae.prototype.getQ=function(){return this.q},ae.prototype.getA=function(){return this.a},ae.prototype.getB=function(){return this.b},ae.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},ae.prototype.getInfinity=function(){return this.infinity},ae.prototype.fromBigInteger=function(e){return new oe(this.q,e)},ae.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var t=(e.length-2)/2,r=e.substr(2,t),n=e.substr(t+2,t);return new se(this,this.fromBigInteger(new F(r,16)),this.fromBigInteger(new F(n,16)))}},oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},se.prototype.getEncoded=function(e){var t=function(e,t){var r=e.toByteArrayUnsigned();if(t<r.length)r=r.slice(r.length-t);else for(;t>r.length;)r.unshift(0);return r},r=this.getX().toBigInteger(),n=this.getY().toBigInteger(),i=t(r,32);return e?n.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(n,32))),i},se.decodeFrom=function(e,t){t[0];var r=t.length-1,n=t.slice(1,1+r/2),i=t.slice(1+r/2,1+r);n.unshift(0),i.unshift(0);var o=new F(n),s=new F(i);return new se(e,e.fromBigInteger(o),e.fromBigInteger(s))},se.decodeFromHex=function(e,t){t.substr(0,2);var r=t.length-2,n=t.substr(2,r/2),i=t.substr(2+r/2,r/2),o=new F(n,16),s=new F(i,16);return new se(e,e.fromBigInteger(o),e.fromBigInteger(s))},se.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),r=e.y.subtract(this.y).divide(t),n=r.square().subtract(this.x).subtract(e.x),i=r.multiply(this.x.subtract(n)).subtract(this.y);return new se(this.curve,n,i)},se.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(F.valueOf(2)),t=this.curve.fromBigInteger(F.valueOf(3)),r=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),n=r.square().subtract(this.x.multiply(e)),i=r.multiply(this.x.subtract(n)).subtract(this.y);return new se(this.curve,n,i)},se.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,r=e,n=r.multiply(new F(\"3\")),i=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var s=n.testBit(t);s!=r.testBit(t)&&(o=o.add2D(s?this:i))}return o},se.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),r=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),s=e.multiply(e).multiply(e).add(r.multiply(e)).add(n).mod(i);return o.equals(s)},se.prototype.toString=function(){return\"(\"+this.getX().toBigInteger().toString()+\",\"+this.getY().toBigInteger().toString()+\")\"},se.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error(\"Point is at infinity.\");var t=this.getX().toBigInteger(),r=this.getY().toBigInteger();if(t.compareTo(F.ONE)<0||t.compareTo(e.subtract(F.ONE))>0)throw new Error(\"x coordinate out of bounds\");if(r.compareTo(F.ONE)<0||r.compareTo(e.subtract(F.ONE))>0)throw new Error(\"y coordinate out of bounds\");if(!this.isOnCurve())throw new Error(\"Point is not on the curve.\");if(this.multiply(e).isInfinity())throw new Error(\"Point is not a scalar multiple of G.\");return!0};var ue=function(){var e=new RegExp('(?:false|true|null|[\\\\{\\\\}\\\\[\\\\]]|(?:-?\\\\b(?:0|[1-9][0-9]*)(?:\\\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\\\b)|(?:\"(?:[^\\\\0-\\\\x08\\\\x0a-\\\\x1f\"\\\\\\\\]|\\\\\\\\(?:[\"/\\\\\\\\bfnrt]|u[0-9A-Fa-f]{4}))*\"))',\"g\"),t=new RegExp(\"\\\\\\\\(?:([^u])|u(.{4}))\",\"g\"),n={'\"':'\"',\"/\":\"/\",\"\\\\\":\"\\\\\",b:\"\\b\",f:\"\\f\",n:\"\\n\",r:\"\\r\",t:\"\\t\"};function i(e,t,r){return t?n[t]:String.fromCharCode(parseInt(r,16))}var o=new String(\"\"),s=Object.hasOwnProperty;return function(n,a){var u,c,l=n.match(e),h=l[0],f=!1;\"{\"===h?u={}:\"[\"===h?u=[]:(u=[],f=!0);for(var g=[u],p=1-f,d=l.length;p<d;++p){var v;switch((h=l[p]).charCodeAt(0)){default:(v=g[0])[c||v.length]=+h,c=void 0;break;case 34:if(-1!==(h=h.substring(1,h.length-1)).indexOf(\"\\\\\")&&(h=h.replace(t,i)),v=g[0],!c){if(!(v instanceof Array)){c=h||o;break}c=v.length}v[c]=h,c=void 0;break;case 91:v=g[0],g.unshift(v[c||v.length]=[]),c=void 0;break;case 93:case 125:g.shift();break;case 102:(v=g[0])[c||v.length]=!1,c=void 0;break;case 110:(v=g[0])[c||v.length]=null,c=void 0;break;case 116:(v=g[0])[c||v.length]=!0,c=void 0;break;case 123:v=g[0],g.unshift(v[c||v.length]={}),c=void 0}}if(f){if(1!==g.length)throw new Error;u=u[0]}else if(g.length)throw new Error;return a&&(u=function e(t,n){var i=t[n];if(i&&\"object\"===(void 0===i?\"undefined\":r(i))){var o=null;for(var u in i)if(s.call(i,u)&&i!==t){var c=e(i,u);void 0!==c?i[u]=c:(o||(o=[]),o.push(u))}if(o)for(var l=o.length;--l>=0;)delete i[o[l]]}return a.call(t,n,i)}({\"\":u},\"\")),u}}();void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.asn1&&ce.asn1||(ce.asn1={}),ce.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t=\"0\"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(\"-\"!=t.substr(0,1))t.length%2==1?t=\"0\"+t:t.match(/^[0-7]/)||(t=\"00\"+t);else{var r=t.substr(1).length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var n=\"\",i=0;i<r;i++)n+=\"f\";t=new F(n,16).xor(e).add(F.ONE).toString(16).replace(/^-/,\"\")}return t},this.getPEMStringFromHex=function(e,t){return ke(e,t)},this.newObject=function(e){var t=ce.asn1,r=t.ASN1Object,n=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,s=t.DEROctetString,a=t.DERNull,u=t.DERObjectIdentifier,c=t.DEREnumerated,l=t.DERUTF8String,h=t.DERNumericString,f=t.DERPrintableString,g=t.DERTeletexString,p=t.DERIA5String,d=t.DERUTCTime,v=t.DERGeneralizedTime,y=t.DERVisibleString,m=t.DERBMPString,_=t.DERSequence,b=t.DERSet,w=t.DERTaggedObject,S=t.ASN1Util.newObject;if(e instanceof t.ASN1Object)return e;var F=Object.keys(e);if(1!=F.length)throw new Error(\"key of param shall be only one.\");var E=F[0];if(-1==\":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:\".indexOf(\":\"+E+\":\"))throw new Error(\"undefined key: \"+E);if(\"bool\"==E)return new n(e[E]);if(\"int\"==E)return new i(e[E]);if(\"bitstr\"==E)return new o(e[E]);if(\"octstr\"==E)return new s(e[E]);if(\"null\"==E)return new a(e[E]);if(\"oid\"==E)return new u(e[E]);if(\"enum\"==E)return new c(e[E]);if(\"utf8str\"==E)return new l(e[E]);if(\"numstr\"==E)return new h(e[E]);if(\"prnstr\"==E)return new f(e[E]);if(\"telstr\"==E)return new g(e[E]);if(\"ia5str\"==E)return new p(e[E]);if(\"utctime\"==E)return new d(e[E]);if(\"gentime\"==E)return new v(e[E]);if(\"visstr\"==E)return new y(e[E]);if(\"bmpstr\"==E)return new m(e[E]);if(\"asn1\"==E)return new r(e[E]);if(\"seq\"==E){for(var x=e[E],C=[],A=0;A<x.length;A++){var k=S(x[A]);C.push(k)}return new _({array:C})}if(\"set\"==E){for(x=e[E],C=[],A=0;A<x.length;A++)k=S(x[A]),C.push(k);return new b({array:C})}if(\"tag\"==E){var L=e[E];if(\"[object Array]\"===Object.prototype.toString.call(L)&&3==L.length){var P=S(L[2]);return new w({tag:L[0],explicit:L[1],obj:P})}return new w(L)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},ce.asn1.ASN1Util.oidHexToInt=function(e){for(var t=\"\",r=parseInt(e.substr(0,2),16),n=(t=Math.floor(r/40)+\".\"+r%40,\"\"),i=2;i<e.length;i+=2){var o=(\"00000000\"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);n+=o.substr(1,7),\"0\"==o.substr(0,1)&&(t=t+\".\"+new F(n,2).toString(10),n=\"\")}return t},ce.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t=\"0\"+t),t},r=function(e){var r=\"\",n=new F(e,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o=\"\",s=0;s<i;s++)o+=\"0\";for(n=o+n,s=0;s<n.length-1;s+=7){var a=n.substr(s,7);s!=n.length-7&&(a=\"1\"+a),r+=t(parseInt(a,2))}return r};if(!e.match(/^[0-9.]+$/))throw\"malformed oid string: \"+e;var n=\"\",i=e.split(\".\"),o=40*parseInt(i[0])+parseInt(i[1]);n+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n},ce.asn1.ASN1Object=function(e){this.params=null,this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw new Error(\"this.hV is null or undefined\");if(this.hV.length%2==1)throw new Error(\"value hex must be even length: n=0,v=\"+this.hV);var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t=\"0\"+t),e<128)return t;var r=t.length/2;if(r>15)throw\"ASN.1 length too long to represent by 8x: n = \"+e.toString(16);return(128+r).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return\"\"},this.setByParam=function(e){this.params=e},null!=e&&null!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},ce.asn1.DERAbstractString=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=we(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(\"string\"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},o.lang.extend(ce.asn1.DERAbstractString,ce.asn1.ASN1Object),ce.asn1.DERAbstractTime=function(e){ce.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,r){var n=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());\"utc\"==t&&(o=o.substr(2,2));var s=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var a=i.getMilliseconds();if(0!=a){var u=n(String(a),3);s=s+\".\"+(u=u.replace(/[0]+$/,\"\"))}}return s+\"Z\"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join(\"0\")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=ve(e)},this.setByDateValue=function(e,t,r,n,i,o){var s=new Date(Date.UTC(e,t-1,r,n,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(ce.asn1.DERAbstractTime,ce.asn1.ASN1Object),ce.asn1.DERAbstractStructured=function(e){ce.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},o.lang.extend(ce.asn1.DERAbstractStructured,ce.asn1.ASN1Object),ce.asn1.DERBoolean=function(e){ce.asn1.DERBoolean.superclass.constructor.call(this),this.hT=\"01\",this.hTLV=0==e?\"010100\":\"0101ff\"},o.lang.extend(ce.asn1.DERBoolean,ce.asn1.ASN1Object),ce.asn1.DERInteger=function(e){ce.asn1.DERInteger.superclass.constructor.call(this),this.hT=\"02\",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ce.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new F(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):\"number\"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(ce.asn1.DERInteger,ce.asn1.ASN1Object),ce.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ce.asn1.ASN1Util.newObject(e.obj);e.hex=\"00\"+t.getEncodedHex()}ce.asn1.DERBitString.superclass.constructor.call(this),this.hT=\"03\",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw\"unused bits shall be from 0 to 7: u = \"+e;var r=\"0\"+e;this.hTLV=null,this.isModified=!0,this.hV=r+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,\"\")).length%8;8==t&&(t=0);for(var r=0;r<=t;r++)e+=\"0\";var n=\"\";for(r=0;r<e.length-1;r+=8){var i=e.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o=\"0\"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV=\"0\"+t+n},this.setByBooleanArray=function(e){for(var t=\"\",r=0;r<e.length;r++)1==e[r]?t+=\"1\":t+=\"0\";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(\"string\"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},o.lang.extend(ce.asn1.DERBitString,ce.asn1.ASN1Object),ce.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ce.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}ce.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT=\"04\"},o.lang.extend(ce.asn1.DEROctetString,ce.asn1.DERAbstractString),ce.asn1.DERNull=function(){ce.asn1.DERNull.superclass.constructor.call(this),this.hT=\"05\",this.hTLV=\"0500\"},o.lang.extend(ce.asn1.DERNull,ce.asn1.ASN1Object),ce.asn1.DERObjectIdentifier=function(e){ce.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT=\"06\",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t=\"0\"+t),t},r=function(e){var r=\"\",n=parseInt(e,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o=\"\",s=0;s<i;s++)o+=\"0\";for(n=o+n,s=0;s<n.length-1;s+=7){var a=n.substr(s,7);s!=n.length-7&&(a=\"1\"+a),r+=t(parseInt(a,2))}return r};try{if(!e.match(/^[0-9.]+$/))return null;var n=\"\",i=e.split(\".\"),o=40*parseInt(i[0],10)+parseInt(i[1],10);n+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n}catch(e){return null}}(e);if(null==t)throw new Error(\"malformed oid string: \"+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=ce.asn1.x509.OID.name2oid(e);if(\"\"===t)throw new Error(\"DERObjectIdentifier oidName undefined: \"+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){\"string\"==typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},o.lang.extend(ce.asn1.DERObjectIdentifier,ce.asn1.ASN1Object),ce.asn1.DEREnumerated=function(e){ce.asn1.DEREnumerated.superclass.constructor.call(this),this.hT=\"0a\",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ce.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new F(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):\"number\"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(ce.asn1.DEREnumerated,ce.asn1.ASN1Object),ce.asn1.DERUTF8String=function(e){ce.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT=\"0c\"},o.lang.extend(ce.asn1.DERUTF8String,ce.asn1.DERAbstractString),ce.asn1.DERNumericString=function(e){ce.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT=\"12\"},o.lang.extend(ce.asn1.DERNumericString,ce.asn1.DERAbstractString),ce.asn1.DERPrintableString=function(e){ce.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT=\"13\"},o.lang.extend(ce.asn1.DERPrintableString,ce.asn1.DERAbstractString),ce.asn1.DERTeletexString=function(e){ce.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT=\"14\"},o.lang.extend(ce.asn1.DERTeletexString,ce.asn1.DERAbstractString),ce.asn1.DERIA5String=function(e){ce.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT=\"16\"},o.lang.extend(ce.asn1.DERIA5String,ce.asn1.DERAbstractString),ce.asn1.DERVisibleString=function(e){ce.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT=\"1a\"},o.lang.extend(ce.asn1.DERVisibleString,ce.asn1.DERAbstractString),ce.asn1.DERBMPString=function(e){ce.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT=\"1e\"},o.lang.extend(ce.asn1.DERBMPString,ce.asn1.DERAbstractString),ce.asn1.DERUTCTime=function(e){ce.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT=\"17\",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,\"utc\"),this.hV=ve(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,\"utc\"),this.hV=ve(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):\"string\"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},o.lang.extend(ce.asn1.DERUTCTime,ce.asn1.DERAbstractTime),ce.asn1.DERGeneralizedTime=function(e){ce.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT=\"18\",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,\"gen\",this.withMillis),this.hV=ve(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,\"gen\",this.withMillis),this.hV=ve(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):\"string\"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},o.lang.extend(ce.asn1.DERGeneralizedTime,ce.asn1.DERAbstractTime),ce.asn1.DERSequence=function(e){ce.asn1.DERSequence.superclass.constructor.call(this,e),this.hT=\"30\",this.getFreshValueHex=function(){for(var e=\"\",t=0;t<this.asn1Array.length;t++)e+=this.asn1Array[t].getEncodedHex();return this.hV=e,this.hV}},o.lang.extend(ce.asn1.DERSequence,ce.asn1.DERAbstractStructured),ce.asn1.DERSet=function(e){ce.asn1.DERSet.superclass.constructor.call(this,e),this.hT=\"31\",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e.push(r.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(\"\"),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},o.lang.extend(ce.asn1.DERSet,ce.asn1.DERAbstractStructured),ce.asn1.DERTaggedObject=function(e){ce.asn1.DERTaggedObject.superclass.constructor.call(this);var t=ce.asn1;this.hT=\"a0\",this.hV=\"\",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,r){this.hT=t,this.isExplicit=e,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){null!=e.tag&&(this.hT=e.tag),null!=e.explicit&&(this.isExplicit=e.explicit),null!=e.tage&&(this.hT=e.tage,this.isExplicit=!0),null!=e.tagi&&(this.hT=e.tagi,this.isExplicit=!1),null!=e.obj&&(e.obj instanceof t.ASN1Object?(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)):\"object\"==r(e.obj)&&(this.asn1Object=t.ASN1Util.newObject(e.obj),this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},null!=e&&this.setByParam(e)},o.lang.extend(ce.asn1.DERTaggedObject,ce.asn1.ASN1Object);var ce,le,he,fe=new function(){};function ge(e){for(var t=new Array,r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function pe(e){for(var t=\"\",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}function de(e){for(var t=\"\",r=0;r<e.length;r++){var n=e[r].toString(16);1==n.length&&(n=\"0\"+n),t+=n}return t}function ve(e){return de(ge(e))}function ye(e){return(e=(e=e.replace(/\\=/g,\"\")).replace(/\\+/g,\"-\")).replace(/\\//g,\"_\")}function me(e){return e.length%4==2?e+=\"==\":e.length%4==3&&(e+=\"=\"),(e=e.replace(/-/g,\"+\")).replace(/_/g,\"/\")}function _e(e){return e.length%2==1&&(e=\"0\"+e),ye(b(e))}function be(e){return w(me(e))}function we(e){return Re(Me(e))}function Se(e){return decodeURIComponent(Oe(e))}function Fe(e){for(var t=\"\",r=0;r<e.length-1;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t}function Ee(e){for(var t=\"\",r=0;r<e.length;r++)t+=(\"0\"+e.charCodeAt(r).toString(16)).slice(-2);return t}function xe(e){return b(e)}function Ce(e){return xe(e).replace(/(.{64})/g,\"$1\\r\\n\").replace(/\\r\\n$/,\"\")}function Ae(e){return w(e.replace(/[^0-9A-Za-z\\/+=]*/g,\"\"))}function ke(e,t){return\"-----BEGIN \"+t+\"-----\\r\\n\"+Ce(e)+\"\\r\\n-----END \"+t+\"-----\\r\\n\"}function Le(e,t){if(-1==e.indexOf(\"-----BEGIN \"))throw\"can't find PEM header: \"+t;return Ae(e=void 0!==t?(e=e.replace(new RegExp(\"^[^]*-----BEGIN \"+t+\"-----\"),\"\")).replace(new RegExp(\"-----END \"+t+\"-----[^]*$\"),\"\"):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,\"\")).replace(/-----END [^-]+-----[^]*$/,\"\"))}function Pe(e){var t,r,n,i,o,s,a,u,c,l,h;if(h=e.match(/^(\\d{2}|\\d{4})(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(\\d\\d)(|\\.\\d+)Z$/))return u=h[1],t=parseInt(u),2===u.length&&(50<=t&&t<100?t=1900+t:0<=t&&t<50&&(t=2e3+t)),r=parseInt(h[2])-1,n=parseInt(h[3]),i=parseInt(h[4]),o=parseInt(h[5]),s=parseInt(h[6]),a=0,\"\"!==(c=h[7])&&(l=(c.substr(1)+\"00\").substr(0,3),a=parseInt(l)),Date.UTC(t,r,n,i,o,s,a);throw\"unsupported zulu format: \"+e}function Te(e){return~~(Pe(e)/1e3)}function Re(e){return e.replace(/%/g,\"\")}function Oe(e){return e.replace(/(..)/g,\"%$1\")}function Ie(e){var t=\"malformed IPv6 address\";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;var r=(e=e.toLowerCase()).split(\":\").length-1;if(r<2)throw t;var n=\":\".repeat(7-r+2),i=(e=e.replace(\"::\",n)).split(\":\");if(8!=i.length)throw t;for(var o=0;o<8;o++)i[o]=(\"0000\"+i[o]).slice(-4);return i.join(\"\")}function Ne(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw\"malformed IPv6 address octet\";for(var t=(e=e.toLowerCase()).match(/.{1,4}/g),r=0;r<8;r++)t[r]=t[r].replace(/^0+/,\"\"),\"\"==t[r]&&(t[r]=\"0\");var n=(e=\":\"+t.join(\":\")+\":\").match(/:(0:){2,}/g);if(null===n)return e.slice(1,-1);var i=\"\";for(r=0;r<n.length;r++)n[r].length>i.length&&(i=n[r]);return(e=e.replace(i,\"::\")).slice(1,-1)}function je(e){var t=\"malformed hex value\";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Ne(e):e;try{return parseInt(e.substr(0,2),16)+\".\"+parseInt(e.substr(2,2),16)+\".\"+parseInt(e.substr(4,2),16)+\".\"+parseInt(e.substr(6,2),16)}catch(e){throw t}}function Me(e){for(var t=encodeURIComponent(e),r=\"\",n=0;n<t.length;n++)\"%\"==t[n]?(r+=t.substr(n,3),n+=2):r=r+\"%\"+ve(t[n]);return r}function De(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function Ue(e){return e.length%2==1?\"0\"+e:e.substr(0,1)>\"7\"?\"00\"+e:e}fe.getLblen=function(e,t){if(\"8\"!=e.substr(t+2,1))return 1;var r=parseInt(e.substr(t+3,1));return 0==r?-1:0<r&&r<10?r+1:-2},fe.getL=function(e,t){var r=fe.getLblen(e,t);return r<1?\"\":e.substr(t+2,2*r)},fe.getVblen=function(e,t){var r;return\"\"==(r=fe.getL(e,t))?-1:(\"8\"===r.substr(0,1)?new F(r.substr(2),16):new F(r,16)).intValue()},fe.getVidx=function(e,t){var r=fe.getLblen(e,t);return r<0?r:t+2*(r+1)},fe.getV=function(e,t){var r=fe.getVidx(e,t),n=fe.getVblen(e,t);return e.substr(r,2*n)},fe.getTLV=function(e,t){return e.substr(t,2)+fe.getL(e,t)+fe.getV(e,t)},fe.getTLVblen=function(e,t){return 2+2*fe.getLblen(e,t)+2*fe.getVblen(e,t)},fe.getNextSiblingIdx=function(e,t){return fe.getVidx(e,t)+2*fe.getVblen(e,t)},fe.getChildIdx=function(e,t){var r,n,i,o=fe,s=[];r=o.getVidx(e,t),n=2*o.getVblen(e,t),\"03\"==e.substr(t,2)&&(r+=2,n-=2),i=0;for(var a=r;i<=n;){var u=o.getTLVblen(e,a);if((i+=u)<=n&&s.push(a),a+=u,i>=n)break}return s},fe.getNthChildIdx=function(e,t,r){return fe.getChildIdx(e,t)[r]},fe.getIdxbyList=function(e,t,r,n){var i,o,s=fe;return 0==r.length?void 0!==n&&e.substr(t,2)!==n?-1:t:(i=r.shift())>=(o=s.getChildIdx(e,t)).length?-1:s.getIdxbyList(e,o[i],r,n)},fe.getIdxbyListEx=function(e,t,r,n){var i,o,s=fe;if(0==r.length)return void 0!==n&&e.substr(t,2)!==n?-1:t;i=r.shift(),o=s.getChildIdx(e,t);for(var a=0,u=0;u<o.length;u++){var c=e.substr(o[u],2);if(\"number\"==typeof i&&!s.isContextTag(c)&&a==i||\"string\"==typeof i&&s.isContextTag(c,i))return s.getIdxbyListEx(e,o[u],r,n);s.isContextTag(c)||a++}return-1},fe.getTLVbyList=function(e,t,r,n){var i=fe,o=i.getIdxbyList(e,t,r,n);return-1==o||o>=e.length?null:i.getTLV(e,o)},fe.getTLVbyListEx=function(e,t,r,n){var i=fe,o=i.getIdxbyListEx(e,t,r,n);return-1==o?null:i.getTLV(e,o)},fe.getVbyList=function(e,t,r,n,i){var o,s,a=fe;return-1==(o=a.getIdxbyList(e,t,r,n))||o>=e.length?null:(s=a.getV(e,o),!0===i&&(s=s.substr(2)),s)},fe.getVbyListEx=function(e,t,r,n,i){var o,s,a=fe;return-1==(o=a.getIdxbyListEx(e,t,r,n))?null:(s=a.getV(e,o),\"03\"==e.substr(o,2)&&!1!==i&&(s=s.substr(2)),s)},fe.getInt=function(e,t,r){null==r&&(r=-1);try{var n=e.substr(t,2);if(\"02\"!=n&&\"03\"!=n)return r;var i=fe.getV(e,t);return\"02\"==n?parseInt(i,16):function(e){try{var t=e.substr(0,2);if(\"00\"==t)return parseInt(e.substr(2),16);var r=parseInt(t,16),n=e.substr(2),i=parseInt(n,16).toString(2);return\"0\"==i&&(i=\"00000000\"),i=i.slice(0,0-r),parseInt(i,2)}catch(e){return-1}}(i)}catch(e){return r}},fe.getOID=function(e,t,r){null==r&&(r=null);try{return\"06\"!=e.substr(t,2)?r:function(e){if(!De(e))return null;try{var t=[],r=e.substr(0,2),n=parseInt(r,16);t[0]=new String(Math.floor(n/40)),t[1]=new String(n%40);for(var i=e.substr(2),o=[],s=0;s<i.length/2;s++)o.push(parseInt(i.substr(2*s,2),16));var a=[],u=\"\";for(s=0;s<o.length;s++)128&o[s]?u+=Be((127&o[s]).toString(2),7):(u+=Be((127&o[s]).toString(2),7),a.push(new String(parseInt(u,2))),u=\"\");var c=t.join(\".\");return a.length>0&&(c=c+\".\"+a.join(\".\")),c}catch(e){return null}}(fe.getV(e,t))}catch(e){return r}},fe.getOIDName=function(e,t,r){null==r&&(r=null);try{var n=fe.getOID(e,t,r);if(n==r)return r;var i=ce.asn1.x509.OID.oid2name(n);return\"\"==i?n:i}catch(e){return r}},fe.getString=function(e,t,r){null==r&&(r=null);try{return Fe(fe.getV(e,t))}catch(e){return r}},fe.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join(\"0\")+e},r=[],n=e.substr(0,2),i=parseInt(n,16);r[0]=new String(Math.floor(i/40)),r[1]=new String(i%40);for(var o=e.substr(2),s=[],a=0;a<o.length/2;a++)s.push(parseInt(o.substr(2*a,2),16));var u=[],c=\"\";for(a=0;a<s.length;a++)128&s[a]?c+=t((127&s[a]).toString(2),7):(c+=t((127&s[a]).toString(2),7),u.push(new String(parseInt(c,2))),c=\"\");var l=r.join(\".\");return u.length>0&&(l=l+\".\"+u.join(\".\")),l},fe.dump=function(e,t,r,n){var i=fe,o=i.getV,s=i.dump,a=i.getChildIdx,u=e;e instanceof ce.asn1.ASN1Object&&(u=e.getEncodedHex());var c=function(e,t){return e.length<=2*t?e:e.substr(0,t)+\"..(total \"+e.length/2+\"bytes)..\"+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===r&&(r=0),void 0===n&&(n=\"\");var l,h=t.ommit_long_octet;if(\"01\"==(l=u.substr(r,2)))return\"00\"==(f=o(u,r))?n+\"BOOLEAN FALSE\\n\":n+\"BOOLEAN TRUE\\n\";if(\"02\"==l)return n+\"INTEGER \"+c(f=o(u,r),h)+\"\\n\";if(\"03\"==l){var f=o(u,r);return i.isASN1HEX(f.substr(2))?(w=n+\"BITSTRING, encapsulates\\n\")+s(f.substr(2),t,0,n+\" \"):n+\"BITSTRING \"+c(f,h)+\"\\n\"}if(\"04\"==l)return f=o(u,r),i.isASN1HEX(f)?(w=n+\"OCTETSTRING, encapsulates\\n\")+s(f,t,0,n+\" \"):n+\"OCTETSTRING \"+c(f,h)+\"\\n\";if(\"05\"==l)return n+\"NULL\\n\";if(\"06\"==l){var g=o(u,r),p=ce.asn1.ASN1Util.oidHexToInt(g),d=ce.asn1.x509.OID.oid2name(p),v=p.replace(/\\./g,\" \");return\"\"!=d?n+\"ObjectIdentifier \"+d+\" (\"+v+\")\\n\":n+\"ObjectIdentifier (\"+v+\")\\n\"}if(\"0a\"==l)return n+\"ENUMERATED \"+parseInt(o(u,r))+\"\\n\";if(\"0c\"==l)return n+\"UTF8String '\"+Se(o(u,r))+\"'\\n\";if(\"13\"==l)return n+\"PrintableString '\"+Se(o(u,r))+\"'\\n\";if(\"14\"==l)return n+\"TeletexString '\"+Se(o(u,r))+\"'\\n\";if(\"16\"==l)return n+\"IA5String '\"+Se(o(u,r))+\"'\\n\";if(\"17\"==l)return n+\"UTCTime \"+Se(o(u,r))+\"\\n\";if(\"18\"==l)return n+\"GeneralizedTime \"+Se(o(u,r))+\"\\n\";if(\"1a\"==l)return n+\"VisualString '\"+Se(o(u,r))+\"'\\n\";if(\"1e\"==l)return n+\"BMPString '\"+Se(o(u,r))+\"'\\n\";if(\"30\"==l){if(\"3000\"==u.substr(r,4))return n+\"SEQUENCE {}\\n\";w=n+\"SEQUENCE\\n\";var y=t;if((2==(b=a(u,r)).length||3==b.length)&&\"06\"==u.substr(b[0],2)&&\"04\"==u.substr(b[b.length-1],2)){d=i.oidname(o(u,b[0]));var m=JSON.parse(JSON.stringify(t));m.x509ExtName=d,y=m}for(var _=0;_<b.length;_++)w+=s(u,y,b[_],n+\" \");return w}if(\"31\"==l){w=n+\"SET\\n\";var b=a(u,r);for(_=0;_<b.length;_++)w+=s(u,t,b[_],n+\" \");return w}if(128&(l=parseInt(l,16))){var w,S=31&l;if(32&l){for(w=n+\"[\"+S+\"]\\n\",b=a(u,r),_=0;_<b.length;_++)w+=s(u,t,b[_],n+\" \");return w}return f=o(u,r),fe.isASN1HEX(f)?(w=n+\"[\"+S+\"]\\n\")+s(f,t,0,n+\" \"):((\"68747470\"==f.substr(0,8)||\"subjectAltName\"===t.x509ExtName&&2==S)&&(f=Se(f)),n+\"[\"+S+\"] \"+f+\"\\n\")}return n+\"UNKNOWN(\"+l+\") \"+o(u,r)+\"\\n\"},fe.isContextTag=function(e,t){var r,n;e=e.toLowerCase();try{r=parseInt(e,16)}catch(e){return-1}if(void 0===t)return 128==(192&r);try{return null!=t.match(/^\\[[0-9]+\\]$/)&&!((n=parseInt(t.substr(1,t.length-1),10))>31)&&128==(192&r)&&(31&r)==n}catch(e){return!1}},fe.isASN1HEX=function(e){var t=fe;if(e.length%2==1)return!1;var r=t.getVblen(e,0),n=e.substr(0,2),i=t.getL(e,0);return e.length-n.length-i.length==2*r},fe.checkStrictDER=function(e,t,r,n,i){var o=fe;if(void 0===r){if(\"string\"!=typeof e)throw new Error(\"not hex string\");if(e=e.toLowerCase(),!ce.lang.String.isHex(e))throw new Error(\"not hex string\");r=e.length,i=(n=e.length/2)<128?1:Math.ceil(n.toString(16))+1}if(o.getL(e,t).length>2*i)throw new Error(\"L of TLV too long: idx=\"+t);var s=o.getVblen(e,t);if(s>n)throw new Error(\"value of L too long than hex: idx=\"+t);var a=o.getTLV(e,t),u=a.length-2-o.getL(e,t).length;if(u!==2*s)throw new Error(\"V string length and L's value not the same:\"+u+\"/\"+2*s);if(0===t&&e.length!=a.length)throw new Error(\"total length and TLV length unmatch:\"+e.length+\"!=\"+a.length);var c=e.substr(t,2);if(\"02\"===c){var l=o.getVidx(e,t);if(\"00\"==e.substr(l,2)&&e.charCodeAt(l+2)<56)throw new Error(\"not least zeros for DER INTEGER\")}if(32&parseInt(c,16)){for(var h=o.getVblen(e,t),f=0,g=o.getChildIdx(e,t),p=0;p<g.length;p++)f+=o.getTLV(e,g[p]).length,o.checkStrictDER(e,g[p],r,n,i);if(2*h!=f)throw new Error(\"sum of children's TLV length and L unmatch: \"+2*h+\"!=\"+f)}},fe.oidname=function(e){var t=ce.asn1;ce.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var r=t.x509.OID.oid2name(e);return\"\"===r&&(r=e),r},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.lang&&ce.lang||(ce.lang={}),ce.lang.String=function(){},\"function\"==typeof e?(t.utf8tob64u=le=function(t){return ye(e.from(t,\"utf8\").toString(\"base64\"))},t.b64utoutf8=he=function(t){return e.from(me(t),\"base64\").toString(\"utf8\")}):(t.utf8tob64u=le=function(e){return _e(Re(Me(e)))},t.b64utoutf8=he=function(e){return decodeURIComponent(Oe(be(e)))}),ce.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},ce.lang.String.isHex=function(e){return De(e)},ce.lang.String.isBase64=function(e){return!(!(e=e.replace(/\\s+/g,\"\")).match(/^[0-9A-Za-z+\\/]+={0,3}$/)||e.length%4!=0)},ce.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=me(e),ce.lang.String.isBase64(e))},ce.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\\s+/g,\"\")).match(/^\\[[0-9,]+\\]$/)},ce.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},ce.lang.String.isIA5=function(e){return null!==e.match(/^[\\x20-\\x21\\x23-\\x7f]*$/)},ce.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\\.[A-Za-z0-9]{1,}$/)};var Be=function(e,t,r){return null==r&&(r=\"0\"),e.length>=t?e:new Array(t-e.length+1).join(r)+e};void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:\"3021300906052b0e03021a05000414\",sha224:\"302d300d06096086480165030402040500041c\",sha256:\"3031300d060960864801650304020105000420\",sha384:\"3041300d060960864801650304020205000430\",sha512:\"3051300d060960864801650304020305000440\",md2:\"3020300c06082a864886f70d020205000410\",md5:\"3020300c06082a864886f70d020505000410\",ripemd160:\"3021300906052b2403020105000414\"},this.DEFAULTPROVIDER={md5:\"cryptojs\",sha1:\"cryptojs\",sha224:\"cryptojs\",sha256:\"cryptojs\",sha384:\"cryptojs\",sha512:\"cryptojs\",ripemd160:\"cryptojs\",hmacmd5:\"cryptojs\",hmacsha1:\"cryptojs\",hmacsha224:\"cryptojs\",hmacsha256:\"cryptojs\",hmacsha384:\"cryptojs\",hmacsha512:\"cryptojs\",hmacripemd160:\"cryptojs\",MD5withRSA:\"cryptojs/jsrsa\",SHA1withRSA:\"cryptojs/jsrsa\",SHA224withRSA:\"cryptojs/jsrsa\",SHA256withRSA:\"cryptojs/jsrsa\",SHA384withRSA:\"cryptojs/jsrsa\",SHA512withRSA:\"cryptojs/jsrsa\",RIPEMD160withRSA:\"cryptojs/jsrsa\",MD5withECDSA:\"cryptojs/jsrsa\",SHA1withECDSA:\"cryptojs/jsrsa\",SHA224withECDSA:\"cryptojs/jsrsa\",SHA256withECDSA:\"cryptojs/jsrsa\",SHA384withECDSA:\"cryptojs/jsrsa\",SHA512withECDSA:\"cryptojs/jsrsa\",RIPEMD160withECDSA:\"cryptojs/jsrsa\",SHA1withDSA:\"cryptojs/jsrsa\",SHA224withDSA:\"cryptojs/jsrsa\",SHA256withDSA:\"cryptojs/jsrsa\",MD5withRSAandMGF1:\"cryptojs/jsrsa\",SHAwithRSAandMGF1:\"cryptojs/jsrsa\",SHA1withRSAandMGF1:\"cryptojs/jsrsa\",SHA224withRSAandMGF1:\"cryptojs/jsrsa\",SHA256withRSAandMGF1:\"cryptojs/jsrsa\",SHA384withRSAandMGF1:\"cryptojs/jsrsa\",SHA512withRSAandMGF1:\"cryptojs/jsrsa\",RIPEMD160withRSAandMGF1:\"cryptojs/jsrsa\"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:y.algo.MD5,sha1:y.algo.SHA1,sha224:y.algo.SHA224,sha256:y.algo.SHA256,sha384:y.algo.SHA384,sha512:y.algo.SHA512,ripemd160:y.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw\"alg not supported in Util.DIGESTINFOHEAD: \"+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,r){var n=this.getDigestInfoHex(e,t),i=r/4;if(n.length+22>i)throw\"key is too short for SigAlg: keylen=\"+r+\",\"+t;for(var o=\"00\"+n,s=\"\",a=i-4-o.length,u=0;u<a;u+=2)s+=\"ff\";return\"0001\"+s+o},this.hashString=function(e,t){return new ce.crypto.MessageDigest({alg:t}).digestString(e)},this.hashHex=function(e,t){return new ce.crypto.MessageDigest({alg:t}).digestHex(e)},this.sha1=function(e){return this.hashString(e,\"sha1\")},this.sha256=function(e){return this.hashString(e,\"sha256\")},this.sha256Hex=function(e){return this.hashHex(e,\"sha256\")},this.sha512=function(e){return this.hashString(e,\"sha512\")},this.sha512Hex=function(e){return this.hashHex(e,\"sha512\")},this.isKey=function(e){return e instanceof ie||e instanceof ce.crypto.DSA||e instanceof ce.crypto.ECDSA}},ce.crypto.Util.md5=function(e){return new ce.crypto.MessageDigest({alg:\"md5\",prov:\"cryptojs\"}).digestString(e)},ce.crypto.Util.ripemd160=function(e){return new ce.crypto.MessageDigest({alg:\"ripemd160\",prov:\"cryptojs\"}).digestString(e)},ce.crypto.Util.SECURERANDOMGEN=new te,ce.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return ce.crypto.Util.SECURERANDOMGEN.nextBytes(t),de(t)},ce.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new F(ce.crypto.Util.getRandomHexOfNbytes(e),16)},ce.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,r=new Array((e-t)/8+1);return ce.crypto.Util.SECURERANDOMGEN.nextBytes(r),r[0]=(255<<t&255^255)&r[0],de(r)},ce.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new F(ce.crypto.Util.getRandomHexOfNbits(e),16)},ce.crypto.Util.getRandomBigIntegerZeroToMax=function(e){for(var t=e.bitLength();;){var r=ce.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(r))return r}},ce.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var r=e.compareTo(t);if(1==r)throw\"biMin is greater than biMax\";if(0==r)return e;var n=t.subtract(e);return ce.crypto.Util.getRandomBigIntegerZeroToMax(n).add(e)},ce.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(null!==(e=ce.crypto.MessageDigest.getCanonicalAlgName(e))&&void 0===t&&(t=ce.crypto.Util.DEFAULTPROVIDER[e]),-1!=\":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:\".indexOf(e)&&\"cryptojs\"==t){try{this.md=ce.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(t){throw\"setAlgAndProvider hash alg set fail alg=\"+e+\"/\"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=y.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){return this.md.finalize().toString(y.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=\":sha256:\".indexOf(e)&&\"sjcl\"==t){try{this.md=new sjcl.hash.sha256}catch(t){throw\"setAlgAndProvider hash alg set fail alg=\"+e+\"/\"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw\"updateString(str) not supported for this alg/prov: \"+this.algName+\"/\"+this.provName},this.updateHex=function(e){throw\"updateHex(hex) not supported for this alg/prov: \"+this.algName+\"/\"+this.provName},this.digest=function(){throw\"digest() not supported for this alg/prov: \"+this.algName+\"/\"+this.provName},this.digestString=function(e){throw\"digestString(str) not supported for this alg/prov: \"+this.algName+\"/\"+this.provName},this.digestHex=function(e){throw\"digestHex(hex) not supported for this alg/prov: \"+this.algName+\"/\"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=ce.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},ce.crypto.MessageDigest.getCanonicalAlgName=function(e){return\"string\"==typeof e&&(e=(e=e.toLowerCase()).replace(/-/,\"\")),e},ce.crypto.MessageDigest.getHashLength=function(e){var t=ce.crypto.MessageDigest,r=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[r])throw\"not supported algorithm: \"+e;return t.HASHLENGTH[r]},ce.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},ce.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(null==(e=e.toLowerCase())&&(e=\"hmacsha1\"),\"hmac\"!=(e=e.toLowerCase()).substr(0,4))throw\"setAlgAndProvider unsupported HMAC alg: \"+e;void 0===t&&(t=ce.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+\"/\"+t;var r=e.substr(4);if(-1!=\":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:\".indexOf(r)&&\"cryptojs\"==t){try{var n=ce.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[r];this.mac=y.algo.HMAC.create(n,this.pass)}catch(e){throw\"setAlgAndProvider hash alg set fail hashAlg=\"+r+\"/\"+e}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=y.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){return this.mac.finalize().toString(y.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw\"updateString(str) not supported for this alg/prov: \"+this.algProv},this.updateHex=function(e){throw\"updateHex(hex) not supported for this alg/prov: \"+this.algProv},this.doFinal=function(){throw\"digest() not supported for this alg/prov: \"+this.algProv},this.doFinalString=function(e){throw\"digestString(str) not supported for this alg/prov: \"+this.algProv},this.doFinalHex=function(e){throw\"digestHex(hex) not supported for this alg/prov: \"+this.algProv},this.setPassword=function(e){if(\"string\"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=Ee(e)),void(this.pass=y.enc.Hex.parse(t))}if(\"object\"!=(void 0===e?\"undefined\":r(e)))throw\"KJUR.crypto.Mac unsupported password type: \"+e;if(t=null,void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw\"Mac: wrong hex password: \"+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=we(e.utf8)),void 0!==e.rstr&&(t=Ee(e.rstr)),void 0!==e.b64&&(t=w(e.b64)),void 0!==e.b64u&&(t=be(e.b64u)),null==t)throw\"KJUR.crypto.Mac unsupported password type: \"+e;this.pass=y.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=ce.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},ce.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),\"rsaandmgf1\"==this.pubkeyAlgName&&\"sha\"==this.mdAlgName&&(this.mdAlgName=\"sha1\"))},this._zeroPaddingOfSignature=function(e,t){for(var r=\"\",n=t/4-e.length,i=0;i<n;i++)r+=\"0\";return r+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),\"cryptojs/jsrsa\"!=t)throw new Error(\"provider not supported: \"+t);if(-1!=\":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:\".indexOf(this.mdAlgName)){try{this.md=new ce.crypto.MessageDigest({alg:this.mdAlgName})}catch(e){throw new Error(\"setAlgAndProvider hash alg set fail alg=\"+this.mdAlgName+\"/\"+e)}this.init=function(e,t){var r=null;try{r=void 0===t?He.getKey(e):He.getKey(e,t)}catch(e){throw\"init failed:\"+e}if(!0===r.isPrivate)this.prvKey=r,this.state=\"SIGN\";else{if(!0!==r.isPublic)throw\"init failed.:\"+r;this.pubKey=r,this.state=\"VERIFY\"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==ce.crypto.ECDSA&&(this.prvKey=new ce.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof ie&&\"rsaandmgf1\"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof ie&&\"rsa\"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof ce.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof ce.crypto.DSA))throw\"Signature: unsupported private key alg: \"+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==ce.crypto.ECDSA&&(this.pubKey=new ce.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof ie&&\"rsaandmgf1\"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof ie&&\"rsa\"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==ce.crypto.ECDSA&&this.pubKey instanceof ce.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==ce.crypto.DSA&&this.pubKey instanceof ce.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw\"Signature: unsupported public key alg: \"+this.pubkeyAlgName}}},this.init=function(e,t){throw\"init(key, pass) not supported for this alg:prov=\"+this.algProvName},this.updateString=function(e){throw\"updateString(str) not supported for this alg:prov=\"+this.algProvName},this.updateHex=function(e){throw\"updateHex(hex) not supported for this alg:prov=\"+this.algProvName},this.sign=function(){throw\"sign() not supported for this alg:prov=\"+this.algProvName},this.signString=function(e){throw\"digestString(str) not supported for this alg:prov=\"+this.algProvName},this.signHex=function(e){throw\"digestHex(hex) not supported for this alg:prov=\"+this.algProvName},this.verify=function(e){throw\"verify(hSigVal) not supported for this alg:prov=\"+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=ce.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+\":\"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw\"both prvkeypem and prvkeypas parameters not supported\";try{t=He.getKey(e.prvkeypem),this.init(t)}catch(e){throw\"fatal error to load pem private key: \"+e}}},ce.crypto.Cipher=function(e){},ce.crypto.Cipher.encrypt=function(e,t,r){if(t instanceof ie&&t.isPublic){var n=ce.crypto.Cipher.getAlgByKeyAndName(t,r);if(\"RSA\"===n)return t.encrypt(e);if(\"RSAOAEP\"===n)return t.encryptOAEP(e,\"sha1\");var i=n.match(/^RSAOAEP(\\d+)$/);if(null!==i)return t.encryptOAEP(e,\"sha\"+i[1]);throw\"Cipher.encrypt: unsupported algorithm for RSAKey: \"+r}throw\"Cipher.encrypt: unsupported key or algorithm\"},ce.crypto.Cipher.decrypt=function(e,t,r){if(t instanceof ie&&t.isPrivate){var n=ce.crypto.Cipher.getAlgByKeyAndName(t,r);if(\"RSA\"===n)return t.decrypt(e);if(\"RSAOAEP\"===n)return t.decryptOAEP(e,\"sha1\");var i=n.match(/^RSAOAEP(\\d+)$/);if(null!==i)return t.decryptOAEP(e,\"sha\"+i[1]);throw\"Cipher.decrypt: unsupported algorithm for RSAKey: \"+r}throw\"Cipher.decrypt: unsupported key or algorithm\"},ce.crypto.Cipher.getAlgByKeyAndName=function(e,t){if(e instanceof ie){if(-1!=\":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:\".indexOf(t))return t;if(null==t)return\"RSA\";throw\"getAlgByKeyAndName: not supported algorithm name for RSAKey: \"+t}throw\"getAlgByKeyAndName: not supported algorithm name: \"+t},ce.crypto.OID=new function(){this.oidhex2name={\"2a864886f70d010101\":\"rsaEncryption\",\"2a8648ce3d0201\":\"ecPublicKey\",\"2a8648ce380401\":\"dsa\",\"2a8648ce3d030107\":\"secp256r1\",\"2b8104001f\":\"secp192k1\",\"2b81040021\":\"secp224r1\",\"2b8104000a\":\"secp256k1\",\"2b81040023\":\"secp521r1\",\"2b81040022\":\"secp384r1\",\"2a8648ce380403\":\"SHA1withDSA\",\"608648016503040301\":\"SHA224withDSA\",\"608648016503040302\":\"SHA256withDSA\"}},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.ECDSA=function(e){var t=Error,n=F,i=se,o=ce.crypto.ECDSA,s=ce.crypto.ECParameterDB,a=o.getName,u=fe,c=u.getVbyListEx,l=u.isASN1HEX,h=new te;this.type=\"EC\",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new n(e.bitLength(),h).mod(e.subtract(n.ONE)).add(n.ONE)},this.setNamedCurve=function(e){this.ecparams=s.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if(\"04\"!==e.substr(0,2))throw\"this method supports uncompressed format(04) only\";var t=this.ecparams.keylen/4;if(e.length!==2+2*t)throw\"malformed public key hex length\";var r={};return r.x=e.substr(2,t),r.y=e.substr(2+t),r},this.getShortNISTPCurveName=function(){var e=this.curveName;return\"secp256r1\"===e||\"NIST P-256\"===e||\"P-256\"===e||\"prime256v1\"===e?\"P-256\":\"secp384r1\"===e||\"NIST P-384\"===e||\"P-384\"===e?\"P-384\":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),r=this.ecparams.G.multiply(t),n=r.getX().toBigInteger(),i=r.getY().toBigInteger(),o=this.ecparams.keylen/4,s=(\"0000000000\"+t.toString(16)).slice(-o),a=\"04\"+(\"0000000000\"+n.toString(16)).slice(-o)+(\"0000000000\"+i.toString(16)).slice(-o);return this.setPrivateKeyHex(s),this.setPublicKeyHex(a),{ecprvhex:s,ecpubhex:a}},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var r=new n(t,16),i=this.ecparams.n,s=new n(e.substring(0,this.ecparams.keylen/4),16);do{var a=this.getBigRandom(i),u=this.ecparams.G.multiply(a).getX().toBigInteger().mod(i)}while(u.compareTo(n.ZERO)<=0);var c=a.modInverse(i).multiply(s.add(r.multiply(u))).mod(i);return o.biRSSigToASN1Sig(u,c)},this.sign=function(e,t){var r=t,i=this.ecparams.n,o=n.fromByteArrayUnsigned(e);do{var s=this.getBigRandom(i),a=this.ecparams.G.multiply(s).getX().toBigInteger().mod(i)}while(a.compareTo(F.ZERO)<=0);var u=s.modInverse(i).multiply(o.add(r.multiply(a))).mod(i);return this.serializeSig(a,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,r){try{var s,a,u=o.parseSigHex(t);s=u.r,a=u.s;var c=i.decodeFromHex(this.ecparams.curve,r),l=new n(e.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(l,s,a,c)}catch(e){return!1}},this.verify=function(e,t,o){var s,a,u;if(Bitcoin.Util.isArray(t)){var c=this.parseSig(t);s=c.r,a=c.s}else{if(\"object\"!==(void 0===t?\"undefined\":r(t))||!t.r||!t.s)throw\"Invalid value for signature\";s=t.r,a=t.s}if(o instanceof se)u=o;else{if(!Bitcoin.Util.isArray(o))throw\"Invalid format for pubkey value, must be byte array or ECPointFp\";u=i.decodeFrom(this.ecparams.curve,o)}var l=n.fromByteArrayUnsigned(e);return this.verifyRaw(l,s,a,u)},this.verifyRaw=function(e,t,r,i){var o=this.ecparams.n,s=this.ecparams.G;if(t.compareTo(n.ONE)<0||t.compareTo(o)>=0)return!1;if(r.compareTo(n.ONE)<0||r.compareTo(o)>=0)return!1;var a=r.modInverse(o),u=e.multiply(a).mod(o),c=t.multiply(a).mod(o);return s.multiply(u).add(i.multiply(c)).getX().toBigInteger().mod(o).equals(t)},this.serializeSig=function(e,t){var r=e.toByteArraySigned(),n=t.toByteArraySigned(),i=[];return i.push(2),i.push(r.length),(i=i.concat(r)).push(2),i.push(n.length),(i=i.concat(n)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error(\"Signature not a valid DERSequence\");if(2!=e[t=2])throw new Error(\"First element in signature must be a DERInteger\");var r=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error(\"Second element in signature must be a DERInteger\");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:n.fromByteArrayUnsigned(r),s:n.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw\"Signature has the wrong length\";var t=e[0]-27;if(t<0||t>7)throw\"Invalid signature type\";var r=this.ecparams.n;return{r:n.fromByteArrayUnsigned(e.slice(1,33)).mod(r),s:n.fromByteArrayUnsigned(e.slice(33,65)).mod(r),i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===l(e))throw new Error(\"not ASN.1 hex string\");var t,r,n;try{t=c(e,0,[\"[0]\",0],\"06\"),r=c(e,0,[1],\"04\");try{n=c(e,0,[\"[1]\",0],\"03\")}catch(e){}}catch(e){throw new Error(\"malformed PKCS#1/5 plain ECC private key\")}if(this.curveName=a(t),void 0===this.curveName)throw\"unsupported curve name\";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===l(e))throw new t(\"not ASN.1 hex string\");var r,n,i;try{c(e,0,[1,0],\"06\"),r=c(e,0,[1,1],\"06\"),n=c(e,0,[2,0,1],\"04\");try{i=c(e,0,[2,0,\"[1]\",0],\"03\")}catch(e){}}catch(e){throw new t(\"malformed PKCS#8 plain ECC private key\")}if(this.curveName=a(r),void 0===this.curveName)throw new t(\"unsupported curve name\");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===l(e))throw new t(\"not ASN.1 hex string\");var r,n;try{c(e,0,[0,0],\"06\"),r=c(e,0,[0,1],\"06\"),n=c(e,0,[1],\"03\")}catch(e){throw new t(\"malformed PKCS#8 ECC public key\")}if(this.curveName=a(r),null===this.curveName)throw new t(\"unsupported curve name\");this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(e,r){if(!1===l(e))throw new t(\"not ASN.1 hex string\");var n,i;try{n=c(e,0,[0,5,0,1],\"06\"),i=c(e,0,[0,5,1],\"03\")}catch(e){throw new t(\"malformed X.509 certificate ECC public key\")}if(this.curveName=a(n),null===this.curveName)throw new t(\"unsupported curve name\");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName=\"secp256r1\"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},ce.crypto.ECDSA.parseSigHex=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new F(t.r,16),s:new F(t.s,16)}},ce.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=fe,r=t.getChildIdx,n=t.getV;if(t.checkStrictDER(e,0),\"30\"!=e.substr(0,2))throw new Error(\"signature is not a ASN.1 sequence\");var i=r(e,0);if(2!=i.length)throw new Error(\"signature shall have two elements\");var o=i[0],s=i[1];if(\"02\"!=e.substr(o,2))throw new Error(\"1st item not ASN.1 integer\");if(\"02\"!=e.substr(s,2))throw new Error(\"2nd item not ASN.1 integer\");return{r:n(e,o),s:n(e,s)}},ce.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=ce.crypto.ECDSA.parseSigHexInHexRS(e),r=t.r,n=t.s;if(\"00\"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),\"00\"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),r.length%32==30&&(r=\"00\"+r),n.length%32==30&&(n=\"00\"+n),r.length%32!=0)throw\"unknown ECDSA sig r length error\";if(n.length%32!=0)throw\"unknown ECDSA sig s length error\";return r+n},ce.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw\"unknown ECDSA concatinated r-s sig length error\";var t=e.substr(0,e.length/2),r=e.substr(e.length/2);return ce.crypto.ECDSA.hexRSSigToASN1Sig(t,r)},ce.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var r=new F(e,16),n=new F(t,16);return ce.crypto.ECDSA.biRSSigToASN1Sig(r,n)},ce.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var r=ce.asn1,n=new r.DERInteger({bigint:e}),i=new r.DERInteger({bigint:t});return new r.DERSequence({array:[n,i]}).getEncodedHex()},ce.crypto.ECDSA.getName=function(e){return\"2b8104001f\"===e?\"secp192k1\":\"2a8648ce3d030107\"===e?\"secp256r1\":\"2b8104000a\"===e?\"secp256k1\":\"2b81040021\"===e?\"secp224r1\":\"2b81040022\"===e?\"secp384r1\":-1!==\"|secp256r1|NIST P-256|P-256|prime256v1|\".indexOf(e)?\"secp256r1\":-1!==\"|secp256k1|\".indexOf(e)?\"secp256k1\":-1!==\"|secp224r1|NIST P-224|P-224|\".indexOf(e)?\"secp224r1\":-1!==\"|secp384r1|NIST P-384|P-384|\".indexOf(e)?\"secp384r1\":null},void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.crypto&&ce.crypto||(ce.crypto={}),ce.crypto.ECParameterDB=new function(){var e={},t={};function r(e){return new F(e,16)}this.getByName=function(r){var n=r;if(void 0!==t[n]&&(n=t[r]),void 0!==e[n])return e[n];throw\"unregistered EC curve name: \"+n},this.regist=function(n,i,o,s,a,u,c,l,h,f,g,p){e[n]={};var d=r(o),v=r(s),y=r(a),m=r(u),_=r(c),b=new ae(d,v,y),w=b.decodePointHex(\"04\"+l+h);e[n].name=n,e[n].keylen=i,e[n].curve=b,e[n].G=w,e[n].n=m,e[n].h=_,e[n].oid=g,e[n].info=p;for(var S=0;S<f.length;S++)t[f[S]]=n}},ce.crypto.ECParameterDB.regist(\"secp128r1\",128,\"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF\",\"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC\",\"E87579C11079F43DD824993C2CEE5ED3\",\"FFFFFFFE0000000075A30D1B9038A115\",\"1\",\"161FF7528B899B2D0C28607CA52C5B86\",\"CF5AC8395BAFEB13C02DA292DDED7A83\",[],\"\",\"secp128r1 : SECG curve over a 128 bit prime field\"),ce.crypto.ECParameterDB.regist(\"secp160k1\",160,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73\",\"0\",\"7\",\"0100000000000000000001B8FA16DFAB9ACA16B6B3\",\"1\",\"3B4C382CE37AA192A4019E763036F4F5DD4D7EBB\",\"938CF935318FDCED6BC28286531733C3F03C4FEE\",[],\"\",\"secp160k1 : SECG curve over a 160 bit prime field\"),ce.crypto.ECParameterDB.regist(\"secp160r1\",160,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC\",\"1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45\",\"0100000000000000000001F4C8F927AED3CA752257\",\"1\",\"4A96B5688EF573284664698968C38BB913CBFC82\",\"23A628553168947D59DCC912042351377AC5FB32\",[],\"\",\"secp160r1 : SECG curve over a 160 bit prime field\"),ce.crypto.ECParameterDB.regist(\"secp192k1\",192,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37\",\"0\",\"3\",\"FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D\",\"1\",\"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D\",\"9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D\",[]),ce.crypto.ECParameterDB.regist(\"secp192r1\",192,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC\",\"64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1\",\"FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831\",\"1\",\"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012\",\"07192B95FFC8DA78631011ED6B24CDD573F977A11E794811\",[]),ce.crypto.ECParameterDB.regist(\"secp224r1\",224,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE\",\"B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D\",\"1\",\"B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21\",\"BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34\",[]),ce.crypto.ECParameterDB.regist(\"secp256k1\",256,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F\",\"0\",\"7\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141\",\"1\",\"79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798\",\"483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8\",[]),ce.crypto.ECParameterDB.regist(\"secp256r1\",256,\"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF\",\"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC\",\"5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B\",\"FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551\",\"1\",\"6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296\",\"4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5\",[\"NIST P-256\",\"P-256\",\"prime256v1\"]),ce.crypto.ECParameterDB.regist(\"secp384r1\",384,\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC\",\"B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF\",\"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973\",\"1\",\"AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7\",\"3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\",[\"NIST P-384\",\"P-384\"]),ce.crypto.ECParameterDB.regist(\"secp521r1\",521,\"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\",\"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC\",\"051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00\",\"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409\",\"1\",\"C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66\",\"011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\",[\"NIST P-521\",\"P-521\"]);var He=function(){var e=function(e,r,n){return t(y.AES,e,r,n)},t=function(e,t,r,n){var i=y.enc.Hex.parse(t),o=y.enc.Hex.parse(r),s=y.enc.Hex.parse(n),a={};a.key=o,a.iv=s,a.ciphertext=i;var u=e.decrypt(a,o,{iv:s});return y.enc.Hex.stringify(u)},r=function(e,t,r){return n(y.AES,e,t,r)},n=function(e,t,r,n){var i=y.enc.Hex.parse(t),o=y.enc.Hex.parse(r),s=y.enc.Hex.parse(n),a=e.encrypt(i,o,{iv:s}),u=y.enc.Hex.parse(a.toString());return y.enc.Base64.stringify(u)},i={\"AES-256-CBC\":{proc:e,eproc:r,keylen:32,ivlen:16},\"AES-192-CBC\":{proc:e,eproc:r,keylen:24,ivlen:16},\"AES-128-CBC\":{proc:e,eproc:r,keylen:16,ivlen:16},\"DES-EDE3-CBC\":{proc:function(e,r,n){return t(y.TripleDES,e,r,n)},eproc:function(e,t,r){return n(y.TripleDES,e,t,r)},keylen:24,ivlen:8},\"DES-CBC\":{proc:function(e,r,n){return t(y.DES,e,r,n)},eproc:function(e,t,r){return n(y.DES,e,t,r)},keylen:8,ivlen:8}},o=function(e){var t={},r=e.match(new RegExp(\"DEK-Info: ([^,]+),([0-9A-Fa-f]+)\",\"m\"));r&&(t.cipher=r[1],t.ivsalt=r[2]);var n=e.match(new RegExp(\"-----BEGIN ([A-Z]+) PRIVATE KEY-----\"));n&&(t.type=n[1]);var i=-1,o=0;-1!=e.indexOf(\"\\r\\n\\r\\n\")&&(i=e.indexOf(\"\\r\\n\\r\\n\"),o=2),-1!=e.indexOf(\"\\n\\n\")&&(i=e.indexOf(\"\\n\\n\"),o=1);var s=e.indexOf(\"-----END\");if(-1!=i&&-1!=s){var a=e.substring(i+2*o,s-o);a=a.replace(/\\s+/g,\"\"),t.data=a}return t},s=function(e,t,r){for(var n=r.substring(0,16),o=y.enc.Hex.parse(n),s=y.enc.Utf8.parse(t),a=i[e].keylen+i[e].ivlen,u=\"\",c=null;;){var l=y.algo.MD5.create();if(null!=c&&l.update(c),l.update(s),l.update(o),c=l.finalize(),(u+=y.enc.Hex.stringify(c)).length>=2*a)break}var h={};return h.keyhex=u.substr(0,2*i[e].keylen),h.ivhex=u.substr(2*i[e].keylen,2*i[e].ivlen),h},a=function(e,t,r,n){var o=y.enc.Base64.parse(e),s=y.enc.Hex.stringify(o);return(0,i[t].proc)(s,r,n)};return{version:\"1.0.0\",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,r){return s(e,t,r)},decryptKeyB64:function(e,t,r,n){return a(e,t,r,n)},getDecryptedKeyHex:function(e,t){var r=o(e),n=(r.type,r.cipher),i=r.ivsalt,u=r.data,c=s(n,t,i).keyhex;return a(u,n,c,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,r,n,o){var a=\"\";if(void 0!==n&&null!=n||(n=\"AES-256-CBC\"),void 0===i[n])throw\"KEYUTIL unsupported algorithm: \"+n;void 0!==o&&null!=o||(o=function(e){var t=y.lib.WordArray.random(e);return y.enc.Hex.stringify(t)}(i[n].ivlen).toUpperCase());var u=function(e,t,r,n){return(0,i[t].eproc)(e,r,n)}(t,n,s(n,r,o).keyhex,o);return a=\"-----BEGIN \"+e+\" PRIVATE KEY-----\\r\\n\",a+=\"Proc-Type: 4,ENCRYPTED\\r\\n\",a+=\"DEK-Info: \"+n+\",\"+o+\"\\r\\n\",a+=\"\\r\\n\",(a+=u.replace(/(.{64})/g,\"$1\\r\\n\"))+\"\\r\\n-----END \"+e+\" PRIVATE KEY-----\\r\\n\"},parseHexOfEncryptedPKCS8:function(e){var t=fe,r=t.getChildIdx,n=t.getV,i={},o=r(e,0);if(2!=o.length)throw\"malformed format: SEQUENCE(0).items != 2: \"+o.length;i.ciphertext=n(e,o[1]);var s=r(e,o[0]);if(2!=s.length)throw\"malformed format: SEQUENCE(0.0).items != 2: \"+s.length;if(\"2a864886f70d01050d\"!=n(e,s[0]))throw\"this only supports pkcs5PBES2\";var a=r(e,s[1]);if(2!=s.length)throw\"malformed format: SEQUENCE(0.0.1).items != 2: \"+a.length;var u=r(e,a[1]);if(2!=u.length)throw\"malformed format: SEQUENCE(0.0.1.1).items != 2: \"+u.length;if(\"2a864886f70d0307\"!=n(e,u[0]))throw\"this only supports TripleDES\";i.encryptionSchemeAlg=\"TripleDES\",i.encryptionSchemeIV=n(e,u[1]);var c=r(e,a[0]);if(2!=c.length)throw\"malformed format: SEQUENCE(0.0.1.0).items != 2: \"+c.length;if(\"2a864886f70d01050c\"!=n(e,c[0]))throw\"this only supports pkcs5PBKDF2\";var l=r(e,c[1]);if(l.length<2)throw\"malformed format: SEQUENCE(0.0.1.0.1).items < 2: \"+l.length;i.pbkdf2Salt=n(e,l[0]);var h=n(e,l[1]);try{i.pbkdf2Iter=parseInt(h,16)}catch(e){throw\"malformed format pbkdf2Iter: \"+h}return i},getPBKDF2KeyHexFromParam:function(e,t){var r=y.enc.Hex.parse(e.pbkdf2Salt),n=e.pbkdf2Iter,i=y.PBKDF2(t,r,{keySize:6,iterations:n});return y.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var r=Le(e,\"ENCRYPTED PRIVATE KEY\"),n=this.parseHexOfEncryptedPKCS8(r),i=He.getPBKDF2KeyHexFromParam(n,t),o={};o.ciphertext=y.enc.Hex.parse(n.ciphertext);var s=y.enc.Hex.parse(i),a=y.enc.Hex.parse(n.encryptionSchemeIV),u=y.TripleDES.decrypt(o,s,{iv:a});return y.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var r=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(r)},parsePlainPrivatePKCS8Hex:function(e){var t=fe,r=t.getChildIdx,n=t.getV,i={algparam:null};if(\"30\"!=e.substr(0,2))throw\"malformed plain PKCS8 private key(code:001)\";var o=r(e,0);if(3!=o.length)throw\"malformed plain PKCS8 private key(code:002)\";if(\"30\"!=e.substr(o[1],2))throw\"malformed PKCS8 private key(code:003)\";var s=r(e,o[1]);if(2!=s.length)throw\"malformed PKCS8 private key(code:004)\";if(\"06\"!=e.substr(s[0],2))throw\"malformed PKCS8 private key(code:005)\";if(i.algoid=n(e,s[0]),\"06\"==e.substr(s[1],2)&&(i.algparam=n(e,s[1])),\"04\"!=e.substr(o[2],2))throw\"malformed PKCS8 private key(code:006)\";return i.keyidx=t.getVidx(e,o[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Le(e,\"PRIVATE KEY\");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,r=this.parsePlainPrivatePKCS8Hex(e);if(\"2a864886f70d010101\"==r.algoid)t=new ie;else if(\"2a8648ce380401\"==r.algoid)t=new ce.crypto.DSA;else{if(\"2a8648ce3d0201\"!=r.algoid)throw\"unsupported private key algorithm\";t=new ce.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,r=fe.getVbyList(e,0,[0,0],\"06\");if(\"2a864886f70d010101\"===r)t=new ie;else if(\"2a8648ce380401\"===r)t=new ce.crypto.DSA;else{if(\"2a8648ce3d0201\"!==r)throw\"unsupported PKCS#8 public key hex\";t=new ce.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=fe,r=t.getChildIdx,n=t.getV,i={};if(\"30\"!=e.substr(0,2))throw\"malformed RSA key(code:001)\";var o=r(e,0);if(2!=o.length)throw\"malformed RSA key(code:002)\";if(\"02\"!=e.substr(o[0],2))throw\"malformed RSA key(code:003)\";if(i.n=n(e,o[0]),\"02\"!=e.substr(o[1],2))throw\"malformed RSA key(code:004)\";return i.e=n(e,o[1]),i},parsePublicPKCS8Hex:function(e){var t=fe,r=t.getChildIdx,n=t.getV,i={algparam:null},o=r(e,0);if(2!=o.length)throw\"outer DERSequence shall have 2 elements: \"+o.length;var s=o[0];if(\"30\"!=e.substr(s,2))throw\"malformed PKCS8 public key(code:001)\";var a=r(e,s);if(2!=a.length)throw\"malformed PKCS8 public key(code:002)\";if(\"06\"!=e.substr(a[0],2))throw\"malformed PKCS8 public key(code:003)\";if(i.algoid=n(e,a[0]),\"06\"==e.substr(a[1],2)?i.algparam=n(e,a[1]):\"30\"==e.substr(a[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,a[1],[0],\"02\"),i.algparam.q=t.getVbyList(e,a[1],[1],\"02\"),i.algparam.g=t.getVbyList(e,a[1],[2],\"02\")),\"03\"!=e.substr(o[1],2))throw\"malformed PKCS8 public key(code:004)\";return i.key=n(e,o[1]).substr(2),i}}}();He.getKey=function(e,t,r){var n,i=(y=fe).getChildIdx,o=(y.getV,y.getVbyList),s=ce.crypto,a=s.ECDSA,u=s.DSA,c=ie,l=Le,h=He;if(void 0!==c&&e instanceof c)return e;if(void 0!==a&&e instanceof a)return e;if(void 0!==u&&e instanceof u)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new a({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new a({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(e.n,e.e),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(L=new c).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),L;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(L=new c).setPrivate(e.n,e.e,e.d),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(L=new u).setPublic(e.p,e.q,e.g,e.y),L;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(L=new u).setPrivate(e.p,e.q,e.g,e.y,e.x),L;if(\"RSA\"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(L=new c).setPublic(be(e.n),be(e.e)),L;if(\"RSA\"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(L=new c).setPrivateEx(be(e.n),be(e.e),be(e.d),be(e.p),be(e.q),be(e.dp),be(e.dq),be(e.qi)),L;if(\"RSA\"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(L=new c).setPrivate(be(e.n),be(e.e),be(e.d)),L;if(\"EC\"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var f=(k=new a({curve:e.crv})).ecparams.keylen/4,g=\"04\"+(\"0000000000\"+be(e.x)).slice(-f)+(\"0000000000\"+be(e.y)).slice(-f);return k.setPublicKeyHex(g),k}if(\"EC\"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){f=(k=new a({curve:e.crv})).ecparams.keylen/4,g=\"04\"+(\"0000000000\"+be(e.x)).slice(-f)+(\"0000000000\"+be(e.y)).slice(-f);var p=(\"0000000000\"+be(e.d)).slice(-f);return k.setPublicKeyHex(g),k.setPrivateKeyHex(p),k}if(\"pkcs5prv\"===r){var d,v=e,y=fe;if(9===(d=i(v,0)).length)(L=new c).readPKCS5PrvKeyHex(v);else if(6===d.length)(L=new u).readPKCS5PrvKeyHex(v);else{if(!(d.length>2&&\"04\"===v.substr(d[1],2)))throw\"unsupported PKCS#1/5 hexadecimal key\";(L=new a).readPKCS5PrvKeyHex(v)}return L}if(\"pkcs8prv\"===r)return h.getKeyFromPlainPrivatePKCS8Hex(e);if(\"pkcs8pub\"===r)return h._getKeyFromPublicPKCS8Hex(e);if(\"x509pub\"===r)return We.getPublicKeyFromCertHex(e);if(-1!=e.indexOf(\"-END CERTIFICATE-\",0)||-1!=e.indexOf(\"-END X509 CERTIFICATE-\",0)||-1!=e.indexOf(\"-END TRUSTED CERTIFICATE-\",0))return We.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf(\"-END PUBLIC KEY-\")){var m=Le(e,\"PUBLIC KEY\");return h._getKeyFromPublicPKCS8Hex(m)}if(-1!=e.indexOf(\"-END RSA PRIVATE KEY-\")&&-1==e.indexOf(\"4,ENCRYPTED\")){var _=l(e,\"RSA PRIVATE KEY\");return h.getKey(_,null,\"pkcs5prv\")}if(-1!=e.indexOf(\"-END DSA PRIVATE KEY-\")&&-1==e.indexOf(\"4,ENCRYPTED\")){var b=o(n=l(e,\"DSA PRIVATE KEY\"),0,[1],\"02\"),w=o(n,0,[2],\"02\"),S=o(n,0,[3],\"02\"),E=o(n,0,[4],\"02\"),x=o(n,0,[5],\"02\");return(L=new u).setPrivate(new F(b,16),new F(w,16),new F(S,16),new F(E,16),new F(x,16)),L}if(-1!=e.indexOf(\"-END EC PRIVATE KEY-\")&&-1==e.indexOf(\"4,ENCRYPTED\"))return _=l(e,\"EC PRIVATE KEY\"),h.getKey(_,null,\"pkcs5prv\");if(-1!=e.indexOf(\"-END PRIVATE KEY-\"))return h.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf(\"-END RSA PRIVATE KEY-\")&&-1!=e.indexOf(\"4,ENCRYPTED\")){var C=h.getDecryptedKeyHex(e,t),A=new ie;return A.readPKCS5PrvKeyHex(C),A}if(-1!=e.indexOf(\"-END EC PRIVATE KEY-\")&&-1!=e.indexOf(\"4,ENCRYPTED\")){var k,L=o(n=h.getDecryptedKeyHex(e,t),0,[1],\"04\"),P=o(n,0,[2,0],\"06\"),T=o(n,0,[3,0],\"03\").substr(2);if(void 0===ce.crypto.OID.oidhex2name[P])throw\"undefined OID(hex) in KJUR.crypto.OID: \"+P;return(k=new a({curve:ce.crypto.OID.oidhex2name[P]})).setPublicKeyHex(T),k.setPrivateKeyHex(L),k.isPublic=!1,k}if(-1!=e.indexOf(\"-END DSA PRIVATE KEY-\")&&-1!=e.indexOf(\"4,ENCRYPTED\"))return b=o(n=h.getDecryptedKeyHex(e,t),0,[1],\"02\"),w=o(n,0,[2],\"02\"),S=o(n,0,[3],\"02\"),E=o(n,0,[4],\"02\"),x=o(n,0,[5],\"02\"),(L=new u).setPrivate(new F(b,16),new F(w,16),new F(S,16),new F(E,16),new F(x,16)),L;if(-1!=e.indexOf(\"-END ENCRYPTED PRIVATE KEY-\"))return h.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error(\"not supported argument\")},He.generateKeypair=function(e,t){if(\"RSA\"==e){var r=t;(s=new ie).generate(r,\"10001\"),s.isPrivate=!0,s.isPublic=!0;var n=new ie,i=s.n.toString(16),o=s.e.toString(16);return n.setPublic(i,o),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=s,a.pubKeyObj=n,a}if(\"EC\"==e){var s,a,u=t,c=new ce.crypto.ECDSA({curve:u}).generateKeyPairHex();return(s=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),s.setPrivateKeyHex(c.ecprvhex),s.isPrivate=!0,s.isPublic=!1,(n=new ce.crypto.ECDSA({curve:u})).setPublicKeyHex(c.ecpubhex),n.isPrivate=!1,n.isPublic=!0,(a={}).prvKeyObj=s,a.pubKeyObj=n,a}throw\"unknown algorithm: \"+e},He.getPEM=function(e,t,r,n,i,o){var s=ce,a=s.asn1,u=a.DERObjectIdentifier,c=a.DERInteger,l=a.ASN1Util.newObject,h=a.x509.SubjectPublicKeyInfo,f=s.crypto,g=f.DSA,p=f.ECDSA,d=ie;function v(e){return l({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function m(e){return l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:[\"a0\",!0,{oid:{name:e.curveName}}]},{tag:[\"a1\",!0,{bitstr:{hex:\"00\"+e.pubKeyHex}}]}]})}function _(e){return l({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==d&&e instanceof d||void 0!==g&&e instanceof g||void 0!==p&&e instanceof p)&&1==e.isPublic&&(void 0===t||\"PKCS8PUB\"==t))return ke(F=new h(e).getEncodedHex(),\"PUBLIC KEY\");if(\"PKCS1PRV\"==t&&void 0!==d&&e instanceof d&&(void 0===r||null==r)&&1==e.isPrivate)return ke(F=v(e).getEncodedHex(),\"RSA PRIVATE KEY\");if(\"PKCS1PRV\"==t&&void 0!==p&&e instanceof p&&(void 0===r||null==r)&&1==e.isPrivate){var b=new u({name:e.curveName}).getEncodedHex(),w=m(e).getEncodedHex(),S=\"\";return(S+=ke(b,\"EC PARAMETERS\"))+ke(w,\"EC PRIVATE KEY\")}if(\"PKCS1PRV\"==t&&void 0!==g&&e instanceof g&&(void 0===r||null==r)&&1==e.isPrivate)return ke(F=_(e).getEncodedHex(),\"DSA PRIVATE KEY\");if(\"PKCS5PRV\"==t&&void 0!==d&&e instanceof d&&void 0!==r&&null!=r&&1==e.isPrivate){var F=v(e).getEncodedHex();return void 0===n&&(n=\"DES-EDE3-CBC\"),this.getEncryptedPKCS5PEMFromPrvKeyHex(\"RSA\",F,r,n,o)}if(\"PKCS5PRV\"==t&&void 0!==p&&e instanceof p&&void 0!==r&&null!=r&&1==e.isPrivate)return F=m(e).getEncodedHex(),void 0===n&&(n=\"DES-EDE3-CBC\"),this.getEncryptedPKCS5PEMFromPrvKeyHex(\"EC\",F,r,n,o);if(\"PKCS5PRV\"==t&&void 0!==g&&e instanceof g&&void 0!==r&&null!=r&&1==e.isPrivate)return F=_(e).getEncodedHex(),void 0===n&&(n=\"DES-EDE3-CBC\"),this.getEncryptedPKCS5PEMFromPrvKeyHex(\"DSA\",F,r,n,o);var E=function(e,t){var r=x(e,t);return new l({seq:[{seq:[{oid:{name:\"pkcs5PBES2\"}},{seq:[{seq:[{oid:{name:\"pkcs5PBKDF2\"}},{seq:[{octstr:{hex:r.pbkdf2Salt}},{int:r.pbkdf2Iter}]}]},{seq:[{oid:{name:\"des-EDE3-CBC\"}},{octstr:{hex:r.encryptionSchemeIV}}]}]}]},{octstr:{hex:r.ciphertext}}]}).getEncodedHex()},x=function(e,t){var r=y.lib.WordArray.random(8),n=y.lib.WordArray.random(8),i=y.PBKDF2(t,r,{keySize:6,iterations:100}),o=y.enc.Hex.parse(e),s=y.TripleDES.encrypt(o,i,{iv:n})+\"\",a={};return a.ciphertext=s,a.pbkdf2Salt=y.enc.Hex.stringify(r),a.pbkdf2Iter=100,a.encryptionSchemeAlg=\"DES-EDE3-CBC\",a.encryptionSchemeIV=y.enc.Hex.stringify(n),a};if(\"PKCS8PRV\"==t&&null!=d&&e instanceof d&&1==e.isPrivate){var C=v(e).getEncodedHex();return F=l({seq:[{int:0},{seq:[{oid:{name:\"rsaEncryption\"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===r||null==r?ke(F,\"PRIVATE KEY\"):ke(w=E(F,r),\"ENCRYPTED PRIVATE KEY\")}if(\"PKCS8PRV\"==t&&void 0!==p&&e instanceof p&&1==e.isPrivate)return C=new l({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:[\"a1\",!0,{bitstr:{hex:\"00\"+e.pubKeyHex}}]}]}).getEncodedHex(),F=l({seq:[{int:0},{seq:[{oid:{name:\"ecPublicKey\"}},{oid:{name:e.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===r||null==r?ke(F,\"PRIVATE KEY\"):ke(w=E(F,r),\"ENCRYPTED PRIVATE KEY\");if(\"PKCS8PRV\"==t&&void 0!==g&&e instanceof g&&1==e.isPrivate)return C=new c({bigint:e.x}).getEncodedHex(),F=l({seq:[{int:0},{seq:[{oid:{name:\"dsa\"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===r||null==r?ke(F,\"PRIVATE KEY\"):ke(w=E(F,r),\"ENCRYPTED PRIVATE KEY\");throw new Error(\"unsupported object nor format\")},He.getKeyFromCSRPEM=function(e){var t=Le(e,\"CERTIFICATE REQUEST\");return He.getKeyFromCSRHex(t)},He.getKeyFromCSRHex=function(e){var t=He.parseCSRHex(e);return He.getKey(t.p8pubkeyhex,null,\"pkcs8pub\")},He.parseCSRHex=function(e){var t=fe,r=t.getChildIdx,n=t.getTLV,i={},o=e;if(\"30\"!=o.substr(0,2))throw\"malformed CSR(code:001)\";var s=r(o,0);if(s.length<1)throw\"malformed CSR(code:002)\";if(\"30\"!=o.substr(s[0],2))throw\"malformed CSR(code:003)\";var a=r(o,s[0]);if(a.length<3)throw\"malformed CSR(code:004)\";return i.p8pubkeyhex=n(o,a[2]),i},He.getKeyID=function(e){var t=He,r=fe;\"string\"==typeof e&&-1!=e.indexOf(\"BEGIN \")&&(e=t.getKey(e));var n=Le(t.getPEM(e)),i=r.getIdxbyList(n,0,[1]),o=r.getV(n,i).substring(2);return ce.crypto.Util.hashHex(o,\"sha1\")},He.getJWKFromKey=function(e){var t={};if(e instanceof ie&&e.isPrivate)return t.kty=\"RSA\",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t.d=_e(e.d.toString(16)),t.p=_e(e.p.toString(16)),t.q=_e(e.q.toString(16)),t.dp=_e(e.dmp1.toString(16)),t.dq=_e(e.dmq1.toString(16)),t.qi=_e(e.coeff.toString(16)),t;if(e instanceof ie&&e.isPublic)return t.kty=\"RSA\",t.n=_e(e.n.toString(16)),t.e=_e(e.e.toString(16)),t;if(e instanceof ce.crypto.ECDSA&&e.isPrivate){if(\"P-256\"!==(n=e.getShortNISTPCurveName())&&\"P-384\"!==n)throw\"unsupported curve name for JWT: \"+n;var r=e.getPublicKeyXYHex();return t.kty=\"EC\",t.crv=n,t.x=_e(r.x),t.y=_e(r.y),t.d=_e(e.prvKeyHex),t}if(e instanceof ce.crypto.ECDSA&&e.isPublic){var n;if(\"P-256\"!==(n=e.getShortNISTPCurveName())&&\"P-384\"!==n)throw\"unsupported curve name for JWT: \"+n;return r=e.getPublicKeyXYHex(),t.kty=\"EC\",t.crv=n,t.x=_e(r.x),t.y=_e(r.y),t}throw\"not supported key object\"},ie.getPosArrayOfChildrenFromHex=function(e){return fe.getChildIdx(e,0)},ie.getHexValueArrayOfChildrenFromHex=function(e){var t,r=fe.getV,n=r(e,(t=ie.getPosArrayOfChildrenFromHex(e))[0]),i=r(e,t[1]),o=r(e,t[2]),s=r(e,t[3]),a=r(e,t[4]),u=r(e,t[5]),c=r(e,t[6]),l=r(e,t[7]),h=r(e,t[8]);return(t=new Array).push(n,i,o,s,a,u,c,l,h),t},ie.prototype.readPrivateKeyFromPEMString=function(e){var t=Le(e),r=ie.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])},ie.prototype.readPKCS5PrvKeyHex=function(e){var t=ie.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},ie.prototype.readPKCS8PrvKeyHex=function(e){var t,r,n,i,o,s,a,u,c=fe,l=c.getVbyListEx;if(!1===c.isASN1HEX(e))throw new Error(\"not ASN.1 hex string\");try{t=l(e,0,[2,0,1],\"02\"),r=l(e,0,[2,0,2],\"02\"),n=l(e,0,[2,0,3],\"02\"),i=l(e,0,[2,0,4],\"02\"),o=l(e,0,[2,0,5],\"02\"),s=l(e,0,[2,0,6],\"02\"),a=l(e,0,[2,0,7],\"02\"),u=l(e,0,[2,0,8],\"02\")}catch(e){throw new Error(\"malformed PKCS#8 plain RSA private key\")}this.setPrivateEx(t,r,n,i,o,s,a,u)},ie.prototype.readPKCS5PubKeyHex=function(e){var t=fe,r=t.getV;if(!1===t.isASN1HEX(e))throw new Error(\"keyHex is not ASN.1 hex string\");var n=t.getChildIdx(e,0);if(2!==n.length||\"02\"!==e.substr(n[0],2)||\"02\"!==e.substr(n[1],2))throw new Error(\"wrong hex for PKCS#5 public key\");var i=r(e,n[0]),o=r(e,n[1]);this.setPublic(i,o)},ie.prototype.readPKCS8PubKeyHex=function(e){var t=fe;if(!1===t.isASN1HEX(e))throw new Error(\"not ASN.1 hex string\");if(\"06092a864886f70d010101\"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error(\"not PKCS8 RSA public key\");var r=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(r)},ie.prototype.readCertPubKeyHex=function(e,t){var r,n;(r=new We).readCertHex(e),n=r.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var Ve=new RegExp(\"[^0-9a-f]\",\"gi\");function Ke(e,t){for(var r=\"\",n=t/4-e.length,i=0;i<n;i++)r+=\"0\";return r+e}function qe(e,t,r){for(var n=\"\",i=0;n.length<t;)n+=Fe(r(Ee(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return n}function Je(e){for(var t in ce.crypto.Util.DIGESTINFOHEAD){var r=ce.crypto.Util.DIGESTINFOHEAD[t],n=r.length;if(e.substring(0,n)==r)return[t,e.substring(n)]}return[]}function We(e){var t,r=fe,n=r.getChildIdx,i=r.getV,o=r.getTLV,s=r.getVbyList,a=r.getVbyListEx,u=r.getTLVbyList,c=r.getTLVbyListEx,l=r.getIdxbyList,h=r.getIdxbyListEx,f=r.getVidx,g=r.oidname,p=r.hextooidstr,d=We,v=Le;try{t=ce.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={\"0c\":\"utf8\",13:\"prn\",16:\"ia5\",\"1a\":\"vis\",\"1e\":\"bmp\"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:\"a003020102\"!==u(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return a(this.hex,0,[0,0],\"02\")},this.getSignatureAlgorithmField=function(){var e=c(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var r in t)if(e===t[r])return r;return g(a(e,0,[0],\"06\"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return u(this.hex,0,[0,3+this.foffset],\"30\")},this.getIssuerString=function(){return d.hex2dn(this.getIssuerHex())},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return u(this.hex,0,[0,5+this.foffset],\"30\")},this.getSubjectString=function(){return d.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var e=s(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,\"%$1\"),decodeURIComponent(e)},this.getNotAfter=function(){var e=s(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,\"%$1\"),decodeURIComponent(e)},this.getPublicKeyHex=function(){return r.getTLVbyList(this.hex,0,[0,6+this.foffset],\"30\")},this.getPublicKeyIdx=function(){return l(this.hex,0,[0,6+this.foffset],\"30\")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return l(this.hex,e,[1,0],\"30\")},this.getPublicKey=function(){return He.getKey(this.getPublicKeyHex(),null,\"pkcs8pub\")},this.getSignatureAlgorithmName=function(){var e=u(this.hex,0,[1],\"30\");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return s(this.hex,0,[2],\"03\",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),r=this.getSignatureValueHex(),n=u(this.hex,0,[0],\"30\"),i=new ce.crypto.Signature({alg:t});return i.init(e),i.updateHex(n),i.verify(r)},this.parseExt=function(e){var t,o,a;if(void 0===e){if(a=this.hex,3!==this.version)return-1;t=l(a,0,[0,7,0],\"30\"),o=n(a,t)}else{a=Le(e);var u=l(a,0,[0,3,0,0],\"06\");if(\"2a864886f70d01090e\"!=i(a,u))return void(this.aExtInfo=new Array);t=l(a,0,[0,3,0,1,0],\"30\"),o=n(a,t),this.hex=a}this.aExtInfo=new Array;for(var c=0;c<o.length;c++){var h={critical:!1},g=0;3===n(a,o[c]).length&&(h.critical=!0,g=1),h.oid=r.hextooidstr(s(a,o[c],[0],\"06\"));var p=l(a,o[c],[1+g]);h.vidx=f(a,p),this.aExtInfo.push(h)}},this.getExtInfo=function(e){var t=this.aExtInfo,r=e;if(e.match(/^[0-9.]+$/)||(r=ce.asn1.x509.OID.name2oid(e)),\"\"!==r)for(var n=0;n<t.length;n++)if(t[n].oid===r)return t[n]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"basicConstraints\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var n={extname:\"basicConstraints\"};if(t&&(n.critical=!0),\"3000\"===e)return n;if(\"30030101ff\"===e)return n.cA=!0,n;if(\"30060101ff02\"===e.substr(0,12)){var s=i(e,10),a=parseInt(s,16);return n.cA=!0,n.pathLen=a,n}throw new Error(\"hExtV parse error: \"+e)},this.getExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"keyUsage\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var n={extname:\"keyUsage\"};return t&&(n.critical=!0),n.names=this.getExtKeyUsageString(e).split(\",\"),n},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo(\"keyUsage\");if(void 0===t)return\"\";e=o(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error(\"malformed key usage value: \"+e);var r=\"000000000000000\"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(r=r.slice(-8)),10==e.length&&(r=r.slice(-16)),\"\"==(r=r.replace(/0+$/,\"\"))&&(r=\"0\"),r},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),r=new Array,n=0;n<t.length;n++)\"1\"==t.substr(n,1)&&r.push(We.KEYUSAGE_NAME[n]);return r.join(\",\")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"subjectKeyIdentifier\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var n={extname:\"subjectKeyIdentifier\"};t&&(n.critical=!0);var s=i(e,0);return n.kid={hex:s},n},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"authorityKeyIdentifier\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var s={extname:\"authorityKeyIdentifier\"};t&&(s.critical=!0);for(var a=n(e,0),u=0;u<a.length;u++){var c=e.substr(a[u],2);if(\"80\"===c&&(s.kid={hex:i(e,a[u])}),\"a1\"===c){var l=o(e,a[u]),h=this.getGeneralNames(l);s.issuer=h[0].dn}\"82\"===c&&(s.sn={hex:i(e,a[u])})}return s},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"extKeyUsage\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var s={extname:\"extKeyUsage\",array:[]};t&&(s.critical=!0);for(var a=n(e,0),u=0;u<a.length;u++)s.array.push(g(i(e,a[u])));return s},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo(\"extKeyUsage\");if(void 0===e)return e;var t=new Array,r=o(this.hex,e.vidx);if(\"\"===r)return t;for(var s=n(r,0),a=0;a<s.length;a++)t.push(g(i(r,s[a])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"subjectAltName\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var n={extname:\"subjectAltName\",array:[]};return t&&(n.critical=!0),n.array=this.getGeneralNames(e),n},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"issuerAltName\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var n={extname:\"issuerAltName\",array:[]};return t&&(n.critical=!0),n.array=this.getGeneralNames(e),n},this.getGeneralNames=function(e){for(var t=n(e,0),r=[],i=0;i<t.length;i++){var s=this.getGeneralName(o(e,t[i]));void 0!==s&&r.push(s)}return r},this.getGeneralName=function(e){var t=e.substr(0,2),r=i(e,0),n=Fe(r);return\"81\"==t?{rfc822:n}:\"82\"==t?{dns:n}:\"86\"==t?{uri:n}:\"87\"==t?{ip:je(r)}:\"a4\"==t?{dn:this.getX500Name(r)}:void 0},this.getExtSubjectAltName2=function(){var e,t,r,s=this.getExtInfo(\"subjectAltName\");if(void 0===s)return s;for(var a=new Array,u=o(this.hex,s.vidx),c=n(u,0),l=0;l<c.length;l++)r=u.substr(c[l],2),e=i(u,c[l]),\"81\"===r&&(t=Se(e),a.push([\"MAIL\",t])),\"82\"===r&&(t=Se(e),a.push([\"DNS\",t])),\"84\"===r&&(t=We.hex2dn(e,0),a.push([\"DN\",t])),\"86\"===r&&(t=Se(e),a.push([\"URI\",t])),\"87\"===r&&(t=je(e),a.push([\"IP\",t]));return a},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"cRLDistributionPoints\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var i={extname:\"cRLDistributionPoints\",array:[]};t&&(i.critical=!0);for(var s=n(e,0),a=0;a<s.length;a++){var u=o(e,s[a]);i.array.push(this.getDistributionPoint(u))}return i},this.getDistributionPoint=function(e){for(var t={},r=n(e,0),i=0;i<r.length;i++){var s=e.substr(r[i],2),a=o(e,r[i]);\"a0\"==s&&(t.dpname=this.getDistributionPointName(a))}return t},this.getDistributionPointName=function(e){for(var t={},r=n(e,0),i=0;i<r.length;i++){var s=e.substr(r[i],2),a=o(e,r[i]);\"a0\"==s&&(t.full=this.getGeneralNames(a))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtInfo(\"cRLDistributionPoints\");if(void 0===e)return e;for(var t=new Array,r=n(this.hex,e.vidx),i=0;i<r.length;i++)try{var o=Se(s(this.hex,r[i],[0,0,0],\"86\"));t.push(o)}catch(e){}return t},this.getExtAIAInfo=function(){var e=this.getExtInfo(\"authorityInfoAccess\");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},r=n(this.hex,e.vidx),i=0;i<r.length;i++){var o=s(this.hex,r[i],[0],\"06\"),a=s(this.hex,r[i],[1],\"86\");\"2b06010505073001\"===o&&t.ocsp.push(Se(a)),\"2b06010505073002\"===o&&t.caissuer.push(Se(a))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"authorityInfoAccess\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var i={extname:\"authorityInfoAccess\",array:[]};t&&(i.critical=!0);for(var u=n(e,0),c=0;c<u.length;c++){var l=a(e,u[c],[0],\"06\"),h=Se(s(e,u[c],[1],\"86\"));if(\"2b06010505073001\"==l)i.array.push({ocsp:h});else{if(\"2b06010505073002\"!=l)throw new Error(\"unknown method: \"+l);i.array.push({caissuer:h})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"certificatePolicies\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var i={extname:\"certificatePolicies\",array:[]};t&&(i.critical=!0);for(var s=n(e,0),a=0;a<s.length;a++){var u=o(e,s[a]),c=this.getPolicyInformation(u);i.array.push(c)}return i},this.getPolicyInformation=function(e){var t={},r=s(e,0,[0],\"06\");t.policyoid=g(r);var i=h(e,0,[1],\"30\");if(-1!=i){t.array=[];for(var a=n(e,i),u=0;u<a.length;u++){var c=o(e,a[u]),l=this.getPolicyQualifierInfo(c);t.array.push(l)}}return t},this.getPolicyQualifierInfo=function(e){var t={},r=s(e,0,[0],\"06\");if(\"2b06010505070201\"===r){var n=a(e,0,[1],\"16\");t.cps=Fe(n)}else if(\"2b06010505070202\"===r){var i=u(e,0,[1],\"30\");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){for(var t={},r=n(e,0),i=0;i<r.length;i++){var s=o(e,r[i]);\"30\"!=s.substr(0,2)&&(t.exptext=this.getDisplayText(s))}return t},this.getDisplayText=function(e){var t={};return t.type={\"0c\":\"utf8\",16:\"ia5\",\"1a\":\"vis\",\"1e\":\"bmp\"}[e.substr(0,2)],t.str=Fe(i(e,0)),t},this.getExtCRLNumber=function(e,t){var r={extname:\"cRLNumber\"};if(t&&(r.critical=!0),\"02\"==e.substr(0,2))return r.num={hex:i(e,0)},r;throw new Error(\"hExtV parse error: \"+e)},this.getExtCRLReason=function(e,t){var r={extname:\"cRLReason\"};if(t&&(r.critical=!0),\"0a\"==e.substr(0,2))return r.code=parseInt(i(e,0),16),r;throw new Error(\"hExtV parse error: \"+e)},this.getExtOcspNonce=function(e,t){var r={extname:\"ocspNonce\"};t&&(r.critical=!0);var n=i(e,0);return r.hex=n,r},this.getExtOcspNoCheck=function(e,t){var r={extname:\"ocspNoCheck\"};return t&&(r.critical=!0),r},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var r=this.getExtInfo(\"adobeTimeStamp\");if(void 0===r)return;e=o(this.hex,r.vidx),t=r.critical}var i={extname:\"adobeTimeStamp\"};t&&(i.critical=!0);var s=n(e,0);if(s.length>1){var a=o(e,s[1]),u=this.getGeneralName(a);null!=u.uri&&(i.uri=u.uri)}if(s.length>2){var c=o(e,s[2]);\"0101ff\"==c&&(i.reqauth=!0),\"010100\"==c&&(i.reqauth=!1)}return i},this.getX500NameRule=function(e){for(var t=null,r=[],n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)r.push(i[o]);for(n=0;n<r.length;n++){var s=r[n],a=s.ds,u=s.value,c=s.type;if(\"prn\"!=a&&\"utf8\"!=a&&\"ia5\"!=a)return\"mixed\";if(\"ia5\"==a){if(\"CN\"!=c)return\"mixed\";if(ce.lang.String.isMail(u))continue;return\"mixed\"}if(\"C\"==c){if(\"prn\"==a)continue;return\"mixed\"}if(null==t)t=a;else if(t!==a)return\"mixed\"}return null==t?\"prn\":t},this.getX500Name=function(e){var t=this.getX500NameArray(e);return{array:t,str:this.dnarraytostr(t)}},this.getX500NameArray=function(e){for(var t=[],r=n(e,0),i=0;i<r.length;i++)t.push(this.getRDN(o(e,r[i])));return t},this.getRDN=function(e){for(var t=[],r=n(e,0),i=0;i<r.length;i++)t.push(this.getAttrTypeAndValue(o(e,r[i])));return t},this.getAttrTypeAndValue=function(e){var t={type:null,value:null,ds:null},r=n(e,0),i=s(e,r[0],[],\"06\"),o=s(e,r[1],[]),a=ce.asn1.ASN1Util.oidHexToInt(i);return t.type=ce.asn1.x509.OID.oid2atype(a),t.value=Fe(o),t.ds=this.HEX2STAG[e.substr(r[1],2)],t},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{l(this.hex,0,[0,7],\"a3\"),this.parseExt()}catch(e){}},this.getParam=function(){var e={};return e.version=this.getVersion(),e.serial={hex:this.getSerialNumberHex()},e.sigalg=this.getSignatureAlgorithmField(),e.issuer=this.getIssuer(),e.notbefore=this.getNotBefore(),e.notafter=this.getNotAfter(),e.subject=this.getSubject(),e.sbjpubkey=ke(this.getPublicKeyHex(),\"PUBLIC KEY\"),this.aExtInfo.length>0&&(e.ext=this.getExtParamArray()),e.sighex=this.getSignatureValueHex(),e},this.getExtParamArray=function(e){null==e&&-1!=h(this.hex,0,[0,\"[3]\"])&&(e=c(this.hex,0,[0,\"[3]\",0],\"30\"));for(var t=[],r=n(e,0),i=0;i<r.length;i++){var s=o(e,r[i]),a=this.getExtParam(s);null!=a&&t.push(a)}return t},this.getExtParam=function(e){var t=n(e,0).length;if(2!=t&&3!=t)throw new Error(\"wrong number elements in Extension: \"+t+\" \"+e);var r=p(s(e,0,[0],\"06\")),i=!1;3==t&&\"0101ff\"==u(e,0,[1])&&(i=!0);var o=u(e,0,[t-1,0]),a=void 0;if(\"2.5.29.14\"==r?a=this.getExtSubjectKeyIdentifier(o,i):\"2.5.29.15\"==r?a=this.getExtKeyUsage(o,i):\"2.5.29.17\"==r?a=this.getExtSubjectAltName(o,i):\"2.5.29.18\"==r?a=this.getExtIssuerAltName(o,i):\"2.5.29.19\"==r?a=this.getExtBasicConstraints(o,i):\"2.5.29.31\"==r?a=this.getExtCRLDistributionPoints(o,i):\"2.5.29.32\"==r?a=this.getExtCertificatePolicies(o,i):\"2.5.29.35\"==r?a=this.getExtAuthorityKeyIdentifier(o,i):\"2.5.29.37\"==r?a=this.getExtExtKeyUsage(o,i):\"1.3.6.1.5.5.7.1.1\"==r?a=this.getExtAuthorityInfoAccess(o,i):\"2.5.29.20\"==r?a=this.getExtCRLNumber(o,i):\"2.5.29.21\"==r?a=this.getExtCRLReason(o,i):\"1.3.6.1.5.5.7.48.1.2\"==r?a=this.getExtOcspNonce(o,i):\"1.3.6.1.5.5.7.48.1.5\"==r?a=this.getExtOcspNoCheck(o,i):\"1.2.840.113583.1.1.9.1\"==r&&(a=this.getExtAdobeTimeStamp(o,i)),null!=a)return a;var c={extname:r,extn:o};return i&&(c.critical=!0),c},this.findExt=function(e,t){for(var r=0;r<e.length;r++)if(e[r].extname==t)return e[r];return null},this.updateExtCDPFullURI=function(e,t){var r=this.findExt(e,\"cRLDistributionPoints\");if(null!=r&&null!=r.array)for(var n=r.array,i=0;i<n.length;i++)if(null!=n[i].dpname&&null!=n[i].dpname.full)for(var o=n[i].dpname.full,s=0;s<o.length;s++){var a=o[i];null!=a.uri&&(a.uri=t)}},this.updateExtAIAOCSP=function(e,t){var r=this.findExt(e,\"authorityInfoAccess\");if(null!=r&&null!=r.array)for(var n=r.array,i=0;i<n.length;i++)null!=n[i].ocsp&&(n[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var r=this.findExt(e,\"authorityInfoAccess\");if(null!=r&&null!=r.array)for(var n=r.array,i=0;i<n.length;i++)null!=n[i].caissuer&&(n[i].caissuer=t)},this.dnarraytostr=function(e){return\"/\"+e.map((function(e){return function(e){return e.map((function(e){return function(e){return e.type+\"=\"+e.value}(e)})).join(\"+\")}(e)})).join(\"/\")},this.getInfo=function(){var e,t,r,n=function(e){return JSON.stringify(e.array).replace(/[\\[\\]\\{\\}\\\"]/g,\"\")},i=function(e){for(var t=\"\",r=e.array,n=0;n<r.length;n++){var i=r[n];if(t+=\" policy oid: \"+i.policyoid+\"\\n\",void 0!==i.array)for(var o=0;o<i.array.length;o++){var s=i.array[o];void 0!==s.cps&&(t+=\" cps: \"+s.cps+\"\\n\")}}return t},o=function(e){for(var t=\"\",r=e.array,n=0;n<r.length;n++){var i=r[n];try{void 0!==i.dpname.full[0].uri&&(t+=\" \"+i.dpname.full[0].uri+\"\\n\")}catch(e){}try{void 0!==i.dname.full[0].dn.hex&&(t+=\" \"+We.hex2dn(i.dpname.full[0].dn.hex)+\"\\n\")}catch(e){}}return t},s=function(e){for(var t=\"\",r=e.array,n=0;n<r.length;n++){var i=r[n];void 0!==i.caissuer&&(t+=\" caissuer: \"+i.caissuer+\"\\n\"),void 0!==i.ocsp&&(t+=\" ocsp: \"+i.ocsp+\"\\n\")}return t};if(e=\"Basic Fields\\n\",e+=\" serial number: \"+this.getSerialNumberHex()+\"\\n\",e+=\" signature algorithm: \"+this.getSignatureAlgorithmField()+\"\\n\",e+=\" issuer: \"+this.getIssuerString()+\"\\n\",e+=\" notBefore: \"+this.getNotBefore()+\"\\n\",e+=\" notAfter: \"+this.getNotAfter()+\"\\n\",e+=\" subject: \"+this.getSubjectString()+\"\\n\",e+=\" subject public key info: \\n\",e+=\" key algorithm: \"+(t=this.getPublicKey()).type+\"\\n\",\"RSA\"===t.type&&(e+=\" n=\"+Ue(t.n.toString(16)).substr(0,16)+\"...\\n\",e+=\" e=\"+Ue(t.e.toString(16))+\"\\n\"),null!=(r=this.aExtInfo)){e+=\"X509v3 Extensions:\\n\";for(var a=0;a<r.length;a++){var u=r[a],c=ce.asn1.x509.OID.oid2name(u.oid);\"\"===c&&(c=u.oid);var l=\"\";if(!0===u.critical&&(l=\"CRITICAL\"),e+=\" \"+c+\" \"+l+\":\\n\",\"basicConstraints\"===c){var h=this.getExtBasicConstraints();void 0===h.cA?e+=\" {}\\n\":(e+=\" cA=true\",void 0!==h.pathLen&&(e+=\", pathLen=\"+h.pathLen),e+=\"\\n\")}else if(\"keyUsage\"===c)e+=\" \"+this.getExtKeyUsageString()+\"\\n\";else if(\"subjectKeyIdentifier\"===c)e+=\" \"+this.getExtSubjectKeyIdentifier().kid.hex+\"\\n\";else if(\"authorityKeyIdentifier\"===c){var f=this.getExtAuthorityKeyIdentifier();void 0!==f.kid&&(e+=\" kid=\"+f.kid.hex+\"\\n\")}else\"extKeyUsage\"===c?e+=\" \"+this.getExtExtKeyUsage().array.join(\", \")+\"\\n\":\"subjectAltName\"===c?e+=\" \"+n(this.getExtSubjectAltName())+\"\\n\":\"cRLDistributionPoints\"===c?e+=o(this.getExtCRLDistributionPoints()):\"authorityInfoAccess\"===c?e+=s(this.getExtAuthorityInfoAccess()):\"certificatePolicies\"===c&&(e+=i(this.getExtCertificatePolicies()))}}return(e+=\"signature algorithm: \"+this.getSignatureAlgorithmName()+\"\\n\")+\"signature: \"+this.getSignatureValueHex().substr(0,16)+\"...\\n\"},\"string\"==typeof e&&(-1!=e.indexOf(\"-----BEGIN\")?this.readCertPEM(e):ce.lang.String.isHex(e)&&this.readCertHex(e))}ie.prototype.sign=function(e,t){var r=function(e){return ce.crypto.Util.hashString(e,t)}(e);return this.signWithMessageHash(r,t)},ie.prototype.signWithMessageHash=function(e,t){var r=re(ce.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),16);return Ke(this.doPrivate(r).toString(16),this.n.bitLength())},ie.prototype.signPSS=function(e,t,r){var n=function(e){return ce.crypto.Util.hashHex(e,t)}(Ee(e));return void 0===r&&(r=-1),this.signWithMessageHashPSS(n,t,r)},ie.prototype.signWithMessageHashPSS=function(e,t,r){var n,i=Fe(e),o=i.length,s=this.n.bitLength()-1,a=Math.ceil(s/8),u=function(e){return ce.crypto.Util.hashHex(e,t)};if(-1===r||void 0===r)r=o;else if(-2===r)r=a-o-2;else if(r<-2)throw new Error(\"invalid salt length\");if(a<o+r+2)throw new Error(\"data too long\");var c=\"\";r>0&&(c=new Array(r),(new te).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=Fe(u(Ee(\"\\0\\0\\0\\0\\0\\0\\0\\0\"+i+c))),h=[];for(n=0;n<a-r-o-2;n+=1)h[n]=0;var f=String.fromCharCode.apply(String,h)+\"\u0001\"+c,g=qe(l,f.length,u),p=[];for(n=0;n<f.length;n+=1)p[n]=f.charCodeAt(n)^g.charCodeAt(n);var d=65280>>8*a-s&255;for(p[0]&=~d,n=0;n<o;n++)p.push(l.charCodeAt(n));return p.push(188),Ke(this.doPrivate(new F(p)).toString(16),this.n.bitLength())},ie.prototype.verify=function(e,t){var r=re(t=(t=t.replace(Ve,\"\")).replace(/[ \\n]+/g,\"\"),16);if(r.bitLength()>this.n.bitLength())return 0;var n=Je(this.doPublic(r).toString(16).replace(/^1f+00/,\"\"));if(0==n.length)return!1;var i=n[0];return n[1]==function(e){return ce.crypto.Util.hashString(e,i)}(e)},ie.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=re(t,16);if(r.bitLength()>this.n.bitLength())return 0;var n=Je(this.doPublic(r).toString(16).replace(/^1f+00/,\"\"));return 0!=n.length&&(n[0],n[1]==e)},ie.prototype.verifyPSS=function(e,t,r,n){var i=function(e){return ce.crypto.Util.hashHex(e,r)}(Ee(e));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(i,t,r,n)},ie.prototype.verifyWithMessageHashPSS=function(e,t,r,n){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new F(t,16),s=function(e){return ce.crypto.Util.hashHex(e,r)},a=Fe(e),u=a.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw new Error(\"invalid salt length\");if(l<u+n+2)throw new Error(\"data too long\");var h=this.doPublic(o).toByteArray();for(i=0;i<h.length;i+=1)h[i]&=255;for(;h.length<l;)h.unshift(0);if(188!==h[l-1])throw new Error(\"encoded message does not end in 0xbc\");var f=(h=String.fromCharCode.apply(String,h)).substr(0,l-u-1),g=h.substr(f.length,u),p=65280>>8*l-c&255;if(f.charCodeAt(0)&p)throw new Error(\"bits beyond keysize not zero\");var d=qe(g,f.length,s),v=[];for(i=0;i<f.length;i+=1)v[i]=f.charCodeAt(i)^d.charCodeAt(i);v[0]&=~p;var y=l-u-n-2;for(i=0;i<y;i+=1)if(0!==v[i])throw new Error(\"leftmost octets not zero\");if(1!==v[y])throw new Error(\"0x01 marker not found\");return g===Fe(s(Ee(\"\\0\\0\\0\\0\\0\\0\\0\\0\"+a+String.fromCharCode.apply(String,v.slice(-n)))))},ie.SALT_LEN_HLEN=-1,ie.SALT_LEN_MAX=-2,ie.SALT_LEN_RECOVER=-2,We.hex2dn=function(e,t){if(void 0===t&&(t=0),\"30\"!==e.substr(t,2))throw new Error(\"malformed DN\");for(var r=new Array,n=fe.getChildIdx(e,t),i=0;i<n.length;i++)r.push(We.hex2rdn(e,n[i]));return\"/\"+(r=r.map((function(e){return e.replace(\"/\",\"\\\\/\")}))).join(\"/\")},We.hex2rdn=function(e,t){if(void 0===t&&(t=0),\"31\"!==e.substr(t,2))throw new Error(\"malformed RDN\");for(var r=new Array,n=fe.getChildIdx(e,t),i=0;i<n.length;i++)r.push(We.hex2attrTypeValue(e,n[i]));return(r=r.map((function(e){return e.replace(\"+\",\"\\\\+\")}))).join(\"+\")},We.hex2attrTypeValue=function(e,t){var r=fe,n=r.getV;if(void 0===t&&(t=0),\"30\"!==e.substr(t,2))throw new Error(\"malformed attribute type and value\");var i=r.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var o=n(e,i[0]),s=ce.asn1.ASN1Util.oidHexToInt(o);return ce.asn1.x509.OID.oid2atype(s)+\"=\"+Fe(n(e,i[1]))},We.getPublicKeyFromCertHex=function(e){var t=new We;return t.readCertHex(e),t.getPublicKey()},We.getPublicKeyFromCertPEM=function(e){var t=new We;return t.readCertPEM(e),t.getPublicKey()},We.getPublicKeyInfoPropOfCertPEM=function(e){var t,r,n=fe.getVbyList,i={algparam:null};return(t=new We).readCertPEM(e),r=t.getPublicKeyHex(),i.keyhex=n(r,0,[1],\"03\").substr(2),i.algoid=n(r,0,[0,0],\"06\"),\"2a8648ce3d0201\"===i.algoid&&(i.algparam=n(r,0,[0,1],\"06\")),i},We.KEYUSAGE_NAME=[\"digitalSignature\",\"nonRepudiation\",\"keyEncipherment\",\"dataEncipherment\",\"keyAgreement\",\"keyCertSign\",\"cRLSign\",\"encipherOnly\",\"decipherOnly\"],void 0!==ce&&ce||(t.KJUR=ce={}),void 0!==ce.jws&&ce.jws||(ce.jws={}),ce.jws.JWS=function(){var e=ce.jws.JWS.isSafeJSONString;this.parseJWS=function(t,r){if(void 0===this.parsedJWS||!r&&void 0===this.parsedJWS.sigvalH){var n=t.match(/^([^.]+)\\.([^.]+)\\.([^.]+)$/);if(null==n)throw\"JWS signature is not a form of 'Head.Payload.SigValue'.\";var i=n[1],o=n[2],s=n[3],a=i+\".\"+o;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=o,this.parsedJWS.sigvalB64U=s,this.parsedJWS.si=a,!r){var u=be(s),c=re(u,16);this.parsedJWS.sigvalH=u,this.parsedJWS.sigvalBI=c}var l=he(i),h=he(o);if(this.parsedJWS.headS=l,this.parsedJWS.payloadS=h,!e(l,this.parsedJWS,\"headP\"))throw\"malformed JSON string for JWS Head: \"+l}}},ce.jws.JWS.sign=function(e,t,n,i,o){var s,a,u,c=ce,l=c.jws.JWS,h=l.readSafeJSONString,f=l.isSafeJSONString,g=c.crypto,p=(g.ECDSA,g.Mac),d=g.Signature,v=JSON;if(\"string\"!=typeof t&&\"object\"!=(void 0===t?\"undefined\":r(t)))throw\"spHeader must be JSON string or object: \"+t;if(\"object\"==(void 0===t?\"undefined\":r(t))&&(a=t,s=v.stringify(a)),\"string\"==typeof t){if(!f(s=t))throw\"JWS Head is not safe JSON string: \"+s;a=h(s)}if(u=n,\"object\"==(void 0===n?\"undefined\":r(n))&&(u=v.stringify(n)),\"\"!=e&&null!=e||void 0===a.alg||(e=a.alg),\"\"!=e&&null!=e&&void 0===a.alg&&(a.alg=e,s=v.stringify(a)),e!==a.alg)throw\"alg and sHeader.alg doesn't match: \"+e+\"!=\"+a.alg;var y=null;if(void 0===l.jwsalg2sigalg[e])throw\"unsupported alg name: \"+e;y=l.jwsalg2sigalg[e];var m=le(s)+\".\"+le(u),_=\"\";if(\"Hmac\"==y.substr(0,4)){if(void 0===i)throw\"mac key shall be specified for HS* alg\";var b=new p({alg:y,prov:\"cryptojs\",pass:i});b.updateString(m),_=b.doFinal()}else if(-1!=y.indexOf(\"withECDSA\")){(S=new d({alg:y})).init(i,o),S.updateString(m);var w=S.sign();_=ce.crypto.ECDSA.asn1SigToConcatSig(w)}else{var S;\"none\"!=y&&((S=new d({alg:y})).init(i,o),S.updateString(m),_=S.sign())}return m+\".\"+_e(_)},ce.jws.JWS.verify=function(e,t,n){var i,o=ce,s=o.jws.JWS,a=s.readSafeJSONString,u=o.crypto,c=u.ECDSA,l=u.Mac,h=u.Signature;void 0!==r(ie)&&(i=ie);var f=e.split(\".\");if(3!==f.length)return!1;var g,p=f[0]+\".\"+f[1],d=be(f[2]),v=a(he(f[0])),y=null;if(void 0===v.alg)throw\"algorithm not specified in header\";if(g=(y=v.alg).substr(0,2),null!=n&&\"[object Array]\"===Object.prototype.toString.call(n)&&n.length>0&&-1==(\":\"+n.join(\":\")+\":\").indexOf(\":\"+y+\":\"))throw\"algorithm '\"+y+\"' not accepted in the list\";if(\"none\"!=y&&null===t)throw\"key shall be specified to verify.\";if(\"string\"==typeof t&&-1!=t.indexOf(\"-----BEGIN \")&&(t=He.getKey(t)),!(\"RS\"!=g&&\"PS\"!=g||t instanceof i))throw\"key shall be a RSAKey obj for RS* and PS* algs\";if(\"ES\"==g&&!(t instanceof c))throw\"key shall be a ECDSA obj for ES* algs\";var m=null;if(void 0===s.jwsalg2sigalg[v.alg])throw\"unsupported alg name: \"+y;if(\"none\"==(m=s.jwsalg2sigalg[y]))throw\"not supported\";if(\"Hmac\"==m.substr(0,4)){if(void 0===t)throw\"hexadecimal key shall be specified for HMAC\";var _=new l({alg:m,pass:t});return _.updateString(p),d==_.doFinal()}if(-1!=m.indexOf(\"withECDSA\")){var b,w=null;try{w=c.concatSigToASN1Sig(d)}catch(e){return!1}return(b=new h({alg:m})).init(t),b.updateString(p),b.verify(w)}return(b=new h({alg:m})).init(t),b.updateString(p),b.verify(d)},ce.jws.JWS.parse=function(e){var t,r,n,i=e.split(\".\"),o={};if(2!=i.length&&3!=i.length)throw\"malformed sJWS: wrong number of '.' splitted elements\";return t=i[0],r=i[1],3==i.length&&(n=i[2]),o.headerObj=ce.jws.JWS.readSafeJSONString(he(t)),o.payloadObj=ce.jws.JWS.readSafeJSONString(he(r)),o.headerPP=JSON.stringify(o.headerObj,null,\" \"),null==o.payloadObj?o.payloadPP=he(r):o.payloadPP=JSON.stringify(o.payloadObj,null,\" \"),void 0!==n&&(o.sigHex=be(n)),o},ce.jws.JWS.verifyJWT=function(e,t,n){var i=ce.jws,o=i.JWS,s=o.readSafeJSONString,a=o.inArray,u=o.includedArray,c=e.split(\".\"),l=c[0],h=c[1],f=(be(c[2]),s(he(l))),g=s(he(h));if(void 0===f.alg)return!1;if(void 0===n.alg)throw\"acceptField.alg shall be specified\";if(!a(f.alg,n.alg))return!1;if(void 0!==g.iss&&\"object\"===r(n.iss)&&!a(g.iss,n.iss))return!1;if(void 0!==g.sub&&\"object\"===r(n.sub)&&!a(g.sub,n.sub))return!1;if(void 0!==g.aud&&\"object\"===r(n.aud))if(\"string\"==typeof g.aud){if(!a(g.aud,n.aud))return!1}else if(\"object\"==r(g.aud)&&!u(g.aud,n.aud))return!1;var p=i.IntDate.getNow();return void 0!==n.verifyAt&&\"number\"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&\"number\"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==g.exp&&\"number\"==typeof g.exp&&g.exp+n.gracePeriod<p||void 0!==g.nbf&&\"number\"==typeof g.nbf&&p<g.nbf-n.gracePeriod||void 0!==g.iat&&\"number\"==typeof g.iat&&p<g.iat-n.gracePeriod||void 0!==g.jti&&void 0!==n.jti&&g.jti!==n.jti||!o.verify(e,t,n.alg))},ce.jws.JWS.includedArray=function(e,t){var n=ce.jws.JWS.inArray;if(null===e)return!1;if(\"object\"!==(void 0===e?\"undefined\":r(e)))return!1;if(\"number\"!=typeof e.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t))return!1;return!0},ce.jws.JWS.inArray=function(e,t){if(null===t)return!1;if(\"object\"!==(void 0===t?\"undefined\":r(t)))return!1;if(\"number\"!=typeof t.length)return!1;for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1},ce.jws.JWS.jwsalg2sigalg={HS256:\"HmacSHA256\",HS384:\"HmacSHA384\",HS512:\"HmacSHA512\",RS256:\"SHA256withRSA\",RS384:\"SHA384withRSA\",RS512:\"SHA512withRSA\",ES256:\"SHA256withECDSA\",ES384:\"SHA384withECDSA\",PS256:\"SHA256withRSAandMGF1\",PS384:\"SHA384withRSAandMGF1\",PS512:\"SHA512withRSAandMGF1\",none:\"none\"},ce.jws.JWS.isSafeJSONString=function(e,t,n){var i=null;try{return\"object\"!=(void 0===(i=ue(e))?\"undefined\":r(i))||i.constructor===Array?0:(t&&(t[n]=i),1)}catch(e){return 0}},ce.jws.JWS.readSafeJSONString=function(e){var t=null;try{return\"object\"!=(void 0===(t=ue(e))?\"undefined\":r(t))||t.constructor===Array?null:t}catch(e){return null}},ce.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\\.[^.]+\\.([^.]+)$/);if(null==t)throw\"JWS signature is not a form of 'Head.Payload.SigValue'.\";return t[1]},ce.jws.JWS.getJWKthumbprint=function(e){if(\"RSA\"!==e.kty&&\"EC\"!==e.kty&&\"oct\"!==e.kty)throw\"unsupported algorithm for JWK Thumprint\";var t=\"{\";if(\"RSA\"===e.kty){if(\"string\"!=typeof e.n||\"string\"!=typeof e.e)throw\"wrong n and e value for RSA key\";t+='\"e\":\"'+e.e+'\",',t+='\"kty\":\"'+e.kty+'\",',t+='\"n\":\"'+e.n+'\"}'}else if(\"EC\"===e.kty){if(\"string\"!=typeof e.crv||\"string\"!=typeof e.x||\"string\"!=typeof e.y)throw\"wrong crv, x and y value for EC key\";t+='\"crv\":\"'+e.crv+'\",',t+='\"kty\":\"'+e.kty+'\",',t+='\"x\":\"'+e.x+'\",',t+='\"y\":\"'+e.y+'\"}'}else if(\"oct\"===e.kty){if(\"string\"!=typeof e.k)throw\"wrong k value for oct(symmetric) key\";t+='\"kty\":\"'+e.kty+'\",',t+='\"k\":\"'+e.k+'\"}'}var r=Ee(t);return _e(ce.crypto.Util.hashHex(r,\"sha256\"))},ce.jws.IntDate={},ce.jws.IntDate.get=function(e){var t=ce.jws.IntDate,r=t.getNow,n=t.getZulu;if(\"now\"==e)return r();if(\"now + 1hour\"==e)return r()+3600;if(\"now + 1day\"==e)return r()+86400;if(\"now + 1month\"==e)return r()+2592e3;if(\"now + 1year\"==e)return r()+31536e3;if(e.match(/Z$/))return n(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw\"unsupported format: \"+e},ce.jws.IntDate.getZulu=function(e){return Te(e)},ce.jws.IntDate.getNow=function(){return~~(new Date/1e3)},ce.jws.IntDate.intDate2UTCString=function(e){return new Date(1e3*e).toUTCString()},ce.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e);return(\"0000\"+t.getUTCFullYear()).slice(-4)+(\"00\"+(t.getUTCMonth()+1)).slice(-2)+(\"00\"+t.getUTCDate()).slice(-2)+(\"00\"+t.getUTCHours()).slice(-2)+(\"00\"+t.getUTCMinutes()).slice(-2)+(\"00\"+t.getUTCSeconds()).slice(-2)+\"Z\"},t.SecureRandom=te,t.rng_seed_time=z,t.BigInteger=F,t.RSAKey=ie;var Ge=ce.crypto.EDSA;t.EDSA=Ge;var Ye=ce.crypto.DSA;t.DSA=Ye;var ze=ce.crypto.Signature;t.Signature=ze;var $e=ce.crypto.MessageDigest;t.MessageDigest=$e;var Xe=ce.crypto.Mac;t.Mac=Xe;var Qe=ce.crypto.Cipher;t.Cipher=Qe,t.KEYUTIL=He,t.ASN1HEX=fe,t.X509=We,t.CryptoJS=y,t.b64tohex=w,t.b64toBA=S,t.stoBA=ge,t.BAtos=pe,t.BAtohex=de,t.stohex=ve,t.stob64=function(e){return b(ve(e))},t.stob64u=function(e){return ye(b(ve(e)))},t.b64utos=function(e){return pe(S(me(e)))},t.b64tob64u=ye,t.b64utob64=me,t.hex2b64=b,t.hextob64u=_e,t.b64utohex=be,t.utf8tob64u=le,t.b64utoutf8=he,t.utf8tob64=function(e){return b(Re(Me(e)))},t.b64toutf8=function(e){return decodeURIComponent(Oe(w(e)))},t.utf8tohex=we,t.hextoutf8=Se,t.hextorstr=Fe,t.rstrtohex=Ee,t.hextob64=xe,t.hextob64nl=Ce,t.b64nltohex=Ae,t.hextopem=ke,t.pemtohex=Le,t.hextoArrayBuffer=function(e){if(e.length%2!=0)throw\"input is not even length\";if(null==e.match(/^[0-9A-Fa-f]+$/))throw\"input is not hexadecimal\";for(var t=new ArrayBuffer(e.length/2),r=new DataView(t),n=0;n<e.length/2;n++)r.setUint8(n,parseInt(e.substr(2*n,2),16));return t},t.ArrayBuffertohex=function(e){for(var t=\"\",r=new DataView(e),n=0;n<e.byteLength;n++)t+=(\"00\"+r.getUint8(n).toString(16)).slice(-2);return t},t.zulutomsec=Pe,t.zulutosec=Te,t.zulutodate=function(e){return new Date(Pe(e))},t.datetozulu=function(e,t,r){var n,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw\"not proper year for UTCTime: \"+i;n=(\"\"+i).slice(-2)}else n=(\"000\"+i).slice(-4);if(n+=(\"0\"+(e.getUTCMonth()+1)).slice(-2),n+=(\"0\"+e.getUTCDate()).slice(-2),n+=(\"0\"+e.getUTCHours()).slice(-2),n+=(\"0\"+e.getUTCMinutes()).slice(-2),n+=(\"0\"+e.getUTCSeconds()).slice(-2),r){var o=e.getUTCMilliseconds();0!==o&&(n+=\".\"+(o=(o=(\"00\"+o).slice(-3)).replace(/0+$/g,\"\")))}return n+\"Z\"},t.uricmptohex=Re,t.hextouricmp=Oe,t.ipv6tohex=Ie,t.hextoipv6=Ne,t.hextoip=je,t.iptohex=function(e){var t=\"malformed IP address\";if(!(e=e.toLowerCase(e)).match(/^[0-9.]+$/)){if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(\":\"))return Ie(e);throw t}var r=e.split(\".\");if(4!==r.length)throw t;var n=\"\";try{for(var i=0;i<4;i++)n+=(\"0\"+parseInt(r[i]).toString(16)).slice(-2);return n}catch(e){throw t}},t.encodeURIComponentAll=Me,t.newline_toUnix=function(e){return e.replace(/\\r\\n/gm,\"\\n\")},t.newline_toDos=function(e){return(e=e.replace(/\\r\\n/gm,\"\\n\")).replace(/\\n/gm,\"\\r\\n\")},t.hextoposhex=Ue,t.intarystrtohex=function(e){e=(e=(e=e.replace(/^\\s*\\[\\s*/,\"\")).replace(/\\s*\\]\\s*$/,\"\")).replace(/\\s*/g,\"\");try{return e.split(/,/).map((function(e,t,r){var n=parseInt(e);if(n<0||255<n)throw\"integer not in range 0-255\";return(\"00\"+n.toString(16)).slice(-2)})).join(\"\")}catch(e){throw\"malformed integer array string: \"+e}},t.strdiffidx=function(e,t){var r=e.length;e.length>t.length&&(r=t.length);for(var n=0;n<r;n++)if(e.charCodeAt(n)!=t.charCodeAt(n))return n;return e.length!=t.length?r:-1},t.KJUR=ce;var Ze=ce.crypto;t.crypto=Ze;var et=ce.asn1;t.asn1=et;var tt=ce.jws;t.jws=tt;var rt=ce.lang;t.lang=rt}).call(this,r(28).Buffer)},function(e,t,r){(function(e){var n=r(30),i=r(31),o=r(32);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError(\"Invalid typed array length\");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if(\"number\"==typeof e){if(\"string\"==typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return h(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if(\"number\"==typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t),e}(e,t,r,n):\"string\"==typeof t?function(e,t,r){if(\"string\"==typeof r&&\"\"!==r||(r=\"utf8\"),!u.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|p(t,r),i=(e=a(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|g(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if(\"undefined\"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!=typeof t.length||function(e){return e!=e}(t.length)?a(e,0):f(e,t);if(\"Buffer\"===t.type&&o(t.data))return f(e,t.data)}throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}(e,t)}function l(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function h(e,t){if(l(t),e=a(e,t<0?0:0|g(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|g(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function g(e){if(e>=s())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s().toString(16)+\" bytes\");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if(\"undefined\"!=typeof ArrayBuffer&&\"function\"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!=typeof e&&(e=\"\"+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return H(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return V(e).length;default:if(n)return H(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if((r>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return P(this,t,r);case\"utf8\":case\"utf-8\":return C(this,t,r);case\"ascii\":return k(this,t,r);case\"latin1\":case\"binary\":return L(this,t,r);case\"base64\":return x(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return T(this,t,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if(\"string\"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if(\"number\"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function m(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&(\"ucs2\"===(n=String(n).toLowerCase())||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){h=!1;break}if(h)return o}return-1}function _(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return K(H(t,e.length-r),e,r,n)}function w(e,t,r,n){return K(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return w(e,t,r,n)}function F(e,t,r,n){return K(V(t),e,r,n)}function E(e,t,r,n){return K(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,c=e[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var r=\"\",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=A));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?\"string\"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?C(this,0,e):d.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e=\"\",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(n,i),l=e.slice(t,r),h=0;h<a;++h)if(c[h]!==l[h]){o=c[h],s=l[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var o=!1;;)switch(n){case\"hex\":return _(this,e,t,r);case\"utf8\":case\"utf-8\":return b(this,e,t,r);case\"ascii\":return w(this,e,t,r);case\"latin1\":case\"binary\":return S(this,e,t,r);case\"base64\":return F(this,e,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return E(this,e,t,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function k(e,t,r){var n=\"\";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function L(e,t,r){var n=\"\";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",o=t;o<r;++o)i+=B(e[o]);return i}function T(e,t,r){for(var n=e.slice(t,r),i=\"\",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>r)throw new RangeError(\"Trying to access beyond buffer length\")}function O(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>e.length)throw new RangeError(\"Index out of range\")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function M(e,t,r,n,o){return o||j(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return o||j(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(r<0||r>=this.length)throw new RangeError(\"sourceStart out of bounds\");if(n<0)throw new RangeError(\"sourceEnd out of bounds\");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if(\"string\"==typeof e){if(\"string\"==typeof t?(n=t,t=0,r=this.length):\"string\"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&\"string\"!=typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof n&&!u.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),\"number\"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=u.isBuffer(e)?e:H(new u(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var U=/[^+\\/0-9A-Za-z-_]/g;function B(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}(e).replace(U,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function K(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(29))},function(e,t){var r;r=function(){return this}();try{r=r||new Function(\"return this\")()}catch(e){\"object\"==typeof window&&(r=window)}e.exports=r},function(e,t,r){t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),s=n[0],a=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,u=r-i;a<u;a+=s)o.push(c(e,a,a+s>u?u:a+s));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+\"==\")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+\"=\")),o.join(\"\")};for(var n=[],i=[],o=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0;a<64;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,g=e[t+h];for(h+=f,o=g&(1<<-l)-1,g>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(g?-1:1);s+=Math.pow(2,n),o-=c}return(g?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,p=n?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+g]=255&a,g+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+g]=255&s,g+=p,s/=256,c-=8);e[r+g-p]|=128*d}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==r.call(e)}},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=e.jws,r=e.KeyUtil,i=e.X509,o=e.crypto,s=e.hextob64u,a=e.b64tohex,u=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.parseJwt=function e(r){n.Log.debug(\"JoseUtil.parseJwt\");try{var i=t.JWS.parse(r);return{header:i.headerObj,payload:i.payloadObj}}catch(e){n.Log.error(e)}},e.validateJwt=function(t,o,s,u,c,l,h){n.Log.debug(\"JoseUtil.validateJwt\");try{if(\"RSA\"===o.kty)if(o.e&&o.n)o=r.getKey(o);else{if(!o.x5c||!o.x5c.length)return n.Log.error(\"JoseUtil.validateJwt: RSA key missing key material\",o),Promise.reject(new Error(\"RSA key missing key material\"));var f=a(o.x5c[0]);o=i.getPublicKeyFromCertHex(f)}else{if(\"EC\"!==o.kty)return n.Log.error(\"JoseUtil.validateJwt: Unsupported key type\",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return n.Log.error(\"JoseUtil.validateJwt: EC key missing key material\",o),Promise.reject(new Error(\"EC key missing key material\"));o=r.getKey(o)}return e._validateJwt(t,o,s,u,c,l,h)}catch(e){return n.Log.error(e&&e.message||e),Promise.reject(\"JWT validation failed\")}},e.validateJwtAttributes=function(t,r,i,o,s,a){o||(o=0),s||(s=parseInt(Date.now()/1e3));var u=e.parseJwt(t).payload;if(!u.iss)return n.Log.error(\"JoseUtil._validateJwt: issuer was not provided\"),Promise.reject(new Error(\"issuer was not provided\"));if(u.iss!==r)return n.Log.error(\"JoseUtil._validateJwt: Invalid issuer in token\",u.iss),Promise.reject(new Error(\"Invalid issuer in token: \"+u.iss));if(!u.aud)return n.Log.error(\"JoseUtil._validateJwt: aud was not provided\"),Promise.reject(new Error(\"aud was not provided\"));if(!(u.aud===i||Array.isArray(u.aud)&&u.aud.indexOf(i)>=0))return n.Log.error(\"JoseUtil._validateJwt: Invalid audience in token\",u.aud),Promise.reject(new Error(\"Invalid audience in token: \"+u.aud));if(u.azp&&u.azp!==i)return n.Log.error(\"JoseUtil._validateJwt: Invalid azp in token\",u.azp),Promise.reject(new Error(\"Invalid azp in token: \"+u.azp));if(!a){var c=s+o,l=s-o;if(!u.iat)return n.Log.error(\"JoseUtil._validateJwt: iat was not provided\"),Promise.reject(new Error(\"iat was not provided\"));if(c<u.iat)return n.Log.error(\"JoseUtil._validateJwt: iat is in the future\",u.iat),Promise.reject(new Error(\"iat is in the future: \"+u.iat));if(u.nbf&&c<u.nbf)return n.Log.error(\"JoseUtil._validateJwt: nbf is in the future\",u.nbf),Promise.reject(new Error(\"nbf is in the future: \"+u.nbf));if(!u.exp)return n.Log.error(\"JoseUtil._validateJwt: exp was not provided\"),Promise.reject(new Error(\"exp was not provided\"));if(u.exp<l)return n.Log.error(\"JoseUtil._validateJwt: exp is in the past\",u.exp),Promise.reject(new Error(\"exp is in the past:\"+u.exp))}return Promise.resolve(u)},e._validateJwt=function(r,i,o,s,a,c,l){return e.validateJwtAttributes(r,o,s,a,c,l).then((function(e){try{return t.JWS.verify(r,i,u)?e:(n.Log.error(\"JoseUtil._validateJwt: signature validation failed\"),Promise.reject(new Error(\"signature validation failed\")))}catch(e){return n.Log.error(e&&e.message||e),Promise.reject(new Error(\"signature validation failed\"))}}))},e.hashString=function e(t,r){try{return o.Util.hashString(t,r)}catch(e){n.Log.error(e)}},e.hexToBase64Url=function e(t){try{return s(t)}catch(e){n.Log.error(e)}},e}()};var n=r(0);e.exports=t.default},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SigninResponse=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(3);t.SigninResponse=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"#\";!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var n=i.UrlUtility.parseUrlFragment(t,r);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(e,[{key:\"expires_in\",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if(\"number\"==typeof t&&t>0){var r=parseInt(Date.now()/1e3);this.expires_at=r+t}}},{key:\"expired\",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:\"scopes\",get:function(){return(this.scope||\"\").split(\" \")}},{key:\"isOpenIdConnect\",get:function(){return this.scopes.indexOf(\"openid\")>=0||!!this.id_token}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SignoutRequest=void 0;var n=r(0),i=r(3),o=r(9);t.SignoutRequest=function e(t){var r=t.url,s=t.id_token_hint,a=t.post_logout_redirect_uri,u=t.data,c=t.extraQueryParams,l=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),!r)throw n.Log.error(\"SignoutRequest.ctor: No url passed\"),new Error(\"url\");for(var h in s&&(r=i.UrlUtility.addQueryParam(r,\"id_token_hint\",s)),a&&(r=i.UrlUtility.addQueryParam(r,\"post_logout_redirect_uri\",a),u&&(this.state=new o.State({data:u,request_type:l}),r=i.UrlUtility.addQueryParam(r,\"state\",this.state.id))),c)r=i.UrlUtility.addQueryParam(r,h,c[h]);this.url=r}},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SignoutResponse=void 0;var n=r(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e);var r=n.UrlUtility.parseUrlFragment(t,\"?\");this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.state=r.state}},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.InMemoryWebStorage=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);t.InMemoryWebStorage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._data={}}return e.prototype.getItem=function(e){return i.Log.debug(\"InMemoryWebStorage.getItem\",e),this._data[e]},e.prototype.setItem=function(e,t){i.Log.debug(\"InMemoryWebStorage.setItem\",e),this._data[e]=t},e.prototype.removeItem=function(e){i.Log.debug(\"InMemoryWebStorage.removeItem\",e),delete this._data[e]},e.prototype.key=function(e){return Object.getOwnPropertyNames(this._data)[e]},n(e,[{key:\"length\",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.UserManager=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(10),s=r(39),a=r(15),u=r(45),c=r(47),l=r(18),h=r(8),f=r(20),g=r(11),p=r(4);t.UserManager=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.TokenRevocationClient,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:g.TokenClient,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")})(this,t),r instanceof s.UserManagerSettings||(r=new s.UserManagerSettings(r));var v=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,e.call(this,r));return v._events=new u.UserManagerEvents(r),v._silentRenewService=new n(v),v.settings.automaticSilentRenew&&(i.Log.debug(\"UserManager.ctor: automaticSilentRenew is configured, setting up silent renew\"),v.startSilentRenew()),v.settings.monitorSession&&(i.Log.debug(\"UserManager.ctor: monitorSession is configured, setting up session monitor\"),v._sessionMonitor=new o(v)),v._tokenRevocationClient=new a(v._settings),v._tokenClient=new h(v._settings),v._joseUtil=d,v}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then((function(t){return t?(i.Log.info(\"UserManager.getUser: user loaded\"),e._events.load(t,!1),t):(i.Log.info(\"UserManager.getUser: user not found in storage\"),null)}))},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then((function(){i.Log.info(\"UserManager.removeUser: user removed from storage\"),e._events.unload()}))},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type=\"si:r\";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then((function(){i.Log.info(\"UserManager.signinRedirect: successful\")}))},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then((function(e){return e.profile&&e.profile.sub?i.Log.info(\"UserManager.signinRedirectCallback: successful, signed in sub: \",e.profile.sub):i.Log.info(\"UserManager.signinRedirectCallback: no sub\"),e}))},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type=\"si:p\";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display=\"popup\",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info(\"UserManager.signinPopup: signinPopup successful, signed in sub: \",e.profile.sub):i.Log.info(\"UserManager.signinPopup: no sub\")),e}))):(i.Log.error(\"UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured\"),Promise.reject(new Error(\"No popup_redirect_uri or redirect_uri configured\")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info(\"UserManager.signinPopupCallback: successful, signed in sub: \",e.profile.sub):i.Log.info(\"UserManager.signinPopupCallback: no sub\")),e})).catch((function(e){i.Log.error(e.message)}))},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then((function(r){return r&&r.refresh_token?(t.refresh_token=r.refresh_token,e._useRefreshToken(t)):(t.request_type=\"si:s\",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&r&&r.id_token,r&&e._settings.validateSubOnSilentRenew&&(i.Log.debug(\"UserManager.signinSilent, subject prior to silent renew: \",r.profile.sub),t.current_sub=r.profile.sub),e._signinSilentIframe(t))}))},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then((function(t){return t?t.access_token?e._loadUser().then((function(r){if(r){var n=Promise.resolve();return t.id_token&&(n=e._validateIdTokenFromTokenRefreshToken(r.profile,t.id_token)),n.then((function(){return i.Log.debug(\"UserManager._useRefreshToken: refresh token response success\"),r.id_token=t.id_token||r.id_token,r.access_token=t.access_token,r.refresh_token=t.refresh_token||r.refresh_token,r.expires_in=t.expires_in,e.storeUser(r).then((function(){return e._events.load(r),r}))}))}return null})):(i.Log.error(\"UserManager._useRefreshToken: No access token returned from token endpoint\"),Promise.reject(\"No access token returned from token endpoint\")):(i.Log.error(\"UserManager._useRefreshToken: No response returned from token endpoint\"),Promise.reject(\"No response returned from token endpoint\"))}))},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var r=this;return this._metadataService.getIssuer().then((function(n){return r.settings.getEpochTime().then((function(o){return r._joseUtil.validateJwtAttributes(t,n,r._settings.client_id,r._settings.clockSkew,o).then((function(t){return t?t.sub!==e.sub?(i.Log.error(\"UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub\"),Promise.reject(new Error(\"sub in id_token does not match current sub\"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error(\"UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time\"),Promise.reject(new Error(\"auth_time in id_token does not match original auth_time\"))):t.azp&&t.azp!==e.azp?(i.Log.error(\"UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp\"),Promise.reject(new Error(\"azp in id_token does not match original azp\"))):!t.azp&&e.azp?(i.Log.error(\"UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token\"),Promise.reject(new Error(\"azp not in id_token, but present in original id_token\"))):void 0:(i.Log.error(\"UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token\"),Promise.reject(new Error(\"Failed to validate id_token\")))}))}))}))},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||\"none\",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info(\"UserManager.signinSilent: successful, signed in sub: \",e.profile.sub):i.Log.info(\"UserManager.signinSilent: no sub\")),e}))):(i.Log.error(\"UserManager.signinSilent: No silent_redirect_uri configured\"),Promise.reject(new Error(\"No silent_redirect_uri configured\")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info(\"UserManager.signinSilentCallback: successful, signed in sub: \",e.profile.sub):i.Log.info(\"UserManager.signinSilentCallback: no sub\")),e}))},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then((function(r){var n=r.state;return r.response,\"si:r\"===n.request_type?t.signinRedirectCallback(e):\"si:p\"===n.request_type?t.signinPopupCallback(e):\"si:s\"===n.request_type?t.signinSilentCallback(e):Promise.reject(new Error(\"invalid response_type in state\"))}))},t.prototype.signoutCallback=function(e,t){var r=this;return this.readSignoutResponseState(e).then((function(n){var i=n.state,o=n.response;return i?\"so:r\"===i.request_type?r.signoutRedirectCallback(e):\"so:p\"===i.request_type?r.signoutPopupCallback(e,t):Promise.reject(new Error(\"invalid response_type in state\")):o}))},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type=\"si:s\";var r=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return r?(t.redirect_uri=r,t.prompt=\"none\",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||\"openid\",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:r,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return e.processSigninResponse(t.url).then((function(e){if(i.Log.debug(\"UserManager.querySessionStatus: got signin response\"),e.session_state&&e.profile.sub)return i.Log.info(\"UserManager.querySessionStatus: querySessionStatus success for sub: \",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info(\"querySessionStatus successful, user not authenticated\")})).catch((function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&(\"login_required\"==t.message||\"consent_required\"==t.message||\"interaction_required\"==t.message||\"account_selection_required\"==t.message))return i.Log.info(\"UserManager.querySessionStatus: querySessionStatus success for anonymous user\"),{session_state:t.session_state};throw t}))}))):(i.Log.error(\"UserManager.querySessionStatus: No silent_redirect_uri configured\"),Promise.reject(new Error(\"No silent_redirect_uri configured\")))},t.prototype._signin=function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,n).then((function(t){return r._signinEnd(t.url,e)}))},t.prototype._signinStart=function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(n).then((function(t){return i.Log.debug(\"UserManager._signinStart: got navigator window handle\"),r.createSigninRequest(e).then((function(e){return i.Log.debug(\"UserManager._signinStart: got signin request\"),n.url=e.url,n.id=e.state.id,t.navigate(n)})).catch((function(e){throw t.close&&(i.Log.debug(\"UserManager._signinStart: Error after preparing navigator, closing navigator window\"),t.close()),e}))}))},t.prototype._signinEnd=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then((function(e){i.Log.debug(\"UserManager._signinEnd: got signin response\");var n=new a.User(e);if(r.current_sub){if(r.current_sub!==n.profile.sub)return i.Log.debug(\"UserManager._signinEnd: current user does not match user returned from signin. sub from signin: \",n.profile.sub),Promise.reject(new Error(\"login_required\"));i.Log.debug(\"UserManager._signinEnd: current user matches user returned from signin\")}return t.storeUser(n).then((function(){return i.Log.debug(\"UserManager._signinEnd: user stored\"),t._events.load(n),n}))}))},t.prototype._signinCallback=function(e,t){i.Log.debug(\"UserManager._signinCallback\");var r=\"query\"===this._settings.response_mode||!this._settings.response_mode&&h.SigninRequest.isCode(this._settings.response_type)?\"?\":\"#\";return t.callback(e,void 0,r)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type=\"so:r\";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var r={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,r).then((function(){i.Log.info(\"UserManager.signoutRedirect: successful\")}))},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then((function(e){return i.Log.info(\"UserManager.signoutRedirectCallback: successful\"),e}))},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type=\"so:p\";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display=\"popup\",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){i.Log.info(\"UserManager.signoutPopup: successful\")}))},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&\"boolean\"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,\"?\").then((function(){i.Log.info(\"UserManager.signoutPopupCallback: successful\")}))},t.prototype._signout=function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,n).then((function(e){return r._signoutEnd(e.url)}))},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(r).then((function(n){return i.Log.debug(\"UserManager._signoutStart: got navigator window handle\"),t._loadUser().then((function(o){return i.Log.debug(\"UserManager._signoutStart: loaded current user from storage\"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(o):Promise.resolve()).then((function(){var s=e.id_token_hint||o&&o.id_token;return s&&(i.Log.debug(\"UserManager._signoutStart: Setting id_token into signout request\"),e.id_token_hint=s),t.removeUser().then((function(){return i.Log.debug(\"UserManager._signoutStart: user removed, creating signout request\"),t.createSignoutRequest(e).then((function(e){return i.Log.debug(\"UserManager._signoutStart: got signout request\"),r.url=e.url,e.state&&(r.id=e.state.id),n.navigate(r)}))}))}))})).catch((function(e){throw n.close&&(i.Log.debug(\"UserManager._signoutStart: Error after preparing navigator, closing navigator window\"),n.close()),e}))}))},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then((function(e){return i.Log.debug(\"UserManager._signoutEnd: got signout response\"),e}))},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then((function(t){return e._revokeInternal(t,!0).then((function(r){if(r)return i.Log.debug(\"UserManager.revokeAccessToken: removing token properties from user and re-storing\"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then((function(){i.Log.debug(\"UserManager.revokeAccessToken: user stored\"),e._events.load(t)}))}))})).then((function(){i.Log.info(\"UserManager.revokeAccessToken: access token revoked successfully\")}))},t.prototype._revokeInternal=function(e,t){var r=this;if(e){var n=e.access_token,o=e.refresh_token;return this._revokeAccessTokenInternal(n,t).then((function(e){return r._revokeRefreshTokenInternal(o,t).then((function(t){return e||t||i.Log.debug(\"UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format\"),e||t}))}))}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(\".\")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then((function(){return!0}))},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,\"refresh_token\").then((function(){return!0})):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(e){return e?(i.Log.debug(\"UserManager._loadUser: user storageString loaded\"),a.User.fromStorageString(e)):(i.Log.debug(\"UserManager._loadUser: no user storageString\"),null)}))},t.prototype.storeUser=function(e){if(e){i.Log.debug(\"UserManager.storeUser: storing user\");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug(\"storeUser.storeUser: removing user\"),this._userStore.remove(this._userStoreKey)},n(t,[{key:\"_redirectNavigator\",get:function(){return this.settings.redirectNavigator}},{key:\"_popupNavigator\",get:function(){return this.settings.popupNavigator}},{key:\"_iframeNavigator\",get:function(){return this.settings.iframeNavigator}},{key:\"_userStore\",get:function(){return this.settings.userStore}},{key:\"events\",get:function(){return this._events}},{key:\"_userStoreKey\",get:function(){return\"user:\"+this.settings.authority+\":\"+this.settings.client_id}}]),t}(o.OidcClient)},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.UserManagerSettings=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=(r(0),r(5)),o=r(40),s=r(41),a=r(43),u=r(6),c=r(1),l=r(8);t.UserManagerSettings=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.popup_redirect_uri,i=r.popup_post_logout_redirect_uri,h=r.popupWindowFeatures,f=r.popupWindowTarget,g=r.silent_redirect_uri,p=r.silentRequestTimeout,d=r.automaticSilentRenew,v=void 0!==d&&d,y=r.validateSubOnSilentRenew,m=void 0!==y&&y,_=r.includeIdTokenInSilentRenew,b=void 0===_||_,w=r.monitorSession,S=void 0===w||w,F=r.monitorAnonymousSession,E=void 0!==F&&F,x=r.checkSessionInterval,C=void 0===x?2e3:x,A=r.stopCheckSessionOnError,k=void 0===A||A,L=r.query_status_response_type,P=r.revokeAccessTokenOnSignout,T=void 0!==P&&P,R=r.accessTokenExpiringNotificationTime,O=void 0===R?60:R,I=r.redirectNavigator,N=void 0===I?new o.RedirectNavigator:I,j=r.popupNavigator,M=void 0===j?new s.PopupNavigator:j,D=r.iframeNavigator,U=void 0===D?new a.IFrameNavigator:D,B=r.userStore,H=void 0===B?new u.WebStorageStateStore({store:c.Global.sessionStorage}):B;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var V=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,e.call(this,arguments[0]));return V._popup_redirect_uri=n,V._popup_post_logout_redirect_uri=i,V._popupWindowFeatures=h,V._popupWindowTarget=f,V._silent_redirect_uri=g,V._silentRequestTimeout=p,V._automaticSilentRenew=v,V._validateSubOnSilentRenew=m,V._includeIdTokenInSilentRenew=b,V._accessTokenExpiringNotificationTime=O,V._monitorSession=S,V._monitorAnonymousSession=E,V._checkSessionInterval=C,V._stopCheckSessionOnError=k,L?V._query_status_response_type=L:arguments[0]&&arguments[0].response_type?V._query_status_response_type=l.SigninRequest.isOidc(arguments[0].response_type)?\"id_token\":\"code\":V._query_status_response_type=\"id_token\",V._revokeAccessTokenOnSignout=T,V._redirectNavigator=N,V._popupNavigator=M,V._iframeNavigator=U,V._userStore=H,V}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:\"popup_redirect_uri\",get:function(){return this._popup_redirect_uri}},{key:\"popup_post_logout_redirect_uri\",get:function(){return this._popup_post_logout_redirect_uri}},{key:\"popupWindowFeatures\",get:function(){return this._popupWindowFeatures}},{key:\"popupWindowTarget\",get:function(){return this._popupWindowTarget}},{key:\"silent_redirect_uri\",get:function(){return this._silent_redirect_uri}},{key:\"silentRequestTimeout\",get:function(){return this._silentRequestTimeout}},{key:\"automaticSilentRenew\",get:function(){return this._automaticSilentRenew}},{key:\"validateSubOnSilentRenew\",get:function(){return this._validateSubOnSilentRenew}},{key:\"includeIdTokenInSilentRenew\",get:function(){return this._includeIdTokenInSilentRenew}},{key:\"accessTokenExpiringNotificationTime\",get:function(){return this._accessTokenExpiringNotificationTime}},{key:\"monitorSession\",get:function(){return this._monitorSession}},{key:\"monitorAnonymousSession\",get:function(){return this._monitorAnonymousSession}},{key:\"checkSessionInterval\",get:function(){return this._checkSessionInterval}},{key:\"stopCheckSessionOnError\",get:function(){return this._stopCheckSessionOnError}},{key:\"query_status_response_type\",get:function(){return this._query_status_response_type}},{key:\"revokeAccessTokenOnSignout\",get:function(){return this._revokeAccessTokenOnSignout}},{key:\"redirectNavigator\",get:function(){return this._redirectNavigator}},{key:\"popupNavigator\",get:function(){return this._popupNavigator}},{key:\"iframeNavigator\",get:function(){return this._iframeNavigator}},{key:\"userStore\",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.RedirectNavigator=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);t.RedirectNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.prototype.prepare=function(){return Promise.resolve(this)},e.prototype.navigate=function(e){return e&&e.url?(e.useReplaceToNavigate?window.location.replace(e.url):window.location=e.url,Promise.resolve()):(i.Log.error(\"RedirectNavigator.navigate: No url provided\"),Promise.reject(new Error(\"No url provided\")))},n(e,[{key:\"url\",get:function(){return window.location.href}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.PopupNavigator=void 0;var n=r(0),i=r(42);t.PopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.prototype.prepare=function(e){var t=new i.PopupWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t,r,o){n.Log.debug(\"PopupNavigator.callback\");try{return i.PopupWindow.notifyOpener(t,r,o),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.PopupWindow=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3);t.PopupWindow=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._promise=new Promise((function(e,t){r._resolve=e,r._reject=t}));var n=t.popupWindowTarget||\"_blank\",o=t.popupWindowFeatures||\"location=no,toolbar=no,width=500,height=500,left=100,top=100;\";this._popup=window.open(\"\",n,o),this._popup&&(i.Log.debug(\"PopupWindow.ctor: popup successfully created\"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return e.prototype.navigate=function(e){return this._popup?e&&e.url?(i.Log.debug(\"PopupWindow.navigate: Setting URL in popup\"),this._id=e.id,this._id&&(window[\"popupCallback_\"+e.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=e.url):(this._error(\"PopupWindow.navigate: no url provided\"),this._error(\"No url provided\")):this._error(\"PopupWindow.navigate: Error opening popup window\"),this.promise},e.prototype._success=function(e){i.Log.debug(\"PopupWindow.callback: Successful response from popup window\"),this._cleanup(),this._resolve(e)},e.prototype._error=function(e){i.Log.error(\"PopupWindow.error: \",e),this._cleanup(),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup(!1)},e.prototype._cleanup=function(e){i.Log.debug(\"PopupWindow.cleanup\"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window[\"popupCallback_\"+this._id],this._popup&&!e&&this._popup.close(),this._popup=null},e.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error(\"Popup window closed\")},e.prototype._callback=function(e,t){this._cleanup(t),e?(i.Log.debug(\"PopupWindow.callback success\"),this._success({url:e})):(i.Log.debug(\"PopupWindow.callback: Invalid response from popup\"),this._error(\"Invalid response from popup\"))},e.notifyOpener=function(e,t,r){if(window.opener){if(e=e||window.location.href){var n=o.UrlUtility.parseUrlFragment(e,r);if(n.state){var s=\"popupCallback_\"+n.state,a=window.opener[s];a?(i.Log.debug(\"PopupWindow.notifyOpener: passing url message to opener\"),a(e,t)):i.Log.warn(\"PopupWindow.notifyOpener: no matching callback found on opener\")}else i.Log.warn(\"PopupWindow.notifyOpener: no state found in response url\")}}else i.Log.warn(\"PopupWindow.notifyOpener: no window.opener. Can't complete notification.\")},n(e,[{key:\"promise\",get:function(){return this._promise}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.IFrameNavigator=void 0;var n=r(0),i=r(44);t.IFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.prototype.prepare=function(e){var t=new i.IFrameWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t){n.Log.debug(\"IFrameNavigator.callback\");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.IFrameWindow=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);t.IFrameWindow=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._promise=new Promise((function(e,t){r._resolve=e,r._reject=t})),this._boundMessageEvent=this._message.bind(this),window.addEventListener(\"message\",this._boundMessageEvent,!1),this._frame=window.document.createElement(\"iframe\"),this._frame.style.visibility=\"hidden\",this._frame.style.position=\"absolute\",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return e.prototype.navigate=function(e){if(e&&e.url){var t=e.silentRequestTimeout||1e4;i.Log.debug(\"IFrameWindow.navigate: Using timeout of:\",t),this._timer=window.setTimeout(this._timeout.bind(this),t),this._frame.src=e.url}else this._error(\"No url provided\");return this.promise},e.prototype._success=function(e){this._cleanup(),i.Log.debug(\"IFrameWindow: Successful response from frame window\"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._frame&&(i.Log.debug(\"IFrameWindow: cleanup\"),window.removeEventListener(\"message\",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},e.prototype._timeout=function(){i.Log.debug(\"IFrameWindow.timeout\"),this._error(\"Frame window timed out\")},e.prototype._message=function(e){if(i.Log.debug(\"IFrameWindow.message\"),this._timer&&e.origin===this._origin&&e.source===this._frame.contentWindow&&\"string\"==typeof e.data&&(e.data.startsWith(\"http://\")||e.data.startsWith(\"https://\"))){var t=e.data;t?this._success({url:t}):this._error(\"Invalid response from frame\")}},e.notifyParent=function(e){i.Log.debug(\"IFrameWindow.notifyParent\"),(e=e||window.location.href)&&(i.Log.debug(\"IFrameWindow.notifyParent: posting url message to parent\"),window.parent.postMessage(e,location.protocol+\"//\"+location.host))},n(e,[{key:\"promise\",get:function(){return this._promise}},{key:\"_origin\",get:function(){return location.protocol+\"//\"+location.host}}]),e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.UserManagerEvents=void 0;var n=r(0),i=r(16),o=r(17);t.UserManagerEvents=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,e.call(this,r));return n._userLoaded=new o.Event(\"User loaded\"),n._userUnloaded=new o.Event(\"User unloaded\"),n._silentRenewError=new o.Event(\"Silent renew error\"),n._userSignedIn=new o.Event(\"User signed in\"),n._userSignedOut=new o.Event(\"User signed out\"),n._userSessionChanged=new o.Event(\"User session changed\"),n}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.load=function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.Log.debug(\"UserManagerEvents.load\"),e.prototype.load.call(this,t),r&&this._userLoaded.raise(t)},t.prototype.unload=function(){n.Log.debug(\"UserManagerEvents.unload\"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){n.Log.debug(\"UserManagerEvents._raiseSilentRenewError\",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){n.Log.debug(\"UserManagerEvents._raiseUserSignedIn\"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){n.Log.debug(\"UserManagerEvents._raiseUserSignedOut\"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){n.Log.debug(\"UserManagerEvents._raiseUserSessionChanged\"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.Timer=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),s=r(17);t.Timer=function(e){function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}(this,e.call(this,r));return s._timer=n,s._nowFunc=i||function(){return Date.now()/1e3},s}return function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug(\"Timer.init timer \"+this._name+\" skipping initialization since already initialized for expiration:\",this.expiration);else{this.cancel(),i.Log.debug(\"Timer.init timer \"+this._name+\" for duration:\",e),this._expiration=t;var r=5;e<r&&(r=e),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*r)}},t.prototype.cancel=function(){this._timerHandle&&(i.Log.debug(\"Timer.cancel: \",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},t.prototype._callback=function(){var t=this._expiration-this.now;i.Log.debug(\"Timer.callback; \"+this._name+\" timer expires in:\",t),this._expiration<=this.now&&(this.cancel(),e.prototype.raise.call(this))},n(t,[{key:\"now\",get:function(){return parseInt(this._nowFunc())}},{key:\"expiration\",get:function(){return this._expiration}}]),t}(s.Event)},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.SilentRenewService=void 0;var n=r(0);t.SilentRenewService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._userManager=t}return e.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then((function(e){})).catch((function(e){n.Log.error(\"SilentRenewService.start: Error from getUser:\",e.message)})))},e.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},e.prototype._tokenExpiring=function(){var e=this;this._userManager.signinSilent().then((function(e){n.Log.debug(\"SilentRenewService._tokenExpiring: Silent token renewal successful\")}),(function(t){n.Log.error(\"SilentRenewService._tokenExpiring: Error from signinSilent:\",t.message),e._userManager.events._raiseSilentRenewError(t)}))},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.CordovaPopupNavigator=void 0;var n=r(21);t.CordovaPopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.prototype.prepare=function(e){var t=new n.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.CordovaIFrameNavigator=void 0;var n=r(21);t.CordovaIFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e)}return e.prototype.prepare=function(e){e.popupWindowFeatures=\"hidden=yes\";var t=new n.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,r){Object.defineProperty(t,\"__esModule\",{value:!0}),t.Version=\"1.11.5\"}])},e.exports=t()},4741:(e,t,r)=>{var n;!function(e){!function(t){var n=\"object\"==typeof r.g?r.g:\"object\"==typeof self?self:\"object\"==typeof this?this:Function(\"return this;\")(),i=o(e);function o(e,t){return function(r,n){\"function\"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}void 0===n.Reflect?n.Reflect=e:i=o(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,r=\"function\"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:\"@@toPrimitive\",i=r&&void 0!==Symbol.iterator?Symbol.iterator:\"@@iterator\",o=\"function\"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return N(Object.create(null))}:s?function(){return N({__proto__:null})}:function(){return N({})},has:a?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:a?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l=\"object\"==typeof process&&process.env&&\"true\"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,h=l||\"function\"!=typeof Map||\"function\"!=typeof Map.prototype.entries?function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype[\"@@iterator\"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,\"size\",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,n)},t.prototype.values=function(){return new r(this._keys,this._values,o)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype[\"@@iterator\"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function o(e,t){return t}function s(e,t){return[e,t]}}():Map,f=l||\"function\"!=typeof Set||\"function\"!=typeof Set.prototype.entries?function(){function e(){this._map=new h}return Object.defineProperty(e.prototype,\"size\",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype[\"@@iterator\"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,g=new(l||\"function\"!=typeof WeakMap?function(){var e=16,r=u.create(),n=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return o(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var e;do{e=\"@@WeakMap@@\"+a()}while(u.has(r,e));return r[e]=!0,e}function o(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:u.create()})}return e[n]}function s(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function a(){var t,r=(t=e,\"function\"==typeof Uint8Array?\"undefined\"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):\"undefined\"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):s(new Uint8Array(t),t):s(new Array(t),t));r[6]=79&r[6]|64,r[8]=191&r[8]|128;for(var n=\"\",i=0;i<e;++i){var o=r[i];4!==i&&6!==i&&8!==i||(n+=\"-\"),o<16&&(n+=\"0\"),n+=o.toString(16).toLowerCase()}return n}}():WeakMap);function p(e,t,r){var n=g.get(e);if(F(n)){if(!r)return;n=new h,g.set(e,n)}var i=n.get(t);if(F(i)){if(!r)return;i=new h,n.set(t,i)}return i}function d(e,t,r){if(v(e,t,r))return!0;var n=I(t);return!E(n)&&d(e,n,r)}function v(e,t,r){var n=p(t,r,!1);return!F(n)&&!!n.has(e)}function y(e,t,r){if(v(e,t,r))return m(e,t,r);var n=I(t);return E(n)?void 0:y(e,n,r)}function m(e,t,r){var n=p(t,r,!1);if(!F(n))return n.get(e)}function _(e,t,r,n){p(r,n,!0).set(e,t)}function b(e,t){var r=w(e,t),n=I(e);if(null===n)return r;var i=b(n,t);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new f,s=[],a=0,u=r;a<u.length;a++){var c=u[a];o.has(c)||(o.add(c),s.push(c))}for(var l=0,h=i;l<h.length;l++)c=h[l],o.has(c)||(o.add(c),s.push(c));return s}function w(e,t){var r=[],n=p(e,t,!1);if(F(n))return r;for(var o=function(e){var t=T(e,i);if(!L(t))throw new TypeError;var r=t.call(e);if(!x(r))throw new TypeError;return r}(n.keys()),s=0;;){var a=R(o);if(!a)return r.length=s,r;var u=a.value;try{r[s]=u}catch(e){try{O(o)}finally{throw e}}s++}}function S(e){if(null===e)return 1;switch(typeof e){case\"undefined\":return 0;case\"boolean\":return 2;case\"string\":return 3;case\"symbol\":return 4;case\"number\":return 5;case\"object\":return null===e?1:6;default:return 6}}function F(e){return void 0===e}function E(e){return null===e}function x(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}function C(e,t){switch(S(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?\"string\":5===t?\"number\":\"default\",i=T(e,n);if(void 0!==i){var o=i.call(e,r);if(x(o))throw new TypeError;return o}return function(e,t){if(\"string\"===t){var r=e.toString;if(L(r)&&!x(i=r.call(e)))return i;if(L(n=e.valueOf)&&!x(i=n.call(e)))return i}else{var n;if(L(n=e.valueOf)&&!x(i=n.call(e)))return i;var i,o=e.toString;if(L(o)&&!x(i=o.call(e)))return i}throw new TypeError}(e,\"default\"===r?\"number\":r)}function A(e){var t=C(e,3);return\"symbol\"==typeof t?t:function(e){return\"\"+e}(t)}function k(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:\"[object Array]\"===Object.prototype.toString.call(e)}function L(e){return\"function\"==typeof e}function P(e){return\"function\"==typeof e}function T(e,t){var r=e[t];if(null!=r){if(!L(r))throw new TypeError;return r}}function R(e){var t=e.next();return!t.done&&t}function O(e){var t=e.return;t&&t.call(e)}function I(e){var t=Object.getPrototypeOf(e);if(\"function\"!=typeof e||e===c)return t;if(t!==c)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var i=n.constructor;return\"function\"!=typeof i||i===e?t:i}function N(e){return e.__=void 0,delete e.__,e}e(\"decorate\",(function(e,t,r,n){if(F(r)){if(!k(e))throw new TypeError;if(!P(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var n=(0,e[r])(t);if(!F(n)&&!E(n)){if(!P(n))throw new TypeError;t=n}}return t}(e,t)}if(!k(e))throw new TypeError;if(!x(t))throw new TypeError;if(!x(n)&&!F(n)&&!E(n))throw new TypeError;return E(n)&&(n=void 0),function(e,t,r,n){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,r,n);if(!F(o)&&!E(o)){if(!x(o))throw new TypeError;n=o}}return n}(e,t,r=A(r),n)})),e(\"metadata\",(function(e,t){return function(r,n){if(!x(r))throw new TypeError;if(!F(n)&&!function(e){switch(S(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;_(e,t,r,n)}})),e(\"defineMetadata\",(function(e,t,r,n){if(!x(r))throw new TypeError;return F(n)||(n=A(n)),_(e,t,r,n)})),e(\"hasMetadata\",(function(e,t,r){if(!x(t))throw new TypeError;return F(r)||(r=A(r)),d(e,t,r)})),e(\"hasOwnMetadata\",(function(e,t,r){if(!x(t))throw new TypeError;return F(r)||(r=A(r)),v(e,t,r)})),e(\"getMetadata\",(function(e,t,r){if(!x(t))throw new TypeError;return F(r)||(r=A(r)),y(e,t,r)})),e(\"getOwnMetadata\",(function(e,t,r){if(!x(t))throw new TypeError;return F(r)||(r=A(r)),m(e,t,r)})),e(\"getMetadataKeys\",(function(e,t){if(!x(e))throw new TypeError;return F(t)||(t=A(t)),b(e,t)})),e(\"getOwnMetadataKeys\",(function(e,t){if(!x(e))throw new TypeError;return F(t)||(t=A(t)),w(e,t)})),e(\"deleteMetadata\",(function(e,t,r){if(!x(t))throw new TypeError;F(r)||(r=A(r));var n=p(t,r,!1);if(F(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=g.get(t);return i.delete(r),i.size>0||g.delete(t),!0}))}(i)}()}(n||(n={}))},9578:(e,t,r)=>{r.r(t),r.d(t,{ArgumentOutOfRangeError:()=>we,AsyncSubject:()=>ie,BehaviorSubject:()=>j,ConnectableObservable:()=>R,EMPTY:()=>K,EmptyError:()=>Se,GroupedObservable:()=>I,NEVER:()=>dt,Notification:()=>Z,NotificationKind:()=>W,ObjectUnsubscribedError:()=>x,Observable:()=>F,ReplaySubject:()=>re,Scheduler:()=>U,Subject:()=>k,Subscriber:()=>v,Subscription:()=>g,TimeoutError:()=>Fe,UnsubscriptionError:()=>f,VirtualAction:()=>me,VirtualTimeScheduler:()=>ye,animationFrame:()=>ve,animationFrameScheduler:()=>de,asap:()=>he,asapScheduler:()=>le,async:()=>ge,asyncScheduler:()=>fe,bindCallback:()=>Ae,bindNodeCallback:()=>Pe,combineLatest:()=>Ke,concat:()=>tt,config:()=>a,defer:()=>rt,empty:()=>q,forkJoin:()=>nt,from:()=>Ge,fromEvent:()=>ot,fromEventPattern:()=>at,generate:()=>ut,identity:()=>b,iif:()=>lt,interval:()=>ft,isObservable:()=>be,merge:()=>pt,never:()=>vt,noop:()=>_e,observable:()=>_,of:()=>$,onErrorResumeNext:()=>yt,pairs:()=>mt,partition:()=>Et,pipe:()=>w,queue:()=>V,queueScheduler:()=>H,race:()=>xt,range:()=>kt,scheduled:()=>We,throwError:()=>X,timer:()=>Pt,using:()=>Rt,zip:()=>Ot});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e){return\"function\"==typeof e}var s=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function u(e){setTimeout((function(){throw e}),0)}var c={closed:!0,next:function(e){},error:function(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;u(e)},complete:function(){}},l=function(){return Array.isArray||function(e){return e&&\"number\"==typeof e.length}}();function h(e){return null!==e&&\"object\"==typeof e}var f=function(){function e(e){return Error.call(this),this.message=e?e.length+\" errors occurred during unsubscription:\\n\"+e.map((function(e,t){return t+1+\") \"+e.toString()})).join(\"\\n \"):\"\",this.name=\"UnsubscriptionError\",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),g=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,a=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var u=0;u<n.length;++u)n[u].remove(this);if(o(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(e){t=e instanceof f?p(e.errors):[e]}}if(l(a)){u=-1;for(var c=a.length;++u<c;){var g=a[u];if(h(g))try{g.unsubscribe()}catch(e){t=t||[],e instanceof f?t=t.concat(p(e.errors)):t.push(e)}}}if(t)throw new f(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case\"function\":r=new e(t);case\"object\":if(r===this||r.closed||\"function\"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw new Error(\"unrecognized teardown \"+t+\" added to Subscription.\")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function p(e){return e.reduce((function(e,t){return e.concat(t instanceof f?t.errors:t)}),[])}var d=function(){return\"function\"==typeof Symbol?Symbol(\"rxSubscriber\"):\"@@rxSubscriber_\"+Math.random()}(),v=function(e){function t(r,n,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=c;break;case 1:if(!r){o.destination=c;break}if(\"object\"==typeof r){r instanceof t?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,r,n,i)}return o}return i(t,e),t.prototype[d]=function(){return this},t.create=function(e,r,n){var i=new t(e,r,n);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(g),y=function(e){function t(t,r,n,i){var s,a=e.call(this)||this;a._parentSubscriber=t;var u=a;return o(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==c&&(o((u=Object.create(r)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=s,a._error=n,a._complete=i,a}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,r=a.useDeprecatedSynchronousErrorHandling;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):u(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;u(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw e;u(e)}},t.prototype.__tryOrSetError=function(e,t,r){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error(\"bad call\");try{t.call(this._context,r)}catch(t){return a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(u(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(v);function m(e){for(;e;){var t=e,r=t.closed,n=t.destination,i=t.isStopped;if(r||i)return!1;e=n&&n instanceof v?n:null}return!0}var _=function(){return\"function\"==typeof Symbol&&Symbol.observable||\"@@observable\"}();function b(e){return e}function w(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S(e)}function S(e){return 0===e.length?b:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var F=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this.operator,i=function(e,t,r){if(e){if(e instanceof v)return e;if(e[d])return e[d]()}return e||t||r?new v(e,t,r):new v(c)}(e,t,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),m(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=E(t))((function(t,n){var i;i=r.subscribe((function(t){try{e(t)}catch(e){n(e),i&&i.unsubscribe()}}),n,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[_]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:S(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=E(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function E(e){if(e||(e=a.Promise||Promise),!e)throw new Error(\"no Promise impl found\");return e}var x=function(){function e(){return Error.call(this),this.message=\"object unsubscribed\",this.name=\"ObjectUnsubscribedError\",this}return e.prototype=Object.create(Error.prototype),e}(),C=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(g),A=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return i(t,e),t}(v),k=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[d]=function(){return new A(this)},t.prototype.lift=function(e){var t=new L(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new x;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i<r;i++)n[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new x;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,r=t.length,n=t.slice(),i=0;i<r;i++)n[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new x;this.isStopped=!0;for(var e=this.observers,t=e.length,r=e.slice(),n=0;n<t;n++)r[n].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new x;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new x;return this.hasError?(e.error(this.thrownError),g.EMPTY):this.isStopped?(e.complete(),g.EMPTY):(this.observers.push(e),new C(this,e))},t.prototype.asObservable=function(){var e=new F;return e.source=this,e},t.create=function(e,t){return new L(e,t)},t}(F),L=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):g.EMPTY},t}(k),P=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new T(e,r),i=t.subscribe(n);return n.closed||(n.connection=r.connect()),i},e}(),T=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},t}(v),R=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new g).add(this.source.subscribe(new O(this.getSubject(),this))),e.closed&&(this._connection=null,e=g.EMPTY)),e},t.prototype.refCount=function(){return(e=this).lift(new P(e));var e},t}(F),O=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return i(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(A),I=function(e){function t(t,r,n){var i=e.call(this)||this;return i.key=t,i.groupSubject=r,i.refCountSubscription=n,i}return i(t,e),t.prototype._subscribe=function(e){var t=new g,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&t.add(new N(r)),t.add(n.subscribe(e)),t},t}(F),N=function(e){function t(t){var r=e.call(this)||this;return r.parent=t,t.count++,r}return i(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(g),j=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,\"value\",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new x;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(k),M=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error(\"executing a cancelled action\");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(g)),D=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(M),U=function(){function e(t,r){void 0===r&&(r=e.now),this.SchedulerAction=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},e.now=function(){return Date.now()},e}(),B=function(e){function t(r,n){void 0===n&&(n=U.now);var i=e.call(this,r,(function(){return t.delegate&&t.delegate!==i?t.delegate.now():n()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(t,e),t.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),t.delegate&&t.delegate!==this?t.delegate.schedule(r,n,i):e.prototype.schedule.call(this,r,n,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(U),H=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(B))(D),V=H,K=new F((function(e){return e.complete()}));function q(e){return e?function(e){return new F((function(t){return e.schedule((function(){return t.complete()}))}))}(e):K}function J(e){return e&&\"function\"==typeof e.schedule}var W,G=function(e){return function(t){for(var r=0,n=e.length;r<n&&!t.closed;r++)t.next(e[r]);t.complete()}};function Y(e,t){return new F((function(r){var n=new g,i=0;return n.add(t.schedule((function(){i!==e.length?(r.next(e[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function z(e,t){return t?Y(e,t):new F(G(e))}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return J(r)?(e.pop(),Y(e,r)):z(e)}function X(e,t){return new F(t?function(r){return t.schedule(Q,0,{error:e,subscriber:r})}:function(t){return t.error(e)})}function Q(e){var t=e.error;e.subscriber.error(t)}W||(W={});var Z=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue=\"N\"===e}return e.prototype.observe=function(e){switch(this.kind){case\"N\":return e.next&&e.next(this.value);case\"E\":return e.error&&e.error(this.error);case\"C\":return e.complete&&e.complete()}},e.prototype.do=function(e,t,r){switch(this.kind){case\"N\":return e&&e(this.value);case\"E\":return t&&t(this.error);case\"C\":return r&&r()}},e.prototype.accept=function(e,t,r){return e&&\"function\"==typeof e.next?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){switch(this.kind){case\"N\":return $(this.value);case\"E\":return X(this.error);case\"C\":return q()}throw new Error(\"unexpected notification kind value\")},e.createNext=function(t){return void 0!==t?new e(\"N\",t):e.undefinedValueNotification},e.createError=function(t){return new e(\"E\",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e(\"C\"),e.undefinedValueNotification=new e(\"N\",void 0),e}(),ee=function(e){function t(t,r,n){void 0===n&&(n=0);var i=e.call(this,t)||this;return i.scheduler=r,i.delay=n,i}return i(t,e),t.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new te(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(Z.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(Z.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(Z.createComplete()),this.unsubscribe()},t}(v),te=function(){return function(e,t){this.notification=e,this.destination=t}}(),re=function(e){function t(t,r,n){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var r=this._events;r.push(t),r.length>this._bufferSize&&r.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new ne(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new x;if(this.isStopped||this.hasError?t=g.EMPTY:(this.observers.push(e),t=new C(this,e)),i&&e.add(e=new ee(e,i)),r)for(var s=0;s<o&&!e.closed;s++)e.next(n[s]);else for(s=0;s<o&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||V).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(e-n[o].time<r);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&n.splice(0,o),n},t}(k),ne=function(){return function(e,t){this.time=e,this.value=t}}(),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),g.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),g.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(k),oe=1,se=function(){return Promise.resolve()}(),ae={};function ue(e){return e in ae&&(delete ae[e],!0)}var ce=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=(i=t.flush.bind(t,null),o=oe++,ae[o]=!0,se.then((function(){return ue(o)&&i()})),o)));var i,o},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(ue(r),t.scheduled=void 0)},t}(M),le=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,i=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<i&&(e=r.shift()));if(this.active=!1,t){for(;++n<i&&(e=r.shift());)e.unsubscribe();throw t}},t}(B))(ce),he=le,fe=new B(M),ge=fe,pe=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(cancelAnimationFrame(r),t.scheduled=void 0)},t}(M),de=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,i=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<i&&(e=r.shift()));if(this.active=!1,t){for(;++n<i&&(e=r.shift());)e.unsubscribe();throw t}},t}(B))(pe),ve=de,ye=function(e){function t(t,r){void 0===t&&(t=me),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(B),me=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=n,i.active=!0,i.index=t.index=n,i}return i(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(M);function _e(){}function be(e){return!!e&&(e instanceof F||\"function\"==typeof e.lift&&\"function\"==typeof e.subscribe)}var we=function(){function e(){return Error.call(this),this.message=\"argument out of range\",this.name=\"ArgumentOutOfRangeError\",this}return e.prototype=Object.create(Error.prototype),e}(),Se=function(){function e(){return Error.call(this),this.message=\"no elements in sequence\",this.name=\"EmptyError\",this}return e.prototype=Object.create(Error.prototype),e}(),Fe=function(){function e(){return Error.call(this),this.message=\"Timeout has occurred\",this.name=\"TimeoutError\",this}return e.prototype=Object.create(Error.prototype),e}();function Ee(e,t){return function(r){if(\"function\"!=typeof e)throw new TypeError(\"argument is not a function. Are you looking for `mapTo()`?\");return r.lift(new xe(e,t))}}var xe=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ce(e,this.project,this.thisArg))},e}(),Ce=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return i(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v);function Ae(e,t,r){if(t){if(!J(t))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return Ae(e,r).apply(void 0,n).pipe(Ee((function(e){return l(e)?t.apply(void 0,e):t(e)})))};r=t}return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i,o=this,s={context:o,subject:i,callbackFunc:e,scheduler:r};return new F((function(n){if(r){var a={args:t,subscriber:n,params:s};return r.schedule(ke,0,a)}if(!i){i=new ie;try{e.apply(o,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.next(e.length<=1?e[0]:e),i.complete()}]))}catch(e){m(i)?i.error(e):console.warn(e)}}return i.subscribe(n)}))}}function ke(e){var t=this,r=e.args,n=e.subscriber,i=e.params,o=i.callbackFunc,s=i.context,a=i.scheduler,u=i.subject;if(!u){u=i.subject=new ie;try{o.apply(s,r.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.length<=1?e[0]:e;t.add(a.schedule(Le,0,{value:n,subject:u}))}]))}catch(e){u.error(e)}}this.add(u.subscribe(n))}function Le(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function Pe(e,t,r){if(t){if(!J(t))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return Pe(e,r).apply(void 0,n).pipe(Ee((function(e){return l(e)?t.apply(void 0,e):t(e)})))};r=t}return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i={subject:void 0,args:t,callbackFunc:e,scheduler:r,context:this};return new F((function(n){var o=i.context,s=i.subject;if(r)return r.schedule(Te,0,{params:i,subscriber:n,context:o});if(!s){s=i.subject=new ie;try{e.apply(o,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.shift();r?s.error(r):(s.next(e.length<=1?e[0]:e),s.complete())}]))}catch(e){m(s)?s.error(e):console.warn(e)}}return s.subscribe(n)}))}}function Te(e){var t=this,r=e.params,n=e.subscriber,i=e.context,o=r.callbackFunc,s=r.args,a=r.scheduler,u=r.subject;if(!u){u=r.subject=new ie;try{o.apply(i,s.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.shift();if(n)t.add(a.schedule(Oe,0,{err:n,subject:u}));else{var i=e.length<=1?e[0]:e;t.add(a.schedule(Re,0,{value:i,subject:u}))}}]))}catch(e){this.add(a.schedule(Oe,0,{err:e,subject:u}))}}this.add(u.subscribe(n))}function Re(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function Oe(e){var t=e.err;e.subject.error(t)}var Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(v),Ne=function(e){function t(t,r,n){var i=e.call(this)||this;return i.parent=t,i.outerValue=r,i.outerIndex=n,i.index=0,i}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(v);function je(){return\"function\"==typeof Symbol&&Symbol.iterator?Symbol.iterator:\"@@iterator\"}var Me=je(),De=function(e){return e&&\"number\"==typeof e.length&&\"function\"!=typeof e};function Ue(e){return!!e&&\"function\"!=typeof e.subscribe&&\"function\"==typeof e.then}var Be=function(e){if(e&&\"function\"==typeof e[_])return n=e,function(e){var t=n[_]();if(\"function\"!=typeof t.subscribe)throw new TypeError(\"Provided object does not correctly implement Symbol.observable\");return t.subscribe(e)};if(De(e))return G(e);if(Ue(e))return r=e,function(e){return r.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,u),e};if(e&&\"function\"==typeof e[Me])return t=e,function(e){for(var r=t[Me]();;){var n=void 0;try{n=r.next()}catch(t){return e.error(t),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return\"function\"==typeof r.return&&e.add((function(){r.return&&r.return()})),e};var t,r,n,i=h(e)?\"an invalid object\":\"'\"+e+\"'\";throw new TypeError(\"You provided \"+i+\" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.\")};function He(e,t,r,n,i){if(void 0===i&&(i=new Ne(e,r,n)),!i.closed)return t instanceof F?t.subscribe(i):Be(t)(i)}var Ve={};function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=void 0,n=void 0;return J(e[e.length-1])&&(n=e.pop()),\"function\"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),z(e,n).lift(new qe(r))}var qe=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.resultSelector))},e}(),Je=function(e){function t(t,r){var n=e.call(this,t)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return i(t,e),t.prototype._next=function(e){this.values.push(Ve),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var r=0;r<t;r++){var n=e[r];this.add(He(this,n,void 0,r))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,r){var n=this.values,i=n[r],o=this.toRespond?i===Ve?--this.toRespond:this.toRespond:0;n[r]=t,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Ie);function We(e,t){if(null!=e){if(function(e){return e&&\"function\"==typeof e[_]}(e))return function(e,t){return new F((function(r){var n=new g;return n.add(t.schedule((function(){var i=e[_]();n.add(i.subscribe({next:function(e){n.add(t.schedule((function(){return r.next(e)})))},error:function(e){n.add(t.schedule((function(){return r.error(e)})))},complete:function(){n.add(t.schedule((function(){return r.complete()})))}}))}))),n}))}(e,t);if(Ue(e))return function(e,t){return new F((function(r){var n=new g;return n.add(t.schedule((function(){return e.then((function(e){n.add(t.schedule((function(){r.next(e),n.add(t.schedule((function(){return r.complete()})))})))}),(function(e){n.add(t.schedule((function(){return r.error(e)})))}))}))),n}))}(e,t);if(De(e))return Y(e,t);if(function(e){return e&&\"function\"==typeof e[Me]}(e)||\"string\"==typeof e)return function(e,t){if(!e)throw new Error(\"Iterable cannot be null\");return new F((function(r){var n,i=new g;return i.add((function(){n&&\"function\"==typeof n.return&&n.return()})),i.add(t.schedule((function(){n=e[Me](),i.add(t.schedule((function(){if(!r.closed){var e,t;try{var i=n.next();e=i.value,t=i.done}catch(e){return void r.error(e)}t?r.complete():(r.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+\" is not observable\")}function Ge(e,t){return t?We(e,t):e instanceof F?e:new F(Be(e))}var Ye=function(e){function t(t){var r=e.call(this)||this;return r.parent=t,r}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(v),ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(v);function $e(e,t){if(!t.closed){if(e instanceof F)return e.subscribe(t);var r;try{r=Be(e)(t)}catch(e){t.error(e)}return r}}function Xe(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),\"function\"==typeof t?function(n){return n.pipe(Xe((function(r,n){return Ge(e(r,n)).pipe(Ee((function(e,i){return t(r,e,n,i)})))}),r))}:(\"number\"==typeof t&&(r=t),function(t){return t.lift(new Qe(e,r))})}var Qe=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Ze(e,this.project,this.concurrent))},e}(),Ze=function(e){function t(t,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new Ye(this),r=this.destination;r.add(t);var n=$e(e,t);n!==t&&r.add(n)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(ze);function et(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Xe(b,e)}function tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return et(1)($.apply(void 0,e))}function rt(e){return new F((function(t){var r;try{r=e()}catch(e){return void t.error(e)}return(r?Ge(r):q()).subscribe(t)}))}function nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var r=e[0];if(l(r))return it(r,null);if(h(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return it(n.map((function(e){return r[e]})),n)}}if(\"function\"==typeof e[e.length-1]){var i=e.pop();return it(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(Ee((function(e){return i.apply(void 0,e)})))}return it(e,null)}function it(e,t){return new F((function(r){var n=e.length;if(0!==n)for(var i=new Array(n),o=0,s=0,a=function(a){var u=Ge(e[a]),c=!1;r.add(u.subscribe({next:function(e){c||(c=!0,s++),i[a]=e},error:function(e){return r.error(e)},complete:function(){++o!==n&&c||(s===n&&r.next(t?t.reduce((function(e,t,r){return e[t]=i[r],e}),{}):i),r.complete())}}))},u=0;u<n;u++)a(u);else r.complete()}))}function ot(e,t,r,n){return o(r)&&(n=r,r=void 0),n?ot(e,t,r).pipe(Ee((function(e){return l(e)?n.apply(void 0,e):n(e)}))):new F((function(n){st(e,t,(function(e){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(e)}),n,r)}))}function st(e,t,r,n,i){var o;if(function(e){return e&&\"function\"==typeof e.addEventListener&&\"function\"==typeof e.removeEventListener}(e)){var s=e;e.addEventListener(t,r,i),o=function(){return s.removeEventListener(t,r,i)}}else if(function(e){return e&&\"function\"==typeof e.on&&\"function\"==typeof e.off}(e)){var a=e;e.on(t,r),o=function(){return a.off(t,r)}}else if(function(e){return e&&\"function\"==typeof e.addListener&&\"function\"==typeof e.removeListener}(e)){var u=e;e.addListener(t,r),o=function(){return u.removeListener(t,r)}}else{if(!e||!e.length)throw new TypeError(\"Invalid event target\");for(var c=0,l=e.length;c<l;c++)st(e[c],t,r,n,i)}n.add(o)}function at(e,t,r){return r?at(e,t).pipe(Ee((function(e){return l(e)?r.apply(void 0,e):r(e)}))):new F((function(r){var n,i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){return void r.error(e)}if(o(t))return function(){return t(i,n)}}))}function ut(e,t,r,n,i){var o,s;if(1==arguments.length){var a=e;s=a.initialState,t=a.condition,r=a.iterate,o=a.resultSelector||b,i=a.scheduler}else void 0===n||J(n)?(s=e,o=b,i=n):(s=e,o=n);return new F((function(e){var n=s;if(i)return i.schedule(ct,0,{subscriber:e,iterate:r,condition:t,resultSelector:o,state:n});for(;;){if(t){var a=void 0;try{a=t(n)}catch(t){return void e.error(t)}if(!a){e.complete();break}}var u=void 0;try{u=o(n)}catch(t){return void e.error(t)}if(e.next(u),e.closed)break;try{n=r(n)}catch(t){return void e.error(t)}}}))}function ct(e){var t=e.subscriber,r=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(r){var n=void 0;try{n=r(e.state)}catch(e){return void t.error(e)}if(!n)return void t.complete();if(t.closed)return}var i;try{i=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}}function lt(e,t,r){return void 0===t&&(t=K),void 0===r&&(r=K),rt((function(){return e()?t:r}))}function ht(e){return!l(e)&&e-parseFloat(e)+1>=0}function ft(e,t){return void 0===e&&(e=0),void 0===t&&(t=ge),(!ht(e)||e<0)&&(e=0),t&&\"function\"==typeof t.schedule||(t=ge),new F((function(r){return r.add(t.schedule(gt,e,{subscriber:r,counter:0,period:e})),r}))}function gt(e){var t=e.subscriber,r=e.counter,n=e.period;t.next(r),this.schedule({subscriber:t,counter:r+1,period:n},n)}function pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return J(i)?(n=e.pop(),e.length>1&&\"number\"==typeof e[e.length-1]&&(r=e.pop())):\"number\"==typeof i&&(r=e.pop()),null===n&&1===e.length&&e[0]instanceof F?e[0]:et(r)(z(e,n))}var dt=new F(_e);function vt(){return dt}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return K;var r=e[0],n=e.slice(1);return 1===e.length&&l(r)?yt.apply(void 0,r):new F((function(e){var t=function(){return e.add(yt.apply(void 0,n).subscribe(e))};return Ge(r).subscribe({next:function(t){e.next(t)},error:t,complete:t})}))}function mt(e,t){return new F(t?function(r){var n=Object.keys(e),i=new g;return i.add(t.schedule(_t,0,{keys:n,index:0,subscriber:r,subscription:i,obj:e})),i}:function(t){for(var r=Object.keys(e),n=0;n<r.length&&!t.closed;n++){var i=r[n];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})}function _t(e){var t=e.keys,r=e.index,n=e.subscriber,i=e.subscription,o=e.obj;if(!n.closed)if(r<t.length){var s=t[r];n.next([s,o[s]]),i.add(this.schedule({keys:t,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function bt(e,t){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}function wt(e,t){return function(r){return r.lift(new St(e,t))}}var St=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ft(e,this.predicate,this.thisArg))},e}(),Ft=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return i(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(v);function Et(e,t,r){return[wt(t,r)(new F(Be(e))),wt(bt(t,r))(new F(Be(e)))]}function xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!l(e[0]))return e[0];e=e[0]}return z(e,void 0).lift(new Ct)}var Ct=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new At(e))},e}(),At=function(e){function t(t){var r=e.call(this,t)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return i(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var r=0;r<t&&!this.hasFirst;r++){var n=He(this,e[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},t.prototype.notifyNext=function(e,t,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(t)},t}(Ie);function kt(e,t,r){return void 0===e&&(e=0),new F((function(n){void 0===t&&(t=e,e=0);var i=0,o=e;if(r)return r.schedule(Lt,0,{index:i,count:t,start:e,subscriber:n});for(;;){if(i++>=t){n.complete();break}if(n.next(o++),n.closed)break}}))}function Lt(e){var t=e.start,r=e.index,n=e.count,i=e.subscriber;r>=n?i.complete():(i.next(t),i.closed||(e.index=r+1,e.start=t+1,this.schedule(e)))}function Pt(e,t,r){void 0===e&&(e=0);var n=-1;return ht(t)?n=Number(t)<1?1:Number(t):J(t)&&(r=t),J(r)||(r=ge),new F((function(t){var i=ht(e)?e:+e-r.now();return r.schedule(Tt,i,{index:0,period:n,subscriber:t})}))}function Tt(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}function Rt(e,t){return new F((function(r){var n,i;try{n=e()}catch(e){return void r.error(e)}try{i=t(n)}catch(e){return void r.error(e)}var o=(i?Ge(i):K).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}}))}function Ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return\"function\"==typeof r&&e.pop(),z(e,void 0).lift(new It(r))}var It=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Nt(e,this.resultSelector))},e}(),Nt=function(e){function t(t,r,n){void 0===n&&(n=Object.create(null));var i=e.call(this,t)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector=\"function\"==typeof r?r:void 0,i}return i(t,e),t.prototype._next=function(e){var t=this.iterators;l(e)?t.push(new Mt(e)):\"function\"==typeof e[Me]?t.push(new jt(e[Me]())):t.push(new Dt(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var r=0;r<t;r++){var n=e[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++)if(\"function\"==typeof(s=e[n]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(n=0;n<t;n++){var s,a=(s=e[n]).next();if(s.hasCompleted()&&(i=!0),a.done)return void r.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),i&&r.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v),jt=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return Boolean(e&&e.done)},e}(),Mt=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[Me]=function(){return this},e.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Dt=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(t,e),t.prototype[Me]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return $e(this.observable,new Ye(this))},t}(ze)},7413:function(e,t){var r,n;void 0===(n=\"function\"==typeof(r=function(){function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var r=[\"isConstructor\",\"isEval\",\"isNative\",\"isToplevel\"],n=[\"columnNumber\",\"lineNumber\"],i=[\"fileName\",\"functionName\",\"source\"],o=r.concat(n,i,[\"args\"],[\"evalOrigin\"]);function s(t){if(t)for(var r=0;r<o.length;r++)void 0!==t[o[r]]&&this[\"set\"+e(o[r])](t[o[r]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(\"[object Array]\"!==Object.prototype.toString.call(e))throw new TypeError(\"Args must be an Array\");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError(\"Eval Origin must be an Object or StackFrame\");this.evalOrigin=new s(e)}},toString:function(){var e=this.getFileName()||\"\",t=this.getLineNumber()||\"\",r=this.getColumnNumber()||\"\",n=this.getFunctionName()||\"\";return this.getIsEval()?e?\"[eval] (\"+e+\":\"+t+\":\"+r+\")\":\"[eval]:\"+t+\":\"+r:n?n+\" (\"+e+\":\"+t+\":\"+r+\")\":e+\":\"+t+\":\"+r}},s.fromString=function(e){var t=e.indexOf(\"(\"),r=e.lastIndexOf(\")\"),n=e.substring(0,t),i=e.substring(t+1,r).split(\",\"),o=e.substring(r+1);if(0===o.indexOf(\"@\"))var a=/@(.+?)(?::(\\d+))?(?::(\\d+))?$/.exec(o,\"\"),u=a[1],c=a[2],l=a[3];return new s({functionName:n,args:i||void 0,fileName:u,lineNumber:c||void 0,columnNumber:l||void 0})};for(var a=0;a<r.length;a++)s.prototype[\"get\"+e(r[a])]=t(r[a]),s.prototype[\"set\"+e(r[a])]=function(e){return function(t){this[e]=Boolean(t)}}(r[a]);for(var u=0;u<n.length;u++)s.prototype[\"get\"+e(n[u])]=t(n[u]),s.prototype[\"set\"+e(n[u])]=function(e){return function(t){if(r=t,isNaN(parseFloat(r))||!isFinite(r))throw new TypeError(e+\" must be a Number\");var r;this[e]=Number(t)}}(n[u]);for(var c=0;c<i.length;c++)s.prototype[\"get\"+e(i[c])]=t(i[c]),s.prototype[\"set\"+e(i[c])]=function(e){return function(t){this[e]=String(t)}}(i[c]);return s})?r.apply(t,[]):r)||(e.exports=n)},8887:function(e,t,r){var n,i,o;i=[r(7413)],n=function(e){return{backtrace:function(t){var r=[],n=10;\"object\"==typeof t&&\"number\"==typeof t.maxStackSize&&(n=t.maxStackSize);for(var i=arguments.callee;i&&r.length<n;){for(var o=new Array(i.arguments.length),s=0;s<o.length;++s)o[s]=i.arguments[s];/function(?:\\s+([\\w$]+))+\\s*\\(/.test(i.toString())?r.push(new e({functionName:RegExp.$1||void 0,args:o})):r.push(new e({args:o}));try{i=i.caller}catch(e){break}}return r}}},void 0===(o=n.apply(t,i))||(e.exports=o)},343:function(e,t){var r,n;void 0===(n=\"function\"==typeof(r=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e,t,r,n,i,o){void 0!==e&&this.setFunctionName(e),void 0!==t&&this.setArgs(t),void 0!==r&&this.setFileName(r),void 0!==n&&this.setLineNumber(n),void 0!==i&&this.setColumnNumber(i),void 0!==o&&this.setSource(o)}return t.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(e){this.functionName=String(e)},getArgs:function(){return this.args},setArgs:function(e){if(\"[object Array]\"!==Object.prototype.toString.call(e))throw new TypeError(\"Args must be an Array\");this.args=e},getFileName:function(){return this.fileName},setFileName:function(e){this.fileName=String(e)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(t){if(!e(t))throw new TypeError(\"Line Number must be a Number\");this.lineNumber=Number(t)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(t){if(!e(t))throw new TypeError(\"Column Number must be a Number\");this.columnNumber=Number(t)},getSource:function(){return this.source},setSource:function(e){this.source=String(e)},toString:function(){return(this.getFunctionName()||\"{anonymous}\")+\"(\"+(this.getArgs()||[]).join(\",\")+\")\"+(this.getFileName()?\"@\"+this.getFileName():\"\")+(e(this.getLineNumber())?\":\"+this.getLineNumber():\"\")+(e(this.getColumnNumber())?\":\"+this.getColumnNumber():\"\")}},t})?r.apply(t,[]):r)||(e.exports=n)},671:(e,t,r)=>{var n=r(3835),i=Object.prototype.hasOwnProperty;function o(){this._array=[],this._set=Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},o.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var r=n.toSetString(e),o=i.call(this._set,r),s=this._array.length;o&&!t||this._array.push(e),o||(this._set[r]=s)},o.prototype.has=function(e){var t=n.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){var t=n.toSetString(e);if(i.call(this._set,t))return this._set[t];throw new Error('\"'+e+'\" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error(\"No element indexed by \"+e)},o.prototype.toArray=function(){return this._array.slice()},t.C=o},1860:(e,t,r)=>{var n=r(9900);t.encode=function(e){var t,r=\"\",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,o,s,a,u=e.length,c=0,l=0;do{if(t>=u)throw new Error(\"Expected more digits in base 64 VLQ value.\");if(-1===(o=n.decode(e.charCodeAt(t++))))throw new Error(\"Invalid base64 digit: \"+e.charAt(t-1));i=!!(32&o),c+=(o&=31)<<l,l+=5}while(i);r.value=(a=(s=c)>>1,1&~s?a:-a),r.rest=t}},9900:(e,t)=>{var r=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError(\"Must be between 0 and 63: \"+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},5035:(e,t)=>{function r(e,n,i,o,s,a){var u=Math.floor((n-e)/2)+e,c=s(i,o[u],!0);return 0===c?u:c>0?n-u>1?r(u,n,i,o,s,a):a==t.LEAST_UPPER_BOUND?n<o.length?n:-1:u:u-e>1?r(e,u,i,o,s,a):a==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,o){if(0===n.length)return-1;var s=r(-1,n.length,e,n,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(n[s],n[s-1],!0);)--s;return s}},7238:(e,t,r)=>{var n=r(3835);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,o,s,a;r=e,i=(t=this._last).generatedLine,o=r.generatedLine,s=t.generatedColumn,a=r.generatedColumn,o>i||o==i&&a>=s||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=i},1737:(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,o){if(i<o){var s=i-1;r(e,(l=i,h=o,Math.round(l+Math.random()*(h-l))),o);for(var a=e[o],u=i;u<o;u++)t(e[u],a)<=0&&r(e,s+=1,u);r(e,s+1,u);var c=s+1;n(e,t,i,c-1),n(e,t,c+1,o)}var l,h}t.g=function(e,t){n(e,t,0,e.length-1)}},1606:(e,t,r)=>{var n=r(3835),i=r(5035),o=r(671).C,s=r(1860),a=r(1737).g;function u(e){var t=e;return\"string\"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}'/,\"\"))),null!=t.sections?new h(t):new c(t)}function c(e){var t=e;\"string\"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}'/,\"\")));var r=n.getArg(t,\"version\"),i=n.getArg(t,\"sources\"),s=n.getArg(t,\"names\",[]),a=n.getArg(t,\"sourceRoot\",null),u=n.getArg(t,\"sourcesContent\",null),c=n.getArg(t,\"mappings\"),l=n.getArg(t,\"file\",null);if(r!=this._version)throw new Error(\"Unsupported version: \"+r);i=i.map(String).map(n.normalize).map((function(e){return a&&n.isAbsolute(a)&&n.isAbsolute(e)?n.relative(a,e):e})),this._names=o.fromArray(s.map(String),!0),this._sources=o.fromArray(i,!0),this.sourceRoot=a,this.sourcesContent=u,this._mappings=c,this.file=l}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function h(e){var t=e;\"string\"==typeof e&&(t=JSON.parse(e.replace(/^\\)\\]\\}'/,\"\")));var r=n.getArg(t,\"version\"),i=n.getArg(t,\"sections\");if(r!=this._version)throw new Error(\"Unsupported version: \"+r);this._sources=new o,this._names=new o;var s={line:-1,column:0};this._sections=i.map((function(e){if(e.url)throw new Error(\"Support for url field in sections not implemented.\");var t=n.getArg(e,\"offset\"),r=n.getArg(t,\"line\"),i=n.getArg(t,\"column\");if(r<s.line||r===s.line&&i<s.column)throw new Error(\"Section offsets must be ordered and non-overlapping.\");return s=t,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new u(n.getArg(e,\"map\"))}}))}u.fromSourceMap=function(e){return c.fromSourceMap(e)},u.prototype._version=3,u.prototype.__generatedMappings=null,Object.defineProperty(u.prototype,\"_generatedMappings\",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),u.prototype.__originalMappings=null,Object.defineProperty(u.prototype,\"_originalMappings\",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),u.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return\";\"===r||\",\"===r},u.prototype._parseMappings=function(e,t){throw new Error(\"Subclasses must implement _parseMappings\")},u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,u.prototype.eachMapping=function(e,t,r){var i,o=t||null;switch(r||u.GENERATED_ORDER){case u.GENERATED_ORDER:i=this._generatedMappings;break;case u.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error(\"Unknown order of iteration.\")}var s=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=s&&(t=n.join(s,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,o)},u.prototype.allGeneratedPositionsFor=function(e){var t=n.getArg(e,\"line\"),r={source:n.getArg(e,\"source\"),originalLine:t,originalColumn:n.getArg(e,\"column\",0)};if(null!=this.sourceRoot&&(r.source=n.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var o=[],s=this._findMapping(r,this._originalMappings,\"originalLine\",\"originalColumn\",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)o.push({line:n.getArg(a,\"generatedLine\",null),column:n.getArg(a,\"generatedColumn\",null),lastColumn:n.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)o.push({line:n.getArg(a,\"generatedLine\",null),column:n.getArg(a,\"generatedColumn\",null),lastColumn:n.getArg(a,\"lastGeneratedColumn\",null)}),a=this._originalMappings[++s]}return o},t.SourceMapConsumer=u,c.prototype=Object.create(u.prototype),c.prototype.consumer=u,c.fromSourceMap=function(e){var t=Object.create(c.prototype),r=t._names=o.fromArray(e._names.toArray(),!0),i=t._sources=o.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),u=t.__generatedMappings=[],h=t.__originalMappings=[],f=0,g=s.length;f<g;f++){var p=s[f],d=new l;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=i.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=r.indexOf(p.name)),h.push(d)),u.push(d)}return a(t.__originalMappings,n.compareByOriginalPositions),t},c.prototype._version=3,Object.defineProperty(c.prototype,\"sources\",{get:function(){return this._sources.toArray().map((function(e){return null!=this.sourceRoot?n.join(this.sourceRoot,e):e}),this)}}),c.prototype._parseMappings=function(e,t){for(var r,i,o,u,c,h=1,f=0,g=0,p=0,d=0,v=0,y=e.length,m=0,_={},b={},w=[],S=[];m<y;)if(\";\"===e.charAt(m))h++,m++,f=0;else if(\",\"===e.charAt(m))m++;else{for((r=new l).generatedLine=h,u=m;u<y&&!this._charIsMappingSeparator(e,u);u++);if(o=_[i=e.slice(m,u)])m+=i.length;else{for(o=[];m<u;)s.decode(e,m,b),c=b.value,m=b.rest,o.push(c);if(2===o.length)throw new Error(\"Found a source, but no line and column\");if(3===o.length)throw new Error(\"Found a source and line, but no column\");_[i]=o}r.generatedColumn=f+o[0],f=r.generatedColumn,o.length>1&&(r.source=d+o[1],d+=o[1],r.originalLine=g+o[2],g=r.originalLine,r.originalLine+=1,r.originalColumn=p+o[3],p=r.originalColumn,o.length>4&&(r.name=v+o[4],v+=o[4])),S.push(r),\"number\"==typeof r.originalLine&&w.push(r)}a(S,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,a(w,n.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError(\"Line must be greater than or equal to 1, got \"+e[r]);if(e[n]<0)throw new TypeError(\"Column must be greater than or equal to 0, got \"+e[n]);return i.search(e,t,o,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,\"line\"),generatedColumn:n.getArg(e,\"column\")},r=this._findMapping(t,this._generatedMappings,\"generatedLine\",\"generatedColumn\",n.compareByGeneratedPositionsDeflated,n.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=n.getArg(i,\"source\",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=n.join(this.sourceRoot,o)));var s=n.getArg(i,\"name\",null);return null!==s&&(s=this._names.at(s)),{source:o,line:n.getArg(i,\"originalLine\",null),column:n.getArg(i,\"originalColumn\",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=n.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=n.urlParse(this.sourceRoot))){var i=e.replace(/^file:\\/\\//,\"\");if(\"file\"==r.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||\"/\"==r.path)&&this._sources.has(\"/\"+e))return this.sourcesContent[this._sources.indexOf(\"/\"+e)]}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=n.getArg(e,\"source\");if(null!=this.sourceRoot&&(t=n.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:n.getArg(e,\"line\"),originalColumn:n.getArg(e,\"column\")},i=this._findMapping(r,this._originalMappings,\"originalLine\",\"originalColumn\",n.compareByOriginalPositions,n.getArg(e,\"bias\",u.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:n.getArg(o,\"generatedLine\",null),column:n.getArg(o,\"generatedColumn\",null),lastColumn:n.getArg(o,\"lastGeneratedColumn\",null)}}return{line:null,column:null,lastColumn:null}},h.prototype=Object.create(u.prototype),h.prototype.constructor=u,h.prototype._version=3,Object.defineProperty(h.prototype,\"sources\",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),h.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,\"line\"),generatedColumn:n.getArg(e,\"column\")},r=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),o=this._sections[r];return o?o.consumer.originalPositionFor({line:t.generatedLine-(o.generatedOffset.generatedLine-1),column:t.generatedColumn-(o.generatedOffset.generatedLine===t.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},h.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('\"'+e+'\" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(n.getArg(e,\"source\"))){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},h.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var u=o[s],c=i.consumer._sources.at(u.source);null!==i.consumer.sourceRoot&&(c=n.join(i.consumer.sourceRoot,c)),this._sources.add(c),c=this._sources.indexOf(c);var l=i.consumer._names.at(u.name);this._names.add(l),l=this._names.indexOf(l);var h={source:c,generatedLine:u.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(i.generatedOffset.generatedLine===u.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(h),\"number\"==typeof h.originalLine&&this.__originalMappings.push(h)}a(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),a(this.__originalMappings,n.compareByOriginalPositions)}},1945:(e,t,r)=>{var n=r(1860),i=r(3835),o=r(671).C,s=r(7238).P;function a(e){e||(e={}),this._file=i.getArg(e,\"file\",null),this._sourceRoot=i.getArg(e,\"sourceRoot\",null),this._skipValidation=i.getArg(e,\"skipValidation\",!1),this._sources=new o,this._names=new o,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},a.prototype.addMapping=function(e){var t=i.getArg(e,\"generated\"),r=i.getArg(e,\"original\",null),n=i.getArg(e,\"source\",null),o=i.getArg(e,\"name\",null);this._skipValidation||this._validateMapping(t,r,n,o),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:o})},a.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\\'s \"file\" property. Both were omitted.');n=e.file}var s=this._sourceRoot;null!=s&&(n=i.relative(s,n));var a=new o,u=new o;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=r&&(t.source=i.join(r,t.source)),null!=s&&(t.source=i.relative(s,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)}),this),this._sources=a,this._names=u,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=s&&(t=i.relative(s,t)),this.setSourceContent(t,n))}),this)},a.prototype._validateMapping=function(e,t,r,n){if((!(e&&\"line\"in e&&\"column\"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&\"line\"in e&&\"column\"in e&&t&&\"line\"in t&&\"column\"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error(\"Invalid mapping: \"+JSON.stringify({generated:e,source:r,original:t,name:n}))},a.prototype._serializeMappings=function(){for(var e,t,r,o,s=0,a=1,u=0,c=0,l=0,h=0,f=\"\",g=this._mappings.toArray(),p=0,d=g.length;p<d;p++){if(e=\"\",(t=g[p]).generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=\";\",a++;else if(p>0){if(!i.compareByGeneratedPositionsInflated(t,g[p-1]))continue;e+=\",\"}e+=n.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=n.encode(o-h),h=o,e+=n.encode(t.originalLine-1-c),c=t.originalLine-1,e+=n.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-l),l=r)),f+=e}return f},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=a},1171:(e,t,r)=>{var n=r(1945).SourceMapGenerator,i=r(3835),o=/(\\r?\\n)/,s=\"$$$isSourceNode$$$\";function a(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[s]=!0,null!=n&&this.add(n)}a.fromStringWithSourceMap=function(e,t,r){var n=new a,s=e.split(o),u=function(){return s.shift()+(s.shift()||\"\")},c=1,l=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(c<e.generatedLine)){var t=(r=s[0]).substr(0,e.generatedColumn-l);return s[0]=r.substr(e.generatedColumn-l),l=e.generatedColumn,f(h,t),void(h=e)}f(h,u()),c++,l=0}for(;c<e.generatedLine;)n.add(u()),c++;if(l<e.generatedColumn){var r=s[0];n.add(r.substr(0,e.generatedColumn)),s[0]=r.substr(e.generatedColumn),l=e.generatedColumn}h=e}),this),s.length>0&&(h&&f(h,u()),n.add(s.join(\"\"))),t.sources.forEach((function(e){var o=t.sourceContentFor(e);null!=o&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,o))})),n;function f(e,t){if(null===e||void 0===e.source)n.add(t);else{var o=r?i.join(r,e.source):e.source;n.add(new a(e.originalLine,e.originalColumn,o,t,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);e&&this.children.push(e)}return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&\"string\"!=typeof e)throw new TypeError(\"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \"+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[s]?t.walk(e):\"\"!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[s]?r.replaceRight(e,t):\"string\"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push(\"\".replace(e,t)),this},a.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},a.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(i.fromSetString(n[t]),this.sourceContents[n[t]])},a.prototype.toString=function(){var e=\"\";return this.walk((function(t){e+=t})),e},a.prototype.toStringWithSourceMap=function(e){var t={code:\"\",line:1,column:0},r=new n(e),i=!1,o=null,s=null,a=null,u=null;return this.walk((function(e,n){t.code+=e,null!==n.source&&null!==n.line&&null!==n.column?(o===n.source&&s===n.line&&a===n.column&&u===n.name||r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name}),o=n.source,s=n.line,a=n.column,u=n.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),o=null,i=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(o=null,i=!1):i&&r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}},t.SourceNode=a},3835:(e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('\"'+t+'\" is a required argument.')};var r=/^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.]*)(?::(\\d+))?(\\S*)$/,n=/^data:.+\\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t=\"\";return e.scheme&&(t+=e.scheme+\":\"),t+=\"//\",e.auth&&(t+=e.auth+\"@\"),e.host&&(t+=e.host),e.port&&(t+=\":\"+e.port),e.path&&(t+=e.path),t}function s(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var s,a=t.isAbsolute(r),u=r.split(/\\/+/),c=0,l=u.length-1;l>=0;l--)\".\"===(s=u[l])?u.splice(l,1):\"..\"===s?c++:c>0&&(\"\"===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return\"\"===(r=u.join(\"/\"))&&(r=a?\"/\":\".\"),n?(n.path=r,o(n)):r}t.urlParse=i,t.urlGenerate=o,t.normalize=s,t.join=function(e,t){\"\"===e&&(e=\".\"),\"\"===t&&(t=\".\");var r=i(t),a=i(e);if(a&&(e=a.path||\"/\"),r&&!r.scheme)return a&&(r.scheme=a.scheme),o(r);if(r||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var u=\"/\"===t.charAt(0)?t:s(e.replace(/\\/+$/,\"\")+\"/\"+t);return a?(a.path=u,o(a)):u},t.isAbsolute=function(e){return\"/\"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");for(var r=0;0!==t.indexOf(e+\"/\");){var n=e.lastIndexOf(\"/\");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\\/]+:\\/)?\\/*$/))return t;++r}return Array(r+1).join(\"../\")+t.substr(e.length+1)};var a=!(\"__proto__\"in Object.create(null));function u(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:e>t?1:-1}t.toSetString=a?u:function(e){return c(e)?\"$\"+e:e},t.fromSetString=a?u:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!=(n=e.source-t.source)||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)}},65:(e,t,r)=>{t.SourceMapGenerator=r(1945).SourceMapGenerator,t.SourceMapConsumer=r(1606).SourceMapConsumer,t.SourceNode=r(1171).SourceNode},7885:function(e,t,r){var n,i,o;i=[r(65),r(343)],void 0===(o=\"function\"==typeof(n=function(e,t){function r(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.open(\"get\",e),n.onerror=r,n.onreadystatechange=function(){4===n.readyState&&(n.status>=200&&n.status<300?t(n.responseText):r(new Error(\"HTTP status: \"+n.status+\" retrieving \"+e)))},n.send()}))}function n(e){if(\"undefined\"!=typeof window&&window.atob)return window.atob(e);throw new Error(\"You must supply a polyfill for window.atob in this environment\")}function i(e){if(\"object\"!=typeof e)throw new TypeError(\"Given StackFrame is not an object\");if(\"string\"!=typeof e.fileName)throw new TypeError(\"Given file name is not a String\");if(\"number\"!=typeof e.lineNumber||e.lineNumber%1!=0||e.lineNumber<1)throw new TypeError(\"Given line number must be a positive integer\");if(\"number\"!=typeof e.columnNumber||e.columnNumber%1!=0||e.columnNumber<0)throw new TypeError(\"Given column number must be a non-negative integer\");return!0}return function o(s){if(!(this instanceof o))return new o(s);s=s||{},this.sourceCache=s.sourceCache||{},this.ajax=s.ajax||r,this._atob=s.atob||n,this._get=function(e){return new Promise(function(t,r){var n=\"data:\"===e.substr(0,5);if(this.sourceCache[e])t(this.sourceCache[e]);else if(s.offline&&!n)r(new Error(\"Cannot make network requests in offline mode\"));else if(n){var i=e.match(/^data:application\\/json;([\\w=:\"-]+;)*base64,/);if(i){var o=i[0].length,a=e.substr(o),u=this._atob(a);this.sourceCache[e]=u,t(u)}else r(new Error(\"The encoding of the inline sourcemap is not supported\"))}else{var c=this.ajax(e,{method:\"get\"});this.sourceCache[e]=c,c.then(t,r)}}.bind(this))},this.pinpoint=function(e){return new Promise(function(t,r){this.getMappedLocation(e).then(function(e){function r(){t(e)}this.findFunctionName(e).then(t,r).catch(r)}.bind(this),r)}.bind(this))},this.findFunctionName=function(e){return new Promise(function(r,n){i(e),this._get(e.fileName).then((function(n){var i=e.lineNumber,o=e.columnNumber,s=function(e,t){for(var r,n=/function\\s+([^(]*?)\\s*\\(([^)]*)\\)/,i=/['\"]?([$_A-Za-z][$_A-Za-z0-9]*)['\"]?\\s*[:=]\\s*function\\b/,o=/['\"]?([$_A-Za-z][$_A-Za-z0-9]*)['\"]?\\s*[:=]\\s*(?:eval|new Function)\\b/,s=e.split(\"\\n\"),a=\"\",u=Math.min(t,20),c=0;c<u;++c){var l=s[t-c-1],h=l.indexOf(\"//\");if(h>=0&&(l=l.substr(0,h)),l){if(a=l+a,(r=i.exec(a))&&r[1])return r[1];if((r=n.exec(a))&&r[1])return r[1];if((r=o.exec(a))&&r[1])return r[1]}}}(n,i);r(s?new t(s,e.args,e.fileName,i,o):e)}),n).catch(n)}.bind(this))},this.getMappedLocation=function(r){return new Promise(function(n,o){(function(){if(\"function\"!=typeof Object.defineProperty||\"function\"!=typeof Object.create)throw new Error(\"Unable to consume source maps in older browsers\")})(),i(r);var s=this.sourceCache,a=r.fileName;this._get(a).then(function(i){var u=function(e){var t=/\\/\\/[#@] ?sourceMappingURL=([^\\s'\"]+)\\s*$/.exec(e);if(t&&t[1])return t[1];throw new Error(\"sourceMappingURL not found\")}(i),c=\"data:\"===u.substr(0,5),l=a.substring(0,a.lastIndexOf(\"/\")+1);\"/\"===u[0]||c||/^https?:\\/\\/|^\\/\\//i.test(u)||(u=l+u),this._get(u).then((function(i){\"string\"==typeof i&&(i=function(e){if(\"undefined\"!=typeof JSON&&JSON.parse)return JSON.parse(e);throw new Error(\"You must supply a polyfill for JSON.parse in this environment\")}(i.replace(/^\\)\\]\\}'/,\"\"))),void 0===i.sourceRoot&&(i.sourceRoot=l),function(r,n,i){return new Promise((function(o,s){var a=new e.SourceMapConsumer(n),u=a.originalPositionFor({line:r.lineNumber,column:r.columnNumber});if(u.source){var c=a.sourceContentFor(u.source);c&&(i[u.source]=c),o(new t(u.name||r.functionName,r.args,u.source,u.line,u.column))}else s(new Error(\"Could not get original source for given stackframe and source map\"))}))}(r,i,s).then(n).catch((function(){n(r)}))}),o).catch(o)}.bind(this),o).catch(o)}.bind(this))}}})?n.apply(t,i):n)||(e.exports=o)},8139:function(e,t,r){var n,i,o;i=[r(4263),r(8887),r(7885)],n=function(e,t,r){var n={filter:function(e){return-1===(e.functionName||\"\").indexOf(\"StackTrace$$\")&&-1===(e.functionName||\"\").indexOf(\"ErrorStackParser$$\")&&-1===(e.functionName||\"\").indexOf(\"StackTraceGPS$$\")&&-1===(e.functionName||\"\").indexOf(\"StackGenerator$$\")},sourceCache:{}},i=function(){try{throw new Error}catch(e){return e}};function o(e,t){var r={};return[e,t].forEach((function(e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r})),r}function s(e){return e.stack||e[\"opera#sourceloc\"]}function a(e,t){return\"function\"==typeof t?e.filter(t):e}return{get:function(e){var t=i();return s(t)?this.fromError(t,e):this.generateArtificially(e)},getSync:function(r){r=o(n,r);var u=i();return a(s(u)?e.parse(u):t.backtrace(r),r.filter)},fromError:function(t,i){i=o(n,i);var s=new r(i);return new Promise(function(r){var n=a(e.parse(t),i.filter);r(Promise.all(n.map((function(e){return new Promise((function(t){function r(){t(e)}s.pinpoint(e).then(t,r).catch(r)}))}))))}.bind(this))},generateArtificially:function(e){e=o(n,e);var r=t.backtrace(e);return\"function\"==typeof e.filter&&(r=r.filter(e.filter)),Promise.resolve(r)},instrument:function(e,t,r,n){if(\"function\"!=typeof e)throw new Error(\"Cannot instrument non-function object\");if(\"function\"==typeof e.__stacktraceOriginalFn)return e;var i=function(){try{return this.get().then(t,r).catch(r),e.apply(n||this,arguments)}catch(e){throw s(e)&&this.fromError(e).then(t,r).catch(r),e}}.bind(this);return i.__stacktraceOriginalFn=e,i},deinstrument:function(e){if(\"function\"!=typeof e)throw new Error(\"Cannot de-instrument non-function object\");return\"function\"==typeof e.__stacktraceOriginalFn?e.__stacktraceOriginalFn:e},report:function(e,t,r){return new Promise((function(n,i){var o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=function(){4===o.readyState&&(o.status>=200&&o.status<400?n(o.responseText):i(new Error(\"POST to \"+t+\" failed with status: \"+o.status)))},o.open(\"post\",t),o.setRequestHeader(\"Content-Type\",\"application/json\");var s={stack:e};void 0!==r&&(s.message=r),o.send(JSON.stringify(s))}))}}},void 0===(o=n.apply(t,i))||(e.exports=o)},2615:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0}),t.OidcSecurityServiceFactory=void 0,r(4741);const o=r(659),s=r(8040),a=r(548),u=r(8720),c=r(4683);let l=class{constructor(e,t,r){this.configService=e,this.userMgrFactory=t,this.logger=r}buid(){let e;try{this.configService.configuration.isAemClient?(this.logger.info(\"Creating OIDC Client For AEM\"),e=this.buildClient()):window.top.useSharedClient?e=this.getSharedClient():(this.logger.info(\"Creating Stand Alone OIDC Client.\"),e=this.buildClient())}catch(t){this.logger.error(\"An exception occured when creating the shared OIDC client. Creating a standalone OIDC client as a fallback.\",new Error(`${JSON.stringify(t)}`)),e=this.buildClient()}return e}buildClient(){return new u.OidcSecurityService(this.configService,this.userMgrFactory,this.logger)}getSharedClient(){var e,t;const r=(null===(t=null===(e=window.top)||void 0===e?void 0:e.identityManager)||void 0===t?void 0:t.client)||null;if(!r)throw new Error(\"Failed to resolve shared OIDC Client\");return this.logger.info(\"Using Shared OIDC Client\"),r}};t.OidcSecurityServiceFactory=l,t.OidcSecurityServiceFactory=l=n([(0,o.singleton)(),i(\"design:paramtypes\",[a.OidcConfigService,c.UserManagerFactory,s.Logger])],l)},4683:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0}),t.UserManagerFactory=void 0,r(4741);const o=r(659),s=r(6405),a=r(548);let u=class{constructor(e){this.configService=e}build(){const e=this.buildUserManagerSettings(this.configService.configuration);return new s.UserManager(e)}buildUserManagerSettings(e){return{authority:e.stsServer,client_id:e.clientId,redirect_uri:e.redirectUrl,post_logout_redirect_uri:e.postLogoutRedirectUri,response_type:e.responseType,scope:e.scope,loadUserInfo:e.autoUserinfo,automaticSilentRenew:e.silentRenew,accessTokenExpiringNotificationTime:e.renewTimeBeforeTokenExpiresInSeconds,silent_redirect_uri:e.silentRenewUrl,silentRequestTimeout:e.silentRenewTimeoutInSeconds?1e3*e.silentRenewTimeoutInSeconds:2e4,clockSkew:e.maxIdTokenIatOffsetAllowedInSeconds,checkSessionInterval:e.tokenRefreshInSeconds?1e3*e.tokenRefreshInSeconds:3e3,monitorSession:!0}}};t.UserManagerFactory=u,t.UserManagerFactory=u=n([(0,o.singleton)(),i(\"design:paramtypes\",[a.OidcConfigService])],u)},8040:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0}),t.Logger=void 0,r(4741);const o=r(659),s=r(6015);let a=class{constructor(){this.staticCategory=\"oidc-security-logger\",s.CategoryServiceFactory.setDefaultConfiguration(new s.CategoryConfiguration(s.LogLevel.Trace)),this.logger=new s.Category(this.staticCategory)}trace(e){this.logger.trace(e)}debug(e){this.logger.debug(e)}info(e){this.logger.info(e)}warn(e){this.logger.warn(e)}error(e,t){t?this.logger.error(e,t):this.logger.error(e,null)}fatal(e,t){t?this.logger.fatal(e,t):this.logger.fatal(e,null)}};t.Logger=a,t.Logger=a=n([(0,o.singleton)(),i(\"design:paramtypes\",[])],a)},548:function(e,t,r){var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.OidcConfigService=void 0,r(4741);const s=r(659),a=r(8040);let u=class{constructor(e){this.logger=e,this.requiredConfig=[\"stsServer\",\"clientId\",\"redirectUrl\",\"postLogoutRedirectUri\"]}get configuration(){if(!this.internalConfig)throw new Error(\"OIDC Configuration not set, call OidcConfigService.withConfig during initialization\");return this.internalConfig}withConfig(e){return Object.keys((null==e?void 0:e.customParams)||{}).includes(\"nonce\")||(e.customParams=Object.assign((null==e?void 0:e.customParams)||{},{nonce:\"sDweVewKLsd\"})),new Promise(((t,r)=>{this.setInternalConfig(e).then((()=>{t()})).catch((e=>{const t=e;this.logger.fatal(\"OIDC Configuration Is Invalid\",t),r(e)}))}))}getStsServerInfo(e){return o(this,void 0,void 0,(function*(){const t=yield window.fetch(e);if(t.ok)return yield t.json();throw new Error(`Failed to resolve STS server info. ${t.statusText}`)}))}validateInternalConfig(){this.requiredConfig.forEach((e=>{const t=this.internalConfig;if(!Object.keys(t).includes(e))throw new Error(e+\" is required and missing from your config!\")}))}setInternalConfig(e){return o(this,void 0,void 0,(function*(){if(!e.stsServerInfoLookupUrl)throw new Error(\"STS Server Info Lookup URL not defined\");{this.logger.info(\"Looking Up STS Server Information\");const t=yield this.getStsServerInfo(e.stsServerInfoLookupUrl);this.internalConfig=Object.assign(e,{stsServer:t.issuerURI}),this.logger.info(`Retreived STS Server: ${this.internalConfig.stsServer}`),this.validateInternalConfig()}}))}};t.OidcConfigService=u,t.OidcConfigService=u=n([(0,s.singleton)(),i(\"design:paramtypes\",[a.Logger])],u)},3374:(e,t)=>{var r;Object.defineProperty(t,\"__esModule\",{value:!0}),t.LogLevel=void 0,function(e){e[e.None=0]=\"None\",e[e.Debug=1]=\"Debug\",e[e.Warn=2]=\"Warn\",e[e.Error=3]=\"Error\"}(r||(t.LogLevel=r={}))},8720:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.OidcSecurityService=void 0,r(4741);const n=r(9578);t.OidcSecurityService=class{constructor(e,t,r){this.configService=e,this.userMgrFactory=t,this.logger=r,this.user=null,this.awaitingKey=\"IM_IsAwaitingCallback\",this.maxWaitDelay=null,this.userManager=this.buildUserManager(),this.initialize(),this.setUser()}get userData$(){return new n.Observable((e=>{this.executePromiseAfterCallback((()=>this.setUser().then((()=>{if(this.user)return this.user.profile;throw new Error(\"User Information Not Present\")})))).subscribe((t=>e.next(t)),(t=>e.error(t)),(()=>e.complete()))}))}get isAuthenticated$(){return new n.Observable((e=>{this.executePromiseAfterCallback((()=>this.setUser().then((()=>null!=this.user&&!this.user.expired)))).subscribe((t=>e.next(t)),(t=>e.error(t)),(()=>e.complete()))}))}get awaitingCallback(){const e=sessionStorage.getItem(this.awaitingKey);return!!e&&JSON.parse(e)}set awaitingCallback(e){sessionStorage.setItem(this.awaitingKey,JSON.stringify(e))}authorize(e){const t=this.mapAuthOptionsToArgs(e);this.userManager.signinRedirect(t).then((()=>{this.awaitingCallback=!0,this.logger.info(\"Redirecting to Login Screen\")})).catch((e=>{this.awaitingCallback=!1,this.logger.error(\"Failed to authorize user\",e)}))}checkAuth(){return new n.Observable((e=>{this.executePromiseAfterCallback((()=>this.setUser().then((()=>null!=this.user&&!this.user.expired)))).subscribe((t=>e.next(t)),(t=>e.error(t)),(()=>e.complete()))}))}getToken(){var e;return(null===(e=this.user)||void 0===e?void 0:e.access_token)||\"\"}getIdToken(){var e;return(null===(e=this.user)||void 0===e?void 0:e.id_token)||\"\"}logoff(e){const t=this.mapAuthOptionsToArgs(e);this.userManager.signoutRedirect(t).then((()=>{this.logger.info(\"Logging user off\")})).catch((e=>{this.logger.error(\"Failed to log user off\",e)}))}silentLogin(e){const t=this.mapAuthOptionsToArgs(e);return new Promise(((e,r)=>{this.awaitingCallback=!0,this.userManager.signinSilent(t).then((t=>{if(t)this.setUser(t).then((()=>{e()})).catch((e=>r(e)));else{const e=new Error(\"Failed to resolve user during silent login\");r(e)}})).catch((e=>r(e)))})).catch((e=>{this.logger.error(\"Silent Login Failed\",e),this.awaitingCallback=!1}))}executePromiseAfterCallback(e){const t=new n.Observable((t=>{this.logger.info(\"Awaiting OKTA Callback\"),setTimeout((()=>{this.executePromiseAfterCallback(e).subscribe((e=>t.next(e)),(e=>t.error(e)),(()=>t.complete()))}),2e3)}));return new n.Observable((r=>{this.isSafeToProceed()?e().then((e=>{r.next(e)})).catch((e=>{r.error(e)})).finally((()=>r.complete())):t.subscribe((e=>r.next(e)),(e=>r.error(e)),(()=>r.complete()))}))}isSafeToProceed(){return null!=this.maxWaitDelay&&new Date>this.maxWaitDelay&&(this.logger.info(\"Awaiting OKTA Callback Timed Out\"),this.maxWaitDelay=null,this.awaitingCallback=!1),!this.awaitingCallback}initialize(){this.checkForOktaLoginError(),this.setDelay()}checkForOktaLoginError(){var e;const t=new URLSearchParams(window.location.search),r=t.get(\"error\");if(\"login_required\"===r){this.awaitingCallback=!1;const n=null!==(e=t.get(\"error_description\"))&&void 0!==e?e:\"Not Provided\";this.logger.error(`Error occurred during login attempt.\\nError: ${r} \\nError Description: ${n} `)}}setDelay(){var e;if(this.awaitingCallback&&null==this.maxWaitDelay){const t=null!==(e=this.configService.configuration.maxWaitDelayInSecods)&&void 0!==e?e:1;this.maxWaitDelay=new Date((new Date).getTime()+1e3*t)}}mapAuthOptionsToArgs(e){var t,r;const n={extraQueryParams:null!==(t=this.configService.configuration.customParams)&&void 0!==t?t:{}};return(null==e?void 0:e.customParams)&&((null===(r=e.customParams)||void 0===r?void 0:r.prompt)&&(n.prompt=e.customParams.prompt,delete e.customParams.prompt),Object.assign(n.extraQueryParams,e.customParams)),(null==e?void 0:e.silentRequestTimeoutInMS)&&(n.silentRequestTimeout=e.silentRequestTimeoutInMS),(null==e?void 0:e.postLogoutRedirectUri)&&(n.post_logout_redirect_uri=e.postLogoutRedirectUri),n}setUser(e){return new Promise(((t,r)=>{new Promise(((t,r)=>{e?t(e):this.userManager.getUser().then((e=>{e?(this.logger.info(\"User Information Loaded\"),this.logger.trace(JSON.stringify(e)),t(e)):(this.logger.trace(\"User Information NOT Loaded\"),t(null))})).catch((e=>{this.logger.error(\"Failed To Load User Information\",e),r(e)}))})).then((e=>{e?(this.user=e,this.awaitingCallback=!1,this.logger.info(\"User Information Set\")):this.logger.info(\"User Information Not Available\")})).catch((e=>r(e))).finally((()=>t()))}))}subscribeEvents(e){e.events.addUserLoaded((e=>{this.logger.trace(\"Add User Loaded Event Successful\"),this.setUser(e).catch((e=>this.logger.fatal(\"User Loaded Event Handling Failed\",e)))})),e.events.addSilentRenewError((e=>{this.logger.error(\"Silent Renewal Failed\",e)}))}buildUserManager(){const e=this.userMgrFactory.build();return e.signinCallback().then((e=>{this.logger.info(\"SigninCallback Executed\"),this.setUser(e).catch((e=>this.logger.fatal(\"SigninCallback Handling Failed\",e)))})).catch((e=>{this.logger.warn(\"SigninCallback Failed\"),console.warn(e)})),this.configService.configuration.silentRenew&&e.startSilentRenew(),this.subscribeEvents(e),e}}},659:(e,t,r)=>{var n;r.r(t),r.d(t,{Lifecycle:()=>i,autoInjectable:()=>R,container:()=>T,delay:()=>v,inject:()=>O,injectAll:()=>M,injectAllWithTransform:()=>D,injectWithTransform:()=>U,injectable:()=>I,instanceCachingFactory:()=>H,instancePerContainerCachingFactory:()=>V,isClassProvider:()=>g,isFactoryProvider:()=>p,isNormalToken:()=>y,isTokenProvider:()=>b,isValueProvider:()=>w,predicateAwareClassFactory:()=>K,registry:()=>N,scoped:()=>B,singleton:()=>j}),function(e){e[e.Transient=0]=\"Transient\",e[e.Singleton=1]=\"Singleton\",e[e.ResolutionScoped=2]=\"ResolutionScoped\",e[e.ContainerScoped=3]=\"ContainerScoped\"}(n||(n={}));const i=n;var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},o(e,t)};function s(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e){var t=\"function\"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function u(e,t){var r=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}var l=\"injectionTokens\";function h(e){var t=Reflect.getMetadata(\"design:paramtypes\",e)||[],r=Reflect.getOwnMetadata(l,e)||{};return Object.keys(r).forEach((function(e){t[+e]=r[e]})),t}function f(e,t){return function(r,n,i){var o=Reflect.getOwnMetadata(l,r)||{};o[i]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata(l,o,r)}}function g(e){return!!e.useClass}function p(e){return!!e.useFactory}var d=function(){function e(e){this.wrap=e,this.reflectMethods=[\"get\",\"getPrototypeOf\",\"setPrototypeOf\",\"getOwnPropertyDescriptor\",\"defineProperty\",\"has\",\"set\",\"deleteProperty\",\"apply\",\"construct\",\"ownKeys\"]}return e.prototype.createProxy=function(e){var t,r=this,n=!1;return new Proxy({},this.createHandler((function(){return n||(t=e(r.wrap()),n=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(r){t[r]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t[0]=e(),Reflect[r].apply(void 0,c(t))}})),t},e}();function v(e){if(void 0===e)throw new Error(\"Attempt to `delay` undefined. Constructor must be wrapped in a callback\");return new d(e)}function y(e){return\"string\"==typeof e||\"symbol\"==typeof e}function m(e){return\"object\"==typeof e&&\"token\"in e&&\"multiple\"in e}function _(e){return\"object\"==typeof e&&\"token\"in e&&\"transform\"in e}function b(e){return!!e.useToken}function w(e){return null!=e.useValue}const S=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(S),E=function(){this.scopedResolutions=new Map};function x(e,t,r){var n,i,o,s,a=u(e.toString().match(/constructor\\(([\\w, ]+)\\)/)||[],2)[1];return n=\"Cannot inject the dependency \"+(s=t,null===(o=void 0===a?null:a)?\"at position #\"+s:'\"'+o.split(\",\")[s].trim()+'\" at position #'+s)+' of \"'+e.name+'\" constructor. Reason:',void 0===i&&(i=\" \"),c([n],r.message.split(\"\\n\").map((function(e){return i+e}))).join(\"\\n\")}var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(S),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t}(S);const k=function(){this.preResolution=new C,this.postResolution=new A};var L=new Map,P=function(){function e(e){this.parent=e,this._registry=new F,this.interceptors=new k,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(e,t,r){var n;if(void 0===r&&(r={lifecycle:i.Transient}),this.ensureNotDisposed(),n=function(e){return g(e)||w(e)||b(e)||p(e)}(t)?t:{useClass:t},b(n))for(var o=[e],s=n;null!=s;){var a=s.useToken;if(o.includes(a))throw new Error(\"Token registration cycle detected! \"+c(o,[a]).join(\" -> \"));o.push(a);var u=this._registry.get(a);s=u&&b(u.provider)?u.provider:null}if((r.lifecycle===i.Singleton||r.lifecycle==i.ContainerScoped||r.lifecycle==i.ResolutionScoped)&&(w(n)||p(n)))throw new Error('Cannot use lifecycle \"'+i[r.lifecycle]+'\" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:n,options:r}),this},e.prototype.registerType=function(e,t){return this.ensureNotDisposed(),y(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(this.ensureNotDisposed(),y(e)){if(y(t))return this.register(e,{useToken:t},{lifecycle:i.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:i.Singleton});throw new Error('Cannot register a type name as a singleton without a \"to\" token')}var r=e;return t&&!y(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:i.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new E),this.ensureNotDisposed();var r=this.getRegistration(e);if(!r&&y(e))throw new Error('Attempted to resolve unregistered dependency token: \"'+e.toString()+'\"');if(this.executePreResolutionInterceptor(e,\"Single\"),r){var n=this.resolveRegistration(r,t);return this.executePostResolutionInterceptor(e,n,\"Single\"),n}if(function(e){return\"function\"==typeof e||e instanceof d}(e))return n=this.construct(e,t),this.executePostResolutionInterceptor(e,n,\"Single\"),n;throw new Error(\"Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.\")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,n;if(this.interceptors.preResolution.has(e)){var i=[];try{for(var o=a(this.interceptors.preResolution.getAll(e)),s=o.next();!s.done;s=o.next()){var u=s.value;\"Once\"!=u.options.frequency&&i.push(u),u.callback(e,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,i)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var n,i;if(this.interceptors.postResolution.has(e)){var o=[];try{for(var s=a(this.interceptors.postResolution.getAll(e)),u=s.next();!u.done;u=s.next()){var c=u.value;\"Once\"!=c.options.frequency&&o.push(c),c.callback(e,t,r)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}this.interceptors.postResolution.setAll(e,o)}},e.prototype.resolveRegistration=function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===i.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,n=e.options.lifecycle===i.Singleton,o=e.options.lifecycle===i.ContainerScoped,s=n||o;return r=w(e.provider)?e.provider.useValue:b(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):g(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):p(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===i.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t){var r=this;void 0===t&&(t=new E),this.ensureNotDisposed();var n=this.getAllRegistrations(e);if(!n&&y(e))throw new Error('Attempted to resolve unregistered dependency token: \"'+e.toString()+'\"');if(this.executePreResolutionInterceptor(e,\"All\"),n){var i=n.map((function(e){return r.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,i,\"All\"),i}var o=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,o,\"All\"),o},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;this.ensureNotDisposed();try{for(var r=a(this._registry.entries()),n=r.next();!n.done;n=r.next()){var i=u(n.value,2),o=i[0],s=i[1];this._registry.setAll(o,s.filter((function(e){return!w(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var n=new e(this);try{for(var o=a(this._registry.entries()),s=o.next();!s.done;s=o.next()){var c=u(s.value,2),l=c[0],h=c[1];h.some((function(e){return e.options.lifecycle===i.ContainerScoped}))&&n._registry.setAll(l,h.map((function(e){return e.options.lifecycle===i.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:\"Always\"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:\"Always\"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.dispose=function(){return e=this,t=void 0,n=function(){var e;return function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(t){switch(t.label){case 0:return this.disposed=!0,e=[],this.disposables.forEach((function(t){var r=t.dispose();r&&e.push(r)})),[4,Promise.all(e)];case 1:return t.sent(),[2]}}))},new((r=void 0)||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}));var e,t,r,n},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof d)return e.createProxy((function(e){return r.resolve(e,t)}));var n,i=function(){var n=L.get(e);if(!n||0===n.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for \"'+e.name+'\"')}var i=n.map(r.resolveParams(t,e));return new(e.bind.apply(e,c([void 0],i)))}();return\"function\"!=typeof(n=i).dispose||n.dispose.length>0||this.disposables.add(i),i},e.prototype.resolveParams=function(e,t){var r=this;return function(n,i){var o,s,a;try{return m(n)?_(n)?n.multiple?(o=r.resolve(n.transform)).transform.apply(o,c([r.resolveAll(n.token)],n.transformArgs)):(s=r.resolve(n.transform)).transform.apply(s,c([r.resolve(n.token,e)],n.transformArgs)):n.multiple?r.resolveAll(n.token):r.resolve(n.token,e):_(n)?(a=r.resolve(n.transform,e)).transform.apply(a,c([r.resolve(n.token,e)],n.transformArgs)):r.resolve(n,e)}catch(e){throw new Error(x(t,i,e))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error(\"This container has been disposed, you cannot interact with a disposed container\")},e}(),T=new P;const R=function(){return function(e){var t=h(e);return function(r){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return r.apply(this,c(n.concat(t.slice(n.length).map((function(t,r){var i,o,s;try{return m(t)?_(t)?t.multiple?(i=T.resolve(t.transform)).transform.apply(i,c([T.resolveAll(t.token)],t.transformArgs)):(o=T.resolve(t.transform)).transform.apply(o,c([T.resolve(t.token)],t.transformArgs)):t.multiple?T.resolveAll(t.token):T.resolve(t.token):_(t)?(s=T.resolve(t.transform)).transform.apply(s,c([T.resolve(t.token)],t.transformArgs)):T.resolve(t)}catch(t){var a=r+n.length;throw new Error(x(e,a,t))}})))))||this}return s(n,r),n}(e)}},O=function(e){return f(e)},I=function(){return function(e){L.set(e,h(e))}},N=function(e){return void 0===e&&(e=[]),function(t){return e.forEach((function(e){var t=e.token,r=e.options,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&\"function\"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,[\"token\",\"options\"]);return T.register(t,n,r)})),t}},j=function(){return function(e){I()(e),T.registerSingleton(e)}},M=function(e){return f({token:e,multiple:!0})},D=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return f({token:e,multiple:!0,transform:t,transformArgs:r})},U=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return f(e,{transformToken:t,args:r})};function B(e,t){return function(r){I()(r),T.register(t||r,r,{lifecycle:e})}}function H(e){var t;return function(r){return null==t&&(t=e(r)),t}}function V(e){var t=new WeakMap;return function(r){var n=t.get(r);return null==n&&(n=e(r),t.set(r,n)),n}}function K(e,t,r,n){var i,o;return void 0===n&&(n=!0),function(s){var a=e(s);return n&&o===a||(i=(o=a)?s.resolve(t):s.resolve(r)),i}}if(\"undefined\"==typeof Reflect||!Reflect.getMetadata)throw new Error(\"tsyringe requires a reflect polyfill. Please add 'import \\\"reflect-metadata\\\"' to the top of your entry point.\")},7558:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryServiceControlImpl=void 0;var n=r(4471),i=r(5029),o=r(9820),s=function(){function e(){}return e.prototype.help=function(){console.log(e._help)},e.prototype.example=function(){console.log(e._example)},e.prototype.showSettings=function(t){void 0===t&&(t=\"all\");var r=new o.StringBuilder,n=e._getCategoryService();e._getCategories(t).forEach((function(t){e._processCategory(n,t,r,0)})),console.log(r.toString())},e.prototype.change=function(t){var r=e._getCategoryService(),n=e._getCategories(t.category),o=null,s=null,a=null,u=null,c=null,l=function(e){null!==c&&(c+=\", \"),null===c?c=e:c+=e};l(\"recursive=\"+t.recursive),\"string\"==typeof t.logLevel&&(o=i.LogLevel.fromString(t.logLevel),l(\"logLevel=\"+t.logLevel)),\"string\"==typeof t.logFormat&&(s=i.DateFormatEnum.fromString(t.logFormat),l(\"logFormat=\"+t.logFormat)),\"boolean\"==typeof t.showCategoryName&&(a=t.showCategoryName,l(\"showCategoryName=\"+t.showCategoryName)),\"boolean\"==typeof t.showTimestamp&&(u=t.showTimestamp,l(\"showTimestamp=\"+t.showTimestamp));var h=function(e){var t=r.getCategorySettings(e);null!==t&&(null!==o&&(t.logLevel=o),null!==s&&(t.logFormat.dateFormat.formatEnum=s),null!==u&&(t.logFormat.showTimeStamp=u),null!==a&&(t.logFormat.showCategoryName=a))};n.forEach((function(r){return e._applyToCategory(r,t.recursive,h)})),console.log(\"Applied changes: \"+c+\" to categories '\"+t.category+\"'.\")},e.prototype.reset=function(t){void 0===t&&(t=\"all\");var r=e._getCategoryService(),n=e._getCategories(t),i=function(e){var t=r.getCategorySettings(e),n=r.getOriginalCategorySettings(e);null!==t&&null!==n&&(t.logLevel=n.logLevel,t.logFormat.dateFormat.formatEnum=n.logFormat.dateFormat.formatEnum,t.logFormat.showTimeStamp=n.logFormat.showTimeStamp,t.logFormat.showCategoryName=n.logFormat.showCategoryName)};n.forEach((function(t){return e._applyToCategory(t,!0,i)})),console.log(\"Applied reset to category: \"+t+\".\")},e._processCategory=function(t,r,n,o){var s=t.getCategorySettings(r);if(null!==s){if(n.append(\" \"+r.id+\": \"),o>0)for(var a=0;a<o;a++)n.append(\" \");n.append(r.name+\" (\"+i.LogLevel[s.logLevel].toString()+\"@\"+i.LoggerType[s.loggerType].toString()+\")\\n\"),r.children.length>0&&r.children.forEach((function(r){e._processCategory(t,r,n,o+1)}))}},e._applyToCategory=function(t,r,n){n(t),r&&t.children.forEach((function(t){e._applyToCategory(t,r,n)}))},e._getCategoryService=function(){return n.CategoryServiceImpl.getInstance()},e._getCategories=function(t){var r=e._getCategoryService(),n=[];if(\"all\"===t)n=r.getRootCategories();else{var i=r.getCategoryById(t);if(null===i)throw new Error(\"Failed to find category with id \"+t);n.push(i)}return n},e._help='\\n help(): void\\n ** Shows this help.\\n\\n example(): void\\n ** Shows an example on how to use this.\\n\\n showSettings(id: number | \"all\" = \"all\"): void\\n ** Shows settings for a specific category, or for all. The id of categories can be found by calling this method without parameter.\\n\\n change(settings: CategoryServiceControlSettings): void\\n ** Changes the current settings for one or all categories.\\n **\\n CategoryServiceControlSettings, properties of object:\\n category: number | \"all\"\\n ** Apply to specific category, or \"all\".\\n ** Required\\n\\n recursive: boolean\\n ** Apply to child categories (true) or not.\\n ** Required\\n\\n logLevel: \"Fatal\" | \"Error\" | \"Warn\" | \"Info\" | \"Debug\" | \"Trace\" | undefined\\n ** Set log level, undefined will not change the setting.\\n ** Optional\\n\\n logFormat: \"Default\" | \"YearMonthDayTime\" | \"YearDayMonthWithFullTime\" | \"YearDayMonthTime\" | undefined\\n ** Set the log format, undefined will not change the setting.\\n ** Optional\\n\\n showTimestamp: boolean | undefined\\n ** Whether to show timestamp, undefined will not change the setting.\\n ** Optional\\n\\n showCategoryName: boolean | undefined\\n ** Whether to show the category name, undefined will not change the setting.\\n ** Optional\\n\\n reset(id: number | \"all\"): void\\n ** Resets everything to original values, for one specific or for all categories.\\n',e._example='\\n Examples:\\n change({category: \"all\", recursive:true, logLevel: \"Info\"})\\n ** Change loglevel to Info for all categories, apply to child categories as well.\\n\\n change({category: 1, recursive:false, logLevel: \"Warn\"})\\n ** Change logLevel for category 1, do not recurse.\\n\\n change({category: \"all\", recursive:true, logLevel: \"Debug\", logFormat: \"YearDayMonthTime\", showTimestamp:false, showCategoryName:false})\\n ** Change loglevel to Debug for all categories, apply format, do not show timestamp and category names - recursively to child categories.\\n\\n',e}();t.CategoryServiceControlImpl=s},7278:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LoggerControlImpl=void 0;var n=r(5029),i=r(9392),o=r(9820),s=function(){function e(){}return e.prototype.help=function(){console.log(e._help)},e.prototype.listFactories=function(){var t=e._getRuntimeSettingsLoggerFactories(),r=new o.StringBuilder;r.appendLine(\"Registered LoggerFactories (index / name)\");for(var n=0;n<t.length;n++){var i=t[n];r.append(\" \"+n).append(\": \"+i.getName()+\"\\n\")}console.log(r.toString())},e.prototype.showSettings=function(t){void 0===t&&(t=\"all\");var r=[];if(\"all\"===t){var i=0;e._getRuntimeSettingsLoggerFactories().forEach((function(e){r.push(new o.TuplePair(i++,e))}))}else{var s=e._getRuntimeSettingsLoggerFactories();if(!(t>=0&&t<s.length))throw new Error(\"Requested number: \"+t+\" was not found.\");r.push(new o.TuplePair(t,s[t]))}for(var a=0,u=r;a<u.length;a++){var c=u[a];console.log(\" LoggerFactory: \"+c.y.getName()+\" (id=\"+c.x+\")\");for(var l=c.y.getLogGroupRuntimeSettings(),h=0;h<l.length;h++){var f=l[h];console.log(\" LogGroup: (id=\"+h+\")\"),console.log(\" RegExp: \"+f.logGroupRule.regExp.source),console.log(\" Level: \"+n.LogLevel[f.level].toString()),console.log(\" LoggerType: \"+n.LoggerType[f.loggerType].toString())}}},e.prototype.reset=function(t){void 0===t&&(t=\"all\");var r=e._getRuntimeSettingsLoggerFactories(),n=[];\"all\"===t?n=r:t>=0&&t<r.length&&n.push(r[t]),n.forEach((function(e){console.log(\"Reset all settings for factory \"+t),new a(e).reset()}))},e.prototype.getLoggerFactoryControl=function(t){var r=e._getRuntimeSettingsLoggerFactories();if(t>=0&&t<r.length)return new a(r[t]);throw new Error(\"idFactory is invalid (less than 0) or non existing id.\")},e._getRuntimeSettingsLoggerFactories=function(){return e._getSettings().getRuntimeSettingsForLoggerFactories()},e._getSettings=function(){return i.LFService.getRuntimeSettings()},e._help='\\n help(): void\\n ** Shows this help.\\n\\n listFactories(): void\\n ** List all registered LoggerFactories with associated log groups with respective ids (ids can be used to target a factory and/or group).\\n\\n showSettings(idFactory: number | \"all\"): void\\n ** Show log group settings for idFactory (use listFactories to find id for a LoggerFactory). If idFactory is \"all\" shows all factories.\\n\\n getLoggerFactoryControl(idFactory: number): LoggerFactoryControl\\n ** Return LoggerFactoryControl when found for given idFactory or throws Error if invalid or null, get the id by using listFactories()\\n\\n reset(idFactory: number | \"all\"): void\\n ** Resets given factory or all factories back to original values.\\n',e}();t.LoggerControlImpl=s;var a=function(){function e(e){this._settings=e}return e.prototype.help=function(){console.log(e._help)},e.prototype.example=function(){console.log(e._example)},e.prototype.showSettings=function(e){void 0===e&&(e=\"all\");var t=new o.StringBuilder,r=this._settings.getLogGroupRuntimeSettings();t.appendLine(\"Registered LogGroups (index / expression)\");for(var i=0;i<r.length;i++){var s=r[i];t.appendLine(\" \"+i+\": \"+s.logGroupRule.regExp.source+\", logLevel=\"+n.LogLevel[s.level].toString()+\", showTimestamp=\"+s.logFormat.showTimeStamp+\", showLoggerName=\"+s.logFormat.showLoggerName+\", format=\"+n.DateFormatEnum[s.logFormat.dateFormat.formatEnum].toString())}console.log(t.toString())},e.prototype.change=function(e){var t=this._getLogGroupRunTimeSettingsFor(e.group),r=null,i=null,o=null,s=null,a=null,u=function(e){null!==a&&(a+=\", \"),null===a?a=e:a+=e};\"string\"==typeof e.logLevel&&(r=n.LogLevel.fromString(e.logLevel),u(\"logLevel=\"+e.logLevel)),\"string\"==typeof e.logFormat&&(i=n.DateFormatEnum.fromString(e.logFormat),u(\"logFormat=\"+e.logFormat)),\"boolean\"==typeof e.showLoggerName&&(o=e.showLoggerName,u(\"showLoggerName=\"+e.showLoggerName)),\"boolean\"==typeof e.showTimestamp&&(s=e.showTimestamp,u(\"showTimestamp=\"+e.showTimestamp)),t.forEach((function(e){null!==r&&(e.level=r),null!==i&&(e.logFormat.dateFormat.formatEnum=i),null!==s&&(e.logFormat.showTimeStamp=s),null!==o&&(e.logFormat.showLoggerName=o)})),console.log(\"Applied changes: \"+a+\" to log groups '\"+e.group+\"'.\")},e.prototype.reset=function(e){void 0===e&&(e=\"all\");for(var t=0,r=this._getLogGroupRunTimeSettingsFor(e);t<r.length;t++){var n=r[t];n.level=n.logGroupRule.level,n.logFormat.showTimeStamp=n.logGroupRule.logFormat.showTimeStamp,n.logFormat.showLoggerName=n.logGroupRule.logFormat.showLoggerName,n.logFormat.dateFormat.formatEnum=n.logGroupRule.logFormat.dateFormat.formatEnum}console.log(\"Reset all settings for group \"+e)},e.prototype._getLogGroupRunTimeSettingsFor=function(e){var t=[];return\"all\"===e?t=this._settings.getLogGroupRuntimeSettings():(this._checkIndex(e),t.push(this._settings.getLogGroupRuntimeSettings()[e])),t},e.prototype._checkIndex=function(e){if(e<0||e>=this._settings.getLogGroupRuntimeSettings().length)throw new Error(\"Invalid index, use listLogGroups to find out a valid one.\")},e._help='\\n help(): void\\n ** Shows this help.\\n\\n example(): void\\n ** Shows an example of usage.\\n\\n showSettings(id: number | \"all\"): void\\n ** Prints settings for given group id, \"all\" for all group.\\n\\n change(settings: LogGroupControlSettings): void\\n ** Changes the current settings for one or all log groups.\\n **\\n LogGroupControlSettings, properties of object:\\n group: number | \"all\"\\n ** Apply to specific group, or \"all\".\\n ** Required\\n\\n logLevel: \"Fatal\" | \"Error\" | \"Warn\" | \"Info\" | \"Debug\" | \"Trace\" | undefined\\n ** Set log level, undefined will not change the setting.\\n ** Optional\\n\\n logFormat: \"Default\" | \"YearMonthDayTime\" | \"YearDayMonthWithFullTime\" | \"YearDayMonthTime\" | undefined\\n ** Set the log format, undefined will not change the setting.\\n ** Optional\\n\\n showTimestamp: boolean | undefined\\n ** Whether to show timestamp, undefined will not change the setting.\\n ** Optional\\n\\n showLoggerName: boolean | undefined\\n ** Whether to show the logger name, undefined will not change the setting.\\n ** Optional\\n\\n reset(id: number | \"all\"): void\\n ** Resets everything to original values, for one specific or for all groups.\\n\\n help():\\n ** Shows this help.\\n',e._example='\\n Examples:\\n change({group: \"all\", logLevel: \"Info\"})\\n ** Change loglevel to Info for all groups.\\n\\n change({group: 1, recursive:false, logLevel: \"Warn\"})\\n ** Change logLevel for group 1 to Warn.\\n\\n change({group: \"all\", logLevel: \"Debug\", logFormat: \"YearDayMonthTime\", showTimestamp:false, showLoggerName:false})\\n ** Change loglevel to Debug for all groups, apply format, do not show timestamp and logger names.\\n',e}()},9241:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ExtensionHelper=void 0;var n=r(4471),i=r(5029),o=r(4010),s=function(){function e(){}return e.register=function(){if(!e.registered){var t=function(t){var r=t.data;null!==r&&e.processMessageFromExtension(r)};\"undefined\"!=typeof window&&void 0!==window.removeEventListener&&void 0!==window.addEventListener&&(window.removeEventListener(\"message\",t),window.addEventListener(\"message\",t),e.registered=!0)}},e.processMessageFromExtension=function(t){if(e.registered&&\"tsl-extension\"===t.from){var r=t.data;switch(r.type){case\"register\":e.enableExtensionIntegration();break;case\"request-change-loglevel\":var n=r.value,i=e.applyLogLevel(n.categoryId,n.logLevel,n.recursive);i.length>0&&e.sendCategoriesRuntimeUpdateMessage(i);break;default:console.log(\"Unknown command to process message from extension, command was: \"+r.type)}}},e.sendCategoryLogMessage=function(t){if(e.registered){var r={data:{type:\"log-message\",value:{categories:t.categories.map((function(e){return e.id})),errorAsStack:t.errorAsStack,formattedMessage:o.MessageFormatUtils.renderDefaultMessage(t,!1),logLevel:i.LogLevel[t.level].toString(),message:t.messageAsString,resolvedErrorMessage:t.isResolvedErrorMessage}},from:\"tsl-logging\"};e.sendMessage(r)}},e.sendCategoriesRuntimeUpdateMessage=function(t){if(e.registered){var r=n.CategoryServiceImpl.getInstance(),o={categories:Array()};t.forEach((function(e){var t=r.getCategorySettings(e);null!=t&&o.categories.push({id:e.id,logLevel:i.LogLevel[t.logLevel].toString()})}));var s={data:{type:\"categories-rt-update\",value:o},from:\"tsl-logging\"};e.sendMessage(s)}},e.sendRootCategoriesToExtension=function(){if(e.registered){var t={data:{type:\"root-categories-tree\",value:n.CategoryServiceImpl.getInstance().getRootCategories().map((function(t){return e.getCategoryAsJSON(t)}))},from:\"tsl-logging\"};e.sendMessage(t)}},e.getCategoryAsJSON=function(t){return{children:t.children.map((function(t){return e.getCategoryAsJSON(t)})),id:t.id,logLevel:i.LogLevel[t.logLevel].toString(),name:t.name,parentId:null!=t.parent?t.parent.id:null}},e.applyLogLevel=function(t,r,o){var s=[],a=n.CategoryServiceImpl.getInstance().getCategoryById(t);return null!=a?e._applyLogLevelRecursive(a,i.LogLevel.fromString(r),o,s):console.log(\"Could not change log level, failed to find category with id: \"+t),s},e._applyLogLevelRecursive=function(t,r,i,o){var s=n.CategoryServiceImpl.getInstance().getCategorySettings(t);null!=s&&(s.logLevel=r,o.push(t),i&&t.children.forEach((function(t){e._applyLogLevelRecursive(t,r,i,o)})))},e.getAllCategories=function(){var e=[],t=function(e,r){r.push(e),e.children.forEach((function(e){t(e,r)}))};return n.CategoryServiceImpl.getInstance().getRootCategories().forEach((function(r){t(r,e)})),e},e.sendMessage=function(t){e.registered&&\"undefined\"!=typeof window&&void 0!==window.postMessage&&window.postMessage(t,\"*\")},e.enableExtensionIntegration=function(){if(e.registered){n.CategoryServiceImpl.getInstance().enableExtensionIntegration(),e.sendRootCategoriesToExtension();var t=e.getAllCategories();e.sendCategoriesRuntimeUpdateMessage(t)}},e.registered=!1,e}();t.ExtensionHelper=s},6060:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0})},5659:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0})},5852:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0})},5029:(e,t)=>{var r,n,i;Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryLogFormat=t.LogFormat=t.DateFormat=t.DateFormatEnum=t.LoggerType=t.LogLevel=void 0,(i=t.LogLevel||(t.LogLevel={}))[i.Trace=0]=\"Trace\",i[i.Debug=1]=\"Debug\",i[i.Info=2]=\"Info\",i[i.Warn=3]=\"Warn\",i[i.Error=4]=\"Error\",i[i.Fatal=5]=\"Fatal\",function(e){e.fromString=function(t){if(null==t)throw new Error(\"Argument must be set\");switch(t.toLowerCase()){case\"trace\":return e.Trace;case\"debug\":return e.Debug;case\"info\":return e.Info;case\"warn\":return e.Warn;case\"error\":return e.Error;case\"fatal\":return e.Fatal;default:throw new Error(\"Unsupported value for conversion: \"+t)}}}(t.LogLevel||(t.LogLevel={})),(n=t.LoggerType||(t.LoggerType={}))[n.Console=0]=\"Console\",n[n.MessageBuffer=1]=\"MessageBuffer\",n[n.Custom=2]=\"Custom\",function(e){e[e.Default=0]=\"Default\",e[e.YearMonthDayTime=1]=\"YearMonthDayTime\",e[e.YearDayMonthWithFullTime=2]=\"YearDayMonthWithFullTime\",e[e.YearDayMonthTime=3]=\"YearDayMonthTime\"}(t.DateFormatEnum||(t.DateFormatEnum={})),function(e){e.fromString=function(t){if(null==t)throw new Error(\"Argument must be set\");switch(t.toLowerCase()){case\"default\":return e.Default;case\"yearmonthdayTime\":return e.YearMonthDayTime;case\"yeardaymonthwithfulltime\":return e.YearDayMonthWithFullTime;case\"yeardaymonthtime\":return e.YearDayMonthTime;default:throw new Error(\"Unsupported value for conversion: \"+t)}}}(r=t.DateFormatEnum||(t.DateFormatEnum={}));var o=function(){function e(e,t){void 0===e&&(e=r.Default),void 0===t&&(t=\"-\"),this._formatEnum=e,this._dateSeparator=t}return Object.defineProperty(e.prototype,\"formatEnum\",{get:function(){return this._formatEnum},set:function(e){this._formatEnum=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"dateSeparator\",{get:function(){return this._dateSeparator},set:function(e){this._dateSeparator=e},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this._formatEnum,this._dateSeparator)},e}();t.DateFormat=o;var s=function(){function e(e,t,r){void 0===e&&(e=new o),void 0===t&&(t=!0),void 0===r&&(r=!0),this._showTimeStamp=!0,this._showLoggerName=!0,this._dateFormat=e,this._showTimeStamp=t,this._showLoggerName=r}return Object.defineProperty(e.prototype,\"dateFormat\",{get:function(){return this._dateFormat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"showTimeStamp\",{get:function(){return this._showTimeStamp},set:function(e){this._showTimeStamp=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"showLoggerName\",{get:function(){return this._showLoggerName},set:function(e){this._showLoggerName=e},enumerable:!1,configurable:!0}),e}();t.LogFormat=s;var a=function(){function e(e,t,r){void 0===e&&(e=new o),void 0===t&&(t=!0),void 0===r&&(r=!0),this._dateFormat=e,this._showTimeStamp=t,this._showCategoryName=r}return Object.defineProperty(e.prototype,\"dateFormat\",{get:function(){return this._dateFormat},set:function(e){this._dateFormat=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"showTimeStamp\",{get:function(){return this._showTimeStamp},set:function(e){this._showTimeStamp=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"showCategoryName\",{get:function(){return this._showCategoryName},set:function(e){this._showCategoryName=e},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this._dateFormat.copy(),this._showTimeStamp,this._showCategoryName)},e}();t.CategoryLogFormat=a},8308:function(e,t,r){var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.AbstractCategoryLogger=void 0;var i=r(9820),o=r(4010),s=r(5029),a=function(){function e(e,t,r,n,i,o,s){this._resolvedErrorMessage=!1,this._errorAsStack=null,this._message=e,this._error=t,this._categories=r,this._date=n,this._level=i,this._logFormat=o,this._ready=s}return Object.defineProperty(e.prototype,\"message\",{get:function(){return this._message},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"error\",{get:function(){return this._error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"categories\",{get:function(){return this._categories},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"date\",{get:function(){return this._date},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"level\",{get:function(){return this._level},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logFormat\",{get:function(){return this._logFormat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"isMessageLogData\",{get:function(){return\"string\"!=typeof this._message},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"messageAsString\",{get:function(){return\"string\"==typeof this._message?this._message:this._message.msg},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logData\",{get:function(){var e=null;return\"string\"!=typeof this._message&&(e=this.message),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"isResolvedErrorMessage\",{get:function(){return this._resolvedErrorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"errorAsStack\",{get:function(){return this._errorAsStack},set:function(e){this._errorAsStack=e},enumerable:!1,configurable:!0}),e.prototype.isReady=function(){return this._ready},e.prototype.setReady=function(e){this._ready=e},Object.defineProperty(e.prototype,\"resolvedErrorMessage\",{get:function(){return this._resolvedErrorMessage},set:function(e){this._resolvedErrorMessage=e},enumerable:!1,configurable:!0}),e}(),u=function(){function e(e,t){this.allMessages=new i.LinkedList,this.rootCategory=e,this.runtimeSettings=t}return e.prototype.trace=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._log.apply(this,n([s.LogLevel.Trace,e,null,!1],t,!1))},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._log.apply(this,n([s.LogLevel.Debug,e,null,!1],t,!1))},e.prototype.info=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._log.apply(this,n([s.LogLevel.Info,e,null,!1],t,!1))},e.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this._log.apply(this,n([s.LogLevel.Warn,e,null,!1],t,!1))},e.prototype.error=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];this._log.apply(this,n([s.LogLevel.Error,e,t,!1],r,!1))},e.prototype.fatal=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];this._log.apply(this,n([s.LogLevel.Fatal,e,t,!1],r,!1))},e.prototype.resolved=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];this._log.apply(this,n([s.LogLevel.Error,e,t,!0],r,!1))},e.prototype.log=function(e,t,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];this._log.apply(this,n([e,t,r,!1],i,!1))},e.prototype.getRootCategory=function(){return this.rootCategory},e.prototype.createDefaultLogMessage=function(e){return o.MessageFormatUtils.renderDefaultMessage(e,!0)},e.prototype._getMessageFormatter=function(){var e=this.runtimeSettings.getCategorySettings(this.rootCategory);if(null===e)throw new Error(\"Did not find CategorySettings for rootCategory: \"+this.rootCategory.name);return e.formatterLogMessage},e.prototype._log=function(e,t,r,i){void 0===r&&(r=null),void 0===i&&(i=!1);for(var o=[],s=4;s<arguments.length;s++)o[s-4]=arguments[s];this._logInternal.apply(this,n([e,function(){return\"function\"==typeof t?t():t},function(){return\"function\"==typeof r?r():r},i],o,!1))},e.prototype._logInternal=function(e,t,r,n){for(var i=this,s=[],u=4;u<arguments.length;u++)s[u-4]=arguments[u];var c=[this.rootCategory];void 0!==s&&s.length>0&&(c=c.concat(s.filter((function(e){return e!==i.rootCategory}))));for(var l=function(s){var u=c[s];if(null===u)throw new Error(\"Cannot have a null element within categories, at index=\"+s);var l=h.runtimeSettings.getCategorySettings(u);if(null===l)throw new Error(\"Category with path: \"+u.getCategoryPath()+\" is not registered with this logger, maybe you registered it with a different root logger?\");if(l.logLevel<=e){var f=null!==r?r():null;if(null===f){var g=new a(t(),f,c,new Date,e,l.logFormat,!0);g.resolvedErrorMessage=n,h.allMessages.addTail(g),h.processMessages()}else{var p=new a(t(),f,c,new Date,e,l.logFormat,!1);p.resolvedErrorMessage=n,h.allMessages.addTail(p),o.MessageFormatUtils.renderError(f).then((function(e){p.errorAsStack=e,p.setReady(!0),i.processMessages()})).catch((function(){p.errorAsStack=\"<UNKNOWN> unable to get stack.\",p.setReady(!0),i.processMessages()}))}return\"break\"}},h=this,f=0;f<c.length&&\"break\"!==l(f);f++);},e.prototype.processMessages=function(){var e=this.allMessages;if(e.getSize()>0)do{var t=e.getHead();if(null!=t){if(!t.isReady())break;e.removeHead(),this.doLog(t)}}while(e.getSize()>0)},e}();t.AbstractCategoryLogger=u},7058:function(e,t,r){var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.Category=void 0;var i=r(5029),o=r(4471),s=function(){function e(t,r){if(void 0===r&&(r=null),this._children=[],this._logLevel=i.LogLevel.Error,-1!==t.indexOf(\"#\"))throw new Error(\"Cannot use # in a name of a Category\");this._id=e.nextId(),this._name=t,this._parent=r,null!==this._parent&&this._parent._children.push(this),o.CategoryServiceImpl.getInstance().registerCategory(this)}return Object.defineProperty(e.prototype,\"name\",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"parent\",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"children\",{get:function(){return this._children},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logLevel\",{get:function(){return this._logLevel},enumerable:!1,configurable:!0}),e.prototype.trace=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.loadCategoryLogger(),(t=this._logger).trace.apply(t,n([e],r,!1))},e.prototype.debug=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.loadCategoryLogger(),(t=this._logger).debug.apply(t,n([e],r,!1))},e.prototype.info=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.loadCategoryLogger(),(t=this._logger).info.apply(t,n([e],r,!1))},e.prototype.warn=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];this.loadCategoryLogger(),(t=this._logger).warn.apply(t,n([e],r,!1))},e.prototype.error=function(e,t){for(var r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.loadCategoryLogger(),(r=this._logger).error.apply(r,n([e,t],i,!1))},e.prototype.fatal=function(e,t){for(var r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.loadCategoryLogger(),(r=this._logger).fatal.apply(r,n([e,t],i,!1))},e.prototype.resolved=function(e,t){for(var r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.loadCategoryLogger(),(r=this._logger).resolved.apply(r,n([e,t],i,!1))},e.prototype.log=function(e,t,r){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];this.loadCategoryLogger(),(i=this._logger).log.apply(i,n([e,t,r],o,!1))},e.prototype.getCategoryPath=function(){for(var e=this.name,t=this.parent;null!=t;)e=t.name+\"#\"+e,t=t.parent;return e},Object.defineProperty(e.prototype,\"id\",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.loadCategoryLogger=function(){if(this._logger||(this._logger=o.CategoryServiceImpl.getInstance().getLogger(this)),void 0===this._logger||null===this._logger)throw new Error(\"Failed to load a logger for category (should not happen): \"+this.name)},e.nextId=function(){return e.currentId++},e.currentId=1,e}();t.Category=s},7694:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryConfiguration=void 0;var n=r(5029),i=function(){function e(e,t,r,i){if(void 0===e&&(e=n.LogLevel.Error),void 0===t&&(t=n.LoggerType.Console),void 0===r&&(r=new n.CategoryLogFormat),void 0===i&&(i=null),this._formatterLogMessage=null,this._logLevel=e,this._loggerType=t,this._logFormat=r,this._callBackLogger=i,this._loggerType===n.LoggerType.Custom&&null===this.callBackLogger)throw new Error(\"If you specify loggerType to be Custom, you must provide the callBackLogger argument\")}return Object.defineProperty(e.prototype,\"logLevel\",{get:function(){return this._logLevel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"loggerType\",{get:function(){return this._loggerType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logFormat\",{get:function(){return this._logFormat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"callBackLogger\",{get:function(){return this._callBackLogger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"formatterLogMessage\",{get:function(){return this._formatterLogMessage},set:function(e){if(null!==e&&this._loggerType===n.LoggerType.Custom)throw new Error(\"You cannot specify a formatter for log messages if your loggerType is Custom\");this._formatterLogMessage=e},enumerable:!1,configurable:!0}),e.prototype.copy=function(){var t=new e(this.logLevel,this.loggerType,this.logFormat.copy(),this.callBackLogger);return t.formatterLogMessage=this.formatterLogMessage,t},e}();t.CategoryConfiguration=i},8071:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryConsoleLoggerImpl=void 0;var o=r(5029),s=function(e){function t(t,r){return e.call(this,t,r)||this}return i(t,e),t.prototype.doLog=function(e){if(void 0===console)throw new Error(\"Console is not defined, cannot log msg: \"+e.messageAsString);var t,r=this._getMessageFormatter();t=null===r?this.createDefaultLogMessage(e):r(e);var n=!1;switch(e.level){case o.LogLevel.Trace:case o.LogLevel.Debug:break;case o.LogLevel.Info:console.info&&(console.info(t),n=!0);break;case o.LogLevel.Warn:console.warn&&(console.warn(t),n=!0);break;case o.LogLevel.Error:case o.LogLevel.Fatal:console.error&&(console.error(t),n=!0);break;default:throw new Error(\"Unsupported level: \"+e.level)}n||console.log(t)},t}(r(8308).AbstractCategoryLogger);t.CategoryConsoleLoggerImpl=s},311:function(e,t){var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryDelegateLoggerImpl=void 0;var n=function(){function e(e){this._delegate=e}return Object.defineProperty(e.prototype,\"delegate\",{get:function(){return this._delegate},set:function(e){this._delegate=e},enumerable:!1,configurable:!0}),e.prototype.trace=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this._delegate).trace.apply(t,r([e],n,!1))},e.prototype.debug=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this._delegate).debug.apply(t,r([e],n,!1))},e.prototype.info=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this._delegate).info.apply(t,r([e],n,!1))},e.prototype.warn=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(t=this._delegate).warn.apply(t,r([e],n,!1))},e.prototype.error=function(e,t){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];(n=this._delegate).error.apply(n,r([e,t],i,!1))},e.prototype.fatal=function(e,t){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];(n=this._delegate).fatal.apply(n,r([e,t],i,!1))},e.prototype.resolved=function(e,t){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];(n=this._delegate).resolved.apply(n,r([e,t],i,!1))},e.prototype.log=function(e,t,n){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];(i=this._delegate).log.apply(i,r([e,t,n],o,!1))},e}();t.CategoryDelegateLoggerImpl=n},8503:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryExtensionLoggerImpl=void 0;var o=r(9241),s=function(e){function t(t,r){return e.call(this,t,r)||this}return i(t,e),t.prototype.doLog=function(e){\"undefined\"!=typeof window?o.ExtensionHelper.sendCategoryLogMessage(e):console.log(\"window is not available, you must be running in a browser for this. Dropped message.\")},t}(r(8308).AbstractCategoryLogger);t.CategoryExtensionLoggerImpl=s},7439:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryMessageBufferLoggerImpl=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messages=[],t}return i(t,e),t.prototype.getMessages=function(){return this.messages},t.prototype.toString=function(){return this.messages.map((function(e){return e})).join(\"\\n\")},t.prototype.doLog=function(e){var t,r=this._getMessageFormatter();t=null===r?this.createDefaultLogMessage(e):r(e),this.messages.push(t)},t}(r(8308).AbstractCategoryLogger);t.CategoryMessageBufferLoggerImpl=o},9165:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryRuntimeSettings=void 0;var n=r(5029),i=function(){function e(e,t,r,i,o,s){void 0===t&&(t=n.LogLevel.Error),void 0===r&&(r=n.LoggerType.Console),void 0===i&&(i=new n.CategoryLogFormat),void 0===o&&(o=null),void 0===s&&(s=null),this._formatterLogMessage=null,this._category=e,this._logLevel=t,this._loggerType=r,this._logFormat=i,this._callBackLogger=o,this._formatterLogMessage=s}return Object.defineProperty(e.prototype,\"category\",{get:function(){return this._category},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logLevel\",{get:function(){return this._logLevel},set:function(e){this._logLevel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"loggerType\",{get:function(){return this._loggerType},set:function(e){this._loggerType=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logFormat\",{get:function(){return this._logFormat},set:function(e){this._logFormat=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"callBackLogger\",{get:function(){return this._callBackLogger},set:function(e){this._callBackLogger=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"formatterLogMessage\",{get:function(){return this._formatterLogMessage},set:function(e){this._formatterLogMessage=e},enumerable:!1,configurable:!0}),e}();t.CategoryRuntimeSettings=i},4471:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryServiceImpl=void 0;var n=r(9820),i=r(5029),o=r(8071),s=r(311),a=r(8503),u=r(7439),c=r(9241),l=r(9165),h=r(7694),f=function(){function e(){this._defaultConfig=new h.CategoryConfiguration,this._mapState=new n.SimpleMap,c.ExtensionHelper.register()}return e.getInstance=function(){return null===e._INSTANCE&&(e._INSTANCE=new e),e._INSTANCE},e.prototype.getLogger=function(e){return this.createOrGetCategoryState(e).logger},e.prototype.clear=function(){this._mapState.clear(),this.setDefaultConfiguration(new h.CategoryConfiguration)},e.prototype.getCategorySettings=function(e){return this.createOrGetCategoryState(e).currentRuntimeSettings},e.prototype.getOriginalCategorySettings=function(e){return this.createOrGetCategoryState(e).originalRuntimeSettings},e.prototype.setDefaultConfiguration=function(e,t){void 0===t&&(t=!0),this._defaultConfig=e,t&&this._mapState.forEachValue((function(t){t.updateSettings(e)}))},e.prototype.setConfigurationCategory=function(e,t,r){var n=this;void 0===r&&(r=!1),this.createOrGetCategoryState(t).updateSettings(e),r&&t.children.forEach((function(t){n.setConfigurationCategory(e,t,r)}))},e.prototype.registerCategory=function(t){if(null==t)throw new Error(\"Category CANNOT be null/undefined\");if(this._mapState.exists(e.getCategoryKey(t)))throw new Error(\"Cannot add this root category with name: \"+t.name+\", it already exists (same name in hierarchy).\");this.createOrGetCategoryState(t)},e.prototype.enableExtensionIntegration=function(){var e=this;this._mapState.forEachValue((function(t){return t.enableForExtension(e)}))},e.prototype.getRootCategories=function(){return this._mapState.values().filter((function(e){return null==e.category.parent})).map((function(e){return e.category}))},e.prototype.getCategoryById=function(e){var t=this._mapState.values().filter((function(t){return t.category.id===e})).map((function(e){return e.category}));return 1===t.length?t[0]:null},e.prototype.createOrGetCategoryState=function(t){var r=e.getCategoryKey(t),n=this._mapState.get(r);if(void 0!==n)return n;var i=this.createState(t);return this._mapState.put(r,i),i},e.prototype.createState=function(e){var t=this;return new g(e,(function(){return t._defaultConfig}),(function(e,r){return t.createLogger(e,r)}))},e.prototype.createLogger=function(e,t){switch(e.loggerType){case i.LoggerType.Console:return new o.CategoryConsoleLoggerImpl(t,this);case i.LoggerType.MessageBuffer:return new u.CategoryMessageBufferLoggerImpl(t,this);case i.LoggerType.Custom:if(null===e.callBackLogger)throw new Error(\"Cannot create custom logger, custom callback is null\");return e.callBackLogger(t,this);default:throw new Error(\"Cannot create a Logger for LoggerType: \"+e.loggerType)}},e.getCategoryKey=function(e){return e.getCategoryPath()},e._INSTANCE=null,e}();t.CategoryServiceImpl=f;var g=function(){function e(e,t,r){this._category=e,this._lazyState=new p(e,t,r)}return Object.defineProperty(e.prototype,\"category\",{get:function(){return this._category},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logger\",{get:function(){return this._lazyState.getLogger()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"originalRuntimeSettings\",{get:function(){return this._lazyState.getOriginalRuntimeSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"currentRuntimeSettings\",{get:function(){return this._lazyState.getCurrentRuntimeSettings()},enumerable:!1,configurable:!0}),e.prototype.enableForExtension=function(e){this._lazyState.enableForExtension(e)},e.prototype.updateSettings=function(e){this._lazyState.updateSettings(e)},e}(),p=function(){function e(e,t,r){this._category=e,this._defaultConfig=t,this._createLogger=r}return e.prototype.isLoaded=function(){return void 0!==this._logger},e.prototype.getLogger=function(){return this.loadLoggerOnDemand(),this._delegateLogger},e.prototype.getOriginalRuntimeSettings=function(){return this.loadLoggerOnDemand(),this._originalRuntimeSettings},e.prototype.getCurrentRuntimeSettings=function(){return this.loadLoggerOnDemand(),this._currentRuntimeSettings},e.prototype.enableForExtension=function(e){this.loadLoggerOnDemand(),this._wrappedLogger instanceof a.CategoryExtensionLoggerImpl||(console.log(\"Reconfiguring logger for extension for category: \"+this._category.name),this._wrappedLogger=new a.CategoryExtensionLoggerImpl(this._category,e),this._delegateLogger.delegate=this._wrappedLogger)},e.prototype.updateSettings=function(e){this.isLoaded()?(this._currentRuntimeSettings.logLevel=e.logLevel,this._currentRuntimeSettings.loggerType=e.loggerType,this._currentRuntimeSettings.logFormat=e.logFormat,this._currentRuntimeSettings.callBackLogger=e.callBackLogger,this._currentRuntimeSettings.formatterLogMessage=e.formatterLogMessage,this._logger=this._createLogger(e,this._category),this._wrappedLogger instanceof a.CategoryExtensionLoggerImpl||(this._wrappedLogger=this._logger),this._delegateLogger.delegate=this._wrappedLogger):this._defaultConfig=function(){return e}},e.prototype.loadLoggerOnDemand=function(){this.isLoaded()||(this._logger=this._createLogger(this._defaultConfig(),this._category),this._wrappedLogger=this._logger,this._delegateLogger=new s.CategoryDelegateLoggerImpl(this._wrappedLogger),this._originalRuntimeSettings=this.initNewSettings(),this._currentRuntimeSettings=this.initNewSettings())},e.prototype.initNewSettings=function(){var e=this._defaultConfig().copy();return new l.CategoryRuntimeSettings(this._category,e.logLevel,e.loggerType,e.logFormat,e.callBackLogger,e.formatterLogMessage)},e}()},257:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CategoryServiceFactory=void 0;var n=r(4471),i=function(){function e(){}return e.getLogger=function(e){return n.CategoryServiceImpl.getInstance().getLogger(e)},e.clear=function(){return n.CategoryServiceImpl.getInstance().clear()},e.setDefaultConfiguration=function(e,t){void 0===t&&(t=!0),n.CategoryServiceImpl.getInstance().setDefaultConfiguration(e,t)},e.setConfigurationCategory=function(e,t,r){void 0===r&&(r=!1),n.CategoryServiceImpl.getInstance().setConfigurationCategory(e,t,r)},e}();t.CategoryServiceFactory=i},4863:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.AbstractLogger=void 0;var n=r(5029),i=r(9820),o=r(4010),s=function(){function e(e,t,r,n,i,o,s,a){this._errorAsStack=null,this._error=null,this._loggerName=e,this._message=t,this._errorAsStack=r,this._error=n,this._logGroupRule=i,this._date=o,this._level=s,this._ready=a}return Object.defineProperty(e.prototype,\"loggerName\",{get:function(){return this._loggerName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"message\",{get:function(){return this._message},set:function(e){this._message=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"errorAsStack\",{get:function(){return this._errorAsStack},set:function(e){this._errorAsStack=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"error\",{get:function(){return this._error},set:function(e){this._error=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logGroupRule\",{get:function(){return this._logGroupRule},set:function(e){this._logGroupRule=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"date\",{get:function(){return this._date},set:function(e){this._date=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"level\",{get:function(){return this._level},set:function(e){this._level=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"isMessageLogData\",{get:function(){return\"string\"!=typeof this._message},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"ready\",{get:function(){return this._ready},set:function(e){this._ready=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"messageAsString\",{get:function(){return\"string\"==typeof this._message?this._message:this._message.msg},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logData\",{get:function(){var e=null;return\"string\"!=typeof this._message&&(e=this.message),e},enumerable:!1,configurable:!0}),e}(),a=function(){function e(e,t){this._allMessages=new i.LinkedList,this._open=!0,this._name=e,this._logGroupRuntimeSettings=t}return Object.defineProperty(e.prototype,\"name\",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.trace=function(e,t){void 0===t&&(t=null),this._log(n.LogLevel.Trace,e,t)},e.prototype.debug=function(e,t){void 0===t&&(t=null),this._log(n.LogLevel.Debug,e,t)},e.prototype.info=function(e,t){void 0===t&&(t=null),this._log(n.LogLevel.Info,e,t)},e.prototype.warn=function(e,t){void 0===t&&(t=null),this._log(n.LogLevel.Warn,e,t)},e.prototype.error=function(e,t){void 0===t&&(t=null),this._log(n.LogLevel.Error,e,t)},e.prototype.fatal=function(e,t){void 0===t&&(t=null),this._log(n.LogLevel.Fatal,e,t)},e.prototype.isTraceEnabled=function(){return this._logGroupRuntimeSettings.level===n.LogLevel.Trace},e.prototype.isDebugEnabled=function(){return this._logGroupRuntimeSettings.level<=n.LogLevel.Debug},e.prototype.isInfoEnabled=function(){return this._logGroupRuntimeSettings.level<=n.LogLevel.Info},e.prototype.isWarnEnabled=function(){return this._logGroupRuntimeSettings.level<=n.LogLevel.Warn},e.prototype.isErrorEnabled=function(){return this._logGroupRuntimeSettings.level<=n.LogLevel.Error},e.prototype.isFatalEnabled=function(){return this._logGroupRuntimeSettings.level<=n.LogLevel.Fatal},e.prototype.getLogLevel=function(){return this._logGroupRuntimeSettings.level},e.prototype.isOpen=function(){return this._open},e.prototype.close=function(){this._open=!1,this._allMessages.clear()},e.prototype.createDefaultLogMessage=function(e){return o.MessageFormatUtils.renderDefaultLog4jMessage(e,!0)},e.prototype._getMessageFormatter=function(){return this._logGroupRuntimeSettings.formatterLogMessage},e.prototype._log=function(e,t,r){void 0===r&&(r=null),this._open&&this._logGroupRuntimeSettings.level<=e&&(this._allMessages.addTail(this.createMessage(e,(function(){return\"function\"==typeof t?t():t}),(function(){return\"function\"==typeof r?r():r}),new Date)),this.processMessages())},e.prototype.createMessage=function(e,t,r,n){var i=this,a=r();if(null!==a){var u=new s(this._name,t(),null,a,this._logGroupRuntimeSettings.logGroupRule,n,e,!1);return o.MessageFormatUtils.renderError(a).then((function(e){u.errorAsStack=e,u.ready=!0,i.processMessages()})).catch((function(){u.errorAsStack=\"<UNKNOWN> unable to get stack.\",u.ready=!0,i.processMessages()})),u}return new s(this._name,t(),null,a,this._logGroupRuntimeSettings.logGroupRule,n,e,!0)},e.prototype.processMessages=function(){var e=this._allMessages;if(e.getSize()>0)do{var t=e.getHead();if(null!=t){if(!t.ready)break;e.removeHead(),null!==t.message&&this.doLog(t)}}while(e.getSize()>0)},e}();t.AbstractLogger=a},6866:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.ConsoleLoggerImpl=void 0;var o=r(4863),s=r(5029),a=function(e){function t(t,r){return e.call(this,t,r)||this}return i(t,e),t.prototype.doLog=function(e){if(void 0===console)throw new Error(\"Console is not defined, cannot log msg: \"+e.message);var t,r=!1,n=e.level,i=this._getMessageFormatter();switch(t=null===i?this.createDefaultLogMessage(e):i(e),n){case s.LogLevel.Trace:case s.LogLevel.Debug:break;case s.LogLevel.Info:console.info&&(console.info(t),r=!0);break;case s.LogLevel.Warn:console.warn&&(console.warn(t),r=!0);break;case s.LogLevel.Error:case s.LogLevel.Fatal:console.error&&(console.error(t),r=!0);break;default:throw new Error(\"Log level not supported: \"+n)}r||console.log(t)},t}(o.AbstractLogger);t.ConsoleLoggerImpl=a},9392:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LFService=void 0;var n=r(9820),i=r(5029),o=r(2069),s=r(9241),a=r(1570),u=r(8021),c=function(){function e(){this._nameCounter=1,this._mapFactories=new n.SimpleMap,s.ExtensionHelper.register()}return e.getInstance=function(){return null===e._INSTANCE&&(e._INSTANCE=new e),e._INSTANCE},e.prototype.createLoggerFactory=function(e){void 0===e&&(e=null);var t=\"LoggerFactory\"+this._nameCounter++;return this.createNamedLoggerFactory(t,e)},e.prototype.createNamedLoggerFactory=function(t,r){if(void 0===r&&(r=null),this._mapFactories.exists(t))throw new Error(\"LoggerFactory with name \"+t+\" already exists.\");var n;return n=null!==r?new o.LoggerFactoryImpl(t,r):new o.LoggerFactoryImpl(t,e.createDefaultOptions()),this._mapFactories.put(t,n),n},e.prototype.closeLoggers=function(){this._mapFactories.values().forEach((function(e){e.closeLoggers()})),this._mapFactories.clear(),this._nameCounter=1},e.prototype.getRuntimeSettingsForLoggerFactories=function(){var e=[];return this._mapFactories.forEachValue((function(t){return e.push(t)})),e},e.prototype.getLogGroupSettings=function(e,t){var r=this._mapFactories.get(e);return void 0===r?null:r.getLogGroupRuntimeSettingsByIndex(t)},e.prototype.getLoggerFactoryRuntimeSettingsByName=function(e){var t=this._mapFactories.get(e);return void 0===t?null:t},e.createDefaultOptions=function(){return(new u.LoggerFactoryOptions).addLogGroupRule(new a.LogGroupRule(new RegExp(\".+\"),i.LogLevel.Info))},e._INSTANCE=null,e}(),l=function(){function e(){}return e.createLoggerFactory=function(t){return void 0===t&&(t=null),e.INSTANCE_SERVICE.createLoggerFactory(t)},e.createNamedLoggerFactory=function(t,r){if(void 0===r&&(r=null),t===e.DEFAULT_LOGGER_FACTORY_NAME)throw new Error(\"LoggerFactory name: \"+e.DEFAULT_LOGGER_FACTORY_NAME+\" is reserved and cannot be used.\");return e.INSTANCE_SERVICE.createNamedLoggerFactory(t,r)},e.closeLoggers=function(){return e.INSTANCE_SERVICE.closeLoggers()},e.getRuntimeSettings=function(){return e.INSTANCE_SERVICE},Object.defineProperty(e,\"DEFAULT\",{get:function(){return e.getDefault()},enumerable:!1,configurable:!0}),e.getDefault=function(){return null===e.DEFAULT_LOGGER_FACTORY&&(e.DEFAULT_LOGGER_FACTORY=e.DEFAULT_LOGGER_FACTORY=e.INSTANCE_SERVICE.createNamedLoggerFactory(e.DEFAULT_LOGGER_FACTORY_NAME,(new u.LoggerFactoryOptions).addLogGroupRule(new a.LogGroupRule(new RegExp(\".+\"),i.LogLevel.Error)))),e.DEFAULT_LOGGER_FACTORY},e.DEFAULT_LOGGER_FACTORY_NAME=\"DEFAULT\",e.INSTANCE_SERVICE=c.getInstance(),e.DEFAULT_LOGGER_FACTORY=null,e}();t.LFService=l},1570:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LogGroupRule=void 0;var n=r(5029),i=function(){function e(e,t,r,i,o){void 0===r&&(r=new n.LogFormat),void 0===i&&(i=n.LoggerType.Console),void 0===o&&(o=null),this._formatterLogMessage=null,this._regExp=e,this._level=t,this._logFormat=r,this._loggerType=i,this._callBackLogger=o}return Object.defineProperty(e.prototype,\"regExp\",{get:function(){return this._regExp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"level\",{get:function(){return this._level},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"loggerType\",{get:function(){return this._loggerType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logFormat\",{get:function(){return this._logFormat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"callBackLogger\",{get:function(){return this._callBackLogger},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"formatterLogMessage\",{get:function(){return this._formatterLogMessage},set:function(e){if(null!==e&&this._loggerType===n.LoggerType.Custom)throw new Error(\"You cannot specify a formatter for log messages if your loggerType is Custom\");this._formatterLogMessage=e},enumerable:!1,configurable:!0}),e}();t.LogGroupRule=i},5611:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LogGroupRuntimeSettings=void 0;var n=r(5029),i=function(){function e(e){this._formatterLogMessage=null,this._logGroupRule=e,this._level=e.level,this._loggerType=e.loggerType,this._logFormat=new n.LogFormat(new n.DateFormat(e.logFormat.dateFormat.formatEnum,e.logFormat.dateFormat.dateSeparator),e.logFormat.showTimeStamp,e.logFormat.showLoggerName),this._callBackLogger=e.callBackLogger,this._formatterLogMessage=e.formatterLogMessage}return Object.defineProperty(e.prototype,\"logGroupRule\",{get:function(){return this._logGroupRule},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"level\",{get:function(){return this._level},set:function(e){this._level=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"loggerType\",{get:function(){return this._loggerType},set:function(e){this._loggerType=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"logFormat\",{get:function(){return this._logFormat},set:function(e){this._logFormat=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"callBackLogger\",{get:function(){return this._callBackLogger},set:function(e){this._callBackLogger=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"formatterLogMessage\",{get:function(){return this._formatterLogMessage},set:function(e){this._formatterLogMessage=e},enumerable:!1,configurable:!0}),e}();t.LogGroupRuntimeSettings=i},2069:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LoggerFactoryImpl=void 0;var n=r(9820),i=r(5029),o=r(6866),s=r(2854),a=r(4863),u=r(5611),c=function(){function e(e,t){this._loggers=new n.SimpleMap,this._logGroupRuntimeSettingsIndexed=[],this._loggerToLogGroupSettings=new n.SimpleMap,this._name=e,this.configure(t)}return e.prototype.configure=function(e){this._options=e,this.closeLoggers(),this._loggerToLogGroupSettings.clear(),this._logGroupRuntimeSettingsIndexed=[];for(var t=this._options.logGroupRules,r=0;r<t.length;r++)this._logGroupRuntimeSettingsIndexed.push(new u.LogGroupRuntimeSettings(t[r]))},e.prototype.getLogger=function(e){if(!this._options.enabled)throw new Error(\"LoggerFactory is not enabled, please check your options passed in\");var t=this._loggers.get(e);return void 0!==t||(t=this.loadLogger(e),this._loggers.put(e,t)),t},e.prototype.isEnabled=function(){return this._options.enabled},e.prototype.closeLoggers=function(){this._loggers.forEachValue((function(e){e instanceof a.AbstractLogger&&e.close()})),this._loggers.clear()},e.prototype.getName=function(){return this._name},e.prototype.getLogGroupRuntimeSettingsByIndex=function(e){return e>=0&&e<this._logGroupRuntimeSettingsIndexed.length?this._logGroupRuntimeSettingsIndexed[e]:null},e.prototype.getLogGroupRuntimeSettingsByLoggerName=function(e){var t=this._loggerToLogGroupSettings.get(e);return void 0===t?null:t},e.prototype.getLogGroupRuntimeSettings=function(){return this._logGroupRuntimeSettingsIndexed.slice(0)},e.prototype.loadLogger=function(e){for(var t=this._options.logGroupRules,r=0;r<t.length;r++){var n=t[r];if(n.regExp.test(e)){var a=this._logGroupRuntimeSettingsIndexed[r],u=void 0;switch(n.loggerType){case i.LoggerType.Console:u=new o.ConsoleLoggerImpl(e,a);break;case i.LoggerType.MessageBuffer:u=new s.MessageBufferLoggerImpl(e,a);break;case i.LoggerType.Custom:if(null==n.callBackLogger)throw new Error(\"Cannot create a custom logger, custom callback is null\");u=n.callBackLogger(e,a);break;default:throw new Error(\"Cannot create a Logger for LoggerType: \"+n.loggerType)}return this._loggerToLogGroupSettings.put(e,a),u}}throw new Error(\"Failed to find a match to create a Logger for: \"+e)},e}();t.LoggerFactoryImpl=c},8021:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LoggerFactoryOptions=void 0;var r=function(){function e(){this._logGroupRules=[],this._enabled=!0}return e.prototype.addLogGroupRule=function(e){return this._logGroupRules.push(e),this},e.prototype.setEnabled=function(e){return this._enabled=e,this},Object.defineProperty(e.prototype,\"logGroupRules\",{get:function(){return this._logGroupRules},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"enabled\",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),e}();t.LoggerFactoryOptions=r},2854:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.MessageBufferLoggerImpl=void 0;var o=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.messages=[],n}return i(t,e),t.prototype.close=function(){this.messages=[],e.prototype.close.call(this)},t.prototype.getMessages=function(){return this.messages},t.prototype.toString=function(){return this.messages.map((function(e){return e})).join(\"\\n\")},t.prototype.doLog=function(e){var t,r=this._getMessageFormatter();t=null===r?this.createDefaultLogMessage(e):r(e),this.messages.push(t)},t}(r(4863).AbstractLogger);t.MessageBufferLoggerImpl=o},6015:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)\"default\"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,\"__esModule\",{value:!0}),t.getCategoryControl=t.getLogControl=t.help=t.MessageFormatUtils=t.LinkedList=t.SimpleMap=t.LogLevel=t.LoggerType=t.LogFormat=t.DateFormatEnum=t.DateFormat=t.CategoryLogFormat=t.MessageBufferLoggerImpl=t.ConsoleLoggerImpl=t.AbstractLogger=t.LFService=t.LogGroupRule=t.LoggerFactoryOptions=t.CategoryServiceFactory=t.CategoryMessageBufferLoggerImpl=t.CategoryConfiguration=t.CategoryRuntimeSettings=t.Category=t.CategoryDelegateLoggerImpl=t.CategoryConsoleLoggerImpl=t.AbstractCategoryLogger=t.ExtensionHelper=void 0;var o=r(7278),s=r(7558);i(r(5852),t),i(r(5659),t),i(r(6060),t);var a=r(9241);Object.defineProperty(t,\"ExtensionHelper\",{enumerable:!0,get:function(){return a.ExtensionHelper}});var u=r(8308);Object.defineProperty(t,\"AbstractCategoryLogger\",{enumerable:!0,get:function(){return u.AbstractCategoryLogger}});var c=r(8071);Object.defineProperty(t,\"CategoryConsoleLoggerImpl\",{enumerable:!0,get:function(){return c.CategoryConsoleLoggerImpl}});var l=r(311);Object.defineProperty(t,\"CategoryDelegateLoggerImpl\",{enumerable:!0,get:function(){return l.CategoryDelegateLoggerImpl}});var h=r(7058);Object.defineProperty(t,\"Category\",{enumerable:!0,get:function(){return h.Category}});var f=r(9165);Object.defineProperty(t,\"CategoryRuntimeSettings\",{enumerable:!0,get:function(){return f.CategoryRuntimeSettings}});var g=r(7694);Object.defineProperty(t,\"CategoryConfiguration\",{enumerable:!0,get:function(){return g.CategoryConfiguration}});var p=r(7439);Object.defineProperty(t,\"CategoryMessageBufferLoggerImpl\",{enumerable:!0,get:function(){return p.CategoryMessageBufferLoggerImpl}});var d=r(257);Object.defineProperty(t,\"CategoryServiceFactory\",{enumerable:!0,get:function(){return d.CategoryServiceFactory}});var v=r(8021);Object.defineProperty(t,\"LoggerFactoryOptions\",{enumerable:!0,get:function(){return v.LoggerFactoryOptions}});var y=r(1570);Object.defineProperty(t,\"LogGroupRule\",{enumerable:!0,get:function(){return y.LogGroupRule}});var m=r(9392);Object.defineProperty(t,\"LFService\",{enumerable:!0,get:function(){return m.LFService}});var _=r(4863);Object.defineProperty(t,\"AbstractLogger\",{enumerable:!0,get:function(){return _.AbstractLogger}});var b=r(6866);Object.defineProperty(t,\"ConsoleLoggerImpl\",{enumerable:!0,get:function(){return b.ConsoleLoggerImpl}});var w=r(2854);Object.defineProperty(t,\"MessageBufferLoggerImpl\",{enumerable:!0,get:function(){return w.MessageBufferLoggerImpl}});var S=r(5029);Object.defineProperty(t,\"CategoryLogFormat\",{enumerable:!0,get:function(){return S.CategoryLogFormat}}),Object.defineProperty(t,\"DateFormat\",{enumerable:!0,get:function(){return S.DateFormat}}),Object.defineProperty(t,\"DateFormatEnum\",{enumerable:!0,get:function(){return S.DateFormatEnum}}),Object.defineProperty(t,\"LogFormat\",{enumerable:!0,get:function(){return S.LogFormat}}),Object.defineProperty(t,\"LoggerType\",{enumerable:!0,get:function(){return S.LoggerType}}),Object.defineProperty(t,\"LogLevel\",{enumerable:!0,get:function(){return S.LogLevel}});var F=r(9820);Object.defineProperty(t,\"SimpleMap\",{enumerable:!0,get:function(){return F.SimpleMap}}),Object.defineProperty(t,\"LinkedList\",{enumerable:!0,get:function(){return F.LinkedList}}),i(r(9764),t);var E=r(4010);Object.defineProperty(t,\"MessageFormatUtils\",{enumerable:!0,get:function(){return E.MessageFormatUtils}}),t.help=function(){console.log(\"help()\\n ** Shows this help\\n\\n getLogControl(): LoggerControl\\n ** Returns LoggerControl Object, use to dynamically change loglevels for log4j logging.\\n ** Call .help() on LoggerControl object for available options.\\n\\n getCategoryControl(): CategoryServiceControl\\n ** Returns CategoryServiceControl Object, use to dynamically change loglevels for category logging.\\n ** Call .help() on CategoryServiceControl object for available options.\\n\")},t.getLogControl=function(){return new o.LoggerControlImpl},t.getCategoryControl=function(){return new s.CategoryServiceControlImpl}},9820:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.StringBuilder=t.TuplePair=t.SimpleMap=t.LinkedList=void 0;var r=function(){function e(e){this._previous=null,this._next=null,this._value=e}return Object.defineProperty(e.prototype,\"previous\",{get:function(){return this._previous},set:function(e){this._previous=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"next\",{get:function(){return this._next},set:function(e){this._next=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"value\",{get:function(){return this._value},enumerable:!1,configurable:!0}),e}(),n=function(){function e(){this.head=null,this.size=0}return e.prototype.addHead=function(e){if(!this.createHeadIfNeeded(e)){if(null==this.head)throw new Error(\"This should never happen, list implementation broken\");var t=this.head.next,n=new r(e);null!=t&&(t.previous=n,n.next=t),this.head=n}this.size++},e.prototype.addTail=function(e){if(!this.createHeadIfNeeded(e)){var t=this.getTailNode();if(null==t)throw new Error(\"List implementation broken\");var n=new r(e);t.next=n,n.previous=t}this.size++},e.prototype.clear=function(){this.head=null,this.size=0},e.prototype.getHead=function(){return null!=this.head?this.head.value:null},e.prototype.removeHead=function(){if(null!=this.head){var e=this.head,t=e.value;return this.head=e.next,this.size--,t}return null},e.prototype.getTail=function(){var e=this.getTailNode();return null!=e?e.value:null},e.prototype.removeTail=function(){var e=this.getTailNode();if(null!=e){if(e===this.head)this.head=null;else{var t=e.previous;if(null==t)throw new Error(\"List implementation is broken\");t.next=null}return this.size--,e.value}return null},e.prototype.getSize=function(){return this.size},e.prototype.filter=function(e){var t=function(e,r,n){e(r.value)&&n.push(r.value);var i=r.next;null!=i&&t(e,i,n)},r=[],n=this.head;return null!=n&&t(e,n,r),r},e.prototype.createHeadIfNeeded=function(e){return null==this.head&&(this.head=new r(e),!0)},e.prototype.getTailNode=function(){if(null==this.head)return null;for(var e=this.head;null!=e.next;)e=e.next;return e},e}();t.LinkedList=n;var i=function(){function e(){this.array={}}return e.prototype.put=function(e,t){this.array[e]=t},e.prototype.get=function(e){return this.array[e]},e.prototype.exists=function(e){return void 0!==this.array[e]},e.prototype.remove=function(e){var t=this.array[e];return void 0!==t&&delete this.array[e],t},e.prototype.keys=function(){var e=[];for(var t in this.array)this.array.hasOwnProperty(t)&&e.push(t);return e},e.prototype.values=function(){var e=[];for(var t in this.array)this.array.hasOwnProperty(t)&&e.push(this.get(t));return e},e.prototype.size=function(){return this.keys().length},e.prototype.isEmpty=function(){return 0===this.size()},e.prototype.clear=function(){this.array={}},e.prototype.forEach=function(e){var t=0;for(var r in this.array)this.array.hasOwnProperty(r)&&(e(r,this.array[r],t),t++)},e.prototype.forEachValue=function(e){var t=0;for(var r in this.array)this.array.hasOwnProperty(r)&&(e(this.array[r],t),t++)},e}();t.SimpleMap=i;var o=function(){function e(e,t){this._x=e,this._y=t}return Object.defineProperty(e.prototype,\"x\",{get:function(){return this._x},set:function(e){this._x=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"y\",{get:function(){return this._y},set:function(e){this._y=e},enumerable:!1,configurable:!0}),e}();t.TuplePair=o;var s=function(){function e(){this.data=[]}return e.prototype.append=function(e){if(void 0===e||null==e)throw new Error(\"String must be set, cannot append null or undefined\");return this.data.push(e),this},e.prototype.appendLine=function(e){return this.data.push(e+\"\\n\"),this},e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.clear=function(){this.data=[]},e.prototype.toString=function(e){return void 0===e&&(e=\"\"),this.data.join(e)},e}();t.StringBuilder=s},9764:function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,\"__esModule\",{value:!0}),t.JSONHelper=t.JSONArray=t.JSONObject=void 0;var o=r(5029),s=r(9820),a=function(){function e(e){this._value=e}return e.prototype.getValue=function(){return this._value},e}(),u=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(a),c=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(a),l=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.toString=function(){var e=this.getValue();return null!=e?JSON.stringify(e.toString()):\"null\"},t}(a),h=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(a),f=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.toString=function(){var e=this.getValue();return null!=e?e.toString():\"null\"},t}(a),g=function(e){function t(){return e.call(this,null)||this}return i(t,e),t.prototype.toString=function(){return\"null\"},t}(a),p=function(){function e(){}return e.toJSONType=function(e){if(null===e)return new g;if(\"string\"==typeof e)return new l(e);if(\"number\"==typeof e)return new c(e);if(\"boolean\"==typeof e)return new u(e);if(e instanceof d)return new h(e);throw new Error(\"Type not supported for value: \"+e)},e}(),d=function(){function e(){this.values=new s.SimpleMap}return e.prototype.addBoolean=function(t,r){return this.checkName(t),e.checkValue(r),this.values.put(t,new u(r)),this},e.prototype.addNumber=function(t,r){return this.checkName(t),e.checkValue(r),this.values.put(t,new c(r)),this},e.prototype.addString=function(t,r){return this.checkName(t),e.checkValue(r),this.values.put(t,new l(r)),this},e.prototype.addNull=function(e){return this.checkName(e),this.values.put(e,new g),this},e.prototype.addArray=function(t,r){if(this.checkName(t),e.checkValue(r),null==r)throw new Error(\"Cannot add array as null\");return this.values.put(t,new f(r)),this},e.prototype.addObject=function(t,r){if(this.checkName(t),e.checkValue(r),null==r)throw new Error(\"Cannot add object as null\");return this.values.put(t,new h(r)),this},e.prototype.toString=function(e){var t=this;void 0===e&&(e=!1);var r=!1,n=new s.StringBuilder;return n.append(\"{\"),this.values.keys().forEach((function(e){var i=t.values.get(e);null!=i&&(r&&n.append(\",\"),n.append('\"').append(e).append('\":').append(i.toString()),r=!0)})),n.append(\"}\"),n.toString()},e.prototype.checkName=function(e){if(null==e||void 0===e)throw new Error(\"Name is null or undefined\");if(this.values.exists(e))throw new Error(\"Name \"+e+\" is already present for this object\")},e.checkValue=function(e){if(void 0===e)throw new Error(\"Value is undefined\")},e}();t.JSONObject=d;var v=function(){function e(){this.objects=[]}return e.prototype.add=function(e){if(void 0===e)throw new Error(\"Object is not allowed to be undefined\");return this.objects.push(p.toJSONType(e)),this},e.prototype.toString=function(e){void 0===e&&(e=!1);var t=new s.StringBuilder;return t.append(\"[\"),this.objects.forEach((function(e,r){r>0&&t.append(\",\"),t.append(e.toString())})),t.append(\"]\"),t.toString()},e}();t.JSONArray=v;var y=function(){function e(){}return e.categoryToJSON=function(t,r){var n=new v;e._categoryToJSON(t,n,r);var i=new d;return i.addArray(\"categories\",n),i},e._categoryToJSON=function(t,r,n){var i=new d;i.addNumber(\"id\",t.id),i.addString(\"name\",t.name),i.addString(\"logLevel\",o.LogLevel[t.logLevel].toString()),null!=t.parent?i.addNumber(\"parent\",t.parent.id):i.addNull(\"parent\"),r.add(i),n&&t.children.forEach((function(t){e._categoryToJSON(t,r,n)}))},e}();t.JSONHelper=y},4010:(e,t,r)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.MessageFormatUtils=void 0;var n=r(8139),i=r(5029),o=function(){function e(){}return e.renderDate=function(e,t){var r=function(e,t,r){var n=t-e.length;if(n>0){for(var i=\"\",o=0;o<n;o++)i+=r;return i+e}return e},n=function(e){return r(e.getFullYear().toString(),4,\"0\")},o=function(e){return r((e.getMonth()+1).toString(),2,\"0\")},s=function(e){return r(e.getDate().toString(),2,\"0\")},a=function(e){return r(e.getHours().toString(),2,\"0\")},u=function(e){return r(e.getMinutes().toString(),2,\"0\")},c=function(e){return r(e.getSeconds().toString(),2,\"0\")},l=function(e){return r(e.getMilliseconds().toString(),3,\"0\")},h=t.dateSeparator,f=\"\";switch(t.formatEnum){case i.DateFormatEnum.Default:f=n(e)+h+o(e)+h+s(e)+\" \"+a(e)+\":\"+u(e)+\":\"+c(e)+\",\"+l(e);break;case i.DateFormatEnum.YearMonthDayTime:f=n(e)+h+o(e)+h+s(e)+\" \"+a(e)+\":\"+u(e)+\":\"+c(e);break;case i.DateFormatEnum.YearDayMonthWithFullTime:f=n(e)+h+s(e)+h+o(e)+\" \"+a(e)+\":\"+u(e)+\":\"+c(e)+\",\"+l(e);break;case i.DateFormatEnum.YearDayMonthTime:f=n(e)+h+s(e)+h+o(e)+\" \"+a(e)+\":\"+u(e)+\":\"+c(e);break;default:throw new Error(\"Unsupported date format enum: \"+t.formatEnum)}return f},e.renderDefaultMessage=function(t,r){var n=\"\",o=t.logFormat;o.showTimeStamp&&(n+=e.renderDate(t.date,o.dateFormat)+\" \"),n+=i.LogLevel[t.level].toUpperCase(),t.isResolvedErrorMessage&&(n+=\" (resolved)\"),n+=\" \",o.showCategoryName&&(n+=\"[\",t.categories.forEach((function(e,t){t>0&&(n+=\", \"),n+=e.name})),n+=\"]\");var s=\"\",a=\"\",u=t.message;if(\"string\"==typeof u)s=u;else{var c=u;s=c.msg,c.data&&(a=\" [data]: \"+(c.ds?c.ds(c.data):JSON.stringify(c.data)))}return n+=\" \"+s+a,r&&null!==t.errorAsStack&&(n+=\"\\n\"+t.errorAsStack),n},e.renderDefaultLog4jMessage=function(t,r){var n=t.logGroupRule.logFormat,o=\"\";n.showTimeStamp&&(o+=e.renderDate(t.date,n.dateFormat)+\" \"),o+=i.LogLevel[t.level].toUpperCase()+\" \",n.showLoggerName&&(o+=\"[\"+t.loggerName+\"]\");var s=\"\",a=\"\";if(\"string\"==typeof t.message)s=t.message;else{var u=t.message;s=u.msg,u.data&&(a=\" [data]: \"+(u.ds?u.ds(u.data):JSON.stringify(u.data)))}return o+=\" \"+s+a,r&&null!==t.errorAsStack&&(o+=\"\\n\"+t.errorAsStack),o},e.renderError=function(e){var t=e.name+\": \"+e.message+\"\\n@\";return new Promise((function(r){n.fromError(e,{offline:!0}).then((function(e){var n=e.map((function(e){return e.toString()})).join(\"\\n \");r(t+=\"\\n\"+n)})).catch((function(){t=\"Unexpected error object was passed in. \";try{t+=\"Could not resolve it, stringified object: \"+JSON.stringify(e)}catch(e){t+=\"Could not resolve it or stringify it.\"}r(t)}))}))},e}();t.MessageFormatUtils=o}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var n={};(()=>{var e=n;Object.defineProperty(e,\"__esModule\",{value:!0}),e.LogLevel=e.OidcSecurityService=e.OidcConfigService=e.resolveOidcSecurityService=e.resolveOidcConfigService=void 0,r(4741);const t=r(659),i=r(2615),o=r(548);Object.defineProperty(e,\"OidcConfigService\",{enumerable:!0,get:function(){return o.OidcConfigService}});const s=r(3374);Object.defineProperty(e,\"LogLevel\",{enumerable:!0,get:function(){return s.LogLevel}});const a=r(8720);Object.defineProperty(e,\"OidcSecurityService\",{enumerable:!0,get:function(){return a.OidcSecurityService}}),e.resolveOidcConfigService=()=>t.container.resolve(o.OidcConfigService),e.resolveOidcSecurityService=()=>t.container.resolve(i.OidcSecurityServiceFactory).buid()})(),module.exports=n;","import { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n }\n getValue() {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n }\n next(value) {\n super.next(this._value = value);\n }\n}\n","import { empty } from './observable/empty';\nimport { of } from './observable/of';\nimport { throwError } from './observable/throwError';\nexport var NotificationKind;\n(function (NotificationKind) {\n NotificationKind[\"NEXT\"] = \"N\";\n NotificationKind[\"ERROR\"] = \"E\";\n NotificationKind[\"COMPLETE\"] = \"C\";\n})(NotificationKind || (NotificationKind = {}));\nexport class Notification {\n constructor(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n observe(observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.error);\n case 'C':\n return observer.complete && observer.complete();\n }\n }\n do(next, error, complete) {\n const kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.error);\n case 'C':\n return complete && complete();\n }\n }\n accept(nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n }\n toObservable() {\n const kind = this.kind;\n switch (kind) {\n case 'N':\n return of(this.value);\n case 'E':\n return throwError(this.error);\n case 'C':\n return empty();\n }\n throw new Error('unexpected notification kind value');\n }\n static createNext(value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return Notification.undefinedValueNotification;\n }\n static createError(err) {\n return new Notification('E', undefined, err);\n }\n static createComplete() {\n return Notification.completeNotification;\n }\n}\nNotification.completeNotification = new Notification('C');\nNotification.undefinedValueNotification = new Notification('N', undefined);\n","import { canReportError } from './util/canReportError';\nimport { toSubscriber } from './util/toSubscriber';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nexport class Observable {\n constructor(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const { operator } = this;\n const sink = toSubscriber(observerOrNext, error, complete);\n if (operator) {\n sink.add(operator.call(sink, this.source));\n }\n else {\n sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?\n this._subscribe(sink) :\n this._trySubscribe(sink));\n }\n if (config.useDeprecatedSynchronousErrorHandling) {\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n }\n return sink;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n sink.syncErrorThrown = true;\n sink.syncErrorValue = err;\n }\n if (canReportError(sink)) {\n sink.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let subscription;\n subscription = this.subscribe((value) => {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n if (subscription) {\n subscription.unsubscribe();\n }\n }\n }, reject, resolve);\n });\n }\n _subscribe(subscriber) {\n const { source } = this;\n return source && source.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n if (operations.length === 0) {\n return this;\n }\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe((x) => value = x, (err) => reject(err), () => resolve(value));\n });\n }\n}\nObservable.create = (subscribe) => {\n return new Observable(subscribe);\n};\nfunction getPromiseCtor(promiseCtor) {\n if (!promiseCtor) {\n promiseCtor = config.Promise || Promise;\n }\n if (!promiseCtor) {\n throw new Error('no Promise impl found');\n }\n return promiseCtor;\n}\n","import { Subscriber } from '../Subscriber';\nimport { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';\nimport { empty as emptyObserver } from '../Observer';\nexport function toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver) {\n if (nextOrObserver instanceof Subscriber) {\n return nextOrObserver;\n }\n if (nextOrObserver[rxSubscriberSymbol]) {\n return nextOrObserver[rxSubscriberSymbol]();\n }\n }\n if (!nextOrObserver && !error && !complete) {\n return new Subscriber(emptyObserver);\n }\n return new Subscriber(nextOrObserver, error, complete);\n}\n","import { Subscriber } from '../Subscriber';\nexport function canReportError(observer) {\n while (observer) {\n const { closed, destination, isStopped } = observer;\n if (closed || isStopped) {\n return false;\n }\n else if (destination && destination instanceof Subscriber) {\n observer = destination;\n }\n else {\n observer = null;\n }\n }\n return true;\n}\n","import { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport const empty = {\n closed: true,\n next(value) { },\n error(err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n },\n complete() { }\n};\n","import { Subscriber } from './Subscriber';\nexport class OuterSubscriber extends Subscriber {\n notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n }\n notifyError(error, innerSub) {\n this.destination.error(error);\n }\n notifyComplete(innerSub) {\n this.destination.complete();\n }\n}\n","import { Subject } from './Subject';\nimport { queue } from './scheduler/queue';\nimport { Subscription } from './Subscription';\nimport { ObserveOnSubscriber } from './operators/observeOn';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nexport class ReplaySubject extends Subject {\n constructor(bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, scheduler) {\n super();\n this.scheduler = scheduler;\n this._events = [];\n this._infiniteTimeWindow = false;\n this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n this._windowTime = windowTime < 1 ? 1 : windowTime;\n if (windowTime === Number.POSITIVE_INFINITY) {\n this._infiniteTimeWindow = true;\n this.next = this.nextInfiniteTimeWindow;\n }\n else {\n this.next = this.nextTimeWindow;\n }\n }\n nextInfiniteTimeWindow(value) {\n if (!this.isStopped) {\n const _events = this._events;\n _events.push(value);\n if (_events.length > this._bufferSize) {\n _events.shift();\n }\n }\n super.next(value);\n }\n nextTimeWindow(value) {\n if (!this.isStopped) {\n this._events.push(new ReplayEvent(this._getNow(), value));\n this._trimBufferThenGetEvents();\n }\n super.next(value);\n }\n _subscribe(subscriber) {\n const _infiniteTimeWindow = this._infiniteTimeWindow;\n const _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();\n const scheduler = this.scheduler;\n const len = _events.length;\n let subscription;\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.isStopped || this.hasError) {\n subscription = Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n subscription = new SubjectSubscription(this, subscriber);\n }\n if (scheduler) {\n subscriber.add(subscriber = new ObserveOnSubscriber(subscriber, scheduler));\n }\n if (_infiniteTimeWindow) {\n for (let i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i]);\n }\n }\n else {\n for (let i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i].value);\n }\n }\n if (this.hasError) {\n subscriber.error(this.thrownError);\n }\n else if (this.isStopped) {\n subscriber.complete();\n }\n return subscription;\n }\n _getNow() {\n return (this.scheduler || queue).now();\n }\n _trimBufferThenGetEvents() {\n const now = this._getNow();\n const _bufferSize = this._bufferSize;\n const _windowTime = this._windowTime;\n const _events = this._events;\n const eventsCount = _events.length;\n let spliceCount = 0;\n while (spliceCount < eventsCount) {\n if ((now - _events[spliceCount].time) < _windowTime) {\n break;\n }\n spliceCount++;\n }\n if (eventsCount > _bufferSize) {\n spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n }\n if (spliceCount > 0) {\n _events.splice(0, spliceCount);\n }\n return _events;\n }\n}\nclass ReplayEvent {\n constructor(time, value) {\n this.time = time;\n this.value = value;\n }\n}\n","import { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nexport class SubjectSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n this.destination = destination;\n }\n}\nexport class Subject extends Observable {\n constructor() {\n super();\n this.observers = [];\n this.closed = false;\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n [rxSubscriberSymbol]() {\n return new SubjectSubscriber(this);\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n next(value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n const { observers } = this;\n const len = observers.length;\n const copy = observers.slice();\n for (let i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n }\n error(err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n const { observers } = this;\n const len = observers.length;\n const copy = observers.slice();\n for (let i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n }\n complete() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.isStopped = true;\n const { observers } = this;\n const len = observers.length;\n const copy = observers.slice();\n for (let i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n }\n unsubscribe() {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n }\n _trySubscribe(subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return super._trySubscribe(subscriber);\n }\n }\n _subscribe(subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription(this, subscriber);\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n}\nSubject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n};\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n const { destination } = this;\n if (destination && destination.next) {\n destination.next(value);\n }\n }\n error(err) {\n const { destination } = this;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n }\n complete() {\n const { destination } = this;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n }\n _subscribe(subscriber) {\n const { source } = this;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription.EMPTY;\n }\n }\n}\n","import { Subscription } from './Subscription';\nexport class SubjectSubscription extends Subscription {\n constructor(subject, subscriber) {\n super();\n this.subject = subject;\n this.subscriber = subscriber;\n this.closed = false;\n }\n unsubscribe() {\n if (this.closed) {\n return;\n }\n this.closed = true;\n const subject = this.subject;\n const observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n const subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { empty as emptyObserver } from './Observer';\nimport { Subscription } from './Subscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport class Subscriber extends Subscription {\n constructor(destinationOrNext, error, complete) {\n super();\n this.syncErrorValue = null;\n this.syncErrorThrown = false;\n this.syncErrorThrowable = false;\n this.isStopped = false;\n switch (arguments.length) {\n case 0:\n this.destination = emptyObserver;\n break;\n case 1:\n if (!destinationOrNext) {\n this.destination = emptyObserver;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;\n this.destination = destinationOrNext;\n destinationOrNext.add(this);\n }\n else {\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext);\n }\n break;\n }\n default:\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);\n break;\n }\n }\n [rxSubscriberSymbol]() { return this; }\n static create(next, error, complete) {\n const subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n }\n next(value) {\n if (!this.isStopped) {\n this._next(value);\n }\n }\n error(err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (this.closed) {\n return;\n }\n this.isStopped = true;\n super.unsubscribe();\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n this.destination.error(err);\n this.unsubscribe();\n }\n _complete() {\n this.destination.complete();\n this.unsubscribe();\n }\n _unsubscribeAndRecycle() {\n const { _parentOrParents } = this;\n this._parentOrParents = null;\n this.unsubscribe();\n this.closed = false;\n this.isStopped = false;\n this._parentOrParents = _parentOrParents;\n return this;\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(_parentSubscriber, observerOrNext, error, complete) {\n super();\n this._parentSubscriber = _parentSubscriber;\n let next;\n let context = this;\n if (isFunction(observerOrNext)) {\n next = observerOrNext;\n }\n else if (observerOrNext) {\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (observerOrNext !== emptyObserver) {\n context = Object.create(observerOrNext);\n if (isFunction(context.unsubscribe)) {\n this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = this.unsubscribe.bind(this);\n }\n }\n this._context = context;\n this._next = next;\n this._error = error;\n this._complete = complete;\n }\n next(value) {\n if (!this.isStopped && this._next) {\n const { _parentSubscriber } = this;\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n }\n else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {\n this.unsubscribe();\n }\n }\n }\n error(err) {\n if (!this.isStopped) {\n const { _parentSubscriber } = this;\n const { useDeprecatedSynchronousErrorHandling } = config;\n if (this._error) {\n if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, this._error, err);\n this.unsubscribe();\n }\n }\n else if (!_parentSubscriber.syncErrorThrowable) {\n this.unsubscribe();\n if (useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n hostReportError(err);\n }\n else {\n if (useDeprecatedSynchronousErrorHandling) {\n _parentSubscriber.syncErrorValue = err;\n _parentSubscriber.syncErrorThrown = true;\n }\n else {\n hostReportError(err);\n }\n this.unsubscribe();\n }\n }\n }\n complete() {\n if (!this.isStopped) {\n const { _parentSubscriber } = this;\n if (this._complete) {\n const wrappedComplete = () => this._complete.call(this._context);\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(wrappedComplete);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, wrappedComplete);\n this.unsubscribe();\n }\n }\n else {\n this.unsubscribe();\n }\n }\n }\n __tryOrUnsub(fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n this.unsubscribe();\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n }\n }\n __tryOrSetError(parent, fn, value) {\n if (!config.useDeprecatedSynchronousErrorHandling) {\n throw new Error('bad call');\n }\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n else {\n hostReportError(err);\n return true;\n }\n }\n return false;\n }\n _unsubscribe() {\n const { _parentSubscriber } = this;\n this._context = null;\n this._parentSubscriber = null;\n _parentSubscriber.unsubscribe();\n }\n}\n","const UnsubscriptionErrorImpl = (() => {\n function UnsubscriptionErrorImpl(errors) {\n Error.call(this);\n this.message = errors ?\n `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}` : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n return this;\n }\n UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);\n return UnsubscriptionErrorImpl;\n})();\nexport const UnsubscriptionError = UnsubscriptionErrorImpl;\n","import { isArray } from './util/isArray';\nimport { isObject } from './util/isObject';\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nexport class Subscription {\n constructor(unsubscribe) {\n this.closed = false;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (unsubscribe) {\n this._ctorUnsubscribe = true;\n this._unsubscribe = unsubscribe;\n }\n }\n unsubscribe() {\n let errors;\n if (this.closed) {\n return;\n }\n let { _parentOrParents, _ctorUnsubscribe, _unsubscribe, _subscriptions } = this;\n this.closed = true;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (_parentOrParents instanceof Subscription) {\n _parentOrParents.remove(this);\n }\n else if (_parentOrParents !== null) {\n for (let index = 0; index < _parentOrParents.length; ++index) {\n const parent = _parentOrParents[index];\n parent.remove(this);\n }\n }\n if (isFunction(_unsubscribe)) {\n if (_ctorUnsubscribe) {\n this._unsubscribe = undefined;\n }\n try {\n _unsubscribe.call(this);\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];\n }\n }\n if (isArray(_subscriptions)) {\n let index = -1;\n let len = _subscriptions.length;\n while (++index < len) {\n const sub = _subscriptions[index];\n if (isObject(sub)) {\n try {\n sub.unsubscribe();\n }\n catch (e) {\n errors = errors || [];\n if (e instanceof UnsubscriptionError) {\n errors = errors.concat(flattenUnsubscriptionErrors(e.errors));\n }\n else {\n errors.push(e);\n }\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n add(teardown) {\n let subscription = teardown;\n if (!teardown) {\n return Subscription.EMPTY;\n }\n switch (typeof teardown) {\n case 'function':\n subscription = new Subscription(teardown);\n case 'object':\n if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {\n return subscription;\n }\n else if (this.closed) {\n subscription.unsubscribe();\n return subscription;\n }\n else if (!(subscription instanceof Subscription)) {\n const tmp = subscription;\n subscription = new Subscription();\n subscription._subscriptions = [tmp];\n }\n break;\n default: {\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n }\n let { _parentOrParents } = subscription;\n if (_parentOrParents === null) {\n subscription._parentOrParents = this;\n }\n else if (_parentOrParents instanceof Subscription) {\n if (_parentOrParents === this) {\n return subscription;\n }\n subscription._parentOrParents = [_parentOrParents, this];\n }\n else if (_parentOrParents.indexOf(this) === -1) {\n _parentOrParents.push(this);\n }\n else {\n return subscription;\n }\n const subscriptions = this._subscriptions;\n if (subscriptions === null) {\n this._subscriptions = [subscription];\n }\n else {\n subscriptions.push(subscription);\n }\n return subscription;\n }\n remove(subscription) {\n const subscriptions = this._subscriptions;\n if (subscriptions) {\n const subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n }\n}\nSubscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n}(new Subscription()));\nfunction flattenUnsubscriptionErrors(errors) {\n return errors.reduce((errs, err) => errs.concat((err instanceof UnsubscriptionError) ? err.errors : err), []);\n}\n","let _enable_super_gross_mode_that_will_cause_bad_things = false;\nexport const config = {\n Promise: undefined,\n set useDeprecatedSynchronousErrorHandling(value) {\n if (value) {\n const error = new Error();\n console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \\n' + error.stack);\n }\n else if (_enable_super_gross_mode_that_will_cause_bad_things) {\n console.log('RxJS: Back to a better error behavior. Thank you. <3');\n }\n _enable_super_gross_mode_that_will_cause_bad_things = value;\n },\n get useDeprecatedSynchronousErrorHandling() {\n return _enable_super_gross_mode_that_will_cause_bad_things;\n },\n};\n","import { Subscriber } from './Subscriber';\nimport { Observable } from './Observable';\nimport { subscribeTo } from './util/subscribeTo';\nexport class SimpleInnerSubscriber extends Subscriber {\n constructor(parent) {\n super();\n this.parent = parent;\n }\n _next(value) {\n this.parent.notifyNext(value);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete();\n this.unsubscribe();\n }\n}\nexport class ComplexInnerSubscriber extends Subscriber {\n constructor(parent, outerValue, outerIndex) {\n super();\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n }\n _next(value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n }\n}\nexport class SimpleOuterSubscriber extends Subscriber {\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyError(err) {\n this.destination.error(err);\n }\n notifyComplete() {\n this.destination.complete();\n }\n}\nexport class ComplexOuterSubscriber extends Subscriber {\n notifyNext(_outerValue, innerValue, _outerIndex, _innerSub) {\n this.destination.next(innerValue);\n }\n notifyError(error) {\n this.destination.error(error);\n }\n notifyComplete(_innerSub) {\n this.destination.complete();\n }\n}\nexport function innerSubscribe(result, innerSubscriber) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n let subscription;\n try {\n subscription = subscribeTo(result)(innerSubscriber);\n }\n catch (error) {\n innerSubscriber.error(error);\n }\n return subscription;\n}\n","import { SubjectSubscriber } from '../Subject';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nexport class ConnectableObservable extends Observable {\n constructor(source, subjectFactory) {\n super();\n this.source = source;\n this.subjectFactory = subjectFactory;\n this._refCount = 0;\n this._isComplete = false;\n }\n _subscribe(subscriber) {\n return this.getSubject().subscribe(subscriber);\n }\n getSubject() {\n const subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n }\n connect() {\n let connection = this._connection;\n if (!connection) {\n this._isComplete = false;\n connection = this._connection = new Subscription();\n connection.add(this.source\n .subscribe(new ConnectableSubscriber(this.getSubject(), this)));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n }\n refCount() {\n return higherOrderRefCount()(this);\n }\n}\nexport const connectableObservableDescriptor = (() => {\n const connectableProto = ConnectableObservable.prototype;\n return {\n operator: { value: null },\n _refCount: { value: 0, writable: true },\n _subject: { value: null, writable: true },\n _connection: { value: null, writable: true },\n _subscribe: { value: connectableProto._subscribe },\n _isComplete: { value: connectableProto._isComplete, writable: true },\n getSubject: { value: connectableProto.getSubject },\n connect: { value: connectableProto.connect },\n refCount: { value: connectableProto.refCount }\n };\n})();\nclass ConnectableSubscriber extends SubjectSubscriber {\n constructor(destination, connectable) {\n super(destination);\n this.connectable = connectable;\n }\n _error(err) {\n this._unsubscribe();\n super._error(err);\n }\n _complete() {\n this.connectable._isComplete = true;\n this._unsubscribe();\n super._complete();\n }\n _unsubscribe() {\n const connectable = this.connectable;\n if (connectable) {\n this.connectable = null;\n const connection = connectable._connection;\n connectable._refCount = 0;\n connectable._subject = null;\n connectable._connection = null;\n if (connection) {\n connection.unsubscribe();\n }\n }\n }\n}\nclass RefCountOperator {\n constructor(connectable) {\n this.connectable = connectable;\n }\n call(subscriber, source) {\n const { connectable } = this;\n connectable._refCount++;\n const refCounter = new RefCountSubscriber(subscriber, connectable);\n const subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n }\n}\nclass RefCountSubscriber extends Subscriber {\n constructor(destination, connectable) {\n super(destination);\n this.connectable = connectable;\n }\n _unsubscribe() {\n const { connectable } = this;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n const refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n const { connection } = this;\n const sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n }\n}\n","import { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { fromArray } from './fromArray';\nconst NONE = {};\nexport function combineLatest(...observables) {\n let resultSelector = undefined;\n let scheduler = undefined;\n if (isScheduler(observables[observables.length - 1])) {\n scheduler = observables.pop();\n }\n if (typeof observables[observables.length - 1] === 'function') {\n resultSelector = observables.pop();\n }\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0];\n }\n return fromArray(observables, scheduler).lift(new CombineLatestOperator(resultSelector));\n}\nexport class CombineLatestOperator {\n constructor(resultSelector) {\n this.resultSelector = resultSelector;\n }\n call(subscriber, source) {\n return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector));\n }\n}\nexport class CombineLatestSubscriber extends OuterSubscriber {\n constructor(destination, resultSelector) {\n super(destination);\n this.resultSelector = resultSelector;\n this.active = 0;\n this.values = [];\n this.observables = [];\n }\n _next(observable) {\n this.values.push(NONE);\n this.observables.push(observable);\n }\n _complete() {\n const observables = this.observables;\n const len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n this.active = len;\n this.toRespond = len;\n for (let i = 0; i < len; i++) {\n const observable = observables[i];\n this.add(subscribeToResult(this, observable, undefined, i));\n }\n }\n }\n notifyComplete(unused) {\n if ((this.active -= 1) === 0) {\n this.destination.complete();\n }\n }\n notifyNext(_outerValue, innerValue, outerIndex) {\n const values = this.values;\n const oldVal = values[outerIndex];\n const toRespond = !this.toRespond\n ? 0\n : oldVal === NONE ? --this.toRespond : this.toRespond;\n values[outerIndex] = innerValue;\n if (toRespond === 0) {\n if (this.resultSelector) {\n this._tryResultSelector(values);\n }\n else {\n this.destination.next(values.slice());\n }\n }\n }\n _tryResultSelector(values) {\n let result;\n try {\n result = this.resultSelector.apply(this, values);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\n","import { of } from './of';\nimport { concatAll } from '../operators/concatAll';\nexport function concat(...observables) {\n return concatAll()(of(...observables));\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable(subscriber => subscriber.complete());\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));\n}\n","import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { map } from '../operators/map';\nimport { isObject } from '../util/isObject';\nimport { from } from './from';\nexport function forkJoin(...sources) {\n if (sources.length === 1) {\n const first = sources[0];\n if (isArray(first)) {\n return forkJoinInternal(first, null);\n }\n if (isObject(first) && Object.getPrototypeOf(first) === Object.prototype) {\n const keys = Object.keys(first);\n return forkJoinInternal(keys.map(key => first[key]), keys);\n }\n }\n if (typeof sources[sources.length - 1] === 'function') {\n const resultSelector = sources.pop();\n sources = (sources.length === 1 && isArray(sources[0])) ? sources[0] : sources;\n return forkJoinInternal(sources, null).pipe(map((args) => resultSelector(...args)));\n }\n return forkJoinInternal(sources, null);\n}\nfunction forkJoinInternal(sources, keys) {\n return new Observable(subscriber => {\n const len = sources.length;\n if (len === 0) {\n subscriber.complete();\n return;\n }\n const values = new Array(len);\n let completed = 0;\n let emitted = 0;\n for (let i = 0; i < len; i++) {\n const source = from(sources[i]);\n let hasValue = false;\n subscriber.add(source.subscribe({\n next: value => {\n if (!hasValue) {\n hasValue = true;\n emitted++;\n }\n values[i] = value;\n },\n error: err => subscriber.error(err),\n complete: () => {\n completed++;\n if (completed === len || !hasValue) {\n if (emitted === len) {\n subscriber.next(keys ?\n keys.reduce((result, key, i) => (result[key] = values[i], result), {}) :\n values);\n }\n subscriber.complete();\n }\n }\n }));\n }\n });\n}\n","import { Observable } from '../Observable';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { scheduled } from '../scheduled/scheduled';\nexport function from(input, scheduler) {\n if (!scheduler) {\n if (input instanceof Observable) {\n return input;\n }\n return new Observable(subscribeTo(input));\n }\n else {\n return scheduled(input, scheduler);\n }\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n else if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n else if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n else if (isIterable(input) || typeof input === 'string') {\n return scheduleIterable(input, scheduler);\n }\n }\n throw new TypeError((input !== null && typeof input || input) + ' is not observable');\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nexport function isInteropObservable(input) {\n return input && typeof input[Symbol_observable] === 'function';\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function scheduleObservable(input, scheduler) {\n return new Observable(subscriber => {\n const sub = new Subscription();\n sub.add(scheduler.schedule(() => {\n const observable = input[Symbol_observable]();\n sub.add(observable.subscribe({\n next(value) { sub.add(scheduler.schedule(() => subscriber.next(value))); },\n error(err) { sub.add(scheduler.schedule(() => subscriber.error(err))); },\n complete() { sub.add(scheduler.schedule(() => subscriber.complete())); },\n }));\n }));\n return sub;\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function schedulePromise(input, scheduler) {\n return new Observable(subscriber => {\n const sub = new Subscription();\n sub.add(scheduler.schedule(() => input.then(value => {\n sub.add(scheduler.schedule(() => {\n subscriber.next(value);\n sub.add(scheduler.schedule(() => subscriber.complete()));\n }));\n }, err => {\n sub.add(scheduler.schedule(() => subscriber.error(err)));\n })));\n return sub;\n });\n}\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function isIterable(input) {\n return input && typeof input[Symbol_iterator] === 'function';\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function scheduleIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(subscriber => {\n const sub = new Subscription();\n let iterator;\n sub.add(() => {\n if (iterator && typeof iterator.return === 'function') {\n iterator.return();\n }\n });\n sub.add(scheduler.schedule(() => {\n iterator = input[Symbol_iterator]();\n sub.add(scheduler.schedule(function () {\n if (subscriber.closed) {\n return;\n }\n let value;\n let done;\n try {\n const result = iterator.next();\n value = result.value;\n done = result.done;\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n this.schedule();\n }\n }));\n }));\n return sub;\n });\n}\n","import { Observable } from '../Observable';\nimport { subscribeToArray } from '../util/subscribeToArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function fromArray(input, scheduler) {\n if (!scheduler) {\n return new Observable(subscribeToArray(input));\n }\n else {\n return scheduleArray(input, scheduler);\n }\n}\n","import { isScheduler } from '../util/isScheduler';\nimport { fromArray } from './fromArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function of(...args) {\n let scheduler = args[args.length - 1];\n if (isScheduler(scheduler)) {\n args.pop();\n return scheduleArray(args, scheduler);\n }\n else {\n return fromArray(args);\n }\n}\n","import { Observable } from '../Observable';\nexport function throwError(error, scheduler) {\n if (!scheduler) {\n return new Observable(subscriber => subscriber.error(error));\n }\n else {\n return new Observable(subscriber => scheduler.schedule(dispatch, 0, { error, subscriber }));\n }\n}\nfunction dispatch({ error, subscriber }) {\n subscriber.error(error);\n}\n","import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function catchError(selector) {\n return function catchErrorOperatorFunction(source) {\n const operator = new CatchOperator(selector);\n const caught = source.lift(operator);\n return (operator.caught = caught);\n };\n}\nclass CatchOperator {\n constructor(selector) {\n this.selector = selector;\n }\n call(subscriber, source) {\n return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n }\n}\nclass CatchSubscriber extends SimpleOuterSubscriber {\n constructor(destination, selector, caught) {\n super(destination);\n this.selector = selector;\n this.caught = caught;\n }\n error(err) {\n if (!this.isStopped) {\n let result;\n try {\n result = this.selector(err, this.caught);\n }\n catch (err2) {\n super.error(err2);\n return;\n }\n this._unsubscribeAndRecycle();\n const innerSubscriber = new SimpleInnerSubscriber(this);\n this.add(innerSubscriber);\n const innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n this.add(innerSubscription);\n }\n }\n }\n}\n","import { mergeMap } from './mergeMap';\nexport function concatMap(project, resultSelector) {\n return mergeMap(project, resultSelector, 1);\n}\n","import { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function debounceTime(dueTime, scheduler = async) {\n return (source) => source.lift(new DebounceTimeOperator(dueTime, scheduler));\n}\nclass DebounceTimeOperator {\n constructor(dueTime, scheduler) {\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n }\n call(subscriber, source) {\n return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n }\n}\nclass DebounceTimeSubscriber extends Subscriber {\n constructor(destination, dueTime, scheduler) {\n super(destination);\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n this.debouncedSubscription = null;\n this.lastValue = null;\n this.hasValue = false;\n }\n _next(value) {\n this.clearDebounce();\n this.lastValue = value;\n this.hasValue = true;\n this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n }\n _complete() {\n this.debouncedNext();\n this.destination.complete();\n }\n debouncedNext() {\n this.clearDebounce();\n if (this.hasValue) {\n const { lastValue } = this;\n this.lastValue = null;\n this.hasValue = false;\n this.destination.next(lastValue);\n }\n }\n clearDebounce() {\n const debouncedSubscription = this.debouncedSubscription;\n if (debouncedSubscription !== null) {\n this.remove(debouncedSubscription);\n debouncedSubscription.unsubscribe();\n this.debouncedSubscription = null;\n }\n }\n}\nfunction dispatchNext(subscriber) {\n subscriber.debouncedNext();\n}\n","import { Subscriber } from '../Subscriber';\nexport function defaultIfEmpty(defaultValue = null) {\n return (source) => source.lift(new DefaultIfEmptyOperator(defaultValue));\n}\nclass DefaultIfEmptyOperator {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n call(subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n }\n}\nclass DefaultIfEmptySubscriber extends Subscriber {\n constructor(destination, defaultValue) {\n super(destination);\n this.defaultValue = defaultValue;\n this.isEmpty = true;\n }\n _next(value) {\n this.isEmpty = false;\n this.destination.next(value);\n }\n _complete() {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function filter(predicate, thisArg) {\n return function filterOperatorFunction(source) {\n return source.lift(new FilterOperator(predicate, thisArg));\n };\n}\nclass FilterOperator {\n constructor(predicate, thisArg) {\n this.predicate = predicate;\n this.thisArg = thisArg;\n }\n call(subscriber, source) {\n return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n }\n}\nclass FilterSubscriber extends Subscriber {\n constructor(destination, predicate, thisArg) {\n super(destination);\n this.predicate = predicate;\n this.thisArg = thisArg;\n this.count = 0;\n }\n _next(value) {\n let result;\n try {\n result = this.predicate.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.destination.next(value);\n }\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nexport function finalize(callback) {\n return (source) => source.lift(new FinallyOperator(callback));\n}\nclass FinallyOperator {\n constructor(callback) {\n this.callback = callback;\n }\n call(subscriber, source) {\n return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n }\n}\nclass FinallySubscriber extends Subscriber {\n constructor(destination, callback) {\n super(destination);\n this.add(new Subscription(callback));\n }\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { Subscriber } from '../Subscriber';\nexport function map(project, thisArg) {\n return function mapOperation(source) {\n if (typeof project !== 'function') {\n throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n }\n return source.lift(new MapOperator(project, thisArg));\n };\n}\nexport class MapOperator {\n constructor(project, thisArg) {\n this.project = project;\n this.thisArg = thisArg;\n }\n call(subscriber, source) {\n return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n }\n}\nclass MapSubscriber extends Subscriber {\n constructor(destination, project, thisArg) {\n super(destination);\n this.project = project;\n this.count = 0;\n this.thisArg = thisArg || this;\n }\n _next(value) {\n let result;\n try {\n result = this.project.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Number.POSITIVE_INFINITY) {\n return mergeMap(identity, concurrent);\n}\n","import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function mergeMap(project, resultSelector, concurrent = Number.POSITIVE_INFINITY) {\n if (typeof resultSelector === 'function') {\n return (source) => source.pipe(mergeMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii))), concurrent));\n }\n else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return (source) => source.lift(new MergeMapOperator(project, concurrent));\n}\nexport class MergeMapOperator {\n constructor(project, concurrent = Number.POSITIVE_INFINITY) {\n this.project = project;\n this.concurrent = concurrent;\n }\n call(observer, source) {\n return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));\n }\n}\nexport class MergeMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project, concurrent = Number.POSITIVE_INFINITY) {\n super(destination);\n this.project = project;\n this.concurrent = concurrent;\n this.hasCompleted = false;\n this.buffer = [];\n this.active = 0;\n this.index = 0;\n }\n _next(value) {\n if (this.active < this.concurrent) {\n this._tryNext(value);\n }\n else {\n this.buffer.push(value);\n }\n }\n _tryNext(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.active++;\n this._innerSub(result);\n }\n _innerSub(ish) {\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n const innerSubscription = innerSubscribe(ish, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n }\n _complete() {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n this.destination.complete();\n }\n this.unsubscribe();\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyComplete() {\n const buffer = this.buffer;\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n this.destination.complete();\n }\n }\n}\nexport const flatMap = mergeMap;\n","import { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function observeOn(scheduler, delay = 0) {\n return function observeOnOperatorFunction(source) {\n return source.lift(new ObserveOnOperator(scheduler, delay));\n };\n}\nexport class ObserveOnOperator {\n constructor(scheduler, delay = 0) {\n this.scheduler = scheduler;\n this.delay = delay;\n }\n call(subscriber, source) {\n return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n }\n}\nexport class ObserveOnSubscriber extends Subscriber {\n constructor(destination, scheduler, delay = 0) {\n super(destination);\n this.scheduler = scheduler;\n this.delay = delay;\n }\n static dispatch(arg) {\n const { notification, destination } = arg;\n notification.observe(destination);\n this.unsubscribe();\n }\n scheduleMessage(notification) {\n const destination = this.destination;\n destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\n }\n _next(value) {\n this.scheduleMessage(Notification.createNext(value));\n }\n _error(err) {\n this.scheduleMessage(Notification.createError(err));\n this.unsubscribe();\n }\n _complete() {\n this.scheduleMessage(Notification.createComplete());\n this.unsubscribe();\n }\n}\nexport class ObserveOnMessage {\n constructor(notification, destination) {\n this.notification = notification;\n this.destination = destination;\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function refCount() {\n return function refCountOperatorFunction(source) {\n return source.lift(new RefCountOperator(source));\n };\n}\nclass RefCountOperator {\n constructor(connectable) {\n this.connectable = connectable;\n }\n call(subscriber, source) {\n const { connectable } = this;\n connectable._refCount++;\n const refCounter = new RefCountSubscriber(subscriber, connectable);\n const subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n }\n}\nclass RefCountSubscriber extends Subscriber {\n constructor(destination, connectable) {\n super(destination);\n this.connectable = connectable;\n }\n _unsubscribe() {\n const { connectable } = this;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n const refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n const { connection } = this;\n const sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function scan(accumulator, seed) {\n let hasSeed = false;\n if (arguments.length >= 2) {\n hasSeed = true;\n }\n return function scanOperatorFunction(source) {\n return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n };\n}\nclass ScanOperator {\n constructor(accumulator, seed, hasSeed = false) {\n this.accumulator = accumulator;\n this.seed = seed;\n this.hasSeed = hasSeed;\n }\n call(subscriber, source) {\n return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n }\n}\nclass ScanSubscriber extends Subscriber {\n constructor(destination, accumulator, _seed, hasSeed) {\n super(destination);\n this.accumulator = accumulator;\n this._seed = _seed;\n this.hasSeed = hasSeed;\n this.index = 0;\n }\n get seed() {\n return this._seed;\n }\n set seed(value) {\n this.hasSeed = true;\n this._seed = value;\n }\n _next(value) {\n if (!this.hasSeed) {\n this.seed = value;\n this.destination.next(value);\n }\n else {\n return this._tryNext(value);\n }\n }\n _tryNext(value) {\n const index = this.index++;\n let result;\n try {\n result = this.accumulator(this.seed, value, index);\n }\n catch (err) {\n this.destination.error(err);\n }\n this.seed = result;\n this.destination.next(result);\n }\n}\n","import { concat } from '../observable/concat';\nimport { isScheduler } from '../util/isScheduler';\nexport function startWith(...array) {\n const scheduler = array[array.length - 1];\n if (isScheduler(scheduler)) {\n array.pop();\n return (source) => concat(array, source, scheduler);\n }\n else {\n return (source) => concat(array, source);\n }\n}\n","import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function switchMap(project, resultSelector) {\n if (typeof resultSelector === 'function') {\n return (source) => source.pipe(switchMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii)))));\n }\n return (source) => source.lift(new SwitchMapOperator(project));\n}\nclass SwitchMapOperator {\n constructor(project) {\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));\n }\n}\nclass SwitchMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project) {\n super(destination);\n this.project = project;\n this.index = 0;\n }\n _next(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (error) {\n this.destination.error(error);\n return;\n }\n this._innerSub(result);\n }\n _innerSub(result) {\n const innerSubscription = this.innerSubscription;\n if (innerSubscription) {\n innerSubscription.unsubscribe();\n }\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n this.innerSubscription = innerSubscribe(result, innerSubscriber);\n if (this.innerSubscription !== innerSubscriber) {\n destination.add(this.innerSubscription);\n }\n }\n _complete() {\n const { innerSubscription } = this;\n if (!innerSubscription || innerSubscription.closed) {\n super._complete();\n }\n this.unsubscribe();\n }\n _unsubscribe() {\n this.innerSubscription = undefined;\n }\n notifyComplete() {\n this.innerSubscription = undefined;\n if (this.isStopped) {\n super._complete();\n }\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function take(count) {\n return (source) => {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\nclass TakeOperator {\n constructor(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n call(subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n }\n}\nclass TakeSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.count = 0;\n }\n _next(value) {\n const total = this.total;\n const count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n }\n}\n","import { innerSubscribe, SimpleInnerSubscriber, SimpleOuterSubscriber } from '../innerSubscribe';\nexport function takeUntil(notifier) {\n return (source) => source.lift(new TakeUntilOperator(notifier));\n}\nclass TakeUntilOperator {\n constructor(notifier) {\n this.notifier = notifier;\n }\n call(subscriber, source) {\n const takeUntilSubscriber = new TakeUntilSubscriber(subscriber);\n const notifierSubscription = innerSubscribe(this.notifier, new SimpleInnerSubscriber(takeUntilSubscriber));\n if (notifierSubscription && !takeUntilSubscriber.seenValue) {\n takeUntilSubscriber.add(notifierSubscription);\n return source.subscribe(takeUntilSubscriber);\n }\n return takeUntilSubscriber;\n }\n}\nclass TakeUntilSubscriber extends SimpleOuterSubscriber {\n constructor(destination) {\n super(destination);\n this.seenValue = false;\n }\n notifyNext() {\n this.seenValue = true;\n this.complete();\n }\n notifyComplete() {\n }\n}\n","export function noop() { }\n","import { Subscriber } from '../Subscriber';\nimport { noop } from '../util/noop';\nimport { isFunction } from '../util/isFunction';\nexport function tap(nextOrObserver, error, complete) {\n return function tapOperatorFunction(source) {\n return source.lift(new DoOperator(nextOrObserver, error, complete));\n };\n}\nclass DoOperator {\n constructor(nextOrObserver, error, complete) {\n this.nextOrObserver = nextOrObserver;\n this.error = error;\n this.complete = complete;\n }\n call(subscriber, source) {\n return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n }\n}\nclass TapSubscriber extends Subscriber {\n constructor(destination, observerOrNext, error, complete) {\n super(destination);\n this._tapNext = noop;\n this._tapError = noop;\n this._tapComplete = noop;\n this._tapError = error || noop;\n this._tapComplete = complete || noop;\n if (isFunction(observerOrNext)) {\n this._context = this;\n this._tapNext = observerOrNext;\n }\n else if (observerOrNext) {\n this._context = observerOrNext;\n this._tapNext = observerOrNext.next || noop;\n this._tapError = observerOrNext.error || noop;\n this._tapComplete = observerOrNext.complete || noop;\n }\n }\n _next(value) {\n try {\n this._tapNext.call(this._context, value);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(value);\n }\n _error(err) {\n try {\n this._tapError.call(this._context, err);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.error(err);\n }\n _complete() {\n try {\n this._tapComplete.call(this._context);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n return this.destination.complete();\n }\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { Subscriber } from '../Subscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return (source) => {\n return source.lift(new ThrowIfEmptyOperator(errorFactory));\n };\n}\nclass ThrowIfEmptyOperator {\n constructor(errorFactory) {\n this.errorFactory = errorFactory;\n }\n call(subscriber, source) {\n return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));\n }\n}\nclass ThrowIfEmptySubscriber extends Subscriber {\n constructor(destination, errorFactory) {\n super(destination);\n this.errorFactory = errorFactory;\n this.hasValue = false;\n }\n _next(value) {\n this.hasValue = true;\n this.destination.next(value);\n }\n _complete() {\n if (!this.hasValue) {\n let err;\n try {\n err = this.errorFactory();\n }\n catch (e) {\n err = e;\n }\n this.destination.error(err);\n }\n else {\n return this.destination.complete();\n }\n }\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function scheduleArray(input, scheduler) {\n return new Observable(subscriber => {\n const sub = new Subscription();\n let i = 0;\n sub.add(scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n return;\n }\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n sub.add(this.schedule());\n }\n }));\n return sub;\n });\n}\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n constructor(scheduler, work) {\n super();\n }\n schedule(state, delay = 0) {\n return this;\n }\n}\n","import { Action } from './Action';\nexport class AsyncAction extends Action {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n this.pending = false;\n }\n schedule(state, delay = 0) {\n if (this.closed) {\n return this;\n }\n this.state = state;\n const id = this.id;\n const scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);\n return this;\n }\n requestAsyncId(scheduler, id, delay = 0) {\n return setInterval(scheduler.flush.bind(scheduler, this), delay);\n }\n recycleAsyncId(scheduler, id, delay = 0) {\n if (delay !== null && this.delay === delay && this.pending === false) {\n return id;\n }\n clearInterval(id);\n return undefined;\n }\n execute(state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n const error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n }\n _execute(state, delay) {\n let errored = false;\n let errorValue = undefined;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = !!e && e || new Error(e);\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n }\n _unsubscribe() {\n const id = this.id;\n const scheduler = this.scheduler;\n const actions = scheduler.actions;\n const index = actions.indexOf(this);\n this.work = null;\n this.state = null;\n this.pending = false;\n this.scheduler = null;\n if (index !== -1) {\n actions.splice(index, 1);\n }\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n }\n}\n","export class Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n this.SchedulerAction = SchedulerAction;\n this.now = now;\n }\n schedule(work, delay = 0, state) {\n return new this.SchedulerAction(this, work).schedule(state, delay);\n }\n}\nScheduler.now = () => Date.now();\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n super(SchedulerAction, () => {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.now();\n }\n else {\n return now();\n }\n });\n this.actions = [];\n this.active = false;\n this.scheduled = undefined;\n }\n schedule(work, delay = 0, state) {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.schedule(work, delay, state);\n }\n else {\n return super.schedule(work, delay, state);\n }\n }\n flush(action) {\n const { actions } = this;\n if (this.active) {\n actions.push(action);\n return;\n }\n let error;\n this.active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this.active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\nexport const queueScheduler = new QueueScheduler(QueueAction);\nexport const queue = queueScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class QueueScheduler extends AsyncScheduler {\n}\n","import { AsyncAction } from './AsyncAction';\nexport class QueueAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n schedule(state, delay = 0) {\n if (delay > 0) {\n return super.schedule(state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n }\n execute(state, delay) {\n return (delay > 0 || this.closed) ?\n super.execute(state, delay) :\n this._execute(state, delay);\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n return scheduler.flush(this);\n }\n}\n","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\nexport const $$iterator = iterator;\n","export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n","export const rxSubscriber = (() => typeof Symbol === 'function'\n ? Symbol('rxSubscriber')\n : '@@rxSubscriber_' + Math.random())();\nexport const $$rxSubscriber = rxSubscriber;\n","const ArgumentOutOfRangeErrorImpl = (() => {\n function ArgumentOutOfRangeErrorImpl() {\n Error.call(this);\n this.message = 'argument out of range';\n this.name = 'ArgumentOutOfRangeError';\n return this;\n }\n ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);\n return ArgumentOutOfRangeErrorImpl;\n})();\nexport const ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;\n","const EmptyErrorImpl = (() => {\n function EmptyErrorImpl() {\n Error.call(this);\n this.message = 'no elements in sequence';\n this.name = 'EmptyError';\n return this;\n }\n EmptyErrorImpl.prototype = Object.create(Error.prototype);\n return EmptyErrorImpl;\n})();\nexport const EmptyError = EmptyErrorImpl;\n","const ObjectUnsubscribedErrorImpl = (() => {\n function ObjectUnsubscribedErrorImpl() {\n Error.call(this);\n this.message = 'object unsubscribed';\n this.name = 'ObjectUnsubscribedError';\n return this;\n }\n ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);\n return ObjectUnsubscribedErrorImpl;\n})();\nexport const ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;\n","export function hostReportError(err) {\n setTimeout(() => { throw err; }, 0);\n}\n","export function identity(x) {\n return x;\n}\n","export const isArray = (() => Array.isArray || ((x) => x && typeof x.length === 'number'))();\n","export const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');\n","export function isFunction(x) {\n return typeof x === 'function';\n}\n","import { isArray } from './isArray';\nexport function isNumeric(val) {\n return !isArray(val) && (val - parseFloat(val) + 1) >= 0;\n}\n","export function isObject(x) {\n return x !== null && typeof x === 'object';\n}\n","export function isPromise(value) {\n return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\n}\n","export function isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}\n","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n","import { subscribeToArray } from './subscribeToArray';\nimport { subscribeToPromise } from './subscribeToPromise';\nimport { subscribeToIterable } from './subscribeToIterable';\nimport { subscribeToObservable } from './subscribeToObservable';\nimport { isArrayLike } from './isArrayLike';\nimport { isPromise } from './isPromise';\nimport { isObject } from './isObject';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport const subscribeTo = (result) => {\n if (!!result && typeof result[Symbol_observable] === 'function') {\n return subscribeToObservable(result);\n }\n else if (isArrayLike(result)) {\n return subscribeToArray(result);\n }\n else if (isPromise(result)) {\n return subscribeToPromise(result);\n }\n else if (!!result && typeof result[Symbol_iterator] === 'function') {\n return subscribeToIterable(result);\n }\n else {\n const value = isObject(result) ? 'an invalid object' : `'${result}'`;\n const msg = `You provided ${value} where a stream was expected.`\n + ' You can provide an Observable, Promise, Array, or Iterable.';\n throw new TypeError(msg);\n }\n};\n","import { observable as Symbol_observable } from '../symbol/observable';\nexport const subscribeToObservable = (obj) => (subscriber) => {\n const obs = obj[Symbol_observable]();\n if (typeof obs.subscribe !== 'function') {\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n }\n else {\n return obs.subscribe(subscriber);\n }\n};\n","import { hostReportError } from './hostReportError';\nexport const subscribeToPromise = (promise) => (subscriber) => {\n promise.then((value) => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, (err) => subscriber.error(err))\n .then(null, hostReportError);\n return subscriber;\n};\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nexport const subscribeToIterable = (iterable) => (subscriber) => {\n const iterator = iterable[Symbol_iterator]();\n do {\n let item;\n try {\n item = iterator.next();\n }\n catch (err) {\n subscriber.error(err);\n return subscriber;\n }\n if (item.done) {\n subscriber.complete();\n break;\n }\n subscriber.next(item.value);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n if (typeof iterator.return === 'function') {\n subscriber.add(() => {\n if (iterator.return) {\n iterator.return();\n }\n });\n }\n return subscriber;\n};\n","export const subscribeToArray = (array) => (subscriber) => {\n for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n};\n","import { Subscriber } from './Subscriber';\nexport class InnerSubscriber extends Subscriber {\n constructor(parent, outerValue, outerIndex) {\n super();\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n this.index = 0;\n }\n _next(value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\n }\n _error(error) {\n this.parent.notifyError(error, this);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n }\n}\n","import { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeTo } from './subscribeTo';\nimport { Observable } from '../Observable';\nexport function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber = new InnerSubscriber(outerSubscriber, outerValue, outerIndex)) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n return subscribeTo(result)(innerSubscriber);\n}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[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;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, Injectable, ANIMATION_MODULE_TYPE, ViewEncapsulation, ɵRuntimeError, Inject } from '@angular/core';\n\n/**\n * @description Constants for the categories of parameters that can be defined for animations.\n *\n * A corresponding function defines a set of parameters for each category, and\n * collects them into a corresponding `AnimationMetadata` object.\n *\n * @publicApi\n */\nvar AnimationMetadataType;\n(function (AnimationMetadataType) {\n /**\n * Associates a named animation state with a set of CSS styles.\n * See [`state()`](api/animations/state)\n */\n AnimationMetadataType[AnimationMetadataType[\"State\"] = 0] = \"State\";\n /**\n * Data for a transition from one animation state to another.\n * See `transition()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Transition\"] = 1] = \"Transition\";\n /**\n * Contains a set of animation steps.\n * See `sequence()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Sequence\"] = 2] = \"Sequence\";\n /**\n * Contains a set of animation steps.\n * See `{@link animations/group group()}`\n */\n AnimationMetadataType[AnimationMetadataType[\"Group\"] = 3] = \"Group\";\n /**\n * Contains an animation step.\n * See `animate()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Animate\"] = 4] = \"Animate\";\n /**\n * Contains a set of animation steps.\n * See `keyframes()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Keyframes\"] = 5] = \"Keyframes\";\n /**\n * Contains a set of CSS property-value pairs into a named style.\n * See `style()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Style\"] = 6] = \"Style\";\n /**\n * Associates an animation with an entry trigger that can be attached to an element.\n * See `trigger()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Trigger\"] = 7] = \"Trigger\";\n /**\n * Contains a re-usable animation.\n * See `animation()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Reference\"] = 8] = \"Reference\";\n /**\n * Contains data to use in executing child animations returned by a query.\n * See `animateChild()`\n */\n AnimationMetadataType[AnimationMetadataType[\"AnimateChild\"] = 9] = \"AnimateChild\";\n /**\n * Contains animation parameters for a re-usable animation.\n * See `useAnimation()`\n */\n AnimationMetadataType[AnimationMetadataType[\"AnimateRef\"] = 10] = \"AnimateRef\";\n /**\n * Contains child-animation query data.\n * See `query()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Query\"] = 11] = \"Query\";\n /**\n * Contains data for staggering an animation sequence.\n * See `stagger()`\n */\n AnimationMetadataType[AnimationMetadataType[\"Stagger\"] = 12] = \"Stagger\";\n})(AnimationMetadataType || (AnimationMetadataType = {}));\n/**\n * Specifies automatic styling.\n *\n * @publicApi\n */\nconst AUTO_STYLE = '*';\n/**\n * Creates a named animation trigger, containing a list of [`state()`](api/animations/state)\n * and `transition()` entries to be evaluated when the expression\n * bound to the trigger changes.\n *\n * @param name An identifying string.\n * @param definitions An animation definition object, containing an array of\n * [`state()`](api/animations/state) and `transition()` declarations.\n *\n * @return An object that encapsulates the trigger data.\n *\n * @usageNotes\n * Define an animation trigger in the `animations` section of `@Component` metadata.\n * In the template, reference the trigger by name and bind it to a trigger expression that\n * evaluates to a defined animation state, using the following format:\n *\n * `[@triggerName]=\"expression\"`\n *\n * Animation trigger bindings convert all values to strings, and then match the\n * previous and current values against any linked transitions.\n * Booleans can be specified as `1` or `true` and `0` or `false`.\n *\n * ### Usage Example\n *\n * The following example creates an animation trigger reference based on the provided\n * name value.\n * The provided animation value is expected to be an array consisting of state and\n * transition declarations.\n *\n * ```typescript\n * @Component({\n * selector: \"my-component\",\n * templateUrl: \"my-component-tpl.html\",\n * animations: [\n * trigger(\"myAnimationTrigger\", [\n * state(...),\n * state(...),\n * transition(...),\n * transition(...)\n * ])\n * ]\n * })\n * class MyComponent {\n * myStatusExp = \"something\";\n * }\n * ```\n *\n * The template associated with this component makes use of the defined trigger\n * by binding to an element within its template code.\n *\n * ```html\n * <!-- somewhere inside of my-component-tpl.html -->\n * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>\n * ```\n *\n * ### Using an inline function\n * The `transition` animation method also supports reading an inline function which can decide\n * if its associated animation should be run.\n *\n * ```typescript\n * // this method is run each time the `myAnimationTrigger` trigger value changes.\n * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:\n string]: any}): boolean {\n * // notice that `element` and `params` are also available here\n * return toState == 'yes-please-animate';\n * }\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'my-component-tpl.html',\n * animations: [\n * trigger('myAnimationTrigger', [\n * transition(myInlineMatcherFn, [\n * // the animation sequence code\n * ]),\n * ])\n * ]\n * })\n * class MyComponent {\n * myStatusExp = \"yes-please-animate\";\n * }\n * ```\n *\n * ### Disabling Animations\n * When true, the special animation control binding `@.disabled` binding prevents\n * all animations from rendering.\n * Place the `@.disabled` binding on an element to disable\n * animations on the element itself, as well as any inner animation triggers\n * within the element.\n *\n * The following example shows how to use this feature:\n *\n * ```typescript\n * @Component({\n * selector: 'my-component',\n * template: `\n * <div [@.disabled]=\"isDisabled\">\n * <div [@childAnimation]=\"exp\"></div>\n * </div>\n * `,\n * animations: [\n * trigger(\"childAnimation\", [\n * // ...\n * ])\n * ]\n * })\n * class MyComponent {\n * isDisabled = true;\n * exp = '...';\n * }\n * ```\n *\n * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,\n * along with any inner animations.\n *\n * ### Disable animations application-wide\n * When an area of the template is set to have animations disabled,\n * **all** inner components have their animations disabled as well.\n * This means that you can disable all animations for an app\n * by placing a host binding set on `@.disabled` on the topmost Angular component.\n *\n * ```typescript\n * import {Component, HostBinding} from '@angular/core';\n *\n * @Component({\n * selector: 'app-component',\n * templateUrl: 'app.component.html',\n * })\n * class AppComponent {\n * @HostBinding('@.disabled')\n * public animationsDisabled = true;\n * }\n * ```\n *\n * ### Overriding disablement of inner animations\n * Despite inner animations being disabled, a parent animation can `query()`\n * for inner elements located in disabled areas of the template and still animate\n * them if needed. This is also the case for when a sub animation is\n * queried by a parent and then later animated using `animateChild()`.\n *\n * ### Detecting when an animation is disabled\n * If a region of the DOM (or the entire application) has its animations disabled, the animation\n * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides\n * an instance of an `AnimationEvent`. If animations are disabled,\n * the `.disabled` flag on the event is true.\n *\n * @publicApi\n */\nfunction trigger(name, definitions) {\n return { type: AnimationMetadataType.Trigger, name, definitions, options: {} };\n}\n/**\n * Defines an animation step that combines styling information with timing information.\n *\n * @param timings Sets `AnimateTimings` for the parent animation.\n * A string in the format \"duration [delay] [easing]\".\n * - Duration and delay are expressed as a number and optional time unit,\n * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.\n * The default unit is milliseconds.\n * - The easing value controls how the animation accelerates and decelerates\n * during its runtime. Value is one of `ease`, `ease-in`, `ease-out`,\n * `ease-in-out`, or a `cubic-bezier()` function call.\n * If not supplied, no easing is applied.\n *\n * For example, the string \"1s 100ms ease-out\" specifies a duration of\n * 1000 milliseconds, and delay of 100 ms, and the \"ease-out\" easing style,\n * which decelerates near the end of the duration.\n * @param styles Sets AnimationStyles for the parent animation.\n * A function call to either `style()` or `keyframes()`\n * that returns a collection of CSS style entries to be applied to the parent animation.\n * When null, uses the styles from the destination state.\n * This is useful when describing an animation step that will complete an animation;\n * see \"Animating to the final state\" in `transitions()`.\n * @returns An object that encapsulates the animation step.\n *\n * @usageNotes\n * Call within an animation `sequence()`, `{@link animations/group group()}`, or\n * `transition()` call to specify an animation step\n * that applies given style data to the parent animation for a given amount of time.\n *\n * ### Syntax Examples\n * **Timing examples**\n *\n * The following examples show various `timings` specifications.\n * - `animate(500)` : Duration is 500 milliseconds.\n * - `animate(\"1s\")` : Duration is 1000 milliseconds.\n * - `animate(\"100ms 0.5s\")` : Duration is 100 milliseconds, delay is 500 milliseconds.\n * - `animate(\"5s ease-in\")` : Duration is 5000 milliseconds, easing in.\n * - `animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\")` : Duration is 5000 milliseconds, delay is 10\n * milliseconds, easing according to a bezier curve.\n *\n * **Style examples**\n *\n * The following example calls `style()` to set a single CSS style.\n * ```typescript\n * animate(500, style({ background: \"red\" }))\n * ```\n * The following example calls `keyframes()` to set a CSS style\n * to different values for successive keyframes.\n * ```typescript\n * animate(500, keyframes(\n * [\n * style({ background: \"blue\" }),\n * style({ background: \"red\" })\n * ])\n * ```\n *\n * @publicApi\n */\nfunction animate(timings, styles = null) {\n return { type: AnimationMetadataType.Animate, styles, timings };\n}\n/**\n * @description Defines a list of animation steps to be run in parallel.\n *\n * @param steps An array of animation step objects.\n * - When steps are defined by `style()` or `animate()`\n * function calls, each call within the group is executed instantly.\n * - To specify offset styles to be applied at a later time, define steps with\n * `keyframes()`, or use `animate()` calls with a delay value.\n * For example:\n *\n * ```typescript\n * group([\n * animate(\"1s\", style({ background: \"black\" })),\n * animate(\"2s\", style({ color: \"white\" }))\n * ])\n * ```\n *\n * @param options An options object containing a delay and\n * developer-defined parameters that provide styling defaults and\n * can be overridden on invocation.\n *\n * @return An object that encapsulates the group data.\n *\n * @usageNotes\n * Grouped animations are useful when a series of styles must be\n * animated at different starting times and closed off at different ending times.\n *\n * When called within a `sequence()` or a\n * `transition()` call, does not continue to the next\n * instruction until all of the inner animation steps have completed.\n *\n * @publicApi\n */\nfunction group(steps, options = null) {\n return { type: AnimationMetadataType.Group, steps, options };\n}\n/**\n * Defines a list of animation steps to be run sequentially, one by one.\n *\n * @param steps An array of animation step objects.\n * - Steps defined by `style()` calls apply the styling data immediately.\n * - Steps defined by `animate()` calls apply the styling data over time\n * as specified by the timing data.\n *\n * ```typescript\n * sequence([\n * style({ opacity: 0 }),\n * animate(\"1s\", style({ opacity: 1 }))\n * ])\n * ```\n *\n * @param options An options object containing a delay and\n * developer-defined parameters that provide styling defaults and\n * can be overridden on invocation.\n *\n * @return An object that encapsulates the sequence data.\n *\n * @usageNotes\n * When you pass an array of steps to a\n * `transition()` call, the steps run sequentially by default.\n * Compare this to the `{@link animations/group group()}` call, which runs animation steps in\n *parallel.\n *\n * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,\n * execution continues to the next instruction only after each of the inner animation\n * steps have completed.\n *\n * @publicApi\n **/\nfunction sequence(steps, options = null) {\n return { type: AnimationMetadataType.Sequence, steps, options };\n}\n/**\n * Declares a key/value object containing CSS properties/styles that\n * can then be used for an animation [`state`](api/animations/state), within an animation\n *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.\n *\n * @param tokens A set of CSS styles or HTML styles associated with an animation state.\n * The value can be any of the following:\n * - A key-value style pair associating a CSS property with a value.\n * - An array of key-value style pairs.\n * - An asterisk (*), to use auto-styling, where styles are derived from the element\n * being animated and applied to the animation when it starts.\n *\n * Auto-styling can be used to define a state that depends on layout or other\n * environmental factors.\n *\n * @return An object that encapsulates the style data.\n *\n * @usageNotes\n * The following examples create animation styles that collect a set of\n * CSS property values:\n *\n * ```typescript\n * // string values for CSS properties\n * style({ background: \"red\", color: \"blue\" })\n *\n * // numerical pixel values\n * style({ width: 100, height: 0 })\n * ```\n *\n * The following example uses auto-styling to allow an element to animate from\n * a height of 0 up to its full height:\n *\n * ```\n * style({ height: 0 }),\n * animate(\"1s\", style({ height: \"*\" }))\n * ```\n *\n * @publicApi\n **/\nfunction style(tokens) {\n return { type: AnimationMetadataType.Style, styles: tokens, offset: null };\n}\n/**\n * Declares an animation state within a trigger attached to an element.\n *\n * @param name One or more names for the defined state in a comma-separated string.\n * The following reserved state names can be supplied to define a style for specific use\n * cases:\n *\n * - `void` You can associate styles with this name to be used when\n * the element is detached from the application. For example, when an `ngIf` evaluates\n * to false, the state of the associated element is void.\n * - `*` (asterisk) Indicates the default state. You can associate styles with this name\n * to be used as the fallback when the state that is being animated is not declared\n * within the trigger.\n *\n * @param styles A set of CSS styles associated with this state, created using the\n * `style()` function.\n * This set of styles persists on the element once the state has been reached.\n * @param options Parameters that can be passed to the state when it is invoked.\n * 0 or more key-value pairs.\n * @return An object that encapsulates the new state data.\n *\n * @usageNotes\n * Use the `trigger()` function to register states to an animation trigger.\n * Use the `transition()` function to animate between states.\n * When a state is active within a component, its associated styles persist on the element,\n * even when the animation ends.\n *\n * @publicApi\n **/\nfunction state(name, styles, options) {\n return { type: AnimationMetadataType.State, name, styles, options };\n}\n/**\n * Defines a set of animation styles, associating each style with an optional `offset` value.\n *\n * @param steps A set of animation styles with optional offset data.\n * The optional `offset` value for a style specifies a percentage of the total animation\n * time at which that style is applied.\n * @returns An object that encapsulates the keyframes data.\n *\n * @usageNotes\n * Use with the `animate()` call. Instead of applying animations\n * from the current state\n * to the destination state, keyframes describe how each style entry is applied and at what point\n * within the animation arc.\n * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).\n *\n * ### Usage\n *\n * In the following example, the offset values describe\n * when each `backgroundColor` value is applied. The color is red at the start, and changes to\n * blue when 20% of the total time has elapsed.\n *\n * ```typescript\n * // the provided offset values\n * animate(\"5s\", keyframes([\n * style({ backgroundColor: \"red\", offset: 0 }),\n * style({ backgroundColor: \"blue\", offset: 0.2 }),\n * style({ backgroundColor: \"orange\", offset: 0.3 }),\n * style({ backgroundColor: \"black\", offset: 1 })\n * ]))\n * ```\n *\n * If there are no `offset` values specified in the style entries, the offsets\n * are calculated automatically.\n *\n * ```typescript\n * animate(\"5s\", keyframes([\n * style({ backgroundColor: \"red\" }) // offset = 0\n * style({ backgroundColor: \"blue\" }) // offset = 0.33\n * style({ backgroundColor: \"orange\" }) // offset = 0.66\n * style({ backgroundColor: \"black\" }) // offset = 1\n * ]))\n *```\n\n * @publicApi\n */\nfunction keyframes(steps) {\n return { type: AnimationMetadataType.Keyframes, steps };\n}\n/**\n * Declares an animation transition which is played when a certain specified condition is met.\n *\n * @param stateChangeExpr A string with a specific format or a function that specifies when the\n * animation transition should occur (see [State Change Expression](#state-change-expression)).\n *\n * @param steps One or more animation objects that represent the animation's instructions.\n *\n * @param options An options object that can be used to specify a delay for the animation or provide\n * custom parameters for it.\n *\n * @returns An object that encapsulates the transition data.\n *\n * @usageNotes\n *\n * ### State Change Expression\n *\n * The State Change Expression instructs Angular when to run the transition's animations, it can\n *either be\n * - a string with a specific syntax\n * - or a function that compares the previous and current state (value of the expression bound to\n * the element's trigger) and returns `true` if the transition should occur or `false` otherwise\n *\n * The string format can be:\n * - `fromState => toState`, which indicates that the transition's animations should occur then the\n * expression bound to the trigger's element goes from `fromState` to `toState`\n *\n * _Example:_\n * ```typescript\n * transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))\n * ```\n *\n * - `fromState <=> toState`, which indicates that the transition's animations should occur then\n * the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa\n *\n * _Example:_\n * ```typescript\n * transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))\n * ```\n *\n * - `:enter`/`:leave`, which indicates that the transition's animations should occur when the\n * element enters or exists the DOM\n *\n * _Example:_\n * ```typescript\n * transition(':enter', [\n * style({ opacity: 0 }),\n * animate('500ms', style({ opacity: 1 }))\n * ])\n * ```\n *\n * - `:increment`/`:decrement`, which indicates that the transition's animations should occur when\n * the numerical expression bound to the trigger's element has increased in value or decreased\n *\n * _Example:_\n * ```typescript\n * transition(':increment', query('@counter', animateChild()))\n * ```\n *\n * - a sequence of any of the above divided by commas, which indicates that transition's animations\n * should occur whenever one of the state change expressions matches\n *\n * _Example:_\n * ```typescript\n * transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([\n * style({ transform: 'scale(1)', offset: 0}),\n * style({ transform: 'scale(1.1)', offset: 0.7}),\n * style({ transform: 'scale(1)', offset: 1})\n * ]))),\n * ```\n *\n * Also note that in such context:\n * - `void` can be used to indicate the absence of the element\n * - asterisks can be used as wildcards that match any state\n * - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is\n * equivalent to `:leave`)\n * - `true` and `false` also match expression values of `1` and `0` respectively (but do not match\n * _truthy_ and _falsy_ values)\n *\n * <div class=\"alert is-helpful\">\n *\n * Be careful about entering end leaving elements as their transitions present a common\n * pitfall for developers.\n *\n * Note that when an element with a trigger enters the DOM its `:enter` transition always\n * gets executed, but its `:leave` transition will not be executed if the element is removed\n * alongside its parent (as it will be removed \"without warning\" before its transition has\n * a chance to be executed, the only way that such transition can occur is if the element\n * is exiting the DOM on its own).\n *\n *\n * </div>\n *\n * ### Animating to a Final State\n *\n * If the final step in a transition is a call to `animate()` that uses a timing value\n * with no `style` data, that step is automatically considered the final animation arc,\n * for the element to reach the final state, in such case Angular automatically adds or removes\n * CSS styles to ensure that the element is in the correct final state.\n *\n *\n * ### Usage Examples\n *\n * - Transition animations applied based on\n * the trigger's expression value\n *\n * ```HTML\n * <div [@myAnimationTrigger]=\"myStatusExp\">\n * ...\n * </div>\n * ```\n *\n * ```typescript\n * trigger(\"myAnimationTrigger\", [\n * ..., // states\n * transition(\"on => off, open => closed\", animate(500)),\n * transition(\"* <=> error\", query('.indicator', animateChild()))\n * ])\n * ```\n *\n * - Transition animations applied based on custom logic dependent\n * on the trigger's expression value and provided parameters\n *\n * ```HTML\n * <div [@myAnimationTrigger]=\"{\n * value: stepName,\n * params: { target: currentTarget }\n * }\">\n * ...\n * </div>\n * ```\n *\n * ```typescript\n * trigger(\"myAnimationTrigger\", [\n * ..., // states\n * transition(\n * (fromState, toState, _element, params) =>\n * ['firststep', 'laststep'].includes(fromState.toLowerCase())\n * && toState === params?.['target'],\n * animate('1s')\n * )\n * ])\n * ```\n *\n * @publicApi\n **/\nfunction transition(stateChangeExpr, steps, options = null) {\n return { type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options };\n}\n/**\n * Produces a reusable animation that can be invoked in another animation or sequence,\n * by calling the `useAnimation()` function.\n *\n * @param steps One or more animation objects, as returned by the `animate()`\n * or `sequence()` function, that form a transformation from one state to another.\n * A sequence is used by default when you pass an array.\n * @param options An options object that can contain a delay value for the start of the\n * animation, and additional developer-defined parameters.\n * Provided values for additional parameters are used as defaults,\n * and override values can be passed to the caller on invocation.\n * @returns An object that encapsulates the animation data.\n *\n * @usageNotes\n * The following example defines a reusable animation, providing some default parameter\n * values.\n *\n * ```typescript\n * var fadeAnimation = animation([\n * style({ opacity: '{{ start }}' }),\n * animate('{{ time }}',\n * style({ opacity: '{{ end }}'}))\n * ],\n * { params: { time: '1000ms', start: 0, end: 1 }});\n * ```\n *\n * The following invokes the defined animation with a call to `useAnimation()`,\n * passing in override parameter values.\n *\n * ```js\n * useAnimation(fadeAnimation, {\n * params: {\n * time: '2s',\n * start: 1,\n * end: 0\n * }\n * })\n * ```\n *\n * If any of the passed-in parameter values are missing from this call,\n * the default values are used. If one or more parameter values are missing before a step is\n * animated, `useAnimation()` throws an error.\n *\n * @publicApi\n */\nfunction animation(steps, options = null) {\n return { type: AnimationMetadataType.Reference, animation: steps, options };\n}\n/**\n * Executes a queried inner animation element within an animation sequence.\n *\n * @param options An options object that can contain a delay value for the start of the\n * animation, and additional override values for developer-defined parameters.\n * @return An object that encapsulates the child animation data.\n *\n * @usageNotes\n * Each time an animation is triggered in Angular, the parent animation\n * has priority and any child animations are blocked. In order\n * for a child animation to run, the parent animation must query each of the elements\n * containing child animations, and run them using this function.\n *\n * Note that this feature is designed to be used with `query()` and it will only work\n * with animations that are assigned using the Angular animation library. CSS keyframes\n * and transitions are not handled by this API.\n *\n * @publicApi\n */\nfunction animateChild(options = null) {\n return { type: AnimationMetadataType.AnimateChild, options };\n}\n/**\n * Starts a reusable animation that is created using the `animation()` function.\n *\n * @param animation The reusable animation to start.\n * @param options An options object that can contain a delay value for the start of\n * the animation, and additional override values for developer-defined parameters.\n * @return An object that contains the animation parameters.\n *\n * @publicApi\n */\nfunction useAnimation(animation, options = null) {\n return { type: AnimationMetadataType.AnimateRef, animation, options };\n}\n/**\n * Finds one or more inner elements within the current element that is\n * being animated within a sequence. Use with `animate()`.\n *\n * @param selector The element to query, or a set of elements that contain Angular-specific\n * characteristics, specified with one or more of the following tokens.\n * - `query(\":enter\")` or `query(\":leave\")` : Query for newly inserted/removed elements (not\n * all elements can be queried via these tokens, see\n * [Entering and Leaving Elements](#entering-and-leaving-elements))\n * - `query(\":animating\")` : Query all currently animating elements.\n * - `query(\"@triggerName\")` : Query elements that contain an animation trigger.\n * - `query(\"@*\")` : Query all elements that contain an animation triggers.\n * - `query(\":self\")` : Include the current element into the animation sequence.\n *\n * @param animation One or more animation steps to apply to the queried element or elements.\n * An array is treated as an animation sequence.\n * @param options An options object. Use the 'limit' field to limit the total number of\n * items to collect.\n * @return An object that encapsulates the query data.\n *\n * @usageNotes\n *\n * ### Multiple Tokens\n *\n * Tokens can be merged into a combined query selector string. For example:\n *\n * ```typescript\n * query(':self, .record:enter, .record:leave, @subTrigger', [...])\n * ```\n *\n * The `query()` function collects multiple elements and works internally by using\n * `element.querySelectorAll`. Use the `limit` field of an options object to limit\n * the total number of items to be collected. For example:\n *\n * ```js\n * query('div', [\n * animate(...),\n * animate(...)\n * ], { limit: 1 })\n * ```\n *\n * By default, throws an error when zero items are found. Set the\n * `optional` flag to ignore this error. For example:\n *\n * ```js\n * query('.some-element-that-may-not-be-there', [\n * animate(...),\n * animate(...)\n * ], { optional: true })\n * ```\n *\n * ### Entering and Leaving Elements\n *\n * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones\n * that can are those that Angular assumes can enter/leave based on their own logic\n * (if their insertion/removal is simply a consequence of that of their parent they\n * should be queried via a different token in their parent's `:enter`/`:leave` transitions).\n *\n * The only elements Angular assumes can enter/leave based on their own logic (thus the only\n * ones that can be queried via the `:enter` and `:leave` tokens) are:\n * - Those inserted dynamically (via `ViewContainerRef`)\n * - Those that have a structural directive (which, under the hood, are a subset of the above ones)\n *\n * <div class=\"alert is-helpful\">\n *\n * Note that elements will be successfully queried via `:enter`/`:leave` even if their\n * insertion/removal is not done manually via `ViewContainerRef`or caused by their structural\n * directive (e.g. they enter/exit alongside their parent).\n *\n * </div>\n *\n * <div class=\"alert is-important\">\n *\n * There is an exception to what previously mentioned, besides elements entering/leaving based on\n * their own logic, elements with an animation trigger can always be queried via `:leave` when\n * their parent is also leaving.\n *\n * </div>\n *\n * ### Usage Example\n *\n * The following example queries for inner elements and animates them\n * individually using `animate()`.\n *\n * ```typescript\n * @Component({\n * selector: 'inner',\n * template: `\n * <div [@queryAnimation]=\"exp\">\n * <h1>Title</h1>\n * <div class=\"content\">\n * Blah blah blah\n * </div>\n * </div>\n * `,\n * animations: [\n * trigger('queryAnimation', [\n * transition('* => goAnimate', [\n * // hide the inner elements\n * query('h1', style({ opacity: 0 })),\n * query('.content', style({ opacity: 0 })),\n *\n * // animate the inner elements in, one by one\n * query('h1', animate(1000, style({ opacity: 1 }))),\n * query('.content', animate(1000, style({ opacity: 1 }))),\n * ])\n * ])\n * ]\n * })\n * class Cmp {\n * exp = '';\n *\n * goAnimate() {\n * this.exp = 'goAnimate';\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction query(selector, animation, options = null) {\n return { type: AnimationMetadataType.Query, selector, animation, options };\n}\n/**\n * Use within an animation `query()` call to issue a timing gap after\n * each queried item is animated.\n *\n * @param timings A delay value.\n * @param animation One ore more animation steps.\n * @returns An object that encapsulates the stagger data.\n *\n * @usageNotes\n * In the following example, a container element wraps a list of items stamped out\n * by an `ngFor`. The container element contains an animation trigger that will later be set\n * to query for each of the inner items.\n *\n * Each time items are added, the opacity fade-in animation runs,\n * and each removed item is faded out.\n * When either of these animations occur, the stagger effect is\n * applied after each item's animation is started.\n *\n * ```html\n * <!-- list.component.html -->\n * <button (click)=\"toggle()\">Show / Hide Items</button>\n * <hr />\n * <div [@listAnimation]=\"items.length\">\n * <div *ngFor=\"let item of items\">\n * {{ item }}\n * </div>\n * </div>\n * ```\n *\n * Here is the component code:\n *\n * ```typescript\n * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';\n * @Component({\n * templateUrl: 'list.component.html',\n * animations: [\n * trigger('listAnimation', [\n * ...\n * ])\n * ]\n * })\n * class ListComponent {\n * items = [];\n *\n * showItems() {\n * this.items = [0,1,2,3,4];\n * }\n *\n * hideItems() {\n * this.items = [];\n * }\n *\n * toggle() {\n * this.items.length ? this.hideItems() : this.showItems();\n * }\n * }\n * ```\n *\n * Here is the animation trigger code:\n *\n * ```typescript\n * trigger('listAnimation', [\n * transition('* => *', [ // each time the binding value changes\n * query(':leave', [\n * stagger(100, [\n * animate('0.5s', style({ opacity: 0 }))\n * ])\n * ]),\n * query(':enter', [\n * style({ opacity: 0 }),\n * stagger(100, [\n * animate('0.5s', style({ opacity: 1 }))\n * ])\n * ])\n * ])\n * ])\n * ```\n *\n * @publicApi\n */\nfunction stagger(timings, animation) {\n return { type: AnimationMetadataType.Stagger, timings, animation };\n}\n\n/**\n * An injectable service that produces an animation sequence programmatically within an\n * Angular component or directive.\n * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.\n *\n * @usageNotes\n *\n * To use this service, add it to your component or directive as a dependency.\n * The service is instantiated along with your component.\n *\n * Apps do not typically need to create their own animation players, but if you\n * do need to, follow these steps:\n *\n * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method\n * to create a programmatic animation. The method returns an `AnimationFactory` instance.\n *\n * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.\n *\n * 3. Use the player object to control the animation programmatically.\n *\n * For example:\n *\n * ```ts\n * // import the service from BrowserAnimationsModule\n * import {AnimationBuilder} from '@angular/animations';\n * // require the service as a dependency\n * class MyCmp {\n * constructor(private _builder: AnimationBuilder) {}\n *\n * makeAnimation(element: any) {\n * // first define a reusable animation\n * const myAnimation = this._builder.build([\n * style({ width: 0 }),\n * animate(1000, style({ width: '100px' }))\n * ]);\n *\n * // use the returned factory object to create a player\n * const player = myAnimation.create(element);\n *\n * player.play();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass AnimationBuilder {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AnimationBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) }]\n }] });\n/**\n * A factory object returned from the\n * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>\n * method.\n *\n * @publicApi\n */\nclass AnimationFactory {\n}\nclass BrowserAnimationBuilder extends AnimationBuilder {\n constructor(rootRenderer, doc) {\n super();\n this.animationModuleType = inject(ANIMATION_MODULE_TYPE, { optional: true });\n this._nextAnimationId = 0;\n const typeData = {\n id: '0',\n encapsulation: ViewEncapsulation.None,\n styles: [],\n data: { animation: [] },\n };\n this._renderer = rootRenderer.createRenderer(doc.body, typeData);\n if (this.animationModuleType === null && !isAnimationRenderer(this._renderer)) {\n // We only support AnimationRenderer & DynamicDelegationRenderer for this AnimationBuilder\n throw new ɵRuntimeError(3600 /* RuntimeErrorCode.BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. ' +\n 'Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.');\n }\n }\n build(animation) {\n const id = this._nextAnimationId;\n this._nextAnimationId++;\n const entry = Array.isArray(animation) ? sequence(animation) : animation;\n issueAnimationCommand(this._renderer, null, id, 'register', [entry]);\n return new BrowserAnimationFactory(id, this._renderer);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\nclass BrowserAnimationFactory extends AnimationFactory {\n constructor(_id, _renderer) {\n super();\n this._id = _id;\n this._renderer = _renderer;\n }\n create(element, options) {\n return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);\n }\n}\nclass RendererAnimationPlayer {\n constructor(id, element, options, _renderer) {\n this.id = id;\n this.element = element;\n this._renderer = _renderer;\n this.parentPlayer = null;\n this._started = false;\n this.totalTime = 0;\n this._command('create', options);\n }\n _listen(eventName, callback) {\n return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);\n }\n _command(command, ...args) {\n issueAnimationCommand(this._renderer, this.element, this.id, command, args);\n }\n onDone(fn) {\n this._listen('done', fn);\n }\n onStart(fn) {\n this._listen('start', fn);\n }\n onDestroy(fn) {\n this._listen('destroy', fn);\n }\n init() {\n this._command('init');\n }\n hasStarted() {\n return this._started;\n }\n play() {\n this._command('play');\n this._started = true;\n }\n pause() {\n this._command('pause');\n }\n restart() {\n this._command('restart');\n }\n finish() {\n this._command('finish');\n }\n destroy() {\n this._command('destroy');\n }\n reset() {\n this._command('reset');\n this._started = false;\n }\n setPosition(p) {\n this._command('setPosition', p);\n }\n getPosition() {\n return unwrapAnimationRenderer(this._renderer)?.engine?.players[this.id]?.getPosition() ?? 0;\n }\n}\nfunction issueAnimationCommand(renderer, element, id, command, args) {\n renderer.setProperty(element, `@@${id}:${command}`, args);\n}\n/**\n * The following 2 methods cannot reference their correct types (AnimationRenderer &\n * DynamicDelegationRenderer) since this would introduce a import cycle.\n */\nfunction unwrapAnimationRenderer(renderer) {\n const type = renderer.ɵtype;\n if (type === 0 /* AnimationRendererType.Regular */) {\n return renderer;\n }\n else if (type === 1 /* AnimationRendererType.Delegated */) {\n return renderer.animationRenderer;\n }\n return null;\n}\nfunction isAnimationRenderer(renderer) {\n const type = renderer.ɵtype;\n return type === 0 /* AnimationRendererType.Regular */ || type === 1 /* AnimationRendererType.Delegated */;\n}\n\n/**\n * An empty programmatic controller for reusable animations.\n * Used internally when animations are disabled, to avoid\n * checking for the null case when an animation player is expected.\n *\n * @see {@link animate}\n * @see {@link AnimationPlayer}\n * @see {@link ɵAnimationGroupPlayer AnimationGroupPlayer}\n *\n * @publicApi\n */\nclass NoopAnimationPlayer {\n constructor(duration = 0, delay = 0) {\n this._onDoneFns = [];\n this._onStartFns = [];\n this._onDestroyFns = [];\n this._originalOnDoneFns = [];\n this._originalOnStartFns = [];\n this._started = false;\n this._destroyed = false;\n this._finished = false;\n this._position = 0;\n this.parentPlayer = null;\n this.totalTime = duration + delay;\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach((fn) => fn());\n this._onDoneFns = [];\n }\n }\n onStart(fn) {\n this._originalOnStartFns.push(fn);\n this._onStartFns.push(fn);\n }\n onDone(fn) {\n this._originalOnDoneFns.push(fn);\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n hasStarted() {\n return this._started;\n }\n init() { }\n play() {\n if (!this.hasStarted()) {\n this._onStart();\n this.triggerMicrotask();\n }\n this._started = true;\n }\n /** @internal */\n triggerMicrotask() {\n queueMicrotask(() => this._onFinish());\n }\n _onStart() {\n this._onStartFns.forEach((fn) => fn());\n this._onStartFns = [];\n }\n pause() { }\n restart() { }\n finish() {\n this._onFinish();\n }\n destroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n if (!this.hasStarted()) {\n this._onStart();\n }\n this.finish();\n this._onDestroyFns.forEach((fn) => fn());\n this._onDestroyFns = [];\n }\n }\n reset() {\n this._started = false;\n this._finished = false;\n this._onStartFns = this._originalOnStartFns;\n this._onDoneFns = this._originalOnDoneFns;\n }\n setPosition(position) {\n this._position = this.totalTime ? position * this.totalTime : 1;\n }\n getPosition() {\n return this.totalTime ? this._position / this.totalTime : 1;\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach((fn) => fn());\n methods.length = 0;\n }\n}\n\n/**\n * A programmatic controller for a group of reusable animations.\n * Used internally to control animations.\n *\n * @see {@link AnimationPlayer}\n * @see {@link animations/group group}\n *\n */\nclass AnimationGroupPlayer {\n constructor(_players) {\n this._onDoneFns = [];\n this._onStartFns = [];\n this._finished = false;\n this._started = false;\n this._destroyed = false;\n this._onDestroyFns = [];\n this.parentPlayer = null;\n this.totalTime = 0;\n this.players = _players;\n let doneCount = 0;\n let destroyCount = 0;\n let startCount = 0;\n const total = this.players.length;\n if (total == 0) {\n queueMicrotask(() => this._onFinish());\n }\n else {\n this.players.forEach((player) => {\n player.onDone(() => {\n if (++doneCount == total) {\n this._onFinish();\n }\n });\n player.onDestroy(() => {\n if (++destroyCount == total) {\n this._onDestroy();\n }\n });\n player.onStart(() => {\n if (++startCount == total) {\n this._onStart();\n }\n });\n });\n }\n this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach((fn) => fn());\n this._onDoneFns = [];\n }\n }\n init() {\n this.players.forEach((player) => player.init());\n }\n onStart(fn) {\n this._onStartFns.push(fn);\n }\n _onStart() {\n if (!this.hasStarted()) {\n this._started = true;\n this._onStartFns.forEach((fn) => fn());\n this._onStartFns = [];\n }\n }\n onDone(fn) {\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n hasStarted() {\n return this._started;\n }\n play() {\n if (!this.parentPlayer) {\n this.init();\n }\n this._onStart();\n this.players.forEach((player) => player.play());\n }\n pause() {\n this.players.forEach((player) => player.pause());\n }\n restart() {\n this.players.forEach((player) => player.restart());\n }\n finish() {\n this._onFinish();\n this.players.forEach((player) => player.finish());\n }\n destroy() {\n this._onDestroy();\n }\n _onDestroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n this._onFinish();\n this.players.forEach((player) => player.destroy());\n this._onDestroyFns.forEach((fn) => fn());\n this._onDestroyFns = [];\n }\n }\n reset() {\n this.players.forEach((player) => player.reset());\n this._destroyed = false;\n this._finished = false;\n this._started = false;\n }\n setPosition(p) {\n const timeAtPosition = p * this.totalTime;\n this.players.forEach((player) => {\n const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;\n player.setPosition(position);\n });\n }\n getPosition() {\n const longestPlayer = this.players.reduce((longestSoFar, player) => {\n const newPlayerIsLongest = longestSoFar === null || player.totalTime > longestSoFar.totalTime;\n return newPlayerIsLongest ? player : longestSoFar;\n }, null);\n return longestPlayer != null ? longestPlayer.getPosition() : 0;\n }\n beforeDestroy() {\n this.players.forEach((player) => {\n if (player.beforeDestroy) {\n player.beforeDestroy();\n }\n });\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach((fn) => fn());\n methods.length = 0;\n }\n}\n\nconst ɵPRE_STYLE = '!';\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AUTO_STYLE, AnimationBuilder, AnimationFactory, AnimationMetadataType, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, AnimationGroupPlayer as ɵAnimationGroupPlayer, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, ɵPRE_STYLE };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, inject, Optional, Inject, EventEmitter, ɵɵinject, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵstringify, Directive, Input, createNgModule, NgModuleRef, ɵRuntimeError, ɵformatRuntimeError, Host, Attribute, RendererStyleFlags2, untracked, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable, PLATFORM_ID, ɵIMAGE_CONFIG, Renderer2, ElementRef, Injector, ɵperformanceMarkFeature, NgZone, ChangeDetectorRef, numberAttribute, booleanAttribute, ɵIMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue } from '@angular/core';\nexport { ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';\n\nlet _DOM = null;\nfunction getDOM() {\n return _DOM;\n}\nfunction setRootDomAdapter(adapter) {\n _DOM ??= adapter;\n}\n/* tslint:disable:requireParameterType */\n/**\n * Provides DOM operations in an environment-agnostic way.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass DomAdapter {\n}\n\n/**\n * This class wraps the platform Navigation API which allows server-specific and test\n * implementations.\n */\nclass PlatformNavigation {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PlatformNavigation, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'platform', useFactory: () => window.navigation }]\n }] });\n\n/**\n * A DI Token representing the main rendering context.\n * In a browser and SSR this is the DOM Document.\n * When using SSR, that document is created by [Domino](https://github.com/angular/domino).\n *\n * @publicApi\n */\nconst DOCUMENT = new InjectionToken(ngDevMode ? 'DocumentToken' : '');\n\n/**\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be\n * platform-agnostic.\n * This means that we can have different implementation of `PlatformLocation` for the different\n * platforms that Angular supports. For example, `@angular/platform-browser` provides an\n * implementation specific to the browser environment, while `@angular/platform-server` provides\n * one suitable for use with server-side rendering.\n *\n * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}\n * when they need to interact with the DOM APIs like pushState, popState, etc.\n *\n * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly\n * by the {@link Router} in order to navigate between routes. Since all interactions between {@link\n * Router} /\n * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`\n * class, they are all platform-agnostic.\n *\n * @publicApi\n */\nclass PlatformLocation {\n historyGo(relativePosition) {\n throw new Error(ngDevMode ? 'Not implemented' : '');\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PlatformLocation, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]\n }] });\n/**\n * @description\n * Indicates when a location is initialized.\n *\n * @publicApi\n */\nconst LOCATION_INITIALIZED = new InjectionToken(ngDevMode ? 'Location Initialized' : '');\n/**\n * `PlatformLocation` encapsulates all of the direct calls to platform APIs.\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * @publicApi\n */\nclass BrowserPlatformLocation extends PlatformLocation {\n constructor() {\n super();\n this._doc = inject(DOCUMENT);\n this._location = window.location;\n this._history = window.history;\n }\n getBaseHrefFromDOM() {\n return getDOM().getBaseHref(this._doc);\n }\n onPopState(fn) {\n const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n window.addEventListener('popstate', fn, false);\n return () => window.removeEventListener('popstate', fn);\n }\n onHashChange(fn) {\n const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n window.addEventListener('hashchange', fn, false);\n return () => window.removeEventListener('hashchange', fn);\n }\n get href() {\n return this._location.href;\n }\n get protocol() {\n return this._location.protocol;\n }\n get hostname() {\n return this._location.hostname;\n }\n get port() {\n return this._location.port;\n }\n get pathname() {\n return this._location.pathname;\n }\n get search() {\n return this._location.search;\n }\n get hash() {\n return this._location.hash;\n }\n set pathname(newPath) {\n this._location.pathname = newPath;\n }\n pushState(state, title, url) {\n this._history.pushState(state, title, url);\n }\n replaceState(state, title, url) {\n this._history.replaceState(state, title, url);\n }\n forward() {\n this._history.forward();\n }\n back() {\n this._history.back();\n }\n historyGo(relativePosition = 0) {\n this._history.go(relativePosition);\n }\n getState() {\n return this._history.state;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserPlatformLocation, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'platform',\n useFactory: () => new BrowserPlatformLocation(),\n }]\n }], ctorParameters: () => [] });\n\n/**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start URL string\n * @param end URL string\n *\n *\n * @returns The joined URL string.\n */\nfunction joinWithSlash(start, end) {\n if (start.length == 0) {\n return end;\n }\n if (end.length == 0) {\n return start;\n }\n let slashes = 0;\n if (start.endsWith('/')) {\n slashes++;\n }\n if (end.startsWith('/')) {\n slashes++;\n }\n if (slashes == 2) {\n return start + end.substring(1);\n }\n if (slashes == 1) {\n return start + end;\n }\n return start + '/' + end;\n}\n/**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\nfunction stripTrailingSlash(url) {\n const match = url.match(/#|\\?|$/);\n const pathEndIdx = (match && match.index) || url.length;\n const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);\n return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);\n}\n/**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\nfunction normalizeQueryParams(params) {\n return params && params[0] !== '?' ? '?' + params : params;\n}\n\n/**\n * Enables the `Location` service to read route state from the browser's URL.\n * Angular provides two strategies:\n * `HashLocationStrategy` and `PathLocationStrategy`.\n *\n * Applications should use the `Router` or `Location` services to\n * interact with application route state.\n *\n * For instance, `HashLocationStrategy` produces URLs like\n * <code class=\"no-auto-link\">http://example.com#/foo</code>,\n * and `PathLocationStrategy` produces\n * <code class=\"no-auto-link\">http://example.com/foo</code> as an equivalent URL.\n *\n * See these two classes for more.\n *\n * @publicApi\n */\nclass LocationStrategy {\n historyGo(relativePosition) {\n throw new Error(ngDevMode ? 'Not implemented' : '');\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LocationStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]\n }] });\n/**\n * A predefined [DI token](guide/glossary#di-token) for the base href\n * to be used with the `PathLocationStrategy`.\n * The base href is the URL prefix that should be preserved when generating\n * and recognizing URLs.\n *\n * @usageNotes\n *\n * The following example shows how to use this token to configure the root app injector\n * with a base href value, so that the DI framework can supply the dependency anywhere in the app.\n *\n * ```typescript\n * import {NgModule} from '@angular/core';\n * import {APP_BASE_HREF} from '@angular/common';\n *\n * @NgModule({\n * providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]\n * })\n * class AppModule {}\n * ```\n *\n * @publicApi\n */\nconst APP_BASE_HREF = new InjectionToken(ngDevMode ? 'appBaseHref' : '');\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the\n * browser's URL.\n *\n * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}\n * or add a `<base href>` element to the document to override the default.\n *\n * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,\n * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.\n *\n * Similarly, if you add `<base href='/my/app/'/>` to the document and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`.\n *\n * Note that when using `PathLocationStrategy`, neither the query nor\n * the fragment in the `<base href>` will be preserved, as outlined\n * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/path_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass PathLocationStrategy extends LocationStrategy {\n constructor(_platformLocation, href) {\n super();\n this._platformLocation = _platformLocation;\n this._removeListenerFns = [];\n this._baseHref =\n href ??\n this._platformLocation.getBaseHrefFromDOM() ??\n inject(DOCUMENT).location?.origin ??\n '';\n }\n /** @nodoc */\n ngOnDestroy() {\n while (this._removeListenerFns.length) {\n this._removeListenerFns.pop()();\n }\n }\n onPopState(fn) {\n this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n }\n getBaseHref() {\n return this._baseHref;\n }\n prepareExternalUrl(internal) {\n return joinWithSlash(this._baseHref, internal);\n }\n path(includeHash = false) {\n const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);\n const hash = this._platformLocation.hash;\n return hash && includeHash ? `${pathname}${hash}` : pathname;\n }\n pushState(state, title, url, queryParams) {\n const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n this._platformLocation.pushState(state, title, externalUrl);\n }\n replaceState(state, title, url, queryParams) {\n const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n this._platformLocation.replaceState(state, title, externalUrl);\n }\n forward() {\n this._platformLocation.forward();\n }\n back() {\n this._platformLocation.back();\n }\n getState() {\n return this._platformLocation.getState();\n }\n historyGo(relativePosition = 0) {\n this._platformLocation.historyGo?.(relativePosition);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PathLocationStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [APP_BASE_HREF]\n }] }] });\n\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)\n * of the browser's URL.\n *\n * For instance, if you call `location.go('/foo')`, the browser's URL will become\n * `example.com#/foo`.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass HashLocationStrategy extends LocationStrategy {\n constructor(_platformLocation, _baseHref) {\n super();\n this._platformLocation = _platformLocation;\n this._baseHref = '';\n this._removeListenerFns = [];\n if (_baseHref != null) {\n this._baseHref = _baseHref;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n while (this._removeListenerFns.length) {\n this._removeListenerFns.pop()();\n }\n }\n onPopState(fn) {\n this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n }\n getBaseHref() {\n return this._baseHref;\n }\n path(includeHash = false) {\n // the hash value is always prefixed with a `#`\n // and if it is empty then it will stay empty\n const path = this._platformLocation.hash ?? '#';\n return path.length > 0 ? path.substring(1) : path;\n }\n prepareExternalUrl(internal) {\n const url = joinWithSlash(this._baseHref, internal);\n return url.length > 0 ? '#' + url : url;\n }\n pushState(state, title, path, queryParams) {\n let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.pushState(state, title, url);\n }\n replaceState(state, title, path, queryParams) {\n let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.replaceState(state, title, url);\n }\n forward() {\n this._platformLocation.forward();\n }\n back() {\n this._platformLocation.back();\n }\n getState() {\n return this._platformLocation.getState();\n }\n historyGo(relativePosition = 0) {\n this._platformLocation.historyGo?.(relativePosition);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HashLocationStrategy }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HashLocationStrategy, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [APP_BASE_HREF]\n }] }] });\n\n/**\n * @description\n *\n * A service that applications can use to interact with a browser's URL.\n *\n * Depending on the `LocationStrategy` used, `Location` persists\n * to the URL's path or the URL's hash segment.\n *\n * @usageNotes\n *\n * It's better to use the `Router.navigate()` service to trigger route changes. Use\n * `Location` only if you need to interact with or create normalized URLs outside of\n * routing.\n *\n * `Location` is responsible for normalizing the URL against the application's base href.\n * A normalized URL is absolute from the URL host, includes the application's base href, and has no\n * trailing slash:\n * - `/my/app/user/123` is normalized\n * - `my/app/user/123` **is not** normalized\n * - `/my/app/user/123/` **is not** normalized\n *\n * ### Example\n *\n * <code-example path='common/location/ts/path_location_component.ts'\n * region='LocationComponent'></code-example>\n *\n * @publicApi\n */\nclass Location {\n constructor(locationStrategy) {\n /** @internal */\n this._subject = new EventEmitter();\n /** @internal */\n this._urlChangeListeners = [];\n /** @internal */\n this._urlChangeSubscription = null;\n this._locationStrategy = locationStrategy;\n const baseHref = this._locationStrategy.getBaseHref();\n // Note: This class's interaction with base HREF does not fully follow the rules\n // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.\n // Instead of trying to fix individual bugs with more and more code, we should\n // investigate using the URL constructor and providing the base as a second\n // argument.\n // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters\n this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));\n this._locationStrategy.onPopState((ev) => {\n this._subject.emit({\n 'url': this.path(true),\n 'pop': true,\n 'state': ev.state,\n 'type': ev.type,\n });\n });\n }\n /** @nodoc */\n ngOnDestroy() {\n this._urlChangeSubscription?.unsubscribe();\n this._urlChangeListeners = [];\n }\n /**\n * Normalizes the URL path for this location.\n *\n * @param includeHash True to include an anchor fragment in the path.\n *\n * @returns The normalized URL path.\n */\n // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is\n // removed.\n path(includeHash = false) {\n return this.normalize(this._locationStrategy.path(includeHash));\n }\n /**\n * Reports the current state of the location history.\n * @returns The current value of the `history.state` object.\n */\n getState() {\n return this._locationStrategy.getState();\n }\n /**\n * Normalizes the given path and compares to the current normalized path.\n *\n * @param path The given URL path.\n * @param query Query parameters.\n *\n * @returns True if the given URL path is equal to the current normalized path, false\n * otherwise.\n */\n isCurrentPathEqualTo(path, query = '') {\n return this.path() == this.normalize(path + normalizeQueryParams(query));\n }\n /**\n * Normalizes a URL path by stripping any trailing slashes.\n *\n * @param url String representing a URL.\n *\n * @returns The normalized URL string.\n */\n normalize(url) {\n return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));\n }\n /**\n * Normalizes an external URL path.\n * If the given URL doesn't begin with a leading slash (`'/'`), adds one\n * before normalizing. Adds a hash if `HashLocationStrategy` is\n * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.\n *\n * @param url String representing a URL.\n *\n * @returns A normalized platform-specific URL.\n */\n prepareExternalUrl(url) {\n if (url && url[0] !== '/') {\n url = '/' + url;\n }\n return this._locationStrategy.prepareExternalUrl(url);\n }\n // TODO: rename this method to pushState\n /**\n * Changes the browser's URL to a normalized version of a given URL, and pushes a\n * new item onto the platform's history.\n *\n * @param path URL path to normalize.\n * @param query Query parameters.\n * @param state Location history state.\n *\n */\n go(path, query = '', state = null) {\n this._locationStrategy.pushState(state, '', path, query);\n this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n }\n /**\n * Changes the browser's URL to a normalized version of the given URL, and replaces\n * the top item on the platform's history stack.\n *\n * @param path URL path to normalize.\n * @param query Query parameters.\n * @param state Location history state.\n */\n replaceState(path, query = '', state = null) {\n this._locationStrategy.replaceState(state, '', path, query);\n this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n }\n /**\n * Navigates forward in the platform's history.\n */\n forward() {\n this._locationStrategy.forward();\n }\n /**\n * Navigates back in the platform's history.\n */\n back() {\n this._locationStrategy.back();\n }\n /**\n * Navigate to a specific page from session history, identified by its relative position to the\n * current page.\n *\n * @param relativePosition Position of the target page in the history relative to the current\n * page.\n * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`\n * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go\n * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs\n * when `relativePosition` equals 0.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history\n */\n historyGo(relativePosition = 0) {\n this._locationStrategy.historyGo?.(relativePosition);\n }\n /**\n * Registers a URL change listener. Use to catch updates performed by the Angular\n * framework that are not detectible through \"popstate\" or \"hashchange\" events.\n *\n * @param fn The change handler function, which take a URL and a location history state.\n * @returns A function that, when executed, unregisters a URL change listener.\n */\n onUrlChange(fn) {\n this._urlChangeListeners.push(fn);\n this._urlChangeSubscription ??= this.subscribe((v) => {\n this._notifyUrlChangeListeners(v.url, v.state);\n });\n return () => {\n const fnIndex = this._urlChangeListeners.indexOf(fn);\n this._urlChangeListeners.splice(fnIndex, 1);\n if (this._urlChangeListeners.length === 0) {\n this._urlChangeSubscription?.unsubscribe();\n this._urlChangeSubscription = null;\n }\n };\n }\n /** @internal */\n _notifyUrlChangeListeners(url = '', state) {\n this._urlChangeListeners.forEach((fn) => fn(url, state));\n }\n /**\n * Subscribes to the platform's `popState` events.\n *\n * Note: `Location.go()` does not trigger the `popState` event in the browser. Use\n * `Location.onUrlChange()` to subscribe to URL changes instead.\n *\n * @param value Event that is triggered when the state history changes.\n * @param exception The exception to throw.\n *\n * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)\n *\n * @returns Subscribed events.\n */\n subscribe(onNext, onThrow, onReturn) {\n return this._subject.subscribe({ next: onNext, error: onThrow, complete: onReturn });\n }\n /**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\n static { this.normalizeQueryParams = normalizeQueryParams; }\n /**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start URL string\n * @param end URL string\n *\n *\n * @returns The joined URL string.\n */\n static { this.joinWithSlash = joinWithSlash; }\n /**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\n static { this.stripTrailingSlash = stripTrailingSlash; }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Location, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n // See #23917\n useFactory: createLocation,\n }]\n }], ctorParameters: () => [{ type: LocationStrategy }] });\nfunction createLocation() {\n return new Location(ɵɵinject(LocationStrategy));\n}\nfunction _stripBasePath(basePath, url) {\n if (!basePath || !url.startsWith(basePath)) {\n return url;\n }\n const strippedUrl = url.substring(basePath.length);\n if (strippedUrl === '' || ['/', ';', '?', '#'].includes(strippedUrl[0])) {\n return strippedUrl;\n }\n return url;\n}\nfunction _stripIndexHtml(url) {\n return url.replace(/\\/index.html$/, '');\n}\nfunction _stripOrigin(baseHref) {\n // DO NOT REFACTOR! Previously, this check looked like this:\n // `/^(https?:)?\\/\\//.test(baseHref)`, but that resulted in\n // syntactically incorrect code after Closure Compiler minification.\n // This was likely caused by a bug in Closure Compiler, but\n // for now, the check is rewritten to use `new RegExp` instead.\n const isAbsoluteUrl = new RegExp('^(https?:)?//').test(baseHref);\n if (isAbsoluteUrl) {\n const [, pathname] = baseHref.split(/\\/\\/[^\\/]+/);\n return pathname;\n }\n return baseHref;\n}\n\n/** @internal */\nconst CURRENCIES_EN = { \"ADP\": [undefined, undefined, 0], \"AFN\": [undefined, \"Ø‹\", 0], \"ALL\": [undefined, undefined, 0], \"AMD\": [undefined, \"Ö\", 2], \"AOA\": [undefined, \"Kz\"], \"ARS\": [undefined, \"$\"], \"AUD\": [\"A$\", \"$\"], \"AZN\": [undefined, \"₼\"], \"BAM\": [undefined, \"KM\"], \"BBD\": [undefined, \"$\"], \"BDT\": [undefined, \"৳\"], \"BHD\": [undefined, undefined, 3], \"BIF\": [undefined, undefined, 0], \"BMD\": [undefined, \"$\"], \"BND\": [undefined, \"$\"], \"BOB\": [undefined, \"Bs\"], \"BRL\": [\"R$\"], \"BSD\": [undefined, \"$\"], \"BWP\": [undefined, \"P\"], \"BYN\": [undefined, undefined, 2], \"BYR\": [undefined, undefined, 0], \"BZD\": [undefined, \"$\"], \"CAD\": [\"CA$\", \"$\", 2], \"CHF\": [undefined, undefined, 2], \"CLF\": [undefined, undefined, 4], \"CLP\": [undefined, \"$\", 0], \"CNY\": [\"CNÂ¥\", \"Â¥\"], \"COP\": [undefined, \"$\", 2], \"CRC\": [undefined, \"â‚¡\", 2], \"CUC\": [undefined, \"$\"], \"CUP\": [undefined, \"$\"], \"CZK\": [undefined, \"KÄ\", 2], \"DJF\": [undefined, undefined, 0], \"DKK\": [undefined, \"kr\", 2], \"DOP\": [undefined, \"$\"], \"EGP\": [undefined, \"E£\"], \"ESP\": [undefined, \"₧\", 0], \"EUR\": [\"€\"], \"FJD\": [undefined, \"$\"], \"FKP\": [undefined, \"£\"], \"GBP\": [\"£\"], \"GEL\": [undefined, \"₾\"], \"GHS\": [undefined, \"GH₵\"], \"GIP\": [undefined, \"£\"], \"GNF\": [undefined, \"FG\", 0], \"GTQ\": [undefined, \"Q\"], \"GYD\": [undefined, \"$\", 2], \"HKD\": [\"HK$\", \"$\"], \"HNL\": [undefined, \"L\"], \"HRK\": [undefined, \"kn\"], \"HUF\": [undefined, \"Ft\", 2], \"IDR\": [undefined, \"Rp\", 2], \"ILS\": [\"₪\"], \"INR\": [\"₹\"], \"IQD\": [undefined, undefined, 0], \"IRR\": [undefined, undefined, 0], \"ISK\": [undefined, \"kr\", 0], \"ITL\": [undefined, undefined, 0], \"JMD\": [undefined, \"$\"], \"JOD\": [undefined, undefined, 3], \"JPY\": [\"Â¥\", undefined, 0], \"KHR\": [undefined, \"៛\"], \"KMF\": [undefined, \"CF\", 0], \"KPW\": [undefined, \"â‚©\", 0], \"KRW\": [\"â‚©\", undefined, 0], \"KWD\": [undefined, undefined, 3], \"KYD\": [undefined, \"$\"], \"KZT\": [undefined, \"₸\"], \"LAK\": [undefined, \"â‚\", 0], \"LBP\": [undefined, \"L£\", 0], \"LKR\": [undefined, \"Rs\"], \"LRD\": [undefined, \"$\"], \"LTL\": [undefined, \"Lt\"], \"LUF\": [undefined, undefined, 0], \"LVL\": [undefined, \"Ls\"], \"LYD\": [undefined, undefined, 3], \"MGA\": [undefined, \"Ar\", 0], \"MGF\": [undefined, undefined, 0], \"MMK\": [undefined, \"K\", 0], \"MNT\": [undefined, \"â‚®\", 2], \"MRO\": [undefined, undefined, 0], \"MUR\": [undefined, \"Rs\", 2], \"MXN\": [\"MX$\", \"$\"], \"MYR\": [undefined, \"RM\"], \"NAD\": [undefined, \"$\"], \"NGN\": [undefined, \"₦\"], \"NIO\": [undefined, \"C$\"], \"NOK\": [undefined, \"kr\", 2], \"NPR\": [undefined, \"Rs\"], \"NZD\": [\"NZ$\", \"$\"], \"OMR\": [undefined, undefined, 3], \"PHP\": [\"₱\"], \"PKR\": [undefined, \"Rs\", 2], \"PLN\": [undefined, \"zÅ‚\"], \"PYG\": [undefined, \"₲\", 0], \"RON\": [undefined, \"lei\"], \"RSD\": [undefined, undefined, 0], \"RUB\": [undefined, \"₽\"], \"RWF\": [undefined, \"RF\", 0], \"SBD\": [undefined, \"$\"], \"SEK\": [undefined, \"kr\", 2], \"SGD\": [undefined, \"$\"], \"SHP\": [undefined, \"£\"], \"SLE\": [undefined, undefined, 2], \"SLL\": [undefined, undefined, 0], \"SOS\": [undefined, undefined, 0], \"SRD\": [undefined, \"$\"], \"SSP\": [undefined, \"£\"], \"STD\": [undefined, undefined, 0], \"STN\": [undefined, \"Db\"], \"SYP\": [undefined, \"£\", 0], \"THB\": [undefined, \"฿\"], \"TMM\": [undefined, undefined, 0], \"TND\": [undefined, undefined, 3], \"TOP\": [undefined, \"T$\"], \"TRL\": [undefined, undefined, 0], \"TRY\": [undefined, \"₺\"], \"TTD\": [undefined, \"$\"], \"TWD\": [\"NT$\", \"$\", 2], \"TZS\": [undefined, undefined, 2], \"UAH\": [undefined, \"â‚´\"], \"UGX\": [undefined, undefined, 0], \"USD\": [\"$\"], \"UYI\": [undefined, undefined, 0], \"UYU\": [undefined, \"$\"], \"UYW\": [undefined, undefined, 4], \"UZS\": [undefined, undefined, 2], \"VEF\": [undefined, \"Bs\", 2], \"VND\": [\"â‚«\", undefined, 0], \"VUV\": [undefined, undefined, 0], \"XAF\": [\"FCFA\", undefined, 0], \"XCD\": [\"EC$\", \"$\"], \"XOF\": [\"F CFA\", undefined, 0], \"XPF\": [\"CFPF\", undefined, 0], \"XXX\": [\"¤\"], \"YER\": [undefined, undefined, 0], \"ZAR\": [undefined, \"R\"], \"ZMK\": [undefined, undefined, 0], \"ZMW\": [undefined, \"ZK\"], \"ZWD\": [undefined, undefined, 0] };\n\n/**\n * Format styles that can be used to represent numbers.\n * @see {@link getLocaleNumberFormat}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nvar NumberFormatStyle;\n(function (NumberFormatStyle) {\n NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\n NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\n NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\n NumberFormatStyle[NumberFormatStyle[\"Scientific\"] = 3] = \"Scientific\";\n})(NumberFormatStyle || (NumberFormatStyle = {}));\n/**\n * Plurality cases used for translating plurals to different languages.\n *\n * @see {@link NgPlural}\n * @see {@link NgPluralCase}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nvar Plural;\n(function (Plural) {\n Plural[Plural[\"Zero\"] = 0] = \"Zero\";\n Plural[Plural[\"One\"] = 1] = \"One\";\n Plural[Plural[\"Two\"] = 2] = \"Two\";\n Plural[Plural[\"Few\"] = 3] = \"Few\";\n Plural[Plural[\"Many\"] = 4] = \"Many\";\n Plural[Plural[\"Other\"] = 5] = \"Other\";\n})(Plural || (Plural = {}));\n/**\n * Context-dependant translation forms for strings.\n * Typically the standalone version is for the nominative form of the word,\n * and the format version is used for the genitive case.\n * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nvar FormStyle;\n(function (FormStyle) {\n FormStyle[FormStyle[\"Format\"] = 0] = \"Format\";\n FormStyle[FormStyle[\"Standalone\"] = 1] = \"Standalone\";\n})(FormStyle || (FormStyle = {}));\n/**\n * String widths available for translations.\n * The specific character widths are locale-specific.\n * Examples are given for the word \"Sunday\" in English.\n *\n * @publicApi\n */\nvar TranslationWidth;\n(function (TranslationWidth) {\n /** 1 character for `en-US`. For example: 'S' */\n TranslationWidth[TranslationWidth[\"Narrow\"] = 0] = \"Narrow\";\n /** 3 characters for `en-US`. For example: 'Sun' */\n TranslationWidth[TranslationWidth[\"Abbreviated\"] = 1] = \"Abbreviated\";\n /** Full length for `en-US`. For example: \"Sunday\" */\n TranslationWidth[TranslationWidth[\"Wide\"] = 2] = \"Wide\";\n /** 2 characters for `en-US`, For example: \"Su\" */\n TranslationWidth[TranslationWidth[\"Short\"] = 3] = \"Short\";\n})(TranslationWidth || (TranslationWidth = {}));\n/**\n * String widths available for date-time formats.\n * The specific character widths are locale-specific.\n * Examples are given for `en-US`.\n *\n * @see {@link getLocaleDateFormat}\n * @see {@link getLocaleTimeFormat}\n * @see {@link getLocaleDateTimeFormat}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n * @publicApi\n */\nvar FormatWidth;\n(function (FormatWidth) {\n /**\n * For `en-US`, `'M/d/yy, h:mm a'`\n * (Example: `6/15/15, 9:03 AM`)\n */\n FormatWidth[FormatWidth[\"Short\"] = 0] = \"Short\";\n /**\n * For `en-US`, `'MMM d, y, h:mm:ss a'`\n * (Example: `Jun 15, 2015, 9:03:01 AM`)\n */\n FormatWidth[FormatWidth[\"Medium\"] = 1] = \"Medium\";\n /**\n * For `en-US`, `'MMMM d, y, h:mm:ss a z'`\n * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)\n */\n FormatWidth[FormatWidth[\"Long\"] = 2] = \"Long\";\n /**\n * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`\n * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)\n */\n FormatWidth[FormatWidth[\"Full\"] = 3] = \"Full\";\n})(FormatWidth || (FormatWidth = {}));\n// This needs to be an object literal, rather than an enum, because TypeScript 5.4+\n// doesn't allow numeric keys and we have `Infinity` and `NaN`.\n/**\n * Symbols that can be used to replace placeholders in number patterns.\n * Examples are based on `en-US` values.\n *\n * @see {@link getLocaleNumberSymbol}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n * @object-literal-as-enum\n */\nconst NumberSymbol = {\n /**\n * Decimal separator.\n * For `en-US`, the dot character.\n * Example: 2,345`.`67\n */\n Decimal: 0,\n /**\n * Grouping separator, typically for thousands.\n * For `en-US`, the comma character.\n * Example: 2`,`345.67\n */\n Group: 1,\n /**\n * List-item separator.\n * Example: \"one, two, and three\"\n */\n List: 2,\n /**\n * Sign for percentage (out of 100).\n * Example: 23.4%\n */\n PercentSign: 3,\n /**\n * Sign for positive numbers.\n * Example: +23\n */\n PlusSign: 4,\n /**\n * Sign for negative numbers.\n * Example: -23\n */\n MinusSign: 5,\n /**\n * Computer notation for exponential value (n times a power of 10).\n * Example: 1.2E3\n */\n Exponential: 6,\n /**\n * Human-readable format of exponential.\n * Example: 1.2x103\n */\n SuperscriptingExponent: 7,\n /**\n * Sign for permille (out of 1000).\n * Example: 23.4‰\n */\n PerMille: 8,\n /**\n * Infinity, can be used with plus and minus.\n * Example: ∞, +∞, -∞\n */\n Infinity: 9,\n /**\n * Not a number.\n * Example: NaN\n */\n NaN: 10,\n /**\n * Symbol used between time units.\n * Example: 10:52\n */\n TimeSeparator: 11,\n /**\n * Decimal separator for currency values (fallback to `Decimal`).\n * Example: $2,345.67\n */\n CurrencyDecimal: 12,\n /**\n * Group separator for currency values (fallback to `Group`).\n * Example: $2,345.67\n */\n CurrencyGroup: 13,\n};\n/**\n * The value for each day of the week, based on the `en-US` locale\n *\n * @publicApi\n */\nvar WeekDay;\n(function (WeekDay) {\n WeekDay[WeekDay[\"Sunday\"] = 0] = \"Sunday\";\n WeekDay[WeekDay[\"Monday\"] = 1] = \"Monday\";\n WeekDay[WeekDay[\"Tuesday\"] = 2] = \"Tuesday\";\n WeekDay[WeekDay[\"Wednesday\"] = 3] = \"Wednesday\";\n WeekDay[WeekDay[\"Thursday\"] = 4] = \"Thursday\";\n WeekDay[WeekDay[\"Friday\"] = 5] = \"Friday\";\n WeekDay[WeekDay[\"Saturday\"] = 6] = \"Saturday\";\n})(WeekDay || (WeekDay = {}));\n/**\n * Retrieves the locale ID from the currently loaded locale.\n * The loaded locale could be, for example, a global one rather than a regional one.\n * @param locale A locale code, such as `fr-FR`.\n * @returns The locale code. For example, `fr`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleId(locale) {\n return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId];\n}\n/**\n * Retrieves day period strings for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayPeriods(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const amPmData = [\n data[ɵLocaleDataIndex.DayPeriodsFormat],\n data[ɵLocaleDataIndex.DayPeriodsStandalone],\n ];\n const amPm = getLastDefinedValue(amPmData, formStyle);\n return getLastDefinedValue(amPm, width);\n}\n/**\n * Retrieves days of the week for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayNames(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const daysData = [\n data[ɵLocaleDataIndex.DaysFormat],\n data[ɵLocaleDataIndex.DaysStandalone],\n ];\n const days = getLastDefinedValue(daysData, formStyle);\n return getLastDefinedValue(days, width);\n}\n/**\n * Retrieves months of the year for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example, `[January, February, ...]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleMonthNames(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const monthsData = [\n data[ɵLocaleDataIndex.MonthsFormat],\n data[ɵLocaleDataIndex.MonthsStandalone],\n ];\n const months = getLastDefinedValue(monthsData, formStyle);\n return getLastDefinedValue(months, width);\n}\n/**\n * Retrieves Gregorian-calendar eras for the given locale.\n * @param locale A locale code for the locale format rules to use.\n * @param width The required character width.\n\n * @returns An array of localized era strings.\n * For example, `[AD, BC]` for `en-US`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleEraNames(locale, width) {\n const data = ɵfindLocaleData(locale);\n const erasData = data[ɵLocaleDataIndex.Eras];\n return getLastDefinedValue(erasData, width);\n}\n/**\n * Retrieves the first day of the week for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns A day index number, using the 0-based week-day index for `en-US`\n * (Sunday = 0, Monday = 1, ...).\n * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleFirstDayOfWeek(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.FirstDayOfWeek];\n}\n/**\n * Range of week days that are considered the week-end for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The range of day values, `[startDay, endDay]`.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleWeekEndRange(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.WeekendRange];\n}\n/**\n * Retrieves a localized date-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDateFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width);\n}\n/**\n * Retrieves a localized time-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n\n * @publicApi\n */\nfunction getLocaleTimeFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width);\n}\n/**\n * Retrieves a localized date-time formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see {@link FormatWidth}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDateTimeFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n const dateTimeFormatData = data[ɵLocaleDataIndex.DateTimeFormat];\n return getLastDefinedValue(dateTimeFormatData, width);\n}\n/**\n * Retrieves a localized number symbol that can be used to replace placeholders in number formats.\n * @param locale The locale code.\n * @param symbol The symbol to localize. Must be one of `NumberSymbol`.\n * @returns The character for the localized symbol.\n * @see {@link NumberSymbol}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleNumberSymbol(locale, symbol) {\n const data = ɵfindLocaleData(locale);\n const res = data[ɵLocaleDataIndex.NumberSymbols][symbol];\n if (typeof res === 'undefined') {\n if (symbol === NumberSymbol.CurrencyDecimal) {\n return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];\n }\n else if (symbol === NumberSymbol.CurrencyGroup) {\n return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Group];\n }\n }\n return res;\n}\n/**\n * Retrieves a number format for a given locale.\n *\n * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`\n * when used to format the number 12345.678 could result in \"12'345,678\". That would happen if the\n * grouping separator for your language is an apostrophe, and the decimal separator is a comma.\n *\n * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders\n * that stand for the decimal separator, and so on, and are NOT real characters.\n * You must NOT \"translate\" the placeholders. For example, don't change `.` to `,` even though in\n * your language the decimal point is written with a comma. The symbols should be replaced by the\n * local equivalents, using the appropriate `NumberSymbol` for your language.\n *\n * Here are the special characters used in number patterns:\n *\n * | Symbol | Meaning |\n * |--------|---------|\n * | . | Replaced automatically by the character used for the decimal point. |\n * | , | Replaced by the \"grouping\" (thousands) separator. |\n * | 0 | Replaced by a digit (or zero if there aren't enough digits). |\n * | # | Replaced by a digit (or nothing if there aren't enough). |\n * | ¤ | Replaced by a currency symbol, such as $ or USD. |\n * | % | Marks a percent format. The % symbol may change position, but must be retained. |\n * | E | Marks a scientific format. The E symbol may change position, but must be retained. |\n * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |\n *\n * @param locale A locale code for the locale format rules to use.\n * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)\n * @returns The localized format string.\n * @see {@link NumberFormatStyle}\n * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleNumberFormat(locale, type) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.NumberFormats][type];\n}\n/**\n * Retrieves the symbol used to represent the currency for the main country\n * corresponding to a given locale. For example, '$' for `en-US`.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The localized symbol character,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleCurrencySymbol(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.CurrencySymbol] || null;\n}\n/**\n * Retrieves the name of the currency for the main country corresponding\n * to a given locale. For example, 'US Dollar' for `en-US`.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency name,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleCurrencyName(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.CurrencyName] || null;\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n * @publicApi\n */\nfunction getLocaleCurrencyCode(locale) {\n return ɵgetLocaleCurrencyCode(locale);\n}\n/**\n * Retrieves the currency values for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency values.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n */\nfunction getLocaleCurrencies(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.Currencies];\n}\n/**\n * @alias core/ɵgetLocalePluralCase\n * @publicApi\n */\nconst getLocalePluralCase = ɵgetLocalePluralCase;\nfunction checkFullData(data) {\n if (!data[ɵLocaleDataIndex.ExtraData]) {\n throw new Error(`Missing extra locale data for the locale \"${data[ɵLocaleDataIndex.LocaleId]}\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more.`);\n }\n}\n/**\n * Retrieves locale-specific rules used to determine which day period to use\n * when more than one period is defined for a locale.\n *\n * There is a rule for each defined day period. The\n * first rule is applied to the first day period and so on.\n * Fall back to AM/PM when no rules are available.\n *\n * A rule can specify a period as time range, or as a single time value.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The rules for the locale, a single time value or array of *from-time, to-time*,\n * or null if no periods are available.\n *\n * @see {@link getLocaleExtraDayPeriods}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleExtraDayPeriodRules(locale) {\n const data = ɵfindLocaleData(locale);\n checkFullData(data);\n const rules = data[ɵLocaleDataIndex.ExtraData][2 /* ɵExtraLocaleDataIndex.ExtraDayPeriodsRules */] || [];\n return rules.map((rule) => {\n if (typeof rule === 'string') {\n return extractTime(rule);\n }\n return [extractTime(rule[0]), extractTime(rule[1])];\n });\n}\n/**\n * Retrieves locale-specific day periods, which indicate roughly how a day is broken up\n * in different languages.\n * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns The translated day-period strings.\n * @see {@link getLocaleExtraDayPeriodRules}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleExtraDayPeriods(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n checkFullData(data);\n const dayPeriodsData = [\n data[ɵLocaleDataIndex.ExtraData][0 /* ɵExtraLocaleDataIndex.ExtraDayPeriodFormats */],\n data[ɵLocaleDataIndex.ExtraData][1 /* ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone */],\n ];\n const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];\n return getLastDefinedValue(dayPeriods, width) || [];\n}\n/**\n * Retrieves the writing direction of a specified locale\n * @param locale A locale code for the locale format rules to use.\n * @publicApi\n * @returns 'rtl' or 'ltr'\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n */\nfunction getLocaleDirection(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.Directionality];\n}\n/**\n * Retrieves the first value that is defined in an array, going backwards from an index position.\n *\n * To avoid repeating the same data (as when the \"format\" and \"standalone\" forms are the same)\n * add the first value to the locale data arrays, and add other values only if they are different.\n *\n * @param data The data array to retrieve from.\n * @param index A 0-based index into the array to start from.\n * @returns The value immediately before the given index position.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLastDefinedValue(data, index) {\n for (let i = index; i > -1; i--) {\n if (typeof data[i] !== 'undefined') {\n return data[i];\n }\n }\n throw new Error('Locale data API: locale data undefined');\n}\n/**\n * Extracts the hours and minutes from a string like \"15:45\"\n */\nfunction extractTime(time) {\n const [h, m] = time.split(':');\n return { hours: +h, minutes: +m };\n}\n/**\n * Retrieves the currency symbol for a given currency code.\n *\n * For example, for the default `en-US` locale, the code `USD` can\n * be represented by the narrow symbol `$` or the wide symbol `US$`.\n *\n * @param code The currency code.\n * @param format The format, `wide` or `narrow`.\n * @param locale A locale code for the locale format rules to use.\n *\n * @returns The symbol, or the currency code if no symbol is available.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getCurrencySymbol(code, format, locale = 'en') {\n const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];\n const symbolNarrow = currency[1 /* ɵCurrencyIndex.SymbolNarrow */];\n if (format === 'narrow' && typeof symbolNarrow === 'string') {\n return symbolNarrow;\n }\n return currency[0 /* ɵCurrencyIndex.Symbol */] || code;\n}\n// Most currencies have cents, that's why the default is 2\nconst DEFAULT_NB_OF_CURRENCY_DIGITS = 2;\n/**\n * Reports the number of decimal digits for a given currency.\n * The value depends upon the presence of cents in that particular currency.\n *\n * @param code The currency code.\n * @returns The number of decimal digits, typically 0 or 2.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getNumberOfCurrencyDigits(code) {\n let digits;\n const currency = CURRENCIES_EN[code];\n if (currency) {\n digits = currency[2 /* ɵCurrencyIndex.NbOfDigits */];\n }\n return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;\n}\n\nconst ISO8601_DATE_REGEX = /^(\\d{4,})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n// 1 2 3 4 5 6 7 8 9 10 11\nconst NAMED_FORMATS = {};\nconst DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\\s\\S]*)/;\nvar ZoneWidth;\n(function (ZoneWidth) {\n ZoneWidth[ZoneWidth[\"Short\"] = 0] = \"Short\";\n ZoneWidth[ZoneWidth[\"ShortGMT\"] = 1] = \"ShortGMT\";\n ZoneWidth[ZoneWidth[\"Long\"] = 2] = \"Long\";\n ZoneWidth[ZoneWidth[\"Extended\"] = 3] = \"Extended\";\n})(ZoneWidth || (ZoneWidth = {}));\nvar DateType;\n(function (DateType) {\n DateType[DateType[\"FullYear\"] = 0] = \"FullYear\";\n DateType[DateType[\"Month\"] = 1] = \"Month\";\n DateType[DateType[\"Date\"] = 2] = \"Date\";\n DateType[DateType[\"Hours\"] = 3] = \"Hours\";\n DateType[DateType[\"Minutes\"] = 4] = \"Minutes\";\n DateType[DateType[\"Seconds\"] = 5] = \"Seconds\";\n DateType[DateType[\"FractionalSeconds\"] = 6] = \"FractionalSeconds\";\n DateType[DateType[\"Day\"] = 7] = \"Day\";\n})(DateType || (DateType = {}));\nvar TranslationType;\n(function (TranslationType) {\n TranslationType[TranslationType[\"DayPeriods\"] = 0] = \"DayPeriods\";\n TranslationType[TranslationType[\"Days\"] = 1] = \"Days\";\n TranslationType[TranslationType[\"Months\"] = 2] = \"Months\";\n TranslationType[TranslationType[\"Eras\"] = 3] = \"Eras\";\n})(TranslationType || (TranslationType = {}));\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date according to locale rules.\n *\n * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)\n * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).\n * @param format The date-time components to include. See `DatePipe` for details.\n * @param locale A locale code for the locale format rules to use.\n * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),\n * or a standard UTC/GMT or continental US time zone abbreviation.\n * If not specified, uses host system settings.\n *\n * @returns The formatted date string.\n *\n * @see {@link DatePipe}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatDate(value, format, locale, timezone) {\n let date = toDate(value);\n const namedFormat = getNamedFormat(locale, format);\n format = namedFormat || format;\n let parts = [];\n let match;\n while (format) {\n match = DATE_FORMATS_SPLIT.exec(format);\n if (match) {\n parts = parts.concat(match.slice(1));\n const part = parts.pop();\n if (!part) {\n break;\n }\n format = part;\n }\n else {\n parts.push(format);\n break;\n }\n }\n let dateTimezoneOffset = date.getTimezoneOffset();\n if (timezone) {\n dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n date = convertTimezoneToLocal(date, timezone, true);\n }\n let text = '';\n parts.forEach((value) => {\n const dateFormatter = getDateFormatter(value);\n text += dateFormatter\n ? dateFormatter(date, locale, dateTimezoneOffset)\n : value === \"''\"\n ? \"'\"\n : value.replace(/(^'|'$)/g, '').replace(/''/g, \"'\");\n });\n return text;\n}\n/**\n * Create a new Date object with the given date value, and the time set to midnight.\n *\n * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.\n * See: https://github.com/angular/angular/issues/40377\n *\n * Note that this function returns a Date object whose time is midnight in the current locale's\n * timezone. In the future we might want to change this to be midnight in UTC, but this would be a\n * considerable breaking change.\n */\nfunction createDate(year, month, date) {\n // The `newDate` is set to midnight (UTC) on January 1st 1970.\n // - In PST this will be December 31st 1969 at 4pm.\n // - In GMT this will be January 1st 1970 at 1am.\n // Note that they even have different years, dates and months!\n const newDate = new Date(0);\n // `setFullYear()` allows years like 0001 to be set correctly. This function does not\n // change the internal time of the date.\n // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).\n // - In PST this will now be September 20, 2019 at 4pm\n // - In GMT this will now be September 20, 2019 at 1am\n newDate.setFullYear(year, month, date);\n // We want the final date to be at local midnight, so we reset the time.\n // - In PST this will now be September 20, 2019 at 12am\n // - In GMT this will now be September 20, 2019 at 12am\n newDate.setHours(0, 0, 0);\n return newDate;\n}\nfunction getNamedFormat(locale, format) {\n const localeId = getLocaleId(locale);\n NAMED_FORMATS[localeId] ??= {};\n if (NAMED_FORMATS[localeId][format]) {\n return NAMED_FORMATS[localeId][format];\n }\n let formatValue = '';\n switch (format) {\n case 'shortDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Short);\n break;\n case 'mediumDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);\n break;\n case 'longDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Long);\n break;\n case 'fullDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Full);\n break;\n case 'shortTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);\n break;\n case 'mediumTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);\n break;\n case 'longTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);\n break;\n case 'fullTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);\n break;\n case 'short':\n const shortTime = getNamedFormat(locale, 'shortTime');\n const shortDate = getNamedFormat(locale, 'shortDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [\n shortTime,\n shortDate,\n ]);\n break;\n case 'medium':\n const mediumTime = getNamedFormat(locale, 'mediumTime');\n const mediumDate = getNamedFormat(locale, 'mediumDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [\n mediumTime,\n mediumDate,\n ]);\n break;\n case 'long':\n const longTime = getNamedFormat(locale, 'longTime');\n const longDate = getNamedFormat(locale, 'longDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [\n longTime,\n longDate,\n ]);\n break;\n case 'full':\n const fullTime = getNamedFormat(locale, 'fullTime');\n const fullDate = getNamedFormat(locale, 'fullDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [\n fullTime,\n fullDate,\n ]);\n break;\n }\n if (formatValue) {\n NAMED_FORMATS[localeId][format] = formatValue;\n }\n return formatValue;\n}\nfunction formatDateTime(str, opt_values) {\n if (opt_values) {\n str = str.replace(/\\{([^}]+)}/g, function (match, key) {\n return opt_values != null && key in opt_values ? opt_values[key] : match;\n });\n }\n return str;\n}\nfunction padNumber(num, digits, minusSign = '-', trim, negWrap) {\n let neg = '';\n if (num < 0 || (negWrap && num <= 0)) {\n if (negWrap) {\n num = -num + 1;\n }\n else {\n num = -num;\n neg = minusSign;\n }\n }\n let strNum = String(num);\n while (strNum.length < digits) {\n strNum = '0' + strNum;\n }\n if (trim) {\n strNum = strNum.slice(strNum.length - digits);\n }\n return neg + strNum;\n}\nfunction formatFractionalSeconds(milliseconds, digits) {\n const strMs = padNumber(milliseconds, 3);\n return strMs.substring(0, digits);\n}\n/**\n * Returns a date formatter that transforms a date into its locale digit representation\n */\nfunction dateGetter(name, size, offset = 0, trim = false, negWrap = false) {\n return function (date, locale) {\n let part = getDatePart(name, date);\n if (offset > 0 || part > -offset) {\n part += offset;\n }\n if (name === DateType.Hours) {\n if (part === 0 && offset === -12) {\n part = 12;\n }\n }\n else if (name === DateType.FractionalSeconds) {\n return formatFractionalSeconds(part, size);\n }\n const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n return padNumber(part, size, localeMinus, trim, negWrap);\n };\n}\nfunction getDatePart(part, date) {\n switch (part) {\n case DateType.FullYear:\n return date.getFullYear();\n case DateType.Month:\n return date.getMonth();\n case DateType.Date:\n return date.getDate();\n case DateType.Hours:\n return date.getHours();\n case DateType.Minutes:\n return date.getMinutes();\n case DateType.Seconds:\n return date.getSeconds();\n case DateType.FractionalSeconds:\n return date.getMilliseconds();\n case DateType.Day:\n return date.getDay();\n default:\n throw new Error(`Unknown DateType value \"${part}\".`);\n }\n}\n/**\n * Returns a date formatter that transforms a date into its locale string representation\n */\nfunction dateStrGetter(name, width, form = FormStyle.Format, extended = false) {\n return function (date, locale) {\n return getDateTranslation(date, locale, name, width, form, extended);\n };\n}\n/**\n * Returns the locale translation of a date for a given form, type and width\n */\nfunction getDateTranslation(date, locale, name, width, form, extended) {\n switch (name) {\n case TranslationType.Months:\n return getLocaleMonthNames(locale, form, width)[date.getMonth()];\n case TranslationType.Days:\n return getLocaleDayNames(locale, form, width)[date.getDay()];\n case TranslationType.DayPeriods:\n const currentHours = date.getHours();\n const currentMinutes = date.getMinutes();\n if (extended) {\n const rules = getLocaleExtraDayPeriodRules(locale);\n const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);\n const index = rules.findIndex((rule) => {\n if (Array.isArray(rule)) {\n // morning, afternoon, evening, night\n const [from, to] = rule;\n const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;\n const beforeTo = currentHours < to.hours || (currentHours === to.hours && currentMinutes < to.minutes);\n // We must account for normal rules that span a period during the day (e.g. 6am-9am)\n // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.\n // 10pm - 5am) where `from` is greater (later!) than `to`.\n //\n // In the first case the current time must be BOTH after `from` AND before `to`\n // (e.g. 8am is after 6am AND before 10am).\n //\n // In the second case the current time must be EITHER after `from` OR before `to`\n // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is\n // after 10pm).\n if (from.hours < to.hours) {\n if (afterFrom && beforeTo) {\n return true;\n }\n }\n else if (afterFrom || beforeTo) {\n return true;\n }\n }\n else {\n // noon or midnight\n if (rule.hours === currentHours && rule.minutes === currentMinutes) {\n return true;\n }\n }\n return false;\n });\n if (index !== -1) {\n return dayPeriods[index];\n }\n }\n // if no rules for the day periods, we use am/pm by default\n return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];\n case TranslationType.Eras:\n return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];\n default:\n // This default case is not needed by TypeScript compiler, as the switch is exhaustive.\n // However Closure Compiler does not understand that and reports an error in typed mode.\n // The `throw new Error` below works around the problem, and the unexpected: never variable\n // makes sure tsc still checks this code is unreachable.\n const unexpected = name;\n throw new Error(`unexpected translation type ${unexpected}`);\n }\n}\n/**\n * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or\n * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,\n * extended = +04:30)\n */\nfunction timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0 ? '+' : '') +\n padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign));\n case ZoneWidth.ShortGMT:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return ('GMT' +\n (zone >= 0 ? '+' : '') +\n padNumber(hours, 2, minusSign) +\n ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign));\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0 ? '+' : '') +\n padNumber(hours, 2, minusSign) +\n ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign));\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}\nconst JANUARY = 0;\nconst THURSDAY = 4;\nfunction getFirstThursdayOfYear(year) {\n const firstDayOfYear = createDate(year, JANUARY, 1).getDay();\n return createDate(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);\n}\n/**\n * ISO Week starts on day 1 (Monday) and ends with day 0 (Sunday)\n */\nfunction getThursdayThisIsoWeek(datetime) {\n // getDay returns 0-6 range with sunday as 0.\n const currentDay = datetime.getDay();\n // On a Sunday, read the previous Thursday since ISO weeks start on Monday.\n const deltaToThursday = currentDay === 0 ? -3 : THURSDAY - currentDay;\n return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + deltaToThursday);\n}\nfunction weekGetter(size, monthBased = false) {\n return function (date, locale) {\n let result;\n if (monthBased) {\n const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;\n const today = date.getDate();\n result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);\n }\n else {\n const thisThurs = getThursdayThisIsoWeek(date);\n // Some days of a year are part of next year according to ISO 8601.\n // Compute the firstThurs from the year of this week's Thursday\n const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());\n const diff = thisThurs.getTime() - firstThurs.getTime();\n result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n }\n return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n };\n}\n/**\n * Returns a date formatter that provides the week-numbering year for the input date.\n */\nfunction weekNumberingYearGetter(size, trim = false) {\n return function (date, locale) {\n const thisThurs = getThursdayThisIsoWeek(date);\n const weekNumberingYear = thisThurs.getFullYear();\n return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);\n };\n}\nconst DATE_FORMATS = {};\n// Based on CLDR formats:\n// See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n// See also explanations: http://cldr.unicode.org/translation/date-time\n// TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x\nfunction getDateFormatter(format) {\n if (DATE_FORMATS[format]) {\n return DATE_FORMATS[format];\n }\n let formatter;\n switch (format) {\n // Era name (AD/BC)\n case 'G':\n case 'GG':\n case 'GGG':\n formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);\n break;\n case 'GGGG':\n formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);\n break;\n case 'GGGGG':\n formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);\n break;\n // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)\n case 'y':\n formatter = dateGetter(DateType.FullYear, 1, 0, false, true);\n break;\n // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n case 'yy':\n formatter = dateGetter(DateType.FullYear, 2, 0, true, true);\n break;\n // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)\n case 'yyy':\n formatter = dateGetter(DateType.FullYear, 3, 0, false, true);\n break;\n // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)\n case 'yyyy':\n formatter = dateGetter(DateType.FullYear, 4, 0, false, true);\n break;\n // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)\n case 'Y':\n formatter = weekNumberingYearGetter(1);\n break;\n // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD\n // 2010 => 10)\n case 'YY':\n formatter = weekNumberingYearGetter(2, true);\n break;\n // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD\n // 2010 => 2010)\n case 'YYY':\n formatter = weekNumberingYearGetter(3);\n break;\n // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)\n case 'YYYY':\n formatter = weekNumberingYearGetter(4);\n break;\n // Month of the year (1-12), numeric\n case 'M':\n case 'L':\n formatter = dateGetter(DateType.Month, 1, 1);\n break;\n case 'MM':\n case 'LL':\n formatter = dateGetter(DateType.Month, 2, 1);\n break;\n // Month of the year (January, ...), string, format\n case 'MMM':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);\n break;\n case 'MMMM':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);\n break;\n case 'MMMMM':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);\n break;\n // Month of the year (January, ...), string, standalone\n case 'LLL':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);\n break;\n case 'LLLL':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);\n break;\n case 'LLLLL':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);\n break;\n // Week of the year (1, ... 52)\n case 'w':\n formatter = weekGetter(1);\n break;\n case 'ww':\n formatter = weekGetter(2);\n break;\n // Week of the month (1, ...)\n case 'W':\n formatter = weekGetter(1, true);\n break;\n // Day of the month (1-31)\n case 'd':\n formatter = dateGetter(DateType.Date, 1);\n break;\n case 'dd':\n formatter = dateGetter(DateType.Date, 2);\n break;\n // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)\n case 'c':\n case 'cc':\n formatter = dateGetter(DateType.Day, 1);\n break;\n case 'ccc':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);\n break;\n case 'cccc':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);\n break;\n case 'ccccc':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);\n break;\n case 'cccccc':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short, FormStyle.Standalone);\n break;\n // Day of the Week\n case 'E':\n case 'EE':\n case 'EEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);\n break;\n case 'EEEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);\n break;\n case 'EEEEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);\n break;\n case 'EEEEEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);\n break;\n // Generic period of the day (am-pm)\n case 'a':\n case 'aa':\n case 'aaa':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);\n break;\n case 'aaaa':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);\n break;\n case 'aaaaa':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);\n break;\n // Extended period of the day (midnight, at night, ...), standalone\n case 'b':\n case 'bb':\n case 'bbb':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);\n break;\n case 'bbbb':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);\n break;\n case 'bbbbb':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);\n break;\n // Extended period of the day (midnight, night, ...), standalone\n case 'B':\n case 'BB':\n case 'BBB':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);\n break;\n case 'BBBB':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);\n break;\n case 'BBBBB':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);\n break;\n // Hour in AM/PM, (1-12)\n case 'h':\n formatter = dateGetter(DateType.Hours, 1, -12);\n break;\n case 'hh':\n formatter = dateGetter(DateType.Hours, 2, -12);\n break;\n // Hour of the day (0-23)\n case 'H':\n formatter = dateGetter(DateType.Hours, 1);\n break;\n // Hour in day, padded (00-23)\n case 'HH':\n formatter = dateGetter(DateType.Hours, 2);\n break;\n // Minute of the hour (0-59)\n case 'm':\n formatter = dateGetter(DateType.Minutes, 1);\n break;\n case 'mm':\n formatter = dateGetter(DateType.Minutes, 2);\n break;\n // Second of the minute (0-59)\n case 's':\n formatter = dateGetter(DateType.Seconds, 1);\n break;\n case 'ss':\n formatter = dateGetter(DateType.Seconds, 2);\n break;\n // Fractional second\n case 'S':\n formatter = dateGetter(DateType.FractionalSeconds, 1);\n break;\n case 'SS':\n formatter = dateGetter(DateType.FractionalSeconds, 2);\n break;\n case 'SSS':\n formatter = dateGetter(DateType.FractionalSeconds, 3);\n break;\n // Timezone ISO8601 short format (-0430)\n case 'Z':\n case 'ZZ':\n case 'ZZZ':\n formatter = timeZoneGetter(ZoneWidth.Short);\n break;\n // Timezone ISO8601 extended format (-04:30)\n case 'ZZZZZ':\n formatter = timeZoneGetter(ZoneWidth.Extended);\n break;\n // Timezone GMT short format (GMT+4)\n case 'O':\n case 'OO':\n case 'OOO':\n // Should be location, but fallback to format O instead because we don't have the data yet\n case 'z':\n case 'zz':\n case 'zzz':\n formatter = timeZoneGetter(ZoneWidth.ShortGMT);\n break;\n // Timezone GMT long format (GMT+0430)\n case 'OOOO':\n case 'ZZZZ':\n // Should be location, but fallback to format O instead because we don't have the data yet\n case 'zzzz':\n formatter = timeZoneGetter(ZoneWidth.Long);\n break;\n default:\n return null;\n }\n DATE_FORMATS[format] = formatter;\n return formatter;\n}\nfunction timezoneToOffset(timezone, fallback) {\n // Support: IE 11 only, Edge 13-15+\n // IE/Edge do not \"understand\" colon (`:`) in timezone\n timezone = timezone.replace(/:/g, '');\n const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n}\nfunction addDateMinutes(date, minutes) {\n date = new Date(date.getTime());\n date.setMinutes(date.getMinutes() + minutes);\n return date;\n}\nfunction convertTimezoneToLocal(date, timezone, reverse) {\n const reverseValue = reverse ? -1 : 1;\n const dateTimezoneOffset = date.getTimezoneOffset();\n const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));\n}\n/**\n * Converts a value to date.\n *\n * Supported input formats:\n * - `Date`\n * - number: timestamp\n * - string: numeric (e.g. \"1234\"), ISO and date strings in a format supported by\n * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).\n * Note: ISO strings without time return a date without timeoffset.\n *\n * Throws if unable to convert to a date.\n */\nfunction toDate(value) {\n if (isDate(value)) {\n return value;\n }\n if (typeof value === 'number' && !isNaN(value)) {\n return new Date(value);\n }\n if (typeof value === 'string') {\n value = value.trim();\n if (/^(\\d{4}(-\\d{1,2}(-\\d{1,2})?)?)$/.test(value)) {\n /* For ISO Strings without time the day, month and year must be extracted from the ISO String\n before Date creation to avoid time offset and errors in the new Date.\n If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new\n date, some browsers (e.g. IE 9) will throw an invalid Date error.\n If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset\n is applied.\n Note: ISO months are 0 for January, 1 for February, ... */\n const [y, m = 1, d = 1] = value.split('-').map((val) => +val);\n return createDate(y, m - 1, d);\n }\n const parsedNb = parseFloat(value);\n // any string that only contains numbers, like \"1234\" but not like \"1234hello\"\n if (!isNaN(value - parsedNb)) {\n return new Date(parsedNb);\n }\n let match;\n if ((match = value.match(ISO8601_DATE_REGEX))) {\n return isoStringToDate(match);\n }\n }\n const date = new Date(value);\n if (!isDate(date)) {\n throw new Error(`Unable to convert \"${value}\" into a date`);\n }\n return date;\n}\n/**\n * Converts a date in ISO8601 to a Date.\n * Used instead of `Date.parse` because of browser discrepancies.\n */\nfunction isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}\nfunction isDate(value) {\n return value instanceof Date && !isNaN(value.valueOf());\n}\n\nconst NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/;\nconst MAX_DIGITS = 22;\nconst DECIMAL_SEP = '.';\nconst ZERO_CHAR = '0';\nconst PATTERN_SEP = ';';\nconst GROUP_SEP = ',';\nconst DIGIT_CHAR = '#';\nconst CURRENCY_CHAR = '¤';\nconst PERCENT_CHAR = '%';\n/**\n * Transforms a number to a locale string based on a style and a format.\n */\nfunction formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {\n let formattedText = '';\n let isZero = false;\n if (!isFinite(value)) {\n formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);\n }\n else {\n let parsedNumber = parseNumber(value);\n if (isPercent) {\n parsedNumber = toPercent(parsedNumber);\n }\n let minInt = pattern.minInt;\n let minFraction = pattern.minFrac;\n let maxFraction = pattern.maxFrac;\n if (digitsInfo) {\n const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);\n if (parts === null) {\n throw new Error(`${digitsInfo} is not a valid digit info`);\n }\n const minIntPart = parts[1];\n const minFractionPart = parts[3];\n const maxFractionPart = parts[5];\n if (minIntPart != null) {\n minInt = parseIntAutoRadix(minIntPart);\n }\n if (minFractionPart != null) {\n minFraction = parseIntAutoRadix(minFractionPart);\n }\n if (maxFractionPart != null) {\n maxFraction = parseIntAutoRadix(maxFractionPart);\n }\n else if (minFractionPart != null && minFraction > maxFraction) {\n maxFraction = minFraction;\n }\n }\n roundNumber(parsedNumber, minFraction, maxFraction);\n let digits = parsedNumber.digits;\n let integerLen = parsedNumber.integerLen;\n const exponent = parsedNumber.exponent;\n let decimals = [];\n isZero = digits.every((d) => !d);\n // pad zeros for small numbers\n for (; integerLen < minInt; integerLen++) {\n digits.unshift(0);\n }\n // pad zeros for small numbers\n for (; integerLen < 0; integerLen++) {\n digits.unshift(0);\n }\n // extract decimals digits\n if (integerLen > 0) {\n decimals = digits.splice(integerLen, digits.length);\n }\n else {\n decimals = digits;\n digits = [0];\n }\n // format the integer digits with grouping separators\n const groups = [];\n if (digits.length >= pattern.lgSize) {\n groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));\n }\n while (digits.length > pattern.gSize) {\n groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));\n }\n if (digits.length) {\n groups.unshift(digits.join(''));\n }\n formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));\n // append the decimal digits\n if (decimals.length) {\n formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');\n }\n if (exponent) {\n formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;\n }\n }\n if (value < 0 && !isZero) {\n formattedText = pattern.negPre + formattedText + pattern.negSuf;\n }\n else {\n formattedText = pattern.posPre + formattedText + pattern.posSuf;\n }\n return formattedText;\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as currency using locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param currency A string containing the currency symbol or its name,\n * such as \"$\" or \"Canadian Dollar\". Used in output string, but does not affect the operation\n * of the function.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)\n * currency code, such as `USD` for the US dollar and `EUR` for the euro.\n * Used to determine the number of digits in the decimal part.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted currency value.\n *\n * @see {@link formatNumber}\n * @see {@link DecimalPipe}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatCurrency(value, locale, currency, currencyCode, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);\n pattern.maxFrac = pattern.minFrac;\n const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);\n return (res\n .replace(CURRENCY_CHAR, currency)\n // if we have 2 time the currency character, the second one is ignored\n .replace(CURRENCY_CHAR, '')\n // If there is a spacing between currency character and the value and\n // the currency character is suppressed by passing an empty string, the\n // spacing character would remain as part of the string. Then we\n // should remove it.\n .trim());\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as a percentage according to locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted percentage value.\n *\n * @see {@link formatNumber}\n * @see {@link DecimalPipe}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n * @publicApi\n *\n */\nfunction formatPercent(value, locale, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);\n return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as text, with group sizing, separator, and other\n * parameters based on the locale.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted text string.\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatNumber(value, locale, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);\n}\nfunction parseNumberFormat(format, minusSign = '-') {\n const p = {\n minInt: 1,\n minFrac: 0,\n maxFrac: 0,\n posPre: '',\n posSuf: '',\n negPre: '',\n negSuf: '',\n gSize: 0,\n lgSize: 0,\n };\n const patternParts = format.split(PATTERN_SEP);\n const positive = patternParts[0];\n const negative = patternParts[1];\n const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1\n ? positive.split(DECIMAL_SEP)\n : [\n positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),\n positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1),\n ], integer = positiveParts[0], fraction = positiveParts[1] || '';\n p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));\n for (let i = 0; i < fraction.length; i++) {\n const ch = fraction.charAt(i);\n if (ch === ZERO_CHAR) {\n p.minFrac = p.maxFrac = i + 1;\n }\n else if (ch === DIGIT_CHAR) {\n p.maxFrac = i + 1;\n }\n else {\n p.posSuf += ch;\n }\n }\n const groups = integer.split(GROUP_SEP);\n p.gSize = groups[1] ? groups[1].length : 0;\n p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;\n if (negative) {\n const trunkLen = positive.length - p.posPre.length - p.posSuf.length, pos = negative.indexOf(DIGIT_CHAR);\n p.negPre = negative.substring(0, pos).replace(/'/g, '');\n p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');\n }\n else {\n p.negPre = minusSign + p.posPre;\n p.negSuf = p.posSuf;\n }\n return p;\n}\n// Transforms a parsed number into a percentage by multiplying it by 100\nfunction toPercent(parsedNumber) {\n // if the number is 0, don't do anything\n if (parsedNumber.digits[0] === 0) {\n return parsedNumber;\n }\n // Getting the current number of decimals\n const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;\n if (parsedNumber.exponent) {\n parsedNumber.exponent += 2;\n }\n else {\n if (fractionLen === 0) {\n parsedNumber.digits.push(0, 0);\n }\n else if (fractionLen === 1) {\n parsedNumber.digits.push(0);\n }\n parsedNumber.integerLen += 2;\n }\n return parsedNumber;\n}\n/**\n * Parses a number.\n * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/\n */\nfunction parseNumber(num) {\n let numStr = Math.abs(num) + '';\n let exponent = 0, digits, integerLen;\n let i, j, zeros;\n // Decimal point?\n if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {\n numStr = numStr.replace(DECIMAL_SEP, '');\n }\n // Exponential form?\n if ((i = numStr.search(/e/i)) > 0) {\n // Work out the exponent.\n if (integerLen < 0)\n integerLen = i;\n integerLen += +numStr.slice(i + 1);\n numStr = numStr.substring(0, i);\n }\n else if (integerLen < 0) {\n // There was no decimal point or exponent so it is an integer.\n integerLen = numStr.length;\n }\n // Count the number of leading zeros.\n for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {\n /* empty */\n }\n if (i === (zeros = numStr.length)) {\n // The digits are all zero.\n digits = [0];\n integerLen = 1;\n }\n else {\n // Count the number of trailing zeros\n zeros--;\n while (numStr.charAt(zeros) === ZERO_CHAR)\n zeros--;\n // Trailing zeros are insignificant so ignore them\n integerLen -= i;\n digits = [];\n // Convert string to array of digits without leading/trailing zeros.\n for (j = 0; i <= zeros; i++, j++) {\n digits[j] = Number(numStr.charAt(i));\n }\n }\n // If the number overflows the maximum allowed digits then use an exponent.\n if (integerLen > MAX_DIGITS) {\n digits = digits.splice(0, MAX_DIGITS - 1);\n exponent = integerLen - 1;\n integerLen = 1;\n }\n return { digits, exponent, integerLen };\n}\n/**\n * Round the parsed number to the specified number of decimal places\n * This function changes the parsedNumber in-place\n */\nfunction roundNumber(parsedNumber, minFrac, maxFrac) {\n if (minFrac > maxFrac) {\n throw new Error(`The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);\n }\n let digits = parsedNumber.digits;\n let fractionLen = digits.length - parsedNumber.integerLen;\n const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);\n // The index of the digit to where rounding is to occur\n let roundAt = fractionSize + parsedNumber.integerLen;\n let digit = digits[roundAt];\n if (roundAt > 0) {\n // Drop fractional digits beyond `roundAt`\n digits.splice(Math.max(parsedNumber.integerLen, roundAt));\n // Set non-fractional digits beyond `roundAt` to 0\n for (let j = roundAt; j < digits.length; j++) {\n digits[j] = 0;\n }\n }\n else {\n // We rounded to zero so reset the parsedNumber\n fractionLen = Math.max(0, fractionLen);\n parsedNumber.integerLen = 1;\n digits.length = Math.max(1, (roundAt = fractionSize + 1));\n digits[0] = 0;\n for (let i = 1; i < roundAt; i++)\n digits[i] = 0;\n }\n if (digit >= 5) {\n if (roundAt - 1 < 0) {\n for (let k = 0; k > roundAt; k--) {\n digits.unshift(0);\n parsedNumber.integerLen++;\n }\n digits.unshift(1);\n parsedNumber.integerLen++;\n }\n else {\n digits[roundAt - 1]++;\n }\n }\n // Pad out with zeros to get the required fraction length\n for (; fractionLen < Math.max(0, fractionSize); fractionLen++)\n digits.push(0);\n let dropTrailingZeros = fractionSize !== 0;\n // Minimal length = nb of decimals required + current nb of integers\n // Any number besides that is optional and can be removed if it's a trailing 0\n const minLen = minFrac + parsedNumber.integerLen;\n // Do any carrying, e.g. a digit was rounded up to 10\n const carry = digits.reduceRight(function (carry, d, i, digits) {\n d = d + carry;\n digits[i] = d < 10 ? d : d - 10; // d % 10\n if (dropTrailingZeros) {\n // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)\n if (digits[i] === 0 && i >= minLen) {\n digits.pop();\n }\n else {\n dropTrailingZeros = false;\n }\n }\n return d >= 10 ? 1 : 0; // Math.floor(d / 10);\n }, 0);\n if (carry) {\n digits.unshift(carry);\n parsedNumber.integerLen++;\n }\n}\nfunction parseIntAutoRadix(text) {\n const result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n}\n\n/**\n * @publicApi\n */\nclass NgLocalization {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgLocalization, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n useFactory: (locale) => new NgLocaleLocalization(locale),\n deps: [LOCALE_ID],\n }]\n }] });\n/**\n * Returns the plural category for a given value.\n * - \"=value\" when the case exists,\n * - the plural category otherwise\n */\nfunction getPluralCategory(value, cases, ngLocalization, locale) {\n let key = `=${value}`;\n if (cases.indexOf(key) > -1) {\n return key;\n }\n key = ngLocalization.getPluralCategory(value, locale);\n if (cases.indexOf(key) > -1) {\n return key;\n }\n if (cases.indexOf('other') > -1) {\n return 'other';\n }\n throw new Error(`No plural message found for value \"${value}\"`);\n}\n/**\n * Returns the plural case based on the locale\n *\n * @publicApi\n */\nclass NgLocaleLocalization extends NgLocalization {\n constructor(locale) {\n super();\n this.locale = locale;\n }\n getPluralCategory(value, locale) {\n const plural = getLocalePluralCase(locale || this.locale)(value);\n switch (plural) {\n case Plural.Zero:\n return 'zero';\n case Plural.One:\n return 'one';\n case Plural.Two:\n return 'two';\n case Plural.Few:\n return 'few';\n case Plural.Many:\n return 'many';\n default:\n return 'other';\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgLocaleLocalization }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgLocaleLocalization, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }] });\n\n/**\n * Register global data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1\n *\n * @publicApi\n */\nfunction registerLocaleData(data, localeId, extraData) {\n return ɵregisterLocaleData(data, localeId, extraData);\n}\n\nfunction parseCookieValue(cookieStr, name) {\n name = encodeURIComponent(name);\n for (const cookie of cookieStr.split(';')) {\n const eqIndex = cookie.indexOf('=');\n const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\n}\n\nconst WS_REGEXP = /\\s+/;\nconst EMPTY_ARRAY = [];\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n * <some-element [ngClass]=\"'first second'\">...</some-element>\n *\n * <some-element [ngClass]=\"['first', 'second']\">...</some-element>\n *\n * <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>\n *\n * <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>\n *\n * <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>\n * ```\n *\n * @description\n *\n * Adds and removes CSS classes on an HTML element.\n *\n * The CSS classes are updated as follows, depending on the type of the expression evaluation:\n * - `string` - the CSS classes listed in the string (space delimited) are added,\n * - `Array` - the CSS classes declared as Array elements are added,\n * - `Object` - keys are CSS classes that get added when the expression given in the value\n * evaluates to a truthy value, otherwise they are removed.\n *\n * @publicApi\n */\nclass NgClass {\n constructor(_ngEl, _renderer) {\n this._ngEl = _ngEl;\n this._renderer = _renderer;\n this.initialClasses = EMPTY_ARRAY;\n this.stateMap = new Map();\n }\n set klass(value) {\n this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;\n }\n set ngClass(value) {\n this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;\n }\n /*\n The NgClass directive uses the custom change detection algorithm for its inputs. The custom\n algorithm is necessary since inputs are represented as complex object or arrays that need to be\n deeply-compared.\n \n This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance\n might negatively impact runtime performance of the entire change detection cycle. The design of\n this algorithm is making sure that:\n - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when\n needed), even if references to bound objects change;\n - there is no memory allocation if nothing changes (even relatively modest memory allocation\n during the change detection cycle can result in GC pauses for some of the CD cycles).\n \n The algorithm works by iterating over the set of bound classes, staring with [class] binding and\n then going over [ngClass] binding. For each CSS class name:\n - check if it was seen before (this information is tracked in the state map) and if its value\n changed;\n - mark it as \"touched\" - names that are not marked are not present in the latest set of binding\n and we can remove such class name from the internal data structures;\n \n After iteration over all the CSS class names we've got data structure with all the information\n necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush\n changes to the DOM and reset internal data structures so those are ready for the next change\n detection cycle.\n */\n ngDoCheck() {\n // classes from the [class] binding\n for (const klass of this.initialClasses) {\n this._updateState(klass, true);\n }\n // classes from the [ngClass] binding\n const rawClass = this.rawClass;\n if (Array.isArray(rawClass) || rawClass instanceof Set) {\n for (const klass of rawClass) {\n this._updateState(klass, true);\n }\n }\n else if (rawClass != null) {\n for (const klass of Object.keys(rawClass)) {\n this._updateState(klass, Boolean(rawClass[klass]));\n }\n }\n this._applyStateDiff();\n }\n _updateState(klass, nextEnabled) {\n const state = this.stateMap.get(klass);\n if (state !== undefined) {\n if (state.enabled !== nextEnabled) {\n state.changed = true;\n state.enabled = nextEnabled;\n }\n state.touched = true;\n }\n else {\n this.stateMap.set(klass, { enabled: nextEnabled, changed: true, touched: true });\n }\n }\n _applyStateDiff() {\n for (const stateEntry of this.stateMap) {\n const klass = stateEntry[0];\n const state = stateEntry[1];\n if (state.changed) {\n this._toggleClass(klass, state.enabled);\n state.changed = false;\n }\n else if (!state.touched) {\n // A class that was previously active got removed from the new collection of classes -\n // remove from the DOM as well.\n if (state.enabled) {\n this._toggleClass(klass, false);\n }\n this.stateMap.delete(klass);\n }\n state.touched = false;\n }\n }\n _toggleClass(klass, enabled) {\n if (ngDevMode) {\n if (typeof klass !== 'string') {\n throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ɵstringify(klass)}`);\n }\n }\n klass = klass.trim();\n if (klass.length > 0) {\n klass.split(WS_REGEXP).forEach((klass) => {\n if (enabled) {\n this._renderer.addClass(this._ngEl.nativeElement, klass);\n }\n else {\n this._renderer.removeClass(this._ngEl.nativeElement, klass);\n }\n });\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgClass, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgClass, isStandalone: true, selector: \"[ngClass]\", inputs: { klass: [\"class\", \"klass\"], ngClass: \"ngClass\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgClass, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngClass]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { klass: [{\n type: Input,\n args: ['class']\n }], ngClass: [{\n type: Input,\n args: ['ngClass']\n }] } });\n\n/**\n * Instantiates a {@link Component} type and inserts its Host View into the current View.\n * `NgComponentOutlet` provides a declarative approach for dynamic component creation.\n *\n * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and\n * any existing component will be destroyed.\n *\n * @usageNotes\n *\n * ### Fine tune control\n *\n * You can control the component creation process by using the following optional attributes:\n *\n * * `ngComponentOutletInputs`: Optional component inputs object, which will be bind to the\n * component.\n *\n * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for\n * the Component. Defaults to the injector of the current view container.\n *\n * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content\n * section of the component, if it exists.\n *\n * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another\n * module dynamically, then loading a component from that module.\n *\n * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional\n * NgModule factory to allow loading another module dynamically, then loading a component from that\n * module. Use `ngComponentOutletNgModule` instead.\n *\n * ### Syntax\n *\n * Simple\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>\n * ```\n *\n * With inputs\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * inputs: inputsExpression;\">\n * </ng-container>\n * ```\n *\n * Customized injector/content\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * injector: injectorExpression;\n * content: contentNodesExpression;\">\n * </ng-container>\n * ```\n *\n * Customized NgModule reference\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * ngModule: ngModuleClass;\">\n * </ng-container>\n * ```\n *\n * ### A simple example\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}\n *\n * A more complete example with additional options:\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}\n *\n * @publicApi\n * @ngModule CommonModule\n */\nclass NgComponentOutlet {\n constructor(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n this.ngComponentOutlet = null;\n /**\n * A helper data structure that allows us to track inputs that were part of the\n * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones\n * that are no longer referenced.\n */\n this._inputsUsed = new Map();\n }\n _needToReCreateNgModuleInstance(changes) {\n // Note: square brackets property accessor is safe for Closure compiler optimizations (the\n // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that\n // were changed).\n return (changes['ngComponentOutletNgModule'] !== undefined ||\n changes['ngComponentOutletNgModuleFactory'] !== undefined);\n }\n _needToReCreateComponentInstance(changes) {\n // Note: square brackets property accessor is safe for Closure compiler optimizations (the\n // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that\n // were changed).\n return (changes['ngComponentOutlet'] !== undefined ||\n changes['ngComponentOutletContent'] !== undefined ||\n changes['ngComponentOutletInjector'] !== undefined ||\n this._needToReCreateNgModuleInstance(changes));\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this._needToReCreateComponentInstance(changes)) {\n this._viewContainerRef.clear();\n this._inputsUsed.clear();\n this._componentRef = undefined;\n if (this.ngComponentOutlet) {\n const injector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;\n if (this._needToReCreateNgModuleInstance(changes)) {\n this._moduleRef?.destroy();\n if (this.ngComponentOutletNgModule) {\n this._moduleRef = createNgModule(this.ngComponentOutletNgModule, getParentInjector(injector));\n }\n else if (this.ngComponentOutletNgModuleFactory) {\n this._moduleRef = this.ngComponentOutletNgModuleFactory.create(getParentInjector(injector));\n }\n else {\n this._moduleRef = undefined;\n }\n }\n this._componentRef = this._viewContainerRef.createComponent(this.ngComponentOutlet, {\n injector,\n ngModuleRef: this._moduleRef,\n projectableNodes: this.ngComponentOutletContent,\n });\n }\n }\n }\n /** @nodoc */\n ngDoCheck() {\n if (this._componentRef) {\n if (this.ngComponentOutletInputs) {\n for (const inputName of Object.keys(this.ngComponentOutletInputs)) {\n this._inputsUsed.set(inputName, true);\n }\n }\n this._applyInputStateDiff(this._componentRef);\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n this._moduleRef?.destroy();\n }\n _applyInputStateDiff(componentRef) {\n for (const [inputName, touched] of this._inputsUsed) {\n if (!touched) {\n // The input that was previously active no longer exists and needs to be set to undefined.\n componentRef.setInput(inputName, undefined);\n this._inputsUsed.delete(inputName);\n }\n else {\n // Since touched is true, it can be asserted that the inputs object is not empty.\n componentRef.setInput(inputName, this.ngComponentOutletInputs[inputName]);\n this._inputsUsed.set(inputName, false);\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgComponentOutlet, isStandalone: true, selector: \"[ngComponentOutlet]\", inputs: { ngComponentOutlet: \"ngComponentOutlet\", ngComponentOutletInputs: \"ngComponentOutletInputs\", ngComponentOutletInjector: \"ngComponentOutletInjector\", ngComponentOutletContent: \"ngComponentOutletContent\", ngComponentOutletNgModule: \"ngComponentOutletNgModule\", ngComponentOutletNgModuleFactory: \"ngComponentOutletNgModuleFactory\" }, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgComponentOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngComponentOutlet]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngComponentOutlet: [{\n type: Input\n }], ngComponentOutletInputs: [{\n type: Input\n }], ngComponentOutletInjector: [{\n type: Input\n }], ngComponentOutletContent: [{\n type: Input\n }], ngComponentOutletNgModule: [{\n type: Input\n }], ngComponentOutletNgModuleFactory: [{\n type: Input\n }] } });\n// Helper function that returns an Injector instance of a parent NgModule.\nfunction getParentInjector(injector) {\n const parentNgModule = injector.get(NgModuleRef);\n return parentNgModule.injector;\n}\n\n/**\n * @publicApi\n */\nclass NgForOfContext {\n constructor($implicit, ngForOf, index, count) {\n this.$implicit = $implicit;\n this.ngForOf = ngForOf;\n this.index = index;\n this.count = count;\n }\n get first() {\n return this.index === 0;\n }\n get last() {\n return this.index === this.count - 1;\n }\n get even() {\n return this.index % 2 === 0;\n }\n get odd() {\n return !this.even;\n }\n}\n/**\n * A [structural directive](guide/structural-directives) that renders\n * a template for each item in a collection.\n * The directive is placed on an element, which becomes the parent\n * of the cloned templates.\n *\n * The `ngForOf` directive is generally used in the\n * [shorthand form](guide/structural-directives#asterisk) `*ngFor`.\n * In this form, the template to be rendered for each iteration is the content\n * of an anchor element containing the directive.\n *\n * The following example shows the shorthand syntax with some options,\n * contained in an `<li>` element.\n *\n * ```\n * <li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>\n * ```\n *\n * The shorthand form expands into a long form that uses the `ngForOf` selector\n * on an `<ng-template>` element.\n * The content of the `<ng-template>` element is the `<li>` element that held the\n * short-form directive.\n *\n * Here is the expanded version of the short-form example.\n *\n * ```\n * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">\n * <li>...</li>\n * </ng-template>\n * ```\n *\n * Angular automatically expands the shorthand syntax as it compiles the template.\n * The context for each embedded view is logically merged to the current component\n * context according to its lexical position.\n *\n * When using the shorthand syntax, Angular allows only [one structural directive\n * on an element](guide/structural-directives#one-per-element).\n * If you want to iterate conditionally, for example,\n * put the `*ngIf` on a container element that wraps the `*ngFor` element.\n * For further discussion, see\n * [Structural Directives](guide/structural-directives#one-per-element).\n *\n * @usageNotes\n *\n * ### Local variables\n *\n * `NgForOf` provides exported values that can be aliased to local variables.\n * For example:\n *\n * ```\n * <li *ngFor=\"let user of users; index as i; first as isFirst\">\n * {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>\n * </li>\n * ```\n *\n * The following exported values can be aliased to local variables:\n *\n * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).\n * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is\n * more complex then a property access, for example when using the async pipe (`userStreams |\n * async`).\n * - `index: number`: The index of the current item in the iterable.\n * - `count: number`: The length of the iterable.\n * - `first: boolean`: True when the item is the first item in the iterable.\n * - `last: boolean`: True when the item is the last item in the iterable.\n * - `even: boolean`: True when the item has an even index in the iterable.\n * - `odd: boolean`: True when the item has an odd index in the iterable.\n *\n * ### Change propagation\n *\n * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:\n *\n * * When an item is added, a new instance of the template is added to the DOM.\n * * When an item is removed, its template instance is removed from the DOM.\n * * When items are reordered, their respective templates are reordered in the DOM.\n *\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\n * those changes in the DOM. This has important implications for animations and any stateful\n * controls that are present, such as `<input>` elements that accept user input. Inserted rows can\n * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state\n * such as user input.\n * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).\n *\n * The identities of elements in the iterator can change while the data does not.\n * This can happen, for example, if the iterator is produced from an RPC to the server, and that\n * RPC is re-run. Even if the data hasn't changed, the second response produces objects with\n * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old\n * elements were deleted and all new elements inserted).\n *\n * To avoid this expensive operation, you can customize the default tracking algorithm.\n * by supplying the `trackBy` option to `NgForOf`.\n * `trackBy` takes a function that has two arguments: `index` and `item`.\n * If `trackBy` is given, Angular tracks changes by the return value of the function.\n *\n * @see [Structural Directives](guide/structural-directives)\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgForOf {\n /**\n * The value of the iterable expression, which can be used as a\n * [template input variable](guide/structural-directives#shorthand).\n */\n set ngForOf(ngForOf) {\n this._ngForOf = ngForOf;\n this._ngForOfDirty = true;\n }\n /**\n * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.\n *\n * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object\n * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)\n * as the key.\n *\n * `NgForOf` uses the computed key to associate items in an iterable with DOM elements\n * it produces for these items.\n *\n * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an\n * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a\n * primary key), and this iterable could be updated with new object instances that still\n * represent the same underlying entity (for example, when data is re-fetched from the server,\n * and the iterable is recreated and re-rendered, but most of the data is still the same).\n *\n * @see {@link TrackByFunction}\n */\n set ngForTrackBy(fn) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {\n console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` +\n `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);\n }\n this._trackByFn = fn;\n }\n get ngForTrackBy() {\n return this._trackByFn;\n }\n constructor(_viewContainer, _template, _differs) {\n this._viewContainer = _viewContainer;\n this._template = _template;\n this._differs = _differs;\n this._ngForOf = null;\n this._ngForOfDirty = true;\n this._differ = null;\n }\n /**\n * A reference to the template that is stamped out for each item in the iterable.\n * @see [template reference variable](guide/template-reference-variables)\n */\n set ngForTemplate(value) {\n // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1\n // The current type is too restrictive; a template that just uses index, for example,\n // should be acceptable.\n if (value) {\n this._template = value;\n }\n }\n /**\n * Applies the changes when needed.\n * @nodoc\n */\n ngDoCheck() {\n if (this._ngForOfDirty) {\n this._ngForOfDirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = this._ngForOf;\n if (!this._differ && value) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n try {\n // CAUTION: this logic is duplicated for production mode below, as the try-catch\n // is only present in development builds.\n this._differ = this._differs.find(value).create(this.ngForTrackBy);\n }\n catch {\n let errorMessage = `Cannot find a differ supporting object '${value}' of type '` +\n `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;\n if (typeof value === 'object') {\n errorMessage += ' Did you mean to use the keyvalue pipe?';\n }\n throw new ɵRuntimeError(-2200 /* RuntimeErrorCode.NG_FOR_MISSING_DIFFER */, errorMessage);\n }\n }\n else {\n // CAUTION: this logic is duplicated for development mode above, as the try-catch\n // is only present in development builds.\n this._differ = this._differs.find(value).create(this.ngForTrackBy);\n }\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(this._ngForOf);\n if (changes)\n this._applyChanges(changes);\n }\n }\n _applyChanges(changes) {\n const viewContainer = this._viewContainer;\n changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);\n }\n else if (currentIndex == null) {\n viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);\n }\n else if (adjustedPreviousIndex !== null) {\n const view = viewContainer.get(adjustedPreviousIndex);\n viewContainer.move(view, currentIndex);\n applyViewChange(view, item);\n }\n });\n for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {\n const viewRef = viewContainer.get(i);\n const context = viewRef.context;\n context.index = i;\n context.count = ilen;\n context.ngForOf = this._ngForOf;\n }\n changes.forEachIdentityChange((record) => {\n const viewRef = viewContainer.get(record.currentIndex);\n applyViewChange(viewRef, record);\n });\n }\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir, ctx) {\n return true;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgForOf, isStandalone: true, selector: \"[ngFor][ngForOf]\", inputs: { ngForOf: \"ngForOf\", ngForTrackBy: \"ngForTrackBy\", ngForTemplate: \"ngForTemplate\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgForOf, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngFor][ngForOf]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }], propDecorators: { ngForOf: [{\n type: Input\n }], ngForTrackBy: [{\n type: Input\n }], ngForTemplate: [{\n type: Input\n }] } });\nfunction applyViewChange(view, record) {\n view.context.$implicit = record.item;\n}\nfunction getTypeName(type) {\n return type['name'] || typeof type;\n}\n\n/**\n * A structural directive that conditionally includes a template based on the value of\n * an expression coerced to Boolean.\n * When the expression evaluates to true, Angular renders the template\n * provided in a `then` clause, and when false or null,\n * Angular renders the template provided in an optional `else` clause. The default\n * template for the `else` clause is blank.\n *\n * A [shorthand form](guide/structural-directives#asterisk) of the directive,\n * `*ngIf=\"condition\"`, is generally used, provided\n * as an attribute of the anchor element for the inserted template.\n * Angular expands this into a more explicit version, in which the anchor element\n * is contained in an `<ng-template>` element.\n *\n * Simple form with shorthand syntax:\n *\n * ```\n * <div *ngIf=\"condition\">Content to render when condition is true.</div>\n * ```\n *\n * Simple form with expanded syntax:\n *\n * ```\n * <ng-template [ngIf]=\"condition\"><div>Content to render when condition is\n * true.</div></ng-template>\n * ```\n *\n * Form with an \"else\" block:\n *\n * ```\n * <div *ngIf=\"condition; else elseBlock\">Content to render when condition is true.</div>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Shorthand form with \"then\" and \"else\" blocks:\n *\n * ```\n * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>\n * <ng-template #thenBlock>Content to render when condition is true.</ng-template>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Form with storing the value locally:\n *\n * ```\n * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>\n * <ng-template #elseBlock>Content to render when value is null.</ng-template>\n * ```\n *\n * @usageNotes\n *\n * The `*ngIf` directive is most commonly used to conditionally show an inline template,\n * as seen in the following example.\n * The default `else` template is blank.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfSimple'}\n *\n * ### Showing an alternative template using `else`\n *\n * To display a template when `expression` evaluates to false, use an `else` template\n * binding as shown in the following example.\n * The `else` binding points to an `<ng-template>` element labeled `#elseBlock`.\n * The template can be defined anywhere in the component view, but is typically placed right after\n * `ngIf` for readability.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfElse'}\n *\n * ### Using an external `then` template\n *\n * In the previous example, the then-clause template is specified inline, as the content of the\n * tag that contains the `ngIf` directive. You can also specify a template that is defined\n * externally, by referencing a labeled `<ng-template>` element. When you do this, you can\n * change which template to use at runtime, as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}\n *\n * ### Storing a conditional result in a variable\n *\n * You might want to show a set of properties from the same object. If you are waiting\n * for asynchronous data, the object can be undefined.\n * In this case, you can use `ngIf` and store the result of the condition in a local\n * variable as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfAs'}\n *\n * This code uses only one `AsyncPipe`, so only one subscription is created.\n * The conditional statement stores the result of `userStream|async` in the local variable `user`.\n * You can then bind the local `user` repeatedly.\n *\n * The conditional displays the data only if `userStream` returns a value,\n * so you don't need to use the\n * safe-navigation-operator (`?.`)\n * to guard against null values when accessing properties.\n * You can display an alternative template while waiting for the data.\n *\n * ### Shorthand syntax\n *\n * The shorthand syntax `*ngIf` expands into two separate template specifications\n * for the \"then\" and \"else\" clauses. For example, consider the following shorthand statement,\n * that is meant to show a loading page while waiting for data to be loaded.\n *\n * ```\n * <div class=\"hero-list\" *ngIf=\"heroes else loading\">\n * ...\n * </div>\n *\n * <ng-template #loading>\n * <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * You can see that the \"else\" clause references the `<ng-template>`\n * with the `#loading` label, and the template for the \"then\" clause\n * is provided as the content of the anchor element.\n *\n * However, when Angular expands the shorthand syntax, it creates\n * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.\n * The anchor element containing the template for the \"then\" clause becomes\n * the content of this unlabeled `<ng-template>` tag.\n *\n * ```\n * <ng-template [ngIf]=\"heroes\" [ngIfElse]=\"loading\">\n * <div class=\"hero-list\">\n * ...\n * </div>\n * </ng-template>\n *\n * <ng-template #loading>\n * <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * The presence of the implicit template object has implications for the nesting of\n * structural directives. For more on this subject, see\n * [Structural Directives](guide/structural-directives#one-per-element).\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgIf {\n constructor(_viewContainer, templateRef) {\n this._viewContainer = _viewContainer;\n this._context = new NgIfContext();\n this._thenTemplateRef = null;\n this._elseTemplateRef = null;\n this._thenViewRef = null;\n this._elseViewRef = null;\n this._thenTemplateRef = templateRef;\n }\n /**\n * The Boolean expression to evaluate as the condition for showing a template.\n */\n set ngIf(condition) {\n this._context.$implicit = this._context.ngIf = condition;\n this._updateView();\n }\n /**\n * A template to show if the condition expression evaluates to true.\n */\n set ngIfThen(templateRef) {\n assertTemplate('ngIfThen', templateRef);\n this._thenTemplateRef = templateRef;\n this._thenViewRef = null; // clear previous view if any.\n this._updateView();\n }\n /**\n * A template to show if the condition expression evaluates to false.\n */\n set ngIfElse(templateRef) {\n assertTemplate('ngIfElse', templateRef);\n this._elseTemplateRef = templateRef;\n this._elseViewRef = null; // clear previous view if any.\n this._updateView();\n }\n _updateView() {\n if (this._context.$implicit) {\n if (!this._thenViewRef) {\n this._viewContainer.clear();\n this._elseViewRef = null;\n if (this._thenTemplateRef) {\n this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);\n }\n }\n }\n else {\n if (!this._elseViewRef) {\n this._viewContainer.clear();\n this._thenViewRef = null;\n if (this._elseTemplateRef) {\n this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);\n }\n }\n }\n }\n /**\n * Asserts the correct type of the context for the template that `NgIf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgIf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir, ctx) {\n return true;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgIf, isStandalone: true, selector: \"[ngIf]\", inputs: { ngIf: \"ngIf\", ngIfThen: \"ngIfThen\", ngIfElse: \"ngIfElse\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgIf, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngIf]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { ngIf: [{\n type: Input\n }], ngIfThen: [{\n type: Input\n }], ngIfElse: [{\n type: Input\n }] } });\n/**\n * @publicApi\n */\nclass NgIfContext {\n constructor() {\n this.$implicit = null;\n this.ngIf = null;\n }\n}\nfunction assertTemplate(property, templateRef) {\n const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);\n if (!isTemplateRefOrNull) {\n throw new Error(`${property} must be a TemplateRef, but received '${ɵstringify(templateRef)}'.`);\n }\n}\n\n/**\n * A constant indicating a type of comparison that NgSwitch uses to match cases. Extracted to a\n * separate file to facilitate G3 patches.\n */\nconst NG_SWITCH_USE_STRICT_EQUALS = true;\n\nclass SwitchView {\n constructor(_viewContainerRef, _templateRef) {\n this._viewContainerRef = _viewContainerRef;\n this._templateRef = _templateRef;\n this._created = false;\n }\n create() {\n this._created = true;\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n }\n destroy() {\n this._created = false;\n this._viewContainerRef.clear();\n }\n enforceState(created) {\n if (created && !this._created) {\n this.create();\n }\n else if (!created && this._created) {\n this.destroy();\n }\n }\n}\n/**\n * @ngModule CommonModule\n *\n * @description\n * The `[ngSwitch]` directive on a container specifies an expression to match against.\n * The expressions to match are provided by `ngSwitchCase` directives on views within the container.\n * - Every view that matches is rendered.\n * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.\n * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`\n * or `ngSwitchDefault` directive are preserved at the location.\n *\n * @usageNotes\n * Define a container element for the directive, and specify the switch expression\n * to match against as an attribute:\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * ```\n *\n * Within the container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * ### Usage Examples\n *\n * The following example shows how to use more than one case to display the same view:\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <!-- the same view can be shown in more than one case -->\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n * <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n * <!--default case when there are no matches -->\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * The following example shows how cases can be nested:\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n * <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n * <ng-container *ngSwitchCase=\"match_expression_3\">\n * <!-- use a ng-container to group multiple root nodes -->\n * <inner-element></inner-element>\n * <inner-other-element></inner-other-element>\n * </ng-container>\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * @publicApi\n * @see {@link NgSwitchCase}\n * @see {@link NgSwitchDefault}\n * @see [Structural Directives](guide/structural-directives)\n *\n */\nclass NgSwitch {\n constructor() {\n this._defaultViews = [];\n this._defaultUsed = false;\n this._caseCount = 0;\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n set ngSwitch(newValue) {\n this._ngSwitch = newValue;\n if (this._caseCount === 0) {\n this._updateDefaultCases(true);\n }\n }\n /** @internal */\n _addCase() {\n return this._caseCount++;\n }\n /** @internal */\n _addDefault(view) {\n this._defaultViews.push(view);\n }\n /** @internal */\n _matchCase(value) {\n const matched = NG_SWITCH_USE_STRICT_EQUALS\n ? value === this._ngSwitch\n : value == this._ngSwitch;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && matched !== (value == this._ngSwitch)) {\n console.warn(ɵformatRuntimeError(2001 /* RuntimeErrorCode.EQUALITY_NG_SWITCH_DIFFERENCE */, 'As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. ' +\n `Previously the case value \"${stringifyValue(value)}\" matched switch expression value \"${stringifyValue(this._ngSwitch)}\", but this is no longer the case with the stricter equality check. ` +\n 'Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.'));\n }\n this._lastCasesMatched ||= matched;\n this._lastCaseCheckIndex++;\n if (this._lastCaseCheckIndex === this._caseCount) {\n this._updateDefaultCases(!this._lastCasesMatched);\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n return matched;\n }\n _updateDefaultCases(useDefault) {\n if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {\n this._defaultUsed = useDefault;\n for (const defaultView of this._defaultViews) {\n defaultView.enforceState(useDefault);\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgSwitch, isStandalone: true, selector: \"[ngSwitch]\", inputs: { ngSwitch: \"ngSwitch\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSwitch, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngSwitch]',\n standalone: true,\n }]\n }], propDecorators: { ngSwitch: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n * Provides a switch case expression to match against an enclosing `ngSwitch` expression.\n * When the expressions match, the given `NgSwitchCase` template is rendered.\n * If multiple match expressions match the switch expression value, all of them are displayed.\n *\n * @usageNotes\n *\n * Within a switch container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * Each switch-case statement contains an in-line HTML template or template reference\n * that defines the subtree to be selected if the value of the match expression\n * matches the value of the switch expression.\n *\n * As of Angular v17 the NgSwitch directive uses strict equality comparison (`===`) instead of\n * loose equality (`==`) to match different cases.\n *\n * @publicApi\n * @see {@link NgSwitch}\n * @see {@link NgSwitchDefault}\n *\n */\nclass NgSwitchCase {\n constructor(viewContainer, templateRef, ngSwitch) {\n this.ngSwitch = ngSwitch;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');\n }\n ngSwitch._addCase();\n this._view = new SwitchView(viewContainer, templateRef);\n }\n /**\n * Performs case matching. For internal use only.\n * @nodoc\n */\n ngDoCheck() {\n this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgSwitchCase, isStandalone: true, selector: \"[ngSwitchCase]\", inputs: { ngSwitchCase: \"ngSwitchCase\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSwitchCase, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngSwitchCase]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }], propDecorators: { ngSwitchCase: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that is rendered when no `NgSwitchCase` expressions\n * match the `NgSwitch` expression.\n * This statement should be the final case in an `NgSwitch`.\n *\n * @publicApi\n * @see {@link NgSwitch}\n * @see {@link NgSwitchCase}\n *\n */\nclass NgSwitchDefault {\n constructor(viewContainer, templateRef, ngSwitch) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');\n }\n ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgSwitchDefault, isStandalone: true, selector: \"[ngSwitchDefault]\", ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSwitchDefault, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngSwitchDefault]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }] });\nfunction throwNgSwitchProviderNotFoundError(attrName, directiveName) {\n throw new ɵRuntimeError(2000 /* RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND */, `An element with the \"${attrName}\" attribute ` +\n `(matching the \"${directiveName}\" directive) must be located inside an element with the \"ngSwitch\" attribute ` +\n `(matching \"NgSwitch\" directive)`);\n}\nfunction stringifyValue(value) {\n return typeof value === 'string' ? `'${value}'` : String(value);\n}\n\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n * <some-element [ngPlural]=\"value\">\n * <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>\n * <ng-template ngPluralCase=\"=1\">there is one</ng-template>\n * <ng-template ngPluralCase=\"few\">there are a few</ng-template>\n * </some-element>\n * ```\n *\n * @description\n *\n * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.\n *\n * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees\n * that match the switch expression's pluralization category.\n *\n * To use this directive you must provide a container element that sets the `[ngPlural]` attribute\n * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their\n * expression:\n * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\n * matches the switch expression exactly,\n * - otherwise, the view will be treated as a \"category match\", and will only display if exact\n * value matches aren't found and the value maps to its category for the defined locale.\n *\n * See http://cldr.unicode.org/index/cldr-spec/plural-rules\n *\n * @publicApi\n */\nclass NgPlural {\n constructor(_localization) {\n this._localization = _localization;\n this._caseViews = {};\n }\n set ngPlural(value) {\n this._updateView(value);\n }\n addCase(value, switchView) {\n this._caseViews[value] = switchView;\n }\n _updateView(switchValue) {\n this._clearViews();\n const cases = Object.keys(this._caseViews);\n const key = getPluralCategory(switchValue, cases, this._localization);\n this._activateView(this._caseViews[key]);\n }\n _clearViews() {\n if (this._activeView)\n this._activeView.destroy();\n }\n _activateView(view) {\n if (view) {\n this._activeView = view;\n this._activeView.create();\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgPlural, isStandalone: true, selector: \"[ngPlural]\", inputs: { ngPlural: \"ngPlural\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgPlural, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngPlural]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: NgLocalization }], propDecorators: { ngPlural: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that will be added/removed from the parent {@link NgPlural} when the\n * given expression matches the plural expression according to CLDR rules.\n *\n * @usageNotes\n * ```\n * <some-element [ngPlural]=\"value\">\n * <ng-template ngPluralCase=\"=0\">...</ng-template>\n * <ng-template ngPluralCase=\"other\">...</ng-template>\n * </some-element>\n *```\n *\n * See {@link NgPlural} for more details and example.\n *\n * @publicApi\n */\nclass NgPluralCase {\n constructor(value, template, viewContainer, ngPlural) {\n this.value = value;\n const isANumber = !isNaN(Number(value));\n ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgPluralCase, isStandalone: true, selector: \"[ngPluralCase]\", ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgPluralCase, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngPluralCase]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Attribute,\n args: ['ngPluralCase']\n }] }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: NgPlural, decorators: [{\n type: Host\n }] }] });\n\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n *\n * Set the font of the containing element to the result of an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>\n * ```\n *\n * Set the width of the containing element to a pixel value returned by an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>\n * ```\n *\n * Set a collection of style values using an expression that returns key-value pairs.\n *\n * ```\n * <some-element [ngStyle]=\"objExp\">...</some-element>\n * ```\n *\n * @description\n *\n * An attribute directive that updates styles for the containing HTML element.\n * Sets one or more style properties, specified as colon-separated key-value pairs.\n * The key is a style name, with an optional `.<unit>` suffix\n * (such as 'top.px', 'font-style.em').\n * The value is an expression to be evaluated.\n * The resulting non-null value, expressed in the given unit,\n * is assigned to the given style property.\n * If the result of evaluation is null, the corresponding style is removed.\n *\n * @publicApi\n */\nclass NgStyle {\n constructor(_ngEl, _differs, _renderer) {\n this._ngEl = _ngEl;\n this._differs = _differs;\n this._renderer = _renderer;\n this._ngStyle = null;\n this._differ = null;\n }\n set ngStyle(values) {\n this._ngStyle = values;\n if (!this._differ && values) {\n this._differ = this._differs.find(values).create();\n }\n }\n ngDoCheck() {\n if (this._differ) {\n const changes = this._differ.diff(this._ngStyle);\n if (changes) {\n this._applyChanges(changes);\n }\n }\n }\n _setStyle(nameAndUnit, value) {\n const [name, unit] = nameAndUnit.split('.');\n const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n if (value != null) {\n this._renderer.setStyle(this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);\n }\n else {\n this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);\n }\n }\n _applyChanges(changes) {\n changes.forEachRemovedItem((record) => this._setStyle(record.key, null));\n changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));\n changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgStyle, isStandalone: true, selector: \"[ngStyle]\", inputs: { ngStyle: \"ngStyle\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgStyle, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngStyle]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }], propDecorators: { ngStyle: [{\n type: Input,\n args: ['ngStyle']\n }] } });\n\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Inserts an embedded view from a prepared `TemplateRef`.\n *\n * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.\n * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding\n * by the local template `let` declarations.\n *\n * @usageNotes\n * ```\n * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>\n * ```\n *\n * Using the key `$implicit` in the context object will set its value as default.\n *\n * ### Example\n *\n * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}\n *\n * @publicApi\n */\nclass NgTemplateOutlet {\n constructor(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n this._viewRef = null;\n /**\n * A context object to attach to the {@link EmbeddedViewRef}. This should be an\n * object, the object's keys will be available for binding by the local template `let`\n * declarations.\n * Using the key `$implicit` in the context object will set its value as default.\n */\n this.ngTemplateOutletContext = null;\n /**\n * A string defining the template reference and optionally the context object for the template.\n */\n this.ngTemplateOutlet = null;\n /** Injector to be used within the embedded view. */\n this.ngTemplateOutletInjector = null;\n }\n ngOnChanges(changes) {\n if (this._shouldRecreateView(changes)) {\n const viewContainerRef = this._viewContainerRef;\n if (this._viewRef) {\n viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));\n }\n // If there is no outlet, clear the destroyed view ref.\n if (!this.ngTemplateOutlet) {\n this._viewRef = null;\n return;\n }\n // Create a context forward `Proxy` that will always bind to the user-specified context,\n // without having to destroy and re-create views whenever the context changes.\n const viewContext = this._createContextForwardProxy();\n this._viewRef = viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, viewContext, {\n injector: this.ngTemplateOutletInjector ?? undefined,\n });\n }\n }\n /**\n * We need to re-create existing embedded view if either is true:\n * - the outlet changed.\n * - the injector changed.\n */\n _shouldRecreateView(changes) {\n return !!changes['ngTemplateOutlet'] || !!changes['ngTemplateOutletInjector'];\n }\n /**\n * For a given outlet instance, we create a proxy object that delegates\n * to the user-specified context. This allows changing, or swapping out\n * the context object completely without having to destroy/re-create the view.\n */\n _createContextForwardProxy() {\n return new Proxy({}, {\n set: (_target, prop, newValue) => {\n if (!this.ngTemplateOutletContext) {\n return false;\n }\n return Reflect.set(this.ngTemplateOutletContext, prop, newValue);\n },\n get: (_target, prop, receiver) => {\n if (!this.ngTemplateOutletContext) {\n return undefined;\n }\n return Reflect.get(this.ngTemplateOutletContext, prop, receiver);\n },\n });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgTemplateOutlet, isStandalone: true, selector: \"[ngTemplateOutlet]\", inputs: { ngTemplateOutletContext: \"ngTemplateOutletContext\", ngTemplateOutlet: \"ngTemplateOutlet\", ngTemplateOutletInjector: \"ngTemplateOutletInjector\" }, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgTemplateOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngTemplateOutlet]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngTemplateOutletContext: [{\n type: Input\n }], ngTemplateOutlet: [{\n type: Input\n }], ngTemplateOutletInjector: [{\n type: Input\n }] } });\n\n/**\n * A collection of Angular directives that are likely to be used in each and every Angular\n * application.\n */\nconst COMMON_DIRECTIVES = [\n NgClass,\n NgComponentOutlet,\n NgForOf,\n NgIf,\n NgTemplateOutlet,\n NgStyle,\n NgSwitch,\n NgSwitchCase,\n NgSwitchDefault,\n NgPlural,\n NgPluralCase,\n];\n\nfunction invalidPipeArgumentError(type, value) {\n return new ɵRuntimeError(2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${ɵstringify(type)}'`);\n}\n\nclass SubscribableStrategy {\n createSubscription(async, updateLatestValue) {\n // Subscription can be side-effectful, and we don't want any signal reads which happen in the\n // side effect of the subscription to be tracked by a component's template when that\n // subscription is triggered via the async pipe. So we wrap the subscription in `untracked` to\n // decouple from the current reactive context.\n //\n // `untracked` also prevents signal _writes_ which happen in the subscription side effect from\n // being treated as signal writes during the template evaluation (which throws errors).\n return untracked(() => async.subscribe({\n next: updateLatestValue,\n error: (e) => {\n throw e;\n },\n }));\n }\n dispose(subscription) {\n // See the comment in `createSubscription` above on the use of `untracked`.\n untracked(() => subscription.unsubscribe());\n }\n}\nclass PromiseStrategy {\n createSubscription(async, updateLatestValue) {\n return async.then(updateLatestValue, (e) => {\n throw e;\n });\n }\n dispose(subscription) { }\n}\nconst _promiseStrategy = new PromiseStrategy();\nconst _subscribableStrategy = new SubscribableStrategy();\n/**\n * @ngModule CommonModule\n * @description\n *\n * Unwraps a value from an asynchronous primitive.\n *\n * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has\n * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for\n * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid\n * potential memory leaks. When the reference of the expression changes, the `async` pipe\n * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.\n *\n * @usageNotes\n *\n * ### Examples\n *\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\n * promise.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}\n *\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\n * to the view. The Observable continuously updates the view with the current time.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}\n *\n * @publicApi\n */\nclass AsyncPipe {\n constructor(ref) {\n this._latestValue = null;\n this.markForCheckOnValueUpdate = true;\n this._subscription = null;\n this._obj = null;\n this._strategy = null;\n // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor\n // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.\n this._ref = ref;\n }\n ngOnDestroy() {\n if (this._subscription) {\n this._dispose();\n }\n // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate\n // potential memory leaks in Observables that could otherwise cause the view data to\n // be retained.\n // https://github.com/angular/angular/issues/17624\n this._ref = null;\n }\n transform(obj) {\n if (!this._obj) {\n if (obj) {\n try {\n // Only call `markForCheck` if the value is updated asynchronously.\n // Synchronous updates _during_ subscription should not wastefully mark for check -\n // this value is already going to be returned from the transform function.\n this.markForCheckOnValueUpdate = false;\n this._subscribe(obj);\n }\n finally {\n this.markForCheckOnValueUpdate = true;\n }\n }\n return this._latestValue;\n }\n if (obj !== this._obj) {\n this._dispose();\n return this.transform(obj);\n }\n return this._latestValue;\n }\n _subscribe(obj) {\n this._obj = obj;\n this._strategy = this._selectStrategy(obj);\n this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value));\n }\n _selectStrategy(obj) {\n if (ɵisPromise(obj)) {\n return _promiseStrategy;\n }\n if (ɵisSubscribable(obj)) {\n return _subscribableStrategy;\n }\n throw invalidPipeArgumentError(AsyncPipe, obj);\n }\n _dispose() {\n // Note: `dispose` is only called if a subscription has been initialized before, indicating\n // that `this._strategy` is also available.\n this._strategy.dispose(this._subscription);\n this._latestValue = null;\n this._subscription = null;\n this._obj = null;\n }\n _updateLatestValue(async, value) {\n if (async === this._obj) {\n this._latestValue = value;\n if (this.markForCheckOnValueUpdate) {\n this._ref?.markForCheck();\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: AsyncPipe, isStandalone: true, name: \"async\", pure: false }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AsyncPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'async',\n pure: false,\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });\n\n/**\n * Transforms text to all lower case.\n *\n * @see {@link UpperCasePipe}\n * @see {@link TitleCasePipe}\n * @usageNotes\n *\n * The following example defines a view that allows the user to enter\n * text, and then uses the pipe to convert the input text to all lower case.\n *\n * <code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region='LowerUpperPipe'></code-example>\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass LowerCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(LowerCasePipe, value);\n }\n return value.toLowerCase();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: \"lowercase\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LowerCasePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'lowercase',\n standalone: true,\n }]\n }] });\n//\n// Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result\n// can be achieved by using /[0-9\\p{L}]\\S*/gu and also known as Unicode Property Escapes\n// (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no\n// transpilation of this functionality down to ES5 without external tool, the only solution is\n// to use already transpiled form. Example can be found here -\n// https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1\n//\nconst unicodeWordMatch = /(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06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\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB]|\\uD837[\\uDF00-\\uDF1E]|\\uD838[\\uDD00-\\uDD2C\\uDD37-\\uDD3D\\uDD4E\\uDE90-\\uDEAD\\uDEC0-\\uDEEB]|\\uD839[\\uDFE0-\\uDFE6\\uDFE8-\\uDFEB\\uDFED\\uDFEE\\uDFF0-\\uDFFE]|\\uD83A[\\uDC00-\\uDCC4\\uDD00-\\uDD43\\uDD4B]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF38\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])\\S*/g;\n/**\n * Transforms text to title case.\n * Capitalizes the first letter of each word and transforms the\n * rest of the word to lower case.\n * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.\n *\n * @see {@link LowerCasePipe}\n * @see {@link UpperCasePipe}\n *\n * @usageNotes\n * The following example shows the result of transforming various strings into title case.\n *\n * <code-example path=\"common/pipes/ts/titlecase_pipe.ts\" region='TitleCasePipe'></code-example>\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass TitleCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(TitleCasePipe, value);\n }\n return value.replace(unicodeWordMatch, (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase());\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: \"titlecase\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TitleCasePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'titlecase',\n standalone: true,\n }]\n }] });\n/**\n * Transforms text to all upper case.\n * @see {@link LowerCasePipe}\n * @see {@link TitleCasePipe}\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass UpperCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(UpperCasePipe, value);\n }\n return value.toUpperCase();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: \"uppercase\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UpperCasePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'uppercase',\n standalone: true,\n }]\n }] });\n\n/**\n * The default date format of Angular date pipe, which corresponds to the following format:\n * `'MMM d,y'` (e.g. `Jun 15, 2015`)\n */\nconst DEFAULT_DATE_FORMAT = 'mediumDate';\n\n/**\n * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).\n * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.\n *\n * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe\n */\nconst DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_TIMEZONE' : '');\n/**\n * DI token that allows to provide default configuration for the `DatePipe` instances in an\n * application. The value is an object which can include the following fields:\n * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`\n * will use the 'mediumDate' as a value.\n * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will\n * use the end-user's local system timezone.\n *\n * @see {@link DatePipeConfig}\n *\n * @usageNotes\n *\n * Various date pipe default values can be overwritten by providing this token with\n * the value that has this interface.\n *\n * For example:\n *\n * Override the default date format by providing a value using the token:\n * ```typescript\n * providers: [\n * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}\n * ]\n * ```\n *\n * Override the default timezone by providing a value using the token:\n * ```typescript\n * providers: [\n * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}\n * ]\n * ```\n */\nconst DATE_PIPE_DEFAULT_OPTIONS = new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_OPTIONS' : '');\n// clang-format off\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date value according to locale rules.\n *\n * `DatePipe` is executed only when it detects a pure change to the input value.\n * A pure change is either a change to a primitive input value\n * (such as `String`, `Number`, `Boolean`, or `Symbol`),\n * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).\n *\n * Note that mutating a `Date` object does not cause the pipe to be rendered again.\n * To ensure that the pipe is executed, you must create a new `Date` object.\n *\n * Only the `en-US` locale data comes with Angular. To localize dates\n * in another language, you must import the corresponding locale data.\n * See the [I18n guide](guide/i18n-common-format-data-locale) for more information.\n *\n * The time zone of the formatted value can be specified either by passing it in as the second\n * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`\n * injection token. The value that is passed in as the second parameter takes precedence over\n * the one defined using the injection token.\n *\n * @see {@link formatDate}\n *\n *\n * @usageNotes\n *\n * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to\n * reformat the date on every change-detection cycle, treat the date as an immutable object\n * and change the reference when the pipe needs to run again.\n *\n * ### Pre-defined format options\n *\n * | Option | Equivalent to | Examples (given in `en-US` locale) |\n * |---------------|-------------------------------------|-------------------------------------------------|\n * | `'short'` | `'M/d/yy, h:mm a'` | `6/15/15, 9:03 AM` |\n * | `'medium'` | `'MMM d, y, h:mm:ss a'` | `Jun 15, 2015, 9:03:01 AM` |\n * | `'long'` | `'MMMM d, y, h:mm:ss a z'` | `June 15, 2015 at 9:03:01 AM GMT+1` |\n * | `'full'` | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |\n * | `'shortDate'` | `'M/d/yy'` | `6/15/15` |\n * | `'mediumDate'`| `'MMM d, y'` | `Jun 15, 2015` |\n * | `'longDate'` | `'MMMM d, y'` | `June 15, 2015` |\n * | `'fullDate'` | `'EEEE, MMMM d, y'` | `Monday, June 15, 2015` |\n * | `'shortTime'` | `'h:mm a'` | `9:03 AM` |\n * | `'mediumTime'`| `'h:mm:ss a'` | `9:03:01 AM` |\n * | `'longTime'` | `'h:mm:ss a z'` | `9:03:01 AM GMT+1` |\n * | `'fullTime'` | `'h:mm:ss a zzzz'` | `9:03:01 AM GMT+01:00` |\n *\n * ### Custom format options\n *\n * You can construct a format string using symbols to specify the components\n * of a date-time value, as described in the following table.\n * Format details depend on the locale.\n * Fields marked with (*) are only available in the extra data set for the given locale.\n *\n * | Field type | Format | Description | Example Value |\n * |-------------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|\n * | Era | G, GG & GGG | Abbreviated | AD |\n * | | GGGG | Wide | Anno Domini |\n * | | GGGGG | Narrow | A |\n * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |\n * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |\n * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |\n * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |\n * | ISO Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |\n * | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |\n * | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |\n * | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |\n * | Month | M | Numeric: 1 digit | 9, 12 |\n * | | MM | Numeric: 2 digits + zero padded | 09, 12 |\n * | | MMM | Abbreviated | Sep |\n * | | MMMM | Wide | September |\n * | | MMMMM | Narrow | S |\n * | Month standalone | L | Numeric: 1 digit | 9, 12 |\n * | | LL | Numeric: 2 digits + zero padded | 09, 12 |\n * | | LLL | Abbreviated | Sep |\n * | | LLLL | Wide | September |\n * | | LLLLL | Narrow | S |\n * | ISO Week of year | w | Numeric: minimum digits | 1... 53 |\n * | | ww | Numeric: 2 digits + zero padded | 01... 53 |\n * | Week of month | W | Numeric: 1 digit | 1... 5 |\n * | Day of month | d | Numeric: minimum digits | 1 |\n * | | dd | Numeric: 2 digits + zero padded | 01 |\n * | Week day | E, EE & EEE | Abbreviated | Tue |\n * | | EEEE | Wide | Tuesday |\n * | | EEEEE | Narrow | T |\n * | | EEEEEE | Short | Tu |\n * | Week day standalone | c, cc | Numeric: 1 digit | 2 |\n * | | ccc | Abbreviated | Tue |\n * | | cccc | Wide | Tuesday |\n * | | ccccc | Narrow | T |\n * | | cccccc | Short | Tu |\n * | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM |\n * | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem |\n * | | aaaaa | Narrow | a/p |\n * | Period* | B, BB & BBB | Abbreviated | mid. |\n * | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |\n * | | BBBBB | Narrow | md |\n * | Period standalone* | b, bb & bbb | Abbreviated | mid. |\n * | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |\n * | | bbbbb | Narrow | md |\n * | Hour 1-12 | h | Numeric: minimum digits | 1, 12 |\n * | | hh | Numeric: 2 digits + zero padded | 01, 12 |\n * | Hour 0-23 | H | Numeric: minimum digits | 0, 23 |\n * | | HH | Numeric: 2 digits + zero padded | 00, 23 |\n * | Minute | m | Numeric: minimum digits | 8, 59 |\n * | | mm | Numeric: 2 digits + zero padded | 08, 59 |\n * | Second | s | Numeric: minimum digits | 0... 59 |\n * | | ss | Numeric: 2 digits + zero padded | 00... 59 |\n * | Fractional seconds | S | Numeric: 1 digit | 0... 9 |\n * | | SS | Numeric: 2 digits + zero padded | 00... 99 |\n * | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 |\n * | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 |\n * | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 |\n * | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 |\n * | | ZZZZ | Long localized GMT format | GMT-8:00 |\n * | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 |\n * | | O, OO & OOO | Short localized GMT format | GMT-8 |\n * | | OOOO | Long localized GMT format | GMT-08:00 |\n *\n *\n * ### Format examples\n *\n * These examples transform a date into various formats,\n * assuming that `dateObj` is a JavaScript `Date` object for\n * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,\n * given in the local time for the `en-US` locale.\n *\n * ```\n * {{ dateObj | date }} // output is 'Jun 15, 2015'\n * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'\n * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'\n * {{ dateObj | date:'mm:ss' }} // output is '43:11'\n * {{ dateObj | date:\"MMM dd, yyyy 'at' hh:mm a\" }} // output is 'Jun 15, 2015 at 09:43 PM'\n * ```\n *\n * ### Usage example\n *\n * The following component uses a date pipe to display the current date in different formats.\n *\n * ```\n * @Component({\n * selector: 'date-pipe',\n * template: `<div>\n * <p>Today is {{today | date}}</p>\n * <p>Or if you prefer, {{today | date:'fullDate'}}</p>\n * <p>The time is {{today | date:'h:mm a z'}}</p>\n * </div>`\n * })\n * // Get the current date and time as a date-time value.\n * export class DatePipeComponent {\n * today: number = Date.now();\n * }\n * ```\n *\n * @publicApi\n */\n// clang-format on\nclass DatePipe {\n constructor(locale, defaultTimezone, defaultOptions) {\n this.locale = locale;\n this.defaultTimezone = defaultTimezone;\n this.defaultOptions = defaultOptions;\n }\n transform(value, format, timezone, locale) {\n if (value == null || value === '' || value !== value)\n return null;\n try {\n const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;\n const _timezone = timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;\n return formatDate(value, _format, locale || this.locale, _timezone);\n }\n catch (error) {\n throw invalidPipeArgumentError(DatePipe, error.message);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }, { token: DATE_PIPE_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePipe, isStandalone: true, name: \"date\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'date',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DATE_PIPE_DEFAULT_TIMEZONE]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DATE_PIPE_DEFAULT_OPTIONS]\n }, {\n type: Optional\n }] }] });\n\nconst _INTERPOLATION_REGEXP = /#/g;\n/**\n * @ngModule CommonModule\n * @description\n *\n * Maps a value to a string that pluralizes the value according to locale rules.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}\n *\n * @publicApi\n */\nclass I18nPluralPipe {\n constructor(_localization) {\n this._localization = _localization;\n }\n /**\n * @param value the number to be formatted\n * @param pluralMap an object that mimics the ICU format, see\n * https://unicode-org.github.io/icu/userguide/format_parse/messages/.\n * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by\n * default).\n */\n transform(value, pluralMap, locale) {\n if (value == null)\n return '';\n if (typeof pluralMap !== 'object' || pluralMap === null) {\n throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);\n }\n const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);\n return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: \"i18nPlural\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: I18nPluralPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'i18nPlural',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: NgLocalization }] });\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Generic selector that displays the string that matches the current value.\n *\n * If none of the keys of the `mapping` match the `value`, then the content\n * of the `other` key is returned when present, otherwise an empty string is returned.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}\n *\n * @publicApi\n */\nclass I18nSelectPipe {\n /**\n * @param value a string to be internationalized.\n * @param mapping an object that indicates the text that should be displayed\n * for different values of the provided `value`.\n */\n transform(value, mapping) {\n if (value == null)\n return '';\n if (typeof mapping !== 'object' || typeof value !== 'string') {\n throw invalidPipeArgumentError(I18nSelectPipe, mapping);\n }\n if (mapping.hasOwnProperty(value)) {\n return mapping[value];\n }\n if (mapping.hasOwnProperty('other')) {\n return mapping['other'];\n }\n return '';\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: \"i18nSelect\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: I18nSelectPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'i18nSelect',\n standalone: true,\n }]\n }] });\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Converts a value into its JSON-format representation. Useful for debugging.\n *\n * @usageNotes\n *\n * The following component uses a JSON pipe to convert an object\n * to JSON format, and displays the string in both formats for comparison.\n *\n * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}\n *\n * @publicApi\n */\nclass JsonPipe {\n /**\n * @param value A value of any type to convert into a JSON-format string.\n */\n transform(value) {\n return JSON.stringify(value, null, 2);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonPipe, isStandalone: true, name: \"json\", pure: false }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'json',\n pure: false,\n standalone: true,\n }]\n }] });\n\nfunction makeKeyValuePair(key, value) {\n return { key: key, value: value };\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms Object or Map into an array of key value pairs.\n *\n * The output array will be ordered by keys.\n * By default the comparator will be by Unicode point value.\n * You can optionally pass a compareFn if your keys are complex types.\n *\n * @usageNotes\n * ### Examples\n *\n * This examples show how an Object or a Map can be iterated by ngFor with the use of this\n * keyvalue pipe.\n *\n * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}\n *\n * @publicApi\n */\nclass KeyValuePipe {\n constructor(differs) {\n this.differs = differs;\n this.keyValues = [];\n this.compareFn = defaultComparator;\n }\n transform(input, compareFn = defaultComparator) {\n if (!input || (!(input instanceof Map) && typeof input !== 'object')) {\n return null;\n }\n // make a differ for whatever type we've been passed in\n this.differ ??= this.differs.find(input).create();\n const differChanges = this.differ.diff(input);\n const compareFnChanged = compareFn !== this.compareFn;\n if (differChanges) {\n this.keyValues = [];\n differChanges.forEachItem((r) => {\n this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));\n });\n }\n if (differChanges || compareFnChanged) {\n this.keyValues.sort(compareFn);\n this.compareFn = compareFn;\n }\n return this.keyValues;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: \"keyvalue\", pure: false }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: KeyValuePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'keyvalue',\n pure: false,\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: i0.KeyValueDiffers }] });\nfunction defaultComparator(keyValueA, keyValueB) {\n const a = keyValueA.key;\n const b = keyValueB.key;\n // if same exit with 0;\n if (a === b)\n return 0;\n // make sure that undefined are at the end of the sort.\n if (a === undefined)\n return 1;\n if (b === undefined)\n return -1;\n // make sure that nulls are at the end of the sort.\n if (a === null)\n return 1;\n if (b === null)\n return -1;\n if (typeof a == 'string' && typeof b == 'string') {\n return a < b ? -1 : 1;\n }\n if (typeof a == 'number' && typeof b == 'number') {\n return a - b;\n }\n if (typeof a == 'boolean' && typeof b == 'boolean') {\n return a < b ? -1 : 1;\n }\n // `a` and `b` are of different types. Compare their string values.\n const aString = String(a);\n const bString = String(b);\n return aString == bString ? 0 : aString < bString ? -1 : 1;\n}\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a value according to digit options and locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * @see {@link formatNumber}\n *\n * @usageNotes\n *\n * ### digitsInfo\n *\n * The value's decimal representation is specified by the `digitsInfo`\n * parameter, written in the following format:<br>\n *\n * ```\n * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}\n * ```\n *\n * - `minIntegerDigits`:\n * The minimum number of integer digits before the decimal point.\n * Default is 1.\n *\n * - `minFractionDigits`:\n * The minimum number of digits after the decimal point.\n * Default is 0.\n *\n * - `maxFractionDigits`:\n * The maximum number of digits after the decimal point.\n * Default is 3.\n *\n * If the formatted value is truncated it will be rounded using the \"to-nearest\" method:\n *\n * ```\n * {{3.6 | number: '1.0-0'}}\n * <!--will output '4'-->\n *\n * {{-3.6 | number:'1.0-0'}}\n * <!--will output '-4'-->\n * ```\n *\n * ### locale\n *\n * `locale` will format a value according to locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n *\n * See [Setting your app locale](guide/i18n-common-locale-id).\n *\n * ### Example\n *\n * The following code shows how the pipe transforms values\n * according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/number_pipe.ts\" region='NumberPipe'></code-example>\n *\n * @publicApi\n */\nclass DecimalPipe {\n constructor(_locale) {\n this._locale = _locale;\n }\n /**\n * @param value The value to be formatted.\n * @param digitsInfo Sets digit and decimal representation.\n * [See more](#digitsinfo).\n * @param locale Specifies what locale format rules to use.\n * [See more](#locale).\n */\n transform(value, digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale ||= this._locale;\n try {\n const num = strToNumber(value);\n return formatNumber(num, locale, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(DecimalPipe, error.message);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DecimalPipe, isStandalone: true, name: \"number\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DecimalPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'number',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }] });\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a percentage\n * string, formatted according to locale rules that determine group sizing and\n * separator, decimal-point character, and other locale-specific\n * configurations.\n *\n * @see {@link formatPercent}\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/percent_pipe.ts\" region='PercentPipe'></code-example>\n *\n * @publicApi\n */\nclass PercentPipe {\n constructor(_locale) {\n this._locale = _locale;\n }\n /**\n *\n * @param value The number to be formatted as a percentage.\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `0`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `0`.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n-common-locale-id).\n */\n transform(value, digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale ||= this._locale;\n try {\n const num = strToNumber(value);\n return formatPercent(num, locale, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(PercentPipe, error.message);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: PercentPipe, isStandalone: true, name: \"percent\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PercentPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'percent',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }] });\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a currency string, formatted according to locale rules\n * that determine group sizing and separator, decimal-point character,\n * and other locale-specific configurations.\n *\n *\n * @see {@link getCurrencySymbol}\n * @see {@link formatCurrency}\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/currency_pipe.ts\" region='CurrencyPipe'></code-example>\n *\n * @publicApi\n */\nclass CurrencyPipe {\n constructor(_locale, _defaultCurrencyCode = 'USD') {\n this._locale = _locale;\n this._defaultCurrencyCode = _defaultCurrencyCode;\n }\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n-common-locale-id).\n */\n transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale ||= this._locale;\n if (typeof display === 'boolean') {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) {\n console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".`);\n }\n display = display ? 'symbol' : 'code';\n }\n let currency = currencyCode || this._defaultCurrencyCode;\n if (display !== 'code') {\n if (display === 'symbol' || display === 'symbol-narrow') {\n currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);\n }\n else {\n currency = display;\n }\n }\n try {\n const num = strToNumber(value);\n return formatCurrency(num, locale, currency, currencyCode, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(CurrencyPipe, error.message);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: \"currency\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CurrencyPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'currency',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DEFAULT_CURRENCY_CODE]\n }] }] });\nfunction isValue(value) {\n return !(value == null || value === '' || value !== value);\n}\n/**\n * Transforms a string into a number (if needed).\n */\nfunction strToNumber(value) {\n // Convert strings to numbers\n if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {\n return Number(value);\n }\n if (typeof value !== 'number') {\n throw new Error(`${value} is not a number`);\n }\n return value;\n}\n\n/**\n * @ngModule CommonModule\n * @description\n *\n * Creates a new `Array` or `String` containing a subset (slice) of the elements.\n *\n * @usageNotes\n *\n * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`\n * and `String.prototype.slice()`.\n *\n * When operating on an `Array`, the returned `Array` is always a copy even when all\n * the elements are being returned.\n *\n * When operating on a blank value, the pipe returns the blank value.\n *\n * ### List Example\n *\n * This `ngFor` example:\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}\n *\n * produces the following:\n *\n * ```html\n * <li>b</li>\n * <li>c</li>\n * ```\n *\n * ### String Examples\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}\n *\n * @publicApi\n */\nclass SlicePipe {\n transform(value, start, end) {\n if (value == null)\n return null;\n if (!this.supports(value)) {\n throw invalidPipeArgumentError(SlicePipe, value);\n }\n return value.slice(start, end);\n }\n supports(obj) {\n return typeof obj === 'string' || Array.isArray(obj);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: SlicePipe, isStandalone: true, name: \"slice\", pure: false }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SlicePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'slice',\n pure: false,\n standalone: true,\n }]\n }] });\n\n/**\n * @module\n * @description\n * This module provides a set of common Pipes.\n */\n/**\n * A collection of Angular pipes that are likely to be used in each and every application.\n */\nconst COMMON_PIPES = [\n AsyncPipe,\n UpperCasePipe,\n LowerCasePipe,\n JsonPipe,\n SlicePipe,\n DecimalPipe,\n PercentPipe,\n TitleCasePipe,\n CurrencyPipe,\n DatePipe,\n I18nPluralPipe,\n I18nSelectPipe,\n KeyValuePipe,\n];\n\n// Note: This does not contain the location providers,\n// as they need some platform specific implementations to work.\n/**\n * Exports all the basic Angular directives and pipes,\n * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command.\n *\n * @publicApi\n */\nclass CommonModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: CommonModule, imports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CommonModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CommonModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [COMMON_DIRECTIVES, COMMON_PIPES],\n exports: [COMMON_DIRECTIVES, COMMON_PIPES],\n }]\n }] });\n\nconst PLATFORM_BROWSER_ID = 'browser';\nconst PLATFORM_SERVER_ID = 'server';\nconst PLATFORM_WORKER_APP_ID = 'browserWorkerApp';\nconst PLATFORM_WORKER_UI_ID = 'browserWorkerUi';\n/**\n * Returns whether a platform id represents a browser platform.\n * @publicApi\n */\nfunction isPlatformBrowser(platformId) {\n return platformId === PLATFORM_BROWSER_ID;\n}\n/**\n * Returns whether a platform id represents a server platform.\n * @publicApi\n */\nfunction isPlatformServer(platformId) {\n return platformId === PLATFORM_SERVER_ID;\n}\n/**\n * Returns whether a platform id represents a web worker app platform.\n * @publicApi\n * @deprecated This function serves no purpose since the removal of the Webworker platform. It will\n * always return `false`.\n */\nfunction isPlatformWorkerApp(platformId) {\n return platformId === PLATFORM_WORKER_APP_ID;\n}\n/**\n * Returns whether a platform id represents a web worker UI platform.\n * @publicApi\n * @deprecated This function serves no purpose since the removal of the Webworker platform. It will\n * always return `false`.\n */\nfunction isPlatformWorkerUi(platformId) {\n return platformId === PLATFORM_WORKER_UI_ID;\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the common package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('17.3.12');\n\n/**\n * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.\n *\n * @publicApi\n */\nclass ViewportScroller {\n // De-sugared tree-shakable injection\n // See #23917\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: ViewportScroller,\n providedIn: 'root',\n factory: () => isPlatformBrowser(inject(PLATFORM_ID))\n ? new BrowserViewportScroller(inject(DOCUMENT), window)\n : new NullViewportScroller(),\n }); }\n}\n/**\n * Manages the scroll position for a browser window.\n */\nclass BrowserViewportScroller {\n constructor(document, window) {\n this.document = document;\n this.window = window;\n this.offset = () => [0, 0];\n }\n /**\n * Configures the top offset used when scrolling to an anchor.\n * @param offset A position in screen coordinates (a tuple with x and y values)\n * or a function that returns the top offset position.\n *\n */\n setOffset(offset) {\n if (Array.isArray(offset)) {\n this.offset = () => offset;\n }\n else {\n this.offset = offset;\n }\n }\n /**\n * Retrieves the current scroll position.\n * @returns The position in screen coordinates.\n */\n getScrollPosition() {\n return [this.window.scrollX, this.window.scrollY];\n }\n /**\n * Sets the scroll position.\n * @param position The new position in screen coordinates.\n */\n scrollToPosition(position) {\n this.window.scrollTo(position[0], position[1]);\n }\n /**\n * Scrolls to an element and attempts to focus the element.\n *\n * Note that the function name here is misleading in that the target string may be an ID for a\n * non-anchor element.\n *\n * @param target The ID of an element or name of the anchor.\n *\n * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document\n * @see https://html.spec.whatwg.org/#scroll-to-fragid\n */\n scrollToAnchor(target) {\n const elSelected = findAnchorFromDocument(this.document, target);\n if (elSelected) {\n this.scrollToElement(elSelected);\n // After scrolling to the element, the spec dictates that we follow the focus steps for the\n // target. Rather than following the robust steps, simply attempt focus.\n //\n // @see https://html.spec.whatwg.org/#get-the-focusable-area\n // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus\n // @see https://html.spec.whatwg.org/#focusable-area\n elSelected.focus();\n }\n }\n /**\n * Disables automatic scroll restoration provided by the browser.\n */\n setHistoryScrollRestoration(scrollRestoration) {\n this.window.history.scrollRestoration = scrollRestoration;\n }\n /**\n * Scrolls to an element using the native offset and the specified offset set on this scroller.\n *\n * The offset can be used when we know that there is a floating header and scrolling naively to an\n * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.\n */\n scrollToElement(el) {\n const rect = el.getBoundingClientRect();\n const left = rect.left + this.window.pageXOffset;\n const top = rect.top + this.window.pageYOffset;\n const offset = this.offset();\n this.window.scrollTo(left - offset[0], top - offset[1]);\n }\n}\nfunction findAnchorFromDocument(document, target) {\n const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];\n if (documentResult) {\n return documentResult;\n }\n // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we\n // have to traverse the DOM manually and do the lookup through the shadow roots.\n if (typeof document.createTreeWalker === 'function' &&\n document.body &&\n typeof document.body.attachShadow === 'function') {\n const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);\n let currentNode = treeWalker.currentNode;\n while (currentNode) {\n const shadowRoot = currentNode.shadowRoot;\n if (shadowRoot) {\n // Note that `ShadowRoot` doesn't support `getElementsByName`\n // so we have to fall back to `querySelector`.\n const result = shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name=\"${target}\"]`);\n if (result) {\n return result;\n }\n }\n currentNode = treeWalker.nextNode();\n }\n }\n return null;\n}\n/**\n * Provides an empty implementation of the viewport scroller.\n */\nclass NullViewportScroller {\n /**\n * Empty implementation\n */\n setOffset(offset) { }\n /**\n * Empty implementation\n */\n getScrollPosition() {\n return [0, 0];\n }\n /**\n * Empty implementation\n */\n scrollToPosition(position) { }\n /**\n * Empty implementation\n */\n scrollToAnchor(anchor) { }\n /**\n * Empty implementation\n */\n setHistoryScrollRestoration(scrollRestoration) { }\n}\n\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nclass XhrFactory {\n}\n\n/**\n * Value (out of 100) of the requested quality for placeholder images.\n */\nconst PLACEHOLDER_QUALITY = '20';\n\n// Converts a string that represents a URL into a URL class instance.\nfunction getUrl(src, win) {\n // Don't use a base URL is the URL is absolute.\n return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href);\n}\n// Checks whether a URL is absolute (i.e. starts with `http://` or `https://`).\nfunction isAbsoluteUrl(src) {\n return /^https?:\\/\\//.test(src);\n}\n// Given a URL, extract the hostname part.\n// If a URL is a relative one - the URL is returned as is.\nfunction extractHostname(url) {\n return isAbsoluteUrl(url) ? new URL(url).hostname : url;\n}\nfunction isValidPath(path) {\n const isString = typeof path === 'string';\n if (!isString || path.trim() === '') {\n return false;\n }\n // Calling new URL() will throw if the path string is malformed\n try {\n const url = new URL(path);\n return true;\n }\n catch {\n return false;\n }\n}\nfunction normalizePath(path) {\n return path.endsWith('/') ? path.slice(0, -1) : path;\n}\nfunction normalizeSrc(src) {\n return src.startsWith('/') ? src.slice(1) : src;\n}\n\n/**\n * Noop image loader that does no transformation to the original src and just returns it as is.\n * This loader is used as a default one if more specific logic is not provided in an app config.\n *\n * @see {@link ImageLoader}\n * @see {@link NgOptimizedImage}\n */\nconst noopImageLoader = (config) => config.src;\n/**\n * Injection token that configures the image loader function.\n *\n * @see {@link ImageLoader}\n * @see {@link NgOptimizedImage}\n * @publicApi\n */\nconst IMAGE_LOADER = new InjectionToken(ngDevMode ? 'ImageLoader' : '', {\n providedIn: 'root',\n factory: () => noopImageLoader,\n});\n/**\n * Internal helper function that makes it easier to introduce custom image loaders for the\n * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI\n * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI\n * tokens managing preconnect check functionality.\n * @param buildUrlFn a function returning a full URL based on loader's configuration\n * @param exampleUrls example of full URLs for a given loader (used in error messages)\n * @returns a set of DI providers corresponding to the configured image loader\n */\nfunction createImageLoader(buildUrlFn, exampleUrls) {\n return function provideImageLoader(path) {\n if (!isValidPath(path)) {\n throwInvalidPathError(path, exampleUrls || []);\n }\n // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in\n // the individual loader functions.\n path = normalizePath(path);\n const loaderFn = (config) => {\n if (isAbsoluteUrl(config.src)) {\n // Image loader functions expect an image file name (e.g. `my-image.png`)\n // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,\n // so the final absolute URL can be constructed.\n // When an absolute URL is provided instead - the loader can not\n // build a final URL, thus the error is thrown to indicate that.\n throwUnexpectedAbsoluteUrlError(path, config.src);\n }\n return buildUrlFn(path, { ...config, src: normalizeSrc(config.src) });\n };\n const providers = [{ provide: IMAGE_LOADER, useValue: loaderFn }];\n return providers;\n };\n}\nfunction throwInvalidPathError(path, exampleUrls) {\n throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&\n `Image loader has detected an invalid path (\\`${path}\\`). ` +\n `To fix this, supply a path using one of the following formats: ${exampleUrls.join(' or ')}`);\n}\nfunction throwUnexpectedAbsoluteUrlError(path, url) {\n throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&\n `Image loader has detected a \\`<img>\\` tag with an invalid \\`ngSrc\\` attribute: ${url}. ` +\n `This image loader expects \\`ngSrc\\` to be a relative URL - ` +\n `however the provided value is an absolute URL. ` +\n `To fix this, provide \\`ngSrc\\` as a path relative to the base URL ` +\n `configured for this loader (\\`${path}\\`).`);\n}\n\n/**\n * Function that generates an ImageLoader for [Cloudflare Image\n * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular\n * provider. Note: Cloudflare has multiple image products - this provider is specifically for\n * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.\n *\n * @param path Your domain name, e.g. https://mysite.com\n * @returns Provider that provides an ImageLoader function\n *\n * @publicApi\n */\nconst provideCloudflareLoader = createImageLoader(createCloudflareUrl, ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);\nfunction createCloudflareUrl(path, config) {\n let params = `format=auto`;\n if (config.width) {\n params += `,width=${config.width}`;\n }\n // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n if (config.isPlaceholder) {\n params += `,quality=${PLACEHOLDER_QUALITY}`;\n }\n // Cloudflare image URLs format:\n // https://developers.cloudflare.com/images/image-resizing/url-format/\n return `${path}/cdn-cgi/image/${params}/${config.src}`;\n}\n\n/**\n * Name and URL tester for Cloudinary.\n */\nconst cloudinaryLoaderInfo = {\n name: 'Cloudinary',\n testUrl: isCloudinaryUrl,\n};\nconst CLOUDINARY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.cloudinary\\.com\\/.+/;\n/**\n * Tests whether a URL is from Cloudinary CDN.\n */\nfunction isCloudinaryUrl(url) {\n return CLOUDINARY_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.\n *\n * @param path Base URL of your Cloudinary images\n * This URL should match one of the following formats:\n * https://res.cloudinary.com/mysite\n * https://mysite.cloudinary.com\n * https://subdomain.mysite.com\n * @returns Set of providers to configure the Cloudinary loader.\n *\n * @publicApi\n */\nconst provideCloudinaryLoader = createImageLoader(createCloudinaryUrl, ngDevMode\n ? [\n 'https://res.cloudinary.com/mysite',\n 'https://mysite.cloudinary.com',\n 'https://subdomain.mysite.com',\n ]\n : undefined);\nfunction createCloudinaryUrl(path, config) {\n // Cloudinary image URLformat:\n // https://cloudinary.com/documentation/image_transformations#transformation_url_structure\n // Example of a Cloudinary image URL:\n // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png\n // For a placeholder image, we use the lowest image setting available to reduce the load time\n // else we use the auto size\n const quality = config.isPlaceholder ? 'q_auto:low' : 'q_auto';\n let params = `f_auto,${quality}`;\n if (config.width) {\n params += `,w_${config.width}`;\n }\n return `${path}/image/upload/${params}/${config.src}`;\n}\n\n/**\n * Name and URL tester for ImageKit.\n */\nconst imageKitLoaderInfo = {\n name: 'ImageKit',\n testUrl: isImageKitUrl,\n};\nconst IMAGE_KIT_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imagekit\\.io\\/.+/;\n/**\n * Tests whether a URL is from ImageKit CDN.\n */\nfunction isImageKitUrl(url) {\n return IMAGE_KIT_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.\n *\n * @param path Base URL of your ImageKit images\n * This URL should match one of the following formats:\n * https://ik.imagekit.io/myaccount\n * https://subdomain.mysite.com\n * @returns Set of providers to configure the ImageKit loader.\n *\n * @publicApi\n */\nconst provideImageKitLoader = createImageLoader(createImagekitUrl, ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);\nfunction createImagekitUrl(path, config) {\n // Example of an ImageKit image URL:\n // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg\n const { src, width } = config;\n const params = [];\n if (width) {\n params.push(`w-${width}`);\n }\n // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n if (config.isPlaceholder) {\n params.push(`q-${PLACEHOLDER_QUALITY}`);\n }\n const urlSegments = params.length ? [path, `tr:${params.join(',')}`, src] : [path, src];\n const url = new URL(urlSegments.join('/'));\n return url.href;\n}\n\n/**\n * Name and URL tester for Imgix.\n */\nconst imgixLoaderInfo = {\n name: 'Imgix',\n testUrl: isImgixUrl,\n};\nconst IMGIX_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imgix\\.net\\/.+/;\n/**\n * Tests whether a URL is from Imgix CDN.\n */\nfunction isImgixUrl(url) {\n return IMGIX_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.\n *\n * @param path path to the desired Imgix origin,\n * e.g. https://somepath.imgix.net or https://images.mysite.com\n * @returns Set of providers to configure the Imgix loader.\n *\n * @publicApi\n */\nconst provideImgixLoader = createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);\nfunction createImgixUrl(path, config) {\n const url = new URL(`${path}/${config.src}`);\n // This setting ensures the smallest allowable format is set.\n url.searchParams.set('auto', 'format');\n if (config.width) {\n url.searchParams.set('w', config.width.toString());\n }\n // When requesting a placeholder image we ask a low quality image to reduce the load time.\n if (config.isPlaceholder) {\n url.searchParams.set('q', PLACEHOLDER_QUALITY);\n }\n return url.href;\n}\n\n/**\n * Name and URL tester for Netlify.\n */\nconst netlifyLoaderInfo = {\n name: 'Netlify',\n testUrl: isNetlifyUrl,\n};\nconst NETLIFY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.netlify\\.app\\/.+/;\n/**\n * Tests whether a URL is from a Netlify site. This won't catch sites with a custom domain,\n * but it's a good start for sites in development. This is only used to warn users who haven't\n * configured an image loader.\n */\nfunction isNetlifyUrl(url) {\n return NETLIFY_LOADER_REGEX.test(url);\n}\n/**\n * Function that generates an ImageLoader for Netlify and turns it into an Angular provider.\n *\n * @param path optional URL of the desired Netlify site. Defaults to the current site.\n * @returns Set of providers to configure the Netlify loader.\n *\n * @publicApi\n */\nfunction provideNetlifyLoader(path) {\n if (path && !isValidPath(path)) {\n throw new ɵRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&\n `Image loader has detected an invalid path (\\`${path}\\`). ` +\n `To fix this, supply either the full URL to the Netlify site, or leave it empty to use the current site.`);\n }\n if (path) {\n const url = new URL(path);\n path = url.origin;\n }\n const loaderFn = (config) => {\n return createNetlifyUrl(config, path);\n };\n const providers = [{ provide: IMAGE_LOADER, useValue: loaderFn }];\n return providers;\n}\nconst validParams = new Map([\n ['height', 'h'],\n ['fit', 'fit'],\n ['quality', 'q'],\n ['q', 'q'],\n ['position', 'position'],\n]);\nfunction createNetlifyUrl(config, path) {\n // Note: `path` can be undefined, in which case we use a fake one to construct a `URL` instance.\n const url = new URL(path ?? 'https://a/');\n url.pathname = '/.netlify/images';\n if (!isAbsoluteUrl(config.src) && !config.src.startsWith('/')) {\n config.src = '/' + config.src;\n }\n url.searchParams.set('url', config.src);\n if (config.width) {\n url.searchParams.set('w', config.width.toString());\n }\n // When requesting a placeholder image we ask for a low quality image to reduce the load time.\n // If the quality is specified in the loader config - always use provided value.\n const configQuality = config.loaderParams?.['quality'] ?? config.loaderParams?.['q'];\n if (config.isPlaceholder && !configQuality) {\n url.searchParams.set('q', PLACEHOLDER_QUALITY);\n }\n for (const [param, value] of Object.entries(config.loaderParams ?? {})) {\n if (validParams.has(param)) {\n url.searchParams.set(validParams.get(param), value.toString());\n }\n else {\n if (ngDevMode) {\n console.warn(ɵformatRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, `The Netlify image loader has detected an \\`<img>\\` tag with the unsupported attribute \"\\`${param}\\`\".`));\n }\n }\n }\n // The \"a\" hostname is used for relative URLs, so we can remove it from the final URL.\n return url.hostname === 'a' ? url.href.replace(url.origin, '') : url.href;\n}\n\n// Assembles directive details string, useful for error messages.\nfunction imgDirectiveDetails(ngSrc, includeNgSrc = true) {\n const ngSrcInfo = includeNgSrc\n ? `(activated on an <img> element with the \\`ngSrc=\"${ngSrc}\"\\`) `\n : '';\n return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`;\n}\n\n/**\n * Asserts that the application is in development mode. Throws an error if the application is in\n * production mode. This assert can be used to make sure that there is no dev-mode code invoked in\n * the prod mode accidentally.\n */\nfunction assertDevMode(checkName) {\n if (!ngDevMode) {\n throw new ɵRuntimeError(2958 /* RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE */, `Unexpected invocation of the ${checkName} in the prod mode. ` +\n `Please make sure that the prod mode is enabled for production builds.`);\n }\n}\n\n/**\n * Observer that detects whether an image with `NgOptimizedImage`\n * is treated as a Largest Contentful Paint (LCP) element. If so,\n * asserts that the image has the `priority` attribute.\n *\n * Note: this is a dev-mode only class and it does not appear in prod bundles,\n * thus there is no `ngDevMode` use in the code.\n *\n * Based on https://web.dev/lcp/#measure-lcp-in-javascript.\n */\nclass LCPImageObserver {\n constructor() {\n // Map of full image URLs -> original `ngSrc` values.\n this.images = new Map();\n this.window = null;\n this.observer = null;\n assertDevMode('LCP checker');\n const win = inject(DOCUMENT).defaultView;\n if (typeof win !== 'undefined' && typeof PerformanceObserver !== 'undefined') {\n this.window = win;\n this.observer = this.initPerformanceObserver();\n }\n }\n /**\n * Inits PerformanceObserver and subscribes to LCP events.\n * Based on https://web.dev/lcp/#measure-lcp-in-javascript\n */\n initPerformanceObserver() {\n const observer = new PerformanceObserver((entryList) => {\n const entries = entryList.getEntries();\n if (entries.length === 0)\n return;\n // We use the latest entry produced by the `PerformanceObserver` as the best\n // signal on which element is actually an LCP one. As an example, the first image to load on\n // a page, by virtue of being the only thing on the page so far, is often a LCP candidate\n // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.\n const lcpElement = entries[entries.length - 1];\n // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.\n // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint\n const imgSrc = lcpElement.element?.src ?? '';\n // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.\n if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:'))\n return;\n const img = this.images.get(imgSrc);\n if (!img)\n return;\n if (!img.priority && !img.alreadyWarnedPriority) {\n img.alreadyWarnedPriority = true;\n logMissingPriorityError(imgSrc);\n }\n if (img.modified && !img.alreadyWarnedModified) {\n img.alreadyWarnedModified = true;\n logModifiedWarning(imgSrc);\n }\n });\n observer.observe({ type: 'largest-contentful-paint', buffered: true });\n return observer;\n }\n registerImage(rewrittenSrc, originalNgSrc, isPriority) {\n if (!this.observer)\n return;\n const newObservedImageState = {\n priority: isPriority,\n modified: false,\n alreadyWarnedModified: false,\n alreadyWarnedPriority: false,\n };\n this.images.set(getUrl(rewrittenSrc, this.window).href, newObservedImageState);\n }\n unregisterImage(rewrittenSrc) {\n if (!this.observer)\n return;\n this.images.delete(getUrl(rewrittenSrc, this.window).href);\n }\n updateImage(originalSrc, newSrc) {\n const originalUrl = getUrl(originalSrc, this.window).href;\n const img = this.images.get(originalUrl);\n if (img) {\n img.modified = true;\n this.images.set(getUrl(newSrc, this.window).href, img);\n this.images.delete(originalUrl);\n }\n }\n ngOnDestroy() {\n if (!this.observer)\n return;\n this.observer.disconnect();\n this.images.clear();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LCPImageObserver, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LCPImageObserver, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\nfunction logMissingPriorityError(ngSrc) {\n const directiveDetails = imgDirectiveDetails(ngSrc);\n console.error(ɵformatRuntimeError(2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +\n `element but was not marked \"priority\". This image should be marked ` +\n `\"priority\" in order to prioritize its loading. ` +\n `To fix this, add the \"priority\" attribute.`));\n}\nfunction logModifiedWarning(ngSrc) {\n const directiveDetails = imgDirectiveDetails(ngSrc);\n console.warn(ɵformatRuntimeError(2964 /* RuntimeErrorCode.LCP_IMG_NGSRC_MODIFIED */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +\n `element and has had its \"ngSrc\" attribute modified. This can cause ` +\n `slower loading performance. It is recommended not to modify the \"ngSrc\" ` +\n `property on any image which could be the LCP element.`));\n}\n\n// Set of origins that are always excluded from the preconnect checks.\nconst INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);\n/**\n * Injection token to configure which origins should be excluded\n * from the preconnect checks. It can either be a single string or an array of strings\n * to represent a group of origins, for example:\n *\n * ```typescript\n * {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}\n * ```\n *\n * or:\n *\n * ```typescript\n * {provide: PRECONNECT_CHECK_BLOCKLIST,\n * useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}\n * ```\n *\n * @publicApi\n */\nconst PRECONNECT_CHECK_BLOCKLIST = new InjectionToken(ngDevMode ? 'PRECONNECT_CHECK_BLOCKLIST' : '');\n/**\n * Contains the logic to detect whether an image, marked with the \"priority\" attribute\n * has a corresponding `<link rel=\"preconnect\">` tag in the `document.head`.\n *\n * Note: this is a dev-mode only class, which should not appear in prod bundles,\n * thus there is no `ngDevMode` use in the code.\n */\nclass PreconnectLinkChecker {\n constructor() {\n this.document = inject(DOCUMENT);\n /**\n * Set of <link rel=\"preconnect\"> tags found on this page.\n * The `null` value indicates that there was no DOM query operation performed.\n */\n this.preconnectLinks = null;\n /*\n * Keep track of all already seen origin URLs to avoid repeating the same check.\n */\n this.alreadySeen = new Set();\n this.window = null;\n this.blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);\n assertDevMode('preconnect link checker');\n const win = this.document.defaultView;\n if (typeof win !== 'undefined') {\n this.window = win;\n }\n const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, { optional: true });\n if (blocklist) {\n this.populateBlocklist(blocklist);\n }\n }\n populateBlocklist(origins) {\n if (Array.isArray(origins)) {\n deepForEach(origins, (origin) => {\n this.blocklist.add(extractHostname(origin));\n });\n }\n else {\n this.blocklist.add(extractHostname(origins));\n }\n }\n /**\n * Checks that a preconnect resource hint exists in the head for the\n * given src.\n *\n * @param rewrittenSrc src formatted with loader\n * @param originalNgSrc ngSrc value\n */\n assertPreconnect(rewrittenSrc, originalNgSrc) {\n if (!this.window)\n return;\n const imgUrl = getUrl(rewrittenSrc, this.window);\n if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin))\n return;\n // Register this origin as seen, so we don't check it again later.\n this.alreadySeen.add(imgUrl.origin);\n // Note: we query for preconnect links only *once* and cache the results\n // for the entire lifespan of an application, since it's unlikely that the\n // list would change frequently. This allows to make sure there are no\n // performance implications of making extra DOM lookups for each image.\n this.preconnectLinks ??= this.queryPreconnectLinks();\n if (!this.preconnectLinks.has(imgUrl.origin)) {\n console.warn(ɵformatRuntimeError(2956 /* RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG */, `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` +\n `image. Preconnecting to the origin(s) that serve priority images ensures that these ` +\n `images are delivered as soon as possible. To fix this, please add the following ` +\n `element into the <head> of the document:\\n` +\n ` <link rel=\"preconnect\" href=\"${imgUrl.origin}\">`));\n }\n }\n queryPreconnectLinks() {\n const preconnectUrls = new Set();\n const selector = 'link[rel=preconnect]';\n const links = Array.from(this.document.querySelectorAll(selector));\n for (let link of links) {\n const url = getUrl(link.href, this.window);\n preconnectUrls.add(url.origin);\n }\n return preconnectUrls;\n }\n ngOnDestroy() {\n this.preconnectLinks?.clear();\n this.alreadySeen.clear();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreconnectLinkChecker, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\n/**\n * Invokes a callback for each element in the array. Also invokes a callback\n * recursively for each nested array.\n */\nfunction deepForEach(input, fn) {\n for (let value of input) {\n Array.isArray(value) ? deepForEach(value, fn) : fn(value);\n }\n}\n\n/**\n * In SSR scenarios, a preload `<link>` element is generated for priority images.\n * Having a large number of preload tags may negatively affect the performance,\n * so we warn developers (by throwing an error) if the number of preloaded images\n * is above a certain threshold. This const specifies this threshold.\n */\nconst DEFAULT_PRELOADED_IMAGES_LIMIT = 5;\n/**\n * Helps to keep track of priority images that already have a corresponding\n * preload tag (to avoid generating multiple preload tags with the same URL).\n *\n * This Set tracks the original src passed into the `ngSrc` input not the src after it has been\n * run through the specified `IMAGE_LOADER`.\n */\nconst PRELOADED_IMAGES = new InjectionToken('NG_OPTIMIZED_PRELOADED_IMAGES', {\n providedIn: 'root',\n factory: () => new Set(),\n});\n\n/**\n * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It\n * will also track what images have already had preload link tags added so as to not duplicate link\n * tags.\n *\n * In dev mode this service will validate that the number of preloaded images does not exceed the\n * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.\n */\nclass PreloadLinkCreator {\n constructor() {\n this.preloadedImages = inject(PRELOADED_IMAGES);\n this.document = inject(DOCUMENT);\n }\n /**\n * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the\n * server while using Angular Universal and SSR to kick off image loads for high priority images.\n *\n * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)\n * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`\n * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from\n * the CDN.\n *\n * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}\n *\n * @param renderer The `Renderer2` passed in from the directive\n * @param src The original src of the image that is set on the `ngSrc` input.\n * @param srcset The parsed and formatted srcset created from the `ngSrcset` input\n * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag\n */\n createPreloadLinkTag(renderer, src, srcset, sizes) {\n if (ngDevMode) {\n if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {\n throw new ɵRuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, ngDevMode &&\n `The \\`NgOptimizedImage\\` directive has detected that more than ` +\n `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +\n `This might negatively affect an overall performance of the page. ` +\n `To fix this, remove the \"priority\" attribute from images with less priority.`);\n }\n }\n if (this.preloadedImages.has(src)) {\n return;\n }\n this.preloadedImages.add(src);\n const preload = renderer.createElement('link');\n renderer.setAttribute(preload, 'as', 'image');\n renderer.setAttribute(preload, 'href', src);\n renderer.setAttribute(preload, 'rel', 'preload');\n renderer.setAttribute(preload, 'fetchpriority', 'high');\n if (sizes) {\n renderer.setAttribute(preload, 'imageSizes', sizes);\n }\n if (srcset) {\n renderer.setAttribute(preload, 'imageSrcset', srcset);\n }\n renderer.appendChild(this.document.head, preload);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreloadLinkCreator, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,\n * an error is thrown. The image content (as a string) might be very long, thus making\n * it hard to read an error message if the entire string is included. This const defines\n * the number of characters that should be included into the error message. The rest\n * of the content is truncated.\n */\nconst BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;\n/**\n * RegExpr to determine whether a src in a srcset is using width descriptors.\n * Should match something like: \"100w, 200w\".\n */\nconst VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\\s*\\d+w\\s*(,|$)){1,})$/;\n/**\n * RegExpr to determine whether a src in a srcset is using density descriptors.\n * Should match something like: \"1x, 2x, 50x\". Also supports decimals like \"1.5x, 1.50x\".\n */\nconst VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\\s*\\d+(\\.\\d+)?x\\s*(,|$)){1,})$/;\n/**\n * Srcset values with a density descriptor higher than this value will actively\n * throw an error. Such densities are not permitted as they cause image sizes\n * to be unreasonably large and slow down LCP.\n */\nconst ABSOLUTE_SRCSET_DENSITY_CAP = 3;\n/**\n * Used only in error message text to communicate best practices, as we will\n * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.\n */\nconst RECOMMENDED_SRCSET_DENSITY_CAP = 2;\n/**\n * Used in generating automatic density-based srcsets\n */\nconst DENSITY_SRCSET_MULTIPLIERS = [1, 2];\n/**\n * Used to determine which breakpoints to use on full-width images\n */\nconst VIEWPORT_BREAKPOINT_CUTOFF = 640;\n/**\n * Used to determine whether two aspect ratios are similar in value.\n */\nconst ASPECT_RATIO_TOLERANCE = 0.1;\n/**\n * Used to determine whether the image has been requested at an overly\n * large size compared to the actual rendered image size (after taking\n * into account a typical device pixel ratio). In pixels.\n */\nconst OVERSIZED_IMAGE_TOLERANCE = 1000;\n/**\n * Used to limit automatic srcset generation of very large sources for\n * fixed-size images. In pixels.\n */\nconst FIXED_SRCSET_WIDTH_LIMIT = 1920;\nconst FIXED_SRCSET_HEIGHT_LIMIT = 1080;\n/**\n * Default blur radius of the CSS filter used on placeholder images, in pixels\n */\nconst PLACEHOLDER_BLUR_AMOUNT = 15;\n/**\n * Used to warn or error when the user provides an overly large dataURL for the placeholder\n * attribute.\n * Character count of Base64 images is 1 character per byte, and base64 encoding is approximately\n * 33% larger than base images, so 4000 characters is around 3KB on disk and 10000 characters is\n * around 7.7KB. Experimentally, 4000 characters is about 20x20px in PNG or medium-quality JPEG\n * format, and 10,000 is around 50x50px, but there's quite a bit of variation depending on how the\n * image is saved.\n */\nconst DATA_URL_WARN_LIMIT = 4000;\nconst DATA_URL_ERROR_LIMIT = 10000;\n/** Info about built-in loaders we can test for. */\nconst BUILT_IN_LOADERS = [\n imgixLoaderInfo,\n imageKitLoaderInfo,\n cloudinaryLoaderInfo,\n netlifyLoaderInfo,\n];\n/**\n * Directive that improves image loading performance by enforcing best practices.\n *\n * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is\n * prioritized by:\n * - Automatically setting the `fetchpriority` attribute on the `<img>` tag\n * - Lazy loading non-priority images by default\n * - Automatically generating a preconnect link tag in the document head\n *\n * In addition, the directive:\n * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided\n * - Automatically generates a srcset\n * - Requires that `width` and `height` are set\n * - Warns if `width` or `height` have been set incorrectly\n * - Warns if the image will be visually distorted when rendered\n *\n * @usageNotes\n * The `NgOptimizedImage` directive is marked as [standalone](guide/standalone-components) and can\n * be imported directly.\n *\n * Follow the steps below to enable and use the directive:\n * 1. Import it into the necessary NgModule or a standalone Component.\n * 2. Optionally provide an `ImageLoader` if you use an image hosting service.\n * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.\n * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image\n * download.\n *\n * Step 1: import the `NgOptimizedImage` directive.\n *\n * ```typescript\n * import { NgOptimizedImage } from '@angular/common';\n *\n * // Include it into the necessary NgModule\n * @NgModule({\n * imports: [NgOptimizedImage],\n * })\n * class AppModule {}\n *\n * // ... or a standalone Component\n * @Component({\n * standalone: true\n * imports: [NgOptimizedImage],\n * })\n * class MyStandaloneComponent {}\n * ```\n *\n * Step 2: configure a loader.\n *\n * To use the **default loader**: no additional code changes are necessary. The URL returned by the\n * generic loader will always match the value of \"src\". In other words, this loader applies no\n * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.\n *\n * To use an existing loader for a **third-party image service**: add the provider factory for your\n * chosen service to the `providers` array. In the example below, the Imgix loader is used:\n *\n * ```typescript\n * import {provideImgixLoader} from '@angular/common';\n *\n * // Call the function and add the result to the `providers` array:\n * providers: [\n * provideImgixLoader(\"https://my.base.url/\"),\n * ],\n * ```\n *\n * The `NgOptimizedImage` directive provides the following functions:\n * - `provideCloudflareLoader`\n * - `provideCloudinaryLoader`\n * - `provideImageKitLoader`\n * - `provideImgixLoader`\n *\n * If you use a different image provider, you can create a custom loader function as described\n * below.\n *\n * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI\n * token.\n *\n * ```typescript\n * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';\n *\n * // Configure the loader using the `IMAGE_LOADER` token.\n * providers: [\n * {\n * provide: IMAGE_LOADER,\n * useValue: (config: ImageLoaderConfig) => {\n * return `https://example.com/${config.src}-${config.width}.jpg}`;\n * }\n * },\n * ],\n * ```\n *\n * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.\n *\n * ```\n * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">\n * ```\n *\n * @publicApi\n */\nclass NgOptimizedImage {\n constructor() {\n this.imageLoader = inject(IMAGE_LOADER);\n this.config = processConfig(inject(ɵIMAGE_CONFIG));\n this.renderer = inject(Renderer2);\n this.imgElement = inject(ElementRef).nativeElement;\n this.injector = inject(Injector);\n this.isServer = isPlatformServer(inject(PLATFORM_ID));\n this.preloadLinkCreator = inject(PreloadLinkCreator);\n // a LCP image observer - should be injected only in the dev mode\n this.lcpObserver = ngDevMode ? this.injector.get(LCPImageObserver) : null;\n /**\n * Calculate the rewritten `src` once and store it.\n * This is needed to avoid repetitive calculations and make sure the directive cleanup in the\n * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other\n * instance that might be already destroyed).\n */\n this._renderedSrc = null;\n /**\n * Indicates whether this image should have a high priority.\n */\n this.priority = false;\n /**\n * Disables automatic srcset generation for this image.\n */\n this.disableOptimizedSrcset = false;\n /**\n * Sets the image to \"fill mode\", which eliminates the height/width requirement and adds\n * styles such that the image fills its containing element.\n */\n this.fill = false;\n }\n /** @nodoc */\n ngOnInit() {\n ɵperformanceMarkFeature('NgOptimizedImage');\n if (ngDevMode) {\n const ngZone = this.injector.get(NgZone);\n assertNonEmptyInput(this, 'ngSrc', this.ngSrc);\n assertValidNgSrcset(this, this.ngSrcset);\n assertNoConflictingSrc(this);\n if (this.ngSrcset) {\n assertNoConflictingSrcset(this);\n }\n assertNotBase64Image(this);\n assertNotBlobUrl(this);\n if (this.fill) {\n assertEmptyWidthAndHeight(this);\n // This leaves the Angular zone to avoid triggering unnecessary change detection cycles when\n // `load` tasks are invoked on images.\n ngZone.runOutsideAngular(() => assertNonZeroRenderedHeight(this, this.imgElement, this.renderer));\n }\n else {\n assertNonEmptyWidthAndHeight(this);\n if (this.height !== undefined) {\n assertGreaterThanZero(this, this.height, 'height');\n }\n if (this.width !== undefined) {\n assertGreaterThanZero(this, this.width, 'width');\n }\n // Only check for distorted images when not in fill mode, where\n // images may be intentionally stretched, cropped or letterboxed.\n ngZone.runOutsideAngular(() => assertNoImageDistortion(this, this.imgElement, this.renderer));\n }\n assertValidLoadingInput(this);\n if (!this.ngSrcset) {\n assertNoComplexSizes(this);\n }\n assertValidPlaceholder(this, this.imageLoader);\n assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);\n assertNoNgSrcsetWithoutLoader(this, this.imageLoader);\n assertNoLoaderParamsWithoutLoader(this, this.imageLoader);\n if (this.lcpObserver !== null) {\n const ngZone = this.injector.get(NgZone);\n ngZone.runOutsideAngular(() => {\n this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);\n });\n }\n if (this.priority) {\n const checker = this.injector.get(PreconnectLinkChecker);\n checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);\n }\n }\n if (this.placeholder) {\n this.removePlaceholderOnLoad(this.imgElement);\n }\n this.setHostAttributes();\n }\n setHostAttributes() {\n // Must set width/height explicitly in case they are bound (in which case they will\n // only be reflected and not found by the browser)\n if (this.fill) {\n this.sizes ||= '100vw';\n }\n else {\n this.setHostAttribute('width', this.width.toString());\n this.setHostAttribute('height', this.height.toString());\n }\n this.setHostAttribute('loading', this.getLoadingBehavior());\n this.setHostAttribute('fetchpriority', this.getFetchPriority());\n // The `data-ng-img` attribute flags an image as using the directive, to allow\n // for analysis of the directive's performance.\n this.setHostAttribute('ng-img', 'true');\n // The `src` and `srcset` attributes should be set last since other attributes\n // could affect the image's loading behavior.\n const rewrittenSrcset = this.updateSrcAndSrcset();\n if (this.sizes) {\n this.setHostAttribute('sizes', this.sizes);\n }\n if (this.isServer && this.priority) {\n this.preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);\n }\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (ngDevMode) {\n assertNoPostInitInputChange(this, changes, [\n 'ngSrcset',\n 'width',\n 'height',\n 'priority',\n 'fill',\n 'loading',\n 'sizes',\n 'loaderParams',\n 'disableOptimizedSrcset',\n ]);\n }\n if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {\n const oldSrc = this._renderedSrc;\n this.updateSrcAndSrcset(true);\n const newSrc = this._renderedSrc;\n if (this.lcpObserver !== null && oldSrc && newSrc && oldSrc !== newSrc) {\n const ngZone = this.injector.get(NgZone);\n ngZone.runOutsideAngular(() => {\n this.lcpObserver?.updateImage(oldSrc, newSrc);\n });\n }\n }\n }\n callImageLoader(configWithoutCustomParams) {\n let augmentedConfig = configWithoutCustomParams;\n if (this.loaderParams) {\n augmentedConfig.loaderParams = this.loaderParams;\n }\n return this.imageLoader(augmentedConfig);\n }\n getLoadingBehavior() {\n if (!this.priority && this.loading !== undefined) {\n return this.loading;\n }\n return this.priority ? 'eager' : 'lazy';\n }\n getFetchPriority() {\n return this.priority ? 'high' : 'auto';\n }\n getRewrittenSrc() {\n // ImageLoaderConfig supports setting a width property. However, we're not setting width here\n // because if the developer uses rendered width instead of intrinsic width in the HTML width\n // attribute, the image requested may be too small for 2x+ screens.\n if (!this._renderedSrc) {\n const imgConfig = { src: this.ngSrc };\n // Cache calculated image src to reuse it later in the code.\n this._renderedSrc = this.callImageLoader(imgConfig);\n }\n return this._renderedSrc;\n }\n getRewrittenSrcset() {\n const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);\n const finalSrcs = this.ngSrcset\n .split(',')\n .filter((src) => src !== '')\n .map((srcStr) => {\n srcStr = srcStr.trim();\n const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width;\n return `${this.callImageLoader({ src: this.ngSrc, width })} ${srcStr}`;\n });\n return finalSrcs.join(', ');\n }\n getAutomaticSrcset() {\n if (this.sizes) {\n return this.getResponsiveSrcset();\n }\n else {\n return this.getFixedSrcset();\n }\n }\n getResponsiveSrcset() {\n const { breakpoints } = this.config;\n let filteredBreakpoints = breakpoints;\n if (this.sizes?.trim() === '100vw') {\n // Since this is a full-screen-width image, our srcset only needs to include\n // breakpoints with full viewport widths.\n filteredBreakpoints = breakpoints.filter((bp) => bp >= VIEWPORT_BREAKPOINT_CUTOFF);\n }\n const finalSrcs = filteredBreakpoints.map((bp) => `${this.callImageLoader({ src: this.ngSrc, width: bp })} ${bp}w`);\n return finalSrcs.join(', ');\n }\n updateSrcAndSrcset(forceSrcRecalc = false) {\n if (forceSrcRecalc) {\n // Reset cached value, so that the followup `getRewrittenSrc()` call\n // will recalculate it and update the cache.\n this._renderedSrc = null;\n }\n const rewrittenSrc = this.getRewrittenSrc();\n this.setHostAttribute('src', rewrittenSrc);\n let rewrittenSrcset = undefined;\n if (this.ngSrcset) {\n rewrittenSrcset = this.getRewrittenSrcset();\n }\n else if (this.shouldGenerateAutomaticSrcset()) {\n rewrittenSrcset = this.getAutomaticSrcset();\n }\n if (rewrittenSrcset) {\n this.setHostAttribute('srcset', rewrittenSrcset);\n }\n return rewrittenSrcset;\n }\n getFixedSrcset() {\n const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map((multiplier) => `${this.callImageLoader({\n src: this.ngSrc,\n width: this.width * multiplier,\n })} ${multiplier}x`);\n return finalSrcs.join(', ');\n }\n shouldGenerateAutomaticSrcset() {\n let oversizedImage = false;\n if (!this.sizes) {\n oversizedImage =\n this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT;\n }\n return (!this.disableOptimizedSrcset &&\n !this.srcset &&\n this.imageLoader !== noopImageLoader &&\n !oversizedImage);\n }\n /**\n * Returns an image url formatted for use with the CSS background-image property. Expects one of:\n * * A base64 encoded image, which is wrapped and passed through.\n * * A boolean. If true, calls the image loader to generate a small placeholder url.\n */\n generatePlaceholder(placeholderInput) {\n const { placeholderResolution } = this.config;\n if (placeholderInput === true) {\n return `url(${this.callImageLoader({\n src: this.ngSrc,\n width: placeholderResolution,\n isPlaceholder: true,\n })})`;\n }\n else if (typeof placeholderInput === 'string' && placeholderInput.startsWith('data:')) {\n return `url(${placeholderInput})`;\n }\n return null;\n }\n /**\n * Determines if blur should be applied, based on an optional boolean\n * property `blur` within the optional configuration object `placeholderConfig`.\n */\n shouldBlurPlaceholder(placeholderConfig) {\n if (!placeholderConfig || !placeholderConfig.hasOwnProperty('blur')) {\n return true;\n }\n return Boolean(placeholderConfig.blur);\n }\n removePlaceholderOnLoad(img) {\n const callback = () => {\n const changeDetectorRef = this.injector.get(ChangeDetectorRef);\n removeLoadListenerFn();\n removeErrorListenerFn();\n this.placeholder = false;\n changeDetectorRef.markForCheck();\n };\n const removeLoadListenerFn = this.renderer.listen(img, 'load', callback);\n const removeErrorListenerFn = this.renderer.listen(img, 'error', callback);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (ngDevMode) {\n if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {\n this.lcpObserver.unregisterImage(this._renderedSrc);\n }\n }\n }\n setHostAttribute(name, value) {\n this.renderer.setAttribute(this.imgElement, name, value);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"17.3.12\", type: NgOptimizedImage, isStandalone: true, selector: \"img[ngSrc]\", inputs: { ngSrc: [\"ngSrc\", \"ngSrc\", unwrapSafeUrl], ngSrcset: \"ngSrcset\", sizes: \"sizes\", width: [\"width\", \"width\", numberAttribute], height: [\"height\", \"height\", numberAttribute], loading: \"loading\", priority: [\"priority\", \"priority\", booleanAttribute], loaderParams: \"loaderParams\", disableOptimizedSrcset: [\"disableOptimizedSrcset\", \"disableOptimizedSrcset\", booleanAttribute], fill: [\"fill\", \"fill\", booleanAttribute], placeholder: [\"placeholder\", \"placeholder\", booleanOrDataUrlAttribute], placeholderConfig: \"placeholderConfig\", src: \"src\", srcset: \"srcset\" }, host: { properties: { \"style.position\": \"fill ? \\\"absolute\\\" : null\", \"style.width\": \"fill ? \\\"100%\\\" : null\", \"style.height\": \"fill ? \\\"100%\\\" : null\", \"style.inset\": \"fill ? \\\"0\\\" : null\", \"style.background-size\": \"placeholder ? \\\"cover\\\" : null\", \"style.background-position\": \"placeholder ? \\\"50% 50%\\\" : null\", \"style.background-repeat\": \"placeholder ? \\\"no-repeat\\\" : null\", \"style.background-image\": \"placeholder ? generatePlaceholder(placeholder) : null\", \"style.filter\": \"placeholder && shouldBlurPlaceholder(placeholderConfig) ? \\\"blur(15px)\\\" : null\" } }, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgOptimizedImage, decorators: [{\n type: Directive,\n args: [{\n standalone: true,\n selector: 'img[ngSrc]',\n host: {\n '[style.position]': 'fill ? \"absolute\" : null',\n '[style.width]': 'fill ? \"100%\" : null',\n '[style.height]': 'fill ? \"100%\" : null',\n '[style.inset]': 'fill ? \"0\" : null',\n '[style.background-size]': 'placeholder ? \"cover\" : null',\n '[style.background-position]': 'placeholder ? \"50% 50%\" : null',\n '[style.background-repeat]': 'placeholder ? \"no-repeat\" : null',\n '[style.background-image]': 'placeholder ? generatePlaceholder(placeholder) : null',\n '[style.filter]': `placeholder && shouldBlurPlaceholder(placeholderConfig) ? \"blur(${PLACEHOLDER_BLUR_AMOUNT}px)\" : null`,\n },\n }]\n }], propDecorators: { ngSrc: [{\n type: Input,\n args: [{ required: true, transform: unwrapSafeUrl }]\n }], ngSrcset: [{\n type: Input\n }], sizes: [{\n type: Input\n }], width: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], height: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], loading: [{\n type: Input\n }], priority: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], loaderParams: [{\n type: Input\n }], disableOptimizedSrcset: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], fill: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], placeholder: [{\n type: Input,\n args: [{ transform: booleanOrDataUrlAttribute }]\n }], placeholderConfig: [{\n type: Input\n }], src: [{\n type: Input\n }], srcset: [{\n type: Input\n }] } });\n/***** Helpers *****/\n/**\n * Sorts provided config breakpoints and uses defaults.\n */\nfunction processConfig(config) {\n let sortedBreakpoints = {};\n if (config.breakpoints) {\n sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);\n }\n return Object.assign({}, ɵIMAGE_CONFIG_DEFAULTS, config, sortedBreakpoints);\n}\n/***** Assert functions *****/\n/**\n * Verifies that there is no `src` set on a host element.\n */\nfunction assertNoConflictingSrc(dir) {\n if (dir.src) {\n throw new ɵRuntimeError(2950 /* RuntimeErrorCode.UNEXPECTED_SRC_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \\`src\\` and \\`ngSrc\\` have been set. ` +\n `Supplying both of these attributes breaks lazy loading. ` +\n `The NgOptimizedImage directive sets \\`src\\` itself based on the value of \\`ngSrc\\`. ` +\n `To fix this, please remove the \\`src\\` attribute.`);\n }\n}\n/**\n * Verifies that there is no `srcset` set on a host element.\n */\nfunction assertNoConflictingSrcset(dir) {\n if (dir.srcset) {\n throw new ɵRuntimeError(2951 /* RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \\`srcset\\` and \\`ngSrcset\\` have been set. ` +\n `Supplying both of these attributes breaks lazy loading. ` +\n `The NgOptimizedImage directive sets \\`srcset\\` itself based on the value of ` +\n `\\`ngSrcset\\`. To fix this, please remove the \\`srcset\\` attribute.`);\n }\n}\n/**\n * Verifies that the `ngSrc` is not a Base64-encoded image.\n */\nfunction assertNotBase64Image(dir) {\n let ngSrc = dir.ngSrc.trim();\n if (ngSrc.startsWith('data:')) {\n if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {\n ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';\n }\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`ngSrc\\` is a Base64-encoded string ` +\n `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` +\n `To fix this, disable the NgOptimizedImage directive for this element ` +\n `by removing \\`ngSrc\\` and using a standard \\`src\\` attribute instead.`);\n }\n}\n/**\n * Verifies that the 'sizes' only includes responsive values.\n */\nfunction assertNoComplexSizes(dir) {\n let sizes = dir.sizes;\n if (sizes?.match(/((\\)|,)\\s|^)\\d+px/)) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`sizes\\` was set to a string including ` +\n `pixel values. For automatic \\`srcset\\` generation, \\`sizes\\` must only include responsive ` +\n `values, such as \\`sizes=\"50vw\"\\` or \\`sizes=\"(min-width: 768px) 50vw, 100vw\"\\`. ` +\n `To fix this, modify the \\`sizes\\` attribute, or provide your own \\`ngSrcset\\` value directly.`);\n }\n}\nfunction assertValidPlaceholder(dir, imageLoader) {\n assertNoPlaceholderConfigWithoutPlaceholder(dir);\n assertNoRelativePlaceholderWithoutLoader(dir, imageLoader);\n assertNoOversizedDataUrl(dir);\n}\n/**\n * Verifies that placeholderConfig isn't being used without placeholder\n */\nfunction assertNoPlaceholderConfigWithoutPlaceholder(dir) {\n if (dir.placeholderConfig && !dir.placeholder) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \\`placeholderConfig\\` options were provided for an ` +\n `image that does not use the \\`placeholder\\` attribute, and will have no effect.`);\n }\n}\n/**\n * Warns if a relative URL placeholder is specified, but no loader is present to provide the small\n * image.\n */\nfunction assertNoRelativePlaceholderWithoutLoader(dir, imageLoader) {\n if (dir.placeholder === true && imageLoader === noopImageLoader) {\n throw new ɵRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to true but ` +\n `no image loader is configured (i.e. the default one is being used), ` +\n `which would result in the same image being used for the primary image and its placeholder. ` +\n `To fix this, provide a loader or remove the \\`placeholder\\` attribute from the image.`);\n }\n}\n/**\n * Warns or throws an error if an oversized dataURL placeholder is provided.\n */\nfunction assertNoOversizedDataUrl(dir) {\n if (dir.placeholder &&\n typeof dir.placeholder === 'string' &&\n dir.placeholder.startsWith('data:')) {\n if (dir.placeholder.length > DATA_URL_ERROR_LIMIT) {\n throw new ɵRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to a data URL which is longer ` +\n `than ${DATA_URL_ERROR_LIMIT} characters. This is strongly discouraged, as large inline placeholders ` +\n `directly increase the bundle size of Angular and hurt page load performance. To fix this, generate ` +\n `a smaller data URL placeholder.`);\n }\n if (dir.placeholder.length > DATA_URL_WARN_LIMIT) {\n console.warn(ɵformatRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`placeholder\\` attribute is set to a data URL which is longer ` +\n `than ${DATA_URL_WARN_LIMIT} characters. This is discouraged, as large inline placeholders ` +\n `directly increase the bundle size of Angular and hurt page load performance. For better loading performance, ` +\n `generate a smaller data URL placeholder.`));\n }\n }\n}\n/**\n * Verifies that the `ngSrc` is not a Blob URL.\n */\nfunction assertNotBlobUrl(dir) {\n const ngSrc = dir.ngSrc.trim();\n if (ngSrc.startsWith('blob:')) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrc\\` was set to a blob URL (${ngSrc}). ` +\n `Blob URLs are not supported by the NgOptimizedImage directive. ` +\n `To fix this, disable the NgOptimizedImage directive for this element ` +\n `by removing \\`ngSrc\\` and using a regular \\`src\\` attribute instead.`);\n }\n}\n/**\n * Verifies that the input is set to a non-empty string.\n */\nfunction assertNonEmptyInput(dir, name, value) {\n const isString = typeof value === 'string';\n const isEmptyString = isString && value.trim() === '';\n if (!isString || isEmptyString) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`${name}\\` has an invalid value ` +\n `(\\`${value}\\`). To fix this, change the value to a non-empty string.`);\n }\n}\n/**\n * Verifies that the `ngSrcset` is in a valid format, e.g. \"100w, 200w\" or \"1x, 2x\".\n */\nfunction assertValidNgSrcset(dir, value) {\n if (value == null)\n return;\n assertNonEmptyInput(dir, 'ngSrcset', value);\n const stringVal = value;\n const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);\n const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);\n if (isValidDensityDescriptor) {\n assertUnderDensityCap(dir, stringVal);\n }\n const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;\n if (!isValidSrcset) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrcset\\` has an invalid value (\\`${value}\\`). ` +\n `To fix this, supply \\`ngSrcset\\` using a comma-separated list of one or more width ` +\n `descriptors (e.g. \"100w, 200w\") or density descriptors (e.g. \"1x, 2x\").`);\n }\n}\nfunction assertUnderDensityCap(dir, value) {\n const underDensityCap = value\n .split(',')\n .every((num) => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);\n if (!underDensityCap) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` contains an unsupported image density:` +\n `\\`${value}\\`. NgOptimizedImage generally recommends a max image density of ` +\n `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` +\n `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` +\n `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` +\n `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` +\n `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);\n }\n}\n/**\n * Creates a `RuntimeError` instance to represent a situation when an input is set after\n * the directive has initialized.\n */\nfunction postInitInputChangeError(dir, inputName) {\n let reason;\n if (inputName === 'width' || inputName === 'height') {\n reason =\n `Changing \\`${inputName}\\` may result in different attribute value ` +\n `applied to the underlying image element and cause layout shifts on a page.`;\n }\n else {\n reason =\n `Changing the \\`${inputName}\\` would have no effect on the underlying ` +\n `image element, because the resource loading has already occurred.`;\n }\n return new ɵRuntimeError(2953 /* RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE */, `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` was updated after initialization. ` +\n `The NgOptimizedImage directive will not react to this input change. ${reason} ` +\n `To fix this, either switch \\`${inputName}\\` to a static value ` +\n `or wrap the image element in an *ngIf that is gated on the necessary value.`);\n}\n/**\n * Verify that none of the listed inputs has changed.\n */\nfunction assertNoPostInitInputChange(dir, changes, inputs) {\n inputs.forEach((input) => {\n const isUpdated = changes.hasOwnProperty(input);\n if (isUpdated && !changes[input].isFirstChange()) {\n if (input === 'ngSrc') {\n // When the `ngSrc` input changes, we detect that only in the\n // `ngOnChanges` hook, thus the `ngSrc` is already set. We use\n // `ngSrc` in the error message, so we use a previous value, but\n // not the updated one in it.\n dir = { ngSrc: changes[input].previousValue };\n }\n throw postInitInputChangeError(dir, input);\n }\n });\n}\n/**\n * Verifies that a specified input is a number greater than 0.\n */\nfunction assertGreaterThanZero(dir, inputValue, inputName) {\n const validNumber = typeof inputValue === 'number' && inputValue > 0;\n const validString = typeof inputValue === 'string' && /^\\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;\n if (!validNumber && !validString) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` has an invalid value. ` +\n `To fix this, provide \\`${inputName}\\` as a number greater than 0.`);\n }\n}\n/**\n * Verifies that the rendered image is not visually distorted. Effectively this is checking:\n * - Whether the \"width\" and \"height\" attributes reflect the actual dimensions of the image.\n * - Whether image styling is \"correct\" (see below for a longer explanation).\n */\nfunction assertNoImageDistortion(dir, img, renderer) {\n const removeLoadListenerFn = renderer.listen(img, 'load', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n const computedStyle = window.getComputedStyle(img);\n let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n const boxSizing = computedStyle.getPropertyValue('box-sizing');\n if (boxSizing === 'border-box') {\n const paddingTop = computedStyle.getPropertyValue('padding-top');\n const paddingRight = computedStyle.getPropertyValue('padding-right');\n const paddingBottom = computedStyle.getPropertyValue('padding-bottom');\n const paddingLeft = computedStyle.getPropertyValue('padding-left');\n renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);\n renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);\n }\n const renderedAspectRatio = renderedWidth / renderedHeight;\n const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;\n const intrinsicWidth = img.naturalWidth;\n const intrinsicHeight = img.naturalHeight;\n const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;\n const suppliedWidth = dir.width;\n const suppliedHeight = dir.height;\n const suppliedAspectRatio = suppliedWidth / suppliedHeight;\n // Tolerance is used to account for the impact of subpixel rendering.\n // Due to subpixel rendering, the rendered, intrinsic, and supplied\n // aspect ratios of a correctly configured image may not exactly match.\n // For example, a `width=4030 height=3020` image might have a rendered\n // size of \"1062w, 796.48h\". (An aspect ratio of 1.334... vs. 1.333...)\n const inaccurateDimensions = Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;\n const stylingDistortion = nonZeroRenderedDimensions &&\n Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;\n if (inaccurateDimensions) {\n console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` +\n `the aspect ratio indicated by the width and height attributes. ` +\n `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +\n `(aspect-ratio: ${round(intrinsicAspectRatio)}). \\nSupplied width and height attributes: ` +\n `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${round(suppliedAspectRatio)}). ` +\n `\\nTo fix this, update the width and height attributes.`));\n }\n else if (stylingDistortion) {\n console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` +\n `does not match the image's intrinsic aspect ratio. ` +\n `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +\n `(aspect-ratio: ${round(intrinsicAspectRatio)}). \\nRendered image size: ` +\n `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` +\n `${round(renderedAspectRatio)}). \\nThis issue can occur if \"width\" and \"height\" ` +\n `attributes are added to an image without updating the corresponding ` +\n `image styling. To fix this, adjust image styling. In most cases, ` +\n `adding \"height: auto\" or \"width: auto\" to the image styling will fix ` +\n `this issue.`));\n }\n else if (!dir.ngSrcset && nonZeroRenderedDimensions) {\n // If `ngSrcset` hasn't been set, sanity check the intrinsic size.\n const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;\n const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;\n const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;\n const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;\n if (oversizedWidth || oversizedHeight) {\n console.warn(ɵformatRuntimeError(2960 /* RuntimeErrorCode.OVERSIZED_IMAGE */, `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` +\n `larger than necessary. ` +\n `\\nRendered image size: ${renderedWidth}w x ${renderedHeight}h. ` +\n `\\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` +\n `\\nRecommended intrinsic image size: ${recommendedWidth}w x ${recommendedHeight}h. ` +\n `\\nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of ` +\n `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` +\n `or consider using the \"ngSrcset\" and \"sizes\" attributes.`));\n }\n }\n });\n // We only listen to the `error` event to remove the `load` event listener because it will not be\n // fired if the image fails to load. This is done to prevent memory leaks in development mode\n // because image elements aren't garbage-collected properly. It happens because zone.js stores the\n // event listener directly on the element and closures capture `dir`.\n const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n });\n}\n/**\n * Verifies that a specified input is set.\n */\nfunction assertNonEmptyWidthAndHeight(dir) {\n let missingAttributes = [];\n if (dir.width === undefined)\n missingAttributes.push('width');\n if (dir.height === undefined)\n missingAttributes.push('height');\n if (missingAttributes.length > 0) {\n throw new ɵRuntimeError(2954 /* RuntimeErrorCode.REQUIRED_INPUT_MISSING */, `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` +\n `are missing: ${missingAttributes.map((attr) => `\"${attr}\"`).join(', ')}. ` +\n `Including \"width\" and \"height\" attributes will prevent image-related layout shifts. ` +\n `To fix this, include \"width\" and \"height\" attributes on the image tag or turn on ` +\n `\"fill\" mode with the \\`fill\\` attribute.`);\n }\n}\n/**\n * Verifies that width and height are not set. Used in fill mode, where those attributes don't make\n * sense.\n */\nfunction assertEmptyWidthAndHeight(dir) {\n if (dir.width || dir.height) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the attributes \\`height\\` and/or \\`width\\` are present ` +\n `along with the \\`fill\\` attribute. Because \\`fill\\` mode causes an image to fill its containing ` +\n `element, the size attributes have no effect and should be removed.`);\n }\n}\n/**\n * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides\n * guidance that this can be caused by the containing element's CSS position property.\n */\nfunction assertNonZeroRenderedHeight(dir, img, renderer) {\n const removeLoadListenerFn = renderer.listen(img, 'load', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n const renderedHeight = img.clientHeight;\n if (dir.fill && renderedHeight === 0) {\n console.warn(ɵformatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` +\n `This is likely because the containing element does not have the CSS 'position' ` +\n `property set to one of the following: \"relative\", \"fixed\", or \"absolute\". ` +\n `To fix this problem, make sure the container element has the CSS 'position' ` +\n `property defined and the height of the element is not zero.`));\n }\n });\n // See comments in the `assertNoImageDistortion`.\n const removeErrorListenerFn = renderer.listen(img, 'error', () => {\n removeLoadListenerFn();\n removeErrorListenerFn();\n });\n}\n/**\n * Verifies that the `loading` attribute is set to a valid input &\n * is not used on priority images.\n */\nfunction assertValidLoadingInput(dir) {\n if (dir.loading && dir.priority) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +\n `was used on an image that was marked \"priority\". ` +\n `Setting \\`loading\\` on priority images is not allowed ` +\n `because these images will always be eagerly loaded. ` +\n `To fix this, remove the “loading†attribute from the priority image.`);\n }\n const validInputs = ['auto', 'eager', 'lazy'];\n if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {\n throw new ɵRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +\n `has an invalid value (\\`${dir.loading}\\`). ` +\n `To fix this, provide a valid value (\"lazy\", \"eager\", or \"auto\").`);\n }\n}\n/**\n * Warns if NOT using a loader (falling back to the generic loader) and\n * the image appears to be hosted on one of the image CDNs for which\n * we do have a built-in image loader. Suggests switching to the\n * built-in loader.\n *\n * @param ngSrc Value of the ngSrc attribute\n * @param imageLoader ImageLoader provided\n */\nfunction assertNotMissingBuiltInLoader(ngSrc, imageLoader) {\n if (imageLoader === noopImageLoader) {\n let builtInLoaderName = '';\n for (const loader of BUILT_IN_LOADERS) {\n if (loader.testUrl(ngSrc)) {\n builtInLoaderName = loader.name;\n break;\n }\n }\n if (builtInLoaderName) {\n console.warn(ɵformatRuntimeError(2962 /* RuntimeErrorCode.MISSING_BUILTIN_LOADER */, `NgOptimizedImage: It looks like your images may be hosted on the ` +\n `${builtInLoaderName} CDN, but your app is not using Angular's ` +\n `built-in loader for that CDN. We recommend switching to use ` +\n `the built-in by calling \\`provide${builtInLoaderName}Loader()\\` ` +\n `in your \\`providers\\` and passing it your instance's base URL. ` +\n `If you don't want to use the built-in loader, define a custom ` +\n `loader function using IMAGE_LOADER to silence this warning.`));\n }\n }\n}\n/**\n * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).\n */\nfunction assertNoNgSrcsetWithoutLoader(dir, imageLoader) {\n if (dir.ngSrcset && imageLoader === noopImageLoader) {\n console.warn(ɵformatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` attribute is present but ` +\n `no image loader is configured (i.e. the default one is being used), ` +\n `which would result in the same image being used for all configured sizes. ` +\n `To fix this, provide a loader or remove the \\`ngSrcset\\` attribute from the image.`));\n }\n}\n/**\n * Warns if loaderParams is present and no loader is configured (i.e. the default one is being\n * used).\n */\nfunction assertNoLoaderParamsWithoutLoader(dir, imageLoader) {\n if (dir.loaderParams && imageLoader === noopImageLoader) {\n console.warn(ɵformatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \\`loaderParams\\` attribute is present but ` +\n `no image loader is configured (i.e. the default one is being used), ` +\n `which means that the loaderParams data will not be consumed and will not affect the URL. ` +\n `To fix this, provide a custom loader or remove the \\`loaderParams\\` attribute from the image.`));\n }\n}\nfunction round(input) {\n return Number.isInteger(input) ? input : input.toFixed(2);\n}\n// Transform function to handle SafeValue input for ngSrc. This doesn't do any sanitization,\n// as that is not needed for img.src and img.srcset. This transform is purely for compatibility.\nfunction unwrapSafeUrl(value) {\n if (typeof value === 'string') {\n return value;\n }\n return ɵunwrapSafeValue(value);\n}\n// Transform function to handle inputs which may be booleans, strings, or string representations\n// of boolean values. Used for the placeholder attribute.\nfunction booleanOrDataUrlAttribute(value) {\n if (typeof value === 'string' && value.startsWith(`data:`)) {\n return value;\n }\n return booleanAttribute(value);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the common package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { APP_BASE_HREF, AsyncPipe, BrowserPlatformLocation, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, IMAGE_LOADER, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgOptimizedImage, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, XhrFactory, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, PlatformNavigation as ɵPlatformNavigation, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Injectable, inject, NgZone, runInInjectionContext, InjectionToken, ɵPendingTasks, PLATFORM_ID, ɵConsole, ɵformatRuntimeError, Inject, ɵRuntimeError, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵperformanceMarkFeature, APP_BOOTSTRAP_LISTENER, ApplicationRef, ɵwhenStable, ɵtruncateMiddle } from '@angular/core';\nimport { of, Observable, from } from 'rxjs';\nimport { concatMap, filter, map, finalize, switchMap, tap } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { isPlatformServer, DOCUMENT, ɵparseCookieValue } from '@angular/common';\n\n/**\n * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a\n * `HttpResponse`.\n *\n * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the\n * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the\n * `HttpBackend`.\n *\n * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.\n *\n * @publicApi\n */\nclass HttpHandler {\n}\n/**\n * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.\n *\n * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.\n *\n * When injected, `HttpBackend` dispatches requests directly to the backend, without going\n * through the interceptor chain.\n *\n * @publicApi\n */\nclass HttpBackend {\n}\n\n/**\n * Represents the header configuration options for an HTTP request.\n * Instances are immutable. Modifying methods return a cloned\n * instance with the change. The original object is never changed.\n *\n * @publicApi\n */\nclass HttpHeaders {\n /** Constructs a new HTTP header object with the given values.*/\n constructor(headers) {\n /**\n * Internal map of lowercased header names to the normalized\n * form of the name (the form seen first).\n */\n this.normalizedNames = new Map();\n /**\n * Queued updates to be materialized the next initialization.\n */\n this.lazyUpdate = null;\n if (!headers) {\n this.headers = new Map();\n }\n else if (typeof headers === 'string') {\n this.lazyInit = () => {\n this.headers = new Map();\n headers.split('\\n').forEach((line) => {\n const index = line.indexOf(':');\n if (index > 0) {\n const name = line.slice(0, index);\n const key = name.toLowerCase();\n const value = line.slice(index + 1).trim();\n this.maybeSetNormalizedName(name, key);\n if (this.headers.has(key)) {\n this.headers.get(key).push(value);\n }\n else {\n this.headers.set(key, [value]);\n }\n }\n });\n };\n }\n else if (typeof Headers !== 'undefined' && headers instanceof Headers) {\n this.headers = new Map();\n headers.forEach((values, name) => {\n this.setHeaderEntries(name, values);\n });\n }\n else {\n this.lazyInit = () => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n assertValidHeaders(headers);\n }\n this.headers = new Map();\n Object.entries(headers).forEach(([name, values]) => {\n this.setHeaderEntries(name, values);\n });\n };\n }\n }\n /**\n * Checks for existence of a given header.\n *\n * @param name The header name to check for existence.\n *\n * @returns True if the header exists, false otherwise.\n */\n has(name) {\n this.init();\n return this.headers.has(name.toLowerCase());\n }\n /**\n * Retrieves the first value of a given header.\n *\n * @param name The header name.\n *\n * @returns The value string if the header exists, null otherwise\n */\n get(name) {\n this.init();\n const values = this.headers.get(name.toLowerCase());\n return values && values.length > 0 ? values[0] : null;\n }\n /**\n * Retrieves the names of the headers.\n *\n * @returns A list of header names.\n */\n keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }\n /**\n * Retrieves a list of values for a given header.\n *\n * @param name The header name from which to retrieve values.\n *\n * @returns A string of values if the header exists, null otherwise.\n */\n getAll(name) {\n this.init();\n return this.headers.get(name.toLowerCase()) || null;\n }\n /**\n * Appends a new value to the existing set of values for a header\n * and returns them in a clone of the original instance.\n *\n * @param name The header name for which to append the values.\n * @param value The value to append.\n *\n * @returns A clone of the HTTP headers object with the value appended to the given header.\n */\n append(name, value) {\n return this.clone({ name, value, op: 'a' });\n }\n /**\n * Sets or modifies a value for a given header in a clone of the original instance.\n * If the header already exists, its value is replaced with the given value\n * in the returned object.\n *\n * @param name The header name.\n * @param value The value or values to set or override for the given header.\n *\n * @returns A clone of the HTTP headers object with the newly set header value.\n */\n set(name, value) {\n return this.clone({ name, value, op: 's' });\n }\n /**\n * Deletes values for a given header in a clone of the original instance.\n *\n * @param name The header name.\n * @param value The value or values to delete for the given header.\n *\n * @returns A clone of the HTTP headers object with the given value deleted.\n */\n delete(name, value) {\n return this.clone({ name, value, op: 'd' });\n }\n maybeSetNormalizedName(name, lcName) {\n if (!this.normalizedNames.has(lcName)) {\n this.normalizedNames.set(lcName, name);\n }\n }\n init() {\n if (!!this.lazyInit) {\n if (this.lazyInit instanceof HttpHeaders) {\n this.copyFrom(this.lazyInit);\n }\n else {\n this.lazyInit();\n }\n this.lazyInit = null;\n if (!!this.lazyUpdate) {\n this.lazyUpdate.forEach((update) => this.applyUpdate(update));\n this.lazyUpdate = null;\n }\n }\n }\n copyFrom(other) {\n other.init();\n Array.from(other.headers.keys()).forEach((key) => {\n this.headers.set(key, other.headers.get(key));\n this.normalizedNames.set(key, other.normalizedNames.get(key));\n });\n }\n clone(update) {\n const clone = new HttpHeaders();\n clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;\n clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);\n return clone;\n }\n applyUpdate(update) {\n const key = update.name.toLowerCase();\n switch (update.op) {\n case 'a':\n case 's':\n let value = update.value;\n if (typeof value === 'string') {\n value = [value];\n }\n if (value.length === 0) {\n return;\n }\n this.maybeSetNormalizedName(update.name, key);\n const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];\n base.push(...value);\n this.headers.set(key, base);\n break;\n case 'd':\n const toDelete = update.value;\n if (!toDelete) {\n this.headers.delete(key);\n this.normalizedNames.delete(key);\n }\n else {\n let existing = this.headers.get(key);\n if (!existing) {\n return;\n }\n existing = existing.filter((value) => toDelete.indexOf(value) === -1);\n if (existing.length === 0) {\n this.headers.delete(key);\n this.normalizedNames.delete(key);\n }\n else {\n this.headers.set(key, existing);\n }\n }\n break;\n }\n }\n setHeaderEntries(name, values) {\n const headerValues = (Array.isArray(values) ? values : [values]).map((value) => value.toString());\n const key = name.toLowerCase();\n this.headers.set(key, headerValues);\n this.maybeSetNormalizedName(name, key);\n }\n /**\n * @internal\n */\n forEach(fn) {\n this.init();\n Array.from(this.normalizedNames.keys()).forEach((key) => fn(this.normalizedNames.get(key), this.headers.get(key)));\n }\n}\n/**\n * Verifies that the headers object has the right shape: the values\n * must be either strings, numbers or arrays. Throws an error if an invalid\n * header value is present.\n */\nfunction assertValidHeaders(headers) {\n for (const [key, value] of Object.entries(headers)) {\n if (!(typeof value === 'string' || typeof value === 'number') && !Array.isArray(value)) {\n throw new Error(`Unexpected value of the \\`${key}\\` header provided. ` +\n `Expecting either a string, a number or an array, but got: \\`${value}\\`.`);\n }\n }\n}\n\n/**\n * Provides encoding and decoding of URL parameter and query-string values.\n *\n * Serializes and parses URL parameter keys and values to encode and decode them.\n * If you pass URL query parameters without encoding,\n * the query parameters can be misinterpreted at the receiving end.\n *\n *\n * @publicApi\n */\nclass HttpUrlEncodingCodec {\n /**\n * Encodes a key name for a URL parameter or query-string.\n * @param key The key name.\n * @returns The encoded key name.\n */\n encodeKey(key) {\n return standardEncoding(key);\n }\n /**\n * Encodes the value of a URL parameter or query-string.\n * @param value The value.\n * @returns The encoded value.\n */\n encodeValue(value) {\n return standardEncoding(value);\n }\n /**\n * Decodes an encoded URL parameter or query-string key.\n * @param key The encoded key name.\n * @returns The decoded key name.\n */\n decodeKey(key) {\n return decodeURIComponent(key);\n }\n /**\n * Decodes an encoded URL parameter or query-string value.\n * @param value The encoded value.\n * @returns The decoded value.\n */\n decodeValue(value) {\n return decodeURIComponent(value);\n }\n}\nfunction paramParser(rawParams, codec) {\n const map = new Map();\n if (rawParams.length > 0) {\n // The `window.location.search` can be used while creating an instance of the `HttpParams` class\n // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`\n // may start with the `?` char, so we strip it if it's present.\n const params = rawParams.replace(/^\\?/, '').split('&');\n params.forEach((param) => {\n const eqIdx = param.indexOf('=');\n const [key, val] = eqIdx == -1\n ? [codec.decodeKey(param), '']\n : [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];\n const list = map.get(key) || [];\n list.push(val);\n map.set(key, list);\n });\n }\n return map;\n}\n/**\n * Encode input string with standard encodeURIComponent and then un-encode specific characters.\n */\nconst STANDARD_ENCODING_REGEX = /%(\\d[a-f0-9])/gi;\nconst STANDARD_ENCODING_REPLACEMENTS = {\n '40': '@',\n '3A': ':',\n '24': '$',\n '2C': ',',\n '3B': ';',\n '3D': '=',\n '3F': '?',\n '2F': '/',\n};\nfunction standardEncoding(v) {\n return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s);\n}\nfunction valueToString(value) {\n return `${value}`;\n}\n/**\n * An HTTP request/response body that represents serialized parameters,\n * per the MIME type `application/x-www-form-urlencoded`.\n *\n * This class is immutable; all mutation operations return a new instance.\n *\n * @publicApi\n */\nclass HttpParams {\n constructor(options = {}) {\n this.updates = null;\n this.cloneFrom = null;\n this.encoder = options.encoder || new HttpUrlEncodingCodec();\n if (!!options.fromString) {\n if (!!options.fromObject) {\n throw new Error(`Cannot specify both fromString and fromObject.`);\n }\n this.map = paramParser(options.fromString, this.encoder);\n }\n else if (!!options.fromObject) {\n this.map = new Map();\n Object.keys(options.fromObject).forEach((key) => {\n const value = options.fromObject[key];\n // convert the values to strings\n const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];\n this.map.set(key, values);\n });\n }\n else {\n this.map = null;\n }\n }\n /**\n * Reports whether the body includes one or more values for a given parameter.\n * @param param The parameter name.\n * @returns True if the parameter has one or more values,\n * false if it has no value or is not present.\n */\n has(param) {\n this.init();\n return this.map.has(param);\n }\n /**\n * Retrieves the first value for a parameter.\n * @param param The parameter name.\n * @returns The first value of the given parameter,\n * or `null` if the parameter is not present.\n */\n get(param) {\n this.init();\n const res = this.map.get(param);\n return !!res ? res[0] : null;\n }\n /**\n * Retrieves all values for a parameter.\n * @param param The parameter name.\n * @returns All values in a string array,\n * or `null` if the parameter not present.\n */\n getAll(param) {\n this.init();\n return this.map.get(param) || null;\n }\n /**\n * Retrieves all the parameters for this body.\n * @returns The parameter names in a string array.\n */\n keys() {\n this.init();\n return Array.from(this.map.keys());\n }\n /**\n * Appends a new value to existing values for a parameter.\n * @param param The parameter name.\n * @param value The new value to add.\n * @return A new body with the appended value.\n */\n append(param, value) {\n return this.clone({ param, value, op: 'a' });\n }\n /**\n * Constructs a new body with appended values for the given parameter name.\n * @param params parameters and values\n * @return A new body with the new value.\n */\n appendAll(params) {\n const updates = [];\n Object.keys(params).forEach((param) => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach((_value) => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value: value, op: 'a' });\n }\n });\n return this.clone(updates);\n }\n /**\n * Replaces the value for a parameter.\n * @param param The parameter name.\n * @param value The new value.\n * @return A new body with the new value.\n */\n set(param, value) {\n return this.clone({ param, value, op: 's' });\n }\n /**\n * Removes a given value or all values from a parameter.\n * @param param The parameter name.\n * @param value The value to remove, if provided.\n * @return A new body with the given value removed, or with all values\n * removed if no value is specified.\n */\n delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }\n /**\n * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are\n * separated by `&`s.\n */\n toString() {\n this.init();\n return (this.keys()\n .map((key) => {\n const eKey = this.encoder.encodeKey(key);\n // `a: ['1']` produces `'a=1'`\n // `b: []` produces `''`\n // `c: ['1', '2']` produces `'c=1&c=2'`\n return this.map.get(key)\n .map((value) => eKey + '=' + this.encoder.encodeValue(value))\n .join('&');\n })\n // filter out empty values because `b: []` produces `''`\n // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't\n .filter((param) => param !== '')\n .join('&'));\n }\n clone(update) {\n const clone = new HttpParams({ encoder: this.encoder });\n clone.cloneFrom = this.cloneFrom || this;\n clone.updates = (this.updates || []).concat(update);\n return clone;\n }\n init() {\n if (this.map === null) {\n this.map = new Map();\n }\n if (this.cloneFrom !== null) {\n this.cloneFrom.init();\n this.cloneFrom.keys().forEach((key) => this.map.set(key, this.cloneFrom.map.get(key)));\n this.updates.forEach((update) => {\n switch (update.op) {\n case 'a':\n case 's':\n const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];\n base.push(valueToString(update.value));\n this.map.set(update.param, base);\n break;\n case 'd':\n if (update.value !== undefined) {\n let base = this.map.get(update.param) || [];\n const idx = base.indexOf(valueToString(update.value));\n if (idx !== -1) {\n base.splice(idx, 1);\n }\n if (base.length > 0) {\n this.map.set(update.param, base);\n }\n else {\n this.map.delete(update.param);\n }\n }\n else {\n this.map.delete(update.param);\n break;\n }\n }\n });\n this.cloneFrom = this.updates = null;\n }\n }\n}\n\n/**\n * A token used to manipulate and access values stored in `HttpContext`.\n *\n * @publicApi\n */\nclass HttpContextToken {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n}\n/**\n * Http context stores arbitrary user defined values and ensures type safety without\n * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.\n *\n * This context is mutable and is shared between cloned requests unless explicitly specified.\n *\n * @usageNotes\n *\n * ### Usage Example\n *\n * ```typescript\n * // inside cache.interceptors.ts\n * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);\n *\n * export class CacheInterceptor implements HttpInterceptor {\n *\n * intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {\n * if (req.context.get(IS_CACHE_ENABLED) === true) {\n * return ...;\n * }\n * return delegate.handle(req);\n * }\n * }\n *\n * // inside a service\n *\n * this.httpClient.get('/api/weather', {\n * context: new HttpContext().set(IS_CACHE_ENABLED, true)\n * }).subscribe(...);\n * ```\n *\n * @publicApi\n */\nclass HttpContext {\n constructor() {\n this.map = new Map();\n }\n /**\n * Store a value in the context. If a value is already present it will be overwritten.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n * @param value The value to store.\n *\n * @returns A reference to itself for easy chaining.\n */\n set(token, value) {\n this.map.set(token, value);\n return this;\n }\n /**\n * Retrieve the value associated with the given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns The stored value or default if one is defined.\n */\n get(token) {\n if (!this.map.has(token)) {\n this.map.set(token, token.defaultValue());\n }\n return this.map.get(token);\n }\n /**\n * Delete the value associated with the given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns A reference to itself for easy chaining.\n */\n delete(token) {\n this.map.delete(token);\n return this;\n }\n /**\n * Checks for existence of a given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns True if the token exists, false otherwise.\n */\n has(token) {\n return this.map.has(token);\n }\n /**\n * @returns a list of tokens currently stored in the context.\n */\n keys() {\n return this.map.keys();\n }\n}\n\n/**\n * Determine whether the given HTTP method may include a body.\n */\nfunction mightHaveBody(method) {\n switch (method) {\n case 'DELETE':\n case 'GET':\n case 'HEAD':\n case 'OPTIONS':\n case 'JSONP':\n return false;\n default:\n return true;\n }\n}\n/**\n * Safely assert whether the given value is an ArrayBuffer.\n *\n * In some execution environments ArrayBuffer is not defined.\n */\nfunction isArrayBuffer(value) {\n return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;\n}\n/**\n * Safely assert whether the given value is a Blob.\n *\n * In some execution environments Blob is not defined.\n */\nfunction isBlob(value) {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n/**\n * Safely assert whether the given value is a FormData instance.\n *\n * In some execution environments FormData is not defined.\n */\nfunction isFormData(value) {\n return typeof FormData !== 'undefined' && value instanceof FormData;\n}\n/**\n * Safely assert whether the given value is a URLSearchParams instance.\n *\n * In some execution environments URLSearchParams is not defined.\n */\nfunction isUrlSearchParams(value) {\n return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;\n}\n/**\n * An outgoing HTTP request with an optional typed body.\n *\n * `HttpRequest` represents an outgoing request, including URL, method,\n * headers, body, and other request configuration options. Instances should be\n * assumed to be immutable. To modify a `HttpRequest`, the `clone`\n * method should be used.\n *\n * @publicApi\n */\nclass HttpRequest {\n constructor(method, url, third, fourth) {\n this.url = url;\n /**\n * The request body, or `null` if one isn't set.\n *\n * Bodies are not enforced to be immutable, as they can include a reference to any\n * user-defined data type. However, interceptors should take care to preserve\n * idempotence by treating them as such.\n */\n this.body = null;\n /**\n * Whether this request should be made in a way that exposes progress events.\n *\n * Progress events are expensive (change detection runs on each event) and so\n * they should only be requested if the consumer intends to monitor them.\n *\n * Note: The `FetchBackend` doesn't support progress report on uploads.\n */\n this.reportProgress = false;\n /**\n * Whether this request should be sent with outgoing credentials (cookies).\n */\n this.withCredentials = false;\n /**\n * The expected response type of the server.\n *\n * This is used to parse the response appropriately before returning it to\n * the requestee.\n */\n this.responseType = 'json';\n this.method = method.toUpperCase();\n // Next, need to figure out which argument holds the HttpRequestInit\n // options, if any.\n let options;\n // Check whether a body argument is expected. The only valid way to omit\n // the body argument is to use a known no-body method like GET.\n if (mightHaveBody(this.method) || !!fourth) {\n // Body is the third argument, options are the fourth.\n this.body = third !== undefined ? third : null;\n options = fourth;\n }\n else {\n // No body required, options are the third argument. The body stays null.\n options = third;\n }\n // If options have been passed, interpret them.\n if (options) {\n // Normalize reportProgress and withCredentials.\n this.reportProgress = !!options.reportProgress;\n this.withCredentials = !!options.withCredentials;\n // Override default response type of 'json' if one is provided.\n if (!!options.responseType) {\n this.responseType = options.responseType;\n }\n // Override headers if they're provided.\n if (!!options.headers) {\n this.headers = options.headers;\n }\n if (!!options.context) {\n this.context = options.context;\n }\n if (!!options.params) {\n this.params = options.params;\n }\n // We do want to assign transferCache even if it's falsy (false is valid value)\n this.transferCache = options.transferCache;\n }\n // If no headers have been passed in, construct a new HttpHeaders instance.\n this.headers ??= new HttpHeaders();\n // If no context have been passed in, construct a new HttpContext instance.\n this.context ??= new HttpContext();\n // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.\n if (!this.params) {\n this.params = new HttpParams();\n this.urlWithParams = url;\n }\n else {\n // Encode the parameters to a string in preparation for inclusion in the URL.\n const params = this.params.toString();\n if (params.length === 0) {\n // No parameters, the visible URL is just the URL given at creation time.\n this.urlWithParams = url;\n }\n else {\n // Does the URL already have query parameters? Look for '?'.\n const qIdx = url.indexOf('?');\n // There are 3 cases to handle:\n // 1) No existing parameters -> append '?' followed by params.\n // 2) '?' exists and is followed by existing query string ->\n // append '&' followed by params.\n // 3) '?' exists at the end of the url -> append params directly.\n // This basically amounts to determining the character, if any, with\n // which to join the URL and parameters.\n const sep = qIdx === -1 ? '?' : qIdx < url.length - 1 ? '&' : '';\n this.urlWithParams = url + sep + params;\n }\n }\n }\n /**\n * Transform the free-form body into a serialized format suitable for\n * transmission to the server.\n */\n serializeBody() {\n // If no body is present, no need to serialize it.\n if (this.body === null) {\n return null;\n }\n // Check whether the body is already in a serialized form. If so,\n // it can just be returned directly.\n if (typeof this.body === 'string' ||\n isArrayBuffer(this.body) ||\n isBlob(this.body) ||\n isFormData(this.body) ||\n isUrlSearchParams(this.body)) {\n return this.body;\n }\n // Check whether the body is an instance of HttpUrlEncodedParams.\n if (this.body instanceof HttpParams) {\n return this.body.toString();\n }\n // Check whether the body is an object or array, and serialize with JSON if so.\n if (typeof this.body === 'object' ||\n typeof this.body === 'boolean' ||\n Array.isArray(this.body)) {\n return JSON.stringify(this.body);\n }\n // Fall back on toString() for everything else.\n return this.body.toString();\n }\n /**\n * Examine the body and attempt to infer an appropriate MIME type\n * for it.\n *\n * If no such type can be inferred, this method will return `null`.\n */\n detectContentTypeHeader() {\n // An empty body has no content type.\n if (this.body === null) {\n return null;\n }\n // FormData bodies rely on the browser's content type assignment.\n if (isFormData(this.body)) {\n return null;\n }\n // Blobs usually have their own content type. If it doesn't, then\n // no type can be inferred.\n if (isBlob(this.body)) {\n return this.body.type || null;\n }\n // Array buffers have unknown contents and thus no type can be inferred.\n if (isArrayBuffer(this.body)) {\n return null;\n }\n // Technically, strings could be a form of JSON data, but it's safe enough\n // to assume they're plain strings.\n if (typeof this.body === 'string') {\n return 'text/plain';\n }\n // `HttpUrlEncodedParams` has its own content-type.\n if (this.body instanceof HttpParams) {\n return 'application/x-www-form-urlencoded;charset=UTF-8';\n }\n // Arrays, objects, boolean and numbers will be encoded as JSON.\n if (typeof this.body === 'object' ||\n typeof this.body === 'number' ||\n typeof this.body === 'boolean') {\n return 'application/json';\n }\n // No type could be inferred.\n return null;\n }\n clone(update = {}) {\n // For method, url, and responseType, take the current value unless\n // it is overridden in the update hash.\n const method = update.method || this.method;\n const url = update.url || this.url;\n const responseType = update.responseType || this.responseType;\n // Carefully handle the transferCache to differentiate between\n // `false` and `undefined` in the update args.\n const transferCache = update.transferCache ?? this.transferCache;\n // The body is somewhat special - a `null` value in update.body means\n // whatever current body is present is being overridden with an empty\n // body, whereas an `undefined` value in update.body implies no\n // override.\n const body = update.body !== undefined ? update.body : this.body;\n // Carefully handle the boolean options to differentiate between\n // `false` and `undefined` in the update args.\n const withCredentials = update.withCredentials ?? this.withCredentials;\n const reportProgress = update.reportProgress ?? this.reportProgress;\n // Headers and params may be appended to if `setHeaders` or\n // `setParams` are used.\n let headers = update.headers || this.headers;\n let params = update.params || this.params;\n // Pass on context if needed\n const context = update.context ?? this.context;\n // Check whether the caller has asked to add headers.\n if (update.setHeaders !== undefined) {\n // Set every requested header.\n headers = Object.keys(update.setHeaders).reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);\n }\n // Check whether the caller has asked to set params.\n if (update.setParams) {\n // Set every requested param.\n params = Object.keys(update.setParams).reduce((params, param) => params.set(param, update.setParams[param]), params);\n }\n // Finally, construct the new HttpRequest using the pieces from above.\n return new HttpRequest(method, url, body, {\n params,\n headers,\n context,\n reportProgress,\n responseType,\n withCredentials,\n transferCache,\n });\n }\n}\n\n/**\n * Type enumeration for the different kinds of `HttpEvent`.\n *\n * @publicApi\n */\nvar HttpEventType;\n(function (HttpEventType) {\n /**\n * The request was sent out over the wire.\n */\n HttpEventType[HttpEventType[\"Sent\"] = 0] = \"Sent\";\n /**\n * An upload progress event was received.\n *\n * Note: The `FetchBackend` doesn't support progress report on uploads.\n */\n HttpEventType[HttpEventType[\"UploadProgress\"] = 1] = \"UploadProgress\";\n /**\n * The response status code and headers were received.\n */\n HttpEventType[HttpEventType[\"ResponseHeader\"] = 2] = \"ResponseHeader\";\n /**\n * A download progress event was received.\n */\n HttpEventType[HttpEventType[\"DownloadProgress\"] = 3] = \"DownloadProgress\";\n /**\n * The full response including the body was received.\n */\n HttpEventType[HttpEventType[\"Response\"] = 4] = \"Response\";\n /**\n * A custom event from an interceptor or a backend.\n */\n HttpEventType[HttpEventType[\"User\"] = 5] = \"User\";\n})(HttpEventType || (HttpEventType = {}));\n/**\n * Base class for both `HttpResponse` and `HttpHeaderResponse`.\n *\n * @publicApi\n */\nclass HttpResponseBase {\n /**\n * Super-constructor for all responses.\n *\n * The single parameter accepted is an initialization hash. Any properties\n * of the response passed there will override the default values.\n */\n constructor(init, defaultStatus = HttpStatusCode.Ok, defaultStatusText = 'OK') {\n // If the hash has values passed, use them to initialize the response.\n // Otherwise use the default values.\n this.headers = init.headers || new HttpHeaders();\n this.status = init.status !== undefined ? init.status : defaultStatus;\n this.statusText = init.statusText || defaultStatusText;\n this.url = init.url || null;\n // Cache the ok value to avoid defining a getter.\n this.ok = this.status >= 200 && this.status < 300;\n }\n}\n/**\n * A partial HTTP response which only includes the status and header data,\n * but no response body.\n *\n * `HttpHeaderResponse` is a `HttpEvent` available on the response\n * event stream, only when progress events are requested.\n *\n * @publicApi\n */\nclass HttpHeaderResponse extends HttpResponseBase {\n /**\n * Create a new `HttpHeaderResponse` with the given parameters.\n */\n constructor(init = {}) {\n super(init);\n this.type = HttpEventType.ResponseHeader;\n }\n /**\n * Copy this `HttpHeaderResponse`, overriding its contents with the\n * given parameter hash.\n */\n clone(update = {}) {\n // Perform a straightforward initialization of the new HttpHeaderResponse,\n // overriding the current parameters with new ones if given.\n return new HttpHeaderResponse({\n headers: update.headers || this.headers,\n status: update.status !== undefined ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined,\n });\n }\n}\n/**\n * A full HTTP response, including a typed response body (which may be `null`\n * if one was not returned).\n *\n * `HttpResponse` is a `HttpEvent` available on the response event\n * stream.\n *\n * @publicApi\n */\nclass HttpResponse extends HttpResponseBase {\n /**\n * Construct a new `HttpResponse`.\n */\n constructor(init = {}) {\n super(init);\n this.type = HttpEventType.Response;\n this.body = init.body !== undefined ? init.body : null;\n }\n clone(update = {}) {\n return new HttpResponse({\n body: update.body !== undefined ? update.body : this.body,\n headers: update.headers || this.headers,\n status: update.status !== undefined ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined,\n });\n }\n}\n/**\n * A response that represents an error or failure, either from a\n * non-successful HTTP status, an error while executing the request,\n * or some other failure which occurred during the parsing of the response.\n *\n * Any error returned on the `Observable` response stream will be\n * wrapped in an `HttpErrorResponse` to provide additional context about\n * the state of the HTTP layer when the error occurred. The error property\n * will contain either a wrapped Error object or the error response returned\n * from the server.\n *\n * @publicApi\n */\nclass HttpErrorResponse extends HttpResponseBase {\n constructor(init) {\n // Initialize with a default status of 0 / Unknown Error.\n super(init, 0, 'Unknown Error');\n this.name = 'HttpErrorResponse';\n /**\n * Errors are never okay, even when the status code is in the 2xx success range.\n */\n this.ok = false;\n // If the response was successful, then this was a parse error. Otherwise, it was\n // a protocol-level failure of some sort. Either the request failed in transit\n // or the server returned an unsuccessful status code.\n if (this.status >= 200 && this.status < 300) {\n this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;\n }\n else {\n this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;\n }\n this.error = init.error || null;\n }\n}\n/**\n * Http status codes.\n * As per https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml\n * @publicApi\n */\nvar HttpStatusCode;\n(function (HttpStatusCode) {\n HttpStatusCode[HttpStatusCode[\"Continue\"] = 100] = \"Continue\";\n HttpStatusCode[HttpStatusCode[\"SwitchingProtocols\"] = 101] = \"SwitchingProtocols\";\n HttpStatusCode[HttpStatusCode[\"Processing\"] = 102] = \"Processing\";\n HttpStatusCode[HttpStatusCode[\"EarlyHints\"] = 103] = \"EarlyHints\";\n HttpStatusCode[HttpStatusCode[\"Ok\"] = 200] = \"Ok\";\n HttpStatusCode[HttpStatusCode[\"Created\"] = 201] = \"Created\";\n HttpStatusCode[HttpStatusCode[\"Accepted\"] = 202] = \"Accepted\";\n HttpStatusCode[HttpStatusCode[\"NonAuthoritativeInformation\"] = 203] = \"NonAuthoritativeInformation\";\n HttpStatusCode[HttpStatusCode[\"NoContent\"] = 204] = \"NoContent\";\n HttpStatusCode[HttpStatusCode[\"ResetContent\"] = 205] = \"ResetContent\";\n HttpStatusCode[HttpStatusCode[\"PartialContent\"] = 206] = \"PartialContent\";\n HttpStatusCode[HttpStatusCode[\"MultiStatus\"] = 207] = \"MultiStatus\";\n HttpStatusCode[HttpStatusCode[\"AlreadyReported\"] = 208] = \"AlreadyReported\";\n HttpStatusCode[HttpStatusCode[\"ImUsed\"] = 226] = \"ImUsed\";\n HttpStatusCode[HttpStatusCode[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n HttpStatusCode[HttpStatusCode[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n HttpStatusCode[HttpStatusCode[\"Found\"] = 302] = \"Found\";\n HttpStatusCode[HttpStatusCode[\"SeeOther\"] = 303] = \"SeeOther\";\n HttpStatusCode[HttpStatusCode[\"NotModified\"] = 304] = \"NotModified\";\n HttpStatusCode[HttpStatusCode[\"UseProxy\"] = 305] = \"UseProxy\";\n HttpStatusCode[HttpStatusCode[\"Unused\"] = 306] = \"Unused\";\n HttpStatusCode[HttpStatusCode[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n HttpStatusCode[HttpStatusCode[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n HttpStatusCode[HttpStatusCode[\"BadRequest\"] = 400] = \"BadRequest\";\n HttpStatusCode[HttpStatusCode[\"Unauthorized\"] = 401] = \"Unauthorized\";\n HttpStatusCode[HttpStatusCode[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n HttpStatusCode[HttpStatusCode[\"Forbidden\"] = 403] = \"Forbidden\";\n HttpStatusCode[HttpStatusCode[\"NotFound\"] = 404] = \"NotFound\";\n HttpStatusCode[HttpStatusCode[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n HttpStatusCode[HttpStatusCode[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n HttpStatusCode[HttpStatusCode[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n HttpStatusCode[HttpStatusCode[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n HttpStatusCode[HttpStatusCode[\"Conflict\"] = 409] = \"Conflict\";\n HttpStatusCode[HttpStatusCode[\"Gone\"] = 410] = \"Gone\";\n HttpStatusCode[HttpStatusCode[\"LengthRequired\"] = 411] = \"LengthRequired\";\n HttpStatusCode[HttpStatusCode[\"PreconditionFailed\"] = 412] = \"PreconditionFailed\";\n HttpStatusCode[HttpStatusCode[\"PayloadTooLarge\"] = 413] = \"PayloadTooLarge\";\n HttpStatusCode[HttpStatusCode[\"UriTooLong\"] = 414] = \"UriTooLong\";\n HttpStatusCode[HttpStatusCode[\"UnsupportedMediaType\"] = 415] = \"UnsupportedMediaType\";\n HttpStatusCode[HttpStatusCode[\"RangeNotSatisfiable\"] = 416] = \"RangeNotSatisfiable\";\n HttpStatusCode[HttpStatusCode[\"ExpectationFailed\"] = 417] = \"ExpectationFailed\";\n HttpStatusCode[HttpStatusCode[\"ImATeapot\"] = 418] = \"ImATeapot\";\n HttpStatusCode[HttpStatusCode[\"MisdirectedRequest\"] = 421] = \"MisdirectedRequest\";\n HttpStatusCode[HttpStatusCode[\"UnprocessableEntity\"] = 422] = \"UnprocessableEntity\";\n HttpStatusCode[HttpStatusCode[\"Locked\"] = 423] = \"Locked\";\n HttpStatusCode[HttpStatusCode[\"FailedDependency\"] = 424] = \"FailedDependency\";\n HttpStatusCode[HttpStatusCode[\"TooEarly\"] = 425] = \"TooEarly\";\n HttpStatusCode[HttpStatusCode[\"UpgradeRequired\"] = 426] = \"UpgradeRequired\";\n HttpStatusCode[HttpStatusCode[\"PreconditionRequired\"] = 428] = \"PreconditionRequired\";\n HttpStatusCode[HttpStatusCode[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n HttpStatusCode[HttpStatusCode[\"RequestHeaderFieldsTooLarge\"] = 431] = \"RequestHeaderFieldsTooLarge\";\n HttpStatusCode[HttpStatusCode[\"UnavailableForLegalReasons\"] = 451] = \"UnavailableForLegalReasons\";\n HttpStatusCode[HttpStatusCode[\"InternalServerError\"] = 500] = \"InternalServerError\";\n HttpStatusCode[HttpStatusCode[\"NotImplemented\"] = 501] = \"NotImplemented\";\n HttpStatusCode[HttpStatusCode[\"BadGateway\"] = 502] = \"BadGateway\";\n HttpStatusCode[HttpStatusCode[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n HttpStatusCode[HttpStatusCode[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n HttpStatusCode[HttpStatusCode[\"HttpVersionNotSupported\"] = 505] = \"HttpVersionNotSupported\";\n HttpStatusCode[HttpStatusCode[\"VariantAlsoNegotiates\"] = 506] = \"VariantAlsoNegotiates\";\n HttpStatusCode[HttpStatusCode[\"InsufficientStorage\"] = 507] = \"InsufficientStorage\";\n HttpStatusCode[HttpStatusCode[\"LoopDetected\"] = 508] = \"LoopDetected\";\n HttpStatusCode[HttpStatusCode[\"NotExtended\"] = 510] = \"NotExtended\";\n HttpStatusCode[HttpStatusCode[\"NetworkAuthenticationRequired\"] = 511] = \"NetworkAuthenticationRequired\";\n})(HttpStatusCode || (HttpStatusCode = {}));\n\n/**\n * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and\n * the given `body`. This function clones the object and adds the body.\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n *\n */\nfunction addBody(options, body) {\n return {\n body,\n headers: options.headers,\n context: options.context,\n observe: options.observe,\n params: options.params,\n reportProgress: options.reportProgress,\n responseType: options.responseType,\n withCredentials: options.withCredentials,\n transferCache: options.transferCache,\n };\n}\n/**\n * Performs HTTP requests.\n * This service is available as an injectable class, with methods to perform HTTP requests.\n * Each request method has multiple signatures, and the return type varies based on\n * the signature that is called (mainly the values of `observe` and `responseType`).\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n\n *\n * @usageNotes\n * Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.\n *\n * ### HTTP Request Example\n *\n * ```\n * // GET heroes whose name contains search term\n * searchHeroes(term: string): observable<Hero[]>{\n *\n * const params = new HttpParams({fromString: 'name=term'});\n * return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});\n * }\n * ```\n *\n * Alternatively, the parameter string can be used without invoking HttpParams\n * by directly joining to the URL.\n * ```\n * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});\n * ```\n *\n *\n * ### JSONP Example\n * ```\n * requestJsonp(url, callback = 'callback') {\n * return this.httpClient.jsonp(this.heroesURL, callback);\n * }\n * ```\n *\n * ### PATCH Example\n * ```\n * // PATCH one of the heroes' name\n * patchHero (id: number, heroName: string): Observable<{}> {\n * const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42\n * return this.httpClient.patch(url, {name: heroName}, httpOptions)\n * .pipe(catchError(this.handleError('patchHero')));\n * }\n * ```\n *\n * @see [HTTP Guide](guide/understanding-communicating-with-http)\n * @see [HTTP Request](api/common/http/HttpRequest)\n *\n * @publicApi\n */\nclass HttpClient {\n constructor(handler) {\n this.handler = handler;\n }\n /**\n * Constructs an observable for a generic HTTP request that, when subscribed,\n * fires the request through the chain of registered interceptors and on to the\n * server.\n *\n * You can pass an `HttpRequest` directly as the only parameter. In this case,\n * the call returns an observable of the raw `HttpEvent` stream.\n *\n * Alternatively you can pass an HTTP method as the first parameter,\n * a URL string as the second, and an options hash containing the request body as the third.\n * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the\n * type of returned observable.\n * * The `responseType` value determines how a successful response body is parsed.\n * * If `responseType` is the default `json`, you can pass a type interface for the resulting\n * object as a type parameter to the call.\n *\n * The `observe` value determines the return type, according to what you are interested in\n * observing.\n * * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including\n * progress events by default.\n * * An `observe` value of response returns an observable of `HttpResponse<T>`,\n * where the `T` parameter depends on the `responseType` and any optionally provided type\n * parameter.\n * * An `observe` value of body returns an observable of `<T>` with the same `T` body type.\n *\n */\n request(first, url, options = {}) {\n let req;\n // First, check whether the primary argument is an instance of `HttpRequest`.\n if (first instanceof HttpRequest) {\n // It is. The other arguments must be undefined (per the signatures) and can be\n // ignored.\n req = first;\n }\n else {\n // It's a string, so it represents a URL. Construct a request based on it,\n // and incorporate the remaining arguments (assuming `GET` unless a method is\n // provided.\n // Figure out the headers.\n let headers = undefined;\n if (options.headers instanceof HttpHeaders) {\n headers = options.headers;\n }\n else {\n headers = new HttpHeaders(options.headers);\n }\n // Sort out parameters.\n let params = undefined;\n if (!!options.params) {\n if (options.params instanceof HttpParams) {\n params = options.params;\n }\n else {\n params = new HttpParams({ fromObject: options.params });\n }\n }\n // Construct the request.\n req = new HttpRequest(first, url, options.body !== undefined ? options.body : null, {\n headers,\n context: options.context,\n params,\n reportProgress: options.reportProgress,\n // By default, JSON is assumed to be returned for all calls.\n responseType: options.responseType || 'json',\n withCredentials: options.withCredentials,\n transferCache: options.transferCache,\n });\n }\n // Start with an Observable.of() the initial request, and run the handler (which\n // includes all interceptors) inside a concatMap(). This way, the handler runs\n // inside an Observable chain, which causes interceptors to be re-run on every\n // subscription (this also makes retries re-run the handler, including interceptors).\n const events$ = of(req).pipe(concatMap((req) => this.handler.handle(req)));\n // If coming via the API signature which accepts a previously constructed HttpRequest,\n // the only option is to get the event stream. Otherwise, return the event stream if\n // that is what was requested.\n if (first instanceof HttpRequest || options.observe === 'events') {\n return events$;\n }\n // The requested stream contains either the full response or the body. In either\n // case, the first step is to filter the event stream to extract a stream of\n // responses(s).\n const res$ = (events$.pipe(filter((event) => event instanceof HttpResponse)));\n // Decide which stream to return.\n switch (options.observe || 'body') {\n case 'body':\n // The requested stream is the body. Map the response stream to the response\n // body. This could be done more simply, but a misbehaving interceptor might\n // transform the response body into a different format and ignore the requested\n // responseType. Guard against this by validating that the response is of the\n // requested type.\n switch (req.responseType) {\n case 'arraybuffer':\n return res$.pipe(map((res) => {\n // Validate that the body is an ArrayBuffer.\n if (res.body !== null && !(res.body instanceof ArrayBuffer)) {\n throw new Error('Response is not an ArrayBuffer.');\n }\n return res.body;\n }));\n case 'blob':\n return res$.pipe(map((res) => {\n // Validate that the body is a Blob.\n if (res.body !== null && !(res.body instanceof Blob)) {\n throw new Error('Response is not a Blob.');\n }\n return res.body;\n }));\n case 'text':\n return res$.pipe(map((res) => {\n // Validate that the body is a string.\n if (res.body !== null && typeof res.body !== 'string') {\n throw new Error('Response is not a string.');\n }\n return res.body;\n }));\n case 'json':\n default:\n // No validation needed for JSON responses, as they can be of any type.\n return res$.pipe(map((res) => res.body));\n }\n case 'response':\n // The response stream was requested directly, so return it.\n return res$;\n default:\n // Guard against new future observe types being added.\n throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);\n }\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `DELETE` request to execute on the server. See the individual overloads for\n * details on the return type.\n *\n * @param url The endpoint URL.\n * @param options The HTTP options to send with the request.\n *\n */\n delete(url, options = {}) {\n return this.request('DELETE', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `GET` request to execute on the server. See the individual overloads for\n * details on the return type.\n */\n get(url, options = {}) {\n return this.request('GET', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `HEAD` request to execute on the server. The `HEAD` method returns\n * meta information about the resource without transferring the\n * resource itself. See the individual overloads for\n * details on the return type.\n */\n head(url, options = {}) {\n return this.request('HEAD', url, options);\n }\n /**\n * Constructs an `Observable` that, when subscribed, causes a request with the special method\n * `JSONP` to be dispatched via the interceptor pipeline.\n * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain\n * API endpoints that don't support newer,\n * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.\n * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the\n * requests even if the API endpoint is not located on the same domain (origin) as the client-side\n * application making the request.\n * The endpoint API must support JSONP callback for JSONP requests to work.\n * The resource API returns the JSON response wrapped in a callback function.\n * You can pass the callback function name as one of the query parameters.\n * Note that JSONP requests can only be used with `GET` requests.\n *\n * @param url The resource URL.\n * @param callbackParam The callback function name.\n *\n */\n jsonp(url, callbackParam) {\n return this.request('JSONP', url, {\n params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),\n observe: 'body',\n responseType: 'json',\n });\n }\n /**\n * Constructs an `Observable` that, when subscribed, causes the configured\n * `OPTIONS` request to execute on the server. This method allows the client\n * to determine the supported HTTP methods and other capabilities of an endpoint,\n * without implying a resource action. See the individual overloads for\n * details on the return type.\n */\n options(url, options = {}) {\n return this.request('OPTIONS', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `PATCH` request to execute on the server. See the individual overloads for\n * details on the return type.\n */\n patch(url, body, options = {}) {\n return this.request('PATCH', url, addBody(options, body));\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `POST` request to execute on the server. The server responds with the location of\n * the replaced resource. See the individual overloads for\n * details on the return type.\n */\n post(url, body, options = {}) {\n return this.request('POST', url, addBody(options, body));\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `PUT` request to execute on the server. The `PUT` method replaces an existing resource\n * with a new set of values.\n * See the individual overloads for details on the return type.\n */\n put(url, body, options = {}) {\n return this.request('PUT', url, addBody(options, body));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClient }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClient, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: HttpHandler }] });\n\nconst XSSI_PREFIX$1 = /^\\)\\]\\}',?\\n/;\nconst REQUEST_URL_HEADER = `X-Request-URL`;\n/**\n * Determine an appropriate URL for the response, by checking either\n * response url or the X-Request-URL header.\n */\nfunction getResponseUrl$1(response) {\n if (response.url) {\n return response.url;\n }\n // stored as lowercase in the map\n const xRequestUrl = REQUEST_URL_HEADER.toLocaleLowerCase();\n return response.headers.get(xRequestUrl);\n}\n/**\n * Uses `fetch` to send requests to a backend server.\n *\n * This `FetchBackend` requires the support of the\n * [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) which is available on all\n * supported browsers and on Node.js v18 or later.\n *\n * @see {@link HttpHandler}\n *\n * @publicApi\n */\nclass FetchBackend {\n constructor() {\n // We need to bind the native fetch to its context or it will throw an \"illegal invocation\"\n this.fetchImpl = inject(FetchFactory, { optional: true })?.fetch ?? fetch.bind(globalThis);\n this.ngZone = inject(NgZone);\n }\n handle(request) {\n return new Observable((observer) => {\n const aborter = new AbortController();\n this.doRequest(request, aborter.signal, observer).then(noop, (error) => observer.error(new HttpErrorResponse({ error })));\n return () => aborter.abort();\n });\n }\n async doRequest(request, signal, observer) {\n const init = this.createRequestInit(request);\n let response;\n try {\n const fetchPromise = this.fetchImpl(request.urlWithParams, { signal, ...init });\n // Make sure Zone.js doesn't trigger false-positive unhandled promise\n // error in case the Promise is rejected synchronously. See function\n // description for additional information.\n silenceSuperfluousUnhandledPromiseRejection(fetchPromise);\n // Send the `Sent` event before awaiting the response.\n observer.next({ type: HttpEventType.Sent });\n response = await fetchPromise;\n }\n catch (error) {\n observer.error(new HttpErrorResponse({\n error,\n status: error.status ?? 0,\n statusText: error.statusText,\n url: request.urlWithParams,\n headers: error.headers,\n }));\n return;\n }\n const headers = new HttpHeaders(response.headers);\n const statusText = response.statusText;\n const url = getResponseUrl$1(response) ?? request.urlWithParams;\n let status = response.status;\n let body = null;\n if (request.reportProgress) {\n observer.next(new HttpHeaderResponse({ headers, status, statusText, url }));\n }\n if (response.body) {\n // Read Progress\n const contentLength = response.headers.get('content-length');\n const chunks = [];\n const reader = response.body.getReader();\n let receivedLength = 0;\n let decoder;\n let partialText;\n // We have to check whether the Zone is defined in the global scope because this may be called\n // when the zone is nooped.\n const reqZone = typeof Zone !== 'undefined' && Zone.current;\n // Perform response processing outside of Angular zone to\n // ensure no excessive change detection runs are executed\n // Here calling the async ReadableStreamDefaultReader.read() is responsible for triggering CD\n await this.ngZone.runOutsideAngular(async () => {\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n break;\n }\n chunks.push(value);\n receivedLength += value.length;\n if (request.reportProgress) {\n partialText =\n request.responseType === 'text'\n ? (partialText ?? '') +\n (decoder ??= new TextDecoder()).decode(value, { stream: true })\n : undefined;\n const reportProgress = () => observer.next({\n type: HttpEventType.DownloadProgress,\n total: contentLength ? +contentLength : undefined,\n loaded: receivedLength,\n partialText,\n });\n reqZone ? reqZone.run(reportProgress) : reportProgress();\n }\n }\n });\n // Combine all chunks.\n const chunksAll = this.concatChunks(chunks, receivedLength);\n try {\n const contentType = response.headers.get('Content-Type') ?? '';\n body = this.parseBody(request, chunksAll, contentType);\n }\n catch (error) {\n // Body loading or parsing failed\n observer.error(new HttpErrorResponse({\n error,\n headers: new HttpHeaders(response.headers),\n status: response.status,\n statusText: response.statusText,\n url: getResponseUrl$1(response) ?? request.urlWithParams,\n }));\n return;\n }\n }\n // Same behavior as the XhrBackend\n if (status === 0) {\n status = body ? HttpStatusCode.Ok : 0;\n }\n // ok determines whether the response will be transmitted on the event or\n // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n // but a successful status code can still result in an error if the user\n // asked for JSON data and the body cannot be parsed as such.\n const ok = status >= 200 && status < 300;\n if (ok) {\n observer.next(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url,\n }));\n // The full body has been received and delivered, no further events\n // are possible. This request is complete.\n observer.complete();\n }\n else {\n observer.error(new HttpErrorResponse({\n error: body,\n headers,\n status,\n statusText,\n url,\n }));\n }\n }\n parseBody(request, binContent, contentType) {\n switch (request.responseType) {\n case 'json':\n // stripping the XSSI when present\n const text = new TextDecoder().decode(binContent).replace(XSSI_PREFIX$1, '');\n return text === '' ? null : JSON.parse(text);\n case 'text':\n return new TextDecoder().decode(binContent);\n case 'blob':\n return new Blob([binContent], { type: contentType });\n case 'arraybuffer':\n return binContent.buffer;\n }\n }\n createRequestInit(req) {\n // We could share some of this logic with the XhrBackend\n const headers = {};\n const credentials = req.withCredentials ? 'include' : undefined;\n // Setting all the requested headers.\n req.headers.forEach((name, values) => (headers[name] = values.join(',')));\n // Add an Accept header if one isn't present already.\n headers['Accept'] ??= 'application/json, text/plain, */*';\n // Auto-detect the Content-Type header if one isn't present already.\n if (!headers['Content-Type']) {\n const detectedType = req.detectContentTypeHeader();\n // Sometimes Content-Type detection fails.\n if (detectedType !== null) {\n headers['Content-Type'] = detectedType;\n }\n }\n return {\n body: req.serializeBody(),\n method: req.method,\n headers,\n credentials,\n };\n }\n concatChunks(chunks, totalLength) {\n const chunksAll = new Uint8Array(totalLength);\n let position = 0;\n for (const chunk of chunks) {\n chunksAll.set(chunk, position);\n position += chunk.length;\n }\n return chunksAll;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FetchBackend }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FetchBackend, decorators: [{\n type: Injectable\n }] });\n/**\n * Abstract class to provide a mocked implementation of `fetch()`\n */\nclass FetchFactory {\n}\nfunction noop() { }\n/**\n * Zone.js treats a rejected promise that has not yet been awaited\n * as an unhandled error. This function adds a noop `.then` to make\n * sure that Zone.js doesn't throw an error if the Promise is rejected\n * synchronously.\n */\nfunction silenceSuperfluousUnhandledPromiseRejection(promise) {\n promise.then(noop, noop);\n}\n\nfunction interceptorChainEndFn(req, finalHandlerFn) {\n return finalHandlerFn(req);\n}\n/**\n * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the\n * `ChainedInterceptorFn` interface.\n */\nfunction adaptLegacyInterceptorToChain(chainTailFn, interceptor) {\n return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {\n handle: (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn),\n });\n}\n/**\n * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given\n * injector.\n */\nfunction chainedInterceptorFn(chainTailFn, interceptorFn, injector) {\n // clang-format off\n return (initialRequest, finalHandlerFn) => runInInjectionContext(injector, () => interceptorFn(initialRequest, (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn)));\n // clang-format on\n}\n/**\n * A multi-provider token that represents the array of registered\n * `HttpInterceptor` objects.\n *\n * @publicApi\n */\nconst HTTP_INTERCEPTORS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTORS' : '');\n/**\n * A multi-provided token of `HttpInterceptorFn`s.\n */\nconst HTTP_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '');\n/**\n * A multi-provided token of `HttpInterceptorFn`s that are only set in root.\n */\nconst HTTP_ROOT_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');\n/**\n * A provider to set a global primary http backend. If set, it will override the default one\n */\nconst PRIMARY_HTTP_BACKEND = new InjectionToken(ngDevMode ? 'PRIMARY_HTTP_BACKEND' : '');\n/**\n * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy\n * class-based interceptors and runs the request through it.\n */\nfunction legacyInterceptorFnFactory() {\n let chain = null;\n return (req, handler) => {\n if (chain === null) {\n const interceptors = inject(HTTP_INTERCEPTORS, { optional: true }) ?? [];\n // Note: interceptors are wrapped right-to-left so that final execution order is\n // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to\n // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside\n // out.\n chain = interceptors.reduceRight(adaptLegacyInterceptorToChain, interceptorChainEndFn);\n }\n const pendingTasks = inject(ɵPendingTasks);\n const taskId = pendingTasks.add();\n return chain(req, handler).pipe(finalize(() => pendingTasks.remove(taskId)));\n };\n}\nlet fetchBackendWarningDisplayed = false;\n/** Internal function to reset the flag in tests */\nfunction resetFetchBackendWarningFlag() {\n fetchBackendWarningDisplayed = false;\n}\nclass HttpInterceptorHandler extends HttpHandler {\n constructor(backend, injector) {\n super();\n this.backend = backend;\n this.injector = injector;\n this.chain = null;\n this.pendingTasks = inject(ɵPendingTasks);\n // Check if there is a preferred HTTP backend configured and use it if that's the case.\n // This is needed to enable `FetchBackend` globally for all HttpClient's when `withFetch`\n // is used.\n const primaryHttpBackend = inject(PRIMARY_HTTP_BACKEND, { optional: true });\n this.backend = primaryHttpBackend ?? backend;\n // We strongly recommend using fetch backend for HTTP calls when SSR is used\n // for an application. The logic below checks if that's the case and produces\n // a warning otherwise.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !fetchBackendWarningDisplayed) {\n const isServer = isPlatformServer(injector.get(PLATFORM_ID));\n if (isServer && !(this.backend instanceof FetchBackend)) {\n fetchBackendWarningDisplayed = true;\n injector\n .get(ɵConsole)\n .warn(ɵformatRuntimeError(2801 /* RuntimeErrorCode.NOT_USING_FETCH_BACKEND_IN_SSR */, 'Angular detected that `HttpClient` is not configured ' +\n \"to use `fetch` APIs. It's strongly recommended to \" +\n 'enable `fetch` for applications that use Server-Side Rendering ' +\n 'for better performance and compatibility. ' +\n 'To enable `fetch`, add the `withFetch()` to the `provideHttpClient()` ' +\n 'call at the root of the application.'));\n }\n }\n }\n handle(initialRequest) {\n if (this.chain === null) {\n const dedupedInterceptorFns = Array.from(new Set([\n ...this.injector.get(HTTP_INTERCEPTOR_FNS),\n ...this.injector.get(HTTP_ROOT_INTERCEPTOR_FNS, []),\n ]));\n // Note: interceptors are wrapped right-to-left so that final execution order is\n // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to\n // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside\n // out.\n this.chain = dedupedInterceptorFns.reduceRight((nextSequencedFn, interceptorFn) => chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector), interceptorChainEndFn);\n }\n const taskId = this.pendingTasks.add();\n return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest)).pipe(finalize(() => this.pendingTasks.remove(taskId)));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpInterceptorHandler }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpInterceptorHandler, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });\n\n// Every request made through JSONP needs a callback name that's unique across the\n// whole page. Each request is assigned an id and the callback name is constructed\n// from that. The next id to be assigned is tracked in a global variable here that\n// is shared among all applications on the page.\nlet nextRequestId = 0;\n/**\n * When a pending <script> is unsubscribed we'll move it to this document, so it won't be\n * executed.\n */\nlet foreignDocument;\n// Error text given when a JSONP script is injected, but doesn't invoke the callback\n// passed in its URL.\nconst JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';\n// Error text given when a request is passed to the JsonpClientBackend that doesn't\n// have a request method JSONP.\nconst JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';\nconst JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';\n// Error text given when a request is passed to the JsonpClientBackend that has\n// headers set\nconst JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';\n/**\n * DI token/abstract type representing a map of JSONP callbacks.\n *\n * In the browser, this should always be the `window` object.\n *\n *\n */\nclass JsonpCallbackContext {\n}\n/**\n * Factory function that determines where to store JSONP callbacks.\n *\n * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist\n * in test environments. In that case, callbacks are stored on an anonymous object instead.\n *\n *\n */\nfunction jsonpCallbackContext() {\n if (typeof window === 'object') {\n return window;\n }\n return {};\n}\n/**\n * Processes an `HttpRequest` with the JSONP method,\n * by performing JSONP style requests.\n * @see {@link HttpHandler}\n * @see {@link HttpXhrBackend}\n *\n * @publicApi\n */\nclass JsonpClientBackend {\n constructor(callbackMap, document) {\n this.callbackMap = callbackMap;\n this.document = document;\n /**\n * A resolved promise that can be used to schedule microtasks in the event handlers.\n */\n this.resolvedPromise = Promise.resolve();\n }\n /**\n * Get the name of the next callback method, by incrementing the global `nextRequestId`.\n */\n nextCallback() {\n return `ng_jsonp_callback_${nextRequestId++}`;\n }\n /**\n * Processes a JSONP request and returns an event stream of the results.\n * @param req The request object.\n * @returns An observable of the response events.\n *\n */\n handle(req) {\n // Firstly, check both the method and response type. If either doesn't match\n // then the request was improperly routed here and cannot be handled.\n if (req.method !== 'JSONP') {\n throw new Error(JSONP_ERR_WRONG_METHOD);\n }\n else if (req.responseType !== 'json') {\n throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);\n }\n // Check the request headers. JSONP doesn't support headers and\n // cannot set any that were supplied.\n if (req.headers.keys().length > 0) {\n throw new Error(JSONP_ERR_HEADERS_NOT_SUPPORTED);\n }\n // Everything else happens inside the Observable boundary.\n return new Observable((observer) => {\n // The first step to make a request is to generate the callback name, and replace the\n // callback placeholder in the URL with the name. Care has to be taken here to ensure\n // a trailing &, if matched, gets inserted back into the URL in the correct place.\n const callback = this.nextCallback();\n const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);\n // Construct the <script> tag and point it at the URL.\n const node = this.document.createElement('script');\n node.src = url;\n // A JSONP request requires waiting for multiple callbacks. These variables\n // are closed over and track state across those callbacks.\n // The response object, if one has been received, or null otherwise.\n let body = null;\n // Whether the response callback has been called.\n let finished = false;\n // Set the response callback in this.callbackMap (which will be the window\n // object in the browser. The script being loaded via the <script> tag will\n // eventually call this callback.\n this.callbackMap[callback] = (data) => {\n // Data has been received from the JSONP script. Firstly, delete this callback.\n delete this.callbackMap[callback];\n // Set state to indicate data was received.\n body = data;\n finished = true;\n };\n // cleanup() is a utility closure that removes the <script> from the page and\n // the response callback from the window. This logic is used in both the\n // success, error, and cancellation paths, so it's extracted out for convenience.\n const cleanup = () => {\n // Remove the <script> tag if it's still on the page.\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n // Remove the response callback from the callbackMap (window object in the\n // browser).\n delete this.callbackMap[callback];\n };\n // onLoad() is the success callback which runs after the response callback\n // if the JSONP script loads successfully. The event itself is unimportant.\n // If something went wrong, onLoad() may run without the response callback\n // having been invoked.\n const onLoad = (event) => {\n // We wrap it in an extra Promise, to ensure the microtask\n // is scheduled after the loaded endpoint has executed any potential microtask itself,\n // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496\n this.resolvedPromise.then(() => {\n // Cleanup the page.\n cleanup();\n // Check whether the response callback has run.\n if (!finished) {\n // It hasn't, something went wrong with the request. Return an error via\n // the Observable error path. All JSONP errors have status 0.\n observer.error(new HttpErrorResponse({\n url,\n status: 0,\n statusText: 'JSONP Error',\n error: new Error(JSONP_ERR_NO_CALLBACK),\n }));\n return;\n }\n // Success. body either contains the response body or null if none was\n // returned.\n observer.next(new HttpResponse({\n body,\n status: HttpStatusCode.Ok,\n statusText: 'OK',\n url,\n }));\n // Complete the stream, the response is over.\n observer.complete();\n });\n };\n // onError() is the error callback, which runs if the script returned generates\n // a Javascript error. It emits the error via the Observable error channel as\n // a HttpErrorResponse.\n const onError = (error) => {\n cleanup();\n // Wrap the error in a HttpErrorResponse.\n observer.error(new HttpErrorResponse({\n error,\n status: 0,\n statusText: 'JSONP Error',\n url,\n }));\n };\n // Subscribe to both the success (load) and error events on the <script> tag,\n // and add it to the page.\n node.addEventListener('load', onLoad);\n node.addEventListener('error', onError);\n this.document.body.appendChild(node);\n // The request has now been successfully sent.\n observer.next({ type: HttpEventType.Sent });\n // Cancellation handler.\n return () => {\n if (!finished) {\n this.removeListeners(node);\n }\n // And finally, clean up the page.\n cleanup();\n };\n });\n }\n removeListeners(script) {\n // Issue #34818\n // Changing <script>'s ownerDocument will prevent it from execution.\n // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block\n foreignDocument ??= this.document.implementation.createHTMLDocument();\n foreignDocument.adoptNode(script);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonpClientBackend }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonpClientBackend, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n/**\n * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.\n */\nfunction jsonpInterceptorFn(req, next) {\n if (req.method === 'JSONP') {\n return inject(JsonpClientBackend).handle(req);\n }\n // Fall through for normal HTTP requests.\n return next(req);\n}\n/**\n * Identifies requests with the method JSONP and\n * shifts them to the `JsonpClientBackend`.\n *\n * @see {@link HttpInterceptor}\n *\n * @publicApi\n */\nclass JsonpInterceptor {\n constructor(injector) {\n this.injector = injector;\n }\n /**\n * Identifies and handles a given JSONP request.\n * @param initialRequest The outgoing request object to handle.\n * @param next The next interceptor in the chain, or the backend\n * if no interceptors remain in the chain.\n * @returns An observable of the event stream.\n */\n intercept(initialRequest, next) {\n return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonpInterceptor }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: JsonpInterceptor, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });\n\nconst XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\n/**\n * Determine an appropriate URL for the response, by checking either\n * XMLHttpRequest.responseURL or the X-Request-URL header.\n */\nfunction getResponseUrl(xhr) {\n if ('responseURL' in xhr && xhr.responseURL) {\n return xhr.responseURL;\n }\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL');\n }\n return null;\n}\n/**\n * Uses `XMLHttpRequest` to send requests to a backend server.\n * @see {@link HttpHandler}\n * @see {@link JsonpClientBackend}\n *\n * @publicApi\n */\nclass HttpXhrBackend {\n constructor(xhrFactory) {\n this.xhrFactory = xhrFactory;\n }\n /**\n * Processes a request and returns a stream of response events.\n * @param req The request object.\n * @returns An observable of the response events.\n */\n handle(req) {\n // Quick check to give a better error message when a user attempts to use\n // HttpClient.jsonp() without installing the HttpClientJsonpModule\n if (req.method === 'JSONP') {\n throw new ɵRuntimeError(-2800 /* RuntimeErrorCode.MISSING_JSONP_MODULE */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Cannot make a JSONP request without JSONP support. To fix the problem, either add the \\`withJsonpSupport()\\` call (if \\`provideHttpClient()\\` is used) or import the \\`HttpClientJsonpModule\\` in the root NgModule.`);\n }\n // Check whether this factory has a special function to load an XHR implementation\n // for various non-browser environments. We currently limit it to only `ServerXhr`\n // class, which needs to load an XHR implementation.\n const xhrFactory = this.xhrFactory;\n const source = xhrFactory.ɵloadImpl\n ? from(xhrFactory.ɵloadImpl())\n : of(null);\n return source.pipe(switchMap(() => {\n // Everything happens on Observable subscription.\n return new Observable((observer) => {\n // Start by setting up the XHR object with request method, URL, and withCredentials\n // flag.\n const xhr = xhrFactory.build();\n xhr.open(req.method, req.urlWithParams);\n if (req.withCredentials) {\n xhr.withCredentials = true;\n }\n // Add all the requested headers.\n req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));\n // Add an Accept header if one isn't present already.\n if (!req.headers.has('Accept')) {\n xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');\n }\n // Auto-detect the Content-Type header if one isn't present already.\n if (!req.headers.has('Content-Type')) {\n const detectedType = req.detectContentTypeHeader();\n // Sometimes Content-Type detection fails.\n if (detectedType !== null) {\n xhr.setRequestHeader('Content-Type', detectedType);\n }\n }\n // Set the responseType if one was requested.\n if (req.responseType) {\n const responseType = req.responseType.toLowerCase();\n // JSON responses need to be processed as text. This is because if the server\n // returns an XSSI-prefixed JSON response, the browser will fail to parse it,\n // xhr.response will be null, and xhr.responseText cannot be accessed to\n // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON\n // is parsed by first requesting text and then applying JSON.parse.\n xhr.responseType = (responseType !== 'json' ? responseType : 'text');\n }\n // Serialize the request body if one is present. If not, this will be set to null.\n const reqBody = req.serializeBody();\n // If progress events are enabled, response headers will be delivered\n // in two events - the HttpHeaderResponse event and the full HttpResponse\n // event. However, since response headers don't change in between these\n // two events, it doesn't make sense to parse them twice. So headerResponse\n // caches the data extracted from the response whenever it's first parsed,\n // to ensure parsing isn't duplicated.\n let headerResponse = null;\n // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest\n // state, and memoizes it into headerResponse.\n const partialFromXhr = () => {\n if (headerResponse !== null) {\n return headerResponse;\n }\n const statusText = xhr.statusText || 'OK';\n // Parse headers from XMLHttpRequest - this step is lazy.\n const headers = new HttpHeaders(xhr.getAllResponseHeaders());\n // Read the response URL from the XMLHttpResponse instance and fall back on the\n // request URL.\n const url = getResponseUrl(xhr) || req.url;\n // Construct the HttpHeaderResponse and memoize it.\n headerResponse = new HttpHeaderResponse({ headers, status: xhr.status, statusText, url });\n return headerResponse;\n };\n // Next, a few closures are defined for the various events which XMLHttpRequest can\n // emit. This allows them to be unregistered as event listeners later.\n // First up is the load event, which represents a response being fully available.\n const onLoad = () => {\n // Read response state from the memoized partial data.\n let { headers, status, statusText, url } = partialFromXhr();\n // The body will be read out if present.\n let body = null;\n if (status !== HttpStatusCode.NoContent) {\n // Use XMLHttpRequest.response if set, responseText otherwise.\n body = typeof xhr.response === 'undefined' ? xhr.responseText : xhr.response;\n }\n // Normalize another potential bug (this one comes from CORS).\n if (status === 0) {\n status = !!body ? HttpStatusCode.Ok : 0;\n }\n // ok determines whether the response will be transmitted on the event or\n // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n // but a successful status code can still result in an error if the user\n // asked for JSON data and the body cannot be parsed as such.\n let ok = status >= 200 && status < 300;\n // Check whether the body needs to be parsed as JSON (in many cases the browser\n // will have done that already).\n if (req.responseType === 'json' && typeof body === 'string') {\n // Save the original body, before attempting XSSI prefix stripping.\n const originalBody = body;\n body = body.replace(XSSI_PREFIX, '');\n try {\n // Attempt the parse. If it fails, a parse error should be delivered to the\n // user.\n body = body !== '' ? JSON.parse(body) : null;\n }\n catch (error) {\n // Since the JSON.parse failed, it's reasonable to assume this might not have\n // been a JSON response. Restore the original body (including any XSSI prefix)\n // to deliver a better error response.\n body = originalBody;\n // If this was an error request to begin with, leave it as a string, it\n // probably just isn't JSON. Otherwise, deliver the parsing error to the user.\n if (ok) {\n // Even though the response status was 2xx, this is still an error.\n ok = false;\n // The parse error contains the text of the body that failed to parse.\n body = { error, text: body };\n }\n }\n }\n if (ok) {\n // A successful response is delivered on the event stream.\n observer.next(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url: url || undefined,\n }));\n // The full body has been received and delivered, no further events\n // are possible. This request is complete.\n observer.complete();\n }\n else {\n // An unsuccessful request is delivered on the error channel.\n observer.error(new HttpErrorResponse({\n // The error in this case is the response body (error from the server).\n error: body,\n headers,\n status,\n statusText,\n url: url || undefined,\n }));\n }\n };\n // The onError callback is called when something goes wrong at the network level.\n // Connection timeout, DNS error, offline, etc. These are actual errors, and are\n // transmitted on the error channel.\n const onError = (error) => {\n const { url } = partialFromXhr();\n const res = new HttpErrorResponse({\n error,\n status: xhr.status || 0,\n statusText: xhr.statusText || 'Unknown Error',\n url: url || undefined,\n });\n observer.error(res);\n };\n // The sentHeaders flag tracks whether the HttpResponseHeaders event\n // has been sent on the stream. This is necessary to track if progress\n // is enabled since the event will be sent on only the first download\n // progress event.\n let sentHeaders = false;\n // The download progress event handler, which is only registered if\n // progress events are enabled.\n const onDownProgress = (event) => {\n // Send the HttpResponseHeaders event if it hasn't been sent already.\n if (!sentHeaders) {\n observer.next(partialFromXhr());\n sentHeaders = true;\n }\n // Start building the download progress event to deliver on the response\n // event stream.\n let progressEvent = {\n type: HttpEventType.DownloadProgress,\n loaded: event.loaded,\n };\n // Set the total number of bytes in the event if it's available.\n if (event.lengthComputable) {\n progressEvent.total = event.total;\n }\n // If the request was for text content and a partial response is\n // available on XMLHttpRequest, include it in the progress event\n // to allow for streaming reads.\n if (req.responseType === 'text' && !!xhr.responseText) {\n progressEvent.partialText = xhr.responseText;\n }\n // Finally, fire the event.\n observer.next(progressEvent);\n };\n // The upload progress event handler, which is only registered if\n // progress events are enabled.\n const onUpProgress = (event) => {\n // Upload progress events are simpler. Begin building the progress\n // event.\n let progress = {\n type: HttpEventType.UploadProgress,\n loaded: event.loaded,\n };\n // If the total number of bytes being uploaded is available, include\n // it.\n if (event.lengthComputable) {\n progress.total = event.total;\n }\n // Send the event.\n observer.next(progress);\n };\n // By default, register for load and error events.\n xhr.addEventListener('load', onLoad);\n xhr.addEventListener('error', onError);\n xhr.addEventListener('timeout', onError);\n xhr.addEventListener('abort', onError);\n // Progress events are only enabled if requested.\n if (req.reportProgress) {\n // Download progress is always enabled if requested.\n xhr.addEventListener('progress', onDownProgress);\n // Upload progress depends on whether there is a body to upload.\n if (reqBody !== null && xhr.upload) {\n xhr.upload.addEventListener('progress', onUpProgress);\n }\n }\n // Fire the request, and notify the event stream that it was fired.\n xhr.send(reqBody);\n observer.next({ type: HttpEventType.Sent });\n // This is the return from the Observable function, which is the\n // request cancellation handler.\n return () => {\n // On a cancellation, remove all registered event listeners.\n xhr.removeEventListener('error', onError);\n xhr.removeEventListener('abort', onError);\n xhr.removeEventListener('load', onLoad);\n xhr.removeEventListener('timeout', onError);\n if (req.reportProgress) {\n xhr.removeEventListener('progress', onDownProgress);\n if (reqBody !== null && xhr.upload) {\n xhr.upload.removeEventListener('progress', onUpProgress);\n }\n }\n // Finally, abort the in-flight request.\n if (xhr.readyState !== xhr.DONE) {\n xhr.abort();\n }\n };\n });\n }));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXhrBackend }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXhrBackend, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i1.XhrFactory }] });\n\nconst XSRF_ENABLED = new InjectionToken(ngDevMode ? 'XSRF_ENABLED' : '');\nconst XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';\nconst XSRF_COOKIE_NAME = new InjectionToken(ngDevMode ? 'XSRF_COOKIE_NAME' : '', {\n providedIn: 'root',\n factory: () => XSRF_DEFAULT_COOKIE_NAME,\n});\nconst XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN';\nconst XSRF_HEADER_NAME = new InjectionToken(ngDevMode ? 'XSRF_HEADER_NAME' : '', {\n providedIn: 'root',\n factory: () => XSRF_DEFAULT_HEADER_NAME,\n});\n/**\n * Retrieves the current XSRF token to use with the next outgoing request.\n *\n * @publicApi\n */\nclass HttpXsrfTokenExtractor {\n}\n/**\n * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.\n */\nclass HttpXsrfCookieExtractor {\n constructor(doc, platform, cookieName) {\n this.doc = doc;\n this.platform = platform;\n this.cookieName = cookieName;\n this.lastCookieString = '';\n this.lastToken = null;\n /**\n * @internal for testing\n */\n this.parseCount = 0;\n }\n getToken() {\n if (this.platform === 'server') {\n return null;\n }\n const cookieString = this.doc.cookie || '';\n if (cookieString !== this.lastCookieString) {\n this.parseCount++;\n this.lastToken = ɵparseCookieValue(cookieString, this.cookieName);\n this.lastCookieString = cookieString;\n }\n return this.lastToken;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXsrfCookieExtractor }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [XSRF_COOKIE_NAME]\n }] }] });\nfunction xsrfInterceptorFn(req, next) {\n const lcUrl = req.url.toLowerCase();\n // Skip both non-mutating requests and absolute URLs.\n // Non-mutating requests don't require a token, and absolute URLs require special handling\n // anyway as the cookie set\n // on our origin is not the same as the token expected by another origin.\n if (!inject(XSRF_ENABLED) ||\n req.method === 'GET' ||\n req.method === 'HEAD' ||\n lcUrl.startsWith('http://') ||\n lcUrl.startsWith('https://')) {\n return next(req);\n }\n const token = inject(HttpXsrfTokenExtractor).getToken();\n const headerName = inject(XSRF_HEADER_NAME);\n // Be careful not to overwrite an existing header of the same name.\n if (token != null && !req.headers.has(headerName)) {\n req = req.clone({ headers: req.headers.set(headerName, token) });\n }\n return next(req);\n}\n/**\n * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.\n */\nclass HttpXsrfInterceptor {\n constructor(injector) {\n this.injector = injector;\n }\n intercept(initialRequest, next) {\n return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXsrfInterceptor }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });\n\n/**\n * Identifies a particular kind of `HttpFeature`.\n *\n * @publicApi\n */\nvar HttpFeatureKind;\n(function (HttpFeatureKind) {\n HttpFeatureKind[HttpFeatureKind[\"Interceptors\"] = 0] = \"Interceptors\";\n HttpFeatureKind[HttpFeatureKind[\"LegacyInterceptors\"] = 1] = \"LegacyInterceptors\";\n HttpFeatureKind[HttpFeatureKind[\"CustomXsrfConfiguration\"] = 2] = \"CustomXsrfConfiguration\";\n HttpFeatureKind[HttpFeatureKind[\"NoXsrfProtection\"] = 3] = \"NoXsrfProtection\";\n HttpFeatureKind[HttpFeatureKind[\"JsonpSupport\"] = 4] = \"JsonpSupport\";\n HttpFeatureKind[HttpFeatureKind[\"RequestsMadeViaParent\"] = 5] = \"RequestsMadeViaParent\";\n HttpFeatureKind[HttpFeatureKind[\"Fetch\"] = 6] = \"Fetch\";\n})(HttpFeatureKind || (HttpFeatureKind = {}));\nfunction makeHttpFeature(kind, providers) {\n return {\n ɵkind: kind,\n ɵproviders: providers,\n };\n}\n/**\n * Configures Angular's `HttpClient` service to be available for injection.\n *\n * By default, `HttpClient` will be configured for injection with its default options for XSRF\n * protection of outgoing requests. Additional configuration options can be provided by passing\n * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the\n * `withInterceptors(...)` feature.\n *\n * <div class=\"alert is-helpful\">\n *\n * It's strongly recommended to enable\n * [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for applications that use\n * Server-Side Rendering for better performance and compatibility. To enable `fetch`, add\n * `withFetch()` feature to the `provideHttpClient()` call at the root of the application:\n *\n * ```\n * provideHttpClient(withFetch());\n * ```\n *\n * </div>\n *\n * @see {@link withInterceptors}\n * @see {@link withInterceptorsFromDi}\n * @see {@link withXsrfConfiguration}\n * @see {@link withNoXsrfProtection}\n * @see {@link withJsonpSupport}\n * @see {@link withRequestsMadeViaParent}\n * @see {@link withFetch}\n */\nfunction provideHttpClient(...features) {\n if (ngDevMode) {\n const featureKinds = new Set(features.map((f) => f.ɵkind));\n if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) &&\n featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {\n throw new Error(ngDevMode\n ? `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.`\n : '');\n }\n }\n const providers = [\n HttpClient,\n HttpXhrBackend,\n HttpInterceptorHandler,\n { provide: HttpHandler, useExisting: HttpInterceptorHandler },\n { provide: HttpBackend, useExisting: HttpXhrBackend },\n {\n provide: HTTP_INTERCEPTOR_FNS,\n useValue: xsrfInterceptorFn,\n multi: true,\n },\n { provide: XSRF_ENABLED, useValue: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n ];\n for (const feature of features) {\n providers.push(...feature.ɵproviders);\n }\n return makeEnvironmentProviders(providers);\n}\n/**\n * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`\n * instance.\n *\n * @see {@link HttpInterceptorFn}\n * @see {@link provideHttpClient}\n * @publicApi\n */\nfunction withInterceptors(interceptorFns) {\n return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map((interceptorFn) => {\n return {\n provide: HTTP_INTERCEPTOR_FNS,\n useValue: interceptorFn,\n multi: true,\n };\n }));\n}\nconst LEGACY_INTERCEPTOR_FN = new InjectionToken(ngDevMode ? 'LEGACY_INTERCEPTOR_FN' : '');\n/**\n * Includes class-based interceptors configured using a multi-provider in the current injector into\n * the configured `HttpClient` instance.\n *\n * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided\n * interceptors may be phased out in a later release.\n *\n * @see {@link HttpInterceptor}\n * @see {@link HTTP_INTERCEPTORS}\n * @see {@link provideHttpClient}\n */\nfunction withInterceptorsFromDi() {\n // Note: the legacy interceptor function is provided here via an intermediate token\n // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are\n // included multiple times, all of the multi-provider entries will have the same instance of the\n // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy\n // interceptors will not run multiple times.\n return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [\n {\n provide: LEGACY_INTERCEPTOR_FN,\n useFactory: legacyInterceptorFnFactory,\n },\n {\n provide: HTTP_INTERCEPTOR_FNS,\n useExisting: LEGACY_INTERCEPTOR_FN,\n multi: true,\n },\n ]);\n}\n/**\n * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.\n *\n * This feature is incompatible with the `withNoXsrfProtection` feature.\n *\n * @see {@link provideHttpClient}\n */\nfunction withXsrfConfiguration({ cookieName, headerName, }) {\n const providers = [];\n if (cookieName !== undefined) {\n providers.push({ provide: XSRF_COOKIE_NAME, useValue: cookieName });\n }\n if (headerName !== undefined) {\n providers.push({ provide: XSRF_HEADER_NAME, useValue: headerName });\n }\n return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers);\n}\n/**\n * Disables XSRF protection in the configuration of the current `HttpClient` instance.\n *\n * This feature is incompatible with the `withXsrfConfiguration` feature.\n *\n * @see {@link provideHttpClient}\n */\nfunction withNoXsrfProtection() {\n return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [\n {\n provide: XSRF_ENABLED,\n useValue: false,\n },\n ]);\n}\n/**\n * Add JSONP support to the configuration of the current `HttpClient` instance.\n *\n * @see {@link provideHttpClient}\n */\nfunction withJsonpSupport() {\n return makeHttpFeature(HttpFeatureKind.JsonpSupport, [\n JsonpClientBackend,\n { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },\n { provide: HTTP_INTERCEPTOR_FNS, useValue: jsonpInterceptorFn, multi: true },\n ]);\n}\n/**\n * Configures the current `HttpClient` instance to make requests via the parent injector's\n * `HttpClient` instead of directly.\n *\n * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent\n * instance. For example, even if `HttpClient` is configured in the parent injector with\n * one or more interceptors, they will not intercept requests made via this instance.\n *\n * With this option enabled, once the request has passed through the current injector's\n * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of\n * dispatched directly, and interceptors in the parent configuration will be applied to the request.\n *\n * If there are several `HttpClient` instances in the injector hierarchy, it's possible for\n * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to\n * \"bubble up\" until either reaching the root level or an `HttpClient` which was not configured with\n * this option.\n *\n * @see {@link provideHttpClient}\n * @developerPreview\n */\nfunction withRequestsMadeViaParent() {\n return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [\n {\n provide: HttpBackend,\n useFactory: () => {\n const handlerFromParent = inject(HttpHandler, { skipSelf: true, optional: true });\n if (ngDevMode && handlerFromParent === null) {\n throw new Error('withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');\n }\n return handlerFromParent;\n },\n },\n ]);\n}\n/**\n * Configures the current `HttpClient` instance to make requests using the fetch API.\n *\n * This `FetchBackend` requires the support of the Fetch API which is available on all evergreen\n * browsers and on NodeJS from v18 onward.\n *\n * Note: The Fetch API doesn't support progress report on uploads.\n *\n * @publicApi\n */\nfunction withFetch() {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && typeof fetch !== 'function') {\n // TODO: Create a runtime error\n // TODO: Use ENVIRONMENT_INITIALIZER to contextualize the error message (browser or server)\n throw new Error('The `withFetch` feature of HttpClient requires the `fetch` API to be available. ' +\n 'If you run the code in a Node environment, make sure you use Node v18.10 or later.');\n }\n return makeHttpFeature(HttpFeatureKind.Fetch, [\n FetchBackend,\n { provide: HttpBackend, useExisting: FetchBackend },\n { provide: PRIMARY_HTTP_BACKEND, useExisting: FetchBackend },\n ]);\n}\n\n/**\n * Configures XSRF protection support for outgoing requests.\n *\n * For a server that supports a cookie-based XSRF protection system,\n * use directly to configure XSRF protection with the correct\n * cookie and header names.\n *\n * If no names are supplied, the default cookie name is `XSRF-TOKEN`\n * and the default header name is `X-XSRF-TOKEN`.\n *\n * @publicApi\n */\nclass HttpClientXsrfModule {\n /**\n * Disable the default XSRF protection.\n */\n static disable() {\n return {\n ngModule: HttpClientXsrfModule,\n providers: [withNoXsrfProtection().ɵproviders],\n };\n }\n /**\n * Configure XSRF protection.\n * @param options An object that can specify either or both\n * cookie name or header name.\n * - Cookie name default is `XSRF-TOKEN`.\n * - Header name default is `X-XSRF-TOKEN`.\n *\n */\n static withOptions(options = {}) {\n return {\n ngModule: HttpClientXsrfModule,\n providers: withXsrfConfiguration(options).ɵproviders,\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientXsrfModule }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientXsrfModule, providers: [\n HttpXsrfInterceptor,\n { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n withXsrfConfiguration({\n cookieName: XSRF_DEFAULT_COOKIE_NAME,\n headerName: XSRF_DEFAULT_HEADER_NAME,\n }).ɵproviders,\n { provide: XSRF_ENABLED, useValue: true },\n ] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientXsrfModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n HttpXsrfInterceptor,\n { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n withXsrfConfiguration({\n cookieName: XSRF_DEFAULT_COOKIE_NAME,\n headerName: XSRF_DEFAULT_HEADER_NAME,\n }).ɵproviders,\n { provide: XSRF_ENABLED, useValue: true },\n ],\n }]\n }] });\n/**\n * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`\n * with supporting services for XSRF. Automatically imported by `HttpClientModule`.\n *\n * You can add interceptors to the chain behind `HttpClient` by binding them to the\n * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n */\nclass HttpClientModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientModule }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientModule, decorators: [{\n type: NgModule,\n args: [{\n /**\n * Configures the [dependency injector](guide/glossary#injector) where it is imported\n * with supporting services for HTTP communications.\n */\n providers: [provideHttpClient(withInterceptorsFromDi())],\n }]\n }] });\n/**\n * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`\n * with supporting services for JSONP.\n * Without this module, Jsonp requests reach the backend\n * with method JSONP, where they are rejected.\n *\n * @publicApi\n */\nclass HttpClientJsonpModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientJsonpModule }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HttpClientJsonpModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [withJsonpSupport().ɵproviders],\n }]\n }] });\n\n/**\n * Keys within cached response data structure.\n */\nconst BODY = 'b';\nconst HEADERS = 'h';\nconst STATUS = 's';\nconst STATUS_TEXT = 'st';\nconst URL = 'u';\nconst RESPONSE_TYPE = 'rt';\nconst CACHE_OPTIONS = new InjectionToken(ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_OPTIONS' : '');\n/**\n * A list of allowed HTTP methods to cache.\n */\nconst ALLOWED_METHODS = ['GET', 'HEAD'];\nfunction transferCacheInterceptorFn(req, next) {\n const { isCacheActive, ...globalOptions } = inject(CACHE_OPTIONS);\n const { transferCache: requestOptions, method: requestMethod } = req;\n // In the following situations we do not want to cache the request\n if (!isCacheActive ||\n // POST requests are allowed either globally or at request level\n (requestMethod === 'POST' && !globalOptions.includePostRequests && !requestOptions) ||\n (requestMethod !== 'POST' && !ALLOWED_METHODS.includes(requestMethod)) ||\n requestOptions === false || //\n globalOptions.filter?.(req) === false) {\n return next(req);\n }\n const transferState = inject(TransferState);\n const storeKey = makeCacheKey(req);\n const response = transferState.get(storeKey, null);\n let headersToInclude = globalOptions.includeHeaders;\n if (typeof requestOptions === 'object' && requestOptions.includeHeaders) {\n // Request-specific config takes precedence over the global config.\n headersToInclude = requestOptions.includeHeaders;\n }\n if (response) {\n const { [BODY]: undecodedBody, [RESPONSE_TYPE]: responseType, [HEADERS]: httpHeaders, [STATUS]: status, [STATUS_TEXT]: statusText, [URL]: url, } = response;\n // Request found in cache. Respond using it.\n let body = undecodedBody;\n switch (responseType) {\n case 'arraybuffer':\n body = new TextEncoder().encode(undecodedBody).buffer;\n break;\n case 'blob':\n body = new Blob([undecodedBody]);\n break;\n }\n // We want to warn users accessing a header provided from the cache\n // That HttpTransferCache alters the headers\n // The warning will be logged a single time by HttpHeaders instance\n let headers = new HttpHeaders(httpHeaders);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Append extra logic in dev mode to produce a warning when a header\n // that was not transferred to the client is accessed in the code via `get`\n // and `has` calls.\n headers = appendMissingHeadersDetection(req.url, headers, headersToInclude ?? []);\n }\n return of(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url,\n }));\n }\n const isServer = isPlatformServer(inject(PLATFORM_ID));\n // Request not found in cache. Make the request and cache it if on the server.\n return next(req).pipe(tap((event) => {\n if (event instanceof HttpResponse && isServer) {\n transferState.set(storeKey, {\n [BODY]: event.body,\n [HEADERS]: getFilteredHeaders(event.headers, headersToInclude),\n [STATUS]: event.status,\n [STATUS_TEXT]: event.statusText,\n [URL]: event.url || '',\n [RESPONSE_TYPE]: req.responseType,\n });\n }\n }));\n}\nfunction getFilteredHeaders(headers, includeHeaders) {\n if (!includeHeaders) {\n return {};\n }\n const headersMap = {};\n for (const key of includeHeaders) {\n const values = headers.getAll(key);\n if (values !== null) {\n headersMap[key] = values;\n }\n }\n return headersMap;\n}\nfunction sortAndConcatParams(params) {\n return [...params.keys()]\n .sort()\n .map((k) => `${k}=${params.getAll(k)}`)\n .join('&');\n}\nfunction makeCacheKey(request) {\n // make the params encoded same as a url so it's easy to identify\n const { params, method, responseType, url } = request;\n const encodedParams = sortAndConcatParams(params);\n let serializedBody = request.serializeBody();\n if (serializedBody instanceof URLSearchParams) {\n serializedBody = sortAndConcatParams(serializedBody);\n }\n else if (typeof serializedBody !== 'string') {\n serializedBody = '';\n }\n const key = [method, responseType, url, serializedBody, encodedParams].join('|');\n const hash = generateHash(key);\n return makeStateKey(hash);\n}\n/**\n * A method that returns a hash representation of a string using a variant of DJB2 hash\n * algorithm.\n *\n * This is the same hashing logic that is used to generate component ids.\n */\nfunction generateHash(value) {\n let hash = 0;\n for (const char of value) {\n hash = (Math.imul(31, hash) + char.charCodeAt(0)) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n return hash.toString();\n}\n/**\n * Returns the DI providers needed to enable HTTP transfer cache.\n *\n * By default, when using server rendering, requests are performed twice: once on the server and\n * other one on the browser.\n *\n * When these providers are added, requests performed on the server are cached and reused during the\n * bootstrapping of the application in the browser thus avoiding duplicate requests and reducing\n * load time.\n *\n */\nfunction withHttpTransferCache(cacheOptions) {\n return [\n {\n provide: CACHE_OPTIONS,\n useFactory: () => {\n ɵperformanceMarkFeature('NgHttpTransferCache');\n return { isCacheActive: true, ...cacheOptions };\n },\n },\n {\n provide: HTTP_ROOT_INTERCEPTOR_FNS,\n useValue: transferCacheInterceptorFn,\n multi: true,\n deps: [TransferState, CACHE_OPTIONS],\n },\n {\n provide: APP_BOOTSTRAP_LISTENER,\n multi: true,\n useFactory: () => {\n const appRef = inject(ApplicationRef);\n const cacheState = inject(CACHE_OPTIONS);\n return () => {\n ɵwhenStable(appRef).then(() => {\n cacheState.isCacheActive = false;\n });\n };\n },\n },\n ];\n}\n/**\n * This function will add a proxy to an HttpHeader to intercept calls to get/has\n * and log a warning if the header entry requested has been removed\n */\nfunction appendMissingHeadersDetection(url, headers, headersToInclude) {\n const warningProduced = new Set();\n return new Proxy(headers, {\n get(target, prop) {\n const value = Reflect.get(target, prop);\n const methods = new Set(['get', 'has', 'getAll']);\n if (typeof value !== 'function' || !methods.has(prop)) {\n return value;\n }\n return (headerName) => {\n // We log when the key has been removed and a warning hasn't been produced for the header\n const key = (prop + ':' + headerName).toLowerCase(); // e.g. `get:cache-control`\n if (!headersToInclude.includes(headerName) && !warningProduced.has(key)) {\n warningProduced.add(key);\n const truncatedUrl = ɵtruncateMiddle(url);\n // TODO: create Error guide for this warning\n console.warn(ɵformatRuntimeError(2802 /* RuntimeErrorCode.HEADERS_ALTERED_BY_TRANSFER_CACHE */, `Angular detected that the \\`${headerName}\\` header is accessed, but the value of the header ` +\n `was not transferred from the server to the client by the HttpTransferCache. ` +\n `To include the value of the \\`${headerName}\\` header for the \\`${truncatedUrl}\\` request, ` +\n `use the \\`includeHeaders\\` list. The \\`includeHeaders\\` can be defined either ` +\n `on a request level by adding the \\`transferCache\\` parameter, or on an application ` +\n `level by adding the \\`httpCacheTransfer.includeHeaders\\` argument to the ` +\n `\\`provideClientHydration()\\` call. `));\n }\n // invoking the original method\n return value.apply(target, [headerName]);\n };\n },\n });\n}\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FetchBackend, HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, HttpInterceptorHandler as ɵHttpInterceptingHandler, HttpInterceptorHandler as ɵHttpInterceptorHandler, PRIMARY_HTTP_BACKEND as ɵPRIMARY_HTTP_BACKEND, withHttpTransferCache as ɵwithHttpTransferCache };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */ Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n producerMustRecompute: () => false,\n producerRecomputeValue: () => { },\n consumerMarkedDirty: () => { },\n consumerOnSignalRead: () => { },\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ?\n `Assertion error: signal read during notification phase` :\n '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] =\n consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n }\n finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined ||\n node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length =\n 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (node.liveConsumerNode.length === 0) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */ Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */ Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */ Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n newValue = node.computation();\n }\n catch (err) {\n newValue = ERRORED;\n node.error = err;\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED &&\n node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n },\n };\n})();\n\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = (() => {\n producerAccessed(node);\n return node.value;\n });\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined,\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\n\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = (cleanupFn) => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node,\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => { };\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: (node) => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN,\n };\n})();\n\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\n\nexport { REACTIVE_NODE, SIGNAL, SIGNAL_NODE, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createSignal, createWatch, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, setActiveConsumer, setAlternateWeakRefImpl, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalSetFn, signalUpdateFn };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { SIGNAL_NODE as SIGNAL_NODE$1, signalSetFn as signalSetFn$1, producerAccessed as producerAccessed$1, SIGNAL as SIGNAL$1, getActiveConsumer as getActiveConsumer$1, setActiveConsumer as setActiveConsumer$1, consumerDestroy as consumerDestroy$1, REACTIVE_NODE as REACTIVE_NODE$1, consumerBeforeComputation as consumerBeforeComputation$1, consumerAfterComputation as consumerAfterComputation$1, consumerPollProducersForChange as consumerPollProducersForChange$1, createSignal as createSignal$1, signalUpdateFn as signalUpdateFn$1, createComputed as createComputed$1, setThrowInvalidWriteToSignalError as setThrowInvalidWriteToSignalError$1, createWatch as createWatch$1 } from '@angular/core/primitives/signals';\nimport { Subject, Subscription, BehaviorSubject } from 'rxjs';\nimport { map, first } from 'rxjs/operators';\n\n/**\n * Base URL for the error details page.\n *\n * Keep this constant in sync across:\n * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n * - packages/core/src/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';\n/**\n * URL for the XSS security documentation.\n */\nconst XSS_SECURITY_URL = 'https://g.co/ng/security#xss';\n\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```\n * throw new RuntimeError(\n * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,\n * ngDevMode && 'Injector has already been destroyed.');\n * ```\n *\n * Note: the `message` argument contains a descriptive error message as a string in development\n * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the\n * `message` argument becomes `false`, thus we account for it in the typings and the runtime\n * logic.\n */\nclass RuntimeError extends Error {\n constructor(code, message) {\n super(formatRuntimeError(code, message));\n this.code = code;\n }\n}\n/**\n * Called to format a runtime error.\n * See additional info on the `message` argument type in the `RuntimeError` class description.\n */\nfunction formatRuntimeError(code, message) {\n // Error code might be a negative number, which is a special marker that instructs the logic to\n // generate a link to the error details page on angular.io.\n // We also prepend `0` to non-compile-time errors.\n const fullCode = `NG0${Math.abs(code)}`;\n let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;\n if (ngDevMode && code < 0) {\n const addPeriodSeparator = !errorMessage.match(/[.,;!?\\n]$/);\n const separator = addPeriodSeparator ? '.' : '';\n errorMessage =\n `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n }\n return errorMessage;\n}\n\nconst REQUIRED_UNSET_VALUE = /* @__PURE__ */ Symbol('InputSignalNode#UNSET');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst INPUT_SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...SIGNAL_NODE$1,\n transformFn: undefined,\n applyValueToInputSignal(node, value) {\n signalSetFn$1(node, value);\n }\n };\n})();\n\nconst ɵINPUT_SIGNAL_BRAND_READ_TYPE = /* @__PURE__ */ Symbol();\nconst ɵINPUT_SIGNAL_BRAND_WRITE_TYPE = /* @__PURE__ */ Symbol();\n/**\n * Creates an input signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required inputs.\n * @param options Additional options for the input. e.g. a transform, or an alias.\n */\nfunction createInputSignal(initialValue, options) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n node.value = initialValue;\n // Perf note: Always set `transformFn` here to ensure that `node` always\n // has the same v8 class shape, allowing monomorphic reads on input signals.\n node.transformFn = options?.transform;\n function inputValueFn() {\n // Record that someone looked at this signal.\n producerAccessed$1(node);\n if (node.value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(-950 /* RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE */, ngDevMode && 'Input is required but no value is available yet.');\n }\n return node.value;\n }\n inputValueFn[SIGNAL$1] = node;\n if (ngDevMode) {\n inputValueFn.toString = () => `[Input Signal: ${inputValueFn()}]`;\n }\n return inputValueFn;\n}\n\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n return { toString: fn }.toString();\n}\n\nconst ANNOTATIONS = '__annotations__';\nconst PARAMETERS = '__parameters__';\nconst PROP_METADATA = '__prop__metadata__';\n/**\n * @suppress {globalThis}\n */\nfunction makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function DecoratorFactory(...args) {\n if (this instanceof DecoratorFactory) {\n metaCtor.call(this, ...args);\n return this;\n }\n const annotationInstance = new DecoratorFactory(...args);\n return function TypeDecorator(cls) {\n if (typeFn)\n typeFn(cls, ...args);\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const annotations = cls.hasOwnProperty(ANNOTATIONS) ?\n cls[ANNOTATIONS] :\n Object.defineProperty(cls, ANNOTATIONS, { value: [] })[ANNOTATIONS];\n annotations.push(annotationInstance);\n if (additionalProcessing)\n additionalProcessing(cls);\n return cls;\n };\n }\n if (parentClass) {\n DecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n DecoratorFactory.prototype.ngMetadataName = name;\n DecoratorFactory.annotationCls = DecoratorFactory;\n return DecoratorFactory;\n });\n}\nfunction makeMetadataCtor(props) {\n return function ctor(...args) {\n if (props) {\n const values = props(...args);\n for (const propName in values) {\n this[propName] = values[propName];\n }\n }\n };\n}\nfunction makeParamDecorator(name, props, parentClass) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function ParamDecoratorFactory(...args) {\n if (this instanceof ParamDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const annotationInstance = new ParamDecoratorFactory(...args);\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n function ParamDecorator(cls, unusedKey, index) {\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const parameters = cls.hasOwnProperty(PARAMETERS) ?\n cls[PARAMETERS] :\n Object.defineProperty(cls, PARAMETERS, { value: [] })[PARAMETERS];\n // there might be gaps if some in between parameters do not have annotations.\n // we pad with nulls.\n while (parameters.length <= index) {\n parameters.push(null);\n }\n (parameters[index] = parameters[index] || []).push(annotationInstance);\n return cls;\n }\n }\n if (parentClass) {\n ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n ParamDecoratorFactory.prototype.ngMetadataName = name;\n ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;\n return ParamDecoratorFactory;\n });\n}\nfunction makePropDecorator(name, props, parentClass, additionalProcessing) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function PropDecoratorFactory(...args) {\n if (this instanceof PropDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const decoratorInstance = new PropDecoratorFactory(...args);\n function PropDecorator(target, name) {\n // target is undefined with standard decorators. This case is not supported and will throw\n // if this decorator is used in JIT mode with standard decorators.\n if (target === undefined) {\n throw new Error('Standard Angular field decorators are not supported in JIT mode.');\n }\n const constructor = target.constructor;\n // Use of Object.defineProperty is important because it creates a non-enumerable property\n // which prevents the property from being copied during subclassing.\n const meta = constructor.hasOwnProperty(PROP_METADATA) ?\n constructor[PROP_METADATA] :\n Object.defineProperty(constructor, PROP_METADATA, { value: {} })[PROP_METADATA];\n meta[name] = meta.hasOwnProperty(name) && meta[name] || [];\n meta[name].unshift(decoratorInstance);\n if (additionalProcessing)\n additionalProcessing(target, name, ...args);\n }\n return PropDecorator;\n }\n if (parentClass) {\n PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n PropDecoratorFactory.prototype.ngMetadataName = name;\n PropDecoratorFactory.annotationCls = PropDecoratorFactory;\n return PropDecoratorFactory;\n });\n}\n\nconst _global = globalThis;\n\nfunction ngDevModeResetPerfCounters() {\n const locationString = typeof location !== 'undefined' ? location.toString() : '';\n const newCounters = {\n namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n firstCreatePass: 0,\n tNode: 0,\n tView: 0,\n rendererCreateTextNode: 0,\n rendererSetText: 0,\n rendererCreateElement: 0,\n rendererAddEventListener: 0,\n rendererSetAttribute: 0,\n rendererRemoveAttribute: 0,\n rendererSetProperty: 0,\n rendererSetClassName: 0,\n rendererAddClass: 0,\n rendererRemoveClass: 0,\n rendererSetStyle: 0,\n rendererRemoveStyle: 0,\n rendererDestroy: 0,\n rendererDestroyNode: 0,\n rendererMoveNode: 0,\n rendererRemoveNode: 0,\n rendererAppendChild: 0,\n rendererInsertBefore: 0,\n rendererCreateComment: 0,\n hydratedNodes: 0,\n hydratedComponents: 0,\n dehydratedViewsRemoved: 0,\n dehydratedViewsCleanupRuns: 0,\n componentsSkippedHydration: 0,\n };\n // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n if (!allowNgDevModeTrue) {\n _global['ngDevMode'] = false;\n }\n else {\n if (typeof _global['ngDevMode'] !== 'object') {\n _global['ngDevMode'] = {};\n }\n Object.assign(_global['ngDevMode'], newCounters);\n }\n return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n // reset the counters.\n // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n // yet.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {\n ngDevModeResetPerfCounters();\n }\n return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n }\n return false;\n}\n\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n for (let key in objWithPropertyToExtract) {\n if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n return key;\n }\n }\n throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\n\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n return (before == null || before === '') ?\n (after === null ? '' : after) :\n ((after == null || after === '') ? before : before + ' ' + after);\n}\n/**\n * Ellipses the string in the middle when longer than the max length\n *\n * @param string\n * @param maxLength of the output string\n * @returns ellipsed string with ... in the middle\n */\nfunction truncateMiddle(str, maxLength = 100) {\n if (!str || maxLength < 1 || str.length <= maxLength)\n return str;\n if (maxLength == 1)\n return str.substring(0, 1) + '...';\n const halfLimit = Math.round(maxLength / 2);\n return str.substring(0, halfLimit) + '...' + str.substring(str.length - halfLimit);\n}\n\nconst __forward_ref__ = getClosureSafeProperty({ __forward_ref__: getClosureSafeProperty });\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * `forwardRef` is also used to break circularities in standalone components imports.\n *\n * @usageNotes\n * ### Circular dependency example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n *\n * ### Circular standalone reference import example\n * ```ts\n * @Component({\n * standalone: true,\n * imports: [ChildComponent],\n * selector: 'app-parent',\n * template: `<app-child [hideParent]=\"hideParent\"></app-child>`,\n * })\n * export class ParentComponent {\n * @Input() hideParent: boolean;\n * }\n *\n *\n * @Component({\n * standalone: true,\n * imports: [CommonModule, forwardRef(() => ParentComponent)],\n * selector: 'app-child',\n * template: `<app-parent *ngIf=\"!hideParent\"></app-parent>`,\n * })\n * export class ChildComponent {\n * @Input() hideParent: boolean;\n * }\n * ```\n *\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () {\n return stringify(this());\n };\n return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see {@link forwardRef}\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) &&\n fn.__forward_ref__ === forwardRef;\n}\n\n// The functions in this file verify that the assumptions we are making\nfunction assertNumber(actual, msg) {\n if (!(typeof actual === 'number')) {\n throwError(msg, typeof actual, 'number', '===');\n }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n assertNumber(actual, 'Expected a number');\n assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n if (!(typeof actual === 'string')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n }\n}\nfunction assertFunction(actual, msg) {\n if (!(typeof actual === 'function')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n }\n}\nfunction assertEqual(actual, expected, msg) {\n if (!(actual == expected)) {\n throwError(msg, actual, expected, '==');\n }\n}\nfunction assertNotEqual(actual, expected, msg) {\n if (!(actual != expected)) {\n throwError(msg, actual, expected, '!=');\n }\n}\nfunction assertSame(actual, expected, msg) {\n if (!(actual === expected)) {\n throwError(msg, actual, expected, '===');\n }\n}\nfunction assertNotSame(actual, expected, msg) {\n if (!(actual !== expected)) {\n throwError(msg, actual, expected, '!==');\n }\n}\nfunction assertLessThan(actual, expected, msg) {\n if (!(actual < expected)) {\n throwError(msg, actual, expected, '<');\n }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n if (!(actual <= expected)) {\n throwError(msg, actual, expected, '<=');\n }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n if (!(actual > expected)) {\n throwError(msg, actual, expected, '>');\n }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n if (!(actual >= expected)) {\n throwError(msg, actual, expected, '>=');\n }\n}\nfunction assertNotDefined(actual, msg) {\n if (actual != null) {\n throwError(msg, actual, null, '==');\n }\n}\nfunction assertDefined(actual, msg) {\n if (actual == null) {\n throwError(msg, actual, null, '!=');\n }\n}\nfunction throwError(msg, actual, expected, comparison) {\n throw new Error(`ASSERTION ERROR: ${msg}` +\n (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n if (!(node instanceof Node)) {\n throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n }\n}\nfunction assertElement(node) {\n if (!(node instanceof Element)) {\n throwError(`The provided value must be an element but got ${stringify(node)}`);\n }\n}\nfunction assertIndexInRange(arr, index) {\n assertDefined(arr, 'Array must be defined.');\n const maxLen = arr.length;\n if (index < 0 || index >= maxLen) {\n throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n }\n}\nfunction assertOneOf(value, ...validValues) {\n if (validValues.indexOf(value) !== -1)\n return true;\n throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\nfunction assertNotReactive(fn) {\n if (getActiveConsumer$1() !== null) {\n throwError(`${fn}() should never be called in a reactive context.`);\n }\n}\n\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n * provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n * The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection\n * of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n return {\n token: opts.token,\n providedIn: opts.providedIn || null,\n factory: opts.factory,\n value: undefined,\n };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n * either have a factory or point to a type which has a `ɵprov` static property (the\n * type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n * whose providers will also be added to the injector. Locally provided types will override\n * providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n return { providers: options.providers || [], imports: options.imports || [] };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\nfunction isInjectable(type) {\n return getInjectableDef(type) !== null;\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n * scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n if (def) {\n ngDevMode &&\n console.warn(`DEPRECATED: DI is instantiating a token \"${type.name}\" that inherits its @Injectable decorator but does not provide one itself.\\n` +\n `This will become an error in a future version of Angular. Please add @Injectable() to the \"${type.name}\" class.`);\n return def;\n }\n else {\n return null;\n }\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ?\n type[NG_INJ_DEF] :\n null;\n}\nconst NG_PROV_DEF = getClosureSafeProperty({ ɵprov: getClosureSafeProperty });\nconst NG_INJ_DEF = getClosureSafeProperty({ ɵinj: getClosureSafeProperty });\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = getClosureSafeProperty({ ngInjectableDef: getClosureSafeProperty });\nconst NG_INJECTOR_DEF = getClosureSafeProperty({ ngInjectorDef: getClosureSafeProperty });\n\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n * <div class=\"alert is-helpful\">\n *\n * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the\n * provider and the injection call. Creating a new instance of `InjectionToken` in different places,\n * even with the same description, will be treated as different tokens by Angular's DI system,\n * leading to a `NullInjectorError`.\n *\n * </div>\n *\n * <code-example format=\"typescript\" language=\"typescript\" path=\"injection-token/src/main.ts\"\n * region=\"InjectionToken\"></code-example>\n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the [`inject`](api/core/inject) function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:\n * this option is now deprecated). As mentioned above, `'root'` is the default value for\n * `providedIn`.\n *\n * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nclass InjectionToken {\n /**\n * @param _desc Description for the token,\n * used only for debugging purposes,\n * it should but does not need to be unique\n * @param options Options for the token's usage, as described above\n */\n constructor(_desc, options) {\n this._desc = _desc;\n /** @internal */\n this.ngMetadataName = 'InjectionToken';\n this.ɵprov = undefined;\n if (typeof options == 'number') {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n assertLessThan(options, 0, 'Only negative numbers are supported here');\n // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n // See `InjectorMarkers`\n this.__NG_ELEMENT_ID__ = options;\n }\n else if (options !== undefined) {\n this.ɵprov = ɵɵdefineInjectable({\n token: this,\n providedIn: options.providedIn || 'root',\n factory: options.factory,\n });\n }\n }\n /**\n * @internal\n */\n get multi() {\n return this;\n }\n toString() {\n return `InjectionToken ${this._desc}`;\n }\n}\n\nlet _injectorProfilerContext;\nfunction getInjectorProfilerContext() {\n !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');\n return _injectorProfilerContext;\n}\nfunction setInjectorProfilerContext(context) {\n !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');\n const previous = _injectorProfilerContext;\n _injectorProfilerContext = context;\n return previous;\n}\nlet injectorProfilerCallback = null;\n/**\n * Sets the callback function which will be invoked during certain DI events within the\n * runtime (for example: injecting services, creating injectable instances, configuring providers)\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setInjectorProfiler = (injectorProfiler) => {\n !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');\n injectorProfilerCallback = injectorProfiler;\n};\n/**\n * Injector profiler function which emits on DI events executed by the runtime.\n *\n * @param event InjectorProfilerEvent corresponding to the DI event being emitted\n */\nfunction injectorProfiler(event) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n if (injectorProfilerCallback != null /* both `null` and `undefined` */) {\n injectorProfilerCallback(event);\n }\n}\n/**\n * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the\n * emitted event includes the raw provider, as well as the token that provider is providing.\n *\n * @param eventProvider A provider object\n */\nfunction emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n let token;\n // if the provider is a TypeProvider (typeof provider is function) then the token is the\n // provider itself\n if (typeof eventProvider === 'function') {\n token = eventProvider;\n }\n // if the provider is an injection token, then the token is the injection token.\n else if (eventProvider instanceof InjectionToken) {\n token = eventProvider;\n }\n // in all other cases we can access the token via the `provide` property of the provider\n else {\n token = resolveForwardRef(eventProvider.provide);\n }\n let provider = eventProvider;\n // Injection tokens may define their own default provider which gets attached to the token itself\n // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the\n // token itself.\n if (eventProvider instanceof InjectionToken) {\n provider = eventProvider.ɵprov || eventProvider;\n }\n injectorProfiler({\n type: 2 /* InjectorProfilerEventType.ProviderConfigured */,\n context: getInjectorProfilerContext(),\n providerRecord: { token, provider, isViewProvider }\n });\n}\n/**\n * Emits an event to the injector profiler with the instance that was created. Note that\n * the injector associated with this emission can be accessed by using getDebugInjectContext()\n *\n * @param instance an object created by an injector\n */\nfunction emitInstanceCreatedByInjectorEvent(instance) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,\n context: getInjectorProfilerContext(),\n instance: { value: instance }\n });\n}\n/**\n * @param token DI token associated with injected service\n * @param value the instance of the injected service (i.e the result of `inject(token)`)\n * @param flags the flags that the token was injected with\n */\nfunction emitInjectEvent(token, value, flags) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 0 /* InjectorProfilerEventType.Inject */,\n context: getInjectorProfilerContext(),\n service: { token, value, flags }\n });\n}\nfunction runInInjectorProfilerContext(injector, token, callback) {\n !ngDevMode &&\n throwError('runInInjectorProfilerContext should never be called in production mode');\n const prevInjectContext = setInjectorProfilerContext({ injector, token });\n try {\n callback();\n }\n finally {\n setInjectorProfilerContext(prevInjectContext);\n }\n}\n\nfunction isEnvironmentProviders(value) {\n return value && !!value.ɵproviders;\n}\n\nconst NG_COMP_DEF = getClosureSafeProperty({ ɵcmp: getClosureSafeProperty });\nconst NG_DIR_DEF = getClosureSafeProperty({ ɵdir: getClosureSafeProperty });\nconst NG_PIPE_DEF = getClosureSafeProperty({ ɵpipe: getClosureSafeProperty });\nconst NG_MOD_DEF = getClosureSafeProperty({ ɵmod: getClosureSafeProperty });\nconst NG_FACTORY_DEF = getClosureSafeProperty({ ɵfac: getClosureSafeProperty });\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = getClosureSafeProperty({ __NG_ELEMENT_ID__: getClosureSafeProperty });\n/**\n * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:\n * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution\n * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.\n *\n * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and\n * improve tree-shaking.\n */\nconst NG_ENV_ID = getClosureSafeProperty({ __NG_ENV_ID__: getClosureSafeProperty });\n\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n if (typeof value === 'string')\n return value;\n if (value == null)\n return '';\n // Use `String` so that it invokes the `toString` method of the value. Note that this\n // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n *\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n if (typeof value === 'function')\n return value.name || value.toString();\n if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n return value.type.name || value.type.toString();\n }\n return renderStringify(value);\n}\n/**\n * Used to stringify a `Type` and including the file path and line number in which it is defined, if\n * possible, for better debugging experience.\n *\n * Important! This function contains a megamorphic read and should only be used for error messages.\n */\nfunction debugStringifyTypeForError(type) {\n // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating\n // circular deps.\n let componentDef = type[NG_COMP_DEF] || null;\n if (componentDef !== null && componentDef.debugInfo) {\n return stringifyTypeFromDebugInfo(componentDef.debugInfo);\n }\n return stringifyForError(type);\n}\n// TODO(pmvald): Do some refactoring so that we can use the type ClassDebugInfo for the param\n// debugInfo here without creating circular deps.\nfunction stringifyTypeFromDebugInfo(debugInfo) {\n if (!debugInfo.filePath || !debugInfo.lineNumber) {\n return debugInfo.className;\n }\n else {\n return `${debugInfo.className} (at ${debugInfo.filePath}:${debugInfo.lineNumber})`;\n }\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, ngDevMode ? `Circular dependency in DI detected for ${token}${depPath}` : token);\n}\nfunction throwMixedMultiProviderError() {\n throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n if (ngModuleType && providers) {\n const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');\n throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);\n }\n else if (isEnvironmentProviders(provider)) {\n if (provider.ɵfromNgModule) {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);\n }\n else {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);\n }\n }\n else {\n throw new Error('Invalid provider');\n }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n const errorMessage = ngDevMode &&\n `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ''}`;\n throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, errorMessage);\n}\n\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for [`inject`](api/core/inject) instead.\n */\nvar InjectFlags;\n(function (InjectFlags) {\n // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n // writes exports of it into ngfactory files.\n /** Check self and check parent injector if needed */\n InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n /** Don't ascend to ancestors of the node requesting injection. */\n InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n /** Skip the node that is requesting injection. */\n InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n /** Inject `defaultValue` instead if token not found. */\n InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n})(InjectFlags || (InjectFlags = {}));\n\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n * 1. `Injector` should not depend on ivy logic.\n * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n const previous = _injectImplementation;\n _injectImplementation = impl;\n return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n const injectableDef = getInjectableDef(token);\n if (injectableDef && injectableDef.providedIn == 'root') {\n return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() :\n injectableDef.value;\n }\n if (flags & InjectFlags.Optional)\n return null;\n if (notFoundValue !== undefined)\n return notFoundValue;\n throwProviderNotFoundError(token, 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n ngDevMode &&\n assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\n\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction getCurrentInjector() {\n return _currentInjector;\n}\nfunction setCurrentInjector(injector) {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n if (_currentInjector === undefined) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&\n `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \\`runInInjectionContext\\`.`);\n }\n else if (_currentInjector === null) {\n return injectRootLimpMode(token, undefined, flags);\n }\n else {\n const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode &&\n `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);\n}\n/**\n * Injects a token from the currently active injector.\n * `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can\n * be used during:\n * - Construction (via the `constructor`) of a class being instantiated by the DI system, such\n * as an `@Injectable` or `@Component`.\n * - In the initializer for fields of such classes.\n * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.\n * - In the `factory` function specified for an `InjectionToken`.\n * - In a stackframe of a function call in a DI context\n *\n * @param token A token that represents a dependency that should be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.\n * @returns the injected value if operation is successful, `null` otherwise.\n * @throws if called outside of a supported context.\n *\n * @usageNotes\n * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a\n * field initializer:\n *\n * ```typescript\n * @Injectable({providedIn: 'root'})\n * export class Car {\n * radio: Radio|undefined;\n * // OK: field initializer\n * spareTyre = inject(Tyre);\n *\n * constructor() {\n * // OK: constructor body\n * this.radio = inject(Radio);\n * }\n * }\n * ```\n *\n * It is also legal to call `inject` from a provider's factory:\n *\n * ```typescript\n * providers: [\n * {provide: Car, useFactory: () => {\n * // OK: a class factory\n * const engine = inject(Engine);\n * return new Car(engine);\n * }}\n * ]\n * ```\n *\n * Calls to the `inject()` function outside of the class creation context will result in error. Most\n * notably, calls to `inject()` are disallowed after a class instance was created, in methods\n * (including lifecycle hooks):\n *\n * ```typescript\n * @Component({ ... })\n * export class CarComponent {\n * ngOnInit() {\n * // ERROR: too late, the component instance was already created\n * const engine = inject(Engine);\n * engine.start();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction inject(token, flags = InjectFlags.Default) {\n // The `as any` here _shouldn't_ be necessary, but without it JSCompiler\n // throws a disambiguation error due to the multiple signatures.\n return ɵɵinject(token, convertToBitFlags(flags));\n}\n// Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).\nfunction convertToBitFlags(flags) {\n if (typeof flags === 'undefined' || typeof flags === 'number') {\n return flags;\n }\n // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in\n // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from\n // `InjectOptions` to `InjectFlags`.\n return (0 /* InternalInjectFlags.Default */ | // comment to force a line break in the formatter\n (flags.optional && 8 /* InternalInjectFlags.Optional */) |\n (flags.host && 1 /* InternalInjectFlags.Host */) |\n (flags.self && 2 /* InternalInjectFlags.Self */) |\n (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */));\n}\nfunction injectArgs(types) {\n const args = [];\n for (let i = 0; i < types.length; i++) {\n const arg = resolveForwardRef(types[i]);\n if (Array.isArray(arg)) {\n if (arg.length === 0) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');\n }\n let type = undefined;\n let flags = InjectFlags.Default;\n for (let j = 0; j < arg.length; j++) {\n const meta = arg[j];\n const flag = getInjectFlag(meta);\n if (typeof flag === 'number') {\n // Special case when we handle @Inject decorator.\n if (flag === -1 /* DecoratorFlags.Inject */) {\n type = meta.token;\n }\n else {\n flags |= flag;\n }\n }\n else {\n type = meta;\n }\n }\n args.push(ɵɵinject(type, flags));\n }\n else {\n args.push(ɵɵinject(arg));\n }\n }\n return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n decorator[DI_DECORATOR_FLAG] = flag;\n decorator.prototype[DI_DECORATOR_FLAG] = flag;\n return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n const tokenPath = e[NG_TEMP_TOKEN_PATH];\n if (token[SOURCE]) {\n tokenPath.unshift(token[SOURCE]);\n }\n e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n e[NG_TOKEN_PATH] = tokenPath;\n e[NG_TEMP_TOKEN_PATH] = null;\n throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;\n let context = stringify(obj);\n if (Array.isArray(obj)) {\n context = obj.map(stringify).join(' -> ');\n }\n else if (typeof obj === 'object') {\n let parts = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n let value = obj[key];\n parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n }\n }\n context = `{${parts.join(', ')}}`;\n }\n return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n ')}`;\n}\n\n/**\n * Inject decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Inject = attachInjectFlag(\n// Disable tslint because `DecoratorFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nmakeParamDecorator('Inject', (token) => ({ token })), -1 /* DecoratorFlags.Inject */);\n/**\n * Optional decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Optional = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Optional'), 8 /* InternalInjectFlags.Optional */);\n/**\n * Self decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Self = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Self'), 2 /* InternalInjectFlags.Self */);\n/**\n * `SkipSelf` decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst SkipSelf = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('SkipSelf'), 4 /* InternalInjectFlags.SkipSelf */);\n/**\n * Host decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Host = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Host'), 1 /* InternalInjectFlags.Host */);\n\nfunction getFactoryDef(type, throwNotFound) {\n const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);\n if (!hasFactoryDef && throwNotFound === true && ngDevMode) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);\n }\n return hasFactoryDef ? type[NG_FACTORY_DEF] : null;\n}\n\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n * the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++) {\n let valueA = a[i];\n let valueB = b[i];\n if (identityAccessor) {\n valueA = identityAccessor(valueA);\n valueB = identityAccessor(valueB);\n }\n if (valueB !== valueA) {\n return false;\n }\n }\n return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list) {\n return list.flat(Number.POSITIVE_INFINITY);\n}\nfunction deepForEach(input, fn) {\n input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));\n}\nfunction addToArray(arr, index, value) {\n // perf: array.push is faster than array.splice!\n if (index >= arr.length) {\n arr.push(value);\n }\n else {\n arr.splice(index, 0, value);\n }\n}\nfunction removeFromArray(arr, index) {\n // perf: array.pop is faster than array.splice!\n if (index >= arr.length - 1) {\n return arr.pop();\n }\n else {\n return arr.splice(index, 1)[0];\n }\n}\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n const length = array.length - count;\n while (index < length) {\n array[index] = array[index + count];\n index++;\n }\n while (count--) {\n array.pop(); // shrink the array\n }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n while (end > index) {\n const previousEnd = end - 1;\n array[end] = array[previousEnd];\n end = previousEnd;\n }\n array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n if (end == index) {\n // inserting at the end.\n array.push(value1, value2);\n }\n else if (end === 1) {\n // corner case when we have less items in array than we have items to insert.\n array.push(value2, array[0]);\n array[0] = value1;\n }\n else {\n end--;\n array.push(array[end - 1], array[end]);\n while (end > index) {\n const previousEnd = end - 2;\n array[end] = array[previousEnd];\n end--;\n }\n array[index] = value1;\n array[index + 1] = value2;\n }\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * located)\n */\nfunction arrayIndexOfSorted(array, value) {\n return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n let index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it set it.\n keyValueArray[index | 1] = value;\n }\n else {\n index = ~index;\n arrayInsert2(keyValueArray, index, key, value);\n }\n return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it retrieve it.\n return keyValueArray[index | 1];\n }\n return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n * - positive (even) index if key found.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n * - positive (even) index if key found and deleted.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it remove it.\n arraySplice(keyValueArray, index, 2);\n }\n return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n * - `0` means look at every location\n * - `1` means only look at every other (even) location (the odd locations are to be ignored as\n * they are values.)\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n let start = 0;\n let end = array.length >> shift;\n while (end !== start) {\n const middle = start + ((end - start) >> 1); // find the middle.\n const current = array[middle << shift];\n if (value === current) {\n return (middle << shift);\n }\n else if (current > value) {\n end = middle;\n }\n else {\n start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n }\n }\n return ~(end << shift);\n}\n\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {\n // These property accesses can be ignored because ngDevMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // tslint:disable-next-line:no-toplevel-property-access\n Object.freeze(EMPTY_OBJ);\n // tslint:disable-next-line:no-toplevel-property-access\n Object.freeze(EMPTY_ARRAY);\n}\n\n/**\n * A multi-provider token for initialization functions that will run upon construction of an\n * environment injector.\n *\n * @publicApi\n */\nconst ENVIRONMENT_INITIALIZER = new InjectionToken(ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');\n\n/**\n * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\n *\n * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a\n * project.\n *\n * @publicApi\n */\nconst INJECTOR$1 = new InjectionToken(ngDevMode ? 'INJECTOR' : '', \n// Disable tslint because this is const enum which gets inlined not top level prop access.\n// tslint:disable-next-line: no-toplevel-property-access\n-1 /* InjectorMarkers.Injector */);\n\nconst INJECTOR_DEF_TYPES = new InjectionToken(ngDevMode ? 'INJECTOR_DEF_TYPES' : '');\n\nclass NullInjector {\n get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n if (notFoundValue === THROW_IF_NOT_FOUND) {\n const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);\n error.name = 'NullInjectorError';\n throw error;\n }\n return notFoundValue;\n }\n}\n\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy;\n(function (ChangeDetectionStrategy) {\n /**\n * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n * Change detection can still be explicitly invoked.\n * This strategy applies to all child directives and cannot be overridden.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * Use the default `CheckAlways` strategy, in which change detection is automatic until\n * explicitly deactivated.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));\n\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation$1;\n(function (ViewEncapsulation) {\n // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n // https://github.com/angular/angular/issues/44119 for additional information.\n /**\n * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n * component's host element and applying the same attribute to all the CSS selectors provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n /**\n * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n * to any HTML element of the application regardless of their host Component.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n /**\n * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n * a ShadowRoot for the component's host element which is then used to encapsulate\n * all the Component's styling.\n */\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));\n\n/** Flags describing an input for a directive. */\nvar InputFlags;\n(function (InputFlags) {\n InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n})(InputFlags || (InputFlags = {}));\n\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n let end = className.length;\n while (true) {\n const foundIndex = className.indexOf(classToSearch, startingIndex);\n if (foundIndex === -1)\n return foundIndex;\n if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has leading whitespace\n const length = classToSearch.length;\n if (foundIndex + length === end ||\n className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has trailing whitespace\n return foundIndex;\n }\n }\n // False positive, keep searching from where we left off.\n startingIndex = foundIndex + 1;\n }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n * attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n let i = 0;\n while (i < attrs.length) {\n const value = attrs[i];\n if (typeof value === 'number') {\n // only namespaces are supported. Other value types (such as style/class\n // entries) are not supported in this function.\n if (value !== 0 /* AttributeMarker.NamespaceURI */) {\n break;\n }\n // we just landed on the marker value ... therefore\n // we should skip to the next entry\n i++;\n const namespaceURI = attrs[i++];\n const attrName = attrs[i++];\n const attrVal = attrs[i++];\n ngDevMode && ngDevMode.rendererSetAttribute++;\n renderer.setAttribute(native, attrName, attrVal, namespaceURI);\n }\n else {\n // attrName is string;\n const attrName = value;\n const attrVal = attrs[++i];\n // Standard attributes\n ngDevMode && ngDevMode.rendererSetAttribute++;\n if (isAnimationProp(attrName)) {\n renderer.setProperty(native, attrName, attrVal);\n }\n else {\n renderer.setAttribute(native, attrName, attrVal);\n }\n i++;\n }\n }\n // another piece of code may iterate over the same attributes array. Therefore\n // it may be helpful to return the exact spot where the attributes array exited\n // whether by running into an unsupported marker or if all the static values were\n // iterated over.\n return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n return marker === 3 /* AttributeMarker.Bindings */ || marker === 4 /* AttributeMarker.Template */ ||\n marker === 6 /* AttributeMarker.I18n */;\n}\nfunction isAnimationProp(name) {\n // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n // charCodeAt doesn't allocate memory to return a substring.\n return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n if (src === null || src.length === 0) {\n // do nothing\n }\n else if (dst === null || dst.length === 0) {\n // We have source, but dst is empty, just make a copy.\n dst = src.slice();\n }\n else {\n let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n for (let i = 0; i < src.length; i++) {\n const item = src[i];\n if (typeof item === 'number') {\n srcMarker = item;\n }\n else {\n if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {\n // Case where we need to consume `key1`, `key2`, `value` items.\n }\n else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ ||\n srcMarker === 2 /* AttributeMarker.Styles */) {\n // Case where we have to consume `key1` and `value` only.\n mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n }\n else {\n // Case where we have to consume `key1` only.\n mergeHostAttribute(dst, srcMarker, item, null, null);\n }\n }\n }\n }\n return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n let i = 0;\n // Assume that new markers will be inserted at the end.\n let markerInsertPosition = dst.length;\n // scan until correct type.\n if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {\n markerInsertPosition = -1;\n }\n else {\n while (i < dst.length) {\n const dstValue = dst[i++];\n if (typeof dstValue === 'number') {\n if (dstValue === marker) {\n markerInsertPosition = -1;\n break;\n }\n else if (dstValue > marker) {\n // We need to save this as we want the markers to be inserted in specific order.\n markerInsertPosition = i - 1;\n break;\n }\n }\n }\n }\n // search until you find place of insertion\n while (i < dst.length) {\n const item = dst[i];\n if (typeof item === 'number') {\n // since `i` started as the index after the marker, we did not find it if we are at the next\n // marker\n break;\n }\n else if (item === key1) {\n // We already have same token\n if (key2 === null) {\n if (value !== null) {\n dst[i + 1] = value;\n }\n return;\n }\n else if (key2 === dst[i + 1]) {\n dst[i + 2] = value;\n return;\n }\n }\n // Increment counter.\n i++;\n if (key2 !== null)\n i++;\n if (value !== null)\n i++;\n }\n // insert at location.\n if (markerInsertPosition !== -1) {\n dst.splice(markerInsertPosition, 0, marker);\n i = markerInsertPosition + 1;\n }\n dst.splice(i++, 0, key1);\n if (key2 !== null) {\n dst.splice(i++, 0, key2);\n }\n if (value !== null) {\n dst.splice(i++, 0, value);\n }\n}\n\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param tNode static data of the node to match\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n * addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(tNode, attrs, cssClassToMatch, isProjectionMode) {\n ngDevMode &&\n assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n let i = 0;\n if (isProjectionMode) {\n for (; i < attrs.length && typeof attrs[i] === 'string'; i += 2) {\n // Search for an implicit `class` attribute and check if its value matches `cssClassToMatch`.\n if (attrs[i] === 'class' &&\n classIndexOf(attrs[i + 1].toLowerCase(), cssClassToMatch, 0) !== -1) {\n return true;\n }\n }\n }\n else if (isInlineTemplate(tNode)) {\n // Matching directives (i.e. when not matching for projection mode) should not consider the\n // class bindings that are present on inline templates, as those class bindings only target\n // the root node of the template, not the template itself.\n return false;\n }\n // Resume the search for classes after the `Classes` marker.\n i = attrs.indexOf(1 /* AttributeMarker.Classes */, i);\n if (i > -1) {\n // We found the classes section. Start searching for the class.\n let item;\n while (++i < attrs.length && typeof (item = attrs[i]) === 'string') {\n if (item.toLowerCase() === cssClassToMatch) {\n return true;\n }\n }\n }\n return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param tNode static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n let mode = 4 /* SelectorFlags.ELEMENT */;\n const nodeAttrs = tNode.attrs;\n // Find the index of first attribute that has no value, only a name.\n const nameOnlyMarkerIdx = nodeAttrs !== null ? getNameOnlyMarkerIndex(nodeAttrs) : 0;\n // When processing \":not\" selectors, we skip to the next \":not\" if the\n // current one doesn't match\n let skipToNextSelector = false;\n for (let i = 0; i < selector.length; i++) {\n const current = selector[i];\n if (typeof current === 'number') {\n // If we finish processing a :not selector and it hasn't failed, return false\n if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n return false;\n }\n // If we are skipping to the next :not() and this mode flag is positive,\n // it's a part of the current :not() selector, and we should keep skipping\n if (skipToNextSelector && isPositive(current))\n continue;\n skipToNextSelector = false;\n mode = current | (mode & 1 /* SelectorFlags.NOT */);\n continue;\n }\n if (skipToNextSelector)\n continue;\n if (mode & 4 /* SelectorFlags.ELEMENT */) {\n mode = 2 /* SelectorFlags.ATTRIBUTE */ | mode & 1 /* SelectorFlags.NOT */;\n if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) ||\n current === '' && selector.length === 1) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n else if (mode & 8 /* SelectorFlags.CLASS */) {\n if (nodeAttrs === null || !isCssClassMatching(tNode, nodeAttrs, current, isProjectionMode)) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n else {\n const selectorAttrValue = selector[++i];\n const attrIndexInNode = findAttrIndexInNode(current, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n if (attrIndexInNode === -1) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n continue;\n }\n if (selectorAttrValue !== '') {\n let nodeAttrValue;\n if (attrIndexInNode > nameOnlyMarkerIdx) {\n nodeAttrValue = '';\n }\n else {\n ngDevMode &&\n assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');\n // we lowercase the attribute value to be able to match\n // selectors without case-sensitivity\n // (selectors are already in lowercase when generated)\n nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n }\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n }\n }\n return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n return (mode & 1 /* SelectorFlags.NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive | NO | NO | YES | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive | YES | YES | NO | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g `<ng-template>`).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n if (attrs === null)\n return -1;\n let i = 0;\n if (isProjectionMode || !isInlineTemplate) {\n let bindingsMode = false;\n while (i < attrs.length) {\n const maybeAttrName = attrs[i];\n if (maybeAttrName === name) {\n return i;\n }\n else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {\n bindingsMode = true;\n }\n else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || maybeAttrName === 2 /* AttributeMarker.Styles */) {\n let value = attrs[++i];\n // We should skip classes here because we have a separate mechanism for\n // matching classes in projection mode.\n while (typeof value === 'string') {\n value = attrs[++i];\n }\n continue;\n }\n else if (maybeAttrName === 4 /* AttributeMarker.Template */) {\n // We do not care about Template attributes in this scenario.\n break;\n }\n else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {\n // Skip the whole namespaced attribute and value. This is by design.\n i += 4;\n continue;\n }\n // In binding mode there are only names, rather than name-value pairs.\n i += bindingsMode ? 1 : 2;\n }\n // We did not match the attribute\n return -1;\n }\n else {\n return matchTemplateAttribute(attrs, name);\n }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n for (let i = 0; i < selector.length; i++) {\n if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n return true;\n }\n }\n return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n const nodeAttrs = tNode.attrs;\n if (nodeAttrs != null) {\n const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);\n // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n // (attribute names are stored at even indexes)\n if ((ngProjectAsAttrIdx & 1) === 0) {\n return nodeAttrs[ngProjectAsAttrIdx + 1];\n }\n }\n return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n for (let i = 0; i < nodeAttrs.length; i++) {\n const nodeAttr = nodeAttrs[i];\n if (isNameOnlyAttributeMarker(nodeAttr)) {\n return i;\n }\n }\n return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n let i = attrs.indexOf(4 /* AttributeMarker.Template */);\n if (i > -1) {\n i++;\n while (i < attrs.length) {\n const attr = attrs[i];\n // Return in case we checked all template attrs and are switching to the next section in the\n // attrs array (that starts with a number that represents an attribute marker).\n if (typeof attr === 'number')\n return -1;\n if (attr === name)\n return i;\n i++;\n }\n }\n return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n selectorListLoop: for (let i = 0; i < list.length; i++) {\n const currentSelectorInList = list[i];\n if (selector.length !== currentSelectorInList.length) {\n continue;\n }\n for (let j = 0; j < selector.length; j++) {\n if (selector[j] !== currentSelectorInList[j]) {\n continue selectorListLoop;\n }\n }\n return true;\n }\n return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n let result = selector[0];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n let currentChunk = '';\n let isNegativeMode = false;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {\n const attrValue = selector[++i];\n currentChunk +=\n '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n }\n else if (mode & 8 /* SelectorFlags.CLASS */) {\n currentChunk += '.' + valueOrMarker;\n }\n else if (mode & 4 /* SelectorFlags.ELEMENT */) {\n currentChunk += ' ' + valueOrMarker;\n }\n }\n else {\n //\n // Append current chunk to the final result in case we come across SelectorFlag, which\n // indicates that the previous section of a selector is over. We need to accumulate content\n // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n // ```\n // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n // ```\n // should be transformed to `.classA :not(.classB .classC)`.\n //\n // Note: for negative selector part, we accumulate content between flags until we find the\n // next negative flag. This is needed to support a case where `:not()` rule contains more than\n // one chunk, e.g. the following selector:\n // ```\n // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n // ```\n // should be stringified to `:not(p.foo) :not(.bar)`\n //\n if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n currentChunk = '';\n }\n mode = valueOrMarker;\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector.\n isNegativeMode = isNegativeMode || !isPositive(mode);\n }\n i++;\n }\n if (currentChunk !== '') {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n }\n return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n const attrs = [];\n const classes = [];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {\n if (valueOrMarker !== '') {\n attrs.push(valueOrMarker, selector[++i]);\n }\n }\n else if (mode === 8 /* SelectorFlags.CLASS */) {\n classes.push(valueOrMarker);\n }\n }\n else {\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n // extracted only for \"positive\" part of the selector, we can stop here.\n if (!isPositive(mode))\n break;\n mode = valueOrMarker;\n }\n i++;\n }\n return { attrs, classes };\n}\n\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyComponent {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵcmp = defineComponent({\n * ...\n * });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n return noSideEffects(() => {\n // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n const baseDef = getNgDirectiveDef(componentDefinition);\n const def = {\n ...baseDef,\n decls: componentDefinition.decls,\n vars: componentDefinition.vars,\n template: componentDefinition.template,\n consts: componentDefinition.consts || null,\n ngContentSelectors: componentDefinition.ngContentSelectors,\n onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n directiveDefs: null, // assigned in noSideEffects\n pipeDefs: null, // assigned in noSideEffects\n dependencies: baseDef.standalone && componentDefinition.dependencies || null,\n getStandaloneInjector: null,\n signals: componentDefinition.signals ?? false,\n data: componentDefinition.data || {},\n encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n styles: componentDefinition.styles || EMPTY_ARRAY,\n _: null,\n schemas: componentDefinition.schemas || null,\n tView: null,\n id: '',\n };\n initFeatures(def);\n const dependencies = componentDefinition.dependencies;\n def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */ false);\n def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */ true);\n def.id = getComponentId(def);\n return def;\n });\n}\nfunction extractDirectiveDef(type) {\n return getComponentDef(type) || getDirectiveDef(type);\n}\nfunction nonNull(value) {\n return value !== null;\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n return noSideEffects(() => {\n const res = {\n type: def.type,\n bootstrap: def.bootstrap || EMPTY_ARRAY,\n declarations: def.declarations || EMPTY_ARRAY,\n imports: def.imports || EMPTY_ARRAY,\n exports: def.exports || EMPTY_ARRAY,\n transitiveCompileScopes: null,\n schemas: def.schemas || null,\n id: def.id || null,\n };\n return res;\n });\n}\nfunction parseAndConvertBindingsForDefinition(obj, declaredInputs) {\n if (obj == null)\n return EMPTY_OBJ;\n const newLookup = {};\n for (const minifiedKey in obj) {\n if (obj.hasOwnProperty(minifiedKey)) {\n const value = obj[minifiedKey];\n let publicName;\n let declaredName;\n let inputFlags = InputFlags.None;\n if (Array.isArray(value)) {\n inputFlags = value[0];\n publicName = value[1];\n declaredName = value[2] ?? publicName; // declared name might not be set to save bytes.\n }\n else {\n publicName = value;\n declaredName = value;\n }\n // For inputs, capture the declared name, or if some flags are set.\n if (declaredInputs) {\n // Perf note: An array is only allocated for the input if there are flags.\n newLookup[publicName] =\n inputFlags !== InputFlags.None ? [minifiedKey, inputFlags] : minifiedKey;\n declaredInputs[publicName] = declaredName;\n }\n else {\n newLookup[publicName] = minifiedKey;\n }\n }\n }\n return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵdir = ɵɵdefineDirective({\n * ...\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdefineDirective(directiveDefinition) {\n return noSideEffects(() => {\n const def = getNgDirectiveDef(directiveDefinition);\n initFeatures(def);\n return def;\n });\n}\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\n * class MyPipe implements PipeTransform {\n * // Generated by Angular Template Compiler\n * static ɵpipe = definePipe({\n * ...\n * });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n return {\n type: pipeDef.type,\n name: pipeDef.name,\n factory: null,\n pure: pipeDef.pure !== false,\n standalone: pipeDef.standalone === true,\n onDestroy: pipeDef.type.prototype.ngOnDestroy || null\n };\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n return type[NG_PIPE_DEF] || null;\n}\n/**\n * Checks whether a given Component, Directive or Pipe is marked as standalone.\n * This will return false if passed anything other than a Component, Directive, or Pipe class\n * See [this guide](/guide/standalone-components) for additional information:\n *\n * @param type A reference to a Component, Directive or Pipe.\n * @publicApi\n */\nfunction isStandalone(type) {\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n return def !== null ? def.standalone : false;\n}\nfunction getNgModuleDef(type, throwNotFound) {\n const ngModuleDef = type[NG_MOD_DEF] || null;\n if (!ngModuleDef && throwNotFound === true) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n }\n return ngModuleDef;\n}\nfunction getNgDirectiveDef(directiveDefinition) {\n const declaredInputs = {};\n return {\n type: directiveDefinition.type,\n providersResolver: null,\n factory: null,\n hostBindings: directiveDefinition.hostBindings || null,\n hostVars: directiveDefinition.hostVars || 0,\n hostAttrs: directiveDefinition.hostAttrs || null,\n contentQueries: directiveDefinition.contentQueries || null,\n declaredInputs: declaredInputs,\n inputTransforms: null,\n inputConfig: directiveDefinition.inputs || EMPTY_OBJ,\n exportAs: directiveDefinition.exportAs || null,\n standalone: directiveDefinition.standalone === true,\n signals: directiveDefinition.signals === true,\n selectors: directiveDefinition.selectors || EMPTY_ARRAY,\n viewQuery: directiveDefinition.viewQuery || null,\n features: directiveDefinition.features || null,\n setInput: null,\n findHostDirectiveDefs: null,\n hostDirectives: null,\n inputs: parseAndConvertBindingsForDefinition(directiveDefinition.inputs, declaredInputs),\n outputs: parseAndConvertBindingsForDefinition(directiveDefinition.outputs),\n debugInfo: null,\n };\n}\nfunction initFeatures(definition) {\n definition.features?.forEach((fn) => fn(definition));\n}\nfunction extractDefListOrFactory(dependencies, pipeDef) {\n if (!dependencies) {\n return null;\n }\n const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;\n return () => (typeof dependencies === 'function' ? dependencies() : dependencies)\n .map(dep => defExtractor(dep))\n .filter(nonNull);\n}\n/**\n * A map that contains the generated component IDs and type.\n */\nconst GENERATED_COMP_IDS = new Map();\n/**\n * A method can returns a component ID from the component definition using a variant of DJB2 hash\n * algorithm.\n */\nfunction getComponentId(componentDef) {\n let hash = 0;\n // We cannot rely solely on the component selector as the same selector can be used in different\n // modules.\n //\n // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server\n // component styles has no sourcemaps and browsers do.\n //\n // Example:\n // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248\n // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32\n const hashSelectors = [\n componentDef.selectors,\n componentDef.ngContentSelectors,\n componentDef.hostVars,\n componentDef.hostAttrs,\n componentDef.consts,\n componentDef.vars,\n componentDef.decls,\n componentDef.encapsulation,\n componentDef.standalone,\n componentDef.signals,\n componentDef.exportAs,\n JSON.stringify(componentDef.inputs),\n JSON.stringify(componentDef.outputs),\n // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not\n // match in the server and browser bundles.\n Object.getOwnPropertyNames(componentDef.type.prototype),\n !!componentDef.contentQueries,\n !!componentDef.viewQuery,\n ].join('|');\n for (const char of hashSelectors) {\n hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n const compId = 'c' + hash;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (GENERATED_COMP_IDS.has(compId)) {\n const previousCompDefType = GENERATED_COMP_IDS.get(compId);\n if (previousCompDefType !== componentDef.type) {\n console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef\n .selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));\n }\n }\n else {\n GENERATED_COMP_IDS.set(compId, componentDef.type);\n }\n }\n return compId;\n}\n\n/**\n * Wrap an array of `Provider`s into `EnvironmentProviders`, preventing them from being accidentally\n * referenced in `@Component` in a component injector.\n */\nfunction makeEnvironmentProviders(providers) {\n return {\n ɵproviders: providers,\n };\n}\n/**\n * Collects providers from all NgModules and standalone components, including transitively imported\n * ones.\n *\n * Providers extracted via `importProvidersFrom` are only usable in an application injector or\n * another environment injector (such as a route injector). They should not be used in component\n * providers.\n *\n * More information about standalone components can be found in [this\n * guide](guide/standalone-components).\n *\n * @usageNotes\n * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ]\n * });\n * ```\n *\n * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a\n * standalone component is used:\n *\n * ```typescript\n * export const ROUTES: Route[] = [\n * {\n * path: 'foo',\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ],\n * component: YourStandaloneComponent\n * }\n * ];\n * ```\n *\n * @returns Collected providers from the specified list of types.\n * @publicApi\n */\nfunction importProvidersFrom(...sources) {\n return {\n ɵproviders: internalImportProvidersFrom(true, sources),\n ɵfromNgModule: true,\n };\n}\nfunction internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {\n const providersOut = [];\n const dedup = new Set(); // already seen types\n let injectorTypesWithProviders;\n const collectProviders = (provider) => {\n providersOut.push(provider);\n };\n deepForEach(sources, source => {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && checkForStandaloneCmp) {\n const cmpDef = getComponentDef(source);\n if (cmpDef?.standalone) {\n throw new RuntimeError(800 /* RuntimeErrorCode.IMPORT_PROVIDERS_FROM_STANDALONE */, `Importing providers supports NgModule or ModuleWithProviders but got a standalone component \"${stringifyForError(source)}\"`);\n }\n }\n // Narrow `source` to access the internal type analogue for `ModuleWithProviders`.\n const internalSource = source;\n if (walkProviderTree(internalSource, collectProviders, [], dedup)) {\n injectorTypesWithProviders ||= [];\n injectorTypesWithProviders.push(internalSource);\n }\n });\n // Collect all providers from `ModuleWithProviders` types.\n if (injectorTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(injectorTypesWithProviders, collectProviders);\n }\n return providersOut;\n}\n/**\n * Collects all providers from the list of `ModuleWithProviders` and appends them to the provided\n * array.\n */\nfunction processInjectorTypesWithProviders(typesWithProviders, visitor) {\n for (let i = 0; i < typesWithProviders.length; i++) {\n const { ngModule, providers } = typesWithProviders[i];\n deepForEachProvider(providers, provider => {\n ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);\n visitor(provider, ngModule);\n });\n }\n}\n/**\n * The logic visits an `InjectorType`, an `InjectorTypeWithProviders`, or a standalone\n * `ComponentType`, and all of its transitive providers and collects providers.\n *\n * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,\n * the function will return \"true\" to indicate that the providers of the type definition need\n * to be processed. This allows us to process providers of injector types after all imports of\n * an injector definition are processed. (following View Engine semantics: see FW-1349)\n */\nfunction walkProviderTree(container, visitor, parents, dedup) {\n container = resolveForwardRef(container);\n if (!container)\n return false;\n // The actual type which had the definition. Usually `container`, but may be an unwrapped type\n // from `InjectorTypeWithProviders`.\n let defType = null;\n let injDef = getInjectorDef(container);\n const cmpDef = !injDef && getComponentDef(container);\n if (!injDef && !cmpDef) {\n // `container` is not an injector type or a component type. It might be:\n // * An `InjectorTypeWithProviders` that wraps an injector type.\n // * A standalone directive or pipe that got pulled in from a standalone component's\n // dependencies.\n // Try to unwrap it as an `InjectorTypeWithProviders` first.\n const ngModule = container.ngModule;\n injDef = getInjectorDef(ngModule);\n if (injDef) {\n defType = ngModule;\n }\n else {\n // Not a component or injector type, so ignore it.\n return false;\n }\n }\n else if (cmpDef && !cmpDef.standalone) {\n return false;\n }\n else {\n defType = container;\n }\n // Check for circular dependencies.\n if (ngDevMode && parents.indexOf(defType) !== -1) {\n const defName = stringify(defType);\n const path = parents.map(stringify);\n throwCyclicDependencyError(defName, path);\n }\n // Check for multiple imports of the same module\n const isDuplicate = dedup.has(defType);\n if (cmpDef) {\n if (isDuplicate) {\n // This component definition has already been processed.\n return false;\n }\n dedup.add(defType);\n if (cmpDef.dependencies) {\n const deps = typeof cmpDef.dependencies === 'function' ? cmpDef.dependencies() : cmpDef.dependencies;\n for (const dep of deps) {\n walkProviderTree(dep, visitor, parents, dedup);\n }\n }\n }\n else if (injDef) {\n // First, include providers from any imports.\n if (injDef.imports != null && !isDuplicate) {\n // Before processing defType's imports, add it to the set of parents. This way, if it ends\n // up deeply importing itself, this can be detected.\n ngDevMode && parents.push(defType);\n // Add it to the set of dedups. This way we can detect multiple imports of the same module\n dedup.add(defType);\n let importTypesWithProviders;\n try {\n deepForEach(injDef.imports, imported => {\n if (walkProviderTree(imported, visitor, parents, dedup)) {\n importTypesWithProviders ||= [];\n // If the processed import is an injector type with providers, we store it in the\n // list of import types with providers, so that we can process those afterwards.\n importTypesWithProviders.push(imported);\n }\n });\n }\n finally {\n // Remove it from the parents set when finished.\n ngDevMode && parents.pop();\n }\n // Imports which are declared with providers (TypeWithProviders) need to be processed\n // after all imported modules are processed. This is similar to how View Engine\n // processes/merges module imports in the metadata resolver. See: FW-1349.\n if (importTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(importTypesWithProviders, visitor);\n }\n }\n if (!isDuplicate) {\n // Track the InjectorType and add a provider for it.\n // It's important that this is done after the def's imports.\n const factory = getFactoryDef(defType) || (() => new defType());\n // Append extra providers to make more info available for consumers (to retrieve an injector\n // type), as well as internally (to calculate an injection scope correctly and eagerly\n // instantiate a `defType` when an injector is created).\n // Provider to create `defType` using its factory.\n visitor({ provide: defType, useFactory: factory, deps: EMPTY_ARRAY }, defType);\n // Make this `defType` available to an internal logic that calculates injector scope.\n visitor({ provide: INJECTOR_DEF_TYPES, useValue: defType, multi: true }, defType);\n // Provider to eagerly instantiate `defType` via `INJECTOR_INITIALIZER`.\n visitor({ provide: ENVIRONMENT_INITIALIZER, useValue: () => ɵɵinject(defType), multi: true }, defType);\n }\n // Next, include providers listed on the definition itself.\n const defProviders = injDef.providers;\n if (defProviders != null && !isDuplicate) {\n const injectorType = container;\n deepForEachProvider(defProviders, provider => {\n ngDevMode && validateProvider(provider, defProviders, injectorType);\n visitor(provider, injectorType);\n });\n }\n }\n else {\n // Should not happen, but just in case.\n return false;\n }\n return (defType !== container &&\n container.providers !== undefined);\n}\nfunction validateProvider(provider, providers, containerType) {\n if (isTypeProvider(provider) || isValueProvider(provider) || isFactoryProvider(provider) ||\n isExistingProvider(provider)) {\n return;\n }\n // Here we expect the provider to be a `useClass` provider (by elimination).\n const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n if (!classRef) {\n throwInvalidProviderError(containerType, providers, provider);\n }\n}\nfunction deepForEachProvider(providers, fn) {\n for (let provider of providers) {\n if (isEnvironmentProviders(provider)) {\n provider = provider.ɵproviders;\n }\n if (Array.isArray(provider)) {\n deepForEachProvider(provider, fn);\n }\n else {\n fn(provider);\n }\n }\n}\nconst USE_VALUE$1 = getClosureSafeProperty({ provide: String, useValue: getClosureSafeProperty });\nfunction isValueProvider(value) {\n return value !== null && typeof value == 'object' && USE_VALUE$1 in value;\n}\nfunction isExistingProvider(value) {\n return !!(value && value.useExisting);\n}\nfunction isFactoryProvider(value) {\n return !!(value && value.useFactory);\n}\nfunction isTypeProvider(value) {\n return typeof value === 'function';\n}\nfunction isClassProvider(value) {\n return !!value.useClass;\n}\n\n/**\n * An internal token whose presence in an injector indicates that the injector should treat itself\n * as a root scoped injector when processing requests for unknown tokens which may indicate\n * they are provided in the root scope.\n */\nconst INJECTOR_SCOPE = new InjectionToken(ngDevMode ? 'Set Injector scope.' : '');\n\n/**\n * Marker which indicates that a value has not yet been created from the factory function.\n */\nconst NOT_YET = {};\n/**\n * Marker which indicates that the factory function for a token is in the process of being called.\n *\n * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates\n * injection of a dependency has recursively attempted to inject the original token, and there is\n * a circular dependency among the providers.\n */\nconst CIRCULAR = {};\n/**\n * A lazily initialized NullInjector.\n */\nlet NULL_INJECTOR = undefined;\nfunction getNullInjector() {\n if (NULL_INJECTOR === undefined) {\n NULL_INJECTOR = new NullInjector();\n }\n return NULL_INJECTOR;\n}\n/**\n * An `Injector` that's part of the environment injector hierarchy, which exists outside of the\n * component tree.\n */\nclass EnvironmentInjector {\n}\nclass R3Injector extends EnvironmentInjector {\n /**\n * Flag indicating that this injector was previously destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n constructor(providers, parent, source, scopes) {\n super();\n this.parent = parent;\n this.source = source;\n this.scopes = scopes;\n /**\n * Map of tokens to records which contain the instances of those tokens.\n * - `null` value implies that we don't have the record. Used by tree-shakable injectors\n * to prevent further searches.\n */\n this.records = new Map();\n /**\n * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n */\n this._ngOnDestroyHooks = new Set();\n this._onDestroyHooks = [];\n this._destroyed = false;\n // Start off by creating Records for every provider.\n forEachSingleProvider(providers, provider => this.processProvider(provider));\n // Make sure the INJECTOR token provides this injector.\n this.records.set(INJECTOR$1, makeRecord(undefined, this));\n // And `EnvironmentInjector` if the current injector is supposed to be env-scoped.\n if (scopes.has('environment')) {\n this.records.set(EnvironmentInjector, makeRecord(undefined, this));\n }\n // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide\n // any injectable scoped to APP_ROOT_SCOPE.\n const record = this.records.get(INJECTOR_SCOPE);\n if (record != null && typeof record.value === 'string') {\n this.scopes.add(record.value);\n }\n this.injectorDefTypes = new Set(this.get(INJECTOR_DEF_TYPES, EMPTY_ARRAY, InjectFlags.Self));\n }\n /**\n * Destroy the injector and release references to every instance or provider associated with it.\n *\n * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a\n * hook was found.\n */\n destroy() {\n this.assertNotDestroyed();\n // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n this._destroyed = true;\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Call all the lifecycle hooks.\n for (const service of this._ngOnDestroyHooks) {\n service.ngOnDestroy();\n }\n const onDestroyHooks = this._onDestroyHooks;\n // Reset the _onDestroyHooks array before iterating over it to prevent hooks that unregister\n // themselves from mutating the array during iteration.\n this._onDestroyHooks = [];\n for (const hook of onDestroyHooks) {\n hook();\n }\n }\n finally {\n // Release all references.\n this.records.clear();\n this._ngOnDestroyHooks.clear();\n this.injectorDefTypes.clear();\n setActiveConsumer$1(prevConsumer);\n }\n }\n onDestroy(callback) {\n this.assertNotDestroyed();\n this._onDestroyHooks.push(callback);\n return () => this.removeOnDestroy(callback);\n }\n runInContext(fn) {\n this.assertNotDestroyed();\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({ injector: this, token: null });\n }\n try {\n return fn();\n }\n finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n this.assertNotDestroyed();\n if (token.hasOwnProperty(NG_ENV_ID)) {\n return token[NG_ENV_ID](this);\n }\n flags = convertToBitFlags(flags);\n // Set the injection context.\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({ injector: this, token: token });\n }\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n // Check for the SkipSelf flag.\n if (!(flags & InjectFlags.SkipSelf)) {\n // SkipSelf isn't set, check if the record belongs to this injector.\n let record = this.records.get(token);\n if (record === undefined) {\n // No record, but maybe the token is scoped to this injector. Look for an injectable\n // def with a scope matching this injector.\n const def = couldBeInjectableType(token) && getInjectableDef(token);\n if (def && this.injectableDefInScope(def)) {\n // Found an injectable def and it's scoped to this injector. Pretend as if it was here\n // all along.\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n emitProviderConfiguredEvent(token);\n });\n }\n record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);\n }\n else {\n record = null;\n }\n this.records.set(token, record);\n }\n // If a record was found, get the instance for it and return it.\n if (record != null /* NOT null || undefined */) {\n return this.hydrate(token, record);\n }\n }\n // Select the next injector based on the Self flag - if self is set, the next injector is\n // the NullInjector, otherwise it's the parent.\n const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();\n // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue\n // is undefined, the value is null, otherwise it's the notFoundValue.\n notFoundValue = (flags & InjectFlags.Optional) && notFoundValue === THROW_IF_NOT_FOUND ?\n null :\n notFoundValue;\n return nextInjector.get(token, notFoundValue);\n }\n catch (e) {\n if (e.name === 'NullInjectorError') {\n const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];\n path.unshift(stringify(token));\n if (previousInjector) {\n // We still have a parent injector, keep throwing\n throw e;\n }\n else {\n // Format & throw the final error message when we don't have any previous injector\n return catchInjectorError(e, token, 'R3InjectorError', this.source);\n }\n }\n else {\n throw e;\n }\n }\n finally {\n // Lastly, restore the previous injection context.\n setInjectImplementation(previousInjectImplementation);\n setCurrentInjector(previousInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n /** @internal */\n resolveInjectorInitializers() {\n const prevConsumer = setActiveConsumer$1(null);\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({ injector: this, token: null });\n }\n try {\n const initializers = this.get(ENVIRONMENT_INITIALIZER, EMPTY_ARRAY, InjectFlags.Self);\n if (ngDevMode && !Array.isArray(initializers)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' +\n `(expected an array, but got ${typeof initializers}). ` +\n 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' +\n '`multi: true` provider.');\n }\n for (const initializer of initializers) {\n initializer();\n }\n }\n finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n setActiveConsumer$1(prevConsumer);\n }\n }\n toString() {\n const tokens = [];\n const records = this.records;\n for (const token of records.keys()) {\n tokens.push(stringify(token));\n }\n return `R3Injector[${tokens.join(', ')}]`;\n }\n assertNotDestroyed() {\n if (this._destroyed) {\n throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');\n }\n }\n /**\n * Process a `SingleProvider` and add it.\n */\n processProvider(provider) {\n // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n // property.\n provider = resolveForwardRef(provider);\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);\n // Construct a `Record` for the provider.\n const record = providerToRecord(provider);\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n // Emit InjectorProfilerEventType.Create if provider is a value provider because\n // these are the only providers that do not go through the value hydration logic\n // where this event would normally be emitted from.\n if (isValueProvider(provider)) {\n emitInstanceCreatedByInjectorEvent(provider.useValue);\n }\n emitProviderConfiguredEvent(provider);\n });\n }\n if (!isTypeProvider(provider) && provider.multi === true) {\n // If the provider indicates that it's a multi-provider, process it specially.\n // First check whether it's been defined already.\n let multiRecord = this.records.get(token);\n if (multiRecord) {\n // It has. Throw a nice error if\n if (ngDevMode && multiRecord.multi === undefined) {\n throwMixedMultiProviderError();\n }\n }\n else {\n multiRecord = makeRecord(undefined, NOT_YET, true);\n multiRecord.factory = () => injectArgs(multiRecord.multi);\n this.records.set(token, multiRecord);\n }\n token = provider;\n multiRecord.multi.push(provider);\n }\n else {\n if (ngDevMode) {\n const existing = this.records.get(token);\n if (existing && existing.multi !== undefined) {\n throwMixedMultiProviderError();\n }\n }\n }\n this.records.set(token, record);\n }\n hydrate(token, record) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n if (ngDevMode && record.value === CIRCULAR) {\n throwCyclicDependencyError(stringify(token));\n }\n else if (record.value === NOT_YET) {\n record.value = CIRCULAR;\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n record.value = record.factory();\n emitInstanceCreatedByInjectorEvent(record.value);\n });\n }\n else {\n record.value = record.factory();\n }\n }\n if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {\n this._ngOnDestroyHooks.add(record.value);\n }\n return record.value;\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n injectableDefInScope(def) {\n if (!def.providedIn) {\n return false;\n }\n const providedIn = resolveForwardRef(def.providedIn);\n if (typeof providedIn === 'string') {\n return providedIn === 'any' || (this.scopes.has(providedIn));\n }\n else {\n return this.injectorDefTypes.has(providedIn);\n }\n }\n removeOnDestroy(callback) {\n const destroyCBIdx = this._onDestroyHooks.indexOf(callback);\n if (destroyCBIdx !== -1) {\n this._onDestroyHooks.splice(destroyCBIdx, 1);\n }\n }\n}\nfunction injectableDefOrInjectorDefFactory(token) {\n // Most tokens will have an injectable def directly on them, which specifies a factory directly.\n const injectableDef = getInjectableDef(token);\n const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);\n if (factory !== null) {\n return factory;\n }\n // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.\n // If it's missing that, it's an error.\n if (token instanceof InjectionToken) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Token ${stringify(token)} is missing a ɵprov definition.`);\n }\n // Undecorated types can sometimes be created if they have no constructor arguments.\n if (token instanceof Function) {\n return getUndecoratedInjectableFactory(token);\n }\n // There was no way to resolve a factory for this token.\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'unreachable');\n}\nfunction getUndecoratedInjectableFactory(token) {\n // If the token has parameters then it has dependencies that we cannot resolve implicitly.\n const paramLength = token.length;\n if (paramLength > 0) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode &&\n `Can't resolve all parameters for ${stringify(token)}: (${newArray(paramLength, '?').join(', ')}).`);\n }\n // The constructor function appears to have no parameters.\n // This might be because it inherits from a super-class. In which case, use an injectable\n // def from an ancestor if there is one.\n // Otherwise this really is a simple class with no dependencies, so return a factory that\n // just instantiates the zero-arg constructor.\n const inheritedInjectableDef = getInheritedInjectableDef(token);\n if (inheritedInjectableDef !== null) {\n return () => inheritedInjectableDef.factory(token);\n }\n else {\n return () => new token();\n }\n}\nfunction providerToRecord(provider) {\n if (isValueProvider(provider)) {\n return makeRecord(undefined, provider.useValue);\n }\n else {\n const factory = providerToFactory(provider);\n return makeRecord(factory, NOT_YET);\n }\n}\n/**\n * Converts a `SingleProvider` into a factory function.\n *\n * @param provider provider to convert to factory\n */\nfunction providerToFactory(provider, ngModuleType, providers) {\n let factory = undefined;\n if (ngDevMode && isEnvironmentProviders(provider)) {\n throwInvalidProviderError(undefined, providers, provider);\n }\n if (isTypeProvider(provider)) {\n const unwrappedProvider = resolveForwardRef(provider);\n return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n }\n else {\n if (isValueProvider(provider)) {\n factory = () => resolveForwardRef(provider.useValue);\n }\n else if (isFactoryProvider(provider)) {\n factory = () => provider.useFactory(...injectArgs(provider.deps || []));\n }\n else if (isExistingProvider(provider)) {\n factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));\n }\n else {\n const classRef = resolveForwardRef(provider &&\n (provider.useClass || provider.provide));\n if (ngDevMode && !classRef) {\n throwInvalidProviderError(ngModuleType, providers, provider);\n }\n if (hasDeps(provider)) {\n factory = () => new (classRef)(...injectArgs(provider.deps));\n }\n else {\n return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);\n }\n }\n }\n return factory;\n}\nfunction makeRecord(factory, value, multi = false) {\n return {\n factory: factory,\n value: value,\n multi: multi ? [] : undefined,\n };\n}\nfunction hasDeps(value) {\n return !!value.deps;\n}\nfunction hasOnDestroy(value) {\n return value !== null && typeof value === 'object' &&\n typeof value.ngOnDestroy === 'function';\n}\nfunction couldBeInjectableType(value) {\n return (typeof value === 'function') ||\n (typeof value === 'object' && value instanceof InjectionToken);\n}\nfunction forEachSingleProvider(providers, fn) {\n for (const provider of providers) {\n if (Array.isArray(provider)) {\n forEachSingleProvider(provider, fn);\n }\n else if (provider && isEnvironmentProviders(provider)) {\n forEachSingleProvider(provider.ɵproviders, fn);\n }\n else {\n fn(provider);\n }\n }\n}\n\n/**\n * Runs the given function in the [context](guide/dependency-injection-context) of the given\n * `Injector`.\n *\n * Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies\n * from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in\n * any asynchronous callbacks or after any `await` points.\n *\n * @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`\n * is executing\n * @param fn the closure to be run in the context of `injector`\n * @returns the return value of the function, if any\n * @publicApi\n */\nfunction runInInjectionContext(injector, fn) {\n if (injector instanceof R3Injector) {\n injector.assertNotDestroyed();\n }\n let prevInjectorProfilerContext;\n if (ngDevMode) {\n prevInjectorProfilerContext = setInjectorProfilerContext({ injector, token: null });\n }\n const prevInjector = setCurrentInjector(injector);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n return fn();\n }\n finally {\n setCurrentInjector(prevInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectorProfilerContext);\n setInjectImplementation(previousInjectImplementation);\n }\n}\n/**\n * Whether the current stack frame is inside an injection context.\n */\nfunction isInInjectionContext() {\n return getInjectImplementation() !== undefined || getCurrentInjector() != null;\n}\n/**\n * Asserts that the current stack frame is within an [injection\n * context](guide/dependency-injection-context) and has access to `inject`.\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertInInjectionContext(debugFn) {\n // Taking a `Function` instead of a string name here prevents the unminified name of the function\n // from being retained in the bundle regardless of minification.\n if (!isInInjectionContext()) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&\n (debugFn.name +\n '() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`'));\n }\n}\n\nvar FactoryTarget;\n(function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n})(FactoryTarget || (FactoryTarget = {}));\nvar R3TemplateDependencyKind;\n(function (R3TemplateDependencyKind) {\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Directive\"] = 0] = \"Directive\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Pipe\"] = 1] = \"Pipe\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"NgModule\"] = 2] = \"NgModule\";\n})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));\nvar ViewEncapsulation;\n(function (ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation || (ViewEncapsulation = {}));\n\nfunction getCompilerFacade(request) {\n const globalNg = _global['ng'];\n if (globalNg && globalNg.ɵcompilerFacade) {\n return globalNg.ɵcompilerFacade;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Log the type as an error so that a developer can easily navigate to the type from the\n // console.\n console.error(`JIT compilation failed for ${request.kind}`, request.type);\n let message = `The ${request.kind} '${request\n .type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\\n\\n`;\n if (request.usage === 1 /* JitCompilerUsage.PartialDeclaration */) {\n message += `The ${request.kind} is part of a library that has been partially compiled.\\n`;\n message +=\n `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n message += '\\n';\n message +=\n `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n }\n else {\n message +=\n `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n }\n message +=\n `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n message +=\n `or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.`;\n throw new Error(message);\n }\n else {\n throw new Error('JIT compiler unavailable');\n }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreDiEnv = {\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'resolveForwardRef': resolveForwardRef,\n};\n\n/**\n * @description\n *\n * Represents a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by\n * the `MyCustomComponent` constructor function.\n *\n * @publicApi\n */\nconst Type = Function;\nfunction isType(v) {\n return typeof v === 'function';\n}\n\n/*\n * #########################\n * Attention: These Regular expressions have to hold even if the code is minified!\n * ##########################\n */\n/**\n * Regular expression that detects pass-through constructors for ES5 output. This Regex\n * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also\n * it intends to capture the pattern where existing constructors have been downleveled from\n * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.\n *\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spread(arguments)) || this;\n * ```\n *\n * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;\n * ```\n *\n * More details can be found in: https://github.com/angular/angular/issues/38453.\n */\nconst ES5_DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*(arguments|(?:[^()]+\\(\\[\\],)?[^()]+\\(arguments\\).*)\\)/;\n/** Regular expression that detects ES2015 classes which extend from other classes. */\nconst ES2015_INHERITED_CLASS = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes and\n * have an explicit constructor defined.\n */\nconst ES2015_INHERITED_CLASS_WITH_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes\n * and inherit a constructor.\n */\nconst ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(\\)\\s*{[^}]*super\\(\\.\\.\\.arguments\\)/;\n/**\n * Determine whether a stringified type is a class which delegates its constructor\n * to its parent.\n *\n * This is not trivial since compiled code can actually contain a constructor function\n * even if the original source code did not. For instance, when the child class contains\n * an initialized instance property.\n */\nfunction isDelegateCtor(typeStr) {\n return ES5_DELEGATE_CTOR.test(typeStr) ||\n ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) ||\n (ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr));\n}\nclass ReflectionCapabilities {\n constructor(reflect) {\n this._reflect = reflect || _global['Reflect'];\n }\n factory(t) {\n return (...args) => new t(...args);\n }\n /** @internal */\n _zipTypesAndAnnotations(paramTypes, paramAnnotations) {\n let result;\n if (typeof paramTypes === 'undefined') {\n result = newArray(paramAnnotations.length);\n }\n else {\n result = newArray(paramTypes.length);\n }\n for (let i = 0; i < result.length; i++) {\n // TS outputs Object for parameters without types, while Traceur omits\n // the annotations. For now we preserve the Traceur behavior to aid\n // migration, but this can be revisited.\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n }\n else if (paramTypes[i] && paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n }\n else {\n result[i] = [];\n }\n if (paramAnnotations && paramAnnotations[i] != null) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n }\n _ownParameters(type, parentCtor) {\n const typeStr = type.toString();\n // If we have no decorators, we only have function.length as metadata.\n // In that case, to detect whether a child class declared an own constructor or not,\n // we need to look inside of that constructor to check whether it is\n // just calling the parent.\n // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\n // that sets 'design:paramtypes' to []\n // if a class inherits from another class but has no ctor declared itself.\n if (isDelegateCtor(typeStr)) {\n return null;\n }\n // Prefer the direct API.\n if (type.parameters && type.parameters !== parentCtor.parameters) {\n return type.parameters;\n }\n // API of tsickle for lowering decorators to properties on the class.\n const tsickleCtorParams = type.ctorParameters;\n if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\n // Newer tsickle uses a function closure\n // Retain the non-function case for compatibility with older tsickle\n const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\n const paramTypes = ctorParameters.map((ctorParam) => ctorParam && ctorParam.type);\n const paramAnnotations = ctorParameters.map((ctorParam) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // API for metadata created by invoking the decorators.\n const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];\n const paramTypes = this._reflect && this._reflect.getOwnMetadata &&\n this._reflect.getOwnMetadata('design:paramtypes', type);\n if (paramTypes || paramAnnotations) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // If a class has no decorators, at least create metadata\n // based on function.length.\n // Note: We know that this is a real constructor as we checked\n // the content of the constructor above.\n return newArray(type.length);\n }\n parameters(type) {\n // Note: only report metadata if we have at least one class decorator\n // to stay in sync with the static reflector.\n if (!isType(type)) {\n return [];\n }\n const parentCtor = getParentCtor(type);\n let parameters = this._ownParameters(type, parentCtor);\n if (!parameters && parentCtor !== Object) {\n parameters = this.parameters(parentCtor);\n }\n return parameters || [];\n }\n _ownAnnotations(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {\n let annotations = typeOrFunc.annotations;\n if (typeof annotations === 'function' && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {\n return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n return typeOrFunc[ANNOTATIONS];\n }\n return null;\n }\n annotations(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return [];\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\n return parentAnnotations.concat(ownAnnotations);\n }\n _ownPropMetadata(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.propMetadata &&\n typeOrFunc.propMetadata !== parentCtor.propMetadata) {\n let propMetadata = typeOrFunc.propMetadata;\n if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.propDecorators &&\n typeOrFunc.propDecorators !== parentCtor.propDecorators) {\n const propDecorators = typeOrFunc.propDecorators;\n const propMetadata = {};\n Object.keys(propDecorators).forEach(prop => {\n propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);\n });\n return propMetadata;\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n return typeOrFunc[PROP_METADATA];\n }\n return null;\n }\n propMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const propMetadata = {};\n if (parentCtor !== Object) {\n const parentPropMetadata = this.propMetadata(parentCtor);\n Object.keys(parentPropMetadata).forEach((propName) => {\n propMetadata[propName] = parentPropMetadata[propName];\n });\n }\n const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n if (ownPropMetadata) {\n Object.keys(ownPropMetadata).forEach((propName) => {\n const decorators = [];\n if (propMetadata.hasOwnProperty(propName)) {\n decorators.push(...propMetadata[propName]);\n }\n decorators.push(...ownPropMetadata[propName]);\n propMetadata[propName] = decorators;\n });\n }\n return propMetadata;\n }\n ownPropMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};\n }\n hasLifecycleHook(type, lcProperty) {\n return type instanceof Type && lcProperty in type.prototype;\n }\n}\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n if (!decoratorInvocations) {\n return [];\n }\n return decoratorInvocations.map(decoratorInvocation => {\n const decoratorType = decoratorInvocation.type;\n const annotationCls = decoratorType.annotationCls;\n const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n return new annotationCls(...annotationArgs);\n });\n}\nfunction getParentCtor(ctor) {\n const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;\n const parentCtor = parentProto ? parentProto.constructor : null;\n // Note: We always use `Object` as the null value\n // to simplify checking later on.\n return parentCtor || Object;\n}\n\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\n// Shared with LContainer\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst T_HOST = 5;\n// End shared with LContainer\nconst HYDRATION = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR = 9;\nconst ENVIRONMENT = 10;\nconst RENDERER = 11;\nconst CHILD_HEAD = 12;\nconst CHILD_TAIL = 13;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 14;\nconst DECLARATION_COMPONENT_VIEW = 15;\nconst DECLARATION_LCONTAINER = 16;\nconst PREORDER_HOOK_FLAGS = 17;\nconst QUERIES = 18;\nconst ID = 19;\nconst EMBEDDED_VIEW_INJECTOR = 20;\nconst ON_DESTROY_HOOKS = 21;\nconst EFFECTS_TO_SCHEDULE = 22;\nconst REACTIVE_TEMPLATE_CONSUMER = 23;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 25;\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n// FLAGS, PARENT, NEXT, and T_HOST are indices 2, 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\nconst DEHYDRATED_VIEWS = 6;\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n/** Flags associated with an LContainer (saved in LContainer[FLAGS]) */\nvar LContainerFlags;\n(function (LContainerFlags) {\n LContainerFlags[LContainerFlags[\"None\"] = 0] = \"None\";\n /**\n * Flag to signify that this `LContainer` may have transplanted views which need to be change\n * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n *\n * This flag, once set, is never unset for the `LContainer`.\n */\n LContainerFlags[LContainerFlags[\"HasTransplantedViews\"] = 2] = \"HasTransplantedViews\";\n})(LContainerFlags || (LContainerFlags = {}));\n\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n return tNode.componentOffset > -1;\n}\nfunction isDirectiveHost(tNode) {\n return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n return !!def.template;\n}\nfunction isRootView(target) {\n return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;\n}\nfunction isProjectionTNode(tNode) {\n return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;\n}\nfunction hasI18n(lView) {\n return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;\n}\nfunction isDestroyed(lView) {\n return (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n}\n\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n assertTNode(tNode);\n const tData = tView.data;\n for (let i = HEADER_OFFSET; i < tData.length; i++) {\n if (tData[i] === tNode) {\n return;\n }\n }\n throwError('This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n assertDefined(tNode, 'TNode must be defined');\n if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n throwError('Not of type TNode, got: ' + tNode);\n }\n}\nfunction assertTIcu(tIcu) {\n assertDefined(tIcu, 'Expected TIcu to be defined');\n if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n throwError('Object is not of TIcu type.');\n }\n}\nfunction assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \\'ɵcmp\\' property.') {\n if (!getComponentDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \\'ɵmod\\' property.') {\n if (!getNgModuleDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n assertDefined(tNode, 'currentTNode should exist!');\n assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertLContainer(value) {\n assertDefined(value, 'LContainer must be defined');\n assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n assertDefined(value, 'LView must be defined');\n assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n }\n}\nfunction assertIndexInDeclRange(tView, index) {\n assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n if (!(lower <= index && index < upper)) {\n throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage ||\n 'Components with projection nodes (<ng-content>) must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n assertDefined(lView, errMessage || 'Component views should always have a parent view (component\\'s host view)');\n}\nfunction assertNoDuplicateDirectives(directives) {\n // The array needs at least two elements in order to have duplicates.\n if (directives.length < 2) {\n return;\n }\n const seenDirectives = new Set();\n for (const current of directives) {\n if (seenDirectives.has(current)) {\n throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTIVE */, `Directive ${current.type.name} matches multiple times on the same element. ` +\n `Directives can only match an element once.`);\n }\n seenDirectives.add(current);\n }\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n assertIndexInExpandoRange(lView, injectorIndex);\n assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);\n assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');\n}\n\n/**\n * Represents a basic change from a previous to a new value for a single\n * property on a directive instance. Passed as a value in a\n * {@link SimpleChanges} object to the `ngOnChanges` hook.\n *\n * @see {@link OnChanges}\n *\n * @publicApi\n */\nclass SimpleChange {\n constructor(previousValue, currentValue, firstChange) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n this.firstChange = firstChange;\n }\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange() {\n return this.firstChange;\n }\n}\n\nfunction applyValueToInputField(instance, inputSignalNode, privateName, value) {\n if (inputSignalNode !== null) {\n inputSignalNode.applyValueToInputSignal(inputSignalNode, value);\n }\n else {\n instance[privateName] = value;\n }\n}\n\n/**\n * The NgOnChangesFeature decorates a component with support for the ngOnChanges\n * lifecycle hook, so it should be included in any component that implements\n * that hook.\n *\n * If the component or directive uses inheritance, the NgOnChangesFeature MUST\n * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise\n * inherited properties will not be propagated to the ngOnChanges lifecycle\n * hook.\n *\n * Example usage:\n *\n * ```\n * static ɵcmp = defineComponent({\n * ...\n * inputs: {name: 'publicName'},\n * features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵNgOnChangesFeature() {\n return NgOnChangesFeatureImpl;\n}\nfunction NgOnChangesFeatureImpl(definition) {\n if (definition.type.prototype.ngOnChanges) {\n definition.setInput = ngOnChangesSetInput;\n }\n return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n// This option ensures that the ngOnChanges lifecycle hook will be inherited\n// from superclasses (in InheritDefinitionFeature).\n/** @nocollapse */\n// tslint:disable-next-line:no-toplevel-property-access\nɵɵNgOnChangesFeature.ngInherit = true;\n/**\n * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate\n * `ngOnChanges`.\n *\n * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are\n * found it invokes `ngOnChanges` on the component instance.\n *\n * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,\n * it is guaranteed to be called with component instance.\n */\nfunction rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore?.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}\nfunction ngOnChangesSetInput(instance, inputSignalNode, value, publicName, privateName) {\n const declaredName = this.declaredInputs[publicName];\n ngDevMode && assertString(declaredName, 'Name of input in ngOnChanges has to be a string');\n const simpleChangesStore = getSimpleChangesStore(instance) ||\n setSimpleChangesStore(instance, { previous: EMPTY_OBJ, current: null });\n const current = simpleChangesStore.current || (simpleChangesStore.current = {});\n const previous = simpleChangesStore.previous;\n const previousChange = previous[declaredName];\n current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n applyValueToInputField(instance, inputSignalNode, privateName, value);\n}\nconst SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';\nfunction getSimpleChangesStore(instance) {\n return instance[SIMPLE_CHANGES_STORE] || null;\n}\nfunction setSimpleChangesStore(instance, store) {\n return instance[SIMPLE_CHANGES_STORE] = store;\n}\n\nlet profilerCallback = null;\n/**\n * Sets the callback function which will be invoked before and after performing certain actions at\n * runtime (for example, before and after running change detection).\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setProfiler = (profiler) => {\n profilerCallback = profiler;\n};\n/**\n * Profiler function which wraps user code executed by the runtime.\n *\n * @param event ProfilerEvent corresponding to the execution context\n * @param instance component instance\n * @param hookOrListener lifecycle hook function or output listener. The value depends on the\n * execution context\n * @returns\n */\nconst profiler = function (event, instance, hookOrListener) {\n if (profilerCallback != null /* both `null` and `undefined` */) {\n profilerCallback(event, instance, hookOrListener);\n }\n};\n\nconst SVG_NAMESPACE = 'svg';\nconst MATH_ML_NAMESPACE = 'math';\n\n// TODO(atscott): flip default internally ASAP and externally for v18 (#52928)\nlet _ensureDirtyViewsAreAlwaysReachable = false;\nfunction getEnsureDirtyViewsAreAlwaysReachable() {\n return _ensureDirtyViewsAreAlwaysReachable;\n}\nfunction setEnsureDirtyViewsAreAlwaysReachable(v) {\n _ensureDirtyViewsAreAlwaysReachable = v;\n}\n\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n * - `typeof value[TYPE] === 'object'` => `LView`\n * - This happens when we have a component at a given location\n * - `typeof value[TYPE] === true` => `LContainer`\n * - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n while (Array.isArray(value)) {\n value = value[HOST];\n }\n return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLView()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (typeof value[TYPE] === 'object')\n return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n ngDevMode && assertIndexInRange(lView, index);\n ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode && assertIndexInRange(lView, tNode.index);\n const node = unwrapRNode(lView[tNode.index]);\n return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n const index = tNode === null ? -1 : tNode.index;\n if (index !== -1) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const node = unwrapRNode(lView[index]);\n return node;\n }\n return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n const tNode = tView.data[index];\n ngDevMode && tNode !== null && assertTNode(tNode);\n return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n ngDevMode && assertIndexInRange(view, index);\n return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n ngDevMode && assertIndexInRange(hostView, nodeIndex);\n const slotValue = hostView[nodeIndex];\n const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n if (index === null || index === undefined)\n return null;\n ngDevMode && assertIndexInRange(consts, index);\n return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Adds the `RefreshView` flag from the lView and updates HAS_CHILD_VIEWS_TO_REFRESH flag of\n * parents.\n */\nfunction markViewForRefresh(lView) {\n if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {\n return;\n }\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n if (viewAttachedToChangeDetector(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Walks up the LView hierarchy.\n * @param nestingLevel Number of times to walk up in hierarchy.\n * @param currentView View from which to start the lookup.\n */\nfunction walkUpViews(nestingLevel, currentView) {\n while (nestingLevel > 0) {\n ngDevMode &&\n assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n currentView = currentView[DECLARATION_VIEW];\n nestingLevel--;\n }\n return currentView;\n}\nfunction requiresRefreshOrTraversal(lView) {\n return !!(lView[FLAGS] & (1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */) ||\n lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n}\n/**\n * Updates the `HasChildViewsToRefresh` flag on the parents of the `LView` as well as the\n * parents above.\n */\nfunction updateAncestorTraversalFlagsOnAttach(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(1 /* NotificationType.AfterRenderHooks */);\n // TODO(atscott): Simplify if...else cases once getEnsureDirtyViewsAreAlwaysReachable is always\n // `true`. When we attach a view that's marked `Dirty`, we should ensure that it is reached during\n // the next CD traversal so we add the `RefreshView` flag and mark ancestors accordingly.\n if (requiresRefreshOrTraversal(lView)) {\n markAncestorsForTraversal(lView);\n }\n else if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n if (getEnsureDirtyViewsAreAlwaysReachable()) {\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n markAncestorsForTraversal(lView);\n }\n else {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n }\n }\n}\n/**\n * Ensures views above the given `lView` are traversed during change detection even when they are\n * not dirty.\n *\n * This is done by setting the `HAS_CHILD_VIEWS_TO_REFRESH` flag up to the root, stopping when the\n * flag is already `true` or the `lView` is detached.\n */\nfunction markAncestorsForTraversal(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n let parent = getLViewParent(lView);\n while (parent !== null) {\n // We stop adding markers to the ancestors once we reach one that already has the marker. This\n // is to avoid needlessly traversing all the way to the root when the marker already exists.\n if (parent[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n break;\n }\n parent[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n if (!viewAttachedToChangeDetector(parent)) {\n break;\n }\n parent = getLViewParent(parent);\n }\n}\n/**\n * Stores a LView-specific destroy callback.\n */\nfunction storeLViewOnDestroy(lView, onDestroyCallback) {\n if ((lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) {\n throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');\n }\n if (lView[ON_DESTROY_HOOKS] === null) {\n lView[ON_DESTROY_HOOKS] = [];\n }\n lView[ON_DESTROY_HOOKS].push(onDestroyCallback);\n}\n/**\n * Removes previously registered LView-specific destroy callback.\n */\nfunction removeLViewOnDestroy(lView, onDestroyCallback) {\n if (lView[ON_DESTROY_HOOKS] === null)\n return;\n const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);\n if (destroyCBIdx !== -1) {\n lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);\n }\n}\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n ngDevMode && assertLView(lView);\n const parent = lView[PARENT];\n return isLContainer(parent) ? parent[PARENT] : parent;\n}\n\nconst instructionState = {\n lFrame: createLFrame(null),\n bindingsEnabled: true,\n skipHydrationRootTNode: null,\n};\n/**\n * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.\n *\n * Necessary to support ChangeDetectorRef.checkNoChanges().\n *\n * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended\n * changes exist in the change detector or its children.\n */\nlet _isInCheckNoChangesMode = false;\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n return instructionState.bindingsEnabled;\n}\n/**\n * Returns true if currently inside a skip hydration block.\n * @returns boolean\n */\nfunction isInSkipHydrationBlock$1() {\n return instructionState.skipHydrationRootTNode !== null;\n}\n/**\n * Returns true if this is the root TNode of the skip hydration block.\n * @param tNode the current TNode\n * @returns boolean\n */\nfunction isSkipHydrationRootTNode(tNode) {\n return instructionState.skipHydrationRootTNode === tNode;\n}\n/**\n * Enables directive matching on elements.\n *\n * * Example:\n * ```\n * <my-comp my-directive>\n * Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n * <!-- ɵɵdisableBindings() -->\n * <my-comp my-directive>\n * Should not match component / directive because we are in ngNonBindable.\n * </my-comp>\n * <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n instructionState.bindingsEnabled = true;\n}\n/**\n * Sets a flag to specify that the TNode is in a skip hydration block.\n * @param tNode the current TNode\n */\nfunction enterSkipHydrationBlock(tNode) {\n instructionState.skipHydrationRootTNode = tNode;\n}\n/**\n * Disables directive matching on element.\n *\n * * Example:\n * ```\n * <my-comp my-directive>\n * Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n * <!-- ɵɵdisableBindings() -->\n * <my-comp my-directive>\n * Should not match component / directive because we are in ngNonBindable.\n * </my-comp>\n * <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n instructionState.bindingsEnabled = false;\n}\n/**\n * Clears the root skip hydration node when leaving a skip hydration block.\n */\nfunction leaveSkipHydrationBlock() {\n instructionState.skipHydrationRootTNode = null;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}\n/**\n * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in\n * value so that it can be used as a return value of an instruction.\n *\n * @codeGenApi\n */\nfunction ɵɵresetView(value) {\n instructionState.lFrame.contextLView = null;\n return value;\n}\nfunction getCurrentTNode() {\n let currentTNode = getCurrentTNodePlaceholderOk();\n while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {\n currentTNode = currentTNode.parent;\n }\n return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n const lFrame = instructionState.lFrame;\n const currentTNode = lFrame.currentTNode;\n return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n const lFrame = instructionState.lFrame;\n lFrame.currentTNode = tNode;\n lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n instructionState.lFrame.isParent = false;\n}\nfunction getContextLView() {\n const contextLView = instructionState.lFrame.contextLView;\n ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');\n return contextLView;\n}\nfunction isInCheckNoChangesMode() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _isInCheckNoChangesMode;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n !ngDevMode && throwError('Must never be called in production mode');\n _isInCheckNoChangesMode = mode;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n const lFrame = instructionState.lFrame;\n let index = lFrame.bindingRootIndex;\n if (index === -1) {\n index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n }\n return index;\n}\nfunction getBindingIndex() {\n return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n return instructionState.lFrame.bindingIndex = value;\n}\nfunction nextBindingIndex() {\n return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n const lFrame = instructionState.lFrame;\n const index = lFrame.bindingIndex;\n lFrame.bindingIndex = lFrame.bindingIndex + count;\n return index;\n}\nfunction isInI18nBlock() {\n return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n * whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n const lFrame = instructionState.lFrame;\n lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n const tView = lView[TVIEW];\n // Return the declaration parent for embedded views\n if (tView.type === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n // Falling back to `T_HOST` in case we cross component boundary.\n if (tView.type === 1 /* TViewType.Component */) {\n return lView[T_HOST];\n }\n // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n * tree from `tNode` until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated\n * `NodeInjector` can be found and we should instead use `ModuleInjector`.\n * - If `true` than this call must be fallowed by `leaveDI`\n * - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n ngDevMode && assertLViewOrUndefined(lView);\n if (flags & InjectFlags.SkipSelf) {\n ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n let parentTNode = tNode;\n let parentLView = lView;\n while (true) {\n ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n parentTNode = parentTNode.parent;\n if (parentTNode === null && !(flags & InjectFlags.Host)) {\n parentTNode = getDeclarationTNode(parentLView);\n if (parentTNode === null)\n break;\n // In this case, a parent exists and is definitely an element. So it will definitely\n // have an existing lView as the declaration view, which is why we can assume it's defined.\n ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n parentLView = parentLView[DECLARATION_VIEW];\n // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n // We want to skip those and look only at Elements and ElementContainers to ensure\n // we're looking at true parent nodes, and not content or other types.\n if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {\n break;\n }\n }\n else {\n break;\n }\n }\n if (parentTNode === null) {\n // If we failed to find a parent TNode this means that we should use module injector.\n return false;\n }\n else {\n tNode = parentTNode;\n lView = parentLView;\n }\n }\n ngDevMode && assertTNodeForLView(tNode, lView);\n const lFrame = instructionState.lFrame = allocLFrame();\n lFrame.currentTNode = tNode;\n lFrame.lView = lView;\n return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n ngDevMode && assertLViewOrUndefined(newView);\n const newLFrame = allocLFrame();\n if (ngDevMode) {\n assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n }\n const tView = newView[TVIEW];\n instructionState.lFrame = newLFrame;\n ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n newLFrame.currentTNode = tView.firstChild;\n newLFrame.lView = newView;\n newLFrame.tView = tView;\n newLFrame.contextLView = newView;\n newLFrame.bindingIndex = tView.bindingStartIndex;\n newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n const currentLFrame = instructionState.lFrame;\n const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n return newLFrame;\n}\nfunction createLFrame(parent) {\n const lFrame = {\n currentTNode: null,\n isParent: true,\n lView: null,\n tView: null,\n selectedIndex: -1,\n contextLView: null,\n elementDepthCount: 0,\n currentNamespace: null,\n currentDirectiveIndex: -1,\n bindingRootIndex: -1,\n bindingIndex: -1,\n currentQueryIndex: 0,\n parent: parent,\n child: null,\n inI18n: false,\n };\n parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n const oldLFrame = instructionState.lFrame;\n instructionState.lFrame = oldLFrame.parent;\n oldLFrame.currentTNode = null;\n oldLFrame.lView = null;\n return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n const oldLFrame = leaveViewLight();\n oldLFrame.isParent = true;\n oldLFrame.tView = null;\n oldLFrame.selectedIndex = -1;\n oldLFrame.contextLView = null;\n oldLFrame.elementDepthCount = 0;\n oldLFrame.currentDirectiveIndex = -1;\n oldLFrame.currentNamespace = null;\n oldLFrame.bindingRootIndex = -1;\n oldLFrame.bindingIndex = -1;\n oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n const contextLView = instructionState.lFrame.contextLView =\n walkUpViews(level, instructionState.lFrame.contextLView);\n return contextLView[CONTEXT];\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n ngDevMode && index !== -1 &&\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n ngDevMode &&\n assertLessThan(index, instructionState.lFrame.lView.length, 'Can\\'t set index passed end of LView');\n instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n const lFrame = instructionState.lFrame;\n return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n return instructionState.lFrame.currentNamespace;\n}\nlet _wasLastNodeCreated = true;\n/**\n * Retrieves a global flag that indicates whether the most recent DOM node\n * was created or hydrated.\n */\nfunction wasLastNodeCreated() {\n return _wasLastNodeCreated;\n}\n/**\n * Sets a global flag to indicate whether the most recent DOM node\n * was created or hydrated.\n */\nfunction lastNodeWasCreated(flag) {\n _wasLastNodeCreated = flag;\n}\n\n/**\n * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.\n *\n * Must be run *only* on the first template pass.\n *\n * Sets up the pre-order hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * @param directiveIndex The index of the directive in LView\n * @param directiveDef The definition containing the hooks to setup in tView\n * @param tView The current TView\n */\nfunction registerPreOrderHooks(directiveIndex, directiveDef, tView) {\n ngDevMode && assertFirstCreatePass(tView);\n const { ngOnChanges, ngOnInit, ngDoCheck } = directiveDef.type.prototype;\n if (ngOnChanges) {\n const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);\n (tView.preOrderHooks ??= []).push(directiveIndex, wrappedOnChanges);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, wrappedOnChanges);\n }\n if (ngOnInit) {\n (tView.preOrderHooks ??= []).push(0 - directiveIndex, ngOnInit);\n }\n if (ngDoCheck) {\n (tView.preOrderHooks ??= []).push(directiveIndex, ngDoCheck);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, ngDoCheck);\n }\n}\n/**\n *\n * Loops through the directives on the provided `tNode` and queues hooks to be\n * run that are not initialization hooks.\n *\n * Should be executed during `elementEnd()` and similar to\n * preserve hook execution order. Content, view, and destroy hooks for projected\n * components and directives must be called *before* their hosts.\n *\n * Sets up the content, view, and destroy hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up\n * separately at `elementStart`.\n *\n * @param tView The current TView\n * @param tNode The TNode whose directives are to be searched for hooks to queue\n */\nfunction registerPostOrderHooks(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n // It's necessary to loop through the directives at elementEnd() (rather than processing in\n // directiveCreate) so we can preserve the current hook order. Content, view, and destroy\n // hooks for projected components and directives must be called *before* their hosts.\n for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {\n const directiveDef = tView.data[i];\n ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');\n const lifecycleHooks = directiveDef.type.prototype;\n const { ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy } = lifecycleHooks;\n if (ngAfterContentInit) {\n (tView.contentHooks ??= []).push(-i, ngAfterContentInit);\n }\n if (ngAfterContentChecked) {\n (tView.contentHooks ??= []).push(i, ngAfterContentChecked);\n (tView.contentCheckHooks ??= []).push(i, ngAfterContentChecked);\n }\n if (ngAfterViewInit) {\n (tView.viewHooks ??= []).push(-i, ngAfterViewInit);\n }\n if (ngAfterViewChecked) {\n (tView.viewHooks ??= []).push(i, ngAfterViewChecked);\n (tView.viewCheckHooks ??= []).push(i, ngAfterViewChecked);\n }\n if (ngOnDestroy != null) {\n (tView.destroyHooks ??= []).push(i, ngOnDestroy);\n }\n }\n}\n/**\n * Executing hooks requires complex logic as we need to deal with 2 constraints.\n *\n * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only\n * once, across many change detection cycles. This must be true even if some hooks throw, or if\n * some recursively trigger a change detection cycle.\n * To solve that, it is required to track the state of the execution of these init hooks.\n * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},\n * and the index within that phase. They can be seen as a cursor in the following structure:\n * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]\n * They are stored as flags in LView[FLAGS].\n *\n * 2. Pre-order hooks can be executed in batches, because of the select instruction.\n * To be able to pause and resume their execution, we also need some state about the hook's array\n * that is being processed:\n * - the index of the next hook to be executed\n * - the number of init hooks already found in the processed part of the array\n * They are stored as flags in LView[PREORDER_HOOK_FLAGS].\n */\n/**\n * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were\n * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read\n * / write of the init-hooks related flags.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeCheckHooks(lView, hooks, nodeIndex) {\n callHooks(lView, hooks, 3 /* InitPhaseState.InitPhaseCompleted */, nodeIndex);\n}\n/**\n * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,\n * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param initPhase A phase for which hooks should be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {\n ngDevMode &&\n assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');\n if ((lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n callHooks(lView, hooks, initPhase, nodeIndex);\n }\n}\nfunction incrementInitPhaseFlags(lView, initPhase) {\n ngDevMode &&\n assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');\n let flags = lView[FLAGS];\n if ((flags & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n flags &= 16383 /* LViewFlags.IndexWithinInitPhaseReset */;\n flags += 1 /* LViewFlags.InitPhaseStateIncrementer */;\n lView[FLAGS] = flags;\n }\n}\n/**\n * Calls lifecycle hooks with their contexts, skipping init hooks if it's not\n * the first LView pass\n *\n * @param currentView The current view\n * @param arr The array in which the hooks are found\n * @param initPhaseState the current state of the init phase\n * @param currentNodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction callHooks(currentView, arr, initPhase, currentNodeIndex) {\n ngDevMode &&\n assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');\n const startIndex = currentNodeIndex !== undefined ?\n (currentView[PREORDER_HOOK_FLAGS] & 65535 /* PreOrderHookFlags.IndexOfTheNextPreOrderHookMaskMask */) :\n 0;\n const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;\n const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1\n let lastNodeIndexFound = 0;\n for (let i = startIndex; i < max; i++) {\n const hook = arr[i + 1];\n if (typeof hook === 'number') {\n lastNodeIndexFound = arr[i];\n if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {\n break;\n }\n }\n else {\n const isInitHook = arr[i] < 0;\n if (isInitHook) {\n currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;\n }\n if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n callHook(currentView, initPhase, arr, i);\n currentView[PREORDER_HOOK_FLAGS] =\n (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) + i +\n 2;\n }\n i++;\n }\n }\n}\n/**\n * Executes a single lifecycle hook, making sure that:\n * - it is called in the non-reactive context;\n * - profiling data are registered.\n */\nfunction callHookInternal(directive, hook) {\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n const prevConsumer = setActiveConsumer$1(null);\n try {\n hook.call(directive);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\n }\n}\n/**\n * Execute one hook against the current `LView`.\n *\n * @param currentView The current view\n * @param initPhaseState the current state of the init phase\n * @param arr The array in which the hooks are found\n * @param i The current index within the hook data array\n */\nfunction callHook(currentView, initPhase, arr, i) {\n const isInitHook = arr[i] < 0;\n const hook = arr[i + 1];\n const directiveIndex = isInitHook ? -arr[i] : arr[i];\n const directive = currentView[directiveIndex];\n if (isInitHook) {\n const indexWithintInitPhase = currentView[FLAGS] >> 14 /* LViewFlags.IndexWithinInitPhaseShift */;\n // The init phase state must be always checked here as it may have been recursively updated.\n if (indexWithintInitPhase <\n (currentView[PREORDER_HOOK_FLAGS] >> 16 /* PreOrderHookFlags.NumberOfInitHooksCalledShift */) &&\n (currentView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n currentView[FLAGS] += 16384 /* LViewFlags.IndexWithinInitPhaseIncrementer */;\n callHookInternal(directive, hook);\n }\n }\n else {\n callHookInternal(directive, hook);\n }\n}\n\nconst NO_PARENT_INJECTOR = -1;\n/**\n * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in\n * `TView.data`. This allows us to store information about the current node's tokens (which\n * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be\n * shared, so they live in `LView`).\n *\n * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter\n * determines whether a directive is available on the associated node or not. This prevents us\n * from searching the directives array at this level unless it's probable the directive is in it.\n *\n * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.\n *\n * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed\n * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`\n * will differ based on where it is flattened into the main array, so it's not possible to know\n * the indices ahead of time and save their types here. The interfaces are still included here\n * for documentation purposes.\n *\n * export interface LInjector extends Array<any> {\n *\n * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Cumulative bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Cumulative bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Cumulative bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Cumulative bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Cumulative bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Cumulative bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Cumulative bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // We need to store a reference to the injector's parent so DI can keep looking up\n * // the injector tree until it finds the dependency it's looking for.\n * [PARENT_INJECTOR]: number;\n * }\n *\n * export interface TInjector extends Array<any> {\n *\n * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Shared node bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Shared node bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Shared node bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Shared node bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Shared node bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Shared node bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Shared node bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // Necessary to find directive indices for a particular node.\n * [TNODE]: TElementNode|TElementContainerNode|TContainerNode;\n * }\n */\n/**\n * Factory for creating instances of injectors in the NodeInjector.\n *\n * This factory is complicated by the fact that it can resolve `multi` factories as well.\n *\n * NOTE: Some of the fields are optional which means that this class has two hidden classes.\n * - One without `multi` support (most common)\n * - One with `multi` values, (rare).\n *\n * Since VMs can cache up to 4 inline hidden classes this is OK.\n *\n * - Single factory: Only `resolving` and `factory` is defined.\n * - `providers` factory: `componentProviders` is a number and `index = -1`.\n * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.\n */\nclass NodeInjectorFactory {\n constructor(\n /**\n * Factory to invoke in order to create a new instance.\n */\n factory, \n /**\n * Set to `true` if the token is declared in `viewProviders` (or if it is component).\n */\n isViewProvider, injectImplementation) {\n this.factory = factory;\n /**\n * Marker set to true during factory invocation to see if we get into recursive loop.\n * Recursive loop causes an error to be displayed.\n */\n this.resolving = false;\n ngDevMode && assertDefined(factory, 'Factory not specified');\n ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');\n this.canSeeViewProviders = isViewProvider;\n this.injectImpl = injectImplementation;\n }\n}\nfunction isFactory(obj) {\n return obj instanceof NodeInjectorFactory;\n}\n\n/**\n * Converts `TNodeType` into human readable text.\n * Make sure this matches with `TNodeType`\n */\nfunction toTNodeTypeAsString(tNodeType) {\n let text = '';\n (tNodeType & 1 /* TNodeType.Text */) && (text += '|Text');\n (tNodeType & 2 /* TNodeType.Element */) && (text += '|Element');\n (tNodeType & 4 /* TNodeType.Container */) && (text += '|Container');\n (tNodeType & 8 /* TNodeType.ElementContainer */) && (text += '|ElementContainer');\n (tNodeType & 16 /* TNodeType.Projection */) && (text += '|Projection');\n (tNodeType & 32 /* TNodeType.Icu */) && (text += '|IcuContainer');\n (tNodeType & 64 /* TNodeType.Placeholder */) && (text += '|Placeholder');\n return text.length > 0 ? text.substring(1) : text;\n}\n/**\n * Helper function to detect if a given value matches a `TNode` shape.\n *\n * The logic uses the `insertBeforeIndex` and its possible values as\n * a way to differentiate a TNode shape from other types of objects\n * within the `TView.data`. This is not a perfect check, but it can\n * be a reasonable differentiator, since we control the shapes of objects\n * within `TView.data`.\n */\nfunction isTNodeShape(value) {\n return value != null && typeof value === 'object' &&\n (value.insertBeforeIndex === null ||\n typeof value.insertBeforeIndex === 'number' ||\n Array.isArray(value.insertBeforeIndex));\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```\n * <div my-dir [class]=\"exp\"></div>\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasClassInput(tNode) {\n return (tNode.flags & 8 /* TNodeFlags.hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```\n * <div my-dir [style]=\"exp\"></div>\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasStyleInput(tNode) {\n return (tNode.flags & 16 /* TNodeFlags.hasStyleInput */) !== 0;\n}\n\nfunction assertTNodeType(tNode, expectedTypes, message) {\n assertDefined(tNode, 'should be called with a TNode');\n if ((tNode.type & expectedTypes) === 0) {\n throwError(message ||\n `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);\n }\n}\nfunction assertPureTNodeType(type) {\n if (!(type === 2 /* TNodeType.Element */ || //\n type === 1 /* TNodeType.Text */ || //\n type === 4 /* TNodeType.Container */ || //\n type === 8 /* TNodeType.ElementContainer */ || //\n type === 32 /* TNodeType.Icu */ || //\n type === 16 /* TNodeType.Projection */ || //\n type === 64 /* TNodeType.Placeholder */)) {\n throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);\n }\n}\n\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n if (ngDevMode) {\n assertNumber(parentLocation, 'Number expected');\n assertNotEqual(parentLocation, -1, 'Not a valid state.');\n const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\n }\n return parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n}\nfunction getParentInjectorViewOffset(parentLocation) {\n return parentLocation >> 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n}\n/**\n * Unwraps a parent injector location number to find the view offset from the current injector,\n * then walks up the declaration view tree until the view is found that contains the parent\n * injector.\n *\n * @param location The location of the parent injector, which contains the view offset\n * @param startView The LView instance from which to start walking up the view tree\n * @returns The LView instance that contains the parent injector\n */\nfunction getParentInjectorView(location, startView) {\n let viewOffset = getParentInjectorViewOffset(location);\n let parentView = startView;\n // For most cases, the parent injector can be found on the host node (e.g. for component\n // or container), but we must keep the loop here to support the rarer case of deeply nested\n // <ng-template> tags or inline views, where the parent injector might live many views\n // above the child injector.\n while (viewOffset > 0) {\n parentView = parentView[DECLARATION_VIEW];\n viewOffset--;\n }\n return parentView;\n}\n\n/**\n * Defines if the call to `inject` should include `viewProviders` in its resolution.\n *\n * This is set to true when we try to instantiate a component. This value is reset in\n * `getNodeInjectable` to a value which matches the declaration location of the token about to be\n * instantiated. This is done so that if we are injecting a token which was declared outside of\n * `viewProviders` we don't accidentally pull `viewProviders` in.\n *\n * Example:\n *\n * ```\n * @Injectable()\n * class MyService {\n * constructor(public value: String) {}\n * }\n *\n * @Component({\n * providers: [\n * MyService,\n * {provide: String, value: 'providers' }\n * ]\n * viewProviders: [\n * {provide: String, value: 'viewProviders'}\n * ]\n * })\n * class MyComponent {\n * constructor(myService: MyService, value: String) {\n * // We expect that Component can see into `viewProviders`.\n * expect(value).toEqual('viewProviders');\n * // `MyService` was not declared in `viewProviders` hence it can't see it.\n * expect(myService.value).toEqual('providers');\n * }\n * }\n *\n * ```\n */\nlet includeViewProviders = true;\nfunction setIncludeViewProviders(v) {\n const oldValue = includeViewProviders;\n includeViewProviders = v;\n return oldValue;\n}\n/**\n * The number of slots in each bloom filter (used by DI). The larger this number, the fewer\n * directives that will share slots, and thus, the fewer false positives when checking for\n * the existence of a directive.\n */\nconst BLOOM_SIZE = 256;\nconst BLOOM_MASK = BLOOM_SIZE - 1;\n/**\n * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,\n * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash\n * number.\n */\nconst BLOOM_BUCKET_BITS = 5;\n/** Counter used to generate unique IDs for directives. */\nlet nextNgElementId = 0;\n/** Value used when something wasn't found by an injector. */\nconst NOT_FOUND = {};\n/**\n * Registers this directive as present in its node's injector by flipping the directive's\n * corresponding bit in the injector's bloom filter.\n *\n * @param injectorIndex The index of the node injector where this token should be registered\n * @param tView The TView for the injector's bloom filters\n * @param type The directive token to register\n */\nfunction bloomAdd(injectorIndex, tView, type) {\n ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');\n let id;\n if (typeof type === 'string') {\n id = type.charCodeAt(0) || 0;\n }\n else if (type.hasOwnProperty(NG_ELEMENT_ID)) {\n id = type[NG_ELEMENT_ID];\n }\n // Set a unique ID on the directive type, so if something tries to inject the directive,\n // we can easily retrieve the ID and hash it into the bloom bit that should be checked.\n if (id == null) {\n id = type[NG_ELEMENT_ID] = nextNgElementId++;\n }\n // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),\n // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.\n const bloomHash = id & BLOOM_MASK;\n // Create a mask that targets the specific bit associated with the directive.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.\n // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask\n // should be written to.\n tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;\n}\n/**\n * Creates (or gets an existing) injector for a given element or container.\n *\n * @param tNode for which an injector should be retrieved / created.\n * @param lView View where the node is stored\n * @returns Node injector\n */\nfunction getOrCreateNodeInjectorForNode(tNode, lView) {\n const existingInjectorIndex = getInjectorIndex(tNode, lView);\n if (existingInjectorIndex !== -1) {\n return existingInjectorIndex;\n }\n const tView = lView[TVIEW];\n if (tView.firstCreatePass) {\n tNode.injectorIndex = lView.length;\n insertBloom(tView.data, tNode); // foundation for node bloom\n insertBloom(lView, null); // foundation for cumulative bloom\n insertBloom(tView.blueprint, null);\n }\n const parentLoc = getParentInjectorLocation(tNode, lView);\n const injectorIndex = tNode.injectorIndex;\n // If a parent injector can't be found, its location is set to -1.\n // In that case, we don't need to set up a cumulative bloom\n if (hasParentInjector(parentLoc)) {\n const parentIndex = getParentInjectorIndex(parentLoc);\n const parentLView = getParentInjectorView(parentLoc, lView);\n const parentData = parentLView[TVIEW].data;\n // Creates a cumulative bloom filter that merges the parent's bloom filter\n // and its own cumulative bloom (which contains tokens for all ancestors)\n for (let i = 0; i < 8 /* NodeInjectorOffset.BLOOM_SIZE */; i++) {\n lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];\n }\n }\n lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */] = parentLoc;\n return injectorIndex;\n}\nfunction insertBloom(arr, footer) {\n arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);\n}\nfunction getInjectorIndex(tNode, lView) {\n if (tNode.injectorIndex === -1 ||\n // If the injector index is the same as its parent's injector index, then the index has been\n // copied down from the parent node. No injector has been created yet on this node.\n (tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex) ||\n // After the first template pass, the injector index might exist but the parent values\n // might not have been calculated yet for this instance\n lView[tNode.injectorIndex + 8 /* NodeInjectorOffset.PARENT */] === null) {\n return -1;\n }\n else {\n ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);\n return tNode.injectorIndex;\n }\n}\n/**\n * Finds the index of the parent injector, with a view offset if applicable. Used to set the\n * parent injector initially.\n *\n * @returns Returns a number that is the combination of the number of LViews that we have to go up\n * to find the LView containing the parent inject AND the index of the injector within that LView.\n */\nfunction getParentInjectorLocation(tNode, lView) {\n if (tNode.parent && tNode.parent.injectorIndex !== -1) {\n // If we have a parent `TNode` and there is an injector associated with it we are done, because\n // the parent injector is within the current `LView`.\n return tNode.parent.injectorIndex; // ViewOffset is 0\n }\n // When parent injector location is computed it may be outside of the current view. (ie it could\n // be pointing to a declared parent location). This variable stores number of declaration parents\n // we need to walk up in order to find the parent injector location.\n let declarationViewOffset = 0;\n let parentTNode = null;\n let lViewCursor = lView;\n // The parent injector is not in the current `LView`. We will have to walk the declared parent\n // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent\n // `NodeInjector`.\n while (lViewCursor !== null) {\n parentTNode = getTNodeFromLView(lViewCursor);\n if (parentTNode === null) {\n // If we have no parent, than we are done.\n return NO_PARENT_INJECTOR;\n }\n ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);\n // Every iteration of the loop requires that we go to the declared parent.\n declarationViewOffset++;\n lViewCursor = lViewCursor[DECLARATION_VIEW];\n if (parentTNode.injectorIndex !== -1) {\n // We found a NodeInjector which points to something.\n return (parentTNode.injectorIndex |\n (declarationViewOffset << 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */));\n }\n }\n return NO_PARENT_INJECTOR;\n}\n/**\n * Makes a type or an injection token public to the DI system by adding it to an\n * injector's bloom filter.\n *\n * @param di The node injector in which a directive will be added\n * @param token The type or the injection token to be made public\n */\nfunction diPublicInInjector(injectorIndex, tView, token) {\n bloomAdd(injectorIndex, tView, token);\n}\n/**\n * Inject static attribute value into directive constructor.\n *\n * This method is used with `factory` functions which are generated as part of\n * `defineDirective` or `defineComponent`. The method retrieves the static value\n * of an attribute. (Dynamic attributes are not supported since they are not resolved\n * at the time of injection and can change over time.)\n *\n * # Example\n * Given:\n * ```\n * @Component(...)\n * class MyComponent {\n * constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```\n * <my-component title=\"Hello\"></my-component>\n * ```\n *\n * Then factory method generated is:\n * ```\n * MyComponent.ɵcmp = defineComponent({\n * factory: () => new MyComponent(injectAttribute('title'))\n * ...\n * })\n * ```\n *\n * @publicApi\n */\nfunction injectAttributeImpl(tNode, attrNameToInject) {\n ngDevMode && assertTNodeType(tNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n ngDevMode && assertDefined(tNode, 'expecting tNode');\n if (attrNameToInject === 'class') {\n return tNode.classes;\n }\n if (attrNameToInject === 'style') {\n return tNode.styles;\n }\n const attrs = tNode.attrs;\n if (attrs) {\n const attrsLength = attrs.length;\n let i = 0;\n while (i < attrsLength) {\n const value = attrs[i];\n // If we hit a `Bindings` or `Template` marker then we are done.\n if (isNameOnlyAttributeMarker(value))\n break;\n // Skip namespaced attributes\n if (value === 0 /* AttributeMarker.NamespaceURI */) {\n // we skip the next two values\n // as namespaced attributes looks like\n // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',\n // 'existValue', ...]\n i = i + 2;\n }\n else if (typeof value === 'number') {\n // Skip to the first value of the marked attribute.\n i++;\n while (i < attrsLength && typeof attrs[i] === 'string') {\n i++;\n }\n }\n else if (value === attrNameToInject) {\n return attrs[i + 1];\n }\n else {\n i = i + 2;\n }\n }\n }\n return null;\n}\nfunction notFoundValueOrThrow(notFoundValue, token, flags) {\n if ((flags & InjectFlags.Optional) || notFoundValue !== undefined) {\n return notFoundValue;\n }\n else {\n throwProviderNotFoundError(token, 'NodeInjector');\n }\n}\n/**\n * Returns the value associated to the given token from the ModuleInjector or throws exception\n *\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector or throws an exception\n */\nfunction lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {\n if ((flags & InjectFlags.Optional) && notFoundValue === undefined) {\n // This must be set or the NullInjector will throw for optional deps\n notFoundValue = null;\n }\n if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {\n const moduleInjector = lView[INJECTOR];\n // switch to `injectInjectorOnly` implementation for module injector, since module injector\n // should not have access to Component/Directive DI scope (that may happen through\n // `directiveInject` implementation)\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n if (moduleInjector) {\n return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);\n }\n else {\n return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);\n }\n }\n finally {\n setInjectImplementation(previousInjectImplementation);\n }\n }\n return notFoundValueOrThrow(notFoundValue, token, flags);\n}\n/**\n * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.\n *\n * Look for the injector providing the token by walking up the node injector tree and then\n * the module injector tree.\n *\n * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom\n * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {\n if (tNode !== null) {\n // If the view or any of its ancestors have an embedded\n // view injector, we have to look it up there first.\n if (lView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&\n // The token must be present on the current node injector when the `Self`\n // flag is set, so the lookup on embedded view injector(s) can be skipped.\n !(flags & InjectFlags.Self)) {\n const embeddedInjectorValue = lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, NOT_FOUND);\n if (embeddedInjectorValue !== NOT_FOUND) {\n return embeddedInjectorValue;\n }\n }\n // Otherwise try the node injector.\n const value = lookupTokenUsingNodeInjector(tNode, lView, token, flags, NOT_FOUND);\n if (value !== NOT_FOUND) {\n return value;\n }\n }\n // Finally, fall back to the module injector.\n return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n}\n/**\n * Returns the value associated to the given token from the node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingNodeInjector(tNode, lView, token, flags, notFoundValue) {\n const bloomHash = bloomHashBitOrFactory(token);\n // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef\n // so just call the factory function to create it.\n if (typeof bloomHash === 'function') {\n if (!enterDI(lView, tNode, flags)) {\n // Failed to enter DI, try module injector instead. If a token is injected with the @Host\n // flag, the module injector is not searched for that token in Ivy.\n return (flags & InjectFlags.Host) ?\n notFoundValueOrThrow(notFoundValue, token, flags) :\n lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n }\n try {\n let value;\n if (ngDevMode) {\n runInInjectorProfilerContext(new NodeInjector(getCurrentTNode(), getLView()), token, () => {\n value = bloomHash(flags);\n if (value != null) {\n emitInstanceCreatedByInjectorEvent(value);\n }\n });\n }\n else {\n value = bloomHash(flags);\n }\n if (value == null && !(flags & InjectFlags.Optional)) {\n throwProviderNotFoundError(token);\n }\n else {\n return value;\n }\n }\n finally {\n leaveDI();\n }\n }\n else if (typeof bloomHash === 'number') {\n // A reference to the previous injector TView that was found while climbing the element\n // injector tree. This is used to know if viewProviders can be accessed on the current\n // injector.\n let previousTView = null;\n let injectorIndex = getInjectorIndex(tNode, lView);\n let parentLocation = NO_PARENT_INJECTOR;\n let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;\n // If we should skip this injector, or if there is no injector on this node, start by\n // searching the parent injector.\n if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {\n parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) :\n lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {\n injectorIndex = -1;\n }\n else {\n previousTView = lView[TVIEW];\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n }\n // Traverse up the injector tree until we find a potential match or until we know there\n // *isn't* a match.\n while (injectorIndex !== -1) {\n ngDevMode && assertNodeInjector(lView, injectorIndex);\n // Check the current injector. If it matches, see if it contains token.\n const tView = lView[TVIEW];\n ngDevMode &&\n assertTNodeForLView(tView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */], lView);\n if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {\n // At this point, we have an injector which *may* contain the token, so we step through\n // the providers and directives associated with the injector's corresponding node to get\n // the instance.\n const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);\n if (instance !== NOT_FOUND) {\n return instance;\n }\n }\n parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation !== NO_PARENT_INJECTOR &&\n shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */] === hostTElementNode) &&\n bloomHasToken(bloomHash, injectorIndex, lView)) {\n // The def wasn't found anywhere on this node, so it was a false positive.\n // Traverse up the tree and continue searching.\n previousTView = tView;\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n else {\n // If we should not search parent OR If the ancestor bloom filter value does not have the\n // bit corresponding to the directive we can give up on traversing up to find the specific\n // injector.\n injectorIndex = -1;\n }\n }\n }\n return notFoundValue;\n}\nfunction searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {\n const currentTView = lView[TVIEW];\n const tNode = currentTView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n // First, we need to determine if view providers can be accessed by the starting element.\n // There are two possibilities\n const canAccessViewProviders = previousTView == null ?\n // 1) This is the first invocation `previousTView == null` which means that we are at the\n // `TNode` of where injector is starting to look. In such a case the only time we are allowed\n // to look into the ViewProviders is if:\n // - we are on a component\n // - AND the injector set `includeViewProviders` to true (implying that the token can see\n // ViewProviders because it is the Component or a Service which itself was declared in\n // ViewProviders)\n (isComponentHost(tNode) && includeViewProviders) :\n // 2) `previousTView != null` which means that we are now walking across the parent nodes.\n // In such a case we are only allowed to look into the ViewProviders if:\n // - We just crossed from child View to Parent View `previousTView != currentTView`\n // - AND the parent TNode is an Element.\n // This means that we just came from the Component's View and therefore are allowed to see\n // into the ViewProviders.\n (previousTView != currentTView && ((tNode.type & 3 /* TNodeType.AnyRNode */) !== 0));\n // This special case happens when there is a @host on the inject and when we are searching\n // on the host element node.\n const isHostSpecialCase = (flags & InjectFlags.Host) && hostTElementNode === tNode;\n const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);\n if (injectableIdx !== null) {\n return getNodeInjectable(lView, currentTView, injectableIdx, tNode);\n }\n else {\n return NOT_FOUND;\n }\n}\n/**\n * Searches for the given token among the node's directives and providers.\n *\n * @param tNode TNode on which directives are present.\n * @param tView The tView we are currently processing\n * @param token Provider token or type of a directive to look for.\n * @param canAccessViewProviders Whether view providers should be considered.\n * @param isHostSpecialCase Whether the host special case applies.\n * @returns Index of a found directive or provider, or null when none found.\n */\nfunction locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {\n const nodeProviderIndexes = tNode.providerIndexes;\n const tInjectables = tView.data;\n const injectablesStart = nodeProviderIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const directivesStart = tNode.directiveStart;\n const directiveEnd = tNode.directiveEnd;\n const cptViewProvidersCount = nodeProviderIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;\n // When the host special case applies, only the viewProviders and the component are visible\n const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;\n for (let i = startingIndex; i < endIndex; i++) {\n const providerTokenOrDef = tInjectables[i];\n if (i < directivesStart && token === providerTokenOrDef ||\n i >= directivesStart && providerTokenOrDef.type === token) {\n return i;\n }\n }\n if (isHostSpecialCase) {\n const dirDef = tInjectables[directivesStart];\n if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {\n return directivesStart;\n }\n }\n return null;\n}\n/**\n * Retrieve or instantiate the injectable from the `LView` at particular `index`.\n *\n * This function checks to see if the value has already been instantiated and if so returns the\n * cached `injectable`. Otherwise if it detects that the value is still a factory it\n * instantiates the `injectable` and caches the value.\n */\nfunction getNodeInjectable(lView, tView, index, tNode) {\n let value = lView[index];\n const tData = tView.data;\n if (isFactory(value)) {\n const factory = value;\n if (factory.resolving) {\n throwCyclicDependencyError(stringifyForError(tData[index]));\n }\n const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);\n factory.resolving = true;\n let prevInjectContext;\n if (ngDevMode) {\n // tData indexes mirror the concrete instances in its corresponding LView.\n // lView[index] here is either the injectable instace itself or a factory,\n // therefore tData[index] is the constructor of that injectable or a\n // definition object that contains the constructor in a `.type` field.\n const token = tData[index].type || tData[index];\n const injector = new NodeInjector(tNode, lView);\n prevInjectContext = setInjectorProfilerContext({ injector, token });\n }\n const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;\n const success = enterDI(lView, tNode, InjectFlags.Default);\n ngDevMode &&\n assertEqual(success, true, 'Because flags do not contain \\`SkipSelf\\' we expect this to always succeed.');\n try {\n value = lView[index] = factory.factory(undefined, tData, lView, tNode);\n ngDevMode && emitInstanceCreatedByInjectorEvent(value);\n // This code path is hit for both directives and providers.\n // For perf reasons, we want to avoid searching for hooks on providers.\n // It does no harm to try (the hooks just won't exist), but the extra\n // checks are unnecessary and this is a hot path. So we check to see\n // if the index of the dependency is in the directive range for this\n // tNode. If it's not, we know it's a provider and skip hook registration.\n if (tView.firstCreatePass && index >= tNode.directiveStart) {\n ngDevMode && assertDirectiveDef(tData[index]);\n registerPreOrderHooks(index, tData[index], tView);\n }\n }\n finally {\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n previousInjectImplementation !== null &&\n setInjectImplementation(previousInjectImplementation);\n setIncludeViewProviders(previousIncludeViewProviders);\n factory.resolving = false;\n leaveDI();\n }\n }\n return value;\n}\n/**\n * Returns the bit in an injector's bloom filter that should be used to determine whether or not\n * the directive might be provided by the injector.\n *\n * When a directive is public, it is added to the bloom filter and given a unique ID that can be\n * retrieved on the Type. When the directive isn't public or the token is not a directive `null`\n * is returned as the node injector can not possibly provide that token.\n *\n * @param token the injection token\n * @returns the matching bit to check in the bloom filter or `null` if the token is not known.\n * When the returned value is negative then it represents special values such as `Injector`.\n */\nfunction bloomHashBitOrFactory(token) {\n ngDevMode && assertDefined(token, 'token must be defined');\n if (typeof token === 'string') {\n return token.charCodeAt(0) || 0;\n }\n const tokenId = \n // First check with `hasOwnProperty` so we don't get an inherited ID.\n token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;\n // Negative token IDs are used for special objects such as `Injector`\n if (typeof tokenId === 'number') {\n if (tokenId >= 0) {\n return tokenId & BLOOM_MASK;\n }\n else {\n ngDevMode &&\n assertEqual(tokenId, -1 /* InjectorMarkers.Injector */, 'Expecting to get Special Injector Id');\n return createNodeInjector;\n }\n }\n else {\n return tokenId;\n }\n}\nfunction bloomHasToken(bloomHash, injectorIndex, injectorView) {\n // Create a mask that targets the specific bit associated with the directive we're looking for.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of\n // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset\n // that should be used.\n const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];\n // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,\n // this injector is a potential match.\n return !!(value & mask);\n}\n/** Returns true if flags prevent parent injector from being searched for tokens */\nfunction shouldSearchParent(flags, isFirstHostTNode) {\n return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);\n}\nfunction getNodeInjectorLView(nodeInjector) {\n return nodeInjector._lView;\n}\nfunction getNodeInjectorTNode(nodeInjector) {\n return nodeInjector._tNode;\n}\nclass NodeInjector {\n constructor(_tNode, _lView) {\n this._tNode = _tNode;\n this._lView = _lView;\n }\n get(token, notFoundValue, flags) {\n return getOrCreateInjectable(this._tNode, this._lView, token, convertToBitFlags(flags), notFoundValue);\n }\n}\n/** Creates a `NodeInjector` for the current node. */\nfunction createNodeInjector() {\n return new NodeInjector(getCurrentTNode(), getLView());\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵgetInheritedFactory(type) {\n return noSideEffects(() => {\n const ownConstructor = type.prototype.constructor;\n const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);\n const objectPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objectPrototype) {\n const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);\n // If we hit something that has a factory and the factory isn't the same as the type,\n // we've found the inherited factory. Note the check that the factory isn't the type's\n // own factory is redundant in most cases, but if the user has custom decorators on the\n // class, this lookup will start one level down in the prototype chain, causing us to\n // find the own factory first and potentially triggering an infinite loop downstream.\n if (factory && factory !== ownFactory) {\n return factory;\n }\n parent = Object.getPrototypeOf(parent);\n }\n // There is no factory defined. Either this was improper usage of inheritance\n // (no Angular decorator on the superclass) or there is no constructor at all\n // in the inheritance chain. Since the two cases cannot be distinguished, the\n // latter has to be assumed.\n return (t) => new t();\n });\n}\nfunction getFactoryOf(type) {\n if (isForwardRef(type)) {\n return () => {\n const factory = getFactoryOf(resolveForwardRef(type));\n return factory && factory();\n };\n }\n return getFactoryDef(type);\n}\n/**\n * Returns a value from the closest embedded or node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, notFoundValue) {\n let currentTNode = tNode;\n let currentLView = lView;\n // When an LView with an embedded view injector is inserted, it'll likely be interlaced with\n // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector).\n // Since the bloom filters for the node injectors have already been constructed and we don't\n // have a way of extracting the records from an injector, the only way to maintain the correct\n // hierarchy when resolving the value is to walk it node-by-node while attempting to resolve\n // the token at each level.\n while (currentTNode !== null && currentLView !== null &&\n (currentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */) &&\n !(currentLView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n ngDevMode && assertTNodeForLView(currentTNode, currentLView);\n // Note that this lookup on the node injector is using the `Self` flag, because\n // we don't want the node injector to look at any parent injectors since we\n // may hit the embedded view injector first.\n const nodeInjectorValue = lookupTokenUsingNodeInjector(currentTNode, currentLView, token, flags | InjectFlags.Self, NOT_FOUND);\n if (nodeInjectorValue !== NOT_FOUND) {\n return nodeInjectorValue;\n }\n // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191\n let parentTNode = currentTNode.parent;\n // `TNode.parent` includes the parent within the current view only. If it doesn't exist,\n // it means that we've hit the view boundary and we need to go up to the next view.\n if (!parentTNode) {\n // Before we go to the next LView, check if the token exists on the current embedded injector.\n const embeddedViewInjector = currentLView[EMBEDDED_VIEW_INJECTOR];\n if (embeddedViewInjector) {\n const embeddedViewInjectorValue = embeddedViewInjector.get(token, NOT_FOUND, flags);\n if (embeddedViewInjectorValue !== NOT_FOUND) {\n return embeddedViewInjectorValue;\n }\n }\n // Otherwise keep going up the tree.\n parentTNode = getTNodeFromLView(currentLView);\n currentLView = currentLView[DECLARATION_VIEW];\n }\n currentTNode = parentTNode;\n }\n return notFoundValue;\n}\n/** Gets the TNode associated with an LView inside of the declaration view. */\nfunction getTNodeFromLView(lView) {\n const tView = lView[TVIEW];\n const tViewType = tView.type;\n // The parent pointer differs based on `TView.type`.\n if (tViewType === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n else if (tViewType === 1 /* TViewType.Component */) {\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n return lView[T_HOST];\n }\n return null;\n}\n\n/**\n * Facade for the attribute injection from DI.\n *\n * @codeGenApi\n */\nfunction ɵɵinjectAttribute(attrNameToInject) {\n return injectAttributeImpl(getCurrentTNode(), attrNameToInject);\n}\n\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = makeParamDecorator('Attribute', (attributeName) => ({ attributeName, __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName) }));\n\nlet _reflect = null;\nfunction getReflect() {\n return (_reflect = _reflect || new ReflectionCapabilities());\n}\nfunction reflectDependencies(type) {\n return convertDependencies(getReflect().parameters(type));\n}\nfunction convertDependencies(deps) {\n return deps.map(dep => reflectDependency(dep));\n}\nfunction reflectDependency(dep) {\n const meta = {\n token: null,\n attribute: null,\n host: false,\n optional: false,\n self: false,\n skipSelf: false,\n };\n if (Array.isArray(dep) && dep.length > 0) {\n for (let j = 0; j < dep.length; j++) {\n const param = dep[j];\n if (param === undefined) {\n // param may be undefined if type of dep is not set by ngtsc\n continue;\n }\n const proto = Object.getPrototypeOf(param);\n if (param instanceof Optional || proto.ngMetadataName === 'Optional') {\n meta.optional = true;\n }\n else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {\n meta.skipSelf = true;\n }\n else if (param instanceof Self || proto.ngMetadataName === 'Self') {\n meta.self = true;\n }\n else if (param instanceof Host || proto.ngMetadataName === 'Host') {\n meta.host = true;\n }\n else if (param instanceof Inject) {\n meta.token = param.token;\n }\n else if (param instanceof Attribute) {\n if (param.attributeName === undefined) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);\n }\n meta.attribute = param.attributeName;\n }\n else {\n meta.token = param;\n }\n }\n }\n else if (dep === undefined || (Array.isArray(dep) && dep.length === 0)) {\n meta.token = null;\n }\n else {\n meta.token = dep;\n }\n return meta;\n}\n\n/**\n * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting\n * injectable def (`ɵprov`) onto the injectable type.\n */\nfunction compileInjectable(type, meta) {\n let ngInjectableDef = null;\n let ngFactoryDef = null;\n // if NG_PROV_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_PROV_DEF)) {\n Object.defineProperty(type, NG_PROV_DEF, {\n get: () => {\n if (ngInjectableDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'injectable', type });\n ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));\n }\n return ngInjectableDef;\n },\n });\n }\n // if NG_FACTORY_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_FACTORY_DEF)) {\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'injectable', type });\n ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n name: type.name,\n type,\n typeArgumentCount: 0, // In JIT mode types are not available nor used.\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Injectable\n });\n }\n return ngFactoryDef;\n },\n // Leave this configurable so that the factories from directives or pipes can take precedence.\n configurable: true\n });\n }\n}\nconst USE_VALUE = getClosureSafeProperty({ provide: String, useValue: getClosureSafeProperty });\nfunction isUseClassProvider(meta) {\n return meta.useClass !== undefined;\n}\nfunction isUseValueProvider(meta) {\n return USE_VALUE in meta;\n}\nfunction isUseFactoryProvider(meta) {\n return meta.useFactory !== undefined;\n}\nfunction isUseExistingProvider(meta) {\n return meta.useExisting !== undefined;\n}\nfunction getInjectableMetadata(type, srcMeta) {\n // Allow the compilation of a class with a `@Injectable()` decorator without parameters\n const meta = srcMeta || { providedIn: null };\n const compilerMeta = {\n name: type.name,\n type: type,\n typeArgumentCount: 0,\n providedIn: meta.providedIn,\n };\n if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {\n compilerMeta.deps = convertDependencies(meta.deps);\n }\n // Check to see if the user explicitly provided a `useXxxx` property.\n if (isUseClassProvider(meta)) {\n compilerMeta.useClass = meta.useClass;\n }\n else if (isUseValueProvider(meta)) {\n compilerMeta.useValue = meta.useValue;\n }\n else if (isUseFactoryProvider(meta)) {\n compilerMeta.useFactory = meta.useFactory;\n }\n else if (isUseExistingProvider(meta)) {\n compilerMeta.useExisting = meta.useExisting;\n }\n return compilerMeta;\n}\n\n/**\n * Injectable decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Injectable = makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));\n\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.\n */\nfunction createInjector(defType, parent = null, additionalProviders = null, name) {\n const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);\n injector.resolveInjectorInitializers();\n return injector;\n}\n/**\n * Creates a new injector without eagerly resolving its injector types. Can be used in places\n * where resolving the injector types immediately can lead to an infinite loop. The injector types\n * should be resolved at a later point by calling `_resolveInjectorDefTypes`.\n */\nfunction createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name, scopes = new Set()) {\n const providers = [\n additionalProviders || EMPTY_ARRAY,\n importProvidersFrom(defType),\n ];\n name = name || (typeof defType === 'object' ? undefined : stringify(defType));\n return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);\n}\n\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/dependency-injection-providers) that associate\n * dependencies of various types with [injection tokens](guide/dependency-injection-providers).\n *\n * @see [DI Providers](guide/dependency-injection-providers).\n * @see {@link StaticProvider}\n *\n * @usageNotes\n *\n * The following example creates a service injector instance.\n *\n * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}\n *\n * ### Usage example\n *\n * {@example core/di/ts/injector_spec.ts region='Injector'}\n *\n * `Injector` returns itself when given `Injector` as a token:\n *\n * {@example core/di/ts/injector_spec.ts region='injectInjector'}\n *\n * @publicApi\n */\nclass Injector {\n static { this.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND; }\n static { this.NULL = ( /* @__PURE__ */new NullInjector()); }\n static create(options, parent) {\n if (Array.isArray(options)) {\n return createInjector({ name: '' }, parent, options, '');\n }\n else {\n const name = options.name ?? '';\n return createInjector({ name }, options.parent, options.providers, name);\n }\n }\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: Injector,\n providedIn: 'any',\n factory: () => ɵɵinject(INJECTOR$1),\n }); }\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */; }\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Creates a token that can be used to inject static attributes of the host node.\n *\n * @usageNotes\n * ### Injecting an attribute that is known to exist\n * ```typescript\n * @Directive()\n * class MyDir {\n * attr: string = inject(new HostAttributeToken('some-attr'));\n * }\n * ```\n *\n * ### Optionally injecting an attribute\n * ```typescript\n * @Directive()\n * class MyDir {\n * attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});\n * }\n * ```\n * @publicApi\n */\nclass HostAttributeToken {\n constructor(attributeName) {\n this.attributeName = attributeName;\n /** @internal */\n this.__NG_ELEMENT_ID__ = () => ɵɵinjectAttribute(this.attributeName);\n }\n toString() {\n return `HostAttributeToken ${this.attributeName}`;\n }\n}\n\n/**\n * @module\n * @description\n * The `di` module provides dependency injection container services.\n */\n\n/**\n * This file should not be necessary because node resolution should just default to `./di/index`!\n *\n * However it does not seem to work and it breaks:\n * - //packages/animations/browser/test:test_web_chromium-local\n * - //packages/compiler-cli/test:extract_i18n\n * - //packages/compiler-cli/test:ngc\n * - //packages/compiler-cli/test:perform_watch\n * - //packages/compiler-cli/test/diagnostics:check_types\n * - //packages/compiler-cli/test/transformers:test\n * - //packages/compiler/test:test\n * - //tools/public_api_guard:core_api\n *\n * Remove this file once the above is solved or wait until `ngc` is deleted and then it should be\n * safe to delete this file.\n */\n\nconst ERROR_ORIGINAL_ERROR = 'ngOriginalError';\nfunction wrappedError(message, originalError) {\n const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;\n const error = Error(msg);\n error[ERROR_ORIGINAL_ERROR] = originalError;\n return error;\n}\nfunction getOriginalError(error) {\n return error[ERROR_ORIGINAL_ERROR];\n}\n\n/**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\n * intercept error handling, write a custom exception handler that replaces this default as\n * appropriate for your app.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * class MyErrorHandler implements ErrorHandler {\n * handleError(error) {\n * // do something with the exception\n * }\n * }\n *\n * @NgModule({\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n constructor() {\n /**\n * @internal\n */\n this._console = console;\n }\n handleError(error) {\n const originalError = this._findOriginalError(error);\n this._console.error('ERROR', error);\n if (originalError) {\n this._console.error('ORIGINAL ERROR', originalError);\n }\n }\n /** @internal */\n _findOriginalError(error) {\n let e = error && getOriginalError(error);\n while (e && getOriginalError(e)) {\n e = getOriginalError(e);\n }\n return e || null;\n }\n}\n/**\n * `InjectionToken` used to configure how to call the `ErrorHandler`.\n *\n * `NgZone` is provided by default today so the default (and only) implementation for this\n * is calling `ErrorHandler.handleError` outside of the Angular zone.\n */\nconst INTERNAL_APPLICATION_ERROR_HANDLER = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'internal error handler' : '', {\n providedIn: 'root',\n factory: () => {\n const userErrorHandler = inject(ErrorHandler);\n return userErrorHandler.handleError.bind(undefined);\n }\n});\n\n/**\n * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.\n * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`\n * is injected in a component or directive, the callbacks run when that component or\n * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.\n *\n * @publicApi\n */\nclass DestroyRef {\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = injectDestroyRef; }\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ENV_ID__ = (injector) => injector; }\n}\nclass NodeInjectorDestroyRef extends DestroyRef {\n constructor(_lView) {\n super();\n this._lView = _lView;\n }\n onDestroy(callback) {\n storeLViewOnDestroy(this._lView, callback);\n return () => removeLViewOnDestroy(this._lView, callback);\n }\n}\nfunction injectDestroyRef() {\n return new NodeInjectorDestroyRef(getLView());\n}\n\n/**\n * An `OutputEmitterRef` is created by the `output()` function and can be\n * used to emit values to consumers of your directive or component.\n *\n * Consumers of your directive/component can bind to the output and\n * subscribe to changes via the bound event syntax. For example:\n *\n * ```html\n * <my-comp (valueChange)=\"processNewValue($event)\" />\n * ```\n *\n * @developerPreview\n */\nclass OutputEmitterRef {\n constructor() {\n this.destroyed = false;\n this.listeners = null;\n this.errorHandler = inject(ErrorHandler, { optional: true });\n /** @internal */\n this.destroyRef = inject(DestroyRef);\n // Clean-up all listeners and mark as destroyed upon destroy.\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n this.listeners = null;\n });\n }\n subscribe(callback) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode &&\n 'Unexpected subscription to destroyed `OutputRef`. ' +\n 'The owning directive/component is destroyed.');\n }\n (this.listeners ??= []).push(callback);\n return {\n unsubscribe: () => {\n const idx = this.listeners?.indexOf(callback);\n if (idx !== undefined && idx !== -1) {\n this.listeners?.splice(idx, 1);\n }\n }\n };\n }\n /** Emits a new value to the output. */\n emit(value) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode &&\n 'Unexpected emit for destroyed `OutputRef`. ' +\n 'The owning directive/component is destroyed.');\n }\n if (this.listeners === null) {\n return;\n }\n const previousConsumer = setActiveConsumer$1(null);\n try {\n for (const listenerFn of this.listeners) {\n try {\n listenerFn(value);\n }\n catch (err) {\n this.errorHandler?.handleError(err);\n }\n }\n }\n finally {\n setActiveConsumer$1(previousConsumer);\n }\n }\n}\n/** Gets the owning `DestroyRef` for the given output. */\nfunction getOutputDestroyRef(ref) {\n return ref.destroyRef;\n}\n\n/**\n * The `output` function allows declaration of Angular outputs in\n * directives and components.\n *\n * You can use outputs to emit values to parent directives and component.\n * Parents can subscribe to changes via:\n *\n * - template event bindings. For example, `(myOutput)=\"doSomething($event)\"`\n * - programmatic subscription by using `OutputRef#subscribe`.\n *\n * @usageNotes\n *\n * To use `output()`, import the function from `@angular/core`.\n *\n * ```\n * import {output} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `output`.\n *\n * ```ts\n * @Directive({\n * ...\n * })\n * export class MyDir {\n * nameChange = output<string>(); // OutputEmitterRef<string>\n * onClick = output(); // OutputEmitterRef<void>\n * }\n * ```\n *\n * You can emit values to consumers of your directive, by using\n * the `emit` method from `OutputEmitterRef`.\n *\n * ```ts\n * updateName(newName: string): void {\n * this.nameChange.emit(newName);\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction {\"showTypesInSignaturePreview\": true}\n */\nfunction output(opts) {\n ngDevMode && assertInInjectionContext(output);\n return new OutputEmitterRef();\n}\n\nfunction inputFunction(initialValue, opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(initialValue, opts);\n}\nfunction inputRequiredFunction(opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * The `input` function allows declaration of Angular inputs in directives\n * and components.\n *\n * There are two variants of inputs that can be declared:\n *\n * 1. **Optional inputs** with an initial value.\n * 2. **Required inputs** that consumers need to set.\n *\n * By default, the `input` function will declare optional inputs that\n * always have an initial value. Required inputs can be declared\n * using the `input.required()` function.\n *\n * Inputs are signals. The values of an input are exposed as a `Signal`.\n * The signal always holds the latest value of the input that is bound\n * from the parent.\n *\n * @usageNotes\n * To use signal-based inputs, import `input` from `@angular/core`.\n *\n * ```\n * import {input} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `input` or `input.required`.\n *\n * ```ts\n * @Component({\n * ...\n * })\n * export class UserProfileComponent {\n * firstName = input<string>(); // Signal<string|undefined>\n * lastName = input.required<string>(); // Signal<string>\n * age = input(0) // Signal<number>\n * }\n * ```\n *\n * Inside your component template, you can display values of the inputs\n * by calling the signal.\n *\n * ```html\n * <span>{{firstName()}}</span>\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst input = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `input` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing`input` export.\n inputFunction.required = inputRequiredFunction;\n return inputFunction;\n})();\n\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nclass ElementRef {\n constructor(nativeElement) {\n this.nativeElement = nativeElement;\n }\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = injectElementRef; }\n}\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n return value instanceof ElementRef ? value.nativeElement : value;\n}\n\nclass EventEmitter_ extends Subject {\n constructor(isAsync = false) {\n super();\n this.destroyRef = undefined;\n this.__isAsync = isAsync;\n // Attempt to retrieve a `DestroyRef` optionally.\n // For backwards compatibility reasons, this cannot be required\n if (isInInjectionContext()) {\n this.destroyRef = inject(DestroyRef, { optional: true }) ?? undefined;\n }\n }\n emit(value) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n super.next(value);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n subscribe(observerOrNext, error, complete) {\n let nextFn = observerOrNext;\n let errorFn = error || (() => null);\n let completeFn = complete;\n if (observerOrNext && typeof observerOrNext === 'object') {\n const observer = observerOrNext;\n nextFn = observer.next?.bind(observer);\n errorFn = observer.error?.bind(observer);\n completeFn = observer.complete?.bind(observer);\n }\n if (this.__isAsync) {\n errorFn = _wrapInTimeout(errorFn);\n if (nextFn) {\n nextFn = _wrapInTimeout(nextFn);\n }\n if (completeFn) {\n completeFn = _wrapInTimeout(completeFn);\n }\n }\n const sink = super.subscribe({ next: nextFn, error: errorFn, complete: completeFn });\n if (observerOrNext instanceof Subscription) {\n observerOrNext.add(sink);\n }\n return sink;\n }\n}\nfunction _wrapInTimeout(fn) {\n return (value) => {\n setTimeout(fn, undefined, value);\n };\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\n\nfunction symbolIterator() {\n // @ts-expect-error accessing a private member\n return this._results[Symbol.iterator]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n static { Symbol.iterator; }\n /**\n * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n */\n get changes() {\n return this._changes ??= new EventEmitter();\n }\n /**\n * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n * has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n * the same result)\n */\n constructor(_emitDistinctChangesOnly = false) {\n this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n this.dirty = true;\n this._onDirty = undefined;\n this._results = [];\n this._changesDetected = false;\n this._changes = undefined;\n this.length = 0;\n this.first = undefined;\n this.last = undefined;\n // This function should be declared on the prototype, but doing so there will cause the class\n // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n // the constructor.\n // [Symbol.iterator](): Iterator<T> { ... }\n const proto = QueryList.prototype;\n if (!proto[Symbol.iterator])\n proto[Symbol.iterator] = symbolIterator;\n }\n /**\n * Returns the QueryList entry at `index`.\n */\n get(index) {\n return this._results[index];\n }\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n map(fn) {\n return this._results.map(fn);\n }\n filter(fn) {\n return this._results.filter(fn);\n }\n /**\n * See\n * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n */\n find(fn) {\n return this._results.find(fn);\n }\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n reduce(fn, init) {\n return this._results.reduce(fn, init);\n }\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n forEach(fn) {\n this._results.forEach(fn);\n }\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n some(fn) {\n return this._results.some(fn);\n }\n /**\n * Returns a copy of the internal results list as an Array.\n */\n toArray() {\n return this._results.slice();\n }\n toString() {\n return this._results.toString();\n }\n /**\n * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n * on change detection, it will not notify of changes to the queries, unless a new change\n * occurs.\n *\n * @param resultsTree The query results to store\n * @param identityAccessor Optional function for extracting stable object identity from a value\n * in the array. This function is executed for each element of the query result list while\n * comparing current query list with the new one (provided as a first argument of the `reset`\n * function) to detect if the lists are different. If the function is not provided, elements\n * are compared as is (without any pre-processing).\n */\n reset(resultsTree, identityAccessor) {\n this.dirty = false;\n const newResultFlat = flatten(resultsTree);\n if (this._changesDetected = !arrayEquals(this._results, newResultFlat, identityAccessor)) {\n this._results = newResultFlat;\n this.length = newResultFlat.length;\n this.last = newResultFlat[this.length - 1];\n this.first = newResultFlat[0];\n }\n }\n /**\n * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n */\n notifyOnChanges() {\n if (this._changes !== undefined && (this._changesDetected || !this._emitDistinctChangesOnly))\n this._changes.emit(this);\n }\n /** @internal */\n onDirty(cb) {\n this._onDirty = cb;\n }\n /** internal */\n setDirty() {\n this.dirty = true;\n this._onDirty?.();\n }\n /** internal */\n destroy() {\n if (this._changes !== undefined) {\n this._changes.complete();\n this._changes.unsubscribe();\n }\n }\n}\n\n/**\n * The name of an attribute that can be added to the hydration boundary node\n * (component host node) to disable hydration for the content within that boundary.\n */\nconst SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';\n/** Lowercase name of the `ngSkipHydration` attribute used for case-insensitive comparisons. */\nconst SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = 'ngskiphydration';\n/**\n * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnTNode(tNode) {\n const attrs = tNode.mergedAttrs;\n if (attrs === null)\n return false;\n // only ever look at the attribute name and skip the values\n for (let i = 0; i < attrs.length; i += 2) {\n const value = attrs[i];\n // This is a marker, which means that the static attributes section is over,\n // so we can exit early.\n if (typeof value === 'number')\n return false;\n if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {\n return true;\n }\n }\n return false;\n}\n/**\n * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnRElement(rNode) {\n return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);\n}\n/**\n * Checks whether a TNode has a flag to indicate that it's a part of\n * a skip hydration block.\n */\nfunction hasInSkipHydrationBlockFlag(tNode) {\n return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;\n}\n/**\n * Helper function that determines if a given node is within a skip hydration block\n * by navigating up the TNode tree to see if any parent nodes have skip hydration\n * attribute.\n */\nfunction isInSkipHydrationBlock(tNode) {\n if (hasInSkipHydrationBlockFlag(tNode)) {\n return true;\n }\n let currentTNode = tNode.parent;\n while (currentTNode) {\n if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n\n// Keeps track of the currently-active LViews.\nconst TRACKED_LVIEWS = new Map();\n// Used for generating unique IDs for LViews.\nlet uniqueIdCounter = 0;\n/** Gets a unique ID that can be assigned to an LView. */\nfunction getUniqueLViewId() {\n return uniqueIdCounter++;\n}\n/** Starts tracking an LView. */\nfunction registerLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'LView must have an ID in order to be registered');\n TRACKED_LVIEWS.set(lView[ID], lView);\n}\n/** Gets an LView by its unique ID. */\nfunction getLViewById(id) {\n ngDevMode && assertNumber(id, 'ID used for LView lookup must be a number');\n return TRACKED_LVIEWS.get(id) || null;\n}\n/** Stops tracking an LView. */\nfunction unregisterLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'Cannot stop tracking an LView that does not have an ID');\n TRACKED_LVIEWS.delete(lView[ID]);\n}\n\n/**\n * The internal view context which is specific to a given DOM element, directive or\n * component instance. Each value in here (besides the LView and element node details)\n * can be present, null or undefined. If undefined then it implies the value has not been\n * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.\n *\n * Each value will get filled when the respective value is examined within the getContext\n * function. The component, element and each directive instance will share the same instance\n * of the context.\n */\nclass LContext {\n /** Component's parent view data. */\n get lView() {\n return getLViewById(this.lViewId);\n }\n constructor(\n /**\n * ID of the component's parent view data.\n */\n lViewId, \n /**\n * The index instance of the node.\n */\n nodeIndex, \n /**\n * The instance of the DOM node that is attached to the lNode.\n */\n native) {\n this.lViewId = lViewId;\n this.nodeIndex = nodeIndex;\n this.native = native;\n }\n}\n\n/**\n * Returns the matching `LContext` data for a given DOM node, directive or component instance.\n *\n * This function will examine the provided DOM element, component, or directive instance\\'s\n * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched\n * value will be that of the newly created `LContext`.\n *\n * If the monkey-patched value is the `LView` instance then the context value for that\n * target will be created and the monkey-patch reference will be updated. Therefore when this\n * function is called it may mutate the provided element\\'s, component\\'s or any of the associated\n * directive\\'s monkey-patch values.\n *\n * If the monkey-patch value is not detected then the code will walk up the DOM until an element\n * is found which contains a monkey-patch reference. When that occurs then the provided element\n * will be updated with a new context (which is then returned). If the monkey-patch value is not\n * detected for a component/directive instance then it will throw an error (all components and\n * directives should be automatically monkey-patched by ivy).\n *\n * @param target Component, Directive or DOM Node.\n */\nfunction getLContext(target) {\n let mpValue = readPatchedData(target);\n if (mpValue) {\n // only when it's an array is it considered an LView instance\n // ... otherwise it's an already constructed LContext instance\n if (isLView(mpValue)) {\n const lView = mpValue;\n let nodeIndex;\n let component = undefined;\n let directives = undefined;\n if (isComponentInstance(target)) {\n nodeIndex = findViaComponent(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided component was not found in the application');\n }\n component = target;\n }\n else if (isDirectiveInstance(target)) {\n nodeIndex = findViaDirective(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided directive was not found in the application');\n }\n directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n }\n else {\n nodeIndex = findViaNativeElement(lView, target);\n if (nodeIndex == -1) {\n return null;\n }\n }\n // the goal is not to fill the entire context full of data because the lookups\n // are expensive. Instead, only the target data (the element, component, container, ICU\n // expression or directive details) are filled into the context. If called multiple times\n // with different target values then the missing target data will be filled in.\n const native = unwrapRNode(lView[nodeIndex]);\n const existingCtx = readPatchedData(native);\n const context = (existingCtx && !Array.isArray(existingCtx)) ?\n existingCtx :\n createLContext(lView, nodeIndex, native);\n // only when the component has been discovered then update the monkey-patch\n if (component && context.component === undefined) {\n context.component = component;\n attachPatchData(context.component, context);\n }\n // only when the directives have been discovered then update the monkey-patch\n if (directives && context.directives === undefined) {\n context.directives = directives;\n for (let i = 0; i < directives.length; i++) {\n attachPatchData(directives[i], context);\n }\n }\n attachPatchData(context.native, context);\n mpValue = context;\n }\n }\n else {\n const rElement = target;\n ngDevMode && assertDomNode(rElement);\n // if the context is not found then we need to traverse upwards up the DOM\n // to find the nearest element that has already been monkey patched with data\n let parent = rElement;\n while (parent = parent.parentNode) {\n const parentContext = readPatchedData(parent);\n if (parentContext) {\n const lView = Array.isArray(parentContext) ? parentContext : parentContext.lView;\n // the edge of the app was also reached here through another means\n // (maybe because the DOM was changed manually).\n if (!lView) {\n return null;\n }\n const index = findViaNativeElement(lView, rElement);\n if (index >= 0) {\n const native = unwrapRNode(lView[index]);\n const context = createLContext(lView, index, native);\n attachPatchData(native, context);\n mpValue = context;\n break;\n }\n }\n }\n }\n return mpValue || null;\n}\n/**\n * Creates an empty instance of a `LContext` context\n */\nfunction createLContext(lView, nodeIndex, native) {\n return new LContext(lView[ID], nodeIndex, native);\n}\n/**\n * Takes a component instance and returns the view for that component.\n *\n * @param componentInstance\n * @returns The component's view\n */\nfunction getComponentViewByInstance(componentInstance) {\n let patchedData = readPatchedData(componentInstance);\n let lView;\n if (isLView(patchedData)) {\n const contextLView = patchedData;\n const nodeIndex = findViaComponent(contextLView, componentInstance);\n lView = getComponentLViewByIndex(nodeIndex, contextLView);\n const context = createLContext(contextLView, nodeIndex, lView[HOST]);\n context.component = componentInstance;\n attachPatchData(componentInstance, context);\n attachPatchData(context.native, context);\n }\n else {\n const context = patchedData;\n const contextLView = context.lView;\n ngDevMode && assertLView(contextLView);\n lView = getComponentLViewByIndex(context.nodeIndex, contextLView);\n }\n return lView;\n}\n/**\n * This property will be monkey-patched on elements, components and directives.\n */\nconst MONKEY_PATCH_KEY_NAME = '__ngContext__';\n/**\n * Assigns the given data to the given target (which could be a component,\n * directive or DOM node instance) using monkey-patching.\n */\nfunction attachPatchData(target, data) {\n ngDevMode && assertDefined(target, 'Target expected');\n // Only attach the ID of the view in order to avoid memory leaks (see #41047). We only do this\n // for `LView`, because we have control over when an `LView` is created and destroyed, whereas\n // we can't know when to remove an `LContext`.\n if (isLView(data)) {\n target[MONKEY_PATCH_KEY_NAME] = data[ID];\n registerLView(data);\n }\n else {\n target[MONKEY_PATCH_KEY_NAME] = data;\n }\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readPatchedData(target) {\n ngDevMode && assertDefined(target, 'Target expected');\n const data = target[MONKEY_PATCH_KEY_NAME];\n return (typeof data === 'number') ? getLViewById(data) : data || null;\n}\nfunction readPatchedLView(target) {\n const value = readPatchedData(target);\n if (value) {\n return (isLView(value) ? value : value.lView);\n }\n return null;\n}\nfunction isComponentInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵcmp;\n}\nfunction isDirectiveInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵdir;\n}\n/**\n * Locates the element within the given LView and returns the matching index\n */\nfunction findViaNativeElement(lView, target) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (unwrapRNode(lView[i]) === target) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Locates the next tNode (child, sibling or parent).\n */\nfunction traverseNextElement(tNode) {\n if (tNode.child) {\n return tNode.child;\n }\n else if (tNode.next) {\n return tNode.next;\n }\n else {\n // Let's take the following template: <div><span>text</span></div><component/>\n // After checking the text node, we need to find the next parent that has a \"next\" TNode,\n // in this case the parent `div`, so that we can find the component.\n while (tNode.parent && !tNode.parent.next) {\n tNode = tNode.parent;\n }\n return tNode.parent && tNode.parent.next;\n }\n}\n/**\n * Locates the component within the given LView and returns the matching index\n */\nfunction findViaComponent(lView, componentInstance) {\n const componentIndices = lView[TVIEW].components;\n if (componentIndices) {\n for (let i = 0; i < componentIndices.length; i++) {\n const elementComponentIndex = componentIndices[i];\n const componentView = getComponentLViewByIndex(elementComponentIndex, lView);\n if (componentView[CONTEXT] === componentInstance) {\n return elementComponentIndex;\n }\n }\n }\n else {\n const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);\n const rootComponent = rootComponentView[CONTEXT];\n if (rootComponent === componentInstance) {\n // we are dealing with the root element here therefore we know that the\n // element is the very first element after the HEADER data in the lView\n return HEADER_OFFSET;\n }\n }\n return -1;\n}\n/**\n * Locates the directive within the given LView and returns the matching index\n */\nfunction findViaDirective(lView, directiveInstance) {\n // if a directive is monkey patched then it will (by default)\n // have a reference to the LView of the current view. The\n // element bound to the directive being search lives somewhere\n // in the view data. We loop through the nodes and check their\n // list of directives for the instance.\n let tNode = lView[TVIEW].firstChild;\n while (tNode) {\n const directiveIndexStart = tNode.directiveStart;\n const directiveIndexEnd = tNode.directiveEnd;\n for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {\n if (lView[i] === directiveInstance) {\n return tNode.index;\n }\n }\n tNode = traverseNextElement(tNode);\n }\n return -1;\n}\n/**\n * Returns a list of directives applied to a node at a specific index. The list includes\n * directives matched by selector and any host directives, but it excludes components.\n * Use `getComponentAtNodeIndex` to find the component applied to a node.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode.directiveStart === 0)\n return EMPTY_ARRAY;\n const results = [];\n for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n const directiveInstance = lView[i];\n if (!isComponentInstance(directiveInstance)) {\n results.push(directiveInstance);\n }\n }\n return results;\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n const { directiveStart, componentOffset } = tNode;\n return componentOffset > -1 ? lView[directiveStart + componentOffset] : null;\n}\n/**\n * Returns a map of local references (local reference name => element or directive instance) that\n * exist on a given element.\n */\nfunction discoverLocalRefs(lView, nodeIndex) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode && tNode.localNames) {\n const result = {};\n let localIndex = tNode.index + 1;\n for (let i = 0; i < tNode.localNames.length; i += 2) {\n result[tNode.localNames[i]] = lView[localIndex];\n localIndex++;\n }\n return result;\n }\n return null;\n}\n\n/**\n * Retrieve the root view from any component or `LView` by walking the parent `LView` until\n * reaching the root `LView`.\n *\n * @param componentOrLView any component or `LView`\n */\nfunction getRootView(componentOrLView) {\n ngDevMode && assertDefined(componentOrLView, 'component');\n let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);\n while (lView && !(lView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n lView = getLViewParent(lView);\n }\n ngDevMode && assertLView(lView);\n return lView;\n}\n/**\n * Returns the context information associated with the application where the target is situated. It\n * does this by walking the parent views until it gets to the root view, then getting the context\n * off of that.\n *\n * @param viewOrComponent the `LView` or component to get the root context for.\n */\nfunction getRootContext(viewOrComponent) {\n const rootView = getRootView(viewOrComponent);\n ngDevMode &&\n assertDefined(rootView[CONTEXT], 'Root view has no context. Perhaps it is disconnected?');\n return rootView[CONTEXT];\n}\n/**\n * Gets the first `LContainer` in the LView or `null` if none exists.\n */\nfunction getFirstLContainer(lView) {\n return getNearestLContainer(lView[CHILD_HEAD]);\n}\n/**\n * Gets the next `LContainer` that is a sibling of the given container.\n */\nfunction getNextLContainer(container) {\n return getNearestLContainer(container[NEXT]);\n}\nfunction getNearestLContainer(viewOrContainer) {\n while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {\n viewOrContainer = viewOrContainer[NEXT];\n }\n return viewOrContainer;\n}\n\n/**\n * Retrieves the component instance associated with a given DOM element.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <div>\n * <child-comp></child-comp>\n * </div>\n * </app-root>\n * ```\n *\n * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`\n * associated with this DOM element.\n *\n * Calling the function on `<app-root>` will return the `MyApp` instance.\n *\n *\n * @param element DOM element from which the component should be retrieved.\n * @returns Component instance associated with the element or `null` if there\n * is no component associated with it.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getComponent$1(element) {\n ngDevMode && assertDomElement(element);\n const context = getLContext(element);\n if (context === null)\n return null;\n if (context.component === undefined) {\n const lView = context.lView;\n if (lView === null) {\n return null;\n }\n context.component = getComponentAtNodeIndex(context.nodeIndex, lView);\n }\n return context.component;\n}\n/**\n * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded\n * view that the element is part of. Otherwise retrieves the instance of the component whose view\n * owns the element (in this case, the result is the same as calling `getOwningComponent`).\n *\n * @param element Element for which to get the surrounding component instance.\n * @returns Instance of the component that is around the element or null if the element isn't\n * inside any component.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getContext(element) {\n assertDomElement(element);\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n return lView === null ? null : lView[CONTEXT];\n}\n/**\n * Retrieves the component instance whose view contains the DOM element.\n *\n * For example, if `<child-comp>` is used in the template of `<app-comp>`\n * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`\n * would return `<app-comp>`.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Component instance whose view owns the DOM element or null if the element is not\n * part of a component view.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getOwningComponent(elementOrDir) {\n const context = getLContext(elementOrDir);\n let lView = context ? context.lView : null;\n if (lView === null)\n return null;\n let parent;\n while (lView[TVIEW].type === 2 /* TViewType.Embedded */ && (parent = getLViewParent(lView))) {\n lView = parent;\n }\n return lView[FLAGS] & 512 /* LViewFlags.IsRoot */ ? null : lView[CONTEXT];\n}\n/**\n * Retrieves all root components associated with a DOM element, directive or component instance.\n * Root components are those which have been bootstrapped by Angular.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Root components associated with the target object.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getRootComponents(elementOrDir) {\n const lView = readPatchedLView(elementOrDir);\n return lView !== null ? [getRootContext(lView)] : [];\n}\n/**\n * Retrieves an `Injector` associated with an element, component or directive instance.\n *\n * @param elementOrDir DOM element, component or directive instance for which to\n * retrieve the injector.\n * @returns Injector associated with the element, component or directive instance.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getInjector(elementOrDir) {\n const context = getLContext(elementOrDir);\n const lView = context ? context.lView : null;\n if (lView === null)\n return Injector.NULL;\n const tNode = lView[TVIEW].data[context.nodeIndex];\n return new NodeInjector(tNode, lView);\n}\n/**\n * Retrieve a set of injection tokens at a given DOM node.\n *\n * @param element Element for which the injection tokens should be retrieved.\n */\nfunction getInjectionTokens(element) {\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n if (lView === null)\n return [];\n const tView = lView[TVIEW];\n const tNode = tView.data[context.nodeIndex];\n const providerTokens = [];\n const startIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const endIndex = tNode.directiveEnd;\n for (let i = startIndex; i < endIndex; i++) {\n let value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}\n/**\n * Retrieves directive instances associated with a given DOM node. Does not include\n * component instances.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <button my-button></button>\n * <my-comp></my-comp>\n * </app-root>\n * ```\n *\n * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`\n * directive that is associated with the DOM node.\n *\n * Calling `getDirectives` on `<my-comp>` will return an empty array.\n *\n * @param node DOM node for which to get the directives.\n * @returns Array of directives associated with the node.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getDirectives(node) {\n // Skip text nodes because we can't have directives associated with them.\n if (node instanceof Text) {\n return [];\n }\n const context = getLContext(node);\n const lView = context ? context.lView : null;\n if (lView === null) {\n return [];\n }\n const tView = lView[TVIEW];\n const nodeIndex = context.nodeIndex;\n if (!tView?.data[nodeIndex]) {\n return [];\n }\n if (context.directives === undefined) {\n context.directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n }\n // The `directives` in this case are a named array called `LComponentView`. Clone the\n // result so we don't expose an internal data structure in the user's console.\n return context.directives === null ? [] : [...context.directives];\n}\n/**\n * Returns the debug (partial) metadata for a particular directive or component instance.\n * The function accepts an instance of a directive or component and returns the corresponding\n * metadata.\n *\n * @param directiveOrComponentInstance Instance of a directive or component\n * @returns metadata of the passed directive or component\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getDirectiveMetadata$1(directiveOrComponentInstance) {\n const { constructor } = directiveOrComponentInstance;\n if (!constructor) {\n throw new Error('Unable to find the instance constructor');\n }\n // In case a component inherits from a directive, we may have component and directive metadata\n // To ensure we don't get the metadata of the directive, we want to call `getComponentDef` first.\n const componentDef = getComponentDef(constructor);\n if (componentDef) {\n const inputs = extractInputDebugMetadata(componentDef.inputs);\n return {\n inputs,\n outputs: componentDef.outputs,\n encapsulation: componentDef.encapsulation,\n changeDetection: componentDef.onPush ? ChangeDetectionStrategy.OnPush :\n ChangeDetectionStrategy.Default\n };\n }\n const directiveDef = getDirectiveDef(constructor);\n if (directiveDef) {\n const inputs = extractInputDebugMetadata(directiveDef.inputs);\n return { inputs, outputs: directiveDef.outputs };\n }\n return null;\n}\n/**\n * Retrieve map of local references.\n *\n * The references are retrieved as a map of local reference name to element or directive instance.\n *\n * @param target DOM element, component or directive instance for which to retrieve\n * the local references.\n */\nfunction getLocalRefs(target) {\n const context = getLContext(target);\n if (context === null)\n return {};\n if (context.localRefs === undefined) {\n const lView = context.lView;\n if (lView === null) {\n return {};\n }\n context.localRefs = discoverLocalRefs(lView, context.nodeIndex);\n }\n return context.localRefs || {};\n}\n/**\n * Retrieves the host element of a component or directive instance.\n * The host element is the DOM element that matched the selector of the directive.\n *\n * @param componentOrDirective Component or directive instance for which the host\n * element should be retrieved.\n * @returns Host element of the target.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getHostElement(componentOrDirective) {\n return getLContext(componentOrDirective).native;\n}\n/**\n * Retrieves the rendered text for a given component.\n *\n * This function retrieves the host element of a component and\n * and then returns the `textContent` for that element. This implies\n * that the text returned will include re-projected content of\n * the component as well.\n *\n * @param component The component to return the content text for.\n */\nfunction getRenderedText(component) {\n const hostElement = getHostElement(component);\n return hostElement.textContent || '';\n}\n/**\n * Retrieves a list of event listeners associated with a DOM element. The list does include host\n * listeners, but it does not include event listeners defined outside of the Angular context\n * (e.g. through `addEventListener`).\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <div (click)=\"doSomething()\"></div>\n * </app-root>\n * ```\n *\n * Calling `getListeners` on `<div>` will return an object that looks as follows:\n *\n * ```ts\n * {\n * name: 'click',\n * element: <div>,\n * callback: () => doSomething(),\n * useCapture: false\n * }\n * ```\n *\n * @param element Element for which the DOM listeners should be retrieved.\n * @returns Array of event listeners on the DOM element.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getListeners(element) {\n ngDevMode && assertDomElement(element);\n const lContext = getLContext(element);\n const lView = lContext === null ? null : lContext.lView;\n if (lView === null)\n return [];\n const tView = lView[TVIEW];\n const lCleanup = lView[CLEANUP];\n const tCleanup = tView.cleanup;\n const listeners = [];\n if (tCleanup && lCleanup) {\n for (let i = 0; i < tCleanup.length;) {\n const firstParam = tCleanup[i++];\n const secondParam = tCleanup[i++];\n if (typeof firstParam === 'string') {\n const name = firstParam;\n const listenerElement = unwrapRNode(lView[secondParam]);\n const callback = lCleanup[tCleanup[i++]];\n const useCaptureOrIndx = tCleanup[i++];\n // if useCaptureOrIndx is boolean then report it as is.\n // if useCaptureOrIndx is positive number then it in unsubscribe method\n // if useCaptureOrIndx is negative number then it is a Subscription\n const type = (typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0) ? 'dom' : 'output';\n const useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;\n if (element == listenerElement) {\n listeners.push({ element, name, callback, useCapture, type });\n }\n }\n }\n }\n listeners.sort(sortListeners);\n return listeners;\n}\nfunction sortListeners(a, b) {\n if (a.name == b.name)\n return 0;\n return a.name < b.name ? -1 : 1;\n}\n/**\n * This function should not exist because it is megamorphic and only mostly correct.\n *\n * See call site for more info.\n */\nfunction isDirectiveDefHack(obj) {\n return obj.type !== undefined && obj.declaredInputs !== undefined &&\n obj.findHostDirectiveDefs !== undefined;\n}\n/**\n * Retrieve the component `LView` from component/element.\n *\n * NOTE: `LView` is a private and should not be leaked outside.\n * Don't export this method to `ng.*` on window.\n *\n * @param target DOM element or component instance for which to retrieve the LView.\n */\nfunction getComponentLView(target) {\n const lContext = getLContext(target);\n const nodeIndx = lContext.nodeIndex;\n const lView = lContext.lView;\n ngDevMode && assertLView(lView);\n const componentLView = lView[nodeIndx];\n ngDevMode && assertLView(componentLView);\n return componentLView;\n}\n/** Asserts that a value is a DOM Element. */\nfunction assertDomElement(value) {\n if (typeof Element !== 'undefined' && !(value instanceof Element)) {\n throw new Error('Expecting instance of DOM Element');\n }\n}\n/**\n * A directive definition holds additional metadata using bitwise flags to indicate\n * for example whether it is signal based.\n *\n * This information needs to be separate from the `publicName -> minifiedName`\n * mappings for backwards compatibility.\n */\nfunction extractInputDebugMetadata(inputs) {\n const res = {};\n for (const key in inputs) {\n if (!inputs.hasOwnProperty(key)) {\n continue;\n }\n const value = inputs[key];\n if (value === undefined) {\n continue;\n }\n let minifiedName;\n if (Array.isArray(value)) {\n minifiedName = value[0];\n // flags are not used for now.\n // TODO: Consider exposing flag information in discovery.\n }\n else {\n minifiedName = value;\n }\n res[key] = minifiedName;\n }\n return res;\n}\n\n/**\n * Most of the use of `document` in Angular is from within the DI system so it is possible to simply\n * inject the `DOCUMENT` token and are done.\n *\n * Ivy is special because it does not rely upon the DI and must get hold of the document some other\n * way.\n *\n * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.\n * Wherever ivy needs the global document, it calls `getDocument()` instead.\n *\n * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to\n * tell ivy what the global `document` is.\n *\n * Angular does this for us in each of the standard platforms (`Browser` and `Server`)\n * by calling `setDocument()` when providing the `DOCUMENT` token.\n */\nlet DOCUMENT = undefined;\n/**\n * Tell ivy what the `document` is for this platform.\n *\n * It is only necessary to call this if the current platform is not a browser.\n *\n * @param document The object representing the global `document` in this environment.\n */\nfunction setDocument(document) {\n DOCUMENT = document;\n}\n/**\n * Access the object that represents the `document` for this platform.\n *\n * Ivy calls this whenever it needs to access the `document` object.\n * For example to create the renderer or to do sanitization.\n */\nfunction getDocument() {\n if (DOCUMENT !== undefined) {\n return DOCUMENT;\n }\n else if (typeof document !== 'undefined') {\n return document;\n }\n throw new RuntimeError(210 /* RuntimeErrorCode.MISSING_DOCUMENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `The document object is not available in this context. Make sure the DOCUMENT injection token is provided.`);\n // No \"document\" can be found. This should only happen if we are running ivy outside Angular and\n // the current platform is not a browser. Since this is not a supported scenario at the moment\n // this should not happen in Angular apps.\n // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a\n // public API.\n}\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") representing a string ID, used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated} is being used.\n *\n * The token is needed in cases when multiple applications are bootstrapped on a page\n * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications\n * have different `APP_ID` value setup. For example:\n *\n * ```\n * bootstrapApplication(ComponentA, {\n * providers: [\n * { provide: APP_ID, useValue: 'app-a' },\n * // ... other providers ...\n * ]\n * });\n *\n * bootstrapApplication(ComponentB, {\n * providers: [\n * { provide: APP_ID, useValue: 'app-b' },\n * // ... other providers ...\n * ]\n * });\n * ```\n *\n * By default, when there is only one application bootstrapped, you don't need to provide the\n * `APP_ID` token (the `ng` will be used as an app ID).\n *\n * @publicApi\n */\nconst APP_ID = new InjectionToken(ngDevMode ? 'AppId' : '', {\n providedIn: 'root',\n factory: () => DEFAULT_APP_ID,\n});\n/** Default value of the `APP_ID` token. */\nconst DEFAULT_APP_ID = 'ng';\n/**\n * A function that is executed when a platform is initialized.\n * @publicApi\n */\nconst PLATFORM_INITIALIZER = new InjectionToken(ngDevMode ? 'Platform Initializer' : '');\n/**\n * A token that indicates an opaque platform ID.\n * @publicApi\n */\nconst PLATFORM_ID = new InjectionToken(ngDevMode ? 'Platform ID' : '', {\n providedIn: 'platform',\n factory: () => 'unknown', // set a default platform name, when none set explicitly\n});\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates the root directory of\n * the application\n * @publicApi\n * @deprecated\n */\nconst PACKAGE_ROOT_URL = new InjectionToken(ngDevMode ? 'Application Packages Root URL' : '');\n// We keep this token here, rather than the animations package, so that modules that only care\n// about which animations module is loaded (e.g. the CDK) can retrieve it without having to\n// include extra dependencies. See #44970 for more context.\n/**\n * A [DI token](api/core/InjectionToken) that indicates which animations\n * module has been loaded.\n * @publicApi\n */\nconst ANIMATION_MODULE_TYPE = new InjectionToken(ngDevMode ? 'AnimationModuleType' : '');\n// TODO(crisbeto): link to CSP guide here.\n/**\n * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that\n * Angular will apply when inserting inline styles. If not provided, Angular will look up its value\n * from the `ngCspNonce` attribute of the application root node.\n *\n * @publicApi\n */\nconst CSP_NONCE = new InjectionToken(ngDevMode ? 'CSP nonce' : '', {\n providedIn: 'root',\n factory: () => {\n // Ideally we wouldn't have to use `querySelector` here since we know that the nonce will be on\n // the root node, but because the token value is used in renderers, it has to be available\n // *very* early in the bootstrapping process. This should be a fairly shallow search, because\n // the app won't have been added to the DOM yet. Some approaches that were considered:\n // 1. Find the root node through `ApplicationRef.components[i].location` - normally this would\n // be enough for our purposes, but the token is injected very early so the `components` array\n // isn't populated yet.\n // 2. Find the root `LView` through the current `LView` - renderers are a prerequisite to\n // creating the `LView`. This means that no `LView` will have been entered when this factory is\n // invoked for the root component.\n // 3. Have the token factory return `() => string` which is invoked when a nonce is requested -\n // the slightly later execution does allow us to get an `LView` reference, but the fact that\n // it is a function means that it could be executed at *any* time (including immediately) which\n // may lead to weird bugs.\n // 4. Have the `ComponentFactory` read the attribute and provide it to the injector under the\n // hood - has the same problem as #1 and #2 in that the renderer is used to query for the root\n // node and the nonce value needs to be available when the renderer is created.\n return getDocument().body?.querySelector('[ngCspNonce]')?.getAttribute('ngCspNonce') || null;\n },\n});\nconst IMAGE_CONFIG_DEFAULTS = {\n breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],\n placeholderResolution: 30,\n disableImageSizeWarning: false,\n disableImageLazyLoadWarning: false,\n};\n/**\n * Injection token that configures the image optimized image functionality.\n * See {@link ImageConfig} for additional information about parameters that\n * can be used.\n *\n * @see {@link NgOptimizedImage}\n * @see {@link ImageConfig}\n * @publicApi\n */\nconst IMAGE_CONFIG = new InjectionToken(ngDevMode ? 'ImageConfig' : '', { providedIn: 'root', factory: () => IMAGE_CONFIG_DEFAULTS });\n\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\n * const COUNTER_KEY = makeStateKey<number>('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n */\nfunction makeStateKey(key) {\n return key;\n}\nfunction initTransferState() {\n const transferState = new TransferState();\n if (inject(PLATFORM_ID) === 'browser') {\n transferState.store = retrieveTransferredState(getDocument(), inject(APP_ID));\n }\n return transferState;\n}\n/**\n * A key value store that is transferred from the application on the server side to the application\n * on the client side.\n *\n * The `TransferState` is available as an injectable token.\n * On the client, just inject this token using DI and use it, it will be lazily initialized.\n * On the server it's already included if `renderApplication` function is used. Otherwise, import\n * the `ServerTransferStateModule` module to make the `TransferState` available.\n *\n * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only\n * boolean, number, string, null and non-class objects will be serialized and deserialized in a\n * non-lossy manner.\n *\n * @publicApi\n */\nclass TransferState {\n constructor() {\n /** @internal */\n this.store = {};\n this.onSerializeCallbacks = {};\n }\n /** @nocollapse */\n static { this.ɵprov = \n /** @pureOrBreakMyCode */ ɵɵdefineInjectable({\n token: TransferState,\n providedIn: 'root',\n factory: initTransferState,\n }); }\n /**\n * Get the value corresponding to a key. Return `defaultValue` if key is not found.\n */\n get(key, defaultValue) {\n return this.store[key] !== undefined ? this.store[key] : defaultValue;\n }\n /**\n * Set the value corresponding to a key.\n */\n set(key, value) {\n this.store[key] = value;\n }\n /**\n * Remove a key from the store.\n */\n remove(key) {\n delete this.store[key];\n }\n /**\n * Test whether a key exists in the store.\n */\n hasKey(key) {\n return this.store.hasOwnProperty(key);\n }\n /**\n * Indicates whether the state is empty.\n */\n get isEmpty() {\n return Object.keys(this.store).length === 0;\n }\n /**\n * Register a callback to provide the value for a key when `toJson` is called.\n */\n onSerialize(key, callback) {\n this.onSerializeCallbacks[key] = callback;\n }\n /**\n * Serialize the current state of the store to JSON.\n */\n toJson() {\n // Call the onSerialize callbacks and put those values into the store.\n for (const key in this.onSerializeCallbacks) {\n if (this.onSerializeCallbacks.hasOwnProperty(key)) {\n try {\n this.store[key] = this.onSerializeCallbacks[key]();\n }\n catch (e) {\n console.warn('Exception in onSerialize callback: ', e);\n }\n }\n }\n // Escape script tag to avoid break out of <script> tag in serialized output.\n // Encoding of `<` is the same behaviour as G3 script_builders.\n return JSON.stringify(this.store).replace(/</g, '\\\\u003C');\n }\n}\nfunction retrieveTransferredState(doc, appId) {\n // Locate the script tag with the JSON data transferred from the server.\n // The id of the script tag is set to the Angular appId + 'state'.\n const script = doc.getElementById(appId + '-state');\n if (script?.textContent) {\n try {\n // Avoid using any here as it triggers lint errors in google3 (any is not allowed).\n // Decoding of `<` is done of the box by browsers and node.js, same behaviour as G3\n // script_builders.\n return JSON.parse(script.textContent);\n }\n catch (e) {\n console.warn('Exception while restoring TransferState for app ' + appId, e);\n }\n }\n return {};\n}\n\n/** Encodes that the node lookup should start from the host node of this component. */\nconst REFERENCE_NODE_HOST = 'h';\n/** Encodes that the node lookup should start from the document body node. */\nconst REFERENCE_NODE_BODY = 'b';\n/**\n * Describes navigation steps that the runtime logic need to perform,\n * starting from a given (known) element.\n */\nvar NodeNavigationStep;\n(function (NodeNavigationStep) {\n NodeNavigationStep[\"FirstChild\"] = \"f\";\n NodeNavigationStep[\"NextSibling\"] = \"n\";\n})(NodeNavigationStep || (NodeNavigationStep = {}));\n/**\n * Keys within serialized view data structure to represent various\n * parts. See the `SerializedView` interface below for additional information.\n */\nconst ELEMENT_CONTAINERS = 'e';\nconst TEMPLATES = 't';\nconst CONTAINERS = 'c';\nconst MULTIPLIER = 'x';\nconst NUM_ROOT_NODES = 'r';\nconst TEMPLATE_ID = 'i'; // as it's also an \"id\"\nconst NODES = 'n';\nconst DISCONNECTED_NODES = 'd';\n\n/**\n * The name of the key used in the TransferState collection,\n * where hydration information is located.\n */\nconst TRANSFER_STATE_TOKEN_ID = '__nghData__';\n/**\n * Lookup key used to reference DOM hydration data (ngh) in `TransferState`.\n */\nconst NGH_DATA_KEY = makeStateKey(TRANSFER_STATE_TOKEN_ID);\n/**\n * The name of the attribute that would be added to host component\n * nodes and contain a reference to a particular slot in transferred\n * state that contains the necessary hydration info for this component.\n */\nconst NGH_ATTR_NAME = 'ngh';\n/**\n * Marker used in a comment node to ensure hydration content integrity\n */\nconst SSR_CONTENT_INTEGRITY_MARKER = 'nghm';\n/**\n * Reference to a function that reads `ngh` attribute value from a given RNode\n * and retrieves hydration information from the TransferState using that value\n * as an index. Returns `null` by default, when hydration is not enabled.\n *\n * @param rNode Component's host element.\n * @param injector Injector that this component has access to.\n * @param isRootView Specifies whether we trying to read hydration info for the root view.\n */\nlet _retrieveHydrationInfoImpl = () => null;\nfunction retrieveHydrationInfoImpl(rNode, injector, isRootView = false) {\n let nghAttrValue = rNode.getAttribute(NGH_ATTR_NAME);\n if (nghAttrValue == null)\n return null;\n // For cases when a root component also acts as an anchor node for a ViewContainerRef\n // (for example, when ViewContainerRef is injected in a root component), there is a need\n // to serialize information about the component itself, as well as an LContainer that\n // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:\n // (1) hydration info for the root component itself and (2) hydration info for the\n // ViewContainerRef instance (an LContainer). Each piece of information is included into\n // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.\n // Since we only have 1 root element, we encode both bits of info into a single string:\n // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view\n // and 25 is the `ngh` for a root view which holds LContainer).\n const [componentViewNgh, rootViewNgh] = nghAttrValue.split('|');\n nghAttrValue = isRootView ? rootViewNgh : componentViewNgh;\n if (!nghAttrValue)\n return null;\n // We've read one of the ngh ids, keep the remaining one, so that\n // we can set it back on the DOM element.\n const rootNgh = rootViewNgh ? `|${rootViewNgh}` : '';\n const remainingNgh = isRootView ? componentViewNgh : rootNgh;\n let data = {};\n // An element might have an empty `ngh` attribute value (e.g. `<comp ngh=\"\" />`),\n // which means that no special annotations are required. Do not attempt to read\n // from the TransferState in this case.\n if (nghAttrValue !== '') {\n const transferState = injector.get(TransferState, null, { optional: true });\n if (transferState !== null) {\n const nghData = transferState.get(NGH_DATA_KEY, []);\n // The nghAttrValue is always a number referencing an index\n // in the hydration TransferState data.\n data = nghData[Number(nghAttrValue)];\n // If the `ngh` attribute exists and has a non-empty value,\n // the hydration info *must* be present in the TransferState.\n // If there is no data for some reasons, this is an error.\n ngDevMode && assertDefined(data, 'Unable to retrieve hydration info from the TransferState.');\n }\n }\n const dehydratedView = {\n data,\n firstChild: rNode.firstChild ?? null,\n };\n if (isRootView) {\n // If there is hydration info present for the root view, it means that there was\n // a ViewContainerRef injected in the root component. The root component host element\n // acted as an anchor node in this scenario. As a result, the DOM nodes that represent\n // embedded views in this ViewContainerRef are located as siblings to the host node,\n // i.e. `<app-root /><#VIEW1><#VIEW2>...<!--container-->`. In this case, the current\n // node becomes the first child of this root view and the next sibling is the first\n // element in the DOM segment.\n dehydratedView.firstChild = rNode;\n // We use `0` here, since this is the slot (right after the HEADER_OFFSET)\n // where a component LView or an LContainer is located in a root LView.\n setSegmentHead(dehydratedView, 0, rNode.nextSibling);\n }\n if (remainingNgh) {\n // If we have only used one of the ngh ids, store the remaining one\n // back on this RNode.\n rNode.setAttribute(NGH_ATTR_NAME, remainingNgh);\n }\n else {\n // The `ngh` attribute is cleared from the DOM node now\n // that the data has been retrieved for all indices.\n rNode.removeAttribute(NGH_ATTR_NAME);\n }\n // Note: don't check whether this node was claimed for hydration,\n // because this node might've been previously claimed while processing\n // template instructions.\n ngDevMode && markRNodeAsClaimedByHydration(rNode, /* checkIfAlreadyClaimed */ false);\n ngDevMode && ngDevMode.hydratedComponents++;\n return dehydratedView;\n}\n/**\n * Sets the implementation for the `retrieveHydrationInfo` function.\n */\nfunction enableRetrieveHydrationInfoImpl() {\n _retrieveHydrationInfoImpl = retrieveHydrationInfoImpl;\n}\n/**\n * Retrieves hydration info by reading the value from the `ngh` attribute\n * and accessing a corresponding slot in TransferState storage.\n */\nfunction retrieveHydrationInfo(rNode, injector, isRootView = false) {\n return _retrieveHydrationInfoImpl(rNode, injector, isRootView);\n}\n/**\n * Retrieves the necessary object from a given ViewRef to serialize:\n * - an LView for component views\n * - an LContainer for cases when component acts as a ViewContainerRef anchor\n * - `null` in case of an embedded view\n */\nfunction getLNodeForHydration(viewRef) {\n // Reading an internal field from `ViewRef` instance.\n let lView = viewRef._lView;\n const tView = lView[TVIEW];\n // A registered ViewRef might represent an instance of an\n // embedded view, in which case we do not need to annotate it.\n if (tView.type === 2 /* TViewType.Embedded */) {\n return null;\n }\n // Check if it's a root view and if so, retrieve component's\n // LView from the first slot after the header.\n if (isRootView(lView)) {\n lView = lView[HEADER_OFFSET];\n }\n return lView;\n}\nfunction getTextNodeContent(node) {\n return node.textContent?.replace(/\\s/gm, '');\n}\n/**\n * Restores text nodes and separators into the DOM that were lost during SSR\n * serialization. The hydration process replaces empty text nodes and text\n * nodes that are immediately adjacent to other text nodes with comment nodes\n * that this method filters on to restore those missing nodes that the\n * hydration process is expecting to be present.\n *\n * @param node The app's root HTML Element\n */\nfunction processTextNodeMarkersBeforeHydration(node) {\n const doc = getDocument();\n const commentNodesIterator = doc.createNodeIterator(node, NodeFilter.SHOW_COMMENT, {\n acceptNode(node) {\n const content = getTextNodeContent(node);\n const isTextNodeMarker = content === \"ngetn\" /* TextNodeMarker.EmptyNode */ || content === \"ngtns\" /* TextNodeMarker.Separator */;\n return isTextNodeMarker ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;\n },\n });\n let currentNode;\n // We cannot modify the DOM while using the commentIterator,\n // because it throws off the iterator state.\n // So we collect all marker nodes first and then follow up with\n // applying the changes to the DOM: either inserting an empty node\n // or just removing the marker if it was used as a separator.\n const nodes = [];\n while ((currentNode = commentNodesIterator.nextNode())) {\n nodes.push(currentNode);\n }\n for (const node of nodes) {\n if (node.textContent === \"ngetn\" /* TextNodeMarker.EmptyNode */) {\n node.replaceWith(doc.createTextNode(''));\n }\n else {\n node.remove();\n }\n }\n}\n/**\n * Internal type that represents a claimed node.\n * Only used in dev mode.\n */\nvar HydrationStatus;\n(function (HydrationStatus) {\n HydrationStatus[\"Hydrated\"] = \"hydrated\";\n HydrationStatus[\"Skipped\"] = \"skipped\";\n HydrationStatus[\"Mismatched\"] = \"mismatched\";\n})(HydrationStatus || (HydrationStatus = {}));\n// clang-format on\nconst HYDRATION_INFO_KEY = '__ngDebugHydrationInfo__';\nfunction patchHydrationInfo(node, info) {\n node[HYDRATION_INFO_KEY] = info;\n}\nfunction readHydrationInfo(node) {\n return node[HYDRATION_INFO_KEY] ?? null;\n}\n/**\n * Marks a node as \"claimed\" by hydration process.\n * This is needed to make assessments in tests whether\n * the hydration process handled all nodes.\n */\nfunction markRNodeAsClaimedByHydration(node, checkIfAlreadyClaimed = true) {\n if (!ngDevMode) {\n throw new Error('Calling `markRNodeAsClaimedByHydration` in prod mode ' +\n 'is not supported and likely a mistake.');\n }\n if (checkIfAlreadyClaimed && isRNodeClaimedForHydration(node)) {\n throw new Error('Trying to claim a node, which was claimed already.');\n }\n patchHydrationInfo(node, { status: HydrationStatus.Hydrated });\n ngDevMode.hydratedNodes++;\n}\nfunction markRNodeAsSkippedByHydration(node) {\n if (!ngDevMode) {\n throw new Error('Calling `markRNodeAsSkippedByHydration` in prod mode ' +\n 'is not supported and likely a mistake.');\n }\n patchHydrationInfo(node, { status: HydrationStatus.Skipped });\n ngDevMode.componentsSkippedHydration++;\n}\nfunction markRNodeAsHavingHydrationMismatch(node, expectedNodeDetails = null, actualNodeDetails = null) {\n if (!ngDevMode) {\n throw new Error('Calling `markRNodeAsMismatchedByHydration` in prod mode ' +\n 'is not supported and likely a mistake.');\n }\n // The RNode can be a standard HTMLElement (not an Angular component or directive)\n // The devtools component tree only displays Angular components & directives\n // Therefore we attach the debug info to the closest component/directive\n while (node && !getComponent$1(node)) {\n node = node?.parentNode;\n }\n if (node) {\n patchHydrationInfo(node, {\n status: HydrationStatus.Mismatched,\n expectedNodeDetails,\n actualNodeDetails,\n });\n }\n}\nfunction isRNodeClaimedForHydration(node) {\n return readHydrationInfo(node)?.status === HydrationStatus.Hydrated;\n}\nfunction setSegmentHead(hydrationInfo, index, node) {\n hydrationInfo.segmentHeads ??= {};\n hydrationInfo.segmentHeads[index] = node;\n}\nfunction getSegmentHead(hydrationInfo, index) {\n return hydrationInfo.segmentHeads?.[index] ?? null;\n}\n/**\n * Returns the size of an <ng-container>, using either the information\n * serialized in `ELEMENT_CONTAINERS` (element container size) or by\n * computing the sum of root nodes in all dehydrated views in a given\n * container (in case this `<ng-container>` was also used as a view\n * container host node, e.g. <ng-container *ngIf>).\n */\nfunction getNgContainerSize(hydrationInfo, index) {\n const data = hydrationInfo.data;\n let size = data[ELEMENT_CONTAINERS]?.[index] ?? null;\n // If there is no serialized information available in the `ELEMENT_CONTAINERS` slot,\n // check if we have info about view containers at this location (e.g.\n // `<ng-container *ngIf>`) and use container size as a number of root nodes in this\n // element container.\n if (size === null && data[CONTAINERS]?.[index]) {\n size = calcSerializedContainerSize(hydrationInfo, index);\n }\n return size;\n}\nfunction getSerializedContainerViews(hydrationInfo, index) {\n return hydrationInfo.data[CONTAINERS]?.[index] ?? null;\n}\n/**\n * Computes the size of a serialized container (the number of root nodes)\n * by calculating the sum of root nodes in all dehydrated views in this container.\n */\nfunction calcSerializedContainerSize(hydrationInfo, index) {\n const views = getSerializedContainerViews(hydrationInfo, index) ?? [];\n let numNodes = 0;\n for (let view of views) {\n numNodes += view[NUM_ROOT_NODES] * (view[MULTIPLIER] ?? 1);\n }\n return numNodes;\n}\n/**\n * Checks whether a node is annotated as \"disconnected\", i.e. not present\n * in the DOM at serialization time. We should not attempt hydration for\n * such nodes and instead, use a regular \"creation mode\".\n */\nfunction isDisconnectedNode$1(hydrationInfo, index) {\n // Check if we are processing disconnected info for the first time.\n if (typeof hydrationInfo.disconnectedNodes === 'undefined') {\n const nodeIds = hydrationInfo.data[DISCONNECTED_NODES];\n hydrationInfo.disconnectedNodes = nodeIds ? new Set(nodeIds) : null;\n }\n return !!hydrationInfo.disconnectedNodes?.has(index);\n}\n\n/**\n * Internal token that specifies whether DOM reuse logic\n * during hydration is enabled.\n */\nconst IS_HYDRATION_DOM_REUSE_ENABLED = new InjectionToken((typeof ngDevMode === 'undefined' || !!ngDevMode) ? 'IS_HYDRATION_DOM_REUSE_ENABLED' : '');\n// By default (in client rendering mode), we remove all the contents\n// of the host element and render an application after that.\nconst PRESERVE_HOST_CONTENT_DEFAULT = false;\n/**\n * Internal token that indicates whether host element content should be\n * retained during the bootstrap.\n */\nconst PRESERVE_HOST_CONTENT = new InjectionToken((typeof ngDevMode === 'undefined' || !!ngDevMode) ? 'PRESERVE_HOST_CONTENT' : '', {\n providedIn: 'root',\n factory: () => PRESERVE_HOST_CONTENT_DEFAULT,\n});\n/**\n * Internal token that indicates whether hydration support for i18n\n * is enabled.\n */\nconst IS_I18N_HYDRATION_ENABLED = new InjectionToken((typeof ngDevMode === 'undefined' || !!ngDevMode ? 'IS_I18N_HYDRATION_ENABLED' : ''));\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy internally within\n * Angular. It lazily constructs the Trusted Types policy, providing helper\n * utilities for promoting strings to Trusted Types. When Trusted Types are not\n * available, strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy$1;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy$1() {\n if (policy$1 === undefined) {\n policy$1 = null;\n if (_global.trustedTypes) {\n try {\n policy$1 = _global.trustedTypes.createPolicy('angular', {\n createHTML: (s) => s,\n createScript: (s) => s,\n createScriptURL: (s) => s,\n });\n }\n catch {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy$1;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nfunction trustedHTMLFromString(html) {\n return getPolicy$1()?.createHTML(html) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security In particular, it must be assured that the provided string will\n * never cause an XSS vulnerability if used in a context that will be\n * interpreted and executed as a script by a browser, e.g. when calling eval.\n */\nfunction trustedScriptFromString(script) {\n return getPolicy$1()?.createScript(script) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will cause a browser to load and execute a resource, e.g. when\n * assigning to script.src.\n */\nfunction trustedScriptURLFromString(url) {\n return getPolicy$1()?.createScriptURL(url) || url;\n}\n/**\n * Unsafely call the Function constructor with the given string arguments. It\n * is only available in development mode, and should be stripped out of\n * production code.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only called from development code, as use in production code can lead to\n * XSS vulnerabilities.\n */\nfunction newTrustedFunctionForDev(...args) {\n if (typeof ngDevMode === 'undefined') {\n throw new Error('newTrustedFunctionForDev should never be called in production');\n }\n if (!_global.trustedTypes) {\n // In environments that don't support Trusted Types, fall back to the most\n // straightforward implementation:\n return new Function(...args);\n }\n // Chrome currently does not support passing TrustedScript to the Function\n // constructor. The following implements the workaround proposed on the page\n // below, where the Chromium bug is also referenced:\n // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor\n const fnArgs = args.slice(0, -1).join(',');\n const fnBody = args[args.length - 1];\n const body = `(function anonymous(${fnArgs}\n) { ${fnBody}\n})`;\n // Using eval directly confuses the compiler and prevents this module from\n // being stripped out of JS binaries even if not used. The global['eval']\n // indirection fixes that.\n const fn = _global['eval'](trustedScriptFromString(body));\n if (fn.bind === undefined) {\n // Workaround for a browser bug that only exists in Chrome 83, where passing\n // a TrustedScript to eval just returns the TrustedScript back without\n // evaluating it. In that case, fall back to the most straightforward\n // implementation:\n return new Function(...args);\n }\n // To completely mimic the behavior of calling \"new Function\", two more\n // things need to happen:\n // 1. Stringifying the resulting function should return its source code\n fn.toString = () => body;\n // 2. When calling the resulting function, `this` should refer to `global`\n return fn.bind(_global);\n // When Trusted Types support in Function constructors is widely available,\n // the implementation of this function can be simplified to:\n // return new Function(...args.map(a => trustedScriptFromString(a)));\n}\n\n/**\n * @fileoverview\n * A module to facilitate use of a Trusted Types policy internally within\n * Angular specifically for bypassSecurityTrust* and custom sanitizers. It\n * lazily constructs the Trusted Types policy, providing helper utilities for\n * promoting strings to Trusted Types. When Trusted Types are not available,\n * strings are used as a fallback.\n * @security All use of this module is security-sensitive and should go through\n * security review.\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n if (policy === undefined) {\n policy = null;\n if (_global.trustedTypes) {\n try {\n policy = _global.trustedTypes\n .createPolicy('angular#unsafe-bypass', {\n createHTML: (s) => s,\n createScript: (s) => s,\n createScriptURL: (s) => s,\n });\n }\n catch {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedHTMLFromStringBypass(html) {\n return getPolicy()?.createHTML(html) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptFromStringBypass(script) {\n return getPolicy()?.createScript(script) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptURLFromStringBypass(url) {\n return getPolicy()?.createScriptURL(url) || url;\n}\n\nclass SafeValueImpl {\n constructor(changingThisBreaksApplicationSecurity) {\n this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\n }\n toString() {\n return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` +\n ` (see ${XSS_SECURITY_URL})`;\n }\n}\nclass SafeHtmlImpl extends SafeValueImpl {\n getTypeName() {\n return \"HTML\" /* BypassType.Html */;\n }\n}\nclass SafeStyleImpl extends SafeValueImpl {\n getTypeName() {\n return \"Style\" /* BypassType.Style */;\n }\n}\nclass SafeScriptImpl extends SafeValueImpl {\n getTypeName() {\n return \"Script\" /* BypassType.Script */;\n }\n}\nclass SafeUrlImpl extends SafeValueImpl {\n getTypeName() {\n return \"URL\" /* BypassType.Url */;\n }\n}\nclass SafeResourceUrlImpl extends SafeValueImpl {\n getTypeName() {\n return \"ResourceURL\" /* BypassType.ResourceUrl */;\n }\n}\nfunction unwrapSafeValue(value) {\n return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity :\n value;\n}\nfunction allowSanitizationBypassAndThrow(value, type) {\n const actualType = getSanitizationBypassType(value);\n if (actualType != null && actualType !== type) {\n // Allow ResourceURLs in URL contexts, they are strictly more trusted.\n if (actualType === \"ResourceURL\" /* BypassType.ResourceUrl */ && type === \"URL\" /* BypassType.Url */)\n return true;\n throw new Error(`Required a safe ${type}, got a ${actualType} (see ${XSS_SECURITY_URL})`);\n }\n return actualType === type;\n}\nfunction getSanitizationBypassType(value) {\n return value instanceof SafeValueImpl && value.getTypeName() || null;\n}\n/**\n * Mark `html` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link htmlSanitizer} to be trusted implicitly.\n *\n * @param trustedHtml `html` string which needs to be implicitly trusted.\n * @returns a `html` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustHtml(trustedHtml) {\n return new SafeHtmlImpl(trustedHtml);\n}\n/**\n * Mark `style` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link styleSanitizer} to be trusted implicitly.\n *\n * @param trustedStyle `style` string which needs to be implicitly trusted.\n * @returns a `style` hich has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustStyle(trustedStyle) {\n return new SafeStyleImpl(trustedStyle);\n}\n/**\n * Mark `script` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link scriptSanitizer} to be trusted implicitly.\n *\n * @param trustedScript `script` string which needs to be implicitly trusted.\n * @returns a `script` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustScript(trustedScript) {\n return new SafeScriptImpl(trustedScript);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link urlSanitizer} to be trusted implicitly.\n *\n * @param trustedUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustUrl(trustedUrl) {\n return new SafeUrlImpl(trustedUrl);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.\n *\n * @param trustedResourceUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustResourceUrl(trustedResourceUrl) {\n return new SafeResourceUrlImpl(trustedResourceUrl);\n}\n\n/**\n * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML\n * that needs sanitizing.\n * Depending upon browser support we use one of two strategies for doing this.\n * Default: DOMParser strategy\n * Fallback: InertDocument strategy\n */\nfunction getInertBodyHelper(defaultDoc) {\n const inertDocumentHelper = new InertDocumentHelper(defaultDoc);\n return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;\n}\n/**\n * Uses DOMParser to create and fill an inert body element.\n * This is the default strategy used in browsers that support it.\n */\nclass DOMParserHelper {\n constructor(inertDocumentHelper) {\n this.inertDocumentHelper = inertDocumentHelper;\n }\n getInertBodyElement(html) {\n // We add these extra elements to ensure that the rest of the content is parsed as expected\n // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the\n // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags\n // in `html` from consuming the otherwise explicit `</body>` tag.\n html = '<body><remove></remove>' + html;\n try {\n const body = new window.DOMParser()\n .parseFromString(trustedHTMLFromString(html), 'text/html')\n .body;\n if (body === null) {\n // In some browsers (e.g. Mozilla/5.0 iPad AppleWebKit Mobile) the `body` property only\n // becomes available in the following tick of the JS engine. In that case we fall back to\n // the `inertDocumentHelper` instead.\n return this.inertDocumentHelper.getInertBodyElement(html);\n }\n body.removeChild(body.firstChild);\n return body;\n }\n catch {\n return null;\n }\n }\n}\n/**\n * Use an HTML5 `template` element to create and fill an inert DOM element.\n * This is the fallback strategy if the browser does not support DOMParser.\n */\nclass InertDocumentHelper {\n constructor(defaultDoc) {\n this.defaultDoc = defaultDoc;\n this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');\n }\n getInertBodyElement(html) {\n const templateEl = this.inertDocument.createElement('template');\n templateEl.innerHTML = trustedHTMLFromString(html);\n return templateEl;\n }\n}\n/**\n * We need to determine whether the DOMParser exists in the global context and\n * supports parsing HTML; HTML parsing support is not as wide as other formats, see\n * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.\n *\n * @suppress {uselessCode}\n */\nfunction isDOMParserAvailable() {\n try {\n return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');\n }\n catch {\n return false;\n }\n}\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * This regular expression matches a subset of URLs that will not cause script\n * execution if used in URL context within a HTML document. Specifically, this\n * regular expression matches if:\n * (1) Either a protocol that is not javascript:, and that has valid characters\n * (alphanumeric or [+-.]).\n * (2) or no protocol. A protocol must be followed by a colon. The below\n * allows that by allowing colons only after one of the characters [/?#].\n * A colon after a hash (#) must be in the fragment.\n * Otherwise, a colon after a (?) must be in a query.\n * Otherwise, a colon after a single solidus (/) must be in a path.\n * Otherwise, a colon after a double solidus (//) must be in the authority\n * (before port).\n *\n * The pattern disallows &, used in HTML entity declarations before\n * one of the characters in [/?#]. This disallows HTML entities used in the\n * protocol name, which should never happen, e.g. \"http\" for \"http\".\n * It also disallows HTML entities in the first path part of a relative path,\n * e.g. \"foo<bar/baz\". Our existing escaping functions should not produce\n * that. More importantly, it disallows masking of a colon,\n * e.g. \"javascript:...\".\n *\n * This regular expression was taken from the Closure sanitization library.\n */\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\\/?#]*(?:[\\/?#]|$))/i;\nfunction _sanitizeUrl(url) {\n url = String(url);\n if (url.match(SAFE_URL_PATTERN))\n return url;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(`WARNING: sanitizing unsafe URL value ${url} (see ${XSS_SECURITY_URL})`);\n }\n return 'unsafe:' + url;\n}\n\nfunction tagSet(tags) {\n const res = {};\n for (const t of tags.split(','))\n res[t] = true;\n return res;\n}\nfunction merge(...sets) {\n const res = {};\n for (const s of sets) {\n for (const v in s) {\n if (s.hasOwnProperty(v))\n res[v] = true;\n }\n }\n return res;\n}\n// Good source of info about elements and attributes\n// https://html.spec.whatwg.org/#semantics\n// https://simon.html5.org/html-elements\n// Safe Void Elements - HTML5\n// https://html.spec.whatwg.org/#void-elements\nconst VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');\n// Elements that you can, intentionally, leave open (and which close themselves)\n// https://html.spec.whatwg.org/#optional-tags\nconst OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');\nconst OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');\nconst OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);\n// Safe Block Elements - HTML5\nconst BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' +\n 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' +\n 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));\n// Inline Elements - HTML5\nconst INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' +\n 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' +\n 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));\nconst VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);\n// Attributes that have href and hence need to be sanitized\nconst URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');\nconst HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' +\n 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' +\n 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' +\n 'scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,' +\n 'valign,value,vspace,width');\n// Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)\nconst ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' +\n 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' +\n 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' +\n 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' +\n 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' +\n 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' +\n 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext');\n// NB: This currently consciously doesn't support SVG. SVG sanitization has had several security\n// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via\n// innerHTML is required, SVG attributes should be added here.\n// NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those\n// can be sanitized, but they increase security surface area without a legitimate use case, so they\n// are left out here.\nconst VALID_ATTRS = merge(URI_ATTRS, HTML_ATTRS, ARIA_ATTRS);\n// Elements whose content should not be traversed/preserved, if the elements themselves are invalid.\n//\n// Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)\n// `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we\n// don't want to preserve the content, if the elements themselves are going to be removed.\nconst SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = tagSet('script,style,template');\n/**\n * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe\n * attributes.\n */\nclass SanitizingHtmlSerializer {\n constructor() {\n // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just\n // because characters were re-encoded.\n this.sanitizedSomething = false;\n this.buf = [];\n }\n sanitizeChildren(el) {\n // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.\n // However this code never accesses properties off of `document` before deleting its contents\n // again, so it shouldn't be vulnerable to DOM clobbering.\n let current = el.firstChild;\n let traverseContent = true;\n let parentNodes = [];\n while (current) {\n if (current.nodeType === Node.ELEMENT_NODE) {\n traverseContent = this.startElement(current);\n }\n else if (current.nodeType === Node.TEXT_NODE) {\n this.chars(current.nodeValue);\n }\n else {\n // Strip non-element, non-text nodes.\n this.sanitizedSomething = true;\n }\n if (traverseContent && current.firstChild) {\n // Push current node to the parent stack before entering its content.\n parentNodes.push(current);\n current = getFirstChild(current);\n continue;\n }\n while (current) {\n // Leaving the element.\n // Walk up and to the right, closing tags as we go.\n if (current.nodeType === Node.ELEMENT_NODE) {\n this.endElement(current);\n }\n let next = getNextSibling(current);\n if (next) {\n current = next;\n break;\n }\n // There was no next sibling, walk up to the parent node (extract it from the stack).\n current = parentNodes.pop();\n }\n }\n return this.buf.join('');\n }\n /**\n * Sanitizes an opening element tag (if valid) and returns whether the element's contents should\n * be traversed. Element content must always be traversed (even if the element itself is not\n * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.\n *\n * @param element The element to sanitize.\n * @return True if the element's contents should be traversed.\n */\n startElement(element) {\n const tagName = getNodeName(element).toLowerCase();\n if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {\n this.sanitizedSomething = true;\n return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);\n }\n this.buf.push('<');\n this.buf.push(tagName);\n const elAttrs = element.attributes;\n for (let i = 0; i < elAttrs.length; i++) {\n const elAttr = elAttrs.item(i);\n const attrName = elAttr.name;\n const lower = attrName.toLowerCase();\n if (!VALID_ATTRS.hasOwnProperty(lower)) {\n this.sanitizedSomething = true;\n continue;\n }\n let value = elAttr.value;\n // TODO(martinprobst): Special case image URIs for data:image/...\n if (URI_ATTRS[lower])\n value = _sanitizeUrl(value);\n this.buf.push(' ', attrName, '=\"', encodeEntities(value), '\"');\n }\n this.buf.push('>');\n return true;\n }\n endElement(current) {\n const tagName = getNodeName(current).toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {\n this.buf.push('</');\n this.buf.push(tagName);\n this.buf.push('>');\n }\n }\n chars(chars) {\n this.buf.push(encodeEntities(chars));\n }\n}\n/**\n * Verifies whether a given child node is a descendant of a given parent node.\n * It may not be the case when properties like `.firstChild` are clobbered and\n * accessing `.firstChild` results in an unexpected node returned.\n */\nfunction isClobberedElement(parentNode, childNode) {\n return (parentNode.compareDocumentPosition(childNode) & Node.DOCUMENT_POSITION_CONTAINED_BY) !==\n Node.DOCUMENT_POSITION_CONTAINED_BY;\n}\n/**\n * Retrieves next sibling node and makes sure that there is no\n * clobbering of the `nextSibling` property happening.\n */\nfunction getNextSibling(node) {\n const nextSibling = node.nextSibling;\n // Make sure there is no `nextSibling` clobbering: navigating to\n // the next sibling and going back to the previous one should result\n // in the original node.\n if (nextSibling && node !== nextSibling.previousSibling) {\n throw clobberedElementError(nextSibling);\n }\n return nextSibling;\n}\n/**\n * Retrieves first child node and makes sure that there is no\n * clobbering of the `firstChild` property happening.\n */\nfunction getFirstChild(node) {\n const firstChild = node.firstChild;\n if (firstChild && isClobberedElement(node, firstChild)) {\n throw clobberedElementError(firstChild);\n }\n return firstChild;\n}\n/** Gets a reasonable nodeName, even for clobbered nodes. */\nfunction getNodeName(node) {\n const nodeName = node.nodeName;\n // If the property is clobbered, assume it is an `HTMLFormElement`.\n return (typeof nodeName === 'string') ? nodeName : 'FORM';\n}\nfunction clobberedElementError(node) {\n return new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);\n}\n// Regular Expressions for parsing tags and attributes\nconst SURROGATE_PAIR_REGEXP = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n// ! to ~ is the ASCII range.\nconst NON_ALPHANUMERIC_REGEXP = /([^\\#-~ |!])/g;\n/**\n * Escapes all potentially dangerous characters, so that the\n * resulting string can be safely inserted into attribute or\n * element text.\n * @param value\n */\nfunction encodeEntities(value) {\n return value.replace(/&/g, '&')\n .replace(SURROGATE_PAIR_REGEXP, function (match) {\n const hi = match.charCodeAt(0);\n const low = match.charCodeAt(1);\n return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';\n })\n .replace(NON_ALPHANUMERIC_REGEXP, function (match) {\n return '&#' + match.charCodeAt(0) + ';';\n })\n .replace(/</g, '<')\n .replace(/>/g, '>');\n}\nlet inertBodyHelper;\n/**\n * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to\n * the DOM in a browser environment.\n */\nfunction _sanitizeHtml(defaultDoc, unsafeHtmlInput) {\n let inertBodyElement = null;\n try {\n inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);\n // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\n let unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\n inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser\n // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.\n let mXSSAttempts = 5;\n let parsedHtml = unsafeHtml;\n do {\n if (mXSSAttempts === 0) {\n throw new Error('Failed to sanitize html because the input is unstable');\n }\n mXSSAttempts--;\n unsafeHtml = parsedHtml;\n parsedHtml = inertBodyElement.innerHTML;\n inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n } while (unsafeHtml !== parsedHtml);\n const sanitizer = new SanitizingHtmlSerializer();\n const safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && sanitizer.sanitizedSomething) {\n console.warn(`WARNING: sanitizing HTML stripped some content, see ${XSS_SECURITY_URL}`);\n }\n return trustedHTMLFromString(safeHtml);\n }\n finally {\n // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.\n if (inertBodyElement) {\n const parent = getTemplateContent(inertBodyElement) || inertBodyElement;\n while (parent.firstChild) {\n parent.removeChild(parent.firstChild);\n }\n }\n }\n}\nfunction getTemplateContent(el) {\n return 'content' in el /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) ?\n el.content :\n null;\n}\nfunction isTemplateElement(el) {\n return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';\n}\n\n/**\n * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property\n * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly\n * handled.\n *\n * See DomSanitizer for more details on security in Angular applications.\n *\n * @publicApi\n */\nvar SecurityContext;\n(function (SecurityContext) {\n SecurityContext[SecurityContext[\"NONE\"] = 0] = \"NONE\";\n SecurityContext[SecurityContext[\"HTML\"] = 1] = \"HTML\";\n SecurityContext[SecurityContext[\"STYLE\"] = 2] = \"STYLE\";\n SecurityContext[SecurityContext[\"SCRIPT\"] = 3] = \"SCRIPT\";\n SecurityContext[SecurityContext[\"URL\"] = 4] = \"URL\";\n SecurityContext[SecurityContext[\"RESOURCE_URL\"] = 5] = \"RESOURCE_URL\";\n})(SecurityContext || (SecurityContext = {}));\n\n/**\n * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing\n * dangerous content.\n *\n * This method parses the `html` and locates potentially dangerous content (such as urls and\n * javascript) and removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.\n *\n * @param unsafeHtml untrusted `html`, typically from the user.\n * @returns `html` string which is safe to display to user, because all of the dangerous javascript\n * and urls have been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeHtml(unsafeHtml) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedHTMLFromStringBypass(sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeHtml, \"HTML\" /* BypassType.Html */)) {\n return trustedHTMLFromStringBypass(unwrapSafeValue(unsafeHtml));\n }\n return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));\n}\n/**\n * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing\n * dangerous content.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.\n *\n * @param unsafeStyle untrusted `style`, typically from the user.\n * @returns `style` string which is safe to bind to the `style` properties.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeStyle(unsafeStyle) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';\n }\n if (allowSanitizationBypassAndThrow(unsafeStyle, \"Style\" /* BypassType.Style */)) {\n return unwrapSafeValue(unsafeStyle);\n }\n return renderStringify(unsafeStyle);\n}\n/**\n * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing\n * dangerous\n * content.\n *\n * This method parses the `url` and locates potentially dangerous content (such as javascript) and\n * removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * all of the dangerous javascript has been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrl(unsafeUrl) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';\n }\n if (allowSanitizationBypassAndThrow(unsafeUrl, \"URL\" /* BypassType.Url */)) {\n return unwrapSafeValue(unsafeUrl);\n }\n return _sanitizeUrl(renderStringify(unsafeUrl));\n}\n/**\n * A `url` sanitizer which only lets trusted `url`s through.\n *\n * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.\n *\n * @param unsafeResourceUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * only trusted `url`s have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeResourceUrl(unsafeResourceUrl) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedScriptURLFromStringBypass(sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeResourceUrl, \"ResourceURL\" /* BypassType.ResourceUrl */)) {\n return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));\n }\n throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode && `unsafe value used in a resource URL context (see ${XSS_SECURITY_URL})`);\n}\n/**\n * A `script` sanitizer which only lets trusted javascript through.\n *\n * This passes only `script`s marked trusted by calling {@link\n * bypassSanitizationTrustScript}.\n *\n * @param unsafeScript untrusted `script`, typically from the user.\n * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,\n * because only trusted `scripts` have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeScript(unsafeScript) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedScriptFromStringBypass(sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeScript, \"Script\" /* BypassType.Script */)) {\n return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));\n }\n throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedHTML. Interpolation is explicitly not allowed.\n *\n * @param html constant template literal containing trusted HTML.\n * @returns TrustedHTML wrapping `html`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedHTML.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantHtml(html) {\n // The following runtime check ensures that the function was called as a\n // template tag (e.g. ɵɵtrustConstantHtml`content`), without any interpolation\n // (e.g. not ɵɵtrustConstantHtml`content ${variable}`). A TemplateStringsArray\n // is an array with a `raw` property that is also an array. The associated\n // template literal has no interpolation if and only if the length of the\n // TemplateStringsArray is 1.\n if (ngDevMode && (!Array.isArray(html) || !Array.isArray(html.raw) || html.length !== 1)) {\n throw new Error(`Unexpected interpolation in trusted HTML constant: ${html.join('?')}`);\n }\n return trustedHTMLFromString(html[0]);\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedScriptURL. Interpolation is explicitly not allowed.\n *\n * @param url constant template literal containing a trusted script URL.\n * @returns TrustedScriptURL wrapping `url`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedScriptURL.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantResourceUrl(url) {\n // The following runtime check ensures that the function was called as a\n // template tag (e.g. ɵɵtrustConstantResourceUrl`content`), without any\n // interpolation (e.g. not ɵɵtrustConstantResourceUrl`content ${variable}`). A\n // TemplateStringsArray is an array with a `raw` property that is also an\n // array. The associated template literal has no interpolation if and only if\n // the length of the TemplateStringsArray is 1.\n if (ngDevMode && (!Array.isArray(url) || !Array.isArray(url.raw) || url.length !== 1)) {\n throw new Error(`Unexpected interpolation in trusted URL constant: ${url.join('?')}`);\n }\n return trustedScriptURLFromString(url[0]);\n}\n/**\n * Detects which sanitizer to use for URL property, based on tag name and prop name.\n *\n * The rules are based on the RESOURCE_URL context config from\n * `packages/compiler/src/schema/dom_security_schema.ts`.\n * If tag and prop names don't match Resource URL schema, use URL sanitizer.\n */\nfunction getUrlSanitizer(tag, prop) {\n if ((prop === 'src' &&\n (tag === 'embed' || tag === 'frame' || tag === 'iframe' || tag === 'media' ||\n tag === 'script')) ||\n (prop === 'href' && (tag === 'base' || tag === 'link'))) {\n return ɵɵsanitizeResourceUrl;\n }\n return ɵɵsanitizeUrl;\n}\n/**\n * Sanitizes URL, selecting sanitizer function based on tag and property names.\n *\n * This function is used in case we can't define security context at compile time, when only prop\n * name is available. This happens when we generate host bindings for Directives/Components. The\n * host element is unknown at compile time, so we defer calculation of specific sanitizer to\n * runtime.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @param tag target element tag name.\n * @param prop name of the property that contains the value.\n * @returns `url` string which is safe to bind.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {\n return getUrlSanitizer(tag, prop)(unsafeUrl);\n}\nfunction validateAgainstEventProperties(name) {\n if (name.toLowerCase().startsWith('on')) {\n const errorMessage = `Binding to event property '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...` +\n `\\nIf '${name}' is a directive input, make sure the directive is imported by the` +\n ` current module.`;\n throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);\n }\n}\nfunction validateAgainstEventAttributes(name) {\n if (name.toLowerCase().startsWith('on')) {\n const errorMessage = `Binding to event attribute '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...`;\n throw new RuntimeError(306 /* RuntimeErrorCode.INVALID_EVENT_BINDING */, errorMessage);\n }\n}\nfunction getSanitizer() {\n const lView = getLView();\n return lView && lView[ENVIRONMENT].sanitizer;\n}\n\n/**\n * Disallowed strings in the comment.\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n */\nconst COMMENT_DISALLOWED = /^>|^->|<!--|-->|--!>|<!-$/g;\n/**\n * Delimiter in the disallowed strings which needs to be wrapped with zero with character.\n */\nconst COMMENT_DELIMITER = /(<|>)/g;\nconst COMMENT_DELIMITER_ESCAPED = '\\u200B$1\\u200B';\n/**\n * Escape the content of comment strings so that it can be safely inserted into a comment node.\n *\n * The issue is that HTML does not specify any way to escape comment end text inside the comment.\n * Consider: `<!-- The way you close a comment is with \">\", and \"->\" at the beginning or by \"-->\" or\n * \"--!>\" at the end. -->`. Above the `\"-->\"` is meant to be text not an end to the comment. This\n * can be created programmatically through DOM APIs. (`<!--` are also disallowed.)\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n *\n * ```\n * div.innerHTML = div.innerHTML\n * ```\n *\n * One would expect that the above code would be safe to do, but it turns out that because comment\n * text is not escaped, the comment may contain text which will prematurely close the comment\n * opening up the application for XSS attack. (In SSR we programmatically create comment nodes which\n * may contain such text and expect them to be safe.)\n *\n * This function escapes the comment text by looking for comment delimiters (`<` and `>`) and\n * surrounding them with `_>_` where the `_` is a zero width space `\\u200B`. The result is that if a\n * comment contains any of the comment start/end delimiters (such as `<!--`, `-->` or `--!>`) the\n * text it will render normally but it will not cause the HTML parser to close/open the comment.\n *\n * @param value text to make safe for comment node by escaping the comment open/close character\n * sequence.\n */\nfunction escapeCommentText(value) {\n return value.replace(COMMENT_DISALLOWED, (text) => text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED));\n}\n\nfunction normalizeDebugBindingName(name) {\n // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers\n name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));\n return `ng-reflect-${name}`;\n}\nconst CAMEL_CASE_REGEXP = /([A-Z])/g;\nfunction camelCaseToDashCase(input) {\n return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());\n}\nfunction normalizeDebugBindingValue(value) {\n try {\n // Limit the size of the value as otherwise the DOM just gets polluted.\n return value != null ? value.toString().slice(0, 30) : value;\n }\n catch (e) {\n return '[ERROR] Exception while trying to serialize the value';\n }\n}\n\n/**\n * Defines a schema that allows an NgModule to contain the following:\n * - Non-Angular elements named with dash case (`-`).\n * - Element properties named with dash case (`-`).\n * Dash case is the naming convention for custom elements.\n *\n * @publicApi\n */\nconst CUSTOM_ELEMENTS_SCHEMA = {\n name: 'custom-elements'\n};\n/**\n * Defines a schema that allows any property on any element.\n *\n * This schema allows you to ignore the errors related to any unknown elements or properties in a\n * template. The usage of this schema is generally discouraged because it prevents useful validation\n * and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.\n *\n * @publicApi\n */\nconst NO_ERRORS_SCHEMA = {\n name: 'no-errors-schema'\n};\n\nlet shouldThrowErrorOnUnknownElement = false;\n/**\n * Sets a strict mode for JIT-compiled components to throw an error on unknown elements,\n * instead of just logging the error.\n * (for AOT-compiled ones this check happens at build time).\n */\nfunction ɵsetUnknownElementStrictMode(shouldThrow) {\n shouldThrowErrorOnUnknownElement = shouldThrow;\n}\n/**\n * Gets the current value of the strict mode.\n */\nfunction ɵgetUnknownElementStrictMode() {\n return shouldThrowErrorOnUnknownElement;\n}\nlet shouldThrowErrorOnUnknownProperty = false;\n/**\n * Sets a strict mode for JIT-compiled components to throw an error on unknown properties,\n * instead of just logging the error.\n * (for AOT-compiled ones this check happens at build time).\n */\nfunction ɵsetUnknownPropertyStrictMode(shouldThrow) {\n shouldThrowErrorOnUnknownProperty = shouldThrow;\n}\n/**\n * Gets the current value of the strict mode.\n */\nfunction ɵgetUnknownPropertyStrictMode() {\n return shouldThrowErrorOnUnknownProperty;\n}\n/**\n * Validates that the element is known at runtime and produces\n * an error if it's not the case.\n * This check is relevant for JIT-compiled components (for AOT-compiled\n * ones this check happens at build time).\n *\n * The element is considered known if either:\n * - it's a known HTML element\n * - it's a known custom element\n * - the element matches any directive\n * - the element is allowed by one of the schemas\n *\n * @param element Element to validate\n * @param lView An `LView` that represents a current component that is being rendered\n * @param tagName Name of the tag to check\n * @param schemas Array of schemas\n * @param hasDirectives Boolean indicating that the element matches any directive\n */\nfunction validateElementIsKnown(element, lView, tagName, schemas, hasDirectives) {\n // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n // execute the check below.\n if (schemas === null)\n return;\n // If the element matches any directive, it's considered as valid.\n if (!hasDirectives && tagName !== null) {\n // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered\n // as a custom element. Note that unknown elements with a dash in their name won't be instances\n // of HTMLUnknownElement in browsers that support web components.\n const isUnknown = \n // Note that we can't check for `typeof HTMLUnknownElement === 'function'` because\n // Domino doesn't expose HTMLUnknownElement globally.\n (typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement &&\n element instanceof HTMLUnknownElement) ||\n (typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 &&\n !customElements.get(tagName));\n if (isUnknown && !matchingSchemas(schemas, tagName)) {\n const isHostStandalone = isHostComponentStandalone(lView);\n const templateLocation = getTemplateLocationDetails(lView);\n const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;\n let message = `'${tagName}' is not a known element${templateLocation}:\\n`;\n message += `1. If '${tagName}' is an Angular component, then verify that it is ${isHostStandalone ? 'included in the \\'@Component.imports\\' of this component' :\n 'a part of an @NgModule where this component is declared'}.\\n`;\n if (tagName && tagName.indexOf('-') > -1) {\n message +=\n `2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas} of this component to suppress this message.`;\n }\n else {\n message +=\n `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas} of this component.`;\n }\n if (shouldThrowErrorOnUnknownElement) {\n throw new RuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message);\n }\n else {\n console.error(formatRuntimeError(304 /* RuntimeErrorCode.UNKNOWN_ELEMENT */, message));\n }\n }\n }\n}\n/**\n * Validates that the property of the element is known at runtime and returns\n * false if it's not the case.\n * This check is relevant for JIT-compiled components (for AOT-compiled\n * ones this check happens at build time).\n *\n * The property is considered known if either:\n * - it's a known property of the element\n * - the element is allowed by one of the schemas\n * - the property is used for animations\n *\n * @param element Element to validate\n * @param propName Name of the property to check\n * @param tagName Name of the tag hosting the property\n * @param schemas Array of schemas\n */\nfunction isPropertyValid(element, propName, tagName, schemas) {\n // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n // execute the check below.\n if (schemas === null)\n return true;\n // The property is considered valid if the element matches the schema, it exists on the element,\n // or it is synthetic.\n if (matchingSchemas(schemas, tagName) || propName in element || isAnimationProp(propName)) {\n return true;\n }\n // Note: `typeof Node` returns 'function' in most browsers, but is undefined with domino.\n return typeof Node === 'undefined' || Node === null || !(element instanceof Node);\n}\n/**\n * Logs or throws an error that a property is not supported on an element.\n *\n * @param propName Name of the invalid property\n * @param tagName Name of the tag hosting the property\n * @param nodeType Type of the node hosting the property\n * @param lView An `LView` that represents a current component\n */\nfunction handleUnknownPropertyError(propName, tagName, nodeType, lView) {\n // Special-case a situation when a structural directive is applied to\n // an `<ng-template>` element, for example: `<ng-template *ngIf=\"true\">`.\n // In this case the compiler generates the `ɵɵtemplate` instruction with\n // the `null` as the tagName. The directive matching logic at runtime relies\n // on this effect (see `isInlineTemplate`), thus using the 'ng-template' as\n // a default value of the `tNode.value` is not feasible at this moment.\n if (!tagName && nodeType === 4 /* TNodeType.Container */) {\n tagName = 'ng-template';\n }\n const isHostStandalone = isHostComponentStandalone(lView);\n const templateLocation = getTemplateLocationDetails(lView);\n let message = `Can't bind to '${propName}' since it isn't a known property of '${tagName}'${templateLocation}.`;\n const schemas = `'${isHostStandalone ? '@Component' : '@NgModule'}.schemas'`;\n const importLocation = isHostStandalone ?\n 'included in the \\'@Component.imports\\' of this component' :\n 'a part of an @NgModule where this component is declared';\n if (KNOWN_CONTROL_FLOW_DIRECTIVES.has(propName)) {\n // Most likely this is a control flow directive (such as `*ngIf`) used in\n // a template, but the directive or the `CommonModule` is not imported.\n const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(propName);\n message += `\\nIf the '${propName}' is an Angular control flow directive, ` +\n `please make sure that either the '${correspondingImport}' directive or the 'CommonModule' is ${importLocation}.`;\n }\n else {\n // May be an Angular component, which is not imported/declared?\n message += `\\n1. If '${tagName}' is an Angular component and it has the ` +\n `'${propName}' input, then verify that it is ${importLocation}.`;\n // May be a Web Component?\n if (tagName && tagName.indexOf('-') > -1) {\n message += `\\n2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' ` +\n `to the ${schemas} of this component to suppress this message.`;\n message += `\\n3. To allow any property add 'NO_ERRORS_SCHEMA' to ` +\n `the ${schemas} of this component.`;\n }\n else {\n // If it's expected, the error can be suppressed by the `NO_ERRORS_SCHEMA` schema.\n message += `\\n2. To allow any property add 'NO_ERRORS_SCHEMA' to ` +\n `the ${schemas} of this component.`;\n }\n }\n reportUnknownPropertyError(message);\n}\nfunction reportUnknownPropertyError(message) {\n if (shouldThrowErrorOnUnknownProperty) {\n throw new RuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message);\n }\n else {\n console.error(formatRuntimeError(303 /* RuntimeErrorCode.UNKNOWN_BINDING */, message));\n }\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode and also it relies on the constructor function being available.\n *\n * Gets a reference to the host component def (where a current component is declared).\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction getDeclarationComponentDef(lView) {\n !ngDevMode && throwError('Must never be called in production mode');\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n // Unable to obtain a context.\n if (!context)\n return null;\n return context.constructor ? getComponentDef(context.constructor) : null;\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode.\n *\n * Checks if the current component is declared inside of a standalone component template.\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction isHostComponentStandalone(lView) {\n !ngDevMode && throwError('Must never be called in production mode');\n const componentDef = getDeclarationComponentDef(lView);\n // Treat host component as non-standalone if we can't obtain the def.\n return !!componentDef?.standalone;\n}\n/**\n * WARNING: this is a **dev-mode only** function (thus should always be guarded by the `ngDevMode`)\n * and must **not** be used in production bundles. The function makes megamorphic reads, which might\n * be too slow for production mode.\n *\n * Constructs a string describing the location of the host component template. The function is used\n * in dev mode to produce error messages.\n *\n * @param lView An `LView` that represents a current component that is being rendered.\n */\nfunction getTemplateLocationDetails(lView) {\n !ngDevMode && throwError('Must never be called in production mode');\n const hostComponentDef = getDeclarationComponentDef(lView);\n const componentClassName = hostComponentDef?.type?.name;\n return componentClassName ? ` (used in the '${componentClassName}' component template)` : '';\n}\n/**\n * The set of known control flow directives and their corresponding imports.\n * We use this set to produce a more precises error message with a note\n * that the `CommonModule` should also be included.\n */\nconst KNOWN_CONTROL_FLOW_DIRECTIVES = new Map([\n ['ngIf', 'NgIf'], ['ngFor', 'NgFor'], ['ngSwitchCase', 'NgSwitchCase'],\n ['ngSwitchDefault', 'NgSwitchDefault']\n]);\n/**\n * Returns true if the tag name is allowed by specified schemas.\n * @param schemas Array of schemas\n * @param tagName Name of the tag\n */\nfunction matchingSchemas(schemas, tagName) {\n if (schemas !== null) {\n for (let i = 0; i < schemas.length; i++) {\n const schema = schemas[i];\n if (schema === NO_ERRORS_SCHEMA ||\n schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1) {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveWindow(element) {\n return element.ownerDocument.defaultView;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveDocument(element) {\n return element.ownerDocument;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveBody(element) {\n return element.ownerDocument.body;\n}\n/**\n * The special delimiter we use to separate property names, prefixes, and suffixes\n * in property binding metadata. See storeBindingMetadata().\n *\n * We intentionally use the Unicode \"REPLACEMENT CHARACTER\" (U+FFFD) as a delimiter\n * because it is a very uncommon character that is unlikely to be part of a user's\n * property names or interpolation strings. If it is in fact used in a property\n * binding, DebugElement.properties will not return the correct value for that\n * binding. However, there should be no runtime effect for real applications.\n *\n * This character is typically rendered as a question mark inside of a diamond.\n * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)\n *\n */\nconst INTERPOLATION_DELIMITER = `�`;\n/**\n * Unwrap a value which might be behind a closure (for forward declaration reasons).\n */\nfunction maybeUnwrapFn(value) {\n if (value instanceof Function) {\n return value();\n }\n else {\n return value;\n }\n}\n/**\n * Detects whether the code is invoked in a browser.\n * Later on, this check should be replaced with a tree-shakable\n * flag (e.g. `!isServer`).\n */\nfunction isPlatformBrowser(injector) {\n return (injector ?? inject(Injector)).get(PLATFORM_ID) === 'browser';\n}\n\n/**\n * The max length of the string representation of a value in an error message\n */\nconst VALUE_STRING_LENGTH_LIMIT = 200;\n/** Verifies that a given type is a Standalone Component. */\nfunction assertStandaloneComponentType(type) {\n assertComponentDef(type);\n const componentDef = getComponentDef(type);\n if (!componentDef.standalone) {\n throw new RuntimeError(907 /* RuntimeErrorCode.TYPE_IS_NOT_STANDALONE */, `The ${stringifyForError(type)} component is not marked as standalone, ` +\n `but Angular expects to have a standalone component here. ` +\n `Please make sure the ${stringifyForError(type)} component has ` +\n `the \\`standalone: true\\` flag in the decorator.`);\n }\n}\n/** Verifies whether a given type is a component */\nfunction assertComponentDef(type) {\n if (!getComponentDef(type)) {\n throw new RuntimeError(906 /* RuntimeErrorCode.MISSING_GENERATED_DEF */, `The ${stringifyForError(type)} is not an Angular component, ` +\n `make sure it has the \\`@Component\\` decorator.`);\n }\n}\n/** Called when there are multiple component selectors that match a given node */\nfunction throwMultipleComponentError(tNode, first, second) {\n throw new RuntimeError(-300 /* RuntimeErrorCode.MULTIPLE_COMPONENTS_MATCH */, `Multiple components match node with tagname ${tNode.value}: ` +\n `${stringifyForError(first)} and ` +\n `${stringifyForError(second)}`);\n}\n/** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */\nfunction throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName, lView) {\n const hostComponentDef = getDeclarationComponentDef(lView);\n const componentClassName = hostComponentDef?.type?.name;\n const field = propName ? ` for '${propName}'` : '';\n let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${formatValue(oldValue)}'. Current value: '${formatValue(currValue)}'.${componentClassName ? ` Expression location: ${componentClassName} component` : ''}`;\n if (creationMode) {\n msg +=\n ` It seems like the view has been created after its parent and its children have been dirty checked.` +\n ` Has it been created in a change detection hook?`;\n }\n throw new RuntimeError(-100 /* RuntimeErrorCode.EXPRESSION_CHANGED_AFTER_CHECKED */, msg);\n}\nfunction formatValue(value) {\n let strValue = String(value);\n // JSON.stringify will throw on circular references\n try {\n if (Array.isArray(value) || strValue === '[object Object]') {\n strValue = JSON.stringify(value);\n }\n }\n catch (error) {\n }\n return strValue.length > VALUE_STRING_LENGTH_LIMIT ?\n (strValue.substring(0, VALUE_STRING_LENGTH_LIMIT) + '…') :\n strValue;\n}\nfunction constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {\n const [propName, prefix, ...chunks] = meta.split(INTERPOLATION_DELIMITER);\n let oldValue = prefix, newValue = prefix;\n for (let i = 0; i < chunks.length; i++) {\n const slotIdx = rootIndex + i;\n oldValue += `${lView[slotIdx]}${chunks[i]}`;\n newValue += `${slotIdx === expressionIndex ? changedValue : lView[slotIdx]}${chunks[i]}`;\n }\n return { propName, oldValue, newValue };\n}\n/**\n * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:\n * - property name (for property bindings or interpolations)\n * - old and new values, enriched using information from metadata\n *\n * More information on the metadata storage format can be found in `storePropertyBindingMetadata`\n * function description.\n */\nfunction getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {\n const tData = lView[TVIEW].data;\n const metadata = tData[bindingIndex];\n if (typeof metadata === 'string') {\n // metadata for property interpolation\n if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {\n return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);\n }\n // metadata for property binding\n return { propName: metadata, oldValue, newValue };\n }\n // metadata is not available for this expression, check if this expression is a part of the\n // property interpolation by going from the current binding index left and look for a string that\n // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:\n // [..., 'id�Prefix � and � suffix', null, null, null, ...]\n if (metadata === null) {\n let idx = bindingIndex - 1;\n while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {\n idx--;\n }\n const meta = tData[idx];\n if (typeof meta === 'string') {\n const matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g'));\n // first interpolation delimiter separates property name from interpolation parts (in case of\n // property interpolations), so we subtract one from total number of found delimiters\n if (matches && (matches.length - 1) > bindingIndex - idx) {\n return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);\n }\n }\n }\n return { propName: undefined, oldValue, newValue };\n}\n\n/**\n * Flags for renderer-specific style modifiers.\n * @publicApi\n */\nvar RendererStyleFlags2;\n(function (RendererStyleFlags2) {\n // TODO(misko): This needs to be refactored into a separate file so that it can be imported from\n // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails\n // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.\n /**\n * Marks a style as important.\n */\n RendererStyleFlags2[RendererStyleFlags2[\"Important\"] = 1] = \"Important\";\n /**\n * Marks a style as using dash case naming (this-is-dash-case).\n */\n RendererStyleFlags2[RendererStyleFlags2[\"DashCase\"] = 2] = \"DashCase\";\n})(RendererStyleFlags2 || (RendererStyleFlags2 = {}));\n\nlet _icuContainerIterate;\n/**\n * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.\n */\nfunction icuContainerIterate(tIcuContainerNode, lView) {\n return _icuContainerIterate(tIcuContainerNode, lView);\n}\n/**\n * Ensures that `IcuContainerVisitor`'s implementation is present.\n *\n * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the\n * bundler to tree shake ICU logic and only load it if ICU instruction is executed.\n */\nfunction ensureIcuContainerVisitorLoaded(loader) {\n if (_icuContainerIterate === undefined) {\n // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it\n // can be inlined into call-site.\n _icuContainerIterate = loader();\n }\n}\n\n/**\n * NOTE: for performance reasons, the possible actions are inlined within the function instead of\n * being passed as an argument.\n */\nfunction applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {\n // If this slot was allocated for a text node dynamically created by i18n, the text node itself\n // won't be created until i18nApply() in the update block, so this node should be skipped.\n // For more info, see \"ICU expressions should work inside an ngTemplateOutlet inside an ngFor\"\n // in `i18n_spec.ts`.\n if (lNodeToHandle != null) {\n let lContainer;\n let isComponent = false;\n // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is\n // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if\n // it has LContainer so that we can process all of those cases appropriately.\n if (isLContainer(lNodeToHandle)) {\n lContainer = lNodeToHandle;\n }\n else if (isLView(lNodeToHandle)) {\n isComponent = true;\n ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');\n lNodeToHandle = lNodeToHandle[HOST];\n }\n const rNode = unwrapRNode(lNodeToHandle);\n if (action === 0 /* WalkTNodeTreeAction.Create */ && parent !== null) {\n if (beforeNode == null) {\n nativeAppendChild(renderer, parent, rNode);\n }\n else {\n nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n }\n }\n else if (action === 1 /* WalkTNodeTreeAction.Insert */ && parent !== null) {\n nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n }\n else if (action === 2 /* WalkTNodeTreeAction.Detach */) {\n nativeRemoveNode(renderer, rNode, isComponent);\n }\n else if (action === 3 /* WalkTNodeTreeAction.Destroy */) {\n ngDevMode && ngDevMode.rendererDestroyNode++;\n renderer.destroyNode(rNode);\n }\n if (lContainer != null) {\n applyContainer(renderer, action, lContainer, parent, beforeNode);\n }\n }\n}\nfunction createTextNode(renderer, value) {\n ngDevMode && ngDevMode.rendererCreateTextNode++;\n ngDevMode && ngDevMode.rendererSetText++;\n return renderer.createText(value);\n}\nfunction updateTextNode(renderer, rNode, value) {\n ngDevMode && ngDevMode.rendererSetText++;\n renderer.setValue(rNode, value);\n}\nfunction createCommentNode(renderer, value) {\n ngDevMode && ngDevMode.rendererCreateComment++;\n return renderer.createComment(escapeCommentText(value));\n}\n/**\n * Creates a native element from a tag name, using a renderer.\n * @param renderer A renderer to use\n * @param name the tag name\n * @param namespace Optional namespace for element.\n * @returns the element created\n */\nfunction createElementNode(renderer, name, namespace) {\n ngDevMode && ngDevMode.rendererCreateElement++;\n return renderer.createElement(name, namespace);\n}\n/**\n * Removes all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to remove all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param lView The view from which elements should be added or removed\n */\nfunction removeViewFromDOM(tView, lView) {\n detachViewFromDOM(tView, lView);\n lView[HOST] = null;\n lView[T_HOST] = null;\n}\n/**\n * Adds all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to add all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param parentTNode The `TNode` where the `LView` should be attached to.\n * @param renderer Current renderer to use for DOM manipulations.\n * @param lView The view from which elements should be added or removed\n * @param parentNativeNode The parent `RElement` where it should be inserted into.\n * @param beforeNode The node before which elements should be added, if insert mode\n */\nfunction addViewToDOM(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {\n lView[HOST] = parentNativeNode;\n lView[T_HOST] = parentTNode;\n applyView(tView, lView, renderer, 1 /* WalkTNodeTreeAction.Insert */, parentNativeNode, beforeNode);\n}\n/**\n * Detach a `LView` from the DOM by detaching its nodes.\n *\n * @param tView The `TView' of the `LView` to be detached\n * @param lView the `LView` to be detached.\n */\nfunction detachViewFromDOM(tView, lView) {\n // When we remove a view from the DOM, we need to rerun afterRender hooks\n // We don't necessarily needs to run change detection. DOM removal only requires\n // change detection if animations are enabled (this notification is handled by animations).\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(1 /* NotificationType.AfterRenderHooks */);\n applyView(tView, lView, lView[RENDERER], 2 /* WalkTNodeTreeAction.Detach */, null, null);\n}\n/**\n * Traverses down and up the tree of views and containers to remove listeners and\n * call onDestroy callbacks.\n *\n * Notes:\n * - Because it's used for onDestroy calls, it needs to be bottom-up.\n * - Must process containers instead of their views to avoid splicing\n * when views are destroyed and re-added.\n * - Using a while loop because it's faster than recursion\n * - Destroy only called on movement to sibling or movement to parent (laterally or up)\n *\n * @param rootView The view to destroy\n */\nfunction destroyViewTree(rootView) {\n // If the view has no children, we can clean it up and return early.\n let lViewOrLContainer = rootView[CHILD_HEAD];\n if (!lViewOrLContainer) {\n return cleanUpView(rootView[TVIEW], rootView);\n }\n while (lViewOrLContainer) {\n let next = null;\n if (isLView(lViewOrLContainer)) {\n // If LView, traverse down to child.\n next = lViewOrLContainer[CHILD_HEAD];\n }\n else {\n ngDevMode && assertLContainer(lViewOrLContainer);\n // If container, traverse down to its first LView.\n const firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];\n if (firstView)\n next = firstView;\n }\n if (!next) {\n // Only clean up view when moving to the side or up, as destroy hooks\n // should be called in order from the bottom up.\n while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {\n if (isLView(lViewOrLContainer)) {\n cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n }\n lViewOrLContainer = lViewOrLContainer[PARENT];\n }\n if (lViewOrLContainer === null)\n lViewOrLContainer = rootView;\n if (isLView(lViewOrLContainer)) {\n cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n }\n next = lViewOrLContainer && lViewOrLContainer[NEXT];\n }\n lViewOrLContainer = next;\n }\n}\n/**\n * Inserts a view into a container.\n *\n * This adds the view to the container's array of active views in the correct\n * position. It also adds the view's elements to the DOM if the container isn't a\n * root node of another view (in that case, the view's elements will be added when\n * the container's parent view is added later).\n *\n * @param tView The `TView' of the `LView` to insert\n * @param lView The view to insert\n * @param lContainer The container into which the view should be inserted\n * @param index Which index in the container to insert the child view into\n */\nfunction insertView(tView, lView, lContainer, index) {\n ngDevMode && assertLView(lView);\n ngDevMode && assertLContainer(lContainer);\n const indexInContainer = CONTAINER_HEADER_OFFSET + index;\n const containerLength = lContainer.length;\n if (index > 0) {\n // This is a new view, we need to add it to the children.\n lContainer[indexInContainer - 1][NEXT] = lView;\n }\n if (index < containerLength - CONTAINER_HEADER_OFFSET) {\n lView[NEXT] = lContainer[indexInContainer];\n addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);\n }\n else {\n lContainer.push(lView);\n lView[NEXT] = null;\n }\n lView[PARENT] = lContainer;\n // track views where declaration and insertion points are different\n const declarationLContainer = lView[DECLARATION_LCONTAINER];\n if (declarationLContainer !== null && lContainer !== declarationLContainer) {\n trackMovedView(declarationLContainer, lView);\n }\n // notify query that a new view has been added\n const lQueries = lView[QUERIES];\n if (lQueries !== null) {\n lQueries.insertView(tView);\n }\n updateAncestorTraversalFlagsOnAttach(lView);\n // Sets the attached flag\n lView[FLAGS] |= 128 /* LViewFlags.Attached */;\n}\n/**\n * Track views created from the declaration container (TemplateRef) and inserted into a\n * different LContainer.\n */\nfunction trackMovedView(declarationContainer, lView) {\n ngDevMode && assertDefined(lView, 'LView required');\n ngDevMode && assertLContainer(declarationContainer);\n const movedViews = declarationContainer[MOVED_VIEWS];\n const insertedLContainer = lView[PARENT];\n ngDevMode && assertLContainer(insertedLContainer);\n const insertedComponentLView = insertedLContainer[PARENT][DECLARATION_COMPONENT_VIEW];\n ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');\n const declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];\n ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');\n if (declaredComponentLView !== insertedComponentLView) {\n // At this point the declaration-component is not same as insertion-component; this means that\n // this is a transplanted view. Mark the declared lView as having transplanted views so that\n // those views can participate in CD.\n declarationContainer[FLAGS] |= LContainerFlags.HasTransplantedViews;\n }\n if (movedViews === null) {\n declarationContainer[MOVED_VIEWS] = [lView];\n }\n else {\n movedViews.push(lView);\n }\n}\nfunction detachMovedView(declarationContainer, lView) {\n ngDevMode && assertLContainer(declarationContainer);\n ngDevMode &&\n assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');\n const movedViews = declarationContainer[MOVED_VIEWS];\n const declarationViewIndex = movedViews.indexOf(lView);\n ngDevMode && assertLContainer(lView[PARENT]);\n movedViews.splice(declarationViewIndex, 1);\n}\n/**\n * Detaches a view from a container.\n *\n * This method removes the view from the container's array of active views. It also\n * removes the view's elements from the DOM.\n *\n * @param lContainer The container from which to detach a view\n * @param removeIndex The index of the view to detach\n * @returns Detached LView instance.\n */\nfunction detachView(lContainer, removeIndex) {\n if (lContainer.length <= CONTAINER_HEADER_OFFSET)\n return;\n const indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;\n const viewToDetach = lContainer[indexInContainer];\n if (viewToDetach) {\n const declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];\n if (declarationLContainer !== null && declarationLContainer !== lContainer) {\n detachMovedView(declarationLContainer, viewToDetach);\n }\n if (removeIndex > 0) {\n lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];\n }\n const removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);\n removeViewFromDOM(viewToDetach[TVIEW], viewToDetach);\n // notify query that a view has been removed\n const lQueries = removedLView[QUERIES];\n if (lQueries !== null) {\n lQueries.detachView(removedLView[TVIEW]);\n }\n viewToDetach[PARENT] = null;\n viewToDetach[NEXT] = null;\n // Unsets the attached flag\n viewToDetach[FLAGS] &= ~128 /* LViewFlags.Attached */;\n }\n return viewToDetach;\n}\n/**\n * A standalone function which destroys an LView,\n * conducting clean up (e.g. removing listeners, calling onDestroys).\n *\n * @param tView The `TView' of the `LView` to be destroyed\n * @param lView The view to be destroyed.\n */\nfunction destroyLView(tView, lView) {\n if (!(lView[FLAGS] & 256 /* LViewFlags.Destroyed */)) {\n const renderer = lView[RENDERER];\n if (renderer.destroyNode) {\n applyView(tView, lView, renderer, 3 /* WalkTNodeTreeAction.Destroy */, null, null);\n }\n destroyViewTree(lView);\n }\n}\n/**\n * Calls onDestroys hooks for all directives and pipes in a given view and then removes all\n * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks\n * can be propagated to @Output listeners.\n *\n * @param tView `TView` for the `LView` to clean up.\n * @param lView The LView to clean up\n */\nfunction cleanUpView(tView, lView) {\n if (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) {\n return;\n }\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Usually the Attached flag is removed when the view is detached from its parent, however\n // if it's a root view, the flag won't be unset hence why we're also removing on destroy.\n lView[FLAGS] &= ~128 /* LViewFlags.Attached */;\n // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook\n // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If\n // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.\n // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is\n // really more of an \"afterDestroy\" hook if you think about it.\n lView[FLAGS] |= 256 /* LViewFlags.Destroyed */;\n lView[REACTIVE_TEMPLATE_CONSUMER] && consumerDestroy$1(lView[REACTIVE_TEMPLATE_CONSUMER]);\n executeOnDestroys(tView, lView);\n processCleanups(tView, lView);\n // For component views only, the local renderer is destroyed at clean up time.\n if (lView[TVIEW].type === 1 /* TViewType.Component */) {\n ngDevMode && ngDevMode.rendererDestroy++;\n lView[RENDERER].destroy();\n }\n const declarationContainer = lView[DECLARATION_LCONTAINER];\n // we are dealing with an embedded view that is still inserted into a container\n if (declarationContainer !== null && isLContainer(lView[PARENT])) {\n // and this is a projected view\n if (declarationContainer !== lView[PARENT]) {\n detachMovedView(declarationContainer, lView);\n }\n // For embedded views still attached to a container: remove query result from this view.\n const lQueries = lView[QUERIES];\n if (lQueries !== null) {\n lQueries.detachView(tView);\n }\n }\n // Unregister the view once everything else has been cleaned up.\n unregisterLView(lView);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n/** Removes listeners and unsubscribes from output subscriptions */\nfunction processCleanups(tView, lView) {\n ngDevMode && assertNotReactive(processCleanups.name);\n const tCleanup = tView.cleanup;\n const lCleanup = lView[CLEANUP];\n if (tCleanup !== null) {\n for (let i = 0; i < tCleanup.length - 1; i += 2) {\n if (typeof tCleanup[i] === 'string') {\n // This is a native DOM listener. It will occupy 4 entries in the TCleanup array (hence i +=\n // 2 at the end of this block).\n const targetIdx = tCleanup[i + 3];\n ngDevMode && assertNumber(targetIdx, 'cleanup target must be a number');\n if (targetIdx >= 0) {\n // Destroy anything whose teardown is a function call (e.g. QueryList, ModelSignal).\n lCleanup[targetIdx]();\n }\n else {\n // Subscription\n lCleanup[-targetIdx].unsubscribe();\n }\n i += 2;\n }\n else {\n // This is a cleanup function that is grouped with the index of its context\n const context = lCleanup[tCleanup[i + 1]];\n tCleanup[i].call(context);\n }\n }\n }\n if (lCleanup !== null) {\n lView[CLEANUP] = null;\n }\n const destroyHooks = lView[ON_DESTROY_HOOKS];\n if (destroyHooks !== null) {\n // Reset the ON_DESTROY_HOOKS array before iterating over it to prevent hooks that unregister\n // themselves from mutating the array during iteration.\n lView[ON_DESTROY_HOOKS] = null;\n for (let i = 0; i < destroyHooks.length; i++) {\n const destroyHooksFn = destroyHooks[i];\n ngDevMode && assertFunction(destroyHooksFn, 'Expecting destroy hook to be a function.');\n destroyHooksFn();\n }\n }\n}\n/** Calls onDestroy hooks for this view */\nfunction executeOnDestroys(tView, lView) {\n ngDevMode && assertNotReactive(executeOnDestroys.name);\n let destroyHooks;\n if (tView != null && (destroyHooks = tView.destroyHooks) != null) {\n for (let i = 0; i < destroyHooks.length; i += 2) {\n const context = lView[destroyHooks[i]];\n // Only call the destroy hook if the context has been requested.\n if (!(context instanceof NodeInjectorFactory)) {\n const toCall = destroyHooks[i + 1];\n if (Array.isArray(toCall)) {\n for (let j = 0; j < toCall.length; j += 2) {\n const callContext = context[toCall[j]];\n const hook = toCall[j + 1];\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, callContext, hook);\n try {\n hook.call(callContext);\n }\n finally {\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, callContext, hook);\n }\n }\n }\n else {\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, context, toCall);\n try {\n toCall.call(context);\n }\n finally {\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, context, toCall);\n }\n }\n }\n }\n }\n}\n/**\n * Returns a native element if a node can be inserted into the given parent.\n *\n * There are two reasons why we may not be able to insert a element immediately.\n * - Projection: When creating a child content element of a component, we have to skip the\n * insertion because the content of a component will be projected.\n * `<component><content>delayed due to projection</content></component>`\n * - Parent container is disconnected: This can happen when we are inserting a view into\n * parent container, which itself is disconnected. For example the parent container is part\n * of a View which has not be inserted or is made for projection but has not been inserted\n * into destination.\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve render parent.\n * @param lView: Current `LView`.\n */\nfunction getParentRElement(tView, tNode, lView) {\n return getClosestRElement(tView, tNode.parent, lView);\n}\n/**\n * Get closest `RElement` or `null` if it can't be found.\n *\n * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.\n * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).\n * If `TNode` is `null` then return host `RElement`:\n * - return `null` if projection\n * - return `null` if parent container is disconnected (we have no parent.)\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is\n * needed).\n * @param lView: Current `LView`.\n * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)\n */\nfunction getClosestRElement(tView, tNode, lView) {\n let parentTNode = tNode;\n // Skip over element and ICU containers as those are represented by a comment node and\n // can't be used as a render parent.\n while (parentTNode !== null &&\n (parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */))) {\n tNode = parentTNode;\n parentTNode = tNode.parent;\n }\n // If the parent tNode is null, then we are inserting across views: either into an embedded view\n // or a component view.\n if (parentTNode === null) {\n // We are inserting a root element of the component view into the component host element and\n // it should always be eager.\n return lView[HOST];\n }\n else {\n ngDevMode && assertTNodeType(parentTNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);\n const { componentOffset } = parentTNode;\n if (componentOffset > -1) {\n ngDevMode && assertTNodeForLView(parentTNode, lView);\n const { encapsulation } = tView.data[parentTNode.directiveStart + componentOffset];\n // We've got a parent which is an element in the current view. We just need to verify if the\n // parent element is not a component. Component's content nodes are not inserted immediately\n // because they will be projected, and so doing insert at this point would be wasteful.\n // Since the projection would then move it to its final destination. Note that we can't\n // make this assumption when using the Shadow DOM, because the native projection placeholders\n // (<content> or <slot>) have to be in place as elements are being inserted.\n if (encapsulation === ViewEncapsulation$1.None ||\n encapsulation === ViewEncapsulation$1.Emulated) {\n return null;\n }\n }\n return getNativeByTNode(parentTNode, lView);\n }\n}\n/**\n * Inserts a native node before another native node for a given parent.\n * This is a utility function that can be used when native nodes were determined.\n */\nfunction nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {\n ngDevMode && ngDevMode.rendererInsertBefore++;\n renderer.insertBefore(parent, child, beforeNode, isMove);\n}\nfunction nativeAppendChild(renderer, parent, child) {\n ngDevMode && ngDevMode.rendererAppendChild++;\n ngDevMode && assertDefined(parent, 'parent node must be defined');\n renderer.appendChild(parent, child);\n}\nfunction nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {\n if (beforeNode !== null) {\n nativeInsertBefore(renderer, parent, child, beforeNode, isMove);\n }\n else {\n nativeAppendChild(renderer, parent, child);\n }\n}\n/** Removes a node from the DOM given its native parent. */\nfunction nativeRemoveChild(renderer, parent, child, isHostElement) {\n renderer.removeChild(parent, child, isHostElement);\n}\n/** Checks if an element is a `<template>` node. */\nfunction isTemplateNode(node) {\n return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\n/**\n * Returns a native parent of a given native node.\n */\nfunction nativeParentNode(renderer, node) {\n return renderer.parentNode(node);\n}\n/**\n * Returns a native sibling of a given native node.\n */\nfunction nativeNextSibling(renderer, node) {\n return renderer.nextSibling(node);\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted.\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {\n return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into\n * account)\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * does not take `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {\n if (parentTNode.type & (8 /* TNodeType.ElementContainer */ | 32 /* TNodeType.Icu */)) {\n return getNativeByTNode(parentTNode, lView);\n }\n return null;\n}\n/**\n * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;\n/**\n * Tree shakable boundary for `processI18nInsertBefore` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _processI18nInsertBefore;\nfunction setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {\n _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;\n _processI18nInsertBefore = processI18nInsertBefore;\n}\n/**\n * Appends the `child` native node (or a collection of nodes) to the `parent`.\n *\n * @param tView The `TView' to be appended\n * @param lView The current LView\n * @param childRNode The native child (or children) that should be appended\n * @param childTNode The TNode of the child element\n */\nfunction appendChild(tView, lView, childRNode, childTNode) {\n const parentRNode = getParentRElement(tView, childTNode, lView);\n const renderer = lView[RENDERER];\n const parentTNode = childTNode.parent || lView[T_HOST];\n const anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);\n if (parentRNode != null) {\n if (Array.isArray(childRNode)) {\n for (let i = 0; i < childRNode.length; i++) {\n nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);\n }\n }\n else {\n nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);\n }\n }\n _processI18nInsertBefore !== undefined &&\n _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);\n}\n/**\n * Returns the first native node for a given LView, starting from the provided TNode.\n *\n * Native nodes are returned in the order in which those appear in the native tree (DOM).\n */\nfunction getFirstNativeNode(lView, tNode) {\n if (tNode !== null) {\n ngDevMode &&\n assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */ | 16 /* TNodeType.Projection */);\n const tNodeType = tNode.type;\n if (tNodeType & 3 /* TNodeType.AnyRNode */) {\n return getNativeByTNode(tNode, lView);\n }\n else if (tNodeType & 4 /* TNodeType.Container */) {\n return getBeforeNodeForView(-1, lView[tNode.index]);\n }\n else if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n const elIcuContainerChild = tNode.child;\n if (elIcuContainerChild !== null) {\n return getFirstNativeNode(lView, elIcuContainerChild);\n }\n else {\n const rNodeOrLContainer = lView[tNode.index];\n if (isLContainer(rNodeOrLContainer)) {\n return getBeforeNodeForView(-1, rNodeOrLContainer);\n }\n else {\n return unwrapRNode(rNodeOrLContainer);\n }\n }\n }\n else if (tNodeType & 32 /* TNodeType.Icu */) {\n let nextRNode = icuContainerIterate(tNode, lView);\n let rNode = nextRNode();\n // If the ICU container has no nodes, than we use the ICU anchor as the node.\n return rNode || unwrapRNode(lView[tNode.index]);\n }\n else {\n const projectionNodes = getProjectionNodes(lView, tNode);\n if (projectionNodes !== null) {\n if (Array.isArray(projectionNodes)) {\n return projectionNodes[0];\n }\n const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n ngDevMode && assertParentView(parentView);\n return getFirstNativeNode(parentView, projectionNodes);\n }\n else {\n return getFirstNativeNode(lView, tNode.next);\n }\n }\n }\n return null;\n}\nfunction getProjectionNodes(lView, tNode) {\n if (tNode !== null) {\n const componentView = lView[DECLARATION_COMPONENT_VIEW];\n const componentHost = componentView[T_HOST];\n const slotIdx = tNode.projection;\n ngDevMode && assertProjectionSlots(lView);\n return componentHost.projection[slotIdx];\n }\n return null;\n}\nfunction getBeforeNodeForView(viewIndexInContainer, lContainer) {\n const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;\n if (nextViewIndex < lContainer.length) {\n const lView = lContainer[nextViewIndex];\n const firstTNodeOfView = lView[TVIEW].firstChild;\n if (firstTNodeOfView !== null) {\n return getFirstNativeNode(lView, firstTNodeOfView);\n }\n }\n return lContainer[NATIVE];\n}\n/**\n * Removes a native node itself using a given renderer. To remove the node we are looking up its\n * parent from the native tree as not all platforms / browsers support the equivalent of\n * node.remove().\n *\n * @param renderer A renderer to be used\n * @param rNode The native node that should be removed\n * @param isHostElement A flag indicating if a node to be removed is a host of a component.\n */\nfunction nativeRemoveNode(renderer, rNode, isHostElement) {\n ngDevMode && ngDevMode.rendererRemoveNode++;\n const nativeParent = nativeParentNode(renderer, rNode);\n if (nativeParent) {\n nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);\n }\n}\n/**\n * Clears the contents of a given RElement.\n *\n * @param rElement the native RElement to be cleared\n */\nfunction clearElementContents(rElement) {\n rElement.textContent = '';\n}\n/**\n * Performs the operation of `action` on the node. Typically this involves inserting or removing\n * nodes on the LView or projection boundary.\n */\nfunction applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {\n while (tNode != null) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode &&\n assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);\n const rawSlotValue = lView[tNode.index];\n const tNodeType = tNode.type;\n if (isProjection) {\n if (action === 0 /* WalkTNodeTreeAction.Create */) {\n rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);\n tNode.flags |= 2 /* TNodeFlags.isProjected */;\n }\n }\n if ((tNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */) {\n if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n else if (tNodeType & 32 /* TNodeType.Icu */) {\n const nextRNode = icuContainerIterate(tNode, lView);\n let rNode;\n while (rNode = nextRNode()) {\n applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n }\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n else if (tNodeType & 16 /* TNodeType.Projection */) {\n applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);\n }\n else {\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */);\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n }\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n }\n}\nfunction applyView(tView, lView, renderer, action, parentRElement, beforeNode) {\n applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);\n}\n/**\n * `applyProjection` performs operation on the projection.\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed\n * @param lView The `LView` which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n */\nfunction applyProjection(tView, lView, tProjectionNode) {\n const renderer = lView[RENDERER];\n const parentRNode = getParentRElement(tView, tProjectionNode, lView);\n const parentTNode = tProjectionNode.parent || lView[T_HOST];\n let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);\n applyProjectionRecursive(renderer, 0 /* WalkTNodeTreeAction.Create */, lView, tProjectionNode, parentRNode, beforeNode);\n}\n/**\n * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,\n * detach, destroy)\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param renderer Render to use\n * @param action action to perform (insert, detach, destroy)\n * @param lView The LView which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {\n const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n const componentNode = componentLView[T_HOST];\n ngDevMode &&\n assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');\n const nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];\n if (Array.isArray(nodeToProjectOrRNodes)) {\n // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we\n // need to support passing projectable nodes, so we cheat and put them in the TNode\n // of the Host TView. (Yes we put instance info at the T Level). We can get away with it\n // because we know that TView is not shared and therefore it will not be a problem.\n // This should be refactored and cleaned up.\n for (let i = 0; i < nodeToProjectOrRNodes.length; i++) {\n const rNode = nodeToProjectOrRNodes[i];\n applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n }\n }\n else {\n let nodeToProject = nodeToProjectOrRNodes;\n const projectedComponentLView = componentLView[PARENT];\n // If a parent <ng-content> is located within a skip hydration block,\n // annotate an actual node that is being projected with the same flag too.\n if (hasInSkipHydrationBlockFlag(tProjectionNode)) {\n nodeToProject.flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;\n }\n applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);\n }\n}\n/**\n * `applyContainer` performs an operation on the container and its views as specified by\n * `action` (insert, detach, destroy)\n *\n * Inserting a Container is complicated by the fact that the container may have Views which\n * themselves have containers or projections.\n *\n * @param renderer Renderer to use\n * @param action action to perform (insert, detach, destroy)\n * @param lContainer The LContainer which needs to be inserted, detached, destroyed.\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {\n ngDevMode && assertLContainer(lContainer);\n const anchor = lContainer[NATIVE]; // LContainer has its own before node.\n const native = unwrapRNode(lContainer);\n // An LContainer can be created dynamically on any node by injecting ViewContainerRef.\n // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor\n // node (comment in the DOM) that will be different from the LContainer's host node. In this\n // particular case we need to execute action on 2 nodes:\n // - container's host node (this is done in the executeActionOnElementOrContainer)\n // - container's host node (this is done here)\n if (anchor !== native) {\n // This is very strange to me (Misko). I would expect that the native is same as anchor. I\n // don't see a reason why they should be different, but they are.\n //\n // If they are we need to process the second anchor as well.\n applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);\n }\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const lView = lContainer[i];\n applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);\n }\n}\n/**\n * Writes class/style to element.\n *\n * @param renderer Renderer to use.\n * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)\n * @param rNode The Node to write to.\n * @param prop Property to write to. This would be the class/style name.\n * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add\n * otherwise).\n */\nfunction applyStyling(renderer, isClassBased, rNode, prop, value) {\n if (isClassBased) {\n // We actually want JS true/false here because any truthy value should add the class\n if (!value) {\n ngDevMode && ngDevMode.rendererRemoveClass++;\n renderer.removeClass(rNode, prop);\n }\n else {\n ngDevMode && ngDevMode.rendererAddClass++;\n renderer.addClass(rNode, prop);\n }\n }\n else {\n let flags = prop.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n if (value == null /** || value === undefined */) {\n ngDevMode && ngDevMode.rendererRemoveStyle++;\n renderer.removeStyle(rNode, prop, flags);\n }\n else {\n // A value is important if it ends with `!important`. The style\n // parser strips any semicolons at the end of the value.\n const isImportant = typeof value === 'string' ? value.endsWith('!important') : false;\n if (isImportant) {\n // !important has to be stripped from the value for it to be valid.\n value = value.slice(0, -10);\n flags |= RendererStyleFlags2.Important;\n }\n ngDevMode && ngDevMode.rendererSetStyle++;\n renderer.setStyle(rNode, prop, value, flags);\n }\n }\n}\n/**\n * Write `cssText` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectStyle(renderer, element, newValue) {\n ngDevMode && assertString(newValue, '\\'newValue\\' should be a string');\n renderer.setAttribute(element, 'style', newValue);\n ngDevMode && ngDevMode.rendererSetStyle++;\n}\n/**\n * Write `className` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectClass(renderer, element, newValue) {\n ngDevMode && assertString(newValue, '\\'newValue\\' should be a string');\n if (newValue === '') {\n // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.\n renderer.removeAttribute(element, 'class');\n }\n else {\n renderer.setAttribute(element, 'class', newValue);\n }\n ngDevMode && ngDevMode.rendererSetClassName++;\n}\n/** Sets up the static DOM attributes on an `RNode`. */\nfunction setupStaticAttributes(renderer, element, tNode) {\n const { mergedAttrs, classes, styles } = tNode;\n if (mergedAttrs !== null) {\n setUpAttributes(renderer, element, mergedAttrs);\n }\n if (classes !== null) {\n writeDirectClass(renderer, element, classes);\n }\n if (styles !== null) {\n writeDirectStyle(renderer, element, styles);\n }\n}\n\n/** A special value which designates that a value has not changed. */\nconst NO_CHANGE = (typeof ngDevMode === 'undefined' || ngDevMode) ? { __brand__: 'NO_CHANGE' } : {};\n\n/**\n * Advances to an element for later binding instructions.\n *\n * Used in conjunction with instructions like {@link property} to act on elements with specified\n * indices, for example those created with {@link element} or {@link elementStart}.\n *\n * ```ts\n * (rf: RenderFlags, ctx: any) => {\n * if (rf & 1) {\n * text(0, 'Hello');\n * text(1, 'Goodbye')\n * element(2, 'div');\n * }\n * if (rf & 2) {\n * advance(2); // Advance twice to the <div>.\n * property('title', 'test');\n * }\n * }\n * ```\n * @param delta Number of elements to advance forwards by.\n *\n * @codeGenApi\n */\nfunction ɵɵadvance(delta = 1) {\n ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');\n selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, !!ngDevMode && isInCheckNoChangesMode());\n}\nfunction selectIndexInternal(tView, lView, index, checkNoChangesMode) {\n ngDevMode && assertIndexInDeclRange(lView[TVIEW], index);\n // Flush the initial hooks for elements in the view that have been added up to this point.\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!checkNoChangesMode) {\n const hooksInitPhaseCompleted = (lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;\n if (hooksInitPhaseCompleted) {\n const preOrderCheckHooks = tView.preOrderCheckHooks;\n if (preOrderCheckHooks !== null) {\n executeCheckHooks(lView, preOrderCheckHooks, index);\n }\n }\n else {\n const preOrderHooks = tView.preOrderHooks;\n if (preOrderHooks !== null) {\n executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, index);\n }\n }\n }\n // We must set the selected index *after* running the hooks, because hooks may have side-effects\n // that cause other template functions to run, thus updating the selected index, which is global\n // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index\n // will be altered by the time we leave the `ɵɵadvance` instruction.\n setSelectedIndex(index);\n}\n\nfunction ɵɵdirectiveInject(token, flags = InjectFlags.Default) {\n const lView = getLView();\n // Fall back to inject() if view hasn't been created. This situation can happen in tests\n // if inject utilities are used before bootstrapping.\n if (lView === null) {\n // Verify that we will not get into infinite loop.\n ngDevMode && assertInjectImplementationNotEqual(ɵɵdirectiveInject);\n return ɵɵinject(token, flags);\n }\n const tNode = getCurrentTNode();\n const value = getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * This instruction allows the actual error message to be optimized away when ngDevMode is turned\n * off, saving bytes of generated code while still providing a good experience in dev mode.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactory() {\n const msg = ngDevMode ? `This constructor was not compatible with Dependency Injection.` : 'invalid';\n throw new Error(msg);\n}\n\nfunction writeToDirectiveInput(def, instance, publicName, privateName, flags, value) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // If we know we are dealing with a signal input, we cache its reference\n // in a tree-shakable way. The input signal node can then be used for\n // value transform execution or actual value updates without introducing\n // additional megamorphic accesses for accessing the instance field.\n let inputSignalNode = null;\n if ((flags & InputFlags.SignalBased) !== 0) {\n const field = instance[privateName];\n inputSignalNode = field[SIGNAL$1];\n }\n // If there is a signal node and a transform, run it before potentially\n // delegating to features like `NgOnChanges`.\n if (inputSignalNode !== null && inputSignalNode.transformFn !== undefined) {\n value = inputSignalNode.transformFn(value);\n }\n // If there is a decorator input transform, run it.\n if ((flags & InputFlags.HasDecoratorInputTransform) !== 0) {\n value = def.inputTransforms[privateName].call(instance, value);\n }\n if (def.setInput !== null) {\n def.setInput(instance, inputSignalNode, value, publicName, privateName);\n }\n else {\n applyValueToInputField(instance, inputSignalNode, privateName, value);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n\n/**\n * Invoke `HostBindingsFunction`s for view.\n *\n * This methods executes `TView.hostBindingOpCodes`. It is used to execute the\n * `HostBindingsFunction`s associated with the current `LView`.\n *\n * @param tView Current `TView`.\n * @param lView Current `LView`.\n */\nfunction processHostBindingOpCodes(tView, lView) {\n const hostBindingOpCodes = tView.hostBindingOpCodes;\n if (hostBindingOpCodes === null)\n return;\n try {\n for (let i = 0; i < hostBindingOpCodes.length; i++) {\n const opCode = hostBindingOpCodes[i];\n if (opCode < 0) {\n // Negative numbers are element indexes.\n setSelectedIndex(~opCode);\n }\n else {\n // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.\n const directiveIdx = opCode;\n const bindingRootIndx = hostBindingOpCodes[++i];\n const hostBindingFn = hostBindingOpCodes[++i];\n setBindingRootForHostBindings(bindingRootIndx, directiveIdx);\n const context = lView[directiveIdx];\n hostBindingFn(2 /* RenderFlags.Update */, context);\n }\n }\n }\n finally {\n setSelectedIndex(-1);\n }\n}\nfunction createLView(parentLView, tView, context, flags, host, tHostNode, environment, renderer, injector, embeddedViewInjector, hydrationInfo) {\n const lView = tView.blueprint.slice();\n lView[HOST] = host;\n lView[FLAGS] = flags | 4 /* LViewFlags.CreationMode */ | 128 /* LViewFlags.Attached */ | 8 /* LViewFlags.FirstLViewPass */ |\n 64 /* LViewFlags.Dirty */;\n if (embeddedViewInjector !== null ||\n (parentLView && (parentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */))) {\n lView[FLAGS] |= 2048 /* LViewFlags.HasEmbeddedViewInjector */;\n }\n resetPreOrderHookFlags(lView);\n ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);\n lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;\n lView[CONTEXT] = context;\n lView[ENVIRONMENT] = (environment || parentLView && parentLView[ENVIRONMENT]);\n ngDevMode && assertDefined(lView[ENVIRONMENT], 'LViewEnvironment is required');\n lView[RENDERER] = (renderer || parentLView && parentLView[RENDERER]);\n ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');\n lView[INJECTOR] = injector || parentLView && parentLView[INJECTOR] || null;\n lView[T_HOST] = tHostNode;\n lView[ID] = getUniqueLViewId();\n lView[HYDRATION] = hydrationInfo;\n lView[EMBEDDED_VIEW_INJECTOR] = embeddedViewInjector;\n ngDevMode &&\n assertEqual(tView.type == 2 /* TViewType.Embedded */ ? parentLView !== null : true, true, 'Embedded views must have parentLView');\n lView[DECLARATION_COMPONENT_VIEW] =\n tView.type == 2 /* TViewType.Embedded */ ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;\n return lView;\n}\nfunction getOrCreateTNode(tView, index, type, name, attrs) {\n ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in\n // `view_engine_compatibility` for additional context.\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\\'t be in the LView header.');\n // Keep this function short, so that the VM will inline it.\n ngDevMode && assertPureTNodeType(type);\n let tNode = tView.data[index];\n if (tNode === null) {\n tNode = createTNodeAtIndex(tView, index, type, name, attrs);\n if (isInI18nBlock()) {\n // If we are in i18n block then all elements should be pre declared through `Placeholder`\n // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n // If the `TNode` was not pre-declared than it means it was not mentioned which means it was\n // removed, so we mark it as detached.\n tNode.flags |= 32 /* TNodeFlags.isDetached */;\n }\n }\n else if (tNode.type & 64 /* TNodeType.Placeholder */) {\n tNode.type = type;\n tNode.value = name;\n tNode.attrs = attrs;\n const parent = getCurrentParentTNode();\n tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;\n ngDevMode && assertTNodeForTView(tNode, tView);\n ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');\n }\n setCurrentTNode(tNode, true);\n return tNode;\n}\nfunction createTNodeAtIndex(tView, index, type, name, attrs) {\n const currentTNode = getCurrentTNodePlaceholderOk();\n const isParent = isCurrentTNodeParent();\n const parent = isParent ? currentTNode : currentTNode && currentTNode.parent;\n // Parents cannot cross component boundaries because components will be used in multiple places.\n const tNode = tView.data[index] =\n createTNode(tView, parent, type, index, name, attrs);\n // Assign a pointer to the first child node of a given view. The first node is not always the one\n // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has\n // the index 1 or more, so we can't just check node index.\n if (tView.firstChild === null) {\n tView.firstChild = tNode;\n }\n if (currentTNode !== null) {\n if (isParent) {\n // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?\n if (currentTNode.child == null && tNode.parent !== null) {\n // We are in the same view, which means we are adding content node to the parent view.\n currentTNode.child = tNode;\n }\n }\n else {\n if (currentTNode.next === null) {\n // In the case of i18n the `currentTNode` may already be linked, in which case we don't want\n // to break the links which i18n created.\n currentTNode.next = tNode;\n tNode.prev = currentTNode;\n }\n }\n }\n return tNode;\n}\n/**\n * When elements are created dynamically after a view blueprint is created (e.g. through\n * i18nApply()), we need to adjust the blueprint for future\n * template passes.\n *\n * @param tView `TView` associated with `LView`\n * @param lView The `LView` containing the blueprint to adjust\n * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0\n * @param initialValue Initial value to store in blueprint\n */\nfunction allocExpando(tView, lView, numSlotsToAlloc, initialValue) {\n if (numSlotsToAlloc === 0)\n return -1;\n if (ngDevMode) {\n assertFirstCreatePass(tView);\n assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');\n assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');\n assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');\n assertFirstUpdatePass(tView);\n }\n const allocIdx = lView.length;\n for (let i = 0; i < numSlotsToAlloc; i++) {\n lView.push(initialValue);\n tView.blueprint.push(initialValue);\n tView.data.push(null);\n }\n return allocIdx;\n}\nfunction executeTemplate(tView, lView, templateFn, rf, context) {\n const prevSelectedIndex = getSelectedIndex();\n const isUpdatePhase = rf & 2 /* RenderFlags.Update */;\n try {\n setSelectedIndex(-1);\n if (isUpdatePhase && lView.length > HEADER_OFFSET) {\n // When we're updating, inherently select 0 so we don't\n // have to generate that instruction for most update blocks.\n selectIndexInternal(tView, lView, HEADER_OFFSET, !!ngDevMode && isInCheckNoChangesMode());\n }\n const preHookType = isUpdatePhase ? 2 /* ProfilerEvent.TemplateUpdateStart */ : 0 /* ProfilerEvent.TemplateCreateStart */;\n profiler(preHookType, context);\n templateFn(rf, context);\n }\n finally {\n setSelectedIndex(prevSelectedIndex);\n const postHookType = isUpdatePhase ? 3 /* ProfilerEvent.TemplateUpdateEnd */ : 1 /* ProfilerEvent.TemplateCreateEnd */;\n profiler(postHookType, context);\n }\n}\n//////////////////////////\n//// Element\n//////////////////////////\nfunction executeContentQueries(tView, tNode, lView) {\n if (isContentQueryHost(tNode)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n const def = tView.data[directiveIndex];\n if (def.contentQueries) {\n const directiveInstance = lView[directiveIndex];\n ngDevMode &&\n assertDefined(directiveIndex, 'Incorrect reference to a directive defining a content query');\n def.contentQueries(1 /* RenderFlags.Create */, directiveInstance, directiveIndex);\n }\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Creates directive instances.\n */\nfunction createDirectivesInstances(tView, lView, tNode) {\n if (!getBindingsEnabled())\n return;\n instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));\n if ((tNode.flags & 64 /* TNodeFlags.hasHostBindings */) === 64 /* TNodeFlags.hasHostBindings */) {\n invokeDirectivesHostBindings(tView, lView, tNode);\n }\n}\n/**\n * Takes a list of local names and indices and pushes the resolved local variable values\n * to LView in the same order as they are loaded in the template with load().\n */\nfunction saveResolvedLocalsInData(viewData, tNode, localRefExtractor = getNativeByTNode) {\n const localNames = tNode.localNames;\n if (localNames !== null) {\n let localIndex = tNode.index + 1;\n for (let i = 0; i < localNames.length; i += 2) {\n const index = localNames[i + 1];\n const value = index === -1 ?\n localRefExtractor(tNode, viewData) :\n viewData[index];\n viewData[localIndex++] = value;\n }\n }\n}\n/**\n * Gets TView from a template function or creates a new TView\n * if it doesn't already exist.\n *\n * @param def ComponentDef\n * @returns TView\n */\nfunction getOrCreateComponentTView(def) {\n const tView = def.tView;\n // Create a TView if there isn't one, or recreate it if the first create pass didn't\n // complete successfully since we can't know for sure whether it's in a usable shape.\n if (tView === null || tView.incompleteFirstPass) {\n // Declaration node here is null since this function is called when we dynamically create a\n // component and hence there is no declaration.\n const declTNode = null;\n return def.tView = createTView(1 /* TViewType.Component */, declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts, def.id);\n }\n return tView;\n}\n/**\n * Creates a TView instance\n *\n * @param type Type of `TView`.\n * @param declTNode Declaration location of this `TView`.\n * @param templateFn Template function\n * @param decls The number of nodes, local refs, and pipes in this template\n * @param directives Registry of directives for this view\n * @param pipes Registry of pipes for this view\n * @param viewQuery View queries for this view\n * @param schemas Schemas for this view\n * @param consts Constants for this view\n */\nfunction createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory, ssrId) {\n ngDevMode && ngDevMode.tView++;\n const bindingStartIndex = HEADER_OFFSET + decls;\n // This length does not yet contain host bindings from child directives because at this point,\n // we don't know which directives are active on this template. As soon as a directive is matched\n // that has a host binding, we will update the blueprint with that def's hostVars count.\n const initialViewLength = bindingStartIndex + vars;\n const blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);\n const consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;\n const tView = blueprint[TVIEW] = {\n type: type,\n blueprint: blueprint,\n template: templateFn,\n queries: null,\n viewQuery: viewQuery,\n declTNode: declTNode,\n data: blueprint.slice().fill(null, bindingStartIndex),\n bindingStartIndex: bindingStartIndex,\n expandoStartIndex: initialViewLength,\n hostBindingOpCodes: null,\n firstCreatePass: true,\n firstUpdatePass: true,\n staticViewQueries: false,\n staticContentQueries: false,\n preOrderHooks: null,\n preOrderCheckHooks: null,\n contentHooks: null,\n contentCheckHooks: null,\n viewHooks: null,\n viewCheckHooks: null,\n destroyHooks: null,\n cleanup: null,\n contentQueries: null,\n components: null,\n directiveRegistry: typeof directives === 'function' ? directives() : directives,\n pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,\n firstChild: null,\n schemas: schemas,\n consts: consts,\n incompleteFirstPass: false,\n ssrId,\n };\n if (ngDevMode) {\n // For performance reasons it is important that the tView retains the same shape during runtime.\n // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n // prevent class transitions.\n Object.seal(tView);\n }\n return tView;\n}\nfunction createViewBlueprint(bindingStartIndex, initialViewLength) {\n const blueprint = [];\n for (let i = 0; i < initialViewLength; i++) {\n blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);\n }\n return blueprint;\n}\n/**\n * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.\n *\n * @param renderer the renderer used to locate the element.\n * @param elementOrSelector Render element or CSS selector to locate the element.\n * @param encapsulation View Encapsulation defined for component that requests host element.\n * @param injector Root view injector instance.\n */\nfunction locateHostElement(renderer, elementOrSelector, encapsulation, injector) {\n // Note: we use default value for the `PRESERVE_HOST_CONTENT` here even though it's a\n // tree-shakable one (providedIn:'root'). This code path can be triggered during dynamic\n // component creation (after calling ViewContainerRef.createComponent) when an injector\n // instance can be provided. The injector instance might be disconnected from the main DI\n // tree, thus the `PRESERVE_HOST_CONTENT` would not be able to instantiate. In this case, the\n // default value will be used.\n const preserveHostContent = injector.get(PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT);\n // When using native Shadow DOM, do not clear host element to allow native slot\n // projection.\n const preserveContent = preserveHostContent || encapsulation === ViewEncapsulation$1.ShadowDom;\n const rootElement = renderer.selectRootElement(elementOrSelector, preserveContent);\n applyRootElementTransform(rootElement);\n return rootElement;\n}\n/**\n * Applies any root element transformations that are needed. If hydration is enabled,\n * this will process corrupted text nodes.\n *\n * @param rootElement the app root HTML Element\n */\nfunction applyRootElementTransform(rootElement) {\n _applyRootElementTransformImpl(rootElement);\n}\n/**\n * Reference to a function that applies transformations to the root HTML element\n * of an app. When hydration is enabled, this processes any corrupt text nodes\n * so they are properly hydratable on the client.\n *\n * @param rootElement the app root HTML Element\n */\nlet _applyRootElementTransformImpl = () => null;\n/**\n * Processes text node markers before hydration begins. This replaces any special comment\n * nodes that were added prior to serialization are swapped out to restore proper text\n * nodes before hydration.\n *\n * @param rootElement the app root HTML Element\n */\nfunction applyRootElementTransformImpl(rootElement) {\n if (hasSkipHydrationAttrOnRElement(rootElement)) {\n // Handle a situation when the `ngSkipHydration` attribute is applied\n // to the root node of an application. In this case, we should clear\n // the contents and render everything from scratch.\n clearElementContents(rootElement);\n }\n else {\n processTextNodeMarkersBeforeHydration(rootElement);\n }\n}\n/**\n * Sets the implementation for the `applyRootElementTransform` function.\n */\nfunction enableApplyRootElementTransformImpl() {\n _applyRootElementTransformImpl = applyRootElementTransformImpl;\n}\n/**\n * Saves context for this cleanup function in LView.cleanupInstances.\n *\n * On the first template pass, saves in TView:\n * - Cleanup function\n * - Index of context we just saved in LView.cleanupInstances\n */\nfunction storeCleanupWithContext(tView, lView, context, cleanupFn) {\n const lCleanup = getOrCreateLViewCleanup(lView);\n // Historically the `storeCleanupWithContext` was used to register both framework-level and\n // user-defined cleanup callbacks, but over time those two types of cleanups were separated.\n // This dev mode checks assures that user-level cleanup callbacks are _not_ stored in data\n // structures reserved for framework-specific hooks.\n ngDevMode &&\n assertDefined(context, 'Cleanup context is mandatory when registering framework-level destroy hooks');\n lCleanup.push(context);\n if (tView.firstCreatePass) {\n getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);\n }\n else {\n // Make sure that no new framework-level cleanup functions are registered after the first\n // template pass is done (and TView data structures are meant to fully constructed).\n if (ngDevMode) {\n Object.freeze(getOrCreateTViewCleanup(tView));\n }\n }\n}\nfunction createTNode(tView, tParent, type, index, value, attrs) {\n ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in\n // `view_engine_compatibility` for additional context.\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\\'t be in the LView header.');\n ngDevMode && assertNotSame(attrs, undefined, '\\'undefined\\' is not valid value for \\'attrs\\'');\n ngDevMode && ngDevMode.tNode++;\n ngDevMode && tParent && assertTNodeForTView(tParent, tView);\n let injectorIndex = tParent ? tParent.injectorIndex : -1;\n let flags = 0;\n if (isInSkipHydrationBlock$1()) {\n flags |= 128 /* TNodeFlags.inSkipHydrationBlock */;\n }\n const tNode = {\n type,\n index,\n insertBeforeIndex: null,\n injectorIndex,\n directiveStart: -1,\n directiveEnd: -1,\n directiveStylingLast: -1,\n componentOffset: -1,\n propertyBindings: null,\n flags,\n providerIndexes: 0,\n value: value,\n attrs: attrs,\n mergedAttrs: null,\n localNames: null,\n initialInputs: undefined,\n inputs: null,\n outputs: null,\n tView: null,\n next: null,\n prev: null,\n projectionNext: null,\n child: null,\n parent: tParent,\n projection: null,\n styles: null,\n stylesWithoutHost: null,\n residualStyles: undefined,\n classes: null,\n classesWithoutHost: null,\n residualClasses: undefined,\n classBindings: 0,\n styleBindings: 0,\n };\n if (ngDevMode) {\n // For performance reasons it is important that the tNode retains the same shape during runtime.\n // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n // prevent class transitions.\n Object.seal(tNode);\n }\n return tNode;\n}\nfunction captureNodeBindings(mode, aliasMap, directiveIndex, bindingsResult, hostDirectiveAliasMap) {\n for (let publicName in aliasMap) {\n if (!aliasMap.hasOwnProperty(publicName)) {\n continue;\n }\n const value = aliasMap[publicName];\n if (value === undefined) {\n continue;\n }\n bindingsResult ??= {};\n let internalName;\n let inputFlags = InputFlags.None;\n // For inputs, the value might be an array capturing additional\n // input flags.\n if (Array.isArray(value)) {\n internalName = value[0];\n inputFlags = value[1];\n }\n else {\n internalName = value;\n }\n // If there are no host directive mappings, we want to remap using the alias map from the\n // definition itself. If there is an alias map, it has two functions:\n // 1. It serves as an allowlist of bindings that are exposed by the host directives. Only the\n // ones inside the host directive map will be exposed on the host.\n // 2. The public name of the property is aliased using the host directive alias map, rather\n // than the alias map from the definition.\n let finalPublicName = publicName;\n if (hostDirectiveAliasMap !== null) {\n // If there is no mapping, it's not part of the allowlist and this input/output\n // is not captured and should be ignored.\n if (!hostDirectiveAliasMap.hasOwnProperty(publicName)) {\n continue;\n }\n finalPublicName = hostDirectiveAliasMap[publicName];\n }\n if (mode === 0 /* CaptureNodeBindingMode.Inputs */) {\n addPropertyBinding(bindingsResult, directiveIndex, finalPublicName, internalName, inputFlags);\n }\n else {\n addPropertyBinding(bindingsResult, directiveIndex, finalPublicName, internalName);\n }\n }\n return bindingsResult;\n}\nfunction addPropertyBinding(bindings, directiveIndex, publicName, internalName, inputFlags) {\n let values;\n if (bindings.hasOwnProperty(publicName)) {\n (values = bindings[publicName]).push(directiveIndex, internalName);\n }\n else {\n values = bindings[publicName] = [directiveIndex, internalName];\n }\n if (inputFlags !== undefined) {\n values.push(inputFlags);\n }\n}\n/**\n * Initializes data structures required to work with directive inputs and outputs.\n * Initialization is done for all directives matched on a given TNode.\n */\nfunction initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefinitionMap) {\n ngDevMode && assertFirstCreatePass(tView);\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n const tViewData = tView.data;\n const tNodeAttrs = tNode.attrs;\n const inputsFromAttrs = [];\n let inputsStore = null;\n let outputsStore = null;\n for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n const directiveDef = tViewData[directiveIndex];\n const aliasData = hostDirectiveDefinitionMap ? hostDirectiveDefinitionMap.get(directiveDef) : null;\n const aliasedInputs = aliasData ? aliasData.inputs : null;\n const aliasedOutputs = aliasData ? aliasData.outputs : null;\n inputsStore = captureNodeBindings(0 /* CaptureNodeBindingMode.Inputs */, directiveDef.inputs, directiveIndex, inputsStore, aliasedInputs);\n outputsStore = captureNodeBindings(1 /* CaptureNodeBindingMode.Outputs */, directiveDef.outputs, directiveIndex, outputsStore, aliasedOutputs);\n // Do not use unbound attributes as inputs to structural directives, since structural\n // directive inputs can only be set using microsyntax (e.g. `<div *dir=\"exp\">`).\n // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which\n // should be set for inline templates.\n const initialInputs = (inputsStore !== null && tNodeAttrs !== null && !isInlineTemplate(tNode)) ?\n generateInitialInputs(inputsStore, directiveIndex, tNodeAttrs) :\n null;\n inputsFromAttrs.push(initialInputs);\n }\n if (inputsStore !== null) {\n if (inputsStore.hasOwnProperty('class')) {\n tNode.flags |= 8 /* TNodeFlags.hasClassInput */;\n }\n if (inputsStore.hasOwnProperty('style')) {\n tNode.flags |= 16 /* TNodeFlags.hasStyleInput */;\n }\n }\n tNode.initialInputs = inputsFromAttrs;\n tNode.inputs = inputsStore;\n tNode.outputs = outputsStore;\n}\n/**\n * Mapping between attributes names that don't correspond to their element property names.\n *\n * Performance note: this function is written as a series of if checks (instead of, say, a property\n * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of\n * mapping property names. Do NOT change without benchmarking.\n *\n * Note: this mapping has to be kept in sync with the equally named mapping in the template\n * type-checking machinery of ngtsc.\n */\nfunction mapPropName(name) {\n if (name === 'class')\n return 'className';\n if (name === 'for')\n return 'htmlFor';\n if (name === 'formaction')\n return 'formAction';\n if (name === 'innerHtml')\n return 'innerHTML';\n if (name === 'readonly')\n return 'readOnly';\n if (name === 'tabindex')\n return 'tabIndex';\n return name;\n}\nfunction elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {\n ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n const element = getNativeByTNode(tNode, lView);\n let inputData = tNode.inputs;\n let dataValue;\n if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {\n setInputsForProperty(tView, lView, dataValue, propName, value);\n if (isComponentHost(tNode))\n markDirtyIfOnPush(lView, tNode.index);\n if (ngDevMode) {\n setNgReflectProperties(lView, element, tNode.type, dataValue, value);\n }\n }\n else if (tNode.type & 3 /* TNodeType.AnyRNode */) {\n propName = mapPropName(propName);\n if (ngDevMode) {\n validateAgainstEventProperties(propName);\n if (!isPropertyValid(element, propName, tNode.value, tView.schemas)) {\n handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);\n }\n ngDevMode.rendererSetProperty++;\n }\n // It is assumed that the sanitizer is only added when the compiler determines that the\n // property is risky, so sanitization can be done without further checks.\n value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;\n renderer.setProperty(element, propName, value);\n }\n else if (tNode.type & 12 /* TNodeType.AnyContainer */) {\n // If the node is a container and the property didn't\n // match any of the inputs or schemas we should throw.\n if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {\n handleUnknownPropertyError(propName, tNode.value, tNode.type, lView);\n }\n }\n}\n/** If node is an OnPush component, marks its LView dirty. */\nfunction markDirtyIfOnPush(lView, viewIndex) {\n ngDevMode && assertLView(lView);\n const childComponentLView = getComponentLViewByIndex(viewIndex, lView);\n if (!(childComponentLView[FLAGS] & 16 /* LViewFlags.CheckAlways */)) {\n childComponentLView[FLAGS] |= 64 /* LViewFlags.Dirty */;\n }\n}\nfunction setNgReflectProperty(lView, element, type, attrName, value) {\n const renderer = lView[RENDERER];\n attrName = normalizeDebugBindingName(attrName);\n const debugValue = normalizeDebugBindingValue(value);\n if (type & 3 /* TNodeType.AnyRNode */) {\n if (value == null) {\n renderer.removeAttribute(element, attrName);\n }\n else {\n renderer.setAttribute(element, attrName, debugValue);\n }\n }\n else {\n const textContent = escapeCommentText(`bindings=${JSON.stringify({ [attrName]: debugValue }, null, 2)}`);\n renderer.setValue(element, textContent);\n }\n}\nfunction setNgReflectProperties(lView, element, type, dataValue, value) {\n if (type & (3 /* TNodeType.AnyRNode */ | 4 /* TNodeType.Container */)) {\n /**\n * dataValue is an array containing runtime input or output names for the directives:\n * i+0: directive instance index\n * i+1: privateName\n *\n * e.g. [0, 'change', 'change-minified']\n * we want to set the reflected property with the privateName: dataValue[i+1]\n */\n for (let i = 0; i < dataValue.length; i += 3) {\n setNgReflectProperty(lView, element, type, dataValue[i + 1], value);\n }\n }\n}\n/**\n * Resolve the matched directives on a node.\n */\nfunction resolveDirectives(tView, lView, tNode, localRefs) {\n // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in\n // tsickle.\n ngDevMode && assertFirstCreatePass(tView);\n if (getBindingsEnabled()) {\n const exportsMap = localRefs === null ? null : { '': -1 };\n const matchResult = findDirectiveDefMatches(tView, tNode);\n let directiveDefs;\n let hostDirectiveDefs;\n if (matchResult === null) {\n directiveDefs = hostDirectiveDefs = null;\n }\n else {\n [directiveDefs, hostDirectiveDefs] = matchResult;\n }\n if (directiveDefs !== null) {\n initializeDirectives(tView, lView, tNode, directiveDefs, exportsMap, hostDirectiveDefs);\n }\n if (exportsMap)\n cacheMatchingLocalNames(tNode, localRefs, exportsMap);\n }\n // Merge the template attrs last so that they have the highest priority.\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);\n}\n/** Initializes the data structures necessary for a list of directives to be instantiated. */\nfunction initializeDirectives(tView, lView, tNode, directives, exportsMap, hostDirectiveDefs) {\n ngDevMode && assertFirstCreatePass(tView);\n // Publishes the directive types to DI so they can be injected. Needs to\n // happen in a separate pass before the TNode flags have been initialized.\n for (let i = 0; i < directives.length; i++) {\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, directives[i].type);\n }\n initTNodeFlags(tNode, tView.data.length, directives.length);\n // When the same token is provided by several directives on the same node, some rules apply in\n // the viewEngine:\n // - viewProviders have priority over providers\n // - the last directive in NgModule.declarations has priority over the previous one\n // So to match these rules, the order in which providers are added in the arrays is very\n // important.\n for (let i = 0; i < directives.length; i++) {\n const def = directives[i];\n if (def.providersResolver)\n def.providersResolver(def);\n }\n let preOrderHooksFound = false;\n let preOrderCheckHooksFound = false;\n let directiveIdx = allocExpando(tView, lView, directives.length, null);\n ngDevMode &&\n assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');\n for (let i = 0; i < directives.length; i++) {\n const def = directives[i];\n // Merge the attrs in the order of matches. This assumes that the first directive is the\n // component itself, so that the component has the least priority.\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);\n configureViewWithDirective(tView, tNode, lView, directiveIdx, def);\n saveNameToExportMap(directiveIdx, def, exportsMap);\n if (def.contentQueries !== null)\n tNode.flags |= 4 /* TNodeFlags.hasContentQuery */;\n if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0)\n tNode.flags |= 64 /* TNodeFlags.hasHostBindings */;\n const lifeCycleHooks = def.type.prototype;\n // Only push a node index into the preOrderHooks array if this is the first\n // pre-order hook found on this node.\n if (!preOrderHooksFound &&\n (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {\n // We will push the actual hook function into this array later during dir instantiation.\n // We cannot do it now because we must ensure hooks are registered in the same\n // order that directives are created (i.e. injection order).\n (tView.preOrderHooks ??= []).push(tNode.index);\n preOrderHooksFound = true;\n }\n if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {\n (tView.preOrderCheckHooks ??= []).push(tNode.index);\n preOrderCheckHooksFound = true;\n }\n directiveIdx++;\n }\n initializeInputAndOutputAliases(tView, tNode, hostDirectiveDefs);\n}\n/**\n * Add `hostBindings` to the `TView.hostBindingOpCodes`.\n *\n * @param tView `TView` to which the `hostBindings` should be added.\n * @param tNode `TNode` the element which contains the directive\n * @param directiveIdx Directive index in view.\n * @param directiveVarsIdx Where will the directive's vars be stored\n * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.\n */\nfunction registerHostBindingOpCodes(tView, tNode, directiveIdx, directiveVarsIdx, def) {\n ngDevMode && assertFirstCreatePass(tView);\n const hostBindings = def.hostBindings;\n if (hostBindings) {\n let hostBindingOpCodes = tView.hostBindingOpCodes;\n if (hostBindingOpCodes === null) {\n hostBindingOpCodes = tView.hostBindingOpCodes = [];\n }\n const elementIndx = ~tNode.index;\n if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {\n // Conditionally add select element so that we are more efficient in execution.\n // NOTE: this is strictly not necessary and it trades code size for runtime perf.\n // (We could just always add it.)\n hostBindingOpCodes.push(elementIndx);\n }\n hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);\n }\n}\n/**\n * Returns the last selected element index in the `HostBindingOpCodes`\n *\n * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only\n * if it changes. This method returns the last index (or '0' if not found.)\n *\n * Selected element index are only the ones which are negative.\n */\nfunction lastSelectedElementIdx(hostBindingOpCodes) {\n let i = hostBindingOpCodes.length;\n while (i > 0) {\n const value = hostBindingOpCodes[--i];\n if (typeof value === 'number' && value < 0) {\n return value;\n }\n }\n return 0;\n}\n/**\n * Instantiate all the directives that were previously resolved on the current node.\n */\nfunction instantiateAllDirectives(tView, lView, tNode, native) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n // The component view needs to be created before creating the node injector\n // since it is used to inject some special symbols like `ChangeDetectorRef`.\n if (isComponentHost(tNode)) {\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n addComponentLogic(lView, tNode, tView.data[start + tNode.componentOffset]);\n }\n if (!tView.firstCreatePass) {\n getOrCreateNodeInjectorForNode(tNode, lView);\n }\n attachPatchData(native, lView);\n const initialInputs = tNode.initialInputs;\n for (let i = start; i < end; i++) {\n const def = tView.data[i];\n const directive = getNodeInjectable(lView, tView, i, tNode);\n attachPatchData(directive, lView);\n if (initialInputs !== null) {\n setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);\n }\n if (isComponentDef(def)) {\n const componentView = getComponentLViewByIndex(tNode.index, lView);\n componentView[CONTEXT] = getNodeInjectable(lView, tView, i, tNode);\n }\n }\n}\nfunction invokeDirectivesHostBindings(tView, lView, tNode) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n const elementIndex = tNode.index;\n const currentDirectiveIndex = getCurrentDirectiveIndex();\n try {\n setSelectedIndex(elementIndex);\n for (let dirIndex = start; dirIndex < end; dirIndex++) {\n const def = tView.data[dirIndex];\n const directive = lView[dirIndex];\n setCurrentDirectiveIndex(dirIndex);\n if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {\n invokeHostBindingsInCreationMode(def, directive);\n }\n }\n }\n finally {\n setSelectedIndex(-1);\n setCurrentDirectiveIndex(currentDirectiveIndex);\n }\n}\n/**\n * Invoke the host bindings in creation mode.\n *\n * @param def `DirectiveDef` which may contain the `hostBindings` function.\n * @param directive Instance of directive.\n */\nfunction invokeHostBindingsInCreationMode(def, directive) {\n if (def.hostBindings !== null) {\n def.hostBindings(1 /* RenderFlags.Create */, directive);\n }\n}\n/**\n * Matches the current node against all available selectors.\n * If a component is matched (at most one), it is returned in first position in the array.\n */\nfunction findDirectiveDefMatches(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n const registry = tView.directiveRegistry;\n let matches = null;\n let hostDirectiveDefs = null;\n if (registry) {\n for (let i = 0; i < registry.length; i++) {\n const def = registry[i];\n if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */ false)) {\n matches || (matches = []);\n if (isComponentDef(def)) {\n if (ngDevMode) {\n assertTNodeType(tNode, 2 /* TNodeType.Element */, `\"${tNode.value}\" tags cannot be used as component hosts. ` +\n `Please use a different tag to activate the ${stringify(def.type)} component.`);\n if (isComponentHost(tNode)) {\n throwMultipleComponentError(tNode, matches.find(isComponentDef).type, def.type);\n }\n }\n // Components are inserted at the front of the matches array so that their lifecycle\n // hooks run before any directive lifecycle hooks. This appears to be for ViewEngine\n // compatibility. This logic doesn't make sense with host directives, because it\n // would allow the host directives to undo any overrides the host may have made.\n // To handle this case, the host directives of components are inserted at the beginning\n // of the array, followed by the component. As such, the insertion order is as follows:\n // 1. Host directives belonging to the selector-matched component.\n // 2. Selector-matched component.\n // 3. Host directives belonging to selector-matched directives.\n // 4. Selector-matched directives.\n if (def.findHostDirectiveDefs !== null) {\n const hostDirectiveMatches = [];\n hostDirectiveDefs = hostDirectiveDefs || new Map();\n def.findHostDirectiveDefs(def, hostDirectiveMatches, hostDirectiveDefs);\n // Add all host directives declared on this component, followed by the component itself.\n // Host directives should execute first so the host has a chance to override changes\n // to the DOM made by them.\n matches.unshift(...hostDirectiveMatches, def);\n // Component is offset starting from the beginning of the host directives array.\n const componentOffset = hostDirectiveMatches.length;\n markAsComponentHost(tView, tNode, componentOffset);\n }\n else {\n // No host directives on this component, just add the\n // component def to the beginning of the matches.\n matches.unshift(def);\n markAsComponentHost(tView, tNode, 0);\n }\n }\n else {\n // Append any host directives to the matches first.\n hostDirectiveDefs = hostDirectiveDefs || new Map();\n def.findHostDirectiveDefs?.(def, matches, hostDirectiveDefs);\n matches.push(def);\n }\n }\n }\n }\n ngDevMode && matches !== null && assertNoDuplicateDirectives(matches);\n return matches === null ? null : [matches, hostDirectiveDefs];\n}\n/**\n * Marks a given TNode as a component's host. This consists of:\n * - setting the component offset on the TNode.\n * - storing index of component's host element so it will be queued for view refresh during CD.\n */\nfunction markAsComponentHost(tView, hostTNode, componentOffset) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && assertGreaterThan(componentOffset, -1, 'componentOffset must be great than -1');\n hostTNode.componentOffset = componentOffset;\n (tView.components ??= []).push(hostTNode.index);\n}\n/** Caches local names and their matching directive indices for query and template lookups. */\nfunction cacheMatchingLocalNames(tNode, localRefs, exportsMap) {\n if (localRefs) {\n const localNames = tNode.localNames = [];\n // Local names must be stored in tNode in the same order that localRefs are defined\n // in the template to ensure the data is loaded in the same slots as their refs\n // in the template (for template queries).\n for (let i = 0; i < localRefs.length; i += 2) {\n const index = exportsMap[localRefs[i + 1]];\n if (index == null)\n throw new RuntimeError(-301 /* RuntimeErrorCode.EXPORT_NOT_FOUND */, ngDevMode && `Export of name '${localRefs[i + 1]}' not found!`);\n localNames.push(localRefs[i], index);\n }\n }\n}\n/**\n * Builds up an export map as directives are created, so local refs can be quickly mapped\n * to their directive instances.\n */\nfunction saveNameToExportMap(directiveIdx, def, exportsMap) {\n if (exportsMap) {\n if (def.exportAs) {\n for (let i = 0; i < def.exportAs.length; i++) {\n exportsMap[def.exportAs[i]] = directiveIdx;\n }\n }\n if (isComponentDef(def))\n exportsMap[''] = directiveIdx;\n }\n}\n/**\n * Initializes the flags on the current node, setting all indices to the initial index,\n * the directive count to 0, and adding the isComponent flag.\n * @param index the initial index\n */\nfunction initTNodeFlags(tNode, index, numberOfDirectives) {\n ngDevMode &&\n assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');\n tNode.flags |= 1 /* TNodeFlags.isDirectiveHost */;\n // When the first directive is created on a node, save the index\n tNode.directiveStart = index;\n tNode.directiveEnd = index + numberOfDirectives;\n tNode.providerIndexes = index;\n}\n/**\n * Setup directive for instantiation.\n *\n * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well\n * as `LView`. `TView` gets the `DirectiveDef`.\n *\n * @param tView `TView`\n * @param tNode `TNode`\n * @param lView `LView`\n * @param directiveIndex Index where the directive will be stored in the Expando.\n * @param def `DirectiveDef`\n */\nfunction configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {\n ngDevMode &&\n assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');\n tView.data[directiveIndex] = def;\n const directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));\n // Even though `directiveFactory` will already be using `ɵɵdirectiveInject` in its generated code,\n // we also want to support `inject()` directly from the directive constructor context so we set\n // `ɵɵdirectiveInject` as the inject implementation here too.\n const nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), ɵɵdirectiveInject);\n tView.blueprint[directiveIndex] = nodeInjectorFactory;\n lView[directiveIndex] = nodeInjectorFactory;\n registerHostBindingOpCodes(tView, tNode, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);\n}\nfunction addComponentLogic(lView, hostTNode, def) {\n const native = getNativeByTNode(hostTNode, lView);\n const tView = getOrCreateComponentTView(def);\n // Only component views should be added to the view tree directly. Embedded views are\n // accessed through their containers because they may be removed / re-added later.\n const rendererFactory = lView[ENVIRONMENT].rendererFactory;\n let lViewFlags = 16 /* LViewFlags.CheckAlways */;\n if (def.signals) {\n lViewFlags = 4096 /* LViewFlags.SignalView */;\n }\n else if (def.onPush) {\n lViewFlags = 64 /* LViewFlags.Dirty */;\n }\n const componentView = addToViewTree(lView, createLView(lView, tView, null, lViewFlags, native, hostTNode, null, rendererFactory.createRenderer(native, def), null, null, null));\n // Component view will always be created before any injected LContainers,\n // so this is a regular element, wrap it with the component view\n lView[hostTNode.index] = componentView;\n}\nfunction elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {\n if (ngDevMode) {\n assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n validateAgainstEventAttributes(name);\n assertTNodeType(tNode, 2 /* TNodeType.Element */, `Attempted to set attribute \\`${name}\\` on a container node. ` +\n `Host bindings are not valid on ng-container or ng-template.`);\n }\n const element = getNativeByTNode(tNode, lView);\n setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);\n}\nfunction setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {\n if (value == null) {\n ngDevMode && ngDevMode.rendererRemoveAttribute++;\n renderer.removeAttribute(element, name, namespace);\n }\n else {\n ngDevMode && ngDevMode.rendererSetAttribute++;\n const strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);\n renderer.setAttribute(element, name, strValue, namespace);\n }\n}\n/**\n * Sets initial input properties on directive instances from attribute data\n *\n * @param lView Current LView that is being processed.\n * @param directiveIndex Index of the directive in directives array\n * @param instance Instance of the directive on which to set the initial inputs\n * @param def The directive def that contains the list of inputs\n * @param tNode The static data for this node\n */\nfunction setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {\n const initialInputs = initialInputData[directiveIndex];\n if (initialInputs !== null) {\n for (let i = 0; i < initialInputs.length;) {\n const publicName = initialInputs[i++];\n const privateName = initialInputs[i++];\n const flags = initialInputs[i++];\n const value = initialInputs[i++];\n writeToDirectiveInput(def, instance, publicName, privateName, flags, value);\n if (ngDevMode) {\n const nativeElement = getNativeByTNode(tNode, lView);\n setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);\n }\n }\n }\n}\n/**\n * Generates initialInputData for a node and stores it in the template's static storage\n * so subsequent template invocations don't have to recalculate it.\n *\n * initialInputData is an array containing values that need to be set as input properties\n * for directives on this node, but only once on creation. We need this array to support\n * the case where you set an @Input property of a directive using attribute-like syntax.\n * e.g. if you have a `name` @Input, you can set it once like this:\n *\n * <my-component name=\"Bess\"></my-component>\n *\n * @param inputs Input alias map that was generated from the directive def inputs.\n * @param directiveIndex Index of the directive that is currently being processed.\n * @param attrs Static attrs on this node.\n */\nfunction generateInitialInputs(inputs, directiveIndex, attrs) {\n let inputsToStore = null;\n let i = 0;\n while (i < attrs.length) {\n const attrName = attrs[i];\n if (attrName === 0 /* AttributeMarker.NamespaceURI */) {\n // We do not allow inputs on namespaced attributes.\n i += 4;\n continue;\n }\n else if (attrName === 5 /* AttributeMarker.ProjectAs */) {\n // Skip over the `ngProjectAs` value.\n i += 2;\n continue;\n }\n // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.\n if (typeof attrName === 'number')\n break;\n if (inputs.hasOwnProperty(attrName)) {\n if (inputsToStore === null)\n inputsToStore = [];\n // Find the input's public name from the input store. Note that we can be found easier\n // through the directive def, but we want to do it using the inputs store so that it can\n // account for host directive aliases.\n const inputConfig = inputs[attrName];\n for (let j = 0; j < inputConfig.length; j += 3) {\n if (inputConfig[j] === directiveIndex) {\n inputsToStore.push(attrName, inputConfig[j + 1], inputConfig[j + 2], attrs[i + 1]);\n // A directive can't have multiple inputs with the same name so we can break here.\n break;\n }\n }\n }\n i += 2;\n }\n return inputsToStore;\n}\n//////////////////////////\n//// ViewContainer & View\n//////////////////////////\n/**\n * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.\n *\n * @param hostNative The host element for the LContainer\n * @param hostTNode The host TNode for the LContainer\n * @param currentView The parent view of the LContainer\n * @param native The native comment element\n * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case\n * @returns LContainer\n */\nfunction createLContainer(hostNative, currentView, native, tNode) {\n ngDevMode && assertLView(currentView);\n const lContainer = [\n hostNative, // host native\n true, // Boolean `true` in this position signifies that this is an `LContainer`\n 0, // flags\n currentView, // parent\n null, // next\n tNode, // t_host\n null, // dehydrated views\n native, // native,\n null, // view refs\n null, // moved views\n ];\n ngDevMode &&\n assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');\n return lContainer;\n}\n/** Refreshes all content queries declared by directives in a given view */\nfunction refreshContentQueries(tView, lView) {\n const contentQueries = tView.contentQueries;\n if (contentQueries !== null) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n for (let i = 0; i < contentQueries.length; i += 2) {\n const queryStartIdx = contentQueries[i];\n const directiveDefIdx = contentQueries[i + 1];\n if (directiveDefIdx !== -1) {\n const directiveDef = tView.data[directiveDefIdx];\n ngDevMode && assertDefined(directiveDef, 'DirectiveDef not found.');\n ngDevMode &&\n assertDefined(directiveDef.contentQueries, 'contentQueries function should be defined');\n setCurrentQueryIndex(queryStartIdx);\n directiveDef.contentQueries(2 /* RenderFlags.Update */, lView[directiveDefIdx], directiveDefIdx);\n }\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Adds LView or LContainer to the end of the current view tree.\n *\n * This structure will be used to traverse through nested views to remove listeners\n * and call onDestroy callbacks.\n *\n * @param lView The view where LView or LContainer should be added\n * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header\n * @param lViewOrLContainer The LView or LContainer to add to the view tree\n * @returns The state passed in\n */\nfunction addToViewTree(lView, lViewOrLContainer) {\n // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer\n // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out\n // of order, the change detection will run out of order, as the act of retrieving the the\n // LContainer from the RNode is what adds it to the queue.\n if (lView[CHILD_HEAD]) {\n lView[CHILD_TAIL][NEXT] = lViewOrLContainer;\n }\n else {\n lView[CHILD_HEAD] = lViewOrLContainer;\n }\n lView[CHILD_TAIL] = lViewOrLContainer;\n return lViewOrLContainer;\n}\n///////////////////////////////\n//// Change detection\n///////////////////////////////\nfunction executeViewQueryFn(flags, viewQueryFn, component) {\n ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');\n setCurrentQueryIndex(0);\n const prevConsumer = setActiveConsumer$1(null);\n try {\n viewQueryFn(flags, component);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n///////////////////////////////\n//// Bindings & interpolations\n///////////////////////////////\n/**\n * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.\n *\n * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:\n * - a bound property name;\n * - a static parts of interpolated strings;\n *\n * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a\n * property binding metadata will be stored in `TView.data` at the same index as a bound value in\n * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the\n * following format:\n * - `propertyName` for bound properties;\n * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for\n * interpolated properties.\n *\n * @param tData `TData` where meta-data will be saved;\n * @param tNode `TNode` that is a target of the binding;\n * @param propertyName bound property name;\n * @param bindingIndex binding index in `LView`\n * @param interpolationParts static interpolation parts (for property interpolations)\n */\nfunction storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex, ...interpolationParts) {\n // Binding meta-data are stored only the first time a given property instruction is processed.\n // Since we don't have a concept of the \"first update pass\" we need to check for presence of the\n // binding meta-data to decide if one should be stored (or if was stored already).\n if (tData[bindingIndex] === null) {\n if (tNode.inputs == null || !tNode.inputs[propertyName]) {\n const propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);\n propBindingIdxs.push(bindingIndex);\n let bindingMetadata = propertyName;\n if (interpolationParts.length > 0) {\n bindingMetadata +=\n INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);\n }\n tData[bindingIndex] = bindingMetadata;\n }\n }\n}\nfunction getOrCreateLViewCleanup(view) {\n // top level variables should not be exported for performance reasons (PERF_NOTES.md)\n return view[CLEANUP] || (view[CLEANUP] = []);\n}\nfunction getOrCreateTViewCleanup(tView) {\n return tView.cleanup || (tView.cleanup = []);\n}\n/**\n * There are cases where the sub component's renderer needs to be included\n * instead of the current renderer (see the componentSyntheticHost* instructions).\n */\nfunction loadComponentRenderer(currentDef, tNode, lView) {\n // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root\n // component (see packages/core/src/render3/component.ts). This is not consistent with the process\n // of creating inner components, when current directive index is available in the state. In order\n // to avoid relying on current def being `null` (thus special-casing root component creation), the\n // process of creating root component should be unified with the process of creating inner\n // components.\n if (currentDef === null || isComponentDef(currentDef)) {\n lView = unwrapLView(lView[tNode.index]);\n }\n return lView[RENDERER];\n}\n/** Handles an error thrown in an LView. */\nfunction handleError(lView, error) {\n const injector = lView[INJECTOR];\n const errorHandler = injector ? injector.get(ErrorHandler, null) : null;\n errorHandler && errorHandler.handleError(error);\n}\n/**\n * Set the inputs of directives at the current node to corresponding value.\n *\n * @param tView The current TView\n * @param lView the `LView` which contains the directives.\n * @param inputs mapping between the public \"input\" name and privately-known,\n * possibly minified, property names to write to.\n * @param value Value to set.\n */\nfunction setInputsForProperty(tView, lView, inputs, publicName, value) {\n for (let i = 0; i < inputs.length;) {\n const index = inputs[i++];\n const privateName = inputs[i++];\n const flags = inputs[i++];\n const instance = lView[index];\n ngDevMode && assertIndexInRange(lView, index);\n const def = tView.data[index];\n writeToDirectiveInput(def, instance, publicName, privateName, flags, value);\n }\n}\n/**\n * Updates a text binding at a given index in a given LView.\n */\nfunction textBindingInternal(lView, index, value) {\n ngDevMode && assertString(value, 'Value should be a string');\n ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');\n ngDevMode && assertIndexInRange(lView, index);\n const element = getNativeByIndex(index, lView);\n ngDevMode && assertDefined(element, 'native element should exist');\n updateTextNode(lView[RENDERER], element, value);\n}\n\nfunction renderComponent(hostLView, componentHostIdx) {\n ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');\n const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n const componentTView = componentView[TVIEW];\n syncViewWithBlueprint(componentTView, componentView);\n const hostRNode = componentView[HOST];\n // Populate an LView with hydration info retrieved from the DOM via TransferState.\n if (hostRNode !== null && componentView[HYDRATION] === null) {\n componentView[HYDRATION] = retrieveHydrationInfo(hostRNode, componentView[INJECTOR]);\n }\n renderView(componentTView, componentView, componentView[CONTEXT]);\n}\n/**\n * Syncs an LView instance with its blueprint if they have gotten out of sync.\n *\n * Typically, blueprints and their view instances should always be in sync, so the loop here\n * will be skipped. However, consider this case of two components side-by-side:\n *\n * App template:\n * ```\n * <comp></comp>\n * <comp></comp>\n * ```\n *\n * The following will happen:\n * 1. App template begins processing.\n * 2. First <comp> is matched as a component and its LView is created.\n * 3. Second <comp> is matched as a component and its LView is created.\n * 4. App template completes processing, so it's time to check child templates.\n * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.\n * 6. Second <comp> template is checked. Its blueprint has been updated by the first\n * <comp> template, but its LView was created before this update, so it is out of sync.\n *\n * Note that embedded views inside ngFor loops will never be out of sync because these views\n * are processed as soon as they are created.\n *\n * @param tView The `TView` that contains the blueprint for syncing\n * @param lView The view to sync\n */\nfunction syncViewWithBlueprint(tView, lView) {\n for (let i = lView.length; i < tView.blueprint.length; i++) {\n lView.push(tView.blueprint[i]);\n }\n}\n/**\n * Processes a view in the creation mode. This includes a number of steps in a specific order:\n * - creating view query functions (if any);\n * - executing a template function in the creation mode;\n * - updating static queries (if any);\n * - creating child components defined in a given view.\n */\nfunction renderView(tView, lView, context) {\n ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');\n ngDevMode && assertNotReactive(renderView.name);\n enterView(lView);\n try {\n const viewQuery = tView.viewQuery;\n if (viewQuery !== null) {\n executeViewQueryFn(1 /* RenderFlags.Create */, viewQuery, context);\n }\n // Execute a template associated with this view, if it exists. A template function might not be\n // defined for the root component views.\n const templateFn = tView.template;\n if (templateFn !== null) {\n executeTemplate(tView, lView, templateFn, 1 /* RenderFlags.Create */, context);\n }\n // This needs to be set before children are processed to support recursive components.\n // This must be set to false immediately after the first creation run because in an\n // ngFor loop, all the views will be created together before update mode runs and turns\n // off firstCreatePass. If we don't set it here, instances will perform directive\n // matching, etc again and again.\n if (tView.firstCreatePass) {\n tView.firstCreatePass = false;\n }\n // Mark all queries active in this view as dirty. This is necessary for signal-based queries to\n // have a clear marking point where we can read query results atomically (for a given view).\n lView[QUERIES]?.finishViewCreation(tView);\n // We resolve content queries specifically marked as `static` in creation mode. Dynamic\n // content queries are resolved during change detection (i.e. update mode), after embedded\n // views are refreshed (see block above).\n if (tView.staticContentQueries) {\n refreshContentQueries(tView, lView);\n }\n // We must materialize query results before child components are processed\n // in case a child component has projected a container. The LContainer needs\n // to exist so the embedded views are properly attached by the container.\n if (tView.staticViewQueries) {\n executeViewQueryFn(2 /* RenderFlags.Update */, tView.viewQuery, context);\n }\n // Render child component views.\n const components = tView.components;\n if (components !== null) {\n renderChildComponents(lView, components);\n }\n }\n catch (error) {\n // If we didn't manage to get past the first template pass due to\n // an error, mark the view as corrupted so we can try to recover.\n if (tView.firstCreatePass) {\n tView.incompleteFirstPass = true;\n tView.firstCreatePass = false;\n }\n throw error;\n }\n finally {\n lView[FLAGS] &= ~4 /* LViewFlags.CreationMode */;\n leaveView();\n }\n}\n/** Renders child components in the current view (creation mode). */\nfunction renderChildComponents(hostLView, components) {\n for (let i = 0; i < components.length; i++) {\n renderComponent(hostLView, components[i]);\n }\n}\n\nfunction createAndRenderEmbeddedLView(declarationLView, templateTNode, context, options) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const embeddedTView = templateTNode.tView;\n ngDevMode && assertDefined(embeddedTView, 'TView must be defined for a template node.');\n ngDevMode && assertTNodeForLView(templateTNode, declarationLView);\n // Embedded views follow the change detection strategy of the view they're declared in.\n const isSignalView = declarationLView[FLAGS] & 4096 /* LViewFlags.SignalView */;\n const viewFlags = isSignalView ? 4096 /* LViewFlags.SignalView */ : 16 /* LViewFlags.CheckAlways */;\n const embeddedLView = createLView(declarationLView, embeddedTView, context, viewFlags, null, templateTNode, null, null, options?.injector ?? null, options?.embeddedViewInjector ?? null, options?.dehydratedView ?? null);\n const declarationLContainer = declarationLView[templateTNode.index];\n ngDevMode && assertLContainer(declarationLContainer);\n embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;\n const declarationViewLQueries = declarationLView[QUERIES];\n if (declarationViewLQueries !== null) {\n embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);\n }\n // execute creation mode of a view\n renderView(embeddedTView, embeddedLView, context);\n return embeddedLView;\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\nfunction getLViewFromLContainer(lContainer, index) {\n const adjustedIndex = CONTAINER_HEADER_OFFSET + index;\n // avoid reading past the array boundaries\n if (adjustedIndex < lContainer.length) {\n const lView = lContainer[adjustedIndex];\n ngDevMode && assertLView(lView);\n return lView;\n }\n return undefined;\n}\n/**\n * Returns whether an elements that belong to a view should be\n * inserted into the DOM. For client-only cases, DOM elements are\n * always inserted. For hydration cases, we check whether serialized\n * info is available for a view and the view is not in a \"skip hydration\"\n * block (in which case view contents was re-created, thus needing insertion).\n */\nfunction shouldAddViewToDom(tNode, dehydratedView) {\n return !dehydratedView || dehydratedView.firstChild === null ||\n hasInSkipHydrationBlockFlag(tNode);\n}\nfunction addLViewToLContainer(lContainer, lView, index, addToDOM = true) {\n const tView = lView[TVIEW];\n // Insert into the view tree so the new view can be change-detected\n insertView(tView, lView, lContainer, index);\n // Insert elements that belong to this view into the DOM tree\n if (addToDOM) {\n const beforeNode = getBeforeNodeForView(index, lContainer);\n const renderer = lView[RENDERER];\n const parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);\n if (parentRNode !== null) {\n addViewToDOM(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);\n }\n }\n // When in hydration mode, reset the pointer to the first child in\n // the dehydrated view. This indicates that the view was hydrated and\n // further attaching/detaching should work with this view as normal.\n const hydrationInfo = lView[HYDRATION];\n if (hydrationInfo !== null && hydrationInfo.firstChild !== null) {\n hydrationInfo.firstChild = null;\n }\n}\nfunction removeLViewFromLContainer(lContainer, index) {\n const lView = detachView(lContainer, index);\n if (lView !== undefined) {\n destroyLView(lView[TVIEW], lView);\n }\n return lView;\n}\n\nfunction collectNativeNodes(tView, lView, tNode, result, isProjection = false) {\n while (tNode !== null) {\n ngDevMode &&\n assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 16 /* TNodeType.Projection */ | 32 /* TNodeType.Icu */);\n const lNode = lView[tNode.index];\n if (lNode !== null) {\n result.push(unwrapRNode(lNode));\n }\n // A given lNode can represent either a native node or a LContainer (when it is a host of a\n // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes\n // from the views in this container.\n if (isLContainer(lNode)) {\n collectNativeNodesInLContainer(lNode, result);\n }\n const tNodeType = tNode.type;\n if (tNodeType & 8 /* TNodeType.ElementContainer */) {\n collectNativeNodes(tView, lView, tNode.child, result);\n }\n else if (tNodeType & 32 /* TNodeType.Icu */) {\n const nextRNode = icuContainerIterate(tNode, lView);\n let rNode;\n while (rNode = nextRNode()) {\n result.push(rNode);\n }\n }\n else if (tNodeType & 16 /* TNodeType.Projection */) {\n const nodesInSlot = getProjectionNodes(lView, tNode);\n if (Array.isArray(nodesInSlot)) {\n result.push(...nodesInSlot);\n }\n else {\n const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n ngDevMode && assertParentView(parentView);\n collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);\n }\n }\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n }\n return result;\n}\n/**\n * Collects all root nodes in all views in a given LContainer.\n */\nfunction collectNativeNodesInLContainer(lContainer, result) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const lViewInAContainer = lContainer[i];\n const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;\n if (lViewFirstChildTNode !== null) {\n collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);\n }\n }\n // When an LContainer is created, the anchor (comment) node is:\n // - (1) either reused in case of an ElementContainer (<ng-container>)\n // - (2) or a new comment node is created\n // In the first case, the anchor comment node would be added to the final\n // list by the code in the `collectNativeNodes` function\n // (see the `result.push(unwrapRNode(lNode))` line), but the second\n // case requires extra handling: the anchor node needs to be added to the\n // final list manually. See additional information in the `createAnchorNode`\n // function in the `view_container_ref.ts`.\n //\n // In the first case, the same reference would be stored in the `NATIVE`\n // and `HOST` slots in an LContainer. Otherwise, this is the second case and\n // we should add an element to the final list.\n if (lContainer[NATIVE] !== lContainer[HOST]) {\n result.push(lContainer[NATIVE]);\n }\n}\n\nlet freeConsumers = [];\n/**\n * Create a new template consumer pointing at the specified LView.\n * Sometimes, a previously created consumer may be reused, in order to save on allocations. In that\n * case, the LView will be updated.\n */\nfunction getOrBorrowReactiveLViewConsumer(lView) {\n return lView[REACTIVE_TEMPLATE_CONSUMER] ?? borrowReactiveLViewConsumer(lView);\n}\nfunction borrowReactiveLViewConsumer(lView) {\n const consumer = freeConsumers.pop() ?? Object.create(REACTIVE_LVIEW_CONSUMER_NODE);\n consumer.lView = lView;\n return consumer;\n}\nfunction maybeReturnReactiveLViewConsumer(consumer) {\n if (consumer.lView[REACTIVE_TEMPLATE_CONSUMER] === consumer) {\n // The consumer got committed.\n return;\n }\n consumer.lView = null;\n freeConsumers.push(consumer);\n}\nconst REACTIVE_LVIEW_CONSUMER_NODE = {\n ...REACTIVE_NODE$1,\n consumerIsAlwaysLive: true,\n consumerMarkedDirty: (node) => {\n markAncestorsForTraversal(node.lView);\n },\n consumerOnSignalRead() {\n this.lView[REACTIVE_TEMPLATE_CONSUMER] = this;\n },\n};\n\n/**\n * The maximum number of times the change detection traversal will rerun before throwing an error.\n */\nconst MAXIMUM_REFRESH_RERUNS = 100;\nfunction detectChangesInternal(lView, notifyErrorHandler = true, mode = 0 /* ChangeDetectionMode.Global */) {\n const environment = lView[ENVIRONMENT];\n const rendererFactory = environment.rendererFactory;\n // Check no changes mode is a dev only mode used to verify that bindings have not changed\n // since they were assigned. We do not want to invoke renderer factory functions in that mode\n // to avoid any possible side-effects.\n const checkNoChangesMode = !!ngDevMode && isInCheckNoChangesMode();\n if (!checkNoChangesMode) {\n rendererFactory.begin?.();\n }\n try {\n detectChangesInViewWhileDirty(lView, mode);\n }\n catch (error) {\n if (notifyErrorHandler) {\n handleError(lView, error);\n }\n throw error;\n }\n finally {\n if (!checkNoChangesMode) {\n rendererFactory.end?.();\n // One final flush of the effects queue to catch any effects created in `ngAfterViewInit` or\n // other post-order hooks.\n environment.inlineEffectRunner?.flush();\n }\n }\n}\nfunction detectChangesInViewWhileDirty(lView, mode) {\n detectChangesInView$1(lView, mode);\n let retries = 0;\n // If after running change detection, this view still needs to be refreshed or there are\n // descendants views that need to be refreshed due to re-dirtying during the change detection\n // run, detect changes on the view again. We run change detection in `Targeted` mode to only\n // refresh views with the `RefreshView` flag.\n while (requiresRefreshOrTraversal(lView)) {\n if (retries === MAXIMUM_REFRESH_RERUNS) {\n throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, ngDevMode &&\n 'Infinite change detection while trying to refresh views. ' +\n 'There may be components which each cause the other to require a refresh, ' +\n 'causing an infinite loop.');\n }\n retries++;\n // Even if this view is detached, we still detect changes in targeted mode because this was\n // the root of the change detection run.\n detectChangesInView$1(lView, 1 /* ChangeDetectionMode.Targeted */);\n }\n}\nfunction checkNoChangesInternal(lView, notifyErrorHandler = true) {\n setIsInCheckNoChangesMode(true);\n try {\n detectChangesInternal(lView, notifyErrorHandler);\n }\n finally {\n setIsInCheckNoChangesMode(false);\n }\n}\n/**\n * Processes a view in update mode. This includes a number of steps in a specific order:\n * - executing a template function in update mode;\n * - executing hooks;\n * - refreshing queries;\n * - setting host bindings;\n * - refreshing child (embedded and component) views.\n */\nfunction refreshView(tView, lView, templateFn, context) {\n ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');\n const flags = lView[FLAGS];\n if ((flags & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */)\n return;\n // Check no changes mode is a dev only mode used to verify that bindings have not changed\n // since they were assigned. We do not want to execute lifecycle hooks in that mode.\n const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();\n !isInCheckNoChangesPass && lView[ENVIRONMENT].inlineEffectRunner?.flush();\n // Start component reactive context\n // - We might already be in a reactive context if this is an embedded view of the host.\n // - We might be descending into a view that needs a consumer.\n enterView(lView);\n let prevConsumer = null;\n let currentConsumer = null;\n if (!isInCheckNoChangesPass && viewShouldHaveReactiveConsumer(tView)) {\n currentConsumer = getOrBorrowReactiveLViewConsumer(lView);\n prevConsumer = consumerBeforeComputation$1(currentConsumer);\n }\n try {\n resetPreOrderHookFlags(lView);\n setBindingIndex(tView.bindingStartIndex);\n if (templateFn !== null) {\n executeTemplate(tView, lView, templateFn, 2 /* RenderFlags.Update */, context);\n }\n const hooksInitPhaseCompleted = (flags & 3 /* LViewFlags.InitPhaseStateMask */) === 3 /* InitPhaseState.InitPhaseCompleted */;\n // execute pre-order hooks (OnInit, OnChanges, DoCheck)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const preOrderCheckHooks = tView.preOrderCheckHooks;\n if (preOrderCheckHooks !== null) {\n executeCheckHooks(lView, preOrderCheckHooks, null);\n }\n }\n else {\n const preOrderHooks = tView.preOrderHooks;\n if (preOrderHooks !== null) {\n executeInitAndCheckHooks(lView, preOrderHooks, 0 /* InitPhaseState.OnInitHooksToBeRun */, null);\n }\n incrementInitPhaseFlags(lView, 0 /* InitPhaseState.OnInitHooksToBeRun */);\n }\n }\n // First mark transplanted views that are declared in this lView as needing a refresh at their\n // insertion points. This is needed to avoid the situation where the template is defined in this\n // `LView` but its declaration appears after the insertion component.\n markTransplantedViewsForRefresh(lView);\n detectChangesInEmbeddedViews(lView, 0 /* ChangeDetectionMode.Global */);\n // Content query results must be refreshed before content hooks are called.\n if (tView.contentQueries !== null) {\n refreshContentQueries(tView, lView);\n }\n // execute content hooks (AfterContentInit, AfterContentChecked)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const contentCheckHooks = tView.contentCheckHooks;\n if (contentCheckHooks !== null) {\n executeCheckHooks(lView, contentCheckHooks);\n }\n }\n else {\n const contentHooks = tView.contentHooks;\n if (contentHooks !== null) {\n executeInitAndCheckHooks(lView, contentHooks, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);\n }\n incrementInitPhaseFlags(lView, 1 /* InitPhaseState.AfterContentInitHooksToBeRun */);\n }\n }\n processHostBindingOpCodes(tView, lView);\n // Refresh child component views.\n const components = tView.components;\n if (components !== null) {\n detectChangesInChildComponents(lView, components, 0 /* ChangeDetectionMode.Global */);\n }\n // View queries must execute after refreshing child components because a template in this view\n // could be inserted in a child component. If the view query executes before child component\n // refresh, the template might not yet be inserted.\n const viewQuery = tView.viewQuery;\n if (viewQuery !== null) {\n executeViewQueryFn(2 /* RenderFlags.Update */, viewQuery, context);\n }\n // execute view hooks (AfterViewInit, AfterViewChecked)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const viewCheckHooks = tView.viewCheckHooks;\n if (viewCheckHooks !== null) {\n executeCheckHooks(lView, viewCheckHooks);\n }\n }\n else {\n const viewHooks = tView.viewHooks;\n if (viewHooks !== null) {\n executeInitAndCheckHooks(lView, viewHooks, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);\n }\n incrementInitPhaseFlags(lView, 2 /* InitPhaseState.AfterViewInitHooksToBeRun */);\n }\n }\n if (tView.firstUpdatePass === true) {\n // We need to make sure that we only flip the flag on successful `refreshView` only\n // Don't do this in `finally` block.\n // If we did this in `finally` block then an exception could block the execution of styling\n // instructions which in turn would be unable to insert themselves into the styling linked\n // list. The result of this would be that if the exception would not be throw on subsequent CD\n // the styling would be unable to process it data and reflect to the DOM.\n tView.firstUpdatePass = false;\n }\n // Schedule any effects that are waiting on the update pass of this view.\n if (lView[EFFECTS_TO_SCHEDULE]) {\n for (const notifyEffect of lView[EFFECTS_TO_SCHEDULE]) {\n notifyEffect();\n }\n // Once they've been run, we can drop the array.\n lView[EFFECTS_TO_SCHEDULE] = null;\n }\n // Do not reset the dirty state when running in check no changes mode. We don't want components\n // to behave differently depending on whether check no changes is enabled or not. For example:\n // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to\n // refresh a `NgClass` binding should work. If we would reset the dirty state in the check\n // no changes cycle, the component would be not be dirty for the next update pass. This would\n // be different in production mode where the component dirty state is not reset.\n if (!isInCheckNoChangesPass) {\n lView[FLAGS] &= ~(64 /* LViewFlags.Dirty */ | 8 /* LViewFlags.FirstLViewPass */);\n }\n }\n catch (e) {\n // If refreshing a view causes an error, we need to remark the ancestors as needing traversal\n // because the error might have caused a situation where views below the current location are\n // dirty but will be unreachable because the \"has dirty children\" flag in the ancestors has been\n // cleared during change detection and we failed to run to completion.\n markAncestorsForTraversal(lView);\n throw e;\n }\n finally {\n if (currentConsumer !== null) {\n consumerAfterComputation$1(currentConsumer, prevConsumer);\n maybeReturnReactiveLViewConsumer(currentConsumer);\n }\n leaveView();\n }\n}\n/**\n * Indicates if the view should get its own reactive consumer node.\n *\n * In the current design, all embedded views share a consumer with the component view. This allows\n * us to refresh at the component level rather than at a per-view level. In addition, root views get\n * their own reactive node because root component will have a host view that executes the\n * component's host bindings. This needs to be tracked in a consumer as well.\n *\n * To get a more granular change detection than per-component, all we would just need to update the\n * condition here so that a given view gets a reactive consumer which can become dirty independently\n * from its parent component. For example embedded views for signal components could be created with\n * a new type \"SignalEmbeddedView\" and the condition here wouldn't even need updating in order to\n * get granular per-view change detection for signal components.\n */\nfunction viewShouldHaveReactiveConsumer(tView) {\n return tView.type !== 2 /* TViewType.Embedded */;\n}\n/**\n * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes\n * them by executing an associated template function.\n */\nfunction detectChangesInEmbeddedViews(lView, mode) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const embeddedLView = lContainer[i];\n detectChangesInViewIfAttached(embeddedLView, mode);\n }\n }\n}\n/**\n * Mark transplanted views as needing to be refreshed at their insertion points.\n *\n * @param lView The `LView` that may have transplanted views.\n */\nfunction markTransplantedViewsForRefresh(lView) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n if (!(lContainer[FLAGS] & LContainerFlags.HasTransplantedViews))\n continue;\n const movedViews = lContainer[MOVED_VIEWS];\n ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');\n for (let i = 0; i < movedViews.length; i++) {\n const movedLView = movedViews[i];\n const insertionLContainer = movedLView[PARENT];\n ngDevMode && assertLContainer(insertionLContainer);\n markViewForRefresh(movedLView);\n }\n }\n}\n/**\n * Detects changes in a component by entering the component view and processing its bindings,\n * queries, etc. if it is CheckAlways, OnPush and Dirty, etc.\n *\n * @param componentHostIdx Element index in LView[] (adjusted for HEADER_OFFSET)\n */\nfunction detectChangesInComponent(hostLView, componentHostIdx, mode) {\n ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');\n const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n detectChangesInViewIfAttached(componentView, mode);\n}\n/**\n * Visits a view as part of change detection traversal.\n *\n * If the view is detached, no additional traversal happens.\n */\nfunction detectChangesInViewIfAttached(lView, mode) {\n if (!viewAttachedToChangeDetector(lView)) {\n return;\n }\n detectChangesInView$1(lView, mode);\n}\n/**\n * Visits a view as part of change detection traversal.\n *\n * The view is refreshed if:\n * - If the view is CheckAlways or Dirty and ChangeDetectionMode is `Global`\n * - If the view has the `RefreshView` flag\n *\n * The view is not refreshed, but descendants are traversed in `ChangeDetectionMode.Targeted` if the\n * view HasChildViewsToRefresh flag is set.\n */\nfunction detectChangesInView$1(lView, mode) {\n const isInCheckNoChangesPass = ngDevMode && isInCheckNoChangesMode();\n const tView = lView[TVIEW];\n const flags = lView[FLAGS];\n const consumer = lView[REACTIVE_TEMPLATE_CONSUMER];\n // Refresh CheckAlways views in Global mode.\n let shouldRefreshView = !!(mode === 0 /* ChangeDetectionMode.Global */ && flags & 16 /* LViewFlags.CheckAlways */);\n // Refresh Dirty views in Global mode, as long as we're not in checkNoChanges.\n // CheckNoChanges never worked with `OnPush` components because the `Dirty` flag was\n // cleared before checkNoChanges ran. Because there is now a loop for to check for\n // backwards views, it gives an opportunity for `OnPush` components to be marked `Dirty`\n // before the CheckNoChanges pass. We don't want existing errors that are hidden by the\n // current CheckNoChanges bug to surface when making unrelated changes.\n shouldRefreshView ||= !!(flags & 64 /* LViewFlags.Dirty */ && mode === 0 /* ChangeDetectionMode.Global */ && !isInCheckNoChangesPass);\n // Always refresh views marked for refresh, regardless of mode.\n shouldRefreshView ||= !!(flags & 1024 /* LViewFlags.RefreshView */);\n // Refresh views when they have a dirty reactive consumer, regardless of mode.\n shouldRefreshView ||= !!(consumer?.dirty && consumerPollProducersForChange$1(consumer));\n // Mark the Flags and `ReactiveNode` as not dirty before refreshing the component, so that they\n // can be re-dirtied during the refresh process.\n if (consumer) {\n consumer.dirty = false;\n }\n lView[FLAGS] &= ~(8192 /* LViewFlags.HasChildViewsToRefresh */ | 1024 /* LViewFlags.RefreshView */);\n if (shouldRefreshView) {\n refreshView(tView, lView, tView.template, lView[CONTEXT]);\n }\n else if (flags & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n detectChangesInEmbeddedViews(lView, 1 /* ChangeDetectionMode.Targeted */);\n const components = tView.components;\n if (components !== null) {\n detectChangesInChildComponents(lView, components, 1 /* ChangeDetectionMode.Targeted */);\n }\n }\n}\n/** Refreshes child components in the current view (update mode). */\nfunction detectChangesInChildComponents(hostLView, components, mode) {\n for (let i = 0; i < components.length; i++) {\n detectChangesInComponent(hostLView, components[i], mode);\n }\n}\n\n/**\n * Marks current view and all ancestors dirty.\n *\n * Returns the root view because it is found as a byproduct of marking the view tree\n * dirty, and can be used by methods that consume markViewDirty() to easily schedule\n * change detection. Otherwise, such methods would need to traverse up the view tree\n * an additional time to get the root view and schedule a tick on it.\n *\n * @param lView The starting LView to mark dirty\n * @returns the root LView\n */\nfunction markViewDirty(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n while (lView) {\n lView[FLAGS] |= 64 /* LViewFlags.Dirty */;\n const parent = getLViewParent(lView);\n // Stop traversing up as soon as you find a root view that wasn't attached to any container\n if (isRootView(lView) && !parent) {\n return lView;\n }\n // continue otherwise\n lView = parent;\n }\n return null;\n}\n\nclass ViewRef$1 {\n get rootNodes() {\n const lView = this._lView;\n const tView = lView[TVIEW];\n return collectNativeNodes(tView, lView, tView.firstChild, []);\n }\n constructor(\n /**\n * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.\n *\n * When ViewRef is created for a dynamic component, this also represents the `LView` for the\n * component.\n *\n * For a \"regular\" ViewRef created for an embedded view, this is the `LView` for the embedded\n * view.\n *\n * @internal\n */\n _lView, \n /**\n * This represents the `LView` associated with the point where `ChangeDetectorRef` was\n * requested.\n *\n * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.\n */\n _cdRefInjectingView, notifyErrorHandler = true) {\n this._lView = _lView;\n this._cdRefInjectingView = _cdRefInjectingView;\n this.notifyErrorHandler = notifyErrorHandler;\n this._appRef = null;\n this._attachedToViewContainer = false;\n }\n get context() {\n return this._lView[CONTEXT];\n }\n /**\n * @deprecated Replacing the full context object is not supported. Modify the context\n * directly, or consider using a `Proxy` if you need to replace the full object.\n * // TODO(devversion): Remove this.\n */\n set context(value) {\n if (ngDevMode) {\n // Note: We have a warning message here because the `@deprecated` JSDoc will not be picked\n // up for assignments on the setter. We want to let users know about the deprecated usage.\n console.warn('Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated.');\n }\n this._lView[CONTEXT] = value;\n }\n get destroyed() {\n return (this._lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n }\n destroy() {\n if (this._appRef) {\n this._appRef.detachView(this);\n }\n else if (this._attachedToViewContainer) {\n const parent = this._lView[PARENT];\n if (isLContainer(parent)) {\n const viewRefs = parent[VIEW_REFS];\n const index = viewRefs ? viewRefs.indexOf(this) : -1;\n if (index > -1) {\n ngDevMode &&\n assertEqual(index, parent.indexOf(this._lView) - CONTAINER_HEADER_OFFSET, 'An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array.');\n detachView(parent, index);\n removeFromArray(viewRefs, index);\n }\n }\n this._attachedToViewContainer = false;\n }\n destroyLView(this._lView[TVIEW], this._lView);\n }\n onDestroy(callback) {\n storeLViewOnDestroy(this._lView, callback);\n }\n /**\n * Marks a view and all of its ancestors dirty.\n *\n * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush} component is\n * checked when it needs to be re-rendered but the two normal triggers haven't marked it\n * dirty (i.e. inputs haven't changed and events haven't fired in the view).\n *\n * <!-- TODO: Add a link to a chapter on OnPush components -->\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * @Component({\n * selector: 'app-root',\n * template: `Number of ticks: {{numberOfTicks}}`\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * })\n * class AppComponent {\n * numberOfTicks = 0;\n *\n * constructor(private ref: ChangeDetectorRef) {\n * setInterval(() => {\n * this.numberOfTicks++;\n * // the following is required, otherwise the view will not be updated\n * this.ref.markForCheck();\n * }, 1000);\n * }\n * }\n * ```\n */\n markForCheck() {\n markViewDirty(this._cdRefInjectingView || this._lView);\n }\n /**\n * Detaches the view from the change detection tree.\n *\n * Detached views will not be checked during change detection runs until they are\n * re-attached, even if they are dirty. `detach` can be used in combination with\n * {@link ChangeDetectorRef#detectChanges} to implement local change\n * detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds. We can do that by detaching\n * the component's change detector and doing a local check every five seconds.\n *\n * ```typescript\n * class DataProvider {\n * // in a real application the returned data will be different every time\n * get data() {\n * return [1,2,3,4,5];\n * }\n * }\n *\n * @Component({\n * selector: 'giant-list',\n * template: `\n * <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</li>\n * `,\n * })\n * class GiantList {\n * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {\n * ref.detach();\n * setInterval(() => {\n * this.ref.detectChanges();\n * }, 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * <giant-list><giant-list>\n * `,\n * })\n * class App {\n * }\n * ```\n */\n detach() {\n this._lView[FLAGS] &= ~128 /* LViewFlags.Attached */;\n }\n /**\n * Re-attaches a view to the change detection tree.\n *\n * This can be used to re-attach views that were previously detached from the tree\n * using {@link ChangeDetectorRef#detach}. Views are attached to the tree by default.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example creates a component displaying `live` data. The component will detach\n * its change detector from the main change detector tree when the component's live property\n * is set to false.\n *\n * ```typescript\n * class DataProvider {\n * data = 1;\n *\n * constructor() {\n * setInterval(() => {\n * this.data = this.data * 2;\n * }, 500);\n * }\n * }\n *\n * @Component({\n * selector: 'live-data',\n * inputs: ['live'],\n * template: 'Data: {{dataProvider.data}}'\n * })\n * class LiveData {\n * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}\n *\n * set live(value) {\n * if (value) {\n * this.ref.reattach();\n * } else {\n * this.ref.detach();\n * }\n * }\n * }\n *\n * @Component({\n * selector: 'app-root',\n * providers: [DataProvider],\n * template: `\n * Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\n * <live-data [live]=\"live\"><live-data>\n * `,\n * })\n * class AppComponent {\n * live = true;\n * }\n * ```\n */\n reattach() {\n updateAncestorTraversalFlagsOnAttach(this._lView);\n this._lView[FLAGS] |= 128 /* LViewFlags.Attached */;\n }\n /**\n * Checks the view and its children.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detach} to implement\n * local change detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine, the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds.\n *\n * We can do that by detaching the component's change detector and doing a local change detection\n * check every five seconds.\n *\n * See {@link ChangeDetectorRef#detach} for more information.\n */\n detectChanges() {\n // Add `RefreshView` flag to ensure this view is refreshed if not already dirty.\n // `RefreshView` flag is used intentionally over `Dirty` because it gets cleared before\n // executing any of the actual refresh code while the `Dirty` flag doesn't get cleared\n // until the end of the refresh. Using `RefreshView` prevents creating a potential difference\n // in the state of the LViewFlags during template execution.\n this._lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n detectChangesInternal(this._lView, this.notifyErrorHandler);\n }\n /**\n * Checks the change detector and its children, and throws if any changes are detected.\n *\n * This is used in development mode to verify that running change detection doesn't\n * introduce other changes.\n */\n checkNoChanges() {\n if (ngDevMode) {\n checkNoChangesInternal(this._lView, this.notifyErrorHandler);\n }\n }\n attachToViewContainerRef() {\n if (this._appRef) {\n throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');\n }\n this._attachedToViewContainer = true;\n }\n detachFromAppRef() {\n this._appRef = null;\n detachViewFromDOM(this._lView[TVIEW], this._lView);\n }\n attachToAppRef(appRef) {\n if (this._attachedToViewContainer) {\n throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');\n }\n this._appRef = appRef;\n updateAncestorTraversalFlagsOnAttach(this._lView);\n }\n}\n\n/**\n * Represents an embedded template that can be used to instantiate embedded views.\n * To instantiate embedded views based on a template, use the `ViewContainerRef`\n * method `createEmbeddedView()`.\n *\n * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`\n * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view\n * is injected into the constructor of the directive,\n * using the `TemplateRef` token.\n *\n * You can also use a `Query` to find a `TemplateRef` associated with\n * a component or a directive.\n *\n * @see {@link ViewContainerRef}\n * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)\n *\n * @publicApi\n */\nclass TemplateRef {\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = injectTemplateRef; }\n}\nconst ViewEngineTemplateRef = TemplateRef;\n// TODO(alxhub): combine interface and implementation. Currently this is challenging since something\n// in g3 depends on them being separate.\nconst R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {\n constructor(_declarationLView, _declarationTContainer, elementRef) {\n super();\n this._declarationLView = _declarationLView;\n this._declarationTContainer = _declarationTContainer;\n this.elementRef = elementRef;\n }\n /**\n * Returns an `ssrId` associated with a TView, which was used to\n * create this instance of the `TemplateRef`.\n *\n * @internal\n */\n get ssrId() {\n return this._declarationTContainer.tView?.ssrId || null;\n }\n createEmbeddedView(context, injector) {\n return this.createEmbeddedViewImpl(context, injector);\n }\n /**\n * @internal\n */\n createEmbeddedViewImpl(context, injector, dehydratedView) {\n const embeddedLView = createAndRenderEmbeddedLView(this._declarationLView, this._declarationTContainer, context, { embeddedViewInjector: injector, dehydratedView });\n return new ViewRef$1(embeddedLView);\n }\n};\n/**\n * Creates a TemplateRef given a node.\n *\n * @returns The TemplateRef instance to use\n */\nfunction injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates a TemplateRef and stores it on the injector.\n *\n * @param hostTNode The node on which a TemplateRef is requested\n * @param hostLView The `LView` to which the node belongs\n * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type\n */\nfunction createTemplateRef(hostTNode, hostLView) {\n if (hostTNode.type & 4 /* TNodeType.Container */) {\n ngDevMode && assertDefined(hostTNode.tView, 'TView must be allocated');\n return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));\n }\n return null;\n}\n\nconst AT_THIS_LOCATION = '<-- AT THIS LOCATION';\n/**\n * Retrieves a user friendly string for a given TNodeType for use in\n * friendly error messages\n *\n * @param tNodeType\n * @returns\n */\nfunction getFriendlyStringFromTNodeType(tNodeType) {\n switch (tNodeType) {\n case 4 /* TNodeType.Container */:\n return 'view container';\n case 2 /* TNodeType.Element */:\n return 'element';\n case 8 /* TNodeType.ElementContainer */:\n return 'ng-container';\n case 32 /* TNodeType.Icu */:\n return 'icu';\n case 64 /* TNodeType.Placeholder */:\n return 'i18n';\n case 16 /* TNodeType.Projection */:\n return 'projection';\n case 1 /* TNodeType.Text */:\n return 'text';\n default:\n // This should not happen as we cover all possible TNode types above.\n return '<unknown>';\n }\n}\n/**\n * Validates that provided nodes match during the hydration process.\n */\nfunction validateMatchingNode(node, nodeType, tagName, lView, tNode, isViewContainerAnchor = false) {\n if (!node ||\n (node.nodeType !== nodeType ||\n (node.nodeType === Node.ELEMENT_NODE &&\n node.tagName.toLowerCase() !== tagName?.toLowerCase()))) {\n const expectedNode = shortRNodeDescription(nodeType, tagName, null);\n let header = `During hydration Angular expected ${expectedNode} but `;\n const hostComponentDef = getDeclarationComponentDef(lView);\n const componentClassName = hostComponentDef?.type?.name;\n const expectedDom = describeExpectedDom(lView, tNode, isViewContainerAnchor);\n const expected = `Angular expected this DOM:\\n\\n${expectedDom}\\n\\n`;\n let actual = '';\n const componentHostElement = unwrapRNode(lView[HOST]);\n if (!node) {\n // No node found during hydration.\n header += `the node was not found.\\n\\n`;\n // Since the node is missing, we use the closest node to attach the error to\n markRNodeAsHavingHydrationMismatch(componentHostElement, expectedDom);\n }\n else {\n const actualNode = shortRNodeDescription(node.nodeType, node.tagName ?? null, node.textContent ?? null);\n header += `found ${actualNode}.\\n\\n`;\n const actualDom = describeDomFromNode(node);\n actual = `Actual DOM is:\\n\\n${actualDom}\\n\\n`;\n // DevTools only report hydration issues on the component level, so we attach extra debug\n // info to a component host element to make it available to DevTools.\n markRNodeAsHavingHydrationMismatch(componentHostElement, expectedDom, actualDom);\n }\n const footer = getHydrationErrorFooter(componentClassName);\n const message = header + expected + actual + getHydrationAttributeNote() + footer;\n throw new RuntimeError(-500 /* RuntimeErrorCode.HYDRATION_NODE_MISMATCH */, message);\n }\n}\n/**\n * Validates that a given node has sibling nodes\n */\nfunction validateSiblingNodeExists(node) {\n validateNodeExists(node);\n if (!node.nextSibling) {\n const header = 'During hydration Angular expected more sibling nodes to be present.\\n\\n';\n const actual = `Actual DOM is:\\n\\n${describeDomFromNode(node)}\\n\\n`;\n const footer = getHydrationErrorFooter();\n const message = header + actual + footer;\n markRNodeAsHavingHydrationMismatch(node, '', actual);\n throw new RuntimeError(-501 /* RuntimeErrorCode.HYDRATION_MISSING_SIBLINGS */, message);\n }\n}\n/**\n * Validates that a node exists or throws\n */\nfunction validateNodeExists(node, lView = null, tNode = null) {\n if (!node) {\n const header = 'During hydration, Angular expected an element to be present at this location.\\n\\n';\n let expected = '';\n let footer = '';\n if (lView !== null && tNode !== null) {\n expected = describeExpectedDom(lView, tNode, false);\n footer = getHydrationErrorFooter();\n // Since the node is missing, we use the closest node to attach the error to\n markRNodeAsHavingHydrationMismatch(unwrapRNode(lView[HOST]), expected, '');\n }\n throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, `${header}${expected}\\n\\n${footer}`);\n }\n}\n/**\n * Builds the hydration error message when a node is not found\n *\n * @param lView the LView where the node exists\n * @param tNode the TNode\n */\nfunction nodeNotFoundError(lView, tNode) {\n const header = 'During serialization, Angular was unable to find an element in the DOM:\\n\\n';\n const expected = `${describeExpectedDom(lView, tNode, false)}\\n\\n`;\n const footer = getHydrationErrorFooter();\n throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + expected + footer);\n}\n/**\n * Builds a hydration error message when a node is not found at a path location\n *\n * @param host the Host Node\n * @param path the path to the node\n */\nfunction nodeNotFoundAtPathError(host, path) {\n const header = `During hydration Angular was unable to locate a node ` +\n `using the \"${path}\" path, starting from the ${describeRNode(host)} node.\\n\\n`;\n const footer = getHydrationErrorFooter();\n markRNodeAsHavingHydrationMismatch(host);\n throw new RuntimeError(-502 /* RuntimeErrorCode.HYDRATION_MISSING_NODE */, header + footer);\n}\n/**\n * Builds the hydration error message in the case that dom nodes are created outside of\n * the Angular context and are being used as projected nodes\n *\n * @param lView the LView\n * @param tNode the TNode\n * @returns an error\n */\nfunction unsupportedProjectionOfDomNodes(rNode) {\n const header = 'During serialization, Angular detected DOM nodes ' +\n 'that were created outside of Angular context and provided as projectable nodes ' +\n '(likely via `ViewContainerRef.createComponent` or `createComponent` APIs). ' +\n 'Hydration is not supported for such cases, consider refactoring the code to avoid ' +\n 'this pattern or using `ngSkipHydration` on the host element of the component.\\n\\n';\n const actual = `${describeDomFromNode(rNode)}\\n\\n`;\n const message = header + actual + getHydrationAttributeNote();\n return new RuntimeError(-503 /* RuntimeErrorCode.UNSUPPORTED_PROJECTION_DOM_NODES */, message);\n}\n/**\n * Builds the hydration error message in the case that ngSkipHydration was used on a\n * node that is not a component host element or host binding\n *\n * @param rNode the HTML Element\n * @returns an error\n */\nfunction invalidSkipHydrationHost(rNode) {\n const header = 'The `ngSkipHydration` flag is applied on a node ' +\n 'that doesn\\'t act as a component host. Hydration can be ' +\n 'skipped only on per-component basis.\\n\\n';\n const actual = `${describeDomFromNode(rNode)}\\n\\n`;\n const footer = 'Please move the `ngSkipHydration` attribute to the component host element.\\n\\n';\n const message = header + actual + footer;\n return new RuntimeError(-504 /* RuntimeErrorCode.INVALID_SKIP_HYDRATION_HOST */, message);\n}\n// Stringification methods\n/**\n * Stringifies a given TNode's attributes\n *\n * @param tNode a provided TNode\n * @returns string\n */\nfunction stringifyTNodeAttrs(tNode) {\n const results = [];\n if (tNode.attrs) {\n for (let i = 0; i < tNode.attrs.length;) {\n const attrName = tNode.attrs[i++];\n // Once we reach the first flag, we know that the list of\n // attributes is over.\n if (typeof attrName == 'number') {\n break;\n }\n const attrValue = tNode.attrs[i++];\n results.push(`${attrName}=\"${shorten(attrValue)}\"`);\n }\n }\n return results.join(' ');\n}\n/**\n * The list of internal attributes that should be filtered out while\n * producing an error message.\n */\nconst internalAttrs = new Set(['ngh', 'ng-version', 'ng-server-context']);\n/**\n * Stringifies an HTML Element's attributes\n *\n * @param rNode an HTML Element\n * @returns string\n */\nfunction stringifyRNodeAttrs(rNode) {\n const results = [];\n for (let i = 0; i < rNode.attributes.length; i++) {\n const attr = rNode.attributes[i];\n if (internalAttrs.has(attr.name))\n continue;\n results.push(`${attr.name}=\"${shorten(attr.value)}\"`);\n }\n return results.join(' ');\n}\n// Methods for Describing the DOM\n/**\n * Converts a tNode to a helpful readable string value for use in error messages\n *\n * @param tNode a given TNode\n * @param innerContent the content of the node\n * @returns string\n */\nfunction describeTNode(tNode, innerContent = '…') {\n switch (tNode.type) {\n case 1 /* TNodeType.Text */:\n const content = tNode.value ? `(${tNode.value})` : '';\n return `#text${content}`;\n case 2 /* TNodeType.Element */:\n const attrs = stringifyTNodeAttrs(tNode);\n const tag = tNode.value.toLowerCase();\n return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;\n case 8 /* TNodeType.ElementContainer */:\n return '<!-- ng-container -->';\n case 4 /* TNodeType.Container */:\n return '<!-- container -->';\n default:\n const typeAsString = getFriendlyStringFromTNodeType(tNode.type);\n return `#node(${typeAsString})`;\n }\n}\n/**\n * Converts an RNode to a helpful readable string value for use in error messages\n *\n * @param rNode a given RNode\n * @param innerContent the content of the node\n * @returns string\n */\nfunction describeRNode(rNode, innerContent = '…') {\n const node = rNode;\n switch (node.nodeType) {\n case Node.ELEMENT_NODE:\n const tag = node.tagName.toLowerCase();\n const attrs = stringifyRNodeAttrs(node);\n return `<${tag}${attrs ? ' ' + attrs : ''}>${innerContent}</${tag}>`;\n case Node.TEXT_NODE:\n const content = node.textContent ? shorten(node.textContent) : '';\n return `#text${content ? `(${content})` : ''}`;\n case Node.COMMENT_NODE:\n return `<!-- ${shorten(node.textContent ?? '')} -->`;\n default:\n return `#node(${node.nodeType})`;\n }\n}\n/**\n * Builds the string containing the expected DOM present given the LView and TNode\n * values for a readable error message\n *\n * @param lView the lView containing the DOM\n * @param tNode the tNode\n * @param isViewContainerAnchor boolean\n * @returns string\n */\nfunction describeExpectedDom(lView, tNode, isViewContainerAnchor) {\n const spacer = ' ';\n let content = '';\n if (tNode.prev) {\n content += spacer + '…\\n';\n content += spacer + describeTNode(tNode.prev) + '\\n';\n }\n else if (tNode.type && tNode.type & 12 /* TNodeType.AnyContainer */) {\n content += spacer + '…\\n';\n }\n if (isViewContainerAnchor) {\n content += spacer + describeTNode(tNode) + '\\n';\n content += spacer + `<!-- container --> ${AT_THIS_LOCATION}\\n`;\n }\n else {\n content += spacer + describeTNode(tNode) + ` ${AT_THIS_LOCATION}\\n`;\n }\n content += spacer + '…\\n';\n const parentRNode = tNode.type ? getParentRElement(lView[TVIEW], tNode, lView) : null;\n if (parentRNode) {\n content = describeRNode(parentRNode, '\\n' + content);\n }\n return content;\n}\n/**\n * Builds the string containing the DOM present around a given RNode for a\n * readable error message\n *\n * @param node the RNode\n * @returns string\n */\nfunction describeDomFromNode(node) {\n const spacer = ' ';\n let content = '';\n const currentNode = node;\n if (currentNode.previousSibling) {\n content += spacer + '…\\n';\n content += spacer + describeRNode(currentNode.previousSibling) + '\\n';\n }\n content += spacer + describeRNode(currentNode) + ` ${AT_THIS_LOCATION}\\n`;\n if (node.nextSibling) {\n content += spacer + '…\\n';\n }\n if (node.parentNode) {\n content = describeRNode(currentNode.parentNode, '\\n' + content);\n }\n return content;\n}\n/**\n * Shortens the description of a given RNode by its type for readability\n *\n * @param nodeType the type of node\n * @param tagName the node tag name\n * @param textContent the text content in the node\n * @returns string\n */\nfunction shortRNodeDescription(nodeType, tagName, textContent) {\n switch (nodeType) {\n case Node.ELEMENT_NODE:\n return `<${tagName.toLowerCase()}>`;\n case Node.TEXT_NODE:\n const content = textContent ? ` (with the \"${shorten(textContent)}\" content)` : '';\n return `a text node${content}`;\n case Node.COMMENT_NODE:\n return 'a comment node';\n default:\n return `#node(nodeType=${nodeType})`;\n }\n}\n/**\n * Builds the footer hydration error message\n *\n * @param componentClassName the name of the component class\n * @returns string\n */\nfunction getHydrationErrorFooter(componentClassName) {\n const componentInfo = componentClassName ? `the \"${componentClassName}\"` : 'corresponding';\n return `To fix this problem:\\n` +\n ` * check ${componentInfo} component for hydration-related issues\\n` +\n ` * check to see if your template has valid HTML structure\\n` +\n ` * or skip hydration by adding the \\`ngSkipHydration\\` attribute ` +\n `to its host node in a template\\n\\n`;\n}\n/**\n * An attribute related note for hydration errors\n */\nfunction getHydrationAttributeNote() {\n return 'Note: attributes are only displayed to better represent the DOM' +\n ' but have no effect on hydration mismatches.\\n\\n';\n}\n// Node string utility functions\n/**\n * Strips all newlines out of a given string\n *\n * @param input a string to be cleared of new line characters\n * @returns\n */\nfunction stripNewlines(input) {\n return input.replace(/\\s+/gm, '');\n}\n/**\n * Reduces a string down to a maximum length of characters with ellipsis for readability\n *\n * @param input a string input\n * @param maxLength a maximum length in characters\n * @returns string\n */\nfunction shorten(input, maxLength = 50) {\n if (!input) {\n return '';\n }\n input = stripNewlines(input);\n return input.length > maxLength ? `${input.substring(0, maxLength - 1)}…` : input;\n}\n\n/**\n * Removes all dehydrated views from a given LContainer:\n * both in internal data structure, as well as removing\n * corresponding DOM nodes that belong to that dehydrated view.\n */\nfunction removeDehydratedViews(lContainer) {\n const views = lContainer[DEHYDRATED_VIEWS] ?? [];\n const parentLView = lContainer[PARENT];\n const renderer = parentLView[RENDERER];\n for (const view of views) {\n removeDehydratedView(view, renderer);\n ngDevMode && ngDevMode.dehydratedViewsRemoved++;\n }\n // Reset the value to an empty array to indicate that no\n // further processing of dehydrated views is needed for\n // this view container (i.e. do not trigger the lookup process\n // once again in case a `ViewContainerRef` is created later).\n lContainer[DEHYDRATED_VIEWS] = EMPTY_ARRAY;\n}\n/**\n * Helper function to remove all nodes from a dehydrated view.\n */\nfunction removeDehydratedView(dehydratedView, renderer) {\n let nodesRemoved = 0;\n let currentRNode = dehydratedView.firstChild;\n if (currentRNode) {\n const numNodes = dehydratedView.data[NUM_ROOT_NODES];\n while (nodesRemoved < numNodes) {\n ngDevMode && validateSiblingNodeExists(currentRNode);\n const nextSibling = currentRNode.nextSibling;\n nativeRemoveNode(renderer, currentRNode, false);\n currentRNode = nextSibling;\n nodesRemoved++;\n }\n }\n}\n/**\n * Walks over all views within this LContainer invokes dehydrated views\n * cleanup function for each one.\n */\nfunction cleanupLContainer(lContainer) {\n removeDehydratedViews(lContainer);\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n cleanupLView(lContainer[i]);\n }\n}\n/**\n * Removes any remaining dehydrated i18n nodes from a given LView,\n * both in internal data structure, as well as removing the\n * corresponding DOM nodes.\n */\nfunction cleanupDehydratedI18nNodes(lView) {\n const i18nNodes = lView[HYDRATION]?.i18nNodes;\n if (i18nNodes) {\n const renderer = lView[RENDERER];\n for (const node of i18nNodes.values()) {\n nativeRemoveNode(renderer, node, false);\n }\n lView[HYDRATION].i18nNodes = undefined;\n }\n}\n/**\n * Walks over `LContainer`s and components registered within\n * this LView and invokes dehydrated views cleanup function for each one.\n */\nfunction cleanupLView(lView) {\n cleanupDehydratedI18nNodes(lView);\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (isLContainer(lView[i])) {\n const lContainer = lView[i];\n cleanupLContainer(lContainer);\n }\n else if (isLView(lView[i])) {\n // This is a component, enter the `cleanupLView` recursively.\n cleanupLView(lView[i]);\n }\n }\n}\n/**\n * Walks over all views registered within the ApplicationRef and removes\n * all dehydrated views from all `LContainer`s along the way.\n */\nfunction cleanupDehydratedViews(appRef) {\n const viewRefs = appRef._views;\n for (const viewRef of viewRefs) {\n const lNode = getLNodeForHydration(viewRef);\n // An `lView` might be `null` if a `ViewRef` represents\n // an embedded view (not a component view).\n if (lNode !== null && lNode[HOST] !== null) {\n if (isLView(lNode)) {\n cleanupLView(lNode);\n }\n else {\n // Cleanup in the root component view\n const componentLView = lNode[HOST];\n cleanupLView(componentLView);\n // Cleanup in all views within this view container\n cleanupLContainer(lNode);\n }\n ngDevMode && ngDevMode.dehydratedViewsCleanupRuns++;\n }\n }\n}\n\n/**\n * Regexp that extracts a reference node information from the compressed node location.\n * The reference node is represented as either:\n * - a number which points to an LView slot\n * - the `b` char which indicates that the lookup should start from the `document.body`\n * - the `h` char to start lookup from the component host node (`lView[HOST]`)\n */\nconst REF_EXTRACTOR_REGEXP = new RegExp(`^(\\\\d+)*(${REFERENCE_NODE_BODY}|${REFERENCE_NODE_HOST})*(.*)`);\n/**\n * Helper function that takes a reference node location and a set of navigation steps\n * (from the reference node) to a target node and outputs a string that represents\n * a location.\n *\n * For example, given: referenceNode = 'b' (body) and path = ['firstChild', 'firstChild',\n * 'nextSibling'], the function returns: `bf2n`.\n */\nfunction compressNodeLocation(referenceNode, path) {\n const result = [referenceNode];\n for (const segment of path) {\n const lastIdx = result.length - 1;\n if (lastIdx > 0 && result[lastIdx - 1] === segment) {\n // An empty string in a count slot represents 1 occurrence of an instruction.\n const value = (result[lastIdx] || 1);\n result[lastIdx] = value + 1;\n }\n else {\n // Adding a new segment to the path.\n // Using an empty string in a counter field to avoid encoding `1`s\n // into the path, since they are implicit (e.g. `f1n1` vs `fn`), so\n // it's enough to have a single char in this case.\n result.push(segment, '');\n }\n }\n return result.join('');\n}\n/**\n * Helper function that reverts the `compressNodeLocation` and transforms a given\n * string into an array where at 0th position there is a reference node info and\n * after that it contains information (in pairs) about a navigation step and the\n * number of repetitions.\n *\n * For example, the path like 'bf2n' will be transformed to:\n * ['b', 'firstChild', 2, 'nextSibling', 1].\n *\n * This information is later consumed by the code that navigates the DOM to find\n * a given node by its location.\n */\nfunction decompressNodeLocation(path) {\n const matches = path.match(REF_EXTRACTOR_REGEXP);\n const [_, refNodeId, refNodeName, rest] = matches;\n // If a reference node is represented by an index, transform it to a number.\n const ref = refNodeId ? parseInt(refNodeId, 10) : refNodeName;\n const steps = [];\n // Match all segments in a path.\n for (const [_, step, count] of rest.matchAll(/(f|n)(\\d*)/g)) {\n const repeat = parseInt(count, 10) || 1;\n steps.push(step, repeat);\n }\n return [ref, ...steps];\n}\n\n/** Whether current TNode is a first node in an <ng-container>. */\nfunction isFirstElementInNgContainer(tNode) {\n return !tNode.prev && tNode.parent?.type === 8 /* TNodeType.ElementContainer */;\n}\n/** Returns an instruction index (subtracting HEADER_OFFSET). */\nfunction getNoOffsetIndex(tNode) {\n return tNode.index - HEADER_OFFSET;\n}\n/**\n * Check whether a given node exists, but is disconnected from the DOM.\n *\n * Note: we leverage the fact that we have this information available in the DOM emulation\n * layer (in Domino) for now. Longer-term solution should not rely on the DOM emulation and\n * only use internal data structures and state to compute this information.\n */\nfunction isDisconnectedNode(tNode, lView) {\n return !(tNode.type & 16 /* TNodeType.Projection */) && !!lView[tNode.index] &&\n !unwrapRNode(lView[tNode.index])?.isConnected;\n}\n/**\n * Locate a node in an i18n tree that corresponds to a given instruction index.\n *\n * @param hydrationInfo The hydration annotation data\n * @param noOffsetIndex the instruction index\n * @returns an RNode that corresponds to the instruction index\n */\nfunction locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex) {\n const i18nNodes = hydrationInfo.i18nNodes;\n if (i18nNodes) {\n const native = i18nNodes.get(noOffsetIndex);\n if (native) {\n i18nNodes.delete(noOffsetIndex);\n }\n return native;\n }\n return null;\n}\n/**\n * Locate a node in DOM tree that corresponds to a given TNode.\n *\n * @param hydrationInfo The hydration annotation data\n * @param tView the current tView\n * @param lView the current lView\n * @param tNode the current tNode\n * @returns an RNode that represents a given tNode\n */\nfunction locateNextRNode(hydrationInfo, tView, lView, tNode) {\n const noOffsetIndex = getNoOffsetIndex(tNode);\n let native = locateI18nRNodeByIndex(hydrationInfo, noOffsetIndex);\n if (!native) {\n const nodes = hydrationInfo.data[NODES];\n if (nodes?.[noOffsetIndex]) {\n // We know the exact location of the node.\n native = locateRNodeByPath(nodes[noOffsetIndex], lView);\n }\n else if (tView.firstChild === tNode) {\n // We create a first node in this view, so we use a reference\n // to the first child in this DOM segment.\n native = hydrationInfo.firstChild;\n }\n else {\n // Locate a node based on a previous sibling or a parent node.\n const previousTNodeParent = tNode.prev === null;\n const previousTNode = (tNode.prev ?? tNode.parent);\n ngDevMode &&\n assertDefined(previousTNode, 'Unexpected state: current TNode does not have a connection ' +\n 'to the previous node or a parent node.');\n if (isFirstElementInNgContainer(tNode)) {\n const noOffsetParentIndex = getNoOffsetIndex(tNode.parent);\n native = getSegmentHead(hydrationInfo, noOffsetParentIndex);\n }\n else {\n let previousRElement = getNativeByTNode(previousTNode, lView);\n if (previousTNodeParent) {\n native = previousRElement.firstChild;\n }\n else {\n // If the previous node is an element, but it also has container info,\n // this means that we are processing a node like `<div #vcrTarget>`, which is\n // represented in the DOM as `<div></div>...<!--container-->`.\n // In this case, there are nodes *after* this element and we need to skip\n // all of them to reach an element that we are looking for.\n const noOffsetPrevSiblingIndex = getNoOffsetIndex(previousTNode);\n const segmentHead = getSegmentHead(hydrationInfo, noOffsetPrevSiblingIndex);\n if (previousTNode.type === 2 /* TNodeType.Element */ && segmentHead) {\n const numRootNodesToSkip = calcSerializedContainerSize(hydrationInfo, noOffsetPrevSiblingIndex);\n // `+1` stands for an anchor comment node after all the views in this container.\n const nodesToSkip = numRootNodesToSkip + 1;\n // First node after this segment.\n native = siblingAfter(nodesToSkip, segmentHead);\n }\n else {\n native = previousRElement.nextSibling;\n }\n }\n }\n }\n }\n return native;\n}\n/**\n * Skips over a specified number of nodes and returns the next sibling node after that.\n */\nfunction siblingAfter(skip, from) {\n let currentNode = from;\n for (let i = 0; i < skip; i++) {\n ngDevMode && validateSiblingNodeExists(currentNode);\n currentNode = currentNode.nextSibling;\n }\n return currentNode;\n}\n/**\n * Helper function to produce a string representation of the navigation steps\n * (in terms of `nextSibling` and `firstChild` navigations). Used in error\n * messages in dev mode.\n */\nfunction stringifyNavigationInstructions(instructions) {\n const container = [];\n for (let i = 0; i < instructions.length; i += 2) {\n const step = instructions[i];\n const repeat = instructions[i + 1];\n for (let r = 0; r < repeat; r++) {\n container.push(step === NodeNavigationStep.FirstChild ? 'firstChild' : 'nextSibling');\n }\n }\n return container.join('.');\n}\n/**\n * Helper function that navigates from a starting point node (the `from` node)\n * using provided set of navigation instructions (within `path` argument).\n */\nfunction navigateToNode(from, instructions) {\n let node = from;\n for (let i = 0; i < instructions.length; i += 2) {\n const step = instructions[i];\n const repeat = instructions[i + 1];\n for (let r = 0; r < repeat; r++) {\n if (ngDevMode && !node) {\n throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));\n }\n switch (step) {\n case NodeNavigationStep.FirstChild:\n node = node.firstChild;\n break;\n case NodeNavigationStep.NextSibling:\n node = node.nextSibling;\n break;\n }\n }\n }\n if (ngDevMode && !node) {\n throw nodeNotFoundAtPathError(from, stringifyNavigationInstructions(instructions));\n }\n return node;\n}\n/**\n * Locates an RNode given a set of navigation instructions (which also contains\n * a starting point node info).\n */\nfunction locateRNodeByPath(path, lView) {\n const [referenceNode, ...navigationInstructions] = decompressNodeLocation(path);\n let ref;\n if (referenceNode === REFERENCE_NODE_HOST) {\n ref = lView[DECLARATION_COMPONENT_VIEW][HOST];\n }\n else if (referenceNode === REFERENCE_NODE_BODY) {\n ref = ɵɵresolveBody(lView[DECLARATION_COMPONENT_VIEW][HOST]);\n }\n else {\n const parentElementId = Number(referenceNode);\n ref = unwrapRNode(lView[parentElementId + HEADER_OFFSET]);\n }\n return navigateToNode(ref, navigationInstructions);\n}\n/**\n * Generate a list of DOM navigation operations to get from node `start` to node `finish`.\n *\n * Note: assumes that node `start` occurs before node `finish` in an in-order traversal of the DOM\n * tree. That is, we should be able to get from `start` to `finish` purely by using `.firstChild`\n * and `.nextSibling` operations.\n */\nfunction navigateBetween(start, finish) {\n if (start === finish) {\n return [];\n }\n else if (start.parentElement == null || finish.parentElement == null) {\n return null;\n }\n else if (start.parentElement === finish.parentElement) {\n return navigateBetweenSiblings(start, finish);\n }\n else {\n // `finish` is a child of its parent, so the parent will always have a child.\n const parent = finish.parentElement;\n const parentPath = navigateBetween(start, parent);\n const childPath = navigateBetween(parent.firstChild, finish);\n if (!parentPath || !childPath)\n return null;\n return [\n // First navigate to `finish`'s parent\n ...parentPath,\n // Then to its first child.\n NodeNavigationStep.FirstChild,\n // And finally from that node to `finish` (maybe a no-op if we're already there).\n ...childPath,\n ];\n }\n}\n/**\n * Calculates a path between 2 sibling nodes (generates a number of `NextSibling` navigations).\n * Returns `null` if no such path exists between the given nodes.\n */\nfunction navigateBetweenSiblings(start, finish) {\n const nav = [];\n let node = null;\n for (node = start; node != null && node !== finish; node = node.nextSibling) {\n nav.push(NodeNavigationStep.NextSibling);\n }\n // If the `node` becomes `null` or `undefined` at the end, that means that we\n // didn't find the `end` node, thus return `null` (which would trigger serialization\n // error to be produced).\n return node == null ? null : nav;\n}\n/**\n * Calculates a path between 2 nodes in terms of `nextSibling` and `firstChild`\n * navigations:\n * - the `from` node is a known node, used as an starting point for the lookup\n * (the `fromNodeName` argument is a string representation of the node).\n * - the `to` node is a node that the runtime logic would be looking up,\n * using the path generated by this function.\n */\nfunction calcPathBetween(from, to, fromNodeName) {\n const path = navigateBetween(from, to);\n return path === null ? null : compressNodeLocation(fromNodeName, path);\n}\n/**\n * Invoked at serialization time (on the server) when a set of navigation\n * instructions needs to be generated for a TNode.\n */\nfunction calcPathForNode(tNode, lView) {\n let parentTNode = tNode.parent;\n let parentIndex;\n let parentRNode;\n let referenceNodeName;\n // Skip over all parent nodes that are disconnected from the DOM, such nodes\n // can not be used as anchors.\n //\n // This might happen in certain content projection-based use-cases, where\n // a content of an element is projected and used, when a parent element\n // itself remains detached from DOM. In this scenario we try to find a parent\n // element that is attached to DOM and can act as an anchor instead.\n while (parentTNode !== null && isDisconnectedNode(parentTNode, lView)) {\n parentTNode = parentTNode.parent;\n }\n if (parentTNode === null || !(parentTNode.type & 3 /* TNodeType.AnyRNode */)) {\n // If there is no parent TNode or a parent TNode does not represent an RNode\n // (i.e. not a DOM node), use component host element as a reference node.\n parentIndex = referenceNodeName = REFERENCE_NODE_HOST;\n parentRNode = lView[DECLARATION_COMPONENT_VIEW][HOST];\n }\n else {\n // Use parent TNode as a reference node.\n parentIndex = parentTNode.index;\n parentRNode = unwrapRNode(lView[parentIndex]);\n referenceNodeName = renderStringify(parentIndex - HEADER_OFFSET);\n }\n let rNode = unwrapRNode(lView[tNode.index]);\n if (tNode.type & 12 /* TNodeType.AnyContainer */) {\n // For <ng-container> nodes, instead of serializing a reference\n // to the anchor comment node, serialize a location of the first\n // DOM element. Paired with the container size (serialized as a part\n // of `ngh.containers`), it should give enough information for runtime\n // to hydrate nodes in this container.\n const firstRNode = getFirstNativeNode(lView, tNode);\n // If container is not empty, use a reference to the first element,\n // otherwise, rNode would point to an anchor comment node.\n if (firstRNode) {\n rNode = firstRNode;\n }\n }\n let path = calcPathBetween(parentRNode, rNode, referenceNodeName);\n if (path === null && parentRNode !== rNode) {\n // Searching for a path between elements within a host node failed.\n // Trying to find a path to an element starting from the `document.body` instead.\n //\n // Important note: this type of reference is relatively unstable, since Angular\n // may not be able to control parts of the page that the runtime logic navigates\n // through. This is mostly needed to cover \"portals\" use-case (like menus, dialog boxes,\n // etc), where nodes are content-projected (including direct DOM manipulations) outside\n // of the host node. The better solution is to provide APIs to work with \"portals\",\n // at which point this code path would not be needed.\n const body = parentRNode.ownerDocument.body;\n path = calcPathBetween(body, rNode, REFERENCE_NODE_BODY);\n if (path === null) {\n // If the path is still empty, it's likely that this node is detached and\n // won't be found during hydration.\n throw nodeNotFoundError(lView, tNode);\n }\n }\n return path;\n}\n\n/**\n * Given a current DOM node and a serialized information about the views\n * in a container, walks over the DOM structure, collecting the list of\n * dehydrated views.\n */\nfunction locateDehydratedViewsInContainer(currentRNode, serializedViews) {\n const dehydratedViews = [];\n for (const serializedView of serializedViews) {\n // Repeats a view multiple times as needed, based on the serialized information\n // (for example, for *ngFor-produced views).\n for (let i = 0; i < (serializedView[MULTIPLIER] ?? 1); i++) {\n const view = {\n data: serializedView,\n firstChild: null,\n };\n if (serializedView[NUM_ROOT_NODES] > 0) {\n // Keep reference to the first node in this view,\n // so it can be accessed while invoking template instructions.\n view.firstChild = currentRNode;\n // Move over to the next node after this view, which can\n // either be a first node of the next view or an anchor comment\n // node after the last view in a container.\n currentRNode = siblingAfter(serializedView[NUM_ROOT_NODES], currentRNode);\n }\n dehydratedViews.push(view);\n }\n }\n return [currentRNode, dehydratedViews];\n}\n/**\n * Reference to a function that searches for a matching dehydrated views\n * stored on a given lContainer.\n * Returns `null` by default, when hydration is not enabled.\n */\nlet _findMatchingDehydratedViewImpl = () => null;\n/**\n * Retrieves the next dehydrated view from the LContainer and verifies that\n * it matches a given template id (from the TView that was used to create this\n * instance of a view). If the id doesn't match, that means that we are in an\n * unexpected state and can not complete the reconciliation process. Thus,\n * all dehydrated views from this LContainer are removed (including corresponding\n * DOM nodes) and the rendering is performed as if there were no dehydrated views\n * in this container.\n */\nfunction findMatchingDehydratedViewImpl(lContainer, template) {\n const views = lContainer[DEHYDRATED_VIEWS];\n if (!template || views === null || views.length === 0) {\n return null;\n }\n const view = views[0];\n // Verify whether the first dehydrated view in the container matches\n // the template id passed to this function (that originated from a TView\n // that was used to create an instance of an embedded or component views.\n if (view.data[TEMPLATE_ID] === template) {\n // If the template id matches - extract the first view and return it.\n return views.shift();\n }\n else {\n // Otherwise, we are at the state when reconciliation can not be completed,\n // thus we remove all dehydrated views within this container (remove them\n // from internal data structures as well as delete associated elements from\n // the DOM tree).\n removeDehydratedViews(lContainer);\n return null;\n }\n}\nfunction enableFindMatchingDehydratedViewImpl() {\n _findMatchingDehydratedViewImpl = findMatchingDehydratedViewImpl;\n}\nfunction findMatchingDehydratedView(lContainer, template) {\n return _findMatchingDehydratedViewImpl(lContainer, template);\n}\n\n/**\n * Injectable that is notified when an `LView` is made aware of changes to application state.\n */\nclass ChangeDetectionScheduler {\n}\n\n/**\n * Represents a component created by a `ComponentFactory`.\n * Provides access to the component instance and related objects,\n * and provides the means of destroying the instance.\n *\n * @publicApi\n */\nclass ComponentRef$1 {\n}\n/**\n * Base class for a factory that can create a component dynamically.\n * Instantiate a factory for a given type of component with `resolveComponentFactory()`.\n * Use the resulting `ComponentFactory.create()` method to create a component of that type.\n *\n * @publicApi\n *\n * @deprecated Angular no longer requires Component factories. Please use other APIs where\n * Component class can be used directly.\n */\nclass ComponentFactory$1 {\n}\n\nfunction noComponentFactoryError(component) {\n const error = Error(`No component factory found for ${stringify(component)}.`);\n error[ERROR_COMPONENT] = component;\n return error;\n}\nconst ERROR_COMPONENT = 'ngComponent';\nfunction getComponent(error) {\n return error[ERROR_COMPONENT];\n}\nclass _NullComponentFactoryResolver {\n resolveComponentFactory(component) {\n throw noComponentFactoryError(component);\n }\n}\n/**\n * A simple registry that maps `Components` to generated `ComponentFactory` classes\n * that can be used to create instances of components.\n * Use to obtain the factory for a given component type,\n * then use the factory's `create()` method to create a component of that type.\n *\n * Note: since v13, dynamic component creation via\n * [`ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent)\n * does **not** require resolving component factory: component class can be used directly.\n *\n * @publicApi\n *\n * @deprecated Angular no longer requires Component factories. Please use other APIs where\n * Component class can be used directly.\n */\nclass ComponentFactoryResolver$1 {\n static { this.NULL = ( /* @__PURE__ */new _NullComponentFactoryResolver()); }\n}\n\n/**\n * Creates and initializes a custom renderer that implements the `Renderer2` base class.\n *\n * @publicApi\n */\nclass RendererFactory2 {\n}\n/**\n * Extend this base class to implement custom rendering. By default, Angular\n * renders a template into DOM. You can use custom rendering to intercept\n * rendering calls, or to render to something other than DOM.\n *\n * Create your custom renderer using `RendererFactory2`.\n *\n * Use a custom renderer to bypass Angular's templating and\n * make custom UI changes that can't be expressed declaratively.\n * For example if you need to set a property or an attribute whose name is\n * not statically known, use the `setProperty()` or\n * `setAttribute()` method.\n *\n * @publicApi\n */\nclass Renderer2 {\n constructor() {\n /**\n * If null or undefined, the view engine won't call it.\n * This is used as a performance optimization for production mode.\n */\n this.destroyNode = null;\n }\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = () => injectRenderer2(); }\n}\n/** Injects a Renderer2 for the current component. */\nfunction injectRenderer2() {\n // We need the Renderer to be based on the component that it's being injected into, however since\n // DI happens before we've entered its view, `getLView` will return the parent view instead.\n const lView = getLView();\n const tNode = getCurrentTNode();\n const nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);\n return (isLView(nodeAtIndex) ? nodeAtIndex : lView)[RENDERER];\n}\n\n/**\n * Sanitizer is used by the views to sanitize potentially dangerous values.\n *\n * @publicApi\n */\nclass Sanitizer {\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: Sanitizer,\n providedIn: 'root',\n factory: () => null,\n }); }\n}\n\n// This default value is when checking the hierarchy for a token.\n//\n// It means both:\n// - the token is not provided by the current injector,\n// - only the element injectors should be checked (ie do not check module injectors\n//\n// mod1\n// /\n// el1 mod2\n// \\ /\n// el2\n//\n// When requesting el2.injector.get(token), we should check in the following order and return the\n// first found value:\n// - el2.injector.get(token, default)\n// - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module\n// - mod2.injector.get(token, default)\nconst NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};\n\n/**\n * Asserts that the current stack frame is not within a reactive context. Useful\n * to disallow certain code from running inside a reactive context (see {@link toSignal}).\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertNotInReactiveContext(debugFn, extraContext) {\n // Taking a `Function` instead of a string name here prevents the un-minified name of the function\n // from being retained in the bundle regardless of minification.\n if (getActiveConsumer$1() !== null) {\n throw new RuntimeError(-602 /* RuntimeErrorCode.ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT */, ngDevMode &&\n `${debugFn.name}() cannot be called from within a reactive context.${extraContext ? ` ${extraContext}` : ''}`);\n }\n}\n\nconst markedFeatures = new Set();\n// tslint:disable:ban\n/**\n * A guarded `performance.mark` for feature marking.\n *\n * This method exists because while all supported browser and node.js version supported by Angular\n * support performance.mark API. This is not the case for other environments such as JSDOM and\n * Cloudflare workers.\n */\nfunction performanceMarkFeature(feature) {\n if (markedFeatures.has(feature)) {\n return;\n }\n markedFeatures.add(feature);\n performance?.mark?.('mark_feature_usage', { detail: { feature } });\n}\n\nfunction noop(...args) {\n // Do nothing.\n}\n\nfunction getNativeRequestAnimationFrame() {\n // Note: the `getNativeRequestAnimationFrame` is used in the `NgZone` class, but we cannot use the\n // `inject` function. The `NgZone` instance may be created manually, and thus the injection\n // context will be unavailable. This might be enough to check whether `requestAnimationFrame` is\n // available because otherwise, we'll fall back to `setTimeout`.\n const isBrowser = typeof _global['requestAnimationFrame'] === 'function';\n // Note: `requestAnimationFrame` is unavailable when the code runs in the Node.js environment. We\n // use `setTimeout` because no changes are required other than checking if the current platform is\n // the browser. `setTimeout` is a well-established API that is available in both environments.\n // `requestAnimationFrame` is used in the browser to coalesce event tasks since event tasks are\n // usually executed within the same rendering frame (but this is more implementation details of\n // browsers).\n let nativeRequestAnimationFrame = _global[isBrowser ? 'requestAnimationFrame' : 'setTimeout'];\n let nativeCancelAnimationFrame = _global[isBrowser ? 'cancelAnimationFrame' : 'clearTimeout'];\n if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {\n // Note: zone.js sets original implementations on patched APIs behind the\n // `__zone_symbol__OriginalDelegate` key (see `attachOriginToPatched`). Given the following\n // example: `window.requestAnimationFrame.__zone_symbol__OriginalDelegate`; this would return an\n // unpatched implementation of the `requestAnimationFrame`, which isn't intercepted by the\n // Angular zone. We use the unpatched implementation to avoid another change detection when\n // coalescing tasks.\n const unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n if (unpatchedRequestAnimationFrame) {\n nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;\n }\n const unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n if (unpatchedCancelAnimationFrame) {\n nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;\n }\n }\n return { nativeRequestAnimationFrame, nativeCancelAnimationFrame };\n}\n\nclass AsyncStackTaggingZoneSpec {\n constructor(namePrefix, consoleAsyncStackTaggingImpl = console) {\n this.name = 'asyncStackTagging for ' + namePrefix;\n this.createTask = consoleAsyncStackTaggingImpl?.createTask ?? (() => null);\n }\n onScheduleTask(delegate, _current, target, task) {\n task.consoleTask = this.createTask(`Zone - ${task.source || task.type}`);\n return delegate.scheduleTask(target, task);\n }\n onInvokeTask(delegate, _currentZone, targetZone, task, applyThis, applyArgs) {\n let ret;\n if (task.consoleTask) {\n ret = task.consoleTask.run(() => delegate.invokeTask(targetZone, task, applyThis, applyArgs));\n }\n else {\n ret = delegate.invokeTask(targetZone, task, applyThis, applyArgs);\n }\n return ret;\n }\n}\n\n/**\n * An injectable service for executing work inside or outside of the Angular zone.\n *\n * The most common use of this service is to optimize performance when starting a work consisting of\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\n * can reenter the Angular zone via {@link #run}.\n *\n * <!-- TODO: add/fix links to:\n * - docs explaining zones and the use of zones in Angular and change-detection\n * - link to runOutsideAngular/run (throughout this file!)\n * -->\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * import {Component, NgZone} from '@angular/core';\n * import {NgIf} from '@angular/common';\n *\n * @Component({\n * selector: 'ng-zone-demo',\n * template: `\n * <h2>Demo: NgZone</h2>\n *\n * <p>Progress: {{progress}}%</p>\n * <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\n *\n * <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\n * <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\n * `,\n * })\n * export class NgZoneDemo {\n * progress: number = 0;\n * label: string;\n *\n * constructor(private _ngZone: NgZone) {}\n *\n * // Loop inside the Angular zone\n * // so the UI DOES refresh after each setTimeout cycle\n * processWithinAngularZone() {\n * this.label = 'inside';\n * this.progress = 0;\n * this._increaseProgress(() => console.log('Inside Done!'));\n * }\n *\n * // Loop outside of the Angular zone\n * // so the UI DOES NOT refresh after each setTimeout cycle\n * processOutsideOfAngularZone() {\n * this.label = 'outside';\n * this.progress = 0;\n * this._ngZone.runOutsideAngular(() => {\n * this._increaseProgress(() => {\n * // reenter the Angular zone and display done\n * this._ngZone.run(() => { console.log('Outside Done!'); });\n * });\n * });\n * }\n *\n * _increaseProgress(doneCallback: () => void) {\n * this.progress += 1;\n * console.log(`Current progress: ${this.progress}%`);\n *\n * if (this.progress < 100) {\n * window.setTimeout(() => this._increaseProgress(doneCallback), 10);\n * } else {\n * doneCallback();\n * }\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass NgZone {\n constructor({ enableLongStackTrace = false, shouldCoalesceEventChangeDetection = false, shouldCoalesceRunChangeDetection = false }) {\n this.hasPendingMacrotasks = false;\n this.hasPendingMicrotasks = false;\n /**\n * Whether there are no outstanding microtasks or macrotasks.\n */\n this.isStable = true;\n /**\n * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n */\n this.onUnstable = new EventEmitter(false);\n /**\n * Notifies when there is no more microtasks enqueued in the current VM Turn.\n * This is a hint for Angular to do change detection, which may enqueue more microtasks.\n * For this reason this event can fire multiple times per VM Turn.\n */\n this.onMicrotaskEmpty = new EventEmitter(false);\n /**\n * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\n * implies we are about to relinquish VM turn.\n * This event gets called just once.\n */\n this.onStable = new EventEmitter(false);\n /**\n * Notifies that an error has been delivered.\n */\n this.onError = new EventEmitter(false);\n if (typeof Zone == 'undefined') {\n throw new RuntimeError(908 /* RuntimeErrorCode.MISSING_ZONEJS */, ngDevMode && `In this configuration Angular requires Zone.js`);\n }\n Zone.assertZonePatched();\n const self = this;\n self._nesting = 0;\n self._outer = self._inner = Zone.current;\n // AsyncStackTaggingZoneSpec provides `linked stack traces` to show\n // where the async operation is scheduled. For more details, refer\n // to this article, https://developer.chrome.com/blog/devtools-better-angular-debugging/\n // And we only import this AsyncStackTaggingZoneSpec in development mode,\n // in the production mode, the AsyncStackTaggingZoneSpec will be tree shaken away.\n if (ngDevMode) {\n self._inner = self._inner.fork(new AsyncStackTaggingZoneSpec('Angular'));\n }\n if (Zone['TaskTrackingZoneSpec']) {\n self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']);\n }\n if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {\n self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);\n }\n // if shouldCoalesceRunChangeDetection is true, all tasks including event tasks will be\n // coalesced, so shouldCoalesceEventChangeDetection option is not necessary and can be skipped.\n self.shouldCoalesceEventChangeDetection =\n !shouldCoalesceRunChangeDetection && shouldCoalesceEventChangeDetection;\n self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;\n self.lastRequestAnimationFrameId = -1;\n self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;\n forkInnerZoneWithAngularBehavior(self);\n }\n /**\n This method checks whether the method call happens within an Angular Zone instance.\n */\n static isInAngularZone() {\n // Zone needs to be checked, because this method might be called even when NoopNgZone is used.\n return typeof Zone !== 'undefined' && Zone.current.get('isAngularZone') === true;\n }\n /**\n Assures that the method is called within the Angular Zone, otherwise throws an error.\n */\n static assertInAngularZone() {\n if (!NgZone.isInAngularZone()) {\n throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to be in Angular Zone, but it is not!');\n }\n }\n /**\n Assures that the method is called outside of the Angular Zone, otherwise throws an error.\n */\n static assertNotInAngularZone() {\n if (NgZone.isInAngularZone()) {\n throw new RuntimeError(909 /* RuntimeErrorCode.UNEXPECTED_ZONE_STATE */, ngDevMode && 'Expected to not be in Angular Zone, but it is!');\n }\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone and returns value returned by\n * the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n run(fn, applyThis, applyArgs) {\n return this._inner.run(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone as a task and returns value\n * returned by the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n runTask(fn, applyThis, applyArgs, name) {\n const zone = this._inner;\n const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);\n try {\n return zone.runTask(task, applyThis, applyArgs);\n }\n finally {\n zone.cancelTask(task);\n }\n }\n /**\n * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not\n * rethrown.\n */\n runGuarded(fn, applyThis, applyArgs) {\n return this._inner.runGuarded(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\n * the function.\n *\n * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do\n * work that\n * doesn't trigger Angular change-detection or is subject to Angular's error handling.\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * outside of the Angular zone.\n *\n * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\n */\n runOutsideAngular(fn) {\n return this._outer.run(fn);\n }\n}\nconst EMPTY_PAYLOAD = {};\nfunction checkStable(zone) {\n // TODO: @JiaLiPassion, should check zone.isCheckStableRunning to prevent\n // re-entry. The case is:\n //\n // @Component({...})\n // export class AppComponent {\n // constructor(private ngZone: NgZone) {\n // this.ngZone.onStable.subscribe(() => {\n // this.ngZone.run(() => console.log('stable'););\n // });\n // }\n //\n // The onStable subscriber run another function inside ngZone\n // which causes `checkStable()` re-entry.\n // But this fix causes some issues in g3, so this fix will be\n // launched in another PR.\n if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {\n try {\n zone._nesting++;\n zone.onMicrotaskEmpty.emit(null);\n }\n finally {\n zone._nesting--;\n if (!zone.hasPendingMicrotasks) {\n try {\n zone.runOutsideAngular(() => zone.onStable.emit(null));\n }\n finally {\n zone.isStable = true;\n }\n }\n }\n }\n}\nfunction delayChangeDetectionForEvents(zone) {\n /**\n * We also need to check _nesting here\n * Consider the following case with shouldCoalesceRunChangeDetection = true\n *\n * ngZone.run(() => {});\n * ngZone.run(() => {});\n *\n * We want the two `ngZone.run()` only trigger one change detection\n * when shouldCoalesceRunChangeDetection is true.\n * And because in this case, change detection run in async way(requestAnimationFrame),\n * so we also need to check the _nesting here to prevent multiple\n * change detections.\n */\n if (zone.isCheckStableRunning || zone.lastRequestAnimationFrameId !== -1) {\n return;\n }\n zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, () => {\n // This is a work around for https://github.com/angular/angular/issues/36839.\n // The core issue is that when event coalescing is enabled it is possible for microtasks\n // to get flushed too early (As is the case with `Promise.then`) between the\n // coalescing eventTasks.\n //\n // To workaround this we schedule a \"fake\" eventTask before we process the\n // coalescing eventTasks. The benefit of this is that the \"fake\" container eventTask\n // will prevent the microtasks queue from getting drained in between the coalescing\n // eventTask execution.\n if (!zone.fakeTopEventTask) {\n zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', () => {\n zone.lastRequestAnimationFrameId = -1;\n updateMicroTaskStatus(zone);\n zone.isCheckStableRunning = true;\n checkStable(zone);\n zone.isCheckStableRunning = false;\n }, undefined, () => { }, () => { });\n }\n zone.fakeTopEventTask.invoke();\n });\n updateMicroTaskStatus(zone);\n}\nfunction forkInnerZoneWithAngularBehavior(zone) {\n const delayChangeDetectionForEventsDelegate = () => {\n delayChangeDetectionForEvents(zone);\n };\n zone._inner = zone._inner.fork({\n name: 'angular',\n properties: { 'isAngularZone': true },\n onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {\n if (shouldBeIgnoredByZone(applyArgs)) {\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n try {\n onEnter(zone);\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n finally {\n if ((zone.shouldCoalesceEventChangeDetection && task.type === 'eventTask') ||\n zone.shouldCoalesceRunChangeDetection) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {\n try {\n onEnter(zone);\n return delegate.invoke(target, callback, applyThis, applyArgs, source);\n }\n finally {\n if (zone.shouldCoalesceRunChangeDetection) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onHasTask: (delegate, current, target, hasTaskState) => {\n delegate.hasTask(target, hasTaskState);\n if (current === target) {\n // We are only interested in hasTask events which originate from our zone\n // (A child hasTask event is not interesting to us)\n if (hasTaskState.change == 'microTask') {\n zone._hasPendingMicrotasks = hasTaskState.microTask;\n updateMicroTaskStatus(zone);\n checkStable(zone);\n }\n else if (hasTaskState.change == 'macroTask') {\n zone.hasPendingMacrotasks = hasTaskState.macroTask;\n }\n }\n },\n onHandleError: (delegate, current, target, error) => {\n delegate.handleError(target, error);\n zone.runOutsideAngular(() => zone.onError.emit(error));\n return false;\n }\n });\n}\nfunction updateMicroTaskStatus(zone) {\n if (zone._hasPendingMicrotasks ||\n ((zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) &&\n zone.lastRequestAnimationFrameId !== -1)) {\n zone.hasPendingMicrotasks = true;\n }\n else {\n zone.hasPendingMicrotasks = false;\n }\n}\nfunction onEnter(zone) {\n zone._nesting++;\n if (zone.isStable) {\n zone.isStable = false;\n zone.onUnstable.emit(null);\n }\n}\nfunction onLeave(zone) {\n zone._nesting--;\n checkStable(zone);\n}\n/**\n * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls\n * to framework to perform rendering.\n */\nclass NoopNgZone {\n constructor() {\n this.hasPendingMicrotasks = false;\n this.hasPendingMacrotasks = false;\n this.isStable = true;\n this.onUnstable = new EventEmitter();\n this.onMicrotaskEmpty = new EventEmitter();\n this.onStable = new EventEmitter();\n this.onError = new EventEmitter();\n }\n run(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runGuarded(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runOutsideAngular(fn) {\n return fn();\n }\n runTask(fn, applyThis, applyArgs, name) {\n return fn.apply(applyThis, applyArgs);\n }\n}\nfunction shouldBeIgnoredByZone(applyArgs) {\n if (!Array.isArray(applyArgs)) {\n return false;\n }\n // We should only ever get 1 arg passed through to invokeTask.\n // Short circuit here incase that behavior changes.\n if (applyArgs.length !== 1) {\n return false;\n }\n // Prevent triggering change detection when the __ignore_ng_zone__ flag is detected.\n return applyArgs[0].data?.['__ignore_ng_zone__'] === true;\n}\nfunction getNgZone(ngZoneToUse = 'zone.js', options) {\n if (ngZoneToUse === 'noop') {\n return new NoopNgZone();\n }\n if (ngZoneToUse === 'zone.js') {\n return new NgZone(options);\n }\n return ngZoneToUse;\n}\n\n/**\n * The phase to run an `afterRender` or `afterNextRender` callback in.\n *\n * Callbacks in the same phase run in the order they are registered. Phases run in the\n * following order after each render:\n *\n * 1. `AfterRenderPhase.EarlyRead`\n * 2. `AfterRenderPhase.Write`\n * 3. `AfterRenderPhase.MixedReadWrite`\n * 4. `AfterRenderPhase.Read`\n *\n * Angular is unable to verify or enforce that phases are used correctly, and instead\n * relies on each developer to follow the guidelines documented for each value and\n * carefully choose the appropriate one, refactoring their code if necessary. By doing\n * so, Angular is better able to minimize the performance degradation associated with\n * manual DOM access, ensuring the best experience for the end users of your application\n * or library.\n *\n * @developerPreview\n */\nvar AfterRenderPhase;\n(function (AfterRenderPhase) {\n /**\n * Use `AfterRenderPhase.EarlyRead` for callbacks that only need to **read** from the\n * DOM before a subsequent `AfterRenderPhase.Write` callback, for example to perform\n * custom layout that the browser doesn't natively support. **Never** use this phase\n * for callbacks that can write to the DOM or when `AfterRenderPhase.Read` is adequate.\n *\n * <div class=\"alert is-important\">\n *\n * Using this value can degrade performance.\n * Instead, prefer using built-in browser functionality when possible.\n *\n * </div>\n */\n AfterRenderPhase[AfterRenderPhase[\"EarlyRead\"] = 0] = \"EarlyRead\";\n /**\n * Use `AfterRenderPhase.Write` for callbacks that only **write** to the DOM. **Never**\n * use this phase for callbacks that can read from the DOM.\n */\n AfterRenderPhase[AfterRenderPhase[\"Write\"] = 1] = \"Write\";\n /**\n * Use `AfterRenderPhase.MixedReadWrite` for callbacks that read from or write to the\n * DOM, that haven't been refactored to use a different phase. **Never** use this phase\n * for callbacks that can use a different phase instead.\n *\n * <div class=\"alert is-critical\">\n *\n * Using this value can **significantly** degrade performance.\n * Instead, prefer refactoring into multiple callbacks using a more specific phase.\n *\n * </div>\n */\n AfterRenderPhase[AfterRenderPhase[\"MixedReadWrite\"] = 2] = \"MixedReadWrite\";\n /**\n * Use `AfterRenderPhase.Read` for callbacks that only **read** from the DOM. **Never**\n * use this phase for callbacks that can write to the DOM.\n */\n AfterRenderPhase[AfterRenderPhase[\"Read\"] = 3] = \"Read\";\n})(AfterRenderPhase || (AfterRenderPhase = {}));\n/** `AfterRenderRef` that does nothing. */\nconst NOOP_AFTER_RENDER_REF = {\n destroy() { }\n};\n/**\n * Register a callback to run once before any userspace `afterRender` or\n * `afterNextRender` callbacks.\n *\n * This function should almost always be used instead of `afterRender` or\n * `afterNextRender` for implementing framework functionality. Consider:\n *\n * 1.) `AfterRenderPhase.EarlyRead` is intended to be used for implementing\n * custom layout. If the framework itself mutates the DOM after *any*\n * `AfterRenderPhase.EarlyRead` callbacks are run, the phase can no\n * longer reliably serve its purpose.\n *\n * 2.) Importing `afterRender` in the framework can reduce the ability for it\n * to be tree-shaken, and the framework shouldn't need much of the behavior.\n */\nfunction internalAfterNextRender(callback, options) {\n const injector = options?.injector ?? inject(Injector);\n // Similarly to the public `afterNextRender` function, an internal one\n // is only invoked in a browser as long as the runOnServer option is not set.\n if (!options?.runOnServer && !isPlatformBrowser(injector))\n return;\n const afterRenderEventManager = injector.get(AfterRenderEventManager);\n afterRenderEventManager.internalCallbacks.push(callback);\n}\n/**\n * Register a callback to be invoked each time the application\n * finishes rendering.\n *\n * <div class=\"alert is-critical\">\n *\n * You should always explicitly specify a non-default [phase](api/core/AfterRenderPhase), or you\n * risk significant performance degradation.\n *\n * </div>\n *\n * Note that the callback will run\n * - in the order it was registered\n * - once per render\n * - on browser platforms only\n *\n * <div class=\"alert is-important\">\n *\n * Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.\n * You must use caution when directly reading or writing the DOM and layout.\n *\n * </div>\n *\n * @param callback A callback function to register\n *\n * @usageNotes\n *\n * Use `afterRender` to read or write the DOM after each render.\n *\n * ### Example\n * ```ts\n * @Component({\n * selector: 'my-cmp',\n * template: `<span #content>{{ ... }}</span>`,\n * })\n * export class MyComponent {\n * @ViewChild('content') contentRef: ElementRef;\n *\n * constructor() {\n * afterRender(() => {\n * console.log('content height: ' + this.contentRef.nativeElement.scrollHeight);\n * }, {phase: AfterRenderPhase.Read});\n * }\n * }\n * ```\n *\n * @developerPreview\n */\nfunction afterRender(callback, options) {\n ngDevMode &&\n assertNotInReactiveContext(afterRender, 'Call `afterRender` outside of a reactive context. For example, schedule the render ' +\n 'callback inside the component constructor`.');\n !options && assertInInjectionContext(afterRender);\n const injector = options?.injector ?? inject(Injector);\n if (!isPlatformBrowser(injector)) {\n return NOOP_AFTER_RENDER_REF;\n }\n performanceMarkFeature('NgAfterRender');\n const afterRenderEventManager = injector.get(AfterRenderEventManager);\n // Lazily initialize the handler implementation, if necessary. This is so that it can be\n // tree-shaken if `afterRender` and `afterNextRender` aren't used.\n const callbackHandler = afterRenderEventManager.handler ??= new AfterRenderCallbackHandlerImpl();\n const phase = options?.phase ?? AfterRenderPhase.MixedReadWrite;\n const destroy = () => {\n callbackHandler.unregister(instance);\n unregisterFn();\n };\n const unregisterFn = injector.get(DestroyRef).onDestroy(destroy);\n const instance = runInInjectionContext(injector, () => new AfterRenderCallback(phase, callback));\n callbackHandler.register(instance);\n return { destroy };\n}\n/**\n * Register a callback to be invoked the next time the application\n * finishes rendering.\n *\n * <div class=\"alert is-critical\">\n *\n * You should always explicitly specify a non-default [phase](api/core/AfterRenderPhase), or you\n * risk significant performance degradation.\n *\n * </div>\n *\n * Note that the callback will run\n * - in the order it was registered\n * - on browser platforms only\n *\n * <div class=\"alert is-important\">\n *\n * Components are not guaranteed to be [hydrated](guide/hydration) before the callback runs.\n * You must use caution when directly reading or writing the DOM and layout.\n *\n * </div>\n *\n * @param callback A callback function to register\n *\n * @usageNotes\n *\n * Use `afterNextRender` to read or write the DOM once,\n * for example to initialize a non-Angular library.\n *\n * ### Example\n * ```ts\n * @Component({\n * selector: 'my-chart-cmp',\n * template: `<div #chart>{{ ... }}</div>`,\n * })\n * export class MyChartCmp {\n * @ViewChild('chart') chartRef: ElementRef;\n * chart: MyChart|null;\n *\n * constructor() {\n * afterNextRender(() => {\n * this.chart = new MyChart(this.chartRef.nativeElement);\n * }, {phase: AfterRenderPhase.Write});\n * }\n * }\n * ```\n *\n * @developerPreview\n */\nfunction afterNextRender(callback, options) {\n !options && assertInInjectionContext(afterNextRender);\n const injector = options?.injector ?? inject(Injector);\n if (!isPlatformBrowser(injector)) {\n return NOOP_AFTER_RENDER_REF;\n }\n performanceMarkFeature('NgAfterNextRender');\n const afterRenderEventManager = injector.get(AfterRenderEventManager);\n // Lazily initialize the handler implementation, if necessary. This is so that it can be\n // tree-shaken if `afterRender` and `afterNextRender` aren't used.\n const callbackHandler = afterRenderEventManager.handler ??= new AfterRenderCallbackHandlerImpl();\n const phase = options?.phase ?? AfterRenderPhase.MixedReadWrite;\n const destroy = () => {\n callbackHandler.unregister(instance);\n unregisterFn();\n };\n const unregisterFn = injector.get(DestroyRef).onDestroy(destroy);\n const instance = runInInjectionContext(injector, () => new AfterRenderCallback(phase, () => {\n destroy();\n callback();\n }));\n callbackHandler.register(instance);\n return { destroy };\n}\n/**\n * A wrapper around a function to be used as an after render callback.\n */\nclass AfterRenderCallback {\n constructor(phase, callbackFn) {\n this.phase = phase;\n this.callbackFn = callbackFn;\n this.zone = inject(NgZone);\n this.errorHandler = inject(ErrorHandler, { optional: true });\n // Registering a callback will notify the scheduler.\n inject(ChangeDetectionScheduler, { optional: true })?.notify(1 /* NotificationType.AfterRenderHooks */);\n }\n invoke() {\n try {\n this.zone.runOutsideAngular(this.callbackFn);\n }\n catch (err) {\n this.errorHandler?.handleError(err);\n }\n }\n}\n/**\n * Core functionality for `afterRender` and `afterNextRender`. Kept separate from\n * `AfterRenderEventManager` for tree-shaking.\n */\nclass AfterRenderCallbackHandlerImpl {\n constructor() {\n this.executingCallbacks = false;\n this.buckets = {\n // Note: the order of these keys controls the order the phases are run.\n [AfterRenderPhase.EarlyRead]: new Set(),\n [AfterRenderPhase.Write]: new Set(),\n [AfterRenderPhase.MixedReadWrite]: new Set(),\n [AfterRenderPhase.Read]: new Set(),\n };\n this.deferredCallbacks = new Set();\n }\n register(callback) {\n // If we're currently running callbacks, new callbacks should be deferred\n // until the next render operation.\n const target = this.executingCallbacks ? this.deferredCallbacks : this.buckets[callback.phase];\n target.add(callback);\n }\n unregister(callback) {\n this.buckets[callback.phase].delete(callback);\n this.deferredCallbacks.delete(callback);\n }\n execute() {\n this.executingCallbacks = true;\n for (const bucket of Object.values(this.buckets)) {\n for (const callback of bucket) {\n callback.invoke();\n }\n }\n this.executingCallbacks = false;\n for (const callback of this.deferredCallbacks) {\n this.buckets[callback.phase].add(callback);\n }\n this.deferredCallbacks.clear();\n }\n destroy() {\n for (const bucket of Object.values(this.buckets)) {\n bucket.clear();\n }\n this.deferredCallbacks.clear();\n }\n}\n/**\n * Implements core timing for `afterRender` and `afterNextRender` events.\n * Delegates to an optional `AfterRenderCallbackHandler` for implementation.\n */\nclass AfterRenderEventManager {\n constructor() {\n /* @internal */\n this.handler = null;\n /* @internal */\n this.internalCallbacks = [];\n }\n /**\n * Executes internal and user-provided callbacks.\n */\n execute() {\n this.executeInternalCallbacks();\n this.handler?.execute();\n }\n executeInternalCallbacks() {\n // Note: internal callbacks power `internalAfterNextRender`. Since internal callbacks\n // are fairly trivial, they are kept separate so that `AfterRenderCallbackHandlerImpl`\n // can still be tree-shaken unless used by the application.\n const callbacks = [...this.internalCallbacks];\n this.internalCallbacks.length = 0;\n for (const callback of callbacks) {\n callback();\n }\n }\n ngOnDestroy() {\n this.handler?.destroy();\n this.handler = null;\n this.internalCallbacks.length = 0;\n }\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: AfterRenderEventManager,\n providedIn: 'root',\n factory: () => new AfterRenderEventManager(),\n }); }\n}\n\nfunction isModuleWithProviders(value) {\n return value.ngModule !== undefined;\n}\nfunction isNgModule(value) {\n return !!getNgModuleDef(value);\n}\nfunction isPipe(value) {\n return !!getPipeDef$1(value);\n}\nfunction isDirective(value) {\n return !!getDirectiveDef(value);\n}\nfunction isComponent(value) {\n return !!getComponentDef(value);\n}\nfunction getDependencyTypeForError(type) {\n if (getComponentDef(type))\n return 'component';\n if (getDirectiveDef(type))\n return 'directive';\n if (getPipeDef$1(type))\n return 'pipe';\n return 'type';\n}\nfunction verifyStandaloneImport(depType, importingType) {\n if (isForwardRef(depType)) {\n depType = resolveForwardRef(depType);\n if (!depType) {\n throw new Error(`Expected forwardRef function, imported from \"${stringifyForError(importingType)}\", to return a standalone entity or NgModule but got \"${stringifyForError(depType) || depType}\".`);\n }\n }\n if (getNgModuleDef(depType) == null) {\n const def = getComponentDef(depType) || getDirectiveDef(depType) || getPipeDef$1(depType);\n if (def != null) {\n // if a component, directive or pipe is imported make sure that it is standalone\n if (!def.standalone) {\n throw new Error(`The \"${stringifyForError(depType)}\" ${getDependencyTypeForError(depType)}, imported from \"${stringifyForError(importingType)}\", is not standalone. Did you forget to add the standalone: true flag?`);\n }\n }\n else {\n // it can be either a module with provider or an unknown (not annotated) type\n if (isModuleWithProviders(depType)) {\n throw new Error(`A module with providers was imported from \"${stringifyForError(importingType)}\". Modules with providers are not supported in standalone components imports.`);\n }\n else {\n throw new Error(`The \"${stringifyForError(depType)}\" type, imported from \"${stringifyForError(importingType)}\", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);\n }\n }\n }\n}\n\n/**\n * Indicates whether to use the runtime dependency tracker for scope calculation in JIT compilation.\n * The value \"false\" means the old code path based on patching scope info into the types will be\n * used.\n *\n * @deprecated For migration purposes only, to be removed soon.\n */\nconst USE_RUNTIME_DEPS_TRACKER_FOR_JIT = true;\n/**\n * An implementation of DepsTrackerApi which will be used for JIT and local compilation.\n */\nclass DepsTracker {\n constructor() {\n this.ownerNgModule = new Map();\n this.ngModulesWithSomeUnresolvedDecls = new Set();\n this.ngModulesScopeCache = new Map();\n this.standaloneComponentsScopeCache = new Map();\n }\n /**\n * Attempts to resolve ng module's forward ref declarations as much as possible and add them to\n * the `ownerNgModule` map. This method normally should be called after the initial parsing when\n * all the forward refs are resolved (e.g., when trying to render a component)\n */\n resolveNgModulesDecls() {\n if (this.ngModulesWithSomeUnresolvedDecls.size === 0) {\n return;\n }\n for (const moduleType of this.ngModulesWithSomeUnresolvedDecls) {\n const def = getNgModuleDef(moduleType);\n if (def?.declarations) {\n for (const decl of maybeUnwrapFn(def.declarations)) {\n if (isComponent(decl)) {\n this.ownerNgModule.set(decl, moduleType);\n }\n }\n }\n }\n this.ngModulesWithSomeUnresolvedDecls.clear();\n }\n /** @override */\n getComponentDependencies(type, rawImports) {\n this.resolveNgModulesDecls();\n const def = getComponentDef(type);\n if (def === null) {\n throw new Error(`Attempting to get component dependencies for a type that is not a component: ${type}`);\n }\n if (def.standalone) {\n const scope = this.getStandaloneComponentScope(type, rawImports);\n if (scope.compilation.isPoisoned) {\n return { dependencies: [] };\n }\n return {\n dependencies: [\n ...scope.compilation.directives,\n ...scope.compilation.pipes,\n ...scope.compilation.ngModules,\n ]\n };\n }\n else {\n if (!this.ownerNgModule.has(type)) {\n // This component is orphan! No need to handle the error since the component rendering\n // pipeline (e.g., view_container_ref) will check for this error based on configs.\n return { dependencies: [] };\n }\n const scope = this.getNgModuleScope(this.ownerNgModule.get(type));\n if (scope.compilation.isPoisoned) {\n return { dependencies: [] };\n }\n return {\n dependencies: [\n ...scope.compilation.directives,\n ...scope.compilation.pipes,\n ],\n };\n }\n }\n /**\n * @override\n * This implementation does not make use of param scopeInfo since it assumes the scope info is\n * already added to the type itself through methods like {@link ɵɵsetNgModuleScope}\n */\n registerNgModule(type, scopeInfo) {\n if (!isNgModule(type)) {\n throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${type}`);\n }\n // Lazily process the NgModules later when needed.\n this.ngModulesWithSomeUnresolvedDecls.add(type);\n }\n /** @override */\n clearScopeCacheFor(type) {\n this.ngModulesScopeCache.delete(type);\n this.standaloneComponentsScopeCache.delete(type);\n }\n /** @override */\n getNgModuleScope(type) {\n if (this.ngModulesScopeCache.has(type)) {\n return this.ngModulesScopeCache.get(type);\n }\n const scope = this.computeNgModuleScope(type);\n this.ngModulesScopeCache.set(type, scope);\n return scope;\n }\n /** Compute NgModule scope afresh. */\n computeNgModuleScope(type) {\n const def = getNgModuleDef(type, true);\n const scope = {\n exported: { directives: new Set(), pipes: new Set() },\n compilation: { directives: new Set(), pipes: new Set() },\n };\n // Analyzing imports\n for (const imported of maybeUnwrapFn(def.imports)) {\n if (isNgModule(imported)) {\n const importedScope = this.getNgModuleScope(imported);\n // When this module imports another, the imported module's exported directives and pipes\n // are added to the compilation scope of this module.\n addSet(importedScope.exported.directives, scope.compilation.directives);\n addSet(importedScope.exported.pipes, scope.compilation.pipes);\n }\n else if (isStandalone(imported)) {\n if (isDirective(imported) || isComponent(imported)) {\n scope.compilation.directives.add(imported);\n }\n else if (isPipe(imported)) {\n scope.compilation.pipes.add(imported);\n }\n else {\n // The standalone thing is neither a component nor a directive nor a pipe ... (what?)\n throw new RuntimeError(1000 /* RuntimeErrorCode.RUNTIME_DEPS_INVALID_IMPORTED_TYPE */, 'The standalone imported type is neither a component nor a directive nor a pipe');\n }\n }\n else {\n // The import is neither a module nor a module-with-providers nor a standalone thing. This\n // is going to be an error. So we short circuit.\n scope.compilation.isPoisoned = true;\n break;\n }\n }\n // Analyzing declarations\n if (!scope.compilation.isPoisoned) {\n for (const decl of maybeUnwrapFn(def.declarations)) {\n // Cannot declare another NgModule or a standalone thing\n if (isNgModule(decl) || isStandalone(decl)) {\n scope.compilation.isPoisoned = true;\n break;\n }\n if (isPipe(decl)) {\n scope.compilation.pipes.add(decl);\n }\n else {\n // decl is either a directive or a component. The component may not yet have the ɵcmp due\n // to async compilation.\n scope.compilation.directives.add(decl);\n }\n }\n }\n // Analyzing exports\n for (const exported of maybeUnwrapFn(def.exports)) {\n if (isNgModule(exported)) {\n // When this module exports another, the exported module's exported directives and pipes\n // are added to both the compilation and exported scopes of this module.\n const exportedScope = this.getNgModuleScope(exported);\n // Based on the current logic there is no way to have poisoned exported scope. So no need to\n // check for it.\n addSet(exportedScope.exported.directives, scope.exported.directives);\n addSet(exportedScope.exported.pipes, scope.exported.pipes);\n // Some test toolings which run in JIT mode depend on this behavior that the exported scope\n // should also be present in the compilation scope, even though AoT does not support this\n // and it is also in odds with NgModule metadata definitions. Without this some tests in\n // Google will fail.\n addSet(exportedScope.exported.directives, scope.compilation.directives);\n addSet(exportedScope.exported.pipes, scope.compilation.pipes);\n }\n else if (isPipe(exported)) {\n scope.exported.pipes.add(exported);\n }\n else {\n scope.exported.directives.add(exported);\n }\n }\n return scope;\n }\n /** @override */\n getStandaloneComponentScope(type, rawImports) {\n if (this.standaloneComponentsScopeCache.has(type)) {\n return this.standaloneComponentsScopeCache.get(type);\n }\n const ans = this.computeStandaloneComponentScope(type, rawImports);\n this.standaloneComponentsScopeCache.set(type, ans);\n return ans;\n }\n computeStandaloneComponentScope(type, rawImports) {\n const ans = {\n compilation: {\n // Standalone components are always able to self-reference.\n directives: new Set([type]),\n pipes: new Set(),\n ngModules: new Set(),\n },\n };\n for (const rawImport of flatten(rawImports ?? [])) {\n const imported = resolveForwardRef(rawImport);\n try {\n verifyStandaloneImport(imported, type);\n }\n catch (e) {\n // Short-circuit if an import is not valid\n ans.compilation.isPoisoned = true;\n return ans;\n }\n if (isNgModule(imported)) {\n ans.compilation.ngModules.add(imported);\n const importedScope = this.getNgModuleScope(imported);\n // Short-circuit if an imported NgModule has corrupted exported scope.\n if (importedScope.exported.isPoisoned) {\n ans.compilation.isPoisoned = true;\n return ans;\n }\n addSet(importedScope.exported.directives, ans.compilation.directives);\n addSet(importedScope.exported.pipes, ans.compilation.pipes);\n }\n else if (isPipe(imported)) {\n ans.compilation.pipes.add(imported);\n }\n else if (isDirective(imported) || isComponent(imported)) {\n ans.compilation.directives.add(imported);\n }\n else {\n // The imported thing is not module/pipe/directive/component, so we error and short-circuit\n // here\n ans.compilation.isPoisoned = true;\n return ans;\n }\n }\n return ans;\n }\n /** @override */\n isOrphanComponent(cmp) {\n const def = getComponentDef(cmp);\n if (!def || def.standalone) {\n return false;\n }\n this.resolveNgModulesDecls();\n return !this.ownerNgModule.has(cmp);\n }\n}\nfunction addSet(sourceSet, targetSet) {\n for (const m of sourceSet) {\n targetSet.add(m);\n }\n}\n/** The deps tracker to be used in the current Angular app in dev mode. */\nconst depsTracker = new DepsTracker();\nconst TEST_ONLY = { DepsTracker };\n\n/**\n * Compute the static styling (class/style) from `TAttributes`.\n *\n * This function should be called during `firstCreatePass` only.\n *\n * @param tNode The `TNode` into which the styling information should be loaded.\n * @param attrs `TAttributes` containing the styling information.\n * @param writeToHost Where should the resulting static styles be written?\n * - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`\n * - `true` Write to `TNode.styles` / `TNode.classes`\n */\nfunction computeStaticStyling(tNode, attrs, writeToHost) {\n ngDevMode &&\n assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');\n let styles = writeToHost ? tNode.styles : null;\n let classes = writeToHost ? tNode.classes : null;\n let mode = 0;\n if (attrs !== null) {\n for (let i = 0; i < attrs.length; i++) {\n const value = attrs[i];\n if (typeof value === 'number') {\n mode = value;\n }\n else if (mode == 1 /* AttributeMarker.Classes */) {\n classes = concatStringsWithSpace(classes, value);\n }\n else if (mode == 2 /* AttributeMarker.Styles */) {\n const style = value;\n const styleValue = attrs[++i];\n styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');\n }\n }\n }\n writeToHost ? tNode.styles = styles : tNode.stylesWithoutHost = styles;\n writeToHost ? tNode.classes = classes : tNode.classesWithoutHost = classes;\n}\n\nclass ComponentFactoryResolver extends ComponentFactoryResolver$1 {\n /**\n * @param ngModule The NgModuleRef to which all resolved factories are bound.\n */\n constructor(ngModule) {\n super();\n this.ngModule = ngModule;\n }\n resolveComponentFactory(component) {\n ngDevMode && assertComponentType(component);\n const componentDef = getComponentDef(component);\n return new ComponentFactory(componentDef, this.ngModule);\n }\n}\nfunction toRefArray(map) {\n const array = [];\n for (const publicName in map) {\n if (!map.hasOwnProperty(publicName)) {\n continue;\n }\n const value = map[publicName];\n if (value === undefined) {\n continue;\n }\n array.push({\n propName: Array.isArray(value) ? value[0] : value,\n templateName: publicName,\n });\n }\n return array;\n}\nfunction getNamespace(elementName) {\n const name = elementName.toLowerCase();\n return name === 'svg' ? SVG_NAMESPACE : (name === 'math' ? MATH_ML_NAMESPACE : null);\n}\n/**\n * Injector that looks up a value using a specific injector, before falling back to the module\n * injector. Used primarily when creating components or embedded views dynamically.\n */\nclass ChainedInjector {\n constructor(injector, parentInjector) {\n this.injector = injector;\n this.parentInjector = parentInjector;\n }\n get(token, notFoundValue, flags) {\n flags = convertToBitFlags(flags);\n const value = this.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);\n if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR ||\n notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {\n // Return the value from the root element injector when\n // - it provides it\n // (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n // - the module injector should not be checked\n // (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n return value;\n }\n return this.parentInjector.get(token, notFoundValue, flags);\n }\n}\n/**\n * ComponentFactory interface implementation.\n */\nclass ComponentFactory extends ComponentFactory$1 {\n get inputs() {\n const componentDef = this.componentDef;\n const inputTransforms = componentDef.inputTransforms;\n const refArray = toRefArray(componentDef.inputs);\n if (inputTransforms !== null) {\n for (const input of refArray) {\n if (inputTransforms.hasOwnProperty(input.propName)) {\n input.transform = inputTransforms[input.propName];\n }\n }\n }\n return refArray;\n }\n get outputs() {\n return toRefArray(this.componentDef.outputs);\n }\n /**\n * @param componentDef The component definition.\n * @param ngModule The NgModuleRef to which the factory is bound.\n */\n constructor(componentDef, ngModule) {\n super();\n this.componentDef = componentDef;\n this.ngModule = ngModule;\n this.componentType = componentDef.type;\n this.selector = stringifyCSSSelectorList(componentDef.selectors);\n this.ngContentSelectors =\n componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];\n this.isBoundToModule = !!ngModule;\n }\n create(injector, projectableNodes, rootSelectorOrNode, environmentInjector) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Check if the component is orphan\n if (ngDevMode && (typeof ngJitMode === 'undefined' || ngJitMode) &&\n this.componentDef.debugInfo?.forbidOrphanRendering) {\n if (depsTracker.isOrphanComponent(this.componentType)) {\n throw new RuntimeError(1001 /* RuntimeErrorCode.RUNTIME_DEPS_ORPHAN_COMPONENT */, `Orphan component found! Trying to render the component ${debugStringifyTypeForError(this.componentType)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`);\n }\n }\n environmentInjector = environmentInjector || this.ngModule;\n let realEnvironmentInjector = environmentInjector instanceof EnvironmentInjector ?\n environmentInjector :\n environmentInjector?.injector;\n if (realEnvironmentInjector && this.componentDef.getStandaloneInjector !== null) {\n realEnvironmentInjector =\n this.componentDef.getStandaloneInjector(realEnvironmentInjector) ||\n realEnvironmentInjector;\n }\n const rootViewInjector = realEnvironmentInjector ?\n new ChainedInjector(injector, realEnvironmentInjector) :\n injector;\n const rendererFactory = rootViewInjector.get(RendererFactory2, null);\n if (rendererFactory === null) {\n throw new RuntimeError(407 /* RuntimeErrorCode.RENDERER_NOT_FOUND */, ngDevMode &&\n 'Angular was not able to inject a renderer (RendererFactory2). ' +\n 'Likely this is due to a broken DI hierarchy. ' +\n 'Make sure that any injector used to create this component has a correct parent.');\n }\n const sanitizer = rootViewInjector.get(Sanitizer, null);\n const afterRenderEventManager = rootViewInjector.get(AfterRenderEventManager, null);\n const changeDetectionScheduler = rootViewInjector.get(ChangeDetectionScheduler, null);\n const environment = {\n rendererFactory,\n sanitizer,\n // We don't use inline effects (yet).\n inlineEffectRunner: null,\n afterRenderEventManager,\n changeDetectionScheduler,\n };\n const hostRenderer = rendererFactory.createRenderer(null, this.componentDef);\n // Determine a tag name used for creating host elements when this component is created\n // dynamically. Default to 'div' if this component did not specify any tag name in its\n // selector.\n const elementName = this.componentDef.selectors[0][0] || 'div';\n const hostRNode = rootSelectorOrNode ?\n locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation, rootViewInjector) :\n createElementNode(hostRenderer, elementName, getNamespace(elementName));\n let rootFlags = 512 /* LViewFlags.IsRoot */;\n if (this.componentDef.signals) {\n rootFlags |= 4096 /* LViewFlags.SignalView */;\n }\n else if (!this.componentDef.onPush) {\n rootFlags |= 16 /* LViewFlags.CheckAlways */;\n }\n let hydrationInfo = null;\n if (hostRNode !== null) {\n hydrationInfo = retrieveHydrationInfo(hostRNode, rootViewInjector, true /* isRootView */);\n }\n // Create the root view. Uses empty TView and ContentTemplate.\n const rootTView = createTView(0 /* TViewType.Root */, null, null, 1, 0, null, null, null, null, null, null);\n const rootLView = createLView(null, rootTView, null, rootFlags, null, null, environment, hostRenderer, rootViewInjector, null, hydrationInfo);\n // rootView is the parent when bootstrapping\n // TODO(misko): it looks like we are entering view here but we don't really need to as\n // `renderView` does that. However as the code is written it is needed because\n // `createRootComponentView` and `createRootComponent` both read global state. Fixing those\n // issues would allow us to drop this.\n enterView(rootLView);\n let component;\n let tElementNode;\n try {\n const rootComponentDef = this.componentDef;\n let rootDirectives;\n let hostDirectiveDefs = null;\n if (rootComponentDef.findHostDirectiveDefs) {\n rootDirectives = [];\n hostDirectiveDefs = new Map();\n rootComponentDef.findHostDirectiveDefs(rootComponentDef, rootDirectives, hostDirectiveDefs);\n rootDirectives.push(rootComponentDef);\n ngDevMode && assertNoDuplicateDirectives(rootDirectives);\n }\n else {\n rootDirectives = [rootComponentDef];\n }\n const hostTNode = createRootComponentTNode(rootLView, hostRNode);\n const componentView = createRootComponentView(hostTNode, hostRNode, rootComponentDef, rootDirectives, rootLView, environment, hostRenderer);\n tElementNode = getTNode(rootTView, HEADER_OFFSET);\n // TODO(crisbeto): in practice `hostRNode` should always be defined, but there are some\n // tests where the renderer is mocked out and `undefined` is returned. We should update the\n // tests so that this check can be removed.\n if (hostRNode) {\n setRootNodeAttributes(hostRenderer, rootComponentDef, hostRNode, rootSelectorOrNode);\n }\n if (projectableNodes !== undefined) {\n projectNodes(tElementNode, this.ngContentSelectors, projectableNodes);\n }\n // TODO: should LifecycleHooksFeature and other host features be generated by the compiler\n // and executed here? Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref\n component = createRootComponent(componentView, rootComponentDef, rootDirectives, hostDirectiveDefs, rootLView, [LifecycleHooksFeature]);\n renderView(rootTView, rootLView, null);\n }\n finally {\n leaveView();\n }\n return new ComponentRef(this.componentType, component, createElementRef(tElementNode, rootLView), rootLView, tElementNode);\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Represents an instance of a Component created via a {@link ComponentFactory}.\n *\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\n * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}\n * method.\n *\n */\nclass ComponentRef extends ComponentRef$1 {\n constructor(componentType, instance, location, _rootLView, _tNode) {\n super();\n this.location = location;\n this._rootLView = _rootLView;\n this._tNode = _tNode;\n this.previousInputValues = null;\n this.instance = instance;\n this.hostView = this.changeDetectorRef = new ViewRef$1(_rootLView, undefined, /* _cdRefInjectingView */ false);\n this.componentType = componentType;\n }\n setInput(name, value) {\n const inputData = this._tNode.inputs;\n let dataValue;\n if (inputData !== null && (dataValue = inputData[name])) {\n this.previousInputValues ??= new Map();\n // Do not set the input if it is the same as the last value\n // This behavior matches `bindingUpdated` when binding inputs in templates.\n if (this.previousInputValues.has(name) &&\n Object.is(this.previousInputValues.get(name), value)) {\n return;\n }\n const lView = this._rootLView;\n setInputsForProperty(lView[TVIEW], lView, dataValue, name, value);\n this.previousInputValues.set(name, value);\n const childComponentLView = getComponentLViewByIndex(this._tNode.index, lView);\n markViewDirty(childComponentLView);\n }\n else {\n if (ngDevMode) {\n const cmpNameForError = stringifyForError(this.componentType);\n let message = `Can't set value of the '${name}' input on the '${cmpNameForError}' component. `;\n message += `Make sure that the '${name}' property is annotated with @Input() or a mapped @Input('${name}') exists.`;\n reportUnknownPropertyError(message);\n }\n }\n }\n get injector() {\n return new NodeInjector(this._tNode, this._rootLView);\n }\n destroy() {\n this.hostView.destroy();\n }\n onDestroy(callback) {\n this.hostView.onDestroy(callback);\n }\n}\n/** Creates a TNode that can be used to instantiate a root component. */\nfunction createRootComponentTNode(lView, rNode) {\n const tView = lView[TVIEW];\n const index = HEADER_OFFSET;\n ngDevMode && assertIndexInRange(lView, index);\n lView[index] = rNode;\n // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at\n // the same time we want to communicate the debug `TNode` that this is a special `TNode`\n // representing a host element.\n return getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, '#host', null);\n}\n/**\n * Creates the root component view and the root component node.\n *\n * @param hostRNode Render host element.\n * @param rootComponentDef ComponentDef\n * @param rootView The parent view where the host node is stored\n * @param rendererFactory Factory to be used for creating child renderers.\n * @param hostRenderer The current renderer\n * @param sanitizer The sanitizer, if provided\n *\n * @returns Component view created\n */\nfunction createRootComponentView(tNode, hostRNode, rootComponentDef, rootDirectives, rootView, environment, hostRenderer) {\n const tView = rootView[TVIEW];\n applyRootComponentStyling(rootDirectives, tNode, hostRNode, hostRenderer);\n // Hydration info is on the host element and needs to be retrieved\n // and passed to the component LView.\n let hydrationInfo = null;\n if (hostRNode !== null) {\n hydrationInfo = retrieveHydrationInfo(hostRNode, rootView[INJECTOR]);\n }\n const viewRenderer = environment.rendererFactory.createRenderer(hostRNode, rootComponentDef);\n let lViewFlags = 16 /* LViewFlags.CheckAlways */;\n if (rootComponentDef.signals) {\n lViewFlags = 4096 /* LViewFlags.SignalView */;\n }\n else if (rootComponentDef.onPush) {\n lViewFlags = 64 /* LViewFlags.Dirty */;\n }\n const componentView = createLView(rootView, getOrCreateComponentTView(rootComponentDef), null, lViewFlags, rootView[tNode.index], tNode, environment, viewRenderer, null, null, hydrationInfo);\n if (tView.firstCreatePass) {\n markAsComponentHost(tView, tNode, rootDirectives.length - 1);\n }\n addToViewTree(rootView, componentView);\n // Store component view at node index, with node as the HOST\n return rootView[tNode.index] = componentView;\n}\n/** Sets up the styling information on a root component. */\nfunction applyRootComponentStyling(rootDirectives, tNode, rNode, hostRenderer) {\n for (const def of rootDirectives) {\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);\n }\n if (tNode.mergedAttrs !== null) {\n computeStaticStyling(tNode, tNode.mergedAttrs, true);\n if (rNode !== null) {\n setupStaticAttributes(hostRenderer, rNode, tNode);\n }\n }\n}\n/**\n * Creates a root component and sets it up with features and host bindings.Shared by\n * renderComponent() and ViewContainerRef.createComponent().\n */\nfunction createRootComponent(componentView, rootComponentDef, rootDirectives, hostDirectiveDefs, rootLView, hostFeatures) {\n const rootTNode = getCurrentTNode();\n ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');\n const tView = rootLView[TVIEW];\n const native = getNativeByTNode(rootTNode, rootLView);\n initializeDirectives(tView, rootLView, rootTNode, rootDirectives, null, hostDirectiveDefs);\n for (let i = 0; i < rootDirectives.length; i++) {\n const directiveIndex = rootTNode.directiveStart + i;\n const directiveInstance = getNodeInjectable(rootLView, tView, directiveIndex, rootTNode);\n attachPatchData(directiveInstance, rootLView);\n }\n invokeDirectivesHostBindings(tView, rootLView, rootTNode);\n if (native) {\n attachPatchData(native, rootLView);\n }\n // We're guaranteed for the `componentOffset` to be positive here\n // since a root component always matches a component def.\n ngDevMode &&\n assertGreaterThan(rootTNode.componentOffset, -1, 'componentOffset must be great than -1');\n const component = getNodeInjectable(rootLView, tView, rootTNode.directiveStart + rootTNode.componentOffset, rootTNode);\n componentView[CONTEXT] = rootLView[CONTEXT] = component;\n if (hostFeatures !== null) {\n for (const feature of hostFeatures) {\n feature(component, rootComponentDef);\n }\n }\n // We want to generate an empty QueryList for root content queries for backwards\n // compatibility with ViewEngine.\n executeContentQueries(tView, rootTNode, rootLView);\n return component;\n}\n/** Sets the static attributes on a root component. */\nfunction setRootNodeAttributes(hostRenderer, componentDef, hostRNode, rootSelectorOrNode) {\n if (rootSelectorOrNode) {\n // The placeholder will be replaced with the actual version at build time.\n setUpAttributes(hostRenderer, hostRNode, ['ng-version', '17.3.12']);\n }\n else {\n // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`\n // is not defined), also apply attributes and classes extracted from component selector.\n // Extract attributes and classes from the first selector only to match VE behavior.\n const { attrs, classes } = extractAttrsAndClassesFromSelector(componentDef.selectors[0]);\n if (attrs) {\n setUpAttributes(hostRenderer, hostRNode, attrs);\n }\n if (classes && classes.length > 0) {\n writeDirectClass(hostRenderer, hostRNode, classes.join(' '));\n }\n }\n}\n/** Projects the `projectableNodes` that were specified when creating a root component. */\nfunction projectNodes(tNode, ngContentSelectors, projectableNodes) {\n const projection = tNode.projection = [];\n for (let i = 0; i < ngContentSelectors.length; i++) {\n const nodesforSlot = projectableNodes[i];\n // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade\n // case). Here we do normalize passed data structure to be an array of arrays to avoid\n // complex checks down the line.\n // We also normalize the length of the passed in projectable nodes (to match the number of\n // <ng-container> slots defined by a component).\n projection.push(nodesforSlot != null ? Array.from(nodesforSlot) : null);\n }\n}\n/**\n * Used to enable lifecycle hooks on the root component.\n *\n * Include this feature when calling `renderComponent` if the root component\n * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't\n * be called properly.\n *\n * Example:\n *\n * ```\n * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});\n * ```\n */\nfunction LifecycleHooksFeature() {\n const tNode = getCurrentTNode();\n ngDevMode && assertDefined(tNode, 'TNode is required');\n registerPostOrderHooks(getLView()[TVIEW], tNode);\n}\n\n/**\n * Represents a container where one or more views can be attached to a component.\n *\n * Can contain *host views* (created by instantiating a\n * component with the `createComponent()` method), and *embedded views*\n * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).\n *\n * A view container instance can contain other view containers,\n * creating a [view hierarchy](guide/glossary#view-hierarchy).\n *\n * @usageNotes\n *\n * The example below demonstrates how the `createComponent` function can be used\n * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,\n * so that it gets included into change detection cycles.\n *\n * Note: the example uses standalone components, but the function can also be used for\n * non-standalone components (declared in an NgModule) as well.\n *\n * ```typescript\n * @Component({\n * standalone: true,\n * selector: 'dynamic',\n * template: `<span>This is a content of a dynamic component.</span>`,\n * })\n * class DynamicComponent {\n * vcr = inject(ViewContainerRef);\n * }\n *\n * @Component({\n * standalone: true,\n * selector: 'app',\n * template: `<main>Hi! This is the main content.</main>`,\n * })\n * class AppComponent {\n * vcr = inject(ViewContainerRef);\n *\n * ngAfterViewInit() {\n * const compRef = this.vcr.createComponent(DynamicComponent);\n * compRef.changeDetectorRef.detectChanges();\n * }\n * }\n * ```\n *\n * @see {@link ComponentRef}\n * @see {@link EmbeddedViewRef}\n *\n * @publicApi\n */\nclass ViewContainerRef {\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = injectViewContainerRef; }\n}\n/**\n * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef\n * already exists, retrieves the existing ViewContainerRef.\n *\n * @returns The ViewContainerRef instance to use\n */\nfunction injectViewContainerRef() {\n const previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}\nconst VE_ViewContainerRef = ViewContainerRef;\n// TODO(alxhub): cleaning up this indirection triggers a subtle bug in Closure in g3. Once the fix\n// for that lands, this can be cleaned up.\nconst R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {\n constructor(_lContainer, _hostTNode, _hostLView) {\n super();\n this._lContainer = _lContainer;\n this._hostTNode = _hostTNode;\n this._hostLView = _hostLView;\n }\n get element() {\n return createElementRef(this._hostTNode, this._hostLView);\n }\n get injector() {\n return new NodeInjector(this._hostTNode, this._hostLView);\n }\n /** @deprecated No replacement */\n get parentInjector() {\n const parentLocation = getParentInjectorLocation(this._hostTNode, this._hostLView);\n if (hasParentInjector(parentLocation)) {\n const parentView = getParentInjectorView(parentLocation, this._hostLView);\n const injectorIndex = getParentInjectorIndex(parentLocation);\n ngDevMode && assertNodeInjector(parentView, injectorIndex);\n const parentTNode = parentView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n return new NodeInjector(parentTNode, parentView);\n }\n else {\n return new NodeInjector(null, this._hostLView);\n }\n }\n clear() {\n while (this.length > 0) {\n this.remove(this.length - 1);\n }\n }\n get(index) {\n const viewRefs = getViewRefs(this._lContainer);\n return viewRefs !== null && viewRefs[index] || null;\n }\n get length() {\n return this._lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n createEmbeddedView(templateRef, context, indexOrOptions) {\n let index;\n let injector;\n if (typeof indexOrOptions === 'number') {\n index = indexOrOptions;\n }\n else if (indexOrOptions != null) {\n index = indexOrOptions.index;\n injector = indexOrOptions.injector;\n }\n const dehydratedView = findMatchingDehydratedView(this._lContainer, templateRef.ssrId);\n const viewRef = templateRef.createEmbeddedViewImpl(context || {}, injector, dehydratedView);\n this.insertImpl(viewRef, index, shouldAddViewToDom(this._hostTNode, dehydratedView));\n return viewRef;\n }\n createComponent(componentFactoryOrType, indexOrOptions, injector, projectableNodes, environmentInjector) {\n const isComponentFactory = componentFactoryOrType && !isType(componentFactoryOrType);\n let index;\n // This function supports 2 signatures and we need to handle options correctly for both:\n // 1. When first argument is a Component type. This signature also requires extra\n // options to be provided as object (more ergonomic option).\n // 2. First argument is a Component factory. In this case extra options are represented as\n // positional arguments. This signature is less ergonomic and will be deprecated.\n if (isComponentFactory) {\n if (ngDevMode) {\n assertEqual(typeof indexOrOptions !== 'object', true, 'It looks like Component factory was provided as the first argument ' +\n 'and an options object as the second argument. This combination of arguments ' +\n 'is incompatible. You can either change the first argument to provide Component ' +\n 'type or change the second argument to be a number (representing an index at ' +\n 'which to insert the new component\\'s host view into this container)');\n }\n index = indexOrOptions;\n }\n else {\n if (ngDevMode) {\n assertDefined(getComponentDef(componentFactoryOrType), `Provided Component class doesn't contain Component definition. ` +\n `Please check whether provided class has @Component decorator.`);\n assertEqual(typeof indexOrOptions !== 'number', true, 'It looks like Component type was provided as the first argument ' +\n 'and a number (representing an index at which to insert the new component\\'s ' +\n 'host view into this container as the second argument. This combination of arguments ' +\n 'is incompatible. Please use an object as the second argument instead.');\n }\n const options = (indexOrOptions || {});\n if (ngDevMode && options.environmentInjector && options.ngModuleRef) {\n throwError(`Cannot pass both environmentInjector and ngModuleRef options to createComponent().`);\n }\n index = options.index;\n injector = options.injector;\n projectableNodes = options.projectableNodes;\n environmentInjector = options.environmentInjector || options.ngModuleRef;\n }\n const componentFactory = isComponentFactory ?\n componentFactoryOrType :\n new ComponentFactory(getComponentDef(componentFactoryOrType));\n const contextInjector = injector || this.parentInjector;\n // If an `NgModuleRef` is not provided explicitly, try retrieving it from the DI tree.\n if (!environmentInjector && componentFactory.ngModule == null) {\n // For the `ComponentFactory` case, entering this logic is very unlikely, since we expect that\n // an instance of a `ComponentFactory`, resolved via `ComponentFactoryResolver` would have an\n // `ngModule` field. This is possible in some test scenarios and potentially in some JIT-based\n // use-cases. For the `ComponentFactory` case we preserve backwards-compatibility and try\n // using a provided injector first, then fall back to the parent injector of this\n // `ViewContainerRef` instance.\n //\n // For the factory-less case, it's critical to establish a connection with the module\n // injector tree (by retrieving an instance of an `NgModuleRef` and accessing its injector),\n // so that a component can use DI tokens provided in MgModules. For this reason, we can not\n // rely on the provided injector, since it might be detached from the DI tree (for example, if\n // it was created via `Injector.create` without specifying a parent injector, or if an\n // injector is retrieved from an `NgModuleRef` created via `createNgModule` using an\n // NgModule outside of a module tree). Instead, we always use `ViewContainerRef`'s parent\n // injector, which is normally connected to the DI tree, which includes module injector\n // subtree.\n const _injector = isComponentFactory ? contextInjector : this.parentInjector;\n // DO NOT REFACTOR. The code here used to have a `injector.get(NgModuleRef, null) ||\n // undefined` expression which seems to cause internal google apps to fail. This is documented\n // in the following internal bug issue: go/b/142967802\n const result = _injector.get(EnvironmentInjector, null);\n if (result) {\n environmentInjector = result;\n }\n }\n const componentDef = getComponentDef(componentFactory.componentType ?? {});\n const dehydratedView = findMatchingDehydratedView(this._lContainer, componentDef?.id ?? null);\n const rNode = dehydratedView?.firstChild ?? null;\n const componentRef = componentFactory.create(contextInjector, projectableNodes, rNode, environmentInjector);\n this.insertImpl(componentRef.hostView, index, shouldAddViewToDom(this._hostTNode, dehydratedView));\n return componentRef;\n }\n insert(viewRef, index) {\n return this.insertImpl(viewRef, index, true);\n }\n insertImpl(viewRef, index, addToDOM) {\n const lView = viewRef._lView;\n if (ngDevMode && viewRef.destroyed) {\n throw new Error('Cannot insert a destroyed View in a ViewContainer!');\n }\n if (viewAttachedToContainer(lView)) {\n // If view is already attached, detach it first so we clean up references appropriately.\n const prevIdx = this.indexOf(viewRef);\n // A view might be attached either to this or a different container. The `prevIdx` for\n // those cases will be:\n // equal to -1 for views attached to this ViewContainerRef\n // >= 0 for views attached to a different ViewContainerRef\n if (prevIdx !== -1) {\n this.detach(prevIdx);\n }\n else {\n const prevLContainer = lView[PARENT];\n ngDevMode &&\n assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.');\n // We need to re-create a R3ViewContainerRef instance since those are not stored on\n // LView (nor anywhere else).\n const prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);\n prevVCRef.detach(prevVCRef.indexOf(viewRef));\n }\n }\n // Logical operation of adding `LView` to `LContainer`\n const adjustedIdx = this._adjustIndex(index);\n const lContainer = this._lContainer;\n addLViewToLContainer(lContainer, lView, adjustedIdx, addToDOM);\n viewRef.attachToViewContainerRef();\n addToArray(getOrCreateViewRefs(lContainer), adjustedIdx, viewRef);\n return viewRef;\n }\n move(viewRef, newIndex) {\n if (ngDevMode && viewRef.destroyed) {\n throw new Error('Cannot move a destroyed View in a ViewContainer!');\n }\n return this.insert(viewRef, newIndex);\n }\n indexOf(viewRef) {\n const viewRefsArr = getViewRefs(this._lContainer);\n return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;\n }\n remove(index) {\n const adjustedIdx = this._adjustIndex(index, -1);\n const detachedView = detachView(this._lContainer, adjustedIdx);\n if (detachedView) {\n // Before destroying the view, remove it from the container's array of `ViewRef`s.\n // This ensures the view container length is updated before calling\n // `destroyLView`, which could recursively call view container methods that\n // rely on an accurate container length.\n // (e.g. a method on this view container being called by a child directive's OnDestroy\n // lifecycle hook)\n removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx);\n destroyLView(detachedView[TVIEW], detachedView);\n }\n }\n detach(index) {\n const adjustedIdx = this._adjustIndex(index, -1);\n const view = detachView(this._lContainer, adjustedIdx);\n const wasDetached = view && removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx) != null;\n return wasDetached ? new ViewRef$1(view) : null;\n }\n _adjustIndex(index, shift = 0) {\n if (index == null) {\n return this.length + shift;\n }\n if (ngDevMode) {\n assertGreaterThan(index, -1, `ViewRef index must be positive, got ${index}`);\n // +1 because it's legal to insert at the end.\n assertLessThan(index, this.length + 1 + shift, 'index');\n }\n return index;\n }\n};\nfunction getViewRefs(lContainer) {\n return lContainer[VIEW_REFS];\n}\nfunction getOrCreateViewRefs(lContainer) {\n return (lContainer[VIEW_REFS] || (lContainer[VIEW_REFS] = []));\n}\n/**\n * Creates a ViewContainerRef and stores it on the injector.\n *\n * @param hostTNode The node that is requesting a ViewContainerRef\n * @param hostLView The view to which the node belongs\n * @returns The ViewContainerRef instance to use\n */\nfunction createContainerRef(hostTNode, hostLView) {\n ngDevMode && assertTNodeType(hostTNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n let lContainer;\n const slotValue = hostLView[hostTNode.index];\n if (isLContainer(slotValue)) {\n // If the host is a container, we don't need to create a new LContainer\n lContainer = slotValue;\n }\n else {\n // An LContainer anchor can not be `null`, but we set it here temporarily\n // and update to the actual value later in this function (see\n // `_locateOrCreateAnchorNode`).\n lContainer = createLContainer(slotValue, hostLView, null, hostTNode);\n hostLView[hostTNode.index] = lContainer;\n addToViewTree(hostLView, lContainer);\n }\n _locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue);\n return new R3ViewContainerRef(lContainer, hostTNode, hostLView);\n}\n/**\n * Creates and inserts a comment node that acts as an anchor for a view container.\n *\n * If the host is a regular element, we have to insert a comment node manually which will\n * be used as an anchor when inserting elements. In this specific case we use low-level DOM\n * manipulation to insert it.\n */\nfunction insertAnchorNode(hostLView, hostTNode) {\n const renderer = hostLView[RENDERER];\n ngDevMode && ngDevMode.rendererCreateComment++;\n const commentNode = renderer.createComment(ngDevMode ? 'container' : '');\n const hostNative = getNativeByTNode(hostTNode, hostLView);\n const parentOfHostNative = nativeParentNode(renderer, hostNative);\n nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);\n return commentNode;\n}\nlet _locateOrCreateAnchorNode = createAnchorNode;\nlet _populateDehydratedViewsInLContainer = () => false; // noop by default\n/**\n * Looks up dehydrated views that belong to a given LContainer and populates\n * this information into the `LContainer[DEHYDRATED_VIEWS]` slot. When running\n * in client-only mode, this function is a noop.\n *\n * @param lContainer LContainer that should be populated.\n * @param tNode Corresponding TNode.\n * @param hostLView LView that hosts LContainer.\n * @returns a boolean flag that indicates whether a populating operation\n * was successful. The operation might be unsuccessful in case is has completed\n * previously, we are rendering in client-only mode or this content is located\n * in a skip hydration section.\n */\nfunction populateDehydratedViewsInLContainer(lContainer, tNode, hostLView) {\n return _populateDehydratedViewsInLContainer(lContainer, tNode, hostLView);\n}\n/**\n * Regular creation mode: an anchor is created and\n * assigned to the `lContainer[NATIVE]` slot.\n */\nfunction createAnchorNode(lContainer, hostLView, hostTNode, slotValue) {\n // We already have a native element (anchor) set, return.\n if (lContainer[NATIVE])\n return;\n let commentNode;\n // If the host is an element container, the native host element is guaranteed to be a\n // comment and we can reuse that comment as anchor element for the new LContainer.\n // The comment node in question is already part of the DOM structure so we don't need to append\n // it again.\n if (hostTNode.type & 8 /* TNodeType.ElementContainer */) {\n commentNode = unwrapRNode(slotValue);\n }\n else {\n commentNode = insertAnchorNode(hostLView, hostTNode);\n }\n lContainer[NATIVE] = commentNode;\n}\n/**\n * Hydration logic that looks up all dehydrated views in this container\n * and puts them into `lContainer[DEHYDRATED_VIEWS]` slot.\n *\n * @returns a boolean flag that indicates whether a populating operation\n * was successful. The operation might be unsuccessful in case is has completed\n * previously, we are rendering in client-only mode or this content is located\n * in a skip hydration section.\n */\nfunction populateDehydratedViewsInLContainerImpl(lContainer, tNode, hostLView) {\n // We already have a native element (anchor) set and the process\n // of finding dehydrated views happened (so the `lContainer[DEHYDRATED_VIEWS]`\n // is not null), exit early.\n if (lContainer[NATIVE] && lContainer[DEHYDRATED_VIEWS]) {\n return true;\n }\n const hydrationInfo = hostLView[HYDRATION];\n const noOffsetIndex = tNode.index - HEADER_OFFSET;\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock(tNode) ||\n isDisconnectedNode$1(hydrationInfo, noOffsetIndex);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return false;\n }\n // Hydration mode, looking up an anchor node and dehydrated views in DOM.\n const currentRNode = getSegmentHead(hydrationInfo, noOffsetIndex);\n const serializedViews = hydrationInfo.data[CONTAINERS]?.[noOffsetIndex];\n ngDevMode &&\n assertDefined(serializedViews, 'Unexpected state: no hydration info available for a given TNode, ' +\n 'which represents a view container.');\n const [commentNode, dehydratedViews] = locateDehydratedViewsInContainer(currentRNode, serializedViews);\n if (ngDevMode) {\n validateMatchingNode(commentNode, Node.COMMENT_NODE, null, hostLView, tNode, true);\n // Do not throw in case this node is already claimed (thus `false` as a second\n // argument). If this container is created based on an `<ng-template>`, the comment\n // node would be already claimed from the `template` instruction. If an element acts\n // as an anchor (e.g. <div #vcRef>), a separate comment node would be created/located,\n // so we need to claim it here.\n markRNodeAsClaimedByHydration(commentNode, false);\n }\n lContainer[NATIVE] = commentNode;\n lContainer[DEHYDRATED_VIEWS] = dehydratedViews;\n return true;\n}\nfunction locateOrCreateAnchorNode(lContainer, hostLView, hostTNode, slotValue) {\n if (!_populateDehydratedViewsInLContainer(lContainer, hostTNode, hostLView)) {\n // Populating dehydrated views operation returned `false`, which indicates\n // that the logic was running in client-only mode, this an anchor comment\n // node should be created for this container.\n createAnchorNode(lContainer, hostLView, hostTNode, slotValue);\n }\n}\nfunction enableLocateOrCreateContainerRefImpl() {\n _locateOrCreateAnchorNode = locateOrCreateAnchorNode;\n _populateDehydratedViewsInLContainer = populateDehydratedViewsInLContainerImpl;\n}\n\nclass LQuery_ {\n constructor(queryList) {\n this.queryList = queryList;\n this.matches = null;\n }\n clone() {\n return new LQuery_(this.queryList);\n }\n setDirty() {\n this.queryList.setDirty();\n }\n}\nclass LQueries_ {\n constructor(queries = []) {\n this.queries = queries;\n }\n createEmbeddedView(tView) {\n const tQueries = tView.queries;\n if (tQueries !== null) {\n const noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;\n const viewLQueries = [];\n // An embedded view has queries propagated from a declaration view at the beginning of the\n // TQueries collection and up until a first content query declared in the embedded view. Only\n // propagated LQueries are created at this point (LQuery corresponding to declared content\n // queries will be instantiated from the content query instructions for each directive).\n for (let i = 0; i < noOfInheritedQueries; i++) {\n const tQuery = tQueries.getByIndex(i);\n const parentLQuery = this.queries[tQuery.indexInDeclarationView];\n viewLQueries.push(parentLQuery.clone());\n }\n return new LQueries_(viewLQueries);\n }\n return null;\n }\n insertView(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n detachView(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n finishViewCreation(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n dirtyQueriesWithMatches(tView) {\n for (let i = 0; i < this.queries.length; i++) {\n if (getTQuery(tView, i).matches !== null) {\n this.queries[i].setDirty();\n }\n }\n }\n}\nclass TQueryMetadata_ {\n constructor(predicate, flags, read = null) {\n this.flags = flags;\n this.read = read;\n // Compiler might not be able to pre-optimize and split multiple selectors.\n if (typeof predicate === 'string') {\n this.predicate = splitQueryMultiSelectors(predicate);\n }\n else {\n this.predicate = predicate;\n }\n }\n}\nclass TQueries_ {\n constructor(queries = []) {\n this.queries = queries;\n }\n elementStart(tView, tNode) {\n ngDevMode &&\n assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].elementStart(tView, tNode);\n }\n }\n elementEnd(tNode) {\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].elementEnd(tNode);\n }\n }\n embeddedTView(tNode) {\n let queriesForTemplateRef = null;\n for (let i = 0; i < this.length; i++) {\n const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;\n const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);\n if (tqueryClone) {\n tqueryClone.indexInDeclarationView = i;\n if (queriesForTemplateRef !== null) {\n queriesForTemplateRef.push(tqueryClone);\n }\n else {\n queriesForTemplateRef = [tqueryClone];\n }\n }\n }\n return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;\n }\n template(tView, tNode) {\n ngDevMode &&\n assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].template(tView, tNode);\n }\n }\n getByIndex(index) {\n ngDevMode && assertIndexInRange(this.queries, index);\n return this.queries[index];\n }\n get length() {\n return this.queries.length;\n }\n track(tquery) {\n this.queries.push(tquery);\n }\n}\nclass TQuery_ {\n constructor(metadata, nodeIndex = -1) {\n this.metadata = metadata;\n this.matches = null;\n this.indexInDeclarationView = -1;\n this.crossesNgTemplate = false;\n /**\n * A flag indicating if a given query still applies to nodes it is crossing. We use this flag\n * (alongside with _declarationNodeIndex) to know when to stop applying content queries to\n * elements in a template.\n */\n this._appliesToNextNode = true;\n this._declarationNodeIndex = nodeIndex;\n }\n elementStart(tView, tNode) {\n if (this.isApplyingToNode(tNode)) {\n this.matchTNode(tView, tNode);\n }\n }\n elementEnd(tNode) {\n if (this._declarationNodeIndex === tNode.index) {\n this._appliesToNextNode = false;\n }\n }\n template(tView, tNode) {\n this.elementStart(tView, tNode);\n }\n embeddedTView(tNode, childQueryIndex) {\n if (this.isApplyingToNode(tNode)) {\n this.crossesNgTemplate = true;\n // A marker indicating a `<ng-template>` element (a placeholder for query results from\n // embedded views created based on this `<ng-template>`).\n this.addMatch(-tNode.index, childQueryIndex);\n return new TQuery_(this.metadata);\n }\n return null;\n }\n isApplyingToNode(tNode) {\n if (this._appliesToNextNode &&\n (this.metadata.flags & 1 /* QueryFlags.descendants */) !== 1 /* QueryFlags.descendants */) {\n const declarationNodeIdx = this._declarationNodeIndex;\n let parent = tNode.parent;\n // Determine if a given TNode is a \"direct\" child of a node on which a content query was\n // declared (only direct children of query's host node can match with the descendants: false\n // option). There are 3 main use-case / conditions to consider here:\n // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query\n // host node;\n // - <needs-target><ng-template [ngIf]=\"true\"><i #target></i></ng-template></needs-target>:\n // here <i #target> parent node is null;\n // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need\n // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse\n // up past the query's host node!).\n while (parent !== null && (parent.type & 8 /* TNodeType.ElementContainer */) &&\n parent.index !== declarationNodeIdx) {\n parent = parent.parent;\n }\n return declarationNodeIdx === (parent !== null ? parent.index : -1);\n }\n return this._appliesToNextNode;\n }\n matchTNode(tView, tNode) {\n const predicate = this.metadata.predicate;\n if (Array.isArray(predicate)) {\n for (let i = 0; i < predicate.length; i++) {\n const name = predicate[i];\n this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name));\n // Also try matching the name to a provider since strings can be used as DI tokens too.\n this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));\n }\n }\n else {\n if (predicate === TemplateRef) {\n if (tNode.type & 4 /* TNodeType.Container */) {\n this.matchTNodeWithReadOption(tView, tNode, -1);\n }\n }\n else {\n this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));\n }\n }\n }\n matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {\n if (nodeMatchIdx !== null) {\n const read = this.metadata.read;\n if (read !== null) {\n if (read === ElementRef || read === ViewContainerRef ||\n read === TemplateRef && (tNode.type & 4 /* TNodeType.Container */)) {\n this.addMatch(tNode.index, -2);\n }\n else {\n const directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);\n if (directiveOrProviderIdx !== null) {\n this.addMatch(tNode.index, directiveOrProviderIdx);\n }\n }\n }\n else {\n this.addMatch(tNode.index, nodeMatchIdx);\n }\n }\n }\n addMatch(tNodeIdx, matchIdx) {\n if (this.matches === null) {\n this.matches = [tNodeIdx, matchIdx];\n }\n else {\n this.matches.push(tNodeIdx, matchIdx);\n }\n }\n}\n/**\n * Iterates over local names for a given node and returns directive index\n * (or -1 if a local name points to an element).\n *\n * @param tNode static data of a node to check\n * @param selector selector to match\n * @returns directive index, -1 or null if a selector didn't match any of the local names\n */\nfunction getIdxOfMatchingSelector(tNode, selector) {\n const localNames = tNode.localNames;\n if (localNames !== null) {\n for (let i = 0; i < localNames.length; i += 2) {\n if (localNames[i] === selector) {\n return localNames[i + 1];\n }\n }\n }\n return null;\n}\nfunction createResultByTNodeType(tNode, currentView) {\n if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {\n return createElementRef(tNode, currentView);\n }\n else if (tNode.type & 4 /* TNodeType.Container */) {\n return createTemplateRef(tNode, currentView);\n }\n return null;\n}\nfunction createResultForNode(lView, tNode, matchingIdx, read) {\n if (matchingIdx === -1) {\n // if read token and / or strategy is not specified, detect it using appropriate tNode type\n return createResultByTNodeType(tNode, lView);\n }\n else if (matchingIdx === -2) {\n // read a special token from a node injector\n return createSpecialToken(lView, tNode, read);\n }\n else {\n // read a token\n return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);\n }\n}\nfunction createSpecialToken(lView, tNode, read) {\n if (read === ElementRef) {\n return createElementRef(tNode, lView);\n }\n else if (read === TemplateRef) {\n return createTemplateRef(tNode, lView);\n }\n else if (read === ViewContainerRef) {\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n return createContainerRef(tNode, lView);\n }\n else {\n ngDevMode &&\n throwError(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify(read)}.`);\n }\n}\n/**\n * A helper function that creates query results for a given view. This function is meant to do the\n * processing once and only once for a given view instance (a set of results for a given view\n * doesn't change).\n */\nfunction materializeViewResults(tView, lView, tQuery, queryIndex) {\n const lQuery = lView[QUERIES].queries[queryIndex];\n if (lQuery.matches === null) {\n const tViewData = tView.data;\n const tQueryMatches = tQuery.matches;\n const result = [];\n for (let i = 0; tQueryMatches !== null && i < tQueryMatches.length; i += 2) {\n const matchedNodeIdx = tQueryMatches[i];\n if (matchedNodeIdx < 0) {\n // we at the <ng-template> marker which might have results in views created based on this\n // <ng-template> - those results will be in separate views though, so here we just leave\n // null as a placeholder\n result.push(null);\n }\n else {\n ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);\n const tNode = tViewData[matchedNodeIdx];\n result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));\n }\n }\n lQuery.matches = result;\n }\n return lQuery.matches;\n}\n/**\n * A helper function that collects (already materialized) query results from a tree of views,\n * starting with a provided LView.\n */\nfunction collectQueryResults(tView, lView, queryIndex, result) {\n const tQuery = tView.queries.getByIndex(queryIndex);\n const tQueryMatches = tQuery.matches;\n if (tQueryMatches !== null) {\n const lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);\n for (let i = 0; i < tQueryMatches.length; i += 2) {\n const tNodeIdx = tQueryMatches[i];\n if (tNodeIdx > 0) {\n result.push(lViewResults[i / 2]);\n }\n else {\n const childQueryIndex = tQueryMatches[i + 1];\n const declarationLContainer = lView[-tNodeIdx];\n ngDevMode && assertLContainer(declarationLContainer);\n // collect matches for views inserted in this container\n for (let i = CONTAINER_HEADER_OFFSET; i < declarationLContainer.length; i++) {\n const embeddedLView = declarationLContainer[i];\n if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {\n collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n }\n }\n // collect matches for views created from this declaration container and inserted into\n // different containers\n if (declarationLContainer[MOVED_VIEWS] !== null) {\n const embeddedLViews = declarationLContainer[MOVED_VIEWS];\n for (let i = 0; i < embeddedLViews.length; i++) {\n const embeddedLView = embeddedLViews[i];\n collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n }\n }\n }\n }\n }\n return result;\n}\nfunction loadQueryInternal(lView, queryIndex) {\n ngDevMode &&\n assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');\n ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);\n return lView[QUERIES].queries[queryIndex].queryList;\n}\n/**\n * Creates a new instance of LQuery and returns its index in the collection of LQuery objects.\n *\n * @returns index in the collection of LQuery objects\n */\nfunction createLQuery(tView, lView, flags) {\n const queryList = new QueryList((flags & 4 /* QueryFlags.emitDistinctChangesOnly */) === 4 /* QueryFlags.emitDistinctChangesOnly */);\n storeCleanupWithContext(tView, lView, queryList, queryList.destroy);\n const lQueries = (lView[QUERIES] ??= new LQueries_()).queries;\n return lQueries.push(new LQuery_(queryList)) - 1;\n}\nfunction createViewQuery(predicate, flags, read) {\n ngDevMode && assertNumber(flags, 'Expecting flags');\n const tView = getTView();\n if (tView.firstCreatePass) {\n createTQuery(tView, new TQueryMetadata_(predicate, flags, read), -1);\n if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {\n tView.staticViewQueries = true;\n }\n }\n return createLQuery(tView, getLView(), flags);\n}\nfunction createContentQuery(directiveIndex, predicate, flags, read) {\n ngDevMode && assertNumber(flags, 'Expecting flags');\n const tView = getTView();\n if (tView.firstCreatePass) {\n const tNode = getCurrentTNode();\n createTQuery(tView, new TQueryMetadata_(predicate, flags, read), tNode.index);\n saveContentQueryAndDirectiveIndex(tView, directiveIndex);\n if ((flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */) {\n tView.staticContentQueries = true;\n }\n }\n return createLQuery(tView, getLView(), flags);\n}\n/** Splits multiple selectors in the locator. */\nfunction splitQueryMultiSelectors(locator) {\n return locator.split(',').map(s => s.trim());\n}\nfunction createTQuery(tView, metadata, nodeIndex) {\n if (tView.queries === null)\n tView.queries = new TQueries_();\n tView.queries.track(new TQuery_(metadata, nodeIndex));\n}\nfunction saveContentQueryAndDirectiveIndex(tView, directiveIndex) {\n const tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);\n const lastSavedDirectiveIndex = tViewContentQueries.length ? tViewContentQueries[tViewContentQueries.length - 1] : -1;\n if (directiveIndex !== lastSavedDirectiveIndex) {\n tViewContentQueries.push(tView.queries.length - 1, directiveIndex);\n }\n}\nfunction getTQuery(tView, index) {\n ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');\n return tView.queries.getByIndex(index);\n}\n/**\n * A helper function collecting results from all the views where a given query was active.\n * @param lView\n * @param queryIndex\n */\nfunction getQueryResults(lView, queryIndex) {\n const tView = lView[TVIEW];\n const tQuery = getTQuery(tView, queryIndex);\n return tQuery.crossesNgTemplate ? collectQueryResults(tView, lView, queryIndex, []) :\n materializeViewResults(tView, lView, tQuery, queryIndex);\n}\n\n/**\n * Checks if the given `value` is a reactive `Signal`.\n */\nfunction isSignal(value) {\n return typeof value === 'function' && value[SIGNAL$1] !== undefined;\n}\n\n/** Symbol used distinguish `WritableSignal` from other non-writable signals and functions. */\nconst ɵWRITABLE_SIGNAL = /* @__PURE__ */ Symbol('WRITABLE_SIGNAL');\n/**\n * Utility function used during template type checking to extract the value from a `WritableSignal`.\n * @codeGenApi\n */\nfunction ɵunwrapWritableSignal(value) {\n // Note: the function uses `WRITABLE_SIGNAL` as a brand instead of `WritableSignal<T>`,\n // because the latter incorrectly unwraps non-signal getter functions.\n return null;\n}\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction signal(initialValue, options) {\n performanceMarkFeature('NgSignals');\n const signalFn = createSignal$1(initialValue);\n const node = signalFn[SIGNAL$1];\n if (options?.equal) {\n node.equal = options.equal;\n }\n signalFn.set = (newValue) => signalSetFn$1(node, newValue);\n signalFn.update = (updateFn) => signalUpdateFn$1(node, updateFn);\n signalFn.asReadonly = signalAsReadonlyFn.bind(signalFn);\n if (ngDevMode) {\n signalFn.toString = () => `[Signal: ${signalFn()}]`;\n }\n return signalFn;\n}\nfunction signalAsReadonlyFn() {\n const node = this[SIGNAL$1];\n if (node.readonlyFn === undefined) {\n const readonlyFn = () => this();\n readonlyFn[SIGNAL$1] = node;\n node.readonlyFn = readonlyFn;\n }\n return node.readonlyFn;\n}\n/**\n * Checks if the given `value` is a writeable signal.\n */\nfunction isWritableSignal(value) {\n return isSignal(value) && typeof value.set === 'function';\n}\n\n/**\n * A signal factory function in charge of creating a new computed signal capturing query\n * results. This centralized creation function is used by all types of queries (child / children,\n * required / optional).\n *\n * @param firstOnly indicates if all or only the first result should be returned\n * @param required indicates if at least one result is required\n * @returns a read-only signal with query results\n */\nfunction createQuerySignalFn(firstOnly, required) {\n let node;\n const signalFn = createComputed$1(() => {\n // A dedicated signal that increments its value every time a query changes its dirty status. By\n // using this signal we can implement a query as computed and avoid creation of a specialized\n // reactive node type. Please note that a query gets marked dirty under the following\n // circumstances:\n // - a view (where a query is active) finished its first creation pass;\n // - a new view is inserted / deleted and it impacts query results.\n node._dirtyCounter();\n const value = refreshSignalQuery(node, firstOnly);\n if (required && value === undefined) {\n throw new RuntimeError(-951 /* RuntimeErrorCode.REQUIRED_QUERY_NO_VALUE */, ngDevMode && 'Child query result is required but no value is available.');\n }\n return value;\n });\n node = signalFn[SIGNAL$1];\n node._dirtyCounter = signal(0);\n node._flatValue = undefined;\n if (ngDevMode) {\n signalFn.toString = () => `[Query Signal]`;\n }\n return signalFn;\n}\nfunction createSingleResultOptionalQuerySignalFn() {\n return createQuerySignalFn(/* firstOnly */ true, /* required */ false);\n}\nfunction createSingleResultRequiredQuerySignalFn() {\n return createQuerySignalFn(/* firstOnly */ true, /* required */ true);\n}\nfunction createMultiResultQuerySignalFn() {\n return createQuerySignalFn(/* firstOnly */ false, /* required */ false);\n}\nfunction bindQueryToSignal(target, queryIndex) {\n const node = target[SIGNAL$1];\n node._lView = getLView();\n node._queryIndex = queryIndex;\n node._queryList = loadQueryInternal(node._lView, queryIndex);\n node._queryList.onDirty(() => node._dirtyCounter.update(v => v + 1));\n}\nfunction refreshSignalQuery(node, firstOnly) {\n const lView = node._lView;\n const queryIndex = node._queryIndex;\n // There are 2 conditions under which we want to return \"empty\" results instead of the ones\n // collected by a query:\n //\n // 1) a given query wasn't created yet (this is a period of time between the directive creation\n // and execution of the query creation function) - in this case a query doesn't exist yet and we\n // don't have any results to return.\n //\n // 2) we are in the process of constructing a view (the first\n // creation pass didn't finish) and a query might have partial results, but we don't want to\n // return those - instead we do delay results collection until all nodes had a chance of matching\n // and we can present consistent, \"atomic\" (on a view level) results.\n if (lView === undefined || queryIndex === undefined || (lView[FLAGS] & 4 /* LViewFlags.CreationMode */)) {\n return (firstOnly ? undefined : EMPTY_ARRAY);\n }\n const queryList = loadQueryInternal(lView, queryIndex);\n const results = getQueryResults(lView, queryIndex);\n queryList.reset(results, unwrapElementRef);\n if (firstOnly) {\n return queryList.first;\n }\n else {\n // TODO: remove access to the private _changesDetected field by abstracting / removing usage of\n // QueryList in the signal-based queries (perf follow-up)\n const resultChanged = queryList._changesDetected;\n if (resultChanged || node._flatValue === undefined) {\n return node._flatValue = queryList.toArray();\n }\n return node._flatValue;\n }\n}\n\nfunction viewChildFn(locator, opts) {\n ngDevMode && assertInInjectionContext(viewChild);\n return createSingleResultOptionalQuerySignalFn();\n}\nfunction viewChildRequiredFn(locator, opts) {\n ngDevMode && assertInInjectionContext(viewChild);\n return createSingleResultRequiredQuerySignalFn();\n}\n/**\n * Initializes a view child query.\n *\n * Consider using `viewChild.required` for queries that should always match.\n *\n * @usageNotes\n * Create a child query in your component by declaring a\n * class field and initializing it with the `viewChild()` function.\n *\n * ```ts\n * @Component({template: '<div #el></div><my-component #cmp />'})\n * export class TestComponent {\n * divEl = viewChild<ElementRef>('el'); // Signal<ElementRef|undefined>\n * divElRequired = viewChild.required<ElementRef>('el'); // Signal<ElementRef>\n * cmp = viewChild(MyComponent); // Signal<MyComponent|undefined>\n * cmpRequired = viewChild.required(MyComponent); // Signal<MyComponent>\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst viewChild = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `viewChild` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing `viewChild` export.\n viewChildFn.required = viewChildRequiredFn;\n return viewChildFn;\n})();\n/**\n * Initializes a view children query.\n *\n * Query results are represented as a signal of a read-only collection containing all matched\n * elements.\n *\n * @usageNotes\n * Create a children query in your component by declaring a\n * class field and initializing it with the `viewChildren()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n * divEls = viewChildren<ElementRef>('el'); // Signal<ReadonlyArray<ElementRef>>\n * }\n * ```\n *\n * @initializerApiFunction\n * @developerPreview\n */\nfunction viewChildren(locator, opts) {\n ngDevMode && assertInInjectionContext(viewChildren);\n return createMultiResultQuerySignalFn();\n}\nfunction contentChildFn(locator, opts) {\n ngDevMode && assertInInjectionContext(contentChild);\n return createSingleResultOptionalQuerySignalFn();\n}\nfunction contentChildRequiredFn(locator, opts) {\n ngDevMode && assertInInjectionContext(contentChildren);\n return createSingleResultRequiredQuerySignalFn();\n}\n/**\n * Initializes a content child query. Consider using `contentChild.required` for queries that should\n * always match.\n *\n * @usageNotes\n * Create a child query in your component by declaring a\n * class field and initializing it with the `contentChild()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n * headerEl = contentChild<ElementRef>('h'); // Signal<ElementRef|undefined>\n * headerElElRequired = contentChild.required<ElementRef>('h'); // Signal<ElementRef>\n * header = contentChild(MyHeader); // Signal<MyHeader|undefined>\n * headerRequired = contentChild.required(MyHeader); // Signal<MyHeader>\n * }\n * ```\n *\n * @initializerApiFunction\n * @developerPreview\n */\nconst contentChild = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `viewChild` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing `viewChild` export.\n contentChildFn.required = contentChildRequiredFn;\n return contentChildFn;\n})();\n/**\n * Initializes a content children query.\n *\n * Query results are represented as a signal of a read-only collection containing all matched\n * elements.\n *\n * @usageNotes\n * Create a children query in your component by declaring a\n * class field and initializing it with the `contentChildren()` function.\n *\n * ```ts\n * @Component({...})\n * export class TestComponent {\n * headerEl = contentChildren<ElementRef>('h'); // Signal<ReadonlyArray<ElementRef>>\n * }\n * ```\n *\n * @initializerApiFunction\n * @developerPreview\n */\nfunction contentChildren(locator, opts) {\n return createMultiResultQuerySignalFn();\n}\n\n/**\n * Creates a model signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required model signals.\n * @param options Additional options for the model.\n */\nfunction createModelSignal(initialValue) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n const emitterRef = new OutputEmitterRef();\n node.value = initialValue;\n function getter() {\n producerAccessed$1(node);\n assertModelSet(node.value);\n return node.value;\n }\n getter[SIGNAL$1] = node;\n getter.asReadonly = signalAsReadonlyFn.bind(getter);\n // TODO: Should we throw an error when updating a destroyed model?\n getter.set = (newValue) => {\n if (!node.equal(node.value, newValue)) {\n signalSetFn$1(node, newValue);\n emitterRef.emit(newValue);\n }\n };\n getter.update = (updateFn) => {\n assertModelSet(node.value);\n getter.set(updateFn(node.value));\n };\n getter.subscribe = emitterRef.subscribe.bind(emitterRef);\n getter.destroyRef = emitterRef.destroyRef;\n if (ngDevMode) {\n getter.toString = () => `[Model Signal: ${getter()}]`;\n }\n return getter;\n}\n/** Asserts that a model's value is set. */\nfunction assertModelSet(value) {\n if (value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(-952 /* RuntimeErrorCode.REQUIRED_MODEL_NO_VALUE */, ngDevMode && 'Model is required but no value is available yet.');\n }\n}\n\nfunction modelFunction(initialValue) {\n ngDevMode && assertInInjectionContext(model);\n return createModelSignal(initialValue);\n}\nfunction modelRequiredFunction() {\n ngDevMode && assertInInjectionContext(model);\n return createModelSignal(REQUIRED_UNSET_VALUE);\n}\n/**\n * `model` declares a writeable signal that is exposed as an input/output\n * pair on the containing directive.\n *\n * The input name is taken either from the class member or from the `alias` option.\n * The output name is generated by taking the input name and appending `Change`.\n *\n * @usageNotes\n *\n * To use `model()`, import the function from `@angular/core`.\n *\n * ```\n * import {model} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `model` or `model.required`.\n *\n * ```ts\n * @Directive({\n * ...\n * })\n * export class MyDir {\n * firstName = model<string>(); // ModelSignal<string|undefined>\n * lastName = model.required<string>(); // ModelSignal<string>\n * age = model(0); // ModelSignal<number>\n * }\n * ```\n *\n * Inside your component template, you can display the value of a `model`\n * by calling the signal.\n *\n * ```html\n * <span>{{firstName()}}</span>\n * ```\n *\n * Updating the `model` is equivalent to updating a writable signal.\n *\n * ```ts\n * updateName(newFirstName: string): void {\n * this.firstName.set(newFirstName);\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst model = (() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `model` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing `model` export.\n modelFunction.required = modelRequiredFunction;\n return modelFunction;\n})();\n\n// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not\n// explicitly set.\nconst emitDistinctChangesOnlyDefaultValue = true;\n/**\n * Base class for query metadata.\n *\n * @see {@link ContentChildren}\n * @see {@link ContentChild}\n * @see {@link ViewChildren}\n * @see {@link ViewChild}\n *\n * @publicApi\n */\nclass Query {\n}\n/**\n * ContentChildren decorator and metadata.\n *\n *\n * @Annotation\n * @publicApi\n */\nconst ContentChildren = makePropDecorator('ContentChildren', (selector, opts = {}) => ({\n selector,\n first: false,\n isViewQuery: false,\n descendants: false,\n emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n ...opts\n}), Query);\n/**\n * ContentChild decorator and metadata.\n *\n *\n * @Annotation\n *\n * @publicApi\n */\nconst ContentChild = makePropDecorator('ContentChild', (selector, opts = {}) => ({ selector, first: true, isViewQuery: false, descendants: true, ...opts }), Query);\n/**\n * ViewChildren decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChildren = makePropDecorator('ViewChildren', (selector, opts = {}) => ({\n selector,\n first: false,\n isViewQuery: true,\n descendants: true,\n emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue,\n ...opts\n}), Query);\n/**\n * ViewChild decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChild = makePropDecorator('ViewChild', (selector, opts) => ({ selector, first: true, isViewQuery: true, descendants: true, ...opts }), Query);\n\n/**\n * Used to resolve resource URLs on `@Component` when used with JIT compilation.\n *\n * Example:\n * ```\n * @Component({\n * selector: 'my-comp',\n * templateUrl: 'my-comp.html', // This requires asynchronous resolution\n * })\n * class MyComponent{\n * }\n *\n * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process\n * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.\n *\n * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into\n * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.\n *\n * // Use browser's `fetch()` function as the default resource resolution strategy.\n * resolveComponentResources(fetch).then(() => {\n * // After resolution all URLs have been converted into `template` strings.\n * renderComponent(MyComponent);\n * });\n *\n * ```\n *\n * NOTE: In AOT the resolution happens during compilation, and so there should be no need\n * to call this method outside JIT mode.\n *\n * @param resourceResolver a function which is responsible for returning a `Promise` to the\n * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.\n */\nfunction resolveComponentResources(resourceResolver) {\n // Store all promises which are fetching the resources.\n const componentResolved = [];\n // Cache so that we don't fetch the same resource more than once.\n const urlMap = new Map();\n function cachedResourceResolve(url) {\n let promise = urlMap.get(url);\n if (!promise) {\n const resp = resourceResolver(url);\n urlMap.set(url, promise = resp.then(unwrapResponse));\n }\n return promise;\n }\n componentResourceResolutionQueue.forEach((component, type) => {\n const promises = [];\n if (component.templateUrl) {\n promises.push(cachedResourceResolve(component.templateUrl).then((template) => {\n component.template = template;\n }));\n }\n const styles = typeof component.styles === 'string' ? [component.styles] : (component.styles || []);\n component.styles = styles;\n if (component.styleUrl && component.styleUrls?.length) {\n throw new Error('@Component cannot define both `styleUrl` and `styleUrls`. ' +\n 'Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple');\n }\n else if (component.styleUrls?.length) {\n const styleOffset = component.styles.length;\n const styleUrls = component.styleUrls;\n component.styleUrls.forEach((styleUrl, index) => {\n styles.push(''); // pre-allocate array.\n promises.push(cachedResourceResolve(styleUrl).then((style) => {\n styles[styleOffset + index] = style;\n styleUrls.splice(styleUrls.indexOf(styleUrl), 1);\n if (styleUrls.length == 0) {\n component.styleUrls = undefined;\n }\n }));\n });\n }\n else if (component.styleUrl) {\n promises.push(cachedResourceResolve(component.styleUrl).then((style) => {\n styles.push(style);\n component.styleUrl = undefined;\n }));\n }\n const fullyResolved = Promise.all(promises).then(() => componentDefResolved(type));\n componentResolved.push(fullyResolved);\n });\n clearResolutionOfComponentResourcesQueue();\n return Promise.all(componentResolved).then(() => undefined);\n}\nlet componentResourceResolutionQueue = new Map();\n// Track when existing ɵcmp for a Type is waiting on resources.\nconst componentDefPendingResolution = new Set();\nfunction maybeQueueResolutionOfComponentResources(type, metadata) {\n if (componentNeedsResolution(metadata)) {\n componentResourceResolutionQueue.set(type, metadata);\n componentDefPendingResolution.add(type);\n }\n}\nfunction isComponentDefPendingResolution(type) {\n return componentDefPendingResolution.has(type);\n}\nfunction componentNeedsResolution(component) {\n return !!((component.templateUrl && !component.hasOwnProperty('template')) ||\n (component.styleUrls && component.styleUrls.length) || component.styleUrl);\n}\nfunction clearResolutionOfComponentResourcesQueue() {\n const old = componentResourceResolutionQueue;\n componentResourceResolutionQueue = new Map();\n return old;\n}\nfunction restoreComponentResolutionQueue(queue) {\n componentDefPendingResolution.clear();\n queue.forEach((_, type) => componentDefPendingResolution.add(type));\n componentResourceResolutionQueue = queue;\n}\nfunction isComponentResourceResolutionQueueEmpty() {\n return componentResourceResolutionQueue.size === 0;\n}\nfunction unwrapResponse(response) {\n return typeof response == 'string' ? response : response.text();\n}\nfunction componentDefResolved(type) {\n componentDefPendingResolution.delete(type);\n}\n\n/**\n * Map of module-id to the corresponding NgModule.\n */\nconst modules = new Map();\n/**\n * Whether to check for duplicate NgModule registrations.\n *\n * This can be disabled for testing.\n */\nlet checkForDuplicateNgModules = true;\nfunction assertSameOrNotExisting(id, type, incoming) {\n if (type && type !== incoming && checkForDuplicateNgModules) {\n throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);\n }\n}\n/**\n * Adds the given NgModule type to Angular's NgModule registry.\n *\n * This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in\n * explicitly and not read from the NgModule definition. This is for two reasons: it avoids a\n * megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be\n * fully resolved when it's registered.\n *\n * @codeGenApi\n */\nfunction registerNgModuleType(ngModuleType, id) {\n const existing = modules.get(id) || null;\n assertSameOrNotExisting(id, existing, ngModuleType);\n modules.set(id, ngModuleType);\n}\nfunction clearModulesForTest() {\n modules.clear();\n}\nfunction getRegisteredNgModuleType(id) {\n return modules.get(id);\n}\n/**\n * Control whether the NgModule registration system enforces that each NgModule type registered has\n * a unique id.\n *\n * This is useful for testing as the NgModule registry cannot be properly reset between tests with\n * Angular's current API.\n */\nfunction setAllowDuplicateNgModuleIdsForTest(allowDuplicates) {\n checkForDuplicateNgModules = !allowDuplicates;\n}\n\n/**\n * Validation function invoked at runtime for each binding that might potentially\n * represent a security-sensitive attribute of an <iframe>.\n * See `IFRAME_SECURITY_SENSITIVE_ATTRS` in the\n * `packages/compiler/src/schema/dom_security_schema.ts` script for the full list\n * of such attributes.\n *\n * @codeGenApi\n */\nfunction ɵɵvalidateIframeAttribute(attrValue, tagName, attrName) {\n const lView = getLView();\n const tNode = getSelectedTNode();\n const element = getNativeByTNode(tNode, lView);\n // Restrict any dynamic bindings of security-sensitive attributes/properties\n // on an <iframe> for security reasons.\n if (tNode.type === 2 /* TNodeType.Element */ && tagName.toLowerCase() === 'iframe') {\n const iframe = element;\n // Unset previously applied `src` and `srcdoc` if we come across a situation when\n // a security-sensitive attribute is set later via an attribute/property binding.\n iframe.src = '';\n iframe.srcdoc = trustedHTMLFromString('');\n // Also remove the <iframe> from the document.\n nativeRemoveNode(lView[RENDERER], iframe);\n const errorMessage = ngDevMode &&\n `Angular has detected that the \\`${attrName}\\` was applied ` +\n `as a binding to an <iframe>${getTemplateLocationDetails(lView)}. ` +\n `For security reasons, the \\`${attrName}\\` can be set on an <iframe> ` +\n `as a static attribute only. \\n` +\n `To fix this, switch the \\`${attrName}\\` binding to a static attribute ` +\n `in a template or in host bindings section.`;\n throw new RuntimeError(-910 /* RuntimeErrorCode.UNSAFE_IFRAME_ATTRS */, errorMessage);\n }\n return attrValue;\n}\n\nfunction getSuperType(type) {\n return Object.getPrototypeOf(type.prototype).constructor;\n}\n/**\n * Merges the definition from a super class to a sub class.\n * @param definition The definition that is a SubClass of another directive of component\n *\n * @codeGenApi\n */\nfunction ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode &&\n `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.inputTransforms = maybeUnwrapEmpty(definition.inputTransforms);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n mergeInputsWithTransforms(definition, superDef);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}\nfunction mergeInputsWithTransforms(target, source) {\n for (const key in source.inputs) {\n if (!source.inputs.hasOwnProperty(key)) {\n continue;\n }\n if (target.inputs.hasOwnProperty(key)) {\n continue;\n }\n const value = source.inputs[key];\n if (value === undefined) {\n continue;\n }\n target.inputs[key] = value;\n target.declaredInputs[key] = source.declaredInputs[key];\n // If the input is inherited, and we have a transform for it, we also inherit it.\n // Note that transforms should not be inherited if the input has its own metadata\n // in the `source` directive itself already (i.e. the input is re-declared/overridden).\n if (source.inputTransforms !== null) {\n // Note: transforms are stored with their minified names.\n // Perf: only access the minified name when there are source transforms.\n const minifiedName = Array.isArray(value) ? value[0] : value;\n if (!source.inputTransforms.hasOwnProperty(minifiedName)) {\n continue;\n }\n target.inputTransforms ??= {};\n target.inputTransforms[minifiedName] = source.inputTransforms[minifiedName];\n }\n }\n}\n/**\n * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.\n *\n * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing\n * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child\n * type.\n */\nfunction mergeHostAttrsAcrossInheritance(inheritanceChain) {\n let hostVars = 0;\n let hostAttrs = null;\n // We process the inheritance order from the base to the leaves here.\n for (let i = inheritanceChain.length - 1; i >= 0; i--) {\n const def = inheritanceChain[i];\n // For each `hostVars`, we need to add the superclass amount.\n def.hostVars = (hostVars += def.hostVars);\n // for each `hostAttrs` we need to merge it with superclass.\n def.hostAttrs =\n mergeHostAttrs(def.hostAttrs, hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs));\n }\n}\nfunction maybeUnwrapEmpty(value) {\n if (value === EMPTY_OBJ) {\n return {};\n }\n else if (value === EMPTY_ARRAY) {\n return [];\n }\n else {\n return value;\n }\n}\nfunction inheritViewQuery(definition, superViewQuery) {\n const prevViewQuery = definition.viewQuery;\n if (prevViewQuery) {\n definition.viewQuery = (rf, ctx) => {\n superViewQuery(rf, ctx);\n prevViewQuery(rf, ctx);\n };\n }\n else {\n definition.viewQuery = superViewQuery;\n }\n}\nfunction inheritContentQueries(definition, superContentQueries) {\n const prevContentQueries = definition.contentQueries;\n if (prevContentQueries) {\n definition.contentQueries = (rf, ctx, directiveIndex) => {\n superContentQueries(rf, ctx, directiveIndex);\n prevContentQueries(rf, ctx, directiveIndex);\n };\n }\n else {\n definition.contentQueries = superContentQueries;\n }\n}\nfunction inheritHostBindings(definition, superHostBindings) {\n const prevHostBindings = definition.hostBindings;\n if (prevHostBindings) {\n definition.hostBindings = (rf, ctx) => {\n superHostBindings(rf, ctx);\n prevHostBindings(rf, ctx);\n };\n }\n else {\n definition.hostBindings = superHostBindings;\n }\n}\n\n/**\n * Fields which exist on either directive or component definitions, and need to be copied from\n * parent to child classes by the `ɵɵCopyDefinitionFeature`.\n */\nconst COPY_DIRECTIVE_FIELDS = [\n // The child class should use the providers of its parent.\n 'providersResolver',\n // Not listed here are any fields which are handled by the `ɵɵInheritDefinitionFeature`, such\n // as inputs, outputs, and host binding functions.\n];\n/**\n * Fields which exist only on component definitions, and need to be copied from parent to child\n * classes by the `ɵɵCopyDefinitionFeature`.\n *\n * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,\n * since those should go in `COPY_DIRECTIVE_FIELDS` above.\n */\nconst COPY_COMPONENT_FIELDS = [\n // The child class should use the template function of its parent, including all template\n // semantics.\n 'template',\n 'decls',\n 'consts',\n 'vars',\n 'onPush',\n 'ngContentSelectors',\n // The child class should use the CSS styles of its parent, including all styling semantics.\n 'styles',\n 'encapsulation',\n // The child class should be checked by the runtime in the same way as its parent.\n 'schemas',\n];\n/**\n * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a\n * definition.\n *\n * This exists primarily to support ngcc migration of an existing View Engine pattern, where an\n * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it\n * generates a skeleton definition on the child class, and applies this feature.\n *\n * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,\n * including things like the component template function.\n *\n * @param definition The definition of a child class which inherits from a parent class with its\n * own definition.\n *\n * @codeGenApi\n */\nfunction ɵɵCopyDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp;\n }\n else {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n // Needed because `definition` fields are readonly.\n const defAny = definition;\n // Copy over any fields that apply to either directives or components.\n for (const field of COPY_DIRECTIVE_FIELDS) {\n defAny[field] = superDef[field];\n }\n if (isComponentDef(superDef)) {\n // Copy over any component-specific fields.\n for (const field of COPY_COMPONENT_FIELDS) {\n defAny[field] = superDef[field];\n }\n }\n}\n\n/**\n * This feature adds the host directives behavior to a directive definition by patching a\n * function onto it. The expectation is that the runtime will invoke the function during\n * directive matching.\n *\n * For example:\n * ```ts\n * class ComponentWithHostDirective {\n * static ɵcmp = defineComponent({\n * type: ComponentWithHostDirective,\n * features: [ɵɵHostDirectivesFeature([\n * SimpleHostDirective,\n * {directive: AdvancedHostDirective, inputs: ['foo: alias'], outputs: ['bar']},\n * ])]\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵHostDirectivesFeature(rawHostDirectives) {\n const feature = (definition) => {\n const resolved = (Array.isArray(rawHostDirectives) ? rawHostDirectives : rawHostDirectives()).map(dir => {\n return typeof dir === 'function' ?\n { directive: resolveForwardRef(dir), inputs: EMPTY_OBJ, outputs: EMPTY_OBJ } :\n {\n directive: resolveForwardRef(dir.directive),\n inputs: bindingArrayToMap(dir.inputs),\n outputs: bindingArrayToMap(dir.outputs)\n };\n });\n if (definition.hostDirectives === null) {\n definition.findHostDirectiveDefs = findHostDirectiveDefs;\n definition.hostDirectives = resolved;\n }\n else {\n definition.hostDirectives.unshift(...resolved);\n }\n };\n feature.ngInherit = true;\n return feature;\n}\nfunction findHostDirectiveDefs(currentDef, matchedDefs, hostDirectiveDefs) {\n if (currentDef.hostDirectives !== null) {\n for (const hostDirectiveConfig of currentDef.hostDirectives) {\n const hostDirectiveDef = getDirectiveDef(hostDirectiveConfig.directive);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n validateHostDirective(hostDirectiveConfig, hostDirectiveDef);\n }\n // We need to patch the `declaredInputs` so that\n // `ngOnChanges` can map the properties correctly.\n patchDeclaredInputs(hostDirectiveDef.declaredInputs, hostDirectiveConfig.inputs);\n // Host directives execute before the host so that its host bindings can be overwritten.\n findHostDirectiveDefs(hostDirectiveDef, matchedDefs, hostDirectiveDefs);\n hostDirectiveDefs.set(hostDirectiveDef, hostDirectiveConfig);\n matchedDefs.push(hostDirectiveDef);\n }\n }\n}\n/**\n * Converts an array in the form of `['publicName', 'alias', 'otherPublicName', 'otherAlias']` into\n * a map in the form of `{publicName: 'alias', otherPublicName: 'otherAlias'}`.\n */\nfunction bindingArrayToMap(bindings) {\n if (bindings === undefined || bindings.length === 0) {\n return EMPTY_OBJ;\n }\n const result = {};\n for (let i = 0; i < bindings.length; i += 2) {\n result[bindings[i]] = bindings[i + 1];\n }\n return result;\n}\n/**\n * `ngOnChanges` has some leftover legacy ViewEngine behavior where the keys inside the\n * `SimpleChanges` event refer to the *declared* name of the input, not its public name or its\n * minified name. E.g. in `@Input('alias') foo: string`, the name in the `SimpleChanges` object\n * will always be `foo`, and not `alias` or the minified name of `foo` in apps using property\n * minification.\n *\n * This is achieved through the `DirectiveDef.declaredInputs` map that is constructed when the\n * definition is declared. When a property is written to the directive instance, the\n * `NgOnChangesFeature` will try to remap the property name being written to using the\n * `declaredInputs`.\n *\n * Since the host directive input remapping happens during directive matching, `declaredInputs`\n * won't contain the new alias that the input is available under. This function addresses the\n * issue by patching the host directive aliases to the `declaredInputs`. There is *not* a risk of\n * this patching accidentally introducing new inputs to the host directive, because `declaredInputs`\n * is used *only* by the `NgOnChangesFeature` when determining what name is used in the\n * `SimpleChanges` object which won't be reached if an input doesn't exist.\n */\nfunction patchDeclaredInputs(declaredInputs, exposedInputs) {\n for (const publicName in exposedInputs) {\n if (exposedInputs.hasOwnProperty(publicName)) {\n const remappedPublicName = exposedInputs[publicName];\n const privateName = declaredInputs[publicName];\n // We *technically* shouldn't be able to hit this case because we can't have multiple\n // inputs on the same property and we have validations against conflicting aliases in\n // `validateMappings`. If we somehow did, it would lead to `ngOnChanges` being invoked\n // with the wrong name so we have a non-user-friendly assertion here just in case.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n declaredInputs.hasOwnProperty(remappedPublicName)) {\n assertEqual(declaredInputs[remappedPublicName], declaredInputs[publicName], `Conflicting host directive input alias ${publicName}.`);\n }\n declaredInputs[remappedPublicName] = privateName;\n }\n }\n}\n/**\n * Verifies that the host directive has been configured correctly.\n * @param hostDirectiveConfig Host directive configuration object.\n * @param directiveDef Directive definition of the host directive.\n */\nfunction validateHostDirective(hostDirectiveConfig, directiveDef) {\n const type = hostDirectiveConfig.directive;\n if (directiveDef === null) {\n if (getComponentDef(type) !== null) {\n throw new RuntimeError(310 /* RuntimeErrorCode.HOST_DIRECTIVE_COMPONENT */, `Host directive ${type.name} cannot be a component.`);\n }\n throw new RuntimeError(307 /* RuntimeErrorCode.HOST_DIRECTIVE_UNRESOLVABLE */, `Could not resolve metadata for host directive ${type.name}. ` +\n `Make sure that the ${type.name} class is annotated with an @Directive decorator.`);\n }\n if (!directiveDef.standalone) {\n throw new RuntimeError(308 /* RuntimeErrorCode.HOST_DIRECTIVE_NOT_STANDALONE */, `Host directive ${directiveDef.type.name} must be standalone.`);\n }\n validateMappings('input', directiveDef, hostDirectiveConfig.inputs);\n validateMappings('output', directiveDef, hostDirectiveConfig.outputs);\n}\n/**\n * Checks that the host directive inputs/outputs configuration is valid.\n * @param bindingType Kind of binding that is being validated. Used in the error message.\n * @param def Definition of the host directive that is being validated against.\n * @param hostDirectiveBindings Host directive mapping object that shold be validated.\n */\nfunction validateMappings(bindingType, def, hostDirectiveBindings) {\n const className = def.type.name;\n const bindings = bindingType === 'input' ? def.inputs : def.outputs;\n for (const publicName in hostDirectiveBindings) {\n if (hostDirectiveBindings.hasOwnProperty(publicName)) {\n if (!bindings.hasOwnProperty(publicName)) {\n throw new RuntimeError(311 /* RuntimeErrorCode.HOST_DIRECTIVE_UNDEFINED_BINDING */, `Directive ${className} does not have an ${bindingType} with a public name of ${publicName}.`);\n }\n const remappedPublicName = hostDirectiveBindings[publicName];\n if (bindings.hasOwnProperty(remappedPublicName) && remappedPublicName !== publicName) {\n throw new RuntimeError(312 /* RuntimeErrorCode.HOST_DIRECTIVE_CONFLICTING_ALIAS */, `Cannot alias ${bindingType} ${publicName} of host directive ${className} to ${remappedPublicName}, because it already has a different ${bindingType} with the same public name.`);\n }\n }\n }\n}\n\n/**\n * Decorates the directive definition with support for input transform functions.\n *\n * If the directive uses inheritance, the feature should be included before the\n * `InheritDefinitionFeature` to ensure that the `inputTransforms` field is populated.\n *\n * @codeGenApi\n */\nfunction ɵɵInputTransformsFeature(definition) {\n const inputs = definition.inputConfig;\n const inputTransforms = {};\n for (const minifiedKey in inputs) {\n if (inputs.hasOwnProperty(minifiedKey)) {\n // Note: the private names are used for the keys, rather than the public ones, because public\n // names can be re-aliased in host directives which would invalidate the lookup.\n const value = inputs[minifiedKey];\n if (Array.isArray(value) && value[3]) {\n inputTransforms[minifiedKey] = value[3];\n }\n }\n }\n definition.inputTransforms = inputTransforms;\n}\n\n/**\n * Represents an instance of an `NgModule` created by an `NgModuleFactory`.\n * Provides access to the `NgModule` instance and related objects.\n *\n * @publicApi\n */\nclass NgModuleRef$1 {\n}\n/**\n * @publicApi\n *\n * @deprecated\n * This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy\n * JIT mode. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)\n * for additional context. Angular provides APIs that accept NgModule classes directly (such as\n * [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and\n * [createNgModule](api/core/createNgModule)), consider switching to those APIs instead of\n * using factory-based ones.\n */\nclass NgModuleFactory$1 {\n}\n\n/**\n * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.\n *\n * @param ngModule NgModule class.\n * @param parentInjector Optional injector instance to use as a parent for the module injector. If\n * not provided, `NullInjector` will be used instead.\n * @returns NgModuleRef that represents an NgModule instance.\n *\n * @publicApi\n */\nfunction createNgModule(ngModule, parentInjector) {\n return new NgModuleRef(ngModule, parentInjector ?? null, []);\n}\n/**\n * The `createNgModule` function alias for backwards-compatibility.\n * Please avoid using it directly and use `createNgModule` instead.\n *\n * @deprecated Use `createNgModule` instead.\n */\nconst createNgModuleRef = createNgModule;\nclass NgModuleRef extends NgModuleRef$1 {\n constructor(ngModuleType, _parent, additionalProviders) {\n super();\n this._parent = _parent;\n // tslint:disable-next-line:require-internal-with-underscore\n this._bootstrapComponents = [];\n this.destroyCbs = [];\n // When bootstrapping a module we have a dependency graph that looks like this:\n // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the\n // module being resolved tries to inject the ComponentFactoryResolver, it'll create a\n // circular dependency which will result in a runtime error, because the injector doesn't\n // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves\n // and providing it, rather than letting the injector resolve it.\n this.componentFactoryResolver = new ComponentFactoryResolver(this);\n const ngModuleDef = getNgModuleDef(ngModuleType);\n ngDevMode &&\n assertDefined(ngModuleDef, `NgModule '${stringify(ngModuleType)}' is not a subtype of 'NgModuleType'.`);\n this._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);\n this._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [\n { provide: NgModuleRef$1, useValue: this }, {\n provide: ComponentFactoryResolver$1,\n useValue: this.componentFactoryResolver\n },\n ...additionalProviders\n ], stringify(ngModuleType), new Set(['environment']));\n // We need to resolve the injector types separately from the injector creation, because\n // the module might be trying to use this ref in its constructor for DI which will cause a\n // circular error that will eventually error out, because the injector isn't created yet.\n this._r3Injector.resolveInjectorInitializers();\n this.instance = this._r3Injector.get(ngModuleType);\n }\n get injector() {\n return this._r3Injector;\n }\n destroy() {\n ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n const injector = this._r3Injector;\n !injector.destroyed && injector.destroy();\n this.destroyCbs.forEach(fn => fn());\n this.destroyCbs = null;\n }\n onDestroy(callback) {\n ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n this.destroyCbs.push(callback);\n }\n}\nclass NgModuleFactory extends NgModuleFactory$1 {\n constructor(moduleType) {\n super();\n this.moduleType = moduleType;\n }\n create(parentInjector) {\n return new NgModuleRef(this.moduleType, parentInjector, []);\n }\n}\nfunction createNgModuleRefWithProviders(moduleType, parentInjector, additionalProviders) {\n return new NgModuleRef(moduleType, parentInjector, additionalProviders);\n}\nclass EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {\n constructor(config) {\n super();\n this.componentFactoryResolver = new ComponentFactoryResolver(this);\n this.instance = null;\n const injector = new R3Injector([\n ...config.providers,\n { provide: NgModuleRef$1, useValue: this },\n { provide: ComponentFactoryResolver$1, useValue: this.componentFactoryResolver },\n ], config.parent || getNullInjector(), config.debugName, new Set(['environment']));\n this.injector = injector;\n if (config.runEnvironmentInitializers) {\n injector.resolveInjectorInitializers();\n }\n }\n destroy() {\n this.injector.destroy();\n }\n onDestroy(callback) {\n this.injector.onDestroy(callback);\n }\n}\n/**\n * Create a new environment injector.\n *\n * Learn more about environment injectors in\n * [this guide](guide/standalone-components#environment-injectors).\n *\n * @param providers An array of providers.\n * @param parent A parent environment injector.\n * @param debugName An optional name for this injector instance, which will be used in error\n * messages.\n *\n * @publicApi\n */\nfunction createEnvironmentInjector(providers, parent, debugName = null) {\n const adapter = new EnvironmentNgModuleRefAdapter({ providers, parent, debugName, runEnvironmentInitializers: true });\n return adapter.injector;\n}\n\n/**\n * A service used by the framework to create and cache injector instances.\n *\n * This service is used to create a single injector instance for each defer\n * block definition, to avoid creating an injector for each defer block instance\n * of a certain type.\n */\nclass CachedInjectorService {\n constructor() {\n this.cachedInjectors = new Map();\n }\n getOrCreateInjector(key, parentInjector, providers, debugName) {\n if (!this.cachedInjectors.has(key)) {\n const injector = providers.length > 0 ?\n createEnvironmentInjector(providers, parentInjector, debugName) :\n null;\n this.cachedInjectors.set(key, injector);\n }\n return this.cachedInjectors.get(key);\n }\n ngOnDestroy() {\n try {\n for (const injector of this.cachedInjectors.values()) {\n if (injector !== null) {\n injector.destroy();\n }\n }\n }\n finally {\n this.cachedInjectors.clear();\n }\n }\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: CachedInjectorService,\n providedIn: 'environment',\n factory: () => new CachedInjectorService(),\n }); }\n}\n\n/**\n * The name of a field that Angular monkey-patches onto a component\n * class to store a function that loads defer-loadable dependencies\n * and applies metadata to a class.\n */\nconst ASYNC_COMPONENT_METADATA_FN = '__ngAsyncComponentMetadataFn__';\n/**\n * If a given component has unresolved async metadata - returns a reference\n * to a function that applies component metadata after resolving defer-loadable\n * dependencies. Otherwise - this function returns `null`.\n */\nfunction getAsyncClassMetadataFn(type) {\n const componentClass = type; // cast to `any`, so that we can read a monkey-patched field\n return componentClass[ASYNC_COMPONENT_METADATA_FN] ?? null;\n}\n/**\n * Handles the process of applying metadata info to a component class in case\n * component template has defer blocks (thus some dependencies became deferrable).\n *\n * @param type Component class where metadata should be added\n * @param dependencyLoaderFn Function that loads dependencies\n * @param metadataSetterFn Function that forms a scope in which the `setClassMetadata` is invoked\n */\nfunction setClassMetadataAsync(type, dependencyLoaderFn, metadataSetterFn) {\n const componentClass = type; // cast to `any`, so that we can monkey-patch it\n componentClass[ASYNC_COMPONENT_METADATA_FN] = () => Promise.all(dependencyLoaderFn()).then(dependencies => {\n metadataSetterFn(...dependencies);\n // Metadata is now set, reset field value to indicate that this component\n // can by used/compiled synchronously.\n componentClass[ASYNC_COMPONENT_METADATA_FN] = null;\n return dependencies;\n });\n return componentClass[ASYNC_COMPONENT_METADATA_FN];\n}\n/**\n * Adds decorator, constructor, and property metadata to a given type via static metadata fields\n * on the type.\n *\n * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.\n *\n * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments\n * being tree-shaken away during production builds.\n */\nfunction setClassMetadata(type, decorators, ctorParameters, propDecorators) {\n return noSideEffects(() => {\n const clazz = type;\n if (decorators !== null) {\n if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {\n clazz.decorators.push(...decorators);\n }\n else {\n clazz.decorators = decorators;\n }\n }\n if (ctorParameters !== null) {\n // Rather than merging, clobber the existing parameters. If other projects exist which\n // use tsickle-style annotations and reflect over them in the same way, this could\n // cause issues, but that is vanishingly unlikely.\n clazz.ctorParameters = ctorParameters;\n }\n if (propDecorators !== null) {\n // The property decorator objects are merged as it is possible different fields have\n // different decorator types. Decorators on individual fields are not merged, as it's\n // also incredibly unlikely that a field will be decorated both with an Angular\n // decorator and a non-Angular decorator that's also been downleveled.\n if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {\n clazz.propDecorators = { ...clazz.propDecorators, ...propDecorators };\n }\n else {\n clazz.propDecorators = propDecorators;\n }\n }\n });\n}\n\n/*\n * This file exists to support compilation of @angular/core in Ivy mode.\n *\n * When the Angular compiler processes a compilation unit, it normally writes imports to\n * @angular/core. When compiling the core package itself this strategy isn't usable. Instead, the\n * compiler writes imports to this file.\n *\n * Only a subset of such imports are supported - core is not allowed to declare components or pipes.\n * A check in ngtsc's `R3SymbolsImportRewriter` validates this condition. The rewriter is only used\n * when compiling @angular/core and is responsible for translating an external name (prefixed with\n * ɵ) to the internal symbol name as exported below.\n *\n * The below symbols are used for @Injectable and @NgModule compilation.\n */\n/**\n * The existence of this constant (in this particular file) informs the Angular compiler that the\n * current program is actually @angular/core, which needs to be compiled specially.\n */\nconst ITS_JUST_ANGULAR = true;\n\n/**\n * *Internal* service that keeps track of pending tasks happening in the system.\n *\n * This information is needed to make sure that the serialization on the server\n * is delayed until all tasks in the queue (such as an initial navigation or a\n * pending HTTP request) are completed.\n *\n * Pending tasks continue to contribute to the stableness of `ApplicationRef`\n * throughout the lifetime of the application.\n */\nclass PendingTasks {\n constructor() {\n this.taskId = 0;\n this.pendingTasks = new Set();\n this.hasPendingTasks = new BehaviorSubject(false);\n }\n get _hasPendingTasks() {\n return this.hasPendingTasks.value;\n }\n add() {\n if (!this._hasPendingTasks) {\n this.hasPendingTasks.next(true);\n }\n const taskId = this.taskId++;\n this.pendingTasks.add(taskId);\n return taskId;\n }\n remove(taskId) {\n this.pendingTasks.delete(taskId);\n if (this.pendingTasks.size === 0 && this._hasPendingTasks) {\n this.hasPendingTasks.next(false);\n }\n }\n ngOnDestroy() {\n this.pendingTasks.clear();\n if (this._hasPendingTasks) {\n this.hasPendingTasks.next(false);\n }\n }\n static { this.ɵfac = function PendingTasks_Factory(t) { return new (t || PendingTasks)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PendingTasks, factory: PendingTasks.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PendingTasks, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n\nfunction isIterable(obj) {\n return obj !== null && typeof obj === 'object' && obj[Symbol.iterator] !== undefined;\n}\nfunction isListLikeIterable(obj) {\n if (!isJsObject(obj))\n return false;\n return Array.isArray(obj) ||\n (!(obj instanceof Map) && // JS Map are iterables but return entries as [k, v]\n Symbol.iterator in obj); // JS Iterable have a Symbol.iterator prop\n}\nfunction areIterablesEqual(a, b, comparator) {\n const iterator1 = a[Symbol.iterator]();\n const iterator2 = b[Symbol.iterator]();\n while (true) {\n const item1 = iterator1.next();\n const item2 = iterator2.next();\n if (item1.done && item2.done)\n return true;\n if (item1.done || item2.done)\n return false;\n if (!comparator(item1.value, item2.value))\n return false;\n }\n}\nfunction iterateListLike(obj, fn) {\n if (Array.isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n }\n else {\n const iterator = obj[Symbol.iterator]();\n let item;\n while (!((item = iterator.next()).done)) {\n fn(item.value);\n }\n }\n}\nfunction isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n}\n\nfunction devModeEqual(a, b) {\n const isListLikeIterableA = isListLikeIterable(a);\n const isListLikeIterableB = isListLikeIterable(b);\n if (isListLikeIterableA && isListLikeIterableB) {\n return areIterablesEqual(a, b, devModeEqual);\n }\n else {\n const isAObject = a && (typeof a === 'object' || typeof a === 'function');\n const isBObject = b && (typeof b === 'object' || typeof b === 'function');\n if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {\n return true;\n }\n else {\n return Object.is(a, b);\n }\n }\n}\n\n// TODO(misko): consider inlining\n/** Updates binding and returns the value. */\nfunction updateBinding(lView, bindingIndex, value) {\n return lView[bindingIndex] = value;\n}\n/** Gets the current binding value. */\nfunction getBinding(lView, bindingIndex) {\n ngDevMode && assertIndexInRange(lView, bindingIndex);\n ngDevMode &&\n assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');\n return lView[bindingIndex];\n}\n/**\n * Updates binding if changed, then returns whether it was updated.\n *\n * This function also checks the `CheckNoChangesMode` and throws if changes are made.\n * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE\n * behavior.\n *\n * @param lView current `LView`\n * @param bindingIndex The binding in the `LView` to check\n * @param value New value to check against `lView[bindingIndex]`\n * @returns `true` if the bindings has changed. (Throws if binding has changed during\n * `CheckNoChangesMode`)\n */\nfunction bindingUpdated(lView, bindingIndex, value) {\n ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n ngDevMode &&\n assertLessThan(bindingIndex, lView.length, `Slot should have been initialized to NO_CHANGE`);\n const oldValue = lView[bindingIndex];\n if (Object.is(oldValue, value)) {\n return false;\n }\n else {\n if (ngDevMode && isInCheckNoChangesMode()) {\n // View engine didn't report undefined values as changed on the first checkNoChanges pass\n // (before the change detection was run).\n const oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;\n if (!devModeEqual(oldValueToCompare, value)) {\n const details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);\n throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName, lView);\n }\n // There was a change, but the `devModeEqual` decided that the change is exempt from an error.\n // For this reason we exit as if no change. The early exit is needed to prevent the changed\n // value to be written into `LView` (If we would write the new value that we would not see it\n // as change on next CD.)\n return false;\n }\n lView[bindingIndex] = value;\n return true;\n }\n}\n/** Updates 2 bindings if changed, then returns whether either was updated. */\nfunction bindingUpdated2(lView, bindingIndex, exp1, exp2) {\n const different = bindingUpdated(lView, bindingIndex, exp1);\n return bindingUpdated(lView, bindingIndex + 1, exp2) || different;\n}\n/** Updates 3 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {\n const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n return bindingUpdated(lView, bindingIndex + 2, exp3) || different;\n}\n/** Updates 4 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {\n const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;\n}\n\n/**\n * Checks whether a TNode is considered detached, i.e. not present in the\n * translated i18n template. We should not attempt hydration for such nodes\n * and instead, use a regular \"creation mode\".\n */\nfunction isDetachedByI18n(tNode) {\n return (tNode.flags & 32 /* TNodeFlags.isDetached */) === 32 /* TNodeFlags.isDetached */;\n}\n\nfunction templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n // TODO(pk): refactor getOrCreateTNode to have the \"create\" only version\n const tNode = getOrCreateTNode(tView, index, 4 /* TNodeType.Container */, tagName || null, getConstant(tViewConsts, attrsIndex));\n resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n registerPostOrderHooks(tView, tNode);\n const embeddedTView = tNode.tView = createTView(2 /* TViewType.Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts, null /* ssrId */);\n if (tView.queries !== null) {\n tView.queries.template(tView, tNode);\n embeddedTView.queries = tView.queries.embeddedTView(tNode);\n }\n return tNode;\n}\n/**\n * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.\n *\n * <ng-template #foo>\n * <div></div>\n * </ng-template>\n *\n * @param index The index of the container in the data array\n * @param templateFn Inline template\n * @param decls The number of nodes, local refs, and pipes for this template\n * @param vars The number of bindings for this template\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param localRefs Index of the local references in the `consts` array.\n * @param localRefExtractor A function which extracts local-refs values from the template.\n * Defaults to the current element associated with the local-ref.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n const tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) :\n tView.data[adjustedIndex];\n setCurrentTNode(tNode, false);\n const comment = _locateOrCreateContainerAnchor(tView, lView, tNode, index);\n if (wasLastNodeCreated()) {\n appendChild(tView, lView, comment, tNode);\n }\n attachPatchData(comment, lView);\n const lContainer = createLContainer(comment, lView, comment, tNode);\n lView[adjustedIndex] = lContainer;\n addToViewTree(lView, lContainer);\n // If hydration is enabled, looks up dehydrated views in the DOM\n // using hydration annotation info and stores those views on LContainer.\n // In client-only mode, this function is a noop.\n populateDehydratedViewsInLContainer(lContainer, tNode, lView);\n if (isDirectiveHost(tNode)) {\n createDirectivesInstances(tView, lView, tNode);\n }\n if (localRefsIndex != null) {\n saveResolvedLocalsInData(lView, tNode, localRefExtractor);\n }\n return ɵɵtemplate;\n}\nlet _locateOrCreateContainerAnchor = createContainerAnchorImpl;\n/**\n * Regular creation mode for LContainers and their anchor (comment) nodes.\n */\nfunction createContainerAnchorImpl(tView, lView, tNode, index) {\n lastNodeWasCreated(true);\n return lView[RENDERER].createComment(ngDevMode ? 'container' : '');\n}\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode for LContainers and their\n * anchor (comment) nodes.\n */\nfunction locateOrCreateContainerAnchorImpl(tView, lView, tNode, index) {\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() ||\n isDetachedByI18n(tNode) || isDisconnectedNode$1(hydrationInfo, index);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createContainerAnchorImpl(tView, lView, tNode, index);\n }\n const ssrId = hydrationInfo.data[TEMPLATES]?.[index] ?? null;\n // Apply `ssrId` value to the underlying TView if it was not previously set.\n //\n // There might be situations when the same component is present in a template\n // multiple times and some instances are opted-out of using hydration via\n // `ngSkipHydration` attribute. In this scenario, at the time a TView is created,\n // the `ssrId` might be `null` (if the first component is opted-out of hydration).\n // The code below makes sure that the `ssrId` is applied to the TView if it's still\n // `null` and verifies we never try to override it with a different value.\n if (ssrId !== null && tNode.tView !== null) {\n if (tNode.tView.ssrId === null) {\n tNode.tView.ssrId = ssrId;\n }\n else {\n ngDevMode &&\n assertEqual(tNode.tView.ssrId, ssrId, 'Unexpected value of the `ssrId` for this TView');\n }\n }\n // Hydration mode, looking up existing elements in DOM.\n const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateNodeExists(currentRNode, lView, tNode);\n setSegmentHead(hydrationInfo, index, currentRNode);\n const viewContainerSize = calcSerializedContainerSize(hydrationInfo, index);\n const comment = siblingAfter(viewContainerSize, currentRNode);\n if (ngDevMode) {\n validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);\n markRNodeAsClaimedByHydration(comment);\n }\n return comment;\n}\nfunction enableLocateOrCreateContainerAnchorImpl() {\n _locateOrCreateContainerAnchor = locateOrCreateContainerAnchorImpl;\n}\n\n/**\n * Describes the state of defer block dependency loading.\n */\nvar DeferDependenciesLoadingState;\n(function (DeferDependenciesLoadingState) {\n /** Initial state, dependency loading is not yet triggered */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"NOT_STARTED\"] = 0] = \"NOT_STARTED\";\n /** Dependency loading is in progress */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"IN_PROGRESS\"] = 1] = \"IN_PROGRESS\";\n /** Dependency loading has completed successfully */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"COMPLETE\"] = 2] = \"COMPLETE\";\n /** Dependency loading has failed */\n DeferDependenciesLoadingState[DeferDependenciesLoadingState[\"FAILED\"] = 3] = \"FAILED\";\n})(DeferDependenciesLoadingState || (DeferDependenciesLoadingState = {}));\n/** Slot index where `minimum` parameter value is stored. */\nconst MINIMUM_SLOT = 0;\n/** Slot index where `after` parameter value is stored. */\nconst LOADING_AFTER_SLOT = 1;\n/**\n * Describes the current state of this defer block instance.\n *\n * @publicApi\n * @developerPreview\n */\nvar DeferBlockState;\n(function (DeferBlockState) {\n /** The placeholder block content is rendered */\n DeferBlockState[DeferBlockState[\"Placeholder\"] = 0] = \"Placeholder\";\n /** The loading block content is rendered */\n DeferBlockState[DeferBlockState[\"Loading\"] = 1] = \"Loading\";\n /** The main content block content is rendered */\n DeferBlockState[DeferBlockState[\"Complete\"] = 2] = \"Complete\";\n /** The error block content is rendered */\n DeferBlockState[DeferBlockState[\"Error\"] = 3] = \"Error\";\n})(DeferBlockState || (DeferBlockState = {}));\n/**\n * Describes the initial state of this defer block instance.\n *\n * Note: this state is internal only and *must* be represented\n * with a number lower than any value in the `DeferBlockState` enum.\n */\nvar DeferBlockInternalState;\n(function (DeferBlockInternalState) {\n /** Initial state. Nothing is rendered yet. */\n DeferBlockInternalState[DeferBlockInternalState[\"Initial\"] = -1] = \"Initial\";\n})(DeferBlockInternalState || (DeferBlockInternalState = {}));\nconst NEXT_DEFER_BLOCK_STATE = 0;\n// Note: it's *important* to keep the state in this slot, because this slot\n// is used by runtime logic to differentiate between LViews, LContainers and\n// other types (see `isLView` and `isLContainer` functions). In case of defer\n// blocks, this slot would always be a number.\nconst DEFER_BLOCK_STATE = 1;\nconst STATE_IS_FROZEN_UNTIL = 2;\nconst LOADING_AFTER_CLEANUP_FN = 3;\nconst TRIGGER_CLEANUP_FNS = 4;\nconst PREFETCH_TRIGGER_CLEANUP_FNS = 5;\n/**\n * Options for configuring defer blocks behavior.\n * @publicApi\n * @developerPreview\n */\nvar DeferBlockBehavior;\n(function (DeferBlockBehavior) {\n /**\n * Manual triggering mode for defer blocks. Provides control over when defer blocks render\n * and which state they render.\n */\n DeferBlockBehavior[DeferBlockBehavior[\"Manual\"] = 0] = \"Manual\";\n /**\n * Playthrough mode for defer blocks. This mode behaves like defer blocks would in a browser.\n * This is the default behavior in test environments.\n */\n DeferBlockBehavior[DeferBlockBehavior[\"Playthrough\"] = 1] = \"Playthrough\";\n})(DeferBlockBehavior || (DeferBlockBehavior = {}));\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Registers a cleanup function associated with a prefetching trigger\n * or a regular trigger of a defer block.\n */\nfunction storeTriggerCleanupFn(type, lDetails, cleanupFn) {\n const key = type === 1 /* TriggerType.Prefetch */ ? PREFETCH_TRIGGER_CLEANUP_FNS : TRIGGER_CLEANUP_FNS;\n if (lDetails[key] === null) {\n lDetails[key] = [];\n }\n lDetails[key].push(cleanupFn);\n}\n/**\n * Invokes registered cleanup functions either for prefetch or for regular triggers.\n */\nfunction invokeTriggerCleanupFns(type, lDetails) {\n const key = type === 1 /* TriggerType.Prefetch */ ? PREFETCH_TRIGGER_CLEANUP_FNS : TRIGGER_CLEANUP_FNS;\n const cleanupFns = lDetails[key];\n if (cleanupFns !== null) {\n for (const cleanupFn of cleanupFns) {\n cleanupFn();\n }\n lDetails[key] = null;\n }\n}\n/**\n * Invokes registered cleanup functions for both prefetch and regular triggers.\n */\nfunction invokeAllTriggerCleanupFns(lDetails) {\n invokeTriggerCleanupFns(1 /* TriggerType.Prefetch */, lDetails);\n invokeTriggerCleanupFns(0 /* TriggerType.Regular */, lDetails);\n}\n\n// Public API for Zone\n\n/**\n * Calculates a data slot index for defer block info (either static or\n * instance-specific), given an index of a defer instruction.\n */\nfunction getDeferBlockDataIndex(deferBlockIndex) {\n // Instance state is located at the *next* position\n // after the defer block slot in an LView or TView.data.\n return deferBlockIndex + 1;\n}\n/** Retrieves a defer block state from an LView, given a TNode that represents a block. */\nfunction getLDeferBlockDetails(lView, tNode) {\n const tView = lView[TVIEW];\n const slotIndex = getDeferBlockDataIndex(tNode.index);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n return lView[slotIndex];\n}\n/** Stores a defer block instance state in LView. */\nfunction setLDeferBlockDetails(lView, deferBlockIndex, lDetails) {\n const tView = lView[TVIEW];\n const slotIndex = getDeferBlockDataIndex(deferBlockIndex);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n lView[slotIndex] = lDetails;\n}\n/** Retrieves static info about a defer block, given a TView and a TNode that represents a block. */\nfunction getTDeferBlockDetails(tView, tNode) {\n const slotIndex = getDeferBlockDataIndex(tNode.index);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n return tView.data[slotIndex];\n}\n/** Stores a defer block static info in `TView.data`. */\nfunction setTDeferBlockDetails(tView, deferBlockIndex, deferBlockConfig) {\n const slotIndex = getDeferBlockDataIndex(deferBlockIndex);\n ngDevMode && assertIndexInDeclRange(tView, slotIndex);\n tView.data[slotIndex] = deferBlockConfig;\n}\nfunction getTemplateIndexForState(newState, hostLView, tNode) {\n const tView = hostLView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n switch (newState) {\n case DeferBlockState.Complete:\n return tDetails.primaryTmplIndex;\n case DeferBlockState.Loading:\n return tDetails.loadingTmplIndex;\n case DeferBlockState.Error:\n return tDetails.errorTmplIndex;\n case DeferBlockState.Placeholder:\n return tDetails.placeholderTmplIndex;\n default:\n ngDevMode && throwError(`Unexpected defer block state: ${newState}`);\n return null;\n }\n}\n/**\n * Returns a minimum amount of time that a given state should be rendered for,\n * taking into account `minimum` parameter value. If the `minimum` value is\n * not specified - returns `null`.\n */\nfunction getMinimumDurationForState(tDetails, currentState) {\n if (currentState === DeferBlockState.Placeholder) {\n return tDetails.placeholderBlockConfig?.[MINIMUM_SLOT] ?? null;\n }\n else if (currentState === DeferBlockState.Loading) {\n return tDetails.loadingBlockConfig?.[MINIMUM_SLOT] ?? null;\n }\n return null;\n}\n/** Retrieves the value of the `after` parameter on the @loading block. */\nfunction getLoadingBlockAfter(tDetails) {\n return tDetails.loadingBlockConfig?.[LOADING_AFTER_SLOT] ?? null;\n}\n/**\n * Adds downloaded dependencies into a directive or a pipe registry,\n * making sure that a dependency doesn't yet exist in the registry.\n */\nfunction addDepsToRegistry(currentDeps, newDeps) {\n if (!currentDeps || currentDeps.length === 0) {\n return newDeps;\n }\n const currentDepSet = new Set(currentDeps);\n for (const dep of newDeps) {\n currentDepSet.add(dep);\n }\n // If `currentDeps` is the same length, there were no new deps and can\n // return the original array.\n return (currentDeps.length === currentDepSet.size) ? currentDeps : Array.from(currentDepSet);\n}\n/** Retrieves a TNode that represents main content of a defer block. */\nfunction getPrimaryBlockTNode(tView, tDetails) {\n const adjustedIndex = tDetails.primaryTmplIndex + HEADER_OFFSET;\n return getTNode(tView, adjustedIndex);\n}\n/**\n * Asserts whether all dependencies for a defer block are loaded.\n * Always run this function (in dev mode) before rendering a defer\n * block in completed state.\n */\nfunction assertDeferredDependenciesLoaded(tDetails) {\n assertEqual(tDetails.loadingState, DeferDependenciesLoadingState.COMPLETE, 'Expecting all deferred dependencies to be loaded.');\n}\n/**\n * Determines if a given value matches the expected structure of a defer block\n *\n * We can safely rely on the primaryTmplIndex because every defer block requires\n * that a primary template exists. All the other template options are optional.\n */\nfunction isTDeferBlockDetails(value) {\n return value !== null && (typeof value === 'object') &&\n (typeof value.primaryTmplIndex === 'number');\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Configuration object used to register passive and capturing events. */\nconst eventListenerOptions = {\n passive: true,\n capture: true\n};\n/** Keeps track of the currently-registered `on hover` triggers. */\nconst hoverTriggers = new WeakMap();\n/** Keeps track of the currently-registered `on interaction` triggers. */\nconst interactionTriggers = new WeakMap();\n/** Currently-registered `viewport` triggers. */\nconst viewportTriggers = new WeakMap();\n/** Names of the events considered as interaction events. */\nconst interactionEventNames = ['click', 'keydown'];\n/** Names of the events considered as hover events. */\nconst hoverEventNames = ['mouseenter', 'focusin'];\n/** `IntersectionObserver` used to observe `viewport` triggers. */\nlet intersectionObserver = null;\n/** Number of elements currently observed with `viewport` triggers. */\nlet observedViewportElements = 0;\n/** Object keeping track of registered callbacks for a deferred block trigger. */\nclass DeferEventEntry {\n constructor() {\n this.callbacks = new Set();\n this.listener = () => {\n for (const callback of this.callbacks) {\n callback();\n }\n };\n }\n}\n/**\n * Registers an interaction trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger is interacted with.\n */\nfunction onInteraction(trigger, callback) {\n let entry = interactionTriggers.get(trigger);\n // If this is the first entry for this element, add the listeners.\n if (!entry) {\n // Note that managing events centrally like this lends itself well to using global\n // event delegation. It currently does delegation at the element level, rather than the\n // document level, because:\n // 1. Global delegation is the most effective when there are a lot of events being registered\n // at the same time. Deferred blocks are unlikely to be used in such a way.\n // 2. Matching events to their target isn't free. For each `click` and `keydown` event we\n // would have look through all the triggers and check if the target either is the element\n // itself or it's contained within the element. Given that `click` and `keydown` are some\n // of the most common events, this may end up introducing a lot of runtime overhead.\n // 3. We're still registering only two events per element, no matter how many deferred blocks\n // are referencing it.\n entry = new DeferEventEntry();\n interactionTriggers.set(trigger, entry);\n for (const name of interactionEventNames) {\n trigger.addEventListener(name, entry.listener, eventListenerOptions);\n }\n }\n entry.callbacks.add(callback);\n return () => {\n const { callbacks, listener } = entry;\n callbacks.delete(callback);\n if (callbacks.size === 0) {\n interactionTriggers.delete(trigger);\n for (const name of interactionEventNames) {\n trigger.removeEventListener(name, listener, eventListenerOptions);\n }\n }\n };\n}\n/**\n * Registers a hover trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger is hovered over.\n */\nfunction onHover(trigger, callback) {\n let entry = hoverTriggers.get(trigger);\n // If this is the first entry for this element, add the listener.\n if (!entry) {\n entry = new DeferEventEntry();\n hoverTriggers.set(trigger, entry);\n for (const name of hoverEventNames) {\n trigger.addEventListener(name, entry.listener, eventListenerOptions);\n }\n }\n entry.callbacks.add(callback);\n return () => {\n const { callbacks, listener } = entry;\n callbacks.delete(callback);\n if (callbacks.size === 0) {\n for (const name of hoverEventNames) {\n trigger.removeEventListener(name, listener, eventListenerOptions);\n }\n hoverTriggers.delete(trigger);\n }\n };\n}\n/**\n * Registers a viewport trigger.\n * @param trigger Element that is the trigger.\n * @param callback Callback to be invoked when the trigger comes into the viewport.\n * @param injector Injector that can be used by the trigger to resolve DI tokens.\n */\nfunction onViewport(trigger, callback, injector) {\n const ngZone = injector.get(NgZone);\n let entry = viewportTriggers.get(trigger);\n intersectionObserver = intersectionObserver || ngZone.runOutsideAngular(() => {\n return new IntersectionObserver(entries => {\n for (const current of entries) {\n // Only invoke the callbacks if the specific element is intersecting.\n if (current.isIntersecting && viewportTriggers.has(current.target)) {\n ngZone.run(viewportTriggers.get(current.target).listener);\n }\n }\n });\n });\n if (!entry) {\n entry = new DeferEventEntry();\n ngZone.runOutsideAngular(() => intersectionObserver.observe(trigger));\n viewportTriggers.set(trigger, entry);\n observedViewportElements++;\n }\n entry.callbacks.add(callback);\n return () => {\n // It's possible that a different cleanup callback fully removed this element already.\n if (!viewportTriggers.has(trigger)) {\n return;\n }\n entry.callbacks.delete(callback);\n if (entry.callbacks.size === 0) {\n intersectionObserver?.unobserve(trigger);\n viewportTriggers.delete(trigger);\n observedViewportElements--;\n }\n if (observedViewportElements === 0) {\n intersectionObserver?.disconnect();\n intersectionObserver = null;\n }\n };\n}\n/**\n * Helper function to get the LView in which a deferred block's trigger is rendered.\n * @param deferredHostLView LView in which the deferred block is defined.\n * @param deferredTNode TNode defining the deferred block.\n * @param walkUpTimes Number of times to go up in the view hierarchy to find the trigger's view.\n * A negative value means that the trigger is inside the block's placeholder, while an undefined\n * value means that the trigger is in the same LView as the deferred block.\n */\nfunction getTriggerLView(deferredHostLView, deferredTNode, walkUpTimes) {\n // The trigger is in the same view, we don't need to traverse.\n if (walkUpTimes == null) {\n return deferredHostLView;\n }\n // A positive value or zero means that the trigger is in a parent view.\n if (walkUpTimes >= 0) {\n return walkUpViews(walkUpTimes, deferredHostLView);\n }\n // If the value is negative, it means that the trigger is inside the placeholder.\n const deferredContainer = deferredHostLView[deferredTNode.index];\n ngDevMode && assertLContainer(deferredContainer);\n const triggerLView = deferredContainer[CONTAINER_HEADER_OFFSET] ?? null;\n // We need to null check, because the placeholder might not have been rendered yet.\n if (ngDevMode && triggerLView !== null) {\n const lDetails = getLDeferBlockDetails(deferredHostLView, deferredTNode);\n const renderedState = lDetails[DEFER_BLOCK_STATE];\n assertEqual(renderedState, DeferBlockState.Placeholder, 'Expected a placeholder to be rendered in this defer block.');\n assertLView(triggerLView);\n }\n return triggerLView;\n}\n/**\n * Gets the element that a deferred block's trigger is pointing to.\n * @param triggerLView LView in which the trigger is defined.\n * @param triggerIndex Index at which the trigger element should've been rendered.\n */\nfunction getTriggerElement(triggerLView, triggerIndex) {\n const element = getNativeByIndex(HEADER_OFFSET + triggerIndex, triggerLView);\n ngDevMode && assertElement(element);\n return element;\n}\n/**\n * Registers a DOM-node based trigger.\n * @param initialLView LView in which the defer block is rendered.\n * @param tNode TNode representing the defer block.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to go up/down in the view hierarchy to find the trigger.\n * @param registerFn Function that will register the DOM events.\n * @param callback Callback to be invoked when the trigger receives the event that should render\n * the deferred block.\n * @param type Trigger type to distinguish between regular and prefetch triggers.\n */\nfunction registerDomTrigger(initialLView, tNode, triggerIndex, walkUpTimes, registerFn, callback, type) {\n const injector = initialLView[INJECTOR];\n function pollDomTrigger() {\n // If the initial view was destroyed, we don't need to do anything.\n if (isDestroyed(initialLView)) {\n return;\n }\n const lDetails = getLDeferBlockDetails(initialLView, tNode);\n const renderedState = lDetails[DEFER_BLOCK_STATE];\n // If the block was loaded before the trigger was resolved, we don't need to do anything.\n if (renderedState !== DeferBlockInternalState.Initial &&\n renderedState !== DeferBlockState.Placeholder) {\n return;\n }\n const triggerLView = getTriggerLView(initialLView, tNode, walkUpTimes);\n // Keep polling until we resolve the trigger's LView.\n if (!triggerLView) {\n internalAfterNextRender(pollDomTrigger, { injector });\n return;\n }\n // It's possible that the trigger's view was destroyed before we resolved the trigger element.\n if (isDestroyed(triggerLView)) {\n return;\n }\n const element = getTriggerElement(triggerLView, triggerIndex);\n const cleanup = registerFn(element, () => {\n if (initialLView !== triggerLView) {\n removeLViewOnDestroy(triggerLView, cleanup);\n }\n callback();\n }, injector);\n // The trigger and deferred block might be in different LViews.\n // For the main LView the cleanup would happen as a part of\n // `storeTriggerCleanupFn` logic. For trigger LView we register\n // a cleanup function there to remove event handlers in case an\n // LView gets destroyed before a trigger is invoked.\n if (initialLView !== triggerLView) {\n storeLViewOnDestroy(triggerLView, cleanup);\n }\n storeTriggerCleanupFn(type, lDetails, cleanup);\n }\n // Begin polling for the trigger.\n internalAfterNextRender(pollDomTrigger, { injector });\n}\n\n/**\n * Helper function to schedule a callback to be invoked when a browser becomes idle.\n *\n * @param callback A function to be invoked when a browser becomes idle.\n * @param lView LView that hosts an instance of a defer block.\n */\nfunction onIdle(callback, lView) {\n const injector = lView[INJECTOR];\n const scheduler = injector.get(IdleScheduler);\n const cleanupFn = () => scheduler.remove(callback);\n scheduler.add(callback);\n return cleanupFn;\n}\n/**\n * Use shims for the `requestIdleCallback` and `cancelIdleCallback` functions for\n * environments where those functions are not available (e.g. Node.js and Safari).\n *\n * Note: we wrap the `requestIdleCallback` call into a function, so that it can be\n * overridden/mocked in test environment and picked up by the runtime code.\n */\nconst _requestIdleCallback = () => typeof requestIdleCallback !== 'undefined' ? requestIdleCallback : setTimeout;\nconst _cancelIdleCallback = () => typeof requestIdleCallback !== 'undefined' ? cancelIdleCallback : clearTimeout;\n/**\n * Helper service to schedule `requestIdleCallback`s for batches of defer blocks,\n * to avoid calling `requestIdleCallback` for each defer block (e.g. if\n * defer blocks are defined inside a for loop).\n */\nclass IdleScheduler {\n constructor() {\n // Indicates whether current callbacks are being invoked.\n this.executingCallbacks = false;\n // Currently scheduled idle callback id.\n this.idleId = null;\n // Set of callbacks to be invoked next.\n this.current = new Set();\n // Set of callbacks collected while invoking current set of callbacks.\n // Those callbacks are scheduled for the next idle period.\n this.deferred = new Set();\n this.ngZone = inject(NgZone);\n this.requestIdleCallbackFn = _requestIdleCallback().bind(globalThis);\n this.cancelIdleCallbackFn = _cancelIdleCallback().bind(globalThis);\n }\n add(callback) {\n const target = this.executingCallbacks ? this.deferred : this.current;\n target.add(callback);\n if (this.idleId === null) {\n this.scheduleIdleCallback();\n }\n }\n remove(callback) {\n const { current, deferred } = this;\n current.delete(callback);\n deferred.delete(callback);\n // If the last callback was removed and there is a pending\n // idle callback - cancel it.\n if (current.size === 0 && deferred.size === 0) {\n this.cancelIdleCallback();\n }\n }\n scheduleIdleCallback() {\n const callback = () => {\n this.cancelIdleCallback();\n this.executingCallbacks = true;\n for (const callback of this.current) {\n callback();\n }\n this.current.clear();\n this.executingCallbacks = false;\n // If there are any callbacks added during an invocation\n // of the current ones - make them \"current\" and schedule\n // a new idle callback.\n if (this.deferred.size > 0) {\n for (const callback of this.deferred) {\n this.current.add(callback);\n }\n this.deferred.clear();\n this.scheduleIdleCallback();\n }\n };\n // Ensure that the callback runs in the NgZone since\n // the `requestIdleCallback` is not currently patched by Zone.js.\n this.idleId = this.requestIdleCallbackFn(() => this.ngZone.run(callback));\n }\n cancelIdleCallback() {\n if (this.idleId !== null) {\n this.cancelIdleCallbackFn(this.idleId);\n this.idleId = null;\n }\n }\n ngOnDestroy() {\n this.cancelIdleCallback();\n this.current.clear();\n this.deferred.clear();\n }\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: IdleScheduler,\n providedIn: 'root',\n factory: () => new IdleScheduler(),\n }); }\n}\n\n/**\n * Returns a function that captures a provided delay.\n * Invoking the returned function schedules a trigger.\n */\nfunction onTimer(delay) {\n return (callback, lView) => scheduleTimerTrigger(delay, callback, lView);\n}\n/**\n * Schedules a callback to be invoked after a given timeout.\n *\n * @param delay A number of ms to wait until firing a callback.\n * @param callback A function to be invoked after a timeout.\n * @param lView LView that hosts an instance of a defer block.\n */\nfunction scheduleTimerTrigger(delay, callback, lView) {\n const injector = lView[INJECTOR];\n const scheduler = injector.get(TimerScheduler);\n const cleanupFn = () => scheduler.remove(callback);\n scheduler.add(delay, callback);\n return cleanupFn;\n}\n/**\n * Helper service to schedule `setTimeout`s for batches of defer blocks,\n * to avoid calling `setTimeout` for each defer block (e.g. if defer blocks\n * are created inside a for loop).\n */\nclass TimerScheduler {\n constructor() {\n // Indicates whether current callbacks are being invoked.\n this.executingCallbacks = false;\n // Currently scheduled `setTimeout` id.\n this.timeoutId = null;\n // When currently scheduled timer would fire.\n this.invokeTimerAt = null;\n // List of callbacks to be invoked.\n // For each callback we also store a timestamp on when the callback\n // should be invoked. We store timestamps and callback functions\n // in a flat array to avoid creating new objects for each entry.\n // [timestamp1, callback1, timestamp2, callback2, ...]\n this.current = [];\n // List of callbacks collected while invoking current set of callbacks.\n // Those callbacks are added to the \"current\" queue at the end of\n // the current callback invocation. The shape of this list is the same\n // as the shape of the `current` list.\n this.deferred = [];\n }\n add(delay, callback) {\n const target = this.executingCallbacks ? this.deferred : this.current;\n this.addToQueue(target, Date.now() + delay, callback);\n this.scheduleTimer();\n }\n remove(callback) {\n const { current, deferred } = this;\n const callbackIndex = this.removeFromQueue(current, callback);\n if (callbackIndex === -1) {\n // Try cleaning up deferred queue only in case\n // we didn't find a callback in the \"current\" queue.\n this.removeFromQueue(deferred, callback);\n }\n // If the last callback was removed and there is a pending timeout - cancel it.\n if (current.length === 0 && deferred.length === 0) {\n this.clearTimeout();\n }\n }\n addToQueue(target, invokeAt, callback) {\n let insertAtIndex = target.length;\n for (let i = 0; i < target.length; i += 2) {\n const invokeQueuedCallbackAt = target[i];\n if (invokeQueuedCallbackAt > invokeAt) {\n // We've reached a first timer that is scheduled\n // for a later time than what we are trying to insert.\n // This is the location at which we need to insert,\n // no need to iterate further.\n insertAtIndex = i;\n break;\n }\n }\n arrayInsert2(target, insertAtIndex, invokeAt, callback);\n }\n removeFromQueue(target, callback) {\n let index = -1;\n for (let i = 0; i < target.length; i += 2) {\n const queuedCallback = target[i + 1];\n if (queuedCallback === callback) {\n index = i;\n break;\n }\n }\n if (index > -1) {\n // Remove 2 elements: a timestamp slot and\n // the following slot with a callback function.\n arraySplice(target, index, 2);\n }\n return index;\n }\n scheduleTimer() {\n const callback = () => {\n this.clearTimeout();\n this.executingCallbacks = true;\n // Clone the current state of the queue, since it might be altered\n // as we invoke callbacks.\n const current = [...this.current];\n // Invoke callbacks that were scheduled to run before the current time.\n const now = Date.now();\n for (let i = 0; i < current.length; i += 2) {\n const invokeAt = current[i];\n const callback = current[i + 1];\n if (invokeAt <= now) {\n callback();\n }\n else {\n // We've reached a timer that should not be invoked yet.\n break;\n }\n }\n // The state of the queue might've changed after callbacks invocation,\n // run the cleanup logic based on the *current* state of the queue.\n let lastCallbackIndex = -1;\n for (let i = 0; i < this.current.length; i += 2) {\n const invokeAt = this.current[i];\n if (invokeAt <= now) {\n // Add +1 to account for a callback function that\n // goes after the timestamp in events array.\n lastCallbackIndex = i + 1;\n }\n else {\n // We've reached a timer that should not be invoked yet.\n break;\n }\n }\n if (lastCallbackIndex >= 0) {\n arraySplice(this.current, 0, lastCallbackIndex + 1);\n }\n this.executingCallbacks = false;\n // If there are any callbacks added during an invocation\n // of the current ones - move them over to the \"current\"\n // queue.\n if (this.deferred.length > 0) {\n for (let i = 0; i < this.deferred.length; i += 2) {\n const invokeAt = this.deferred[i];\n const callback = this.deferred[i + 1];\n this.addToQueue(this.current, invokeAt, callback);\n }\n this.deferred.length = 0;\n }\n this.scheduleTimer();\n };\n // Avoid running timer callbacks more than once per\n // average frame duration. This is needed for better\n // batching and to avoid kicking off excessive change\n // detection cycles.\n const FRAME_DURATION_MS = 16; // 1000ms / 60fps\n if (this.current.length > 0) {\n const now = Date.now();\n // First element in the queue points at the timestamp\n // of the first (earliest) event.\n const invokeAt = this.current[0];\n if (this.timeoutId === null ||\n // Reschedule a timer in case a queue contains an item with\n // an earlier timestamp and the delta is more than an average\n // frame duration.\n (this.invokeTimerAt && (this.invokeTimerAt - invokeAt > FRAME_DURATION_MS))) {\n // There was a timeout already, but an earlier event was added\n // into the queue. In this case we drop an old timer and setup\n // a new one with an updated (smaller) timeout.\n this.clearTimeout();\n const timeout = Math.max(invokeAt - now, FRAME_DURATION_MS);\n this.invokeTimerAt = invokeAt;\n this.timeoutId = setTimeout(callback, timeout);\n }\n }\n }\n clearTimeout() {\n if (this.timeoutId !== null) {\n clearTimeout(this.timeoutId);\n this.timeoutId = null;\n }\n }\n ngOnDestroy() {\n this.clearTimeout();\n this.current.length = 0;\n this.deferred.length = 0;\n }\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: TimerScheduler,\n providedIn: 'root',\n factory: () => new TimerScheduler(),\n }); }\n}\n\n/**\n * **INTERNAL**, avoid referencing it in application code.\n * *\n * Injector token that allows to provide `DeferBlockDependencyInterceptor` class\n * implementation.\n *\n * This token is only injected in devMode\n */\nconst DEFER_BLOCK_DEPENDENCY_INTERCEPTOR = new InjectionToken('DEFER_BLOCK_DEPENDENCY_INTERCEPTOR');\n/**\n * **INTERNAL**, token used for configuring defer block behavior.\n */\nconst DEFER_BLOCK_CONFIG = new InjectionToken(ngDevMode ? 'DEFER_BLOCK_CONFIG' : '');\n/**\n * Returns whether defer blocks should be triggered.\n *\n * Currently, defer blocks are not triggered on the server,\n * only placeholder content is rendered (if provided).\n */\nfunction shouldTriggerDeferBlock(injector) {\n const config = injector.get(DEFER_BLOCK_CONFIG, null, { optional: true });\n if (config?.behavior === DeferBlockBehavior.Manual) {\n return false;\n }\n return isPlatformBrowser(injector);\n}\n/**\n * Reference to the timer-based scheduler implementation of defer block state\n * rendering method. It's used to make timer-based scheduling tree-shakable.\n * If `minimum` or `after` parameters are used, compiler generates an extra\n * argument for the `ɵɵdefer` instruction, which references a timer-based\n * implementation.\n */\nlet applyDeferBlockStateWithSchedulingImpl = null;\n/**\n * Enables timer-related scheduling if `after` or `minimum` parameters are setup\n * on the `@loading` or `@placeholder` blocks.\n */\nfunction ɵɵdeferEnableTimerScheduling(tView, tDetails, placeholderConfigIndex, loadingConfigIndex) {\n const tViewConsts = tView.consts;\n if (placeholderConfigIndex != null) {\n tDetails.placeholderBlockConfig =\n getConstant(tViewConsts, placeholderConfigIndex);\n }\n if (loadingConfigIndex != null) {\n tDetails.loadingBlockConfig =\n getConstant(tViewConsts, loadingConfigIndex);\n }\n // Enable implementation that supports timer-based scheduling.\n if (applyDeferBlockStateWithSchedulingImpl === null) {\n applyDeferBlockStateWithSchedulingImpl = applyDeferBlockStateWithScheduling;\n }\n}\n/**\n * Creates runtime data structures for defer blocks.\n *\n * @param index Index of the `defer` instruction.\n * @param primaryTmplIndex Index of the template with the primary block content.\n * @param dependencyResolverFn Function that contains dependencies for this defer block.\n * @param loadingTmplIndex Index of the template with the loading block content.\n * @param placeholderTmplIndex Index of the template with the placeholder block content.\n * @param errorTmplIndex Index of the template with the error block content.\n * @param loadingConfigIndex Index in the constants array of the configuration of the loading.\n * block.\n * @param placeholderConfigIndex Index in the constants array of the configuration of the\n * placeholder block.\n * @param enableTimerScheduling Function that enables timer-related scheduling if `after`\n * or `minimum` parameters are setup on the `@loading` or `@placeholder` blocks.\n *\n * @codeGenApi\n */\nfunction ɵɵdefer(index, primaryTmplIndex, dependencyResolverFn, loadingTmplIndex, placeholderTmplIndex, errorTmplIndex, loadingConfigIndex, placeholderConfigIndex, enableTimerScheduling) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ɵɵtemplate(index, null, 0, 0);\n if (tView.firstCreatePass) {\n performanceMarkFeature('NgDefer');\n const tDetails = {\n primaryTmplIndex,\n loadingTmplIndex: loadingTmplIndex ?? null,\n placeholderTmplIndex: placeholderTmplIndex ?? null,\n errorTmplIndex: errorTmplIndex ?? null,\n placeholderBlockConfig: null,\n loadingBlockConfig: null,\n dependencyResolverFn: dependencyResolverFn ?? null,\n loadingState: DeferDependenciesLoadingState.NOT_STARTED,\n loadingPromise: null,\n providers: null,\n };\n enableTimerScheduling?.(tView, tDetails, placeholderConfigIndex, loadingConfigIndex);\n setTDeferBlockDetails(tView, adjustedIndex, tDetails);\n }\n const tNode = getCurrentTNode();\n const lContainer = lView[adjustedIndex];\n // If hydration is enabled, looks up dehydrated views in the DOM\n // using hydration annotation info and stores those views on LContainer.\n // In client-only mode, this function is a noop.\n populateDehydratedViewsInLContainer(lContainer, tNode, lView);\n // Init instance-specific defer details and store it.\n const lDetails = [\n null, // NEXT_DEFER_BLOCK_STATE\n DeferBlockInternalState.Initial, // DEFER_BLOCK_STATE\n null, // STATE_IS_FROZEN_UNTIL\n null, // LOADING_AFTER_CLEANUP_FN\n null, // TRIGGER_CLEANUP_FNS\n null // PREFETCH_TRIGGER_CLEANUP_FNS\n ];\n setLDeferBlockDetails(lView, adjustedIndex, lDetails);\n const cleanupTriggersFn = () => invokeAllTriggerCleanupFns(lDetails);\n // When defer block is triggered - unsubscribe from LView destroy cleanup.\n storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, () => removeLViewOnDestroy(lView, cleanupTriggersFn));\n storeLViewOnDestroy(lView, cleanupTriggersFn);\n}\n/**\n * Loads defer block dependencies when a trigger value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferWhen(rawValue) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, rawValue)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const value = Boolean(rawValue); // handle truthy or falsy values\n const tNode = getSelectedTNode();\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const renderedState = lDetails[DEFER_BLOCK_STATE];\n if (value === false && renderedState === DeferBlockInternalState.Initial) {\n // If nothing is rendered yet, render a placeholder (if defined).\n renderPlaceholder(lView, tNode);\n }\n else if (value === true &&\n (renderedState === DeferBlockInternalState.Initial ||\n renderedState === DeferBlockState.Placeholder)) {\n // The `when` condition has changed to `true`, trigger defer block loading\n // if the block is either in initial (nothing is rendered) or a placeholder\n // state.\n triggerDeferBlock(lView, tNode);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Prefetches the deferred content when a value becomes truthy.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchWhen(rawValue) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, rawValue)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n const value = Boolean(rawValue); // handle truthy or falsy values\n const tView = lView[TVIEW];\n const tNode = getSelectedTNode();\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (value === true && tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n // If loading has not been started yet, trigger it now.\n triggerPrefetching(tDetails, lView, tNode);\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n}\n/**\n * Sets up logic to handle the `on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnIdle() {\n scheduleDelayedTrigger(onIdle);\n}\n/**\n * Sets up logic to handle the `prefetch on idle` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnIdle() {\n scheduleDelayedPrefetching(onIdle);\n}\n/**\n * Sets up logic to handle the `on immediate` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnImmediate() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const injector = lView[INJECTOR];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n // Render placeholder block only if loading template is not present and we're on\n // the client to avoid content flickering, since it would be immediately replaced\n // by the loading block.\n if (!shouldTriggerDeferBlock(injector) || tDetails.loadingTmplIndex === null) {\n renderPlaceholder(lView, tNode);\n }\n triggerDeferBlock(lView, tNode);\n}\n/**\n * Sets up logic to handle the `prefetch on immediate` deferred trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnImmediate() {\n const lView = getLView();\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n triggerResourceLoading(tDetails, lView, tNode);\n }\n}\n/**\n * Creates runtime data structures for the `on timer` deferred trigger.\n * @param delay Amount of time to wait before loading the content.\n * @codeGenApi\n */\nfunction ɵɵdeferOnTimer(delay) {\n scheduleDelayedTrigger(onTimer(delay));\n}\n/**\n * Creates runtime data structures for the `prefetch on timer` deferred trigger.\n * @param delay Amount of time to wait before prefetching the content.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnTimer(delay) {\n scheduleDelayedPrefetching(onTimer(delay));\n}\n/**\n * Creates runtime data structures for the `on hover` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnHover(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n renderPlaceholder(lView, tNode);\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onHover, () => triggerDeferBlock(lView, tNode), 0 /* TriggerType.Regular */);\n}\n/**\n * Creates runtime data structures for the `prefetch on hover` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnHover(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onHover, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n }\n}\n/**\n * Creates runtime data structures for the `on interaction` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnInteraction(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n renderPlaceholder(lView, tNode);\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onInteraction, () => triggerDeferBlock(lView, tNode), 0 /* TriggerType.Regular */);\n}\n/**\n * Creates runtime data structures for the `prefetch on interaction` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnInteraction(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onInteraction, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n }\n}\n/**\n * Creates runtime data structures for the `on viewport` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferOnViewport(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n renderPlaceholder(lView, tNode);\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onViewport, () => triggerDeferBlock(lView, tNode), 0 /* TriggerType.Regular */);\n}\n/**\n * Creates runtime data structures for the `prefetch on viewport` deferred trigger.\n * @param triggerIndex Index at which to find the trigger element.\n * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger.\n * @codeGenApi\n */\nfunction ɵɵdeferPrefetchOnViewport(triggerIndex, walkUpTimes) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n registerDomTrigger(lView, tNode, triggerIndex, walkUpTimes, onViewport, () => triggerPrefetching(tDetails, lView, tNode), 1 /* TriggerType.Prefetch */);\n }\n}\n/********** Helper functions **********/\n/**\n * Schedules triggering of a defer block for `on idle` and `on timer` conditions.\n */\nfunction scheduleDelayedTrigger(scheduleFn) {\n const lView = getLView();\n const tNode = getCurrentTNode();\n renderPlaceholder(lView, tNode);\n // Only trigger the scheduled trigger on the browser\n // since we don't want to delay the server response.\n if (isPlatformBrowser(lView[INJECTOR])) {\n const cleanupFn = scheduleFn(() => triggerDeferBlock(lView, tNode), lView);\n const lDetails = getLDeferBlockDetails(lView, tNode);\n storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, cleanupFn);\n }\n}\n/**\n * Schedules prefetching for `on idle` and `on timer` triggers.\n *\n * @param scheduleFn A function that does the scheduling.\n */\nfunction scheduleDelayedPrefetching(scheduleFn) {\n const lView = getLView();\n // Only trigger the scheduled trigger on the browser\n // since we don't want to delay the server response.\n if (isPlatformBrowser(lView[INJECTOR])) {\n const tNode = getCurrentTNode();\n const tView = lView[TVIEW];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const prefetch = () => triggerPrefetching(tDetails, lView, tNode);\n const cleanupFn = scheduleFn(prefetch, lView);\n storeTriggerCleanupFn(1 /* TriggerType.Prefetch */, lDetails, cleanupFn);\n }\n }\n}\n/**\n * Transitions a defer block to the new state. Updates the necessary\n * data structures and renders corresponding block.\n *\n * @param newState New state that should be applied to the defer block.\n * @param tNode TNode that represents a defer block.\n * @param lContainer Represents an instance of a defer block.\n * @param skipTimerScheduling Indicates that `@loading` and `@placeholder` block\n * should be rendered immediately, even if they have `after` or `minimum` config\n * options setup. This flag to needed for testing APIs to transition defer block\n * between states via `DeferFixture.render` method.\n */\nfunction renderDeferBlockState(newState, tNode, lContainer, skipTimerScheduling = false) {\n const hostLView = lContainer[PARENT];\n const hostTView = hostLView[TVIEW];\n // Check if this view is not destroyed. Since the loading process was async,\n // the view might end up being destroyed by the time rendering happens.\n if (isDestroyed(hostLView))\n return;\n // Make sure this TNode belongs to TView that represents host LView.\n ngDevMode && assertTNodeForLView(tNode, hostLView);\n const lDetails = getLDeferBlockDetails(hostLView, tNode);\n ngDevMode && assertDefined(lDetails, 'Expected a defer block state defined');\n const currentState = lDetails[DEFER_BLOCK_STATE];\n if (isValidStateChange(currentState, newState) &&\n isValidStateChange(lDetails[NEXT_DEFER_BLOCK_STATE] ?? -1, newState)) {\n const injector = hostLView[INJECTOR];\n const tDetails = getTDeferBlockDetails(hostTView, tNode);\n // Skips scheduling on the server since it can delay the server response.\n const needsScheduling = !skipTimerScheduling && isPlatformBrowser(injector) &&\n (getLoadingBlockAfter(tDetails) !== null ||\n getMinimumDurationForState(tDetails, DeferBlockState.Loading) !== null ||\n getMinimumDurationForState(tDetails, DeferBlockState.Placeholder));\n if (ngDevMode && needsScheduling) {\n assertDefined(applyDeferBlockStateWithSchedulingImpl, 'Expected scheduling function to be defined');\n }\n const applyStateFn = needsScheduling ? applyDeferBlockStateWithSchedulingImpl : applyDeferBlockState;\n try {\n applyStateFn(newState, lDetails, lContainer, tNode, hostLView);\n }\n catch (error) {\n handleError(hostLView, error);\n }\n }\n}\n/**\n * Detects whether an injector is an instance of a `ChainedInjector`,\n * created based on the `OutletInjector`.\n */\nfunction isRouterOutletInjector(currentInjector) {\n return (currentInjector instanceof ChainedInjector) &&\n (typeof currentInjector.injector.__ngOutletInjector === 'function');\n}\n/**\n * Creates an instance of the `OutletInjector` using a private factory\n * function available on the `OutletInjector` class.\n *\n * @param parentOutletInjector Parent OutletInjector, which should be used\n * to produce a new instance.\n * @param parentInjector An Injector, which should be used as a parent one\n * for a newly created `OutletInjector` instance.\n */\nfunction createRouterOutletInjector(parentOutletInjector, parentInjector) {\n const outletInjector = parentOutletInjector.injector;\n return outletInjector.__ngOutletInjector(parentInjector);\n}\n/**\n * Applies changes to the DOM to reflect a given state.\n */\nfunction applyDeferBlockState(newState, lDetails, lContainer, tNode, hostLView) {\n const stateTmplIndex = getTemplateIndexForState(newState, hostLView, tNode);\n if (stateTmplIndex !== null) {\n lDetails[DEFER_BLOCK_STATE] = newState;\n const hostTView = hostLView[TVIEW];\n const adjustedIndex = stateTmplIndex + HEADER_OFFSET;\n const activeBlockTNode = getTNode(hostTView, adjustedIndex);\n // There is only 1 view that can be present in an LContainer that\n // represents a defer block, so always refer to the first one.\n const viewIndex = 0;\n removeLViewFromLContainer(lContainer, viewIndex);\n let injector;\n if (newState === DeferBlockState.Complete) {\n // When we render a defer block in completed state, there might be\n // newly loaded standalone components used within the block, which may\n // import NgModules with providers. In order to make those providers\n // available for components declared in that NgModule, we create an instance\n // of environment injector to host those providers and pass this injector\n // to the logic that creates a view.\n const tDetails = getTDeferBlockDetails(hostTView, tNode);\n const providers = tDetails.providers;\n if (providers && providers.length > 0) {\n const parentInjector = hostLView[INJECTOR];\n // Note: we have a special case for Router's `OutletInjector`,\n // since it's not an instance of the `EnvironmentInjector`, so\n // we can't inject it. Once the `OutletInjector` is replaced\n // with the `EnvironmentInjector` in Router's code, this special\n // handling can be removed.\n const isParentOutletInjector = isRouterOutletInjector(parentInjector);\n const parentEnvInjector = isParentOutletInjector ? parentInjector : parentInjector.get(EnvironmentInjector);\n injector = parentEnvInjector.get(CachedInjectorService)\n .getOrCreateInjector(tDetails, parentEnvInjector, providers, ngDevMode ? 'DeferBlock Injector' : '');\n // Note: this is a continuation of the special case for Router's `OutletInjector`.\n // Since the `OutletInjector` handles `ActivatedRoute` and `ChildrenOutletContexts`\n // dynamically (i.e. their values are not really stored statically in an injector),\n // we need to \"wrap\" a defer injector into another `OutletInjector`, so we retain\n // the dynamic resolution of the mentioned tokens.\n if (isParentOutletInjector) {\n injector = createRouterOutletInjector(parentInjector, injector);\n }\n }\n }\n const dehydratedView = findMatchingDehydratedView(lContainer, activeBlockTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(hostLView, activeBlockTNode, null, { dehydratedView, injector });\n addLViewToLContainer(lContainer, embeddedLView, viewIndex, shouldAddViewToDom(activeBlockTNode, dehydratedView));\n markViewDirty(embeddedLView);\n }\n}\n/**\n * Extends the `applyDeferBlockState` with timer-based scheduling.\n * This function becomes available on a page if there are defer blocks\n * that use `after` or `minimum` parameters in the `@loading` or\n * `@placeholder` blocks.\n */\nfunction applyDeferBlockStateWithScheduling(newState, lDetails, lContainer, tNode, hostLView) {\n const now = Date.now();\n const hostTView = hostLView[TVIEW];\n const tDetails = getTDeferBlockDetails(hostTView, tNode);\n if (lDetails[STATE_IS_FROZEN_UNTIL] === null || lDetails[STATE_IS_FROZEN_UNTIL] <= now) {\n lDetails[STATE_IS_FROZEN_UNTIL] = null;\n const loadingAfter = getLoadingBlockAfter(tDetails);\n const inLoadingAfterPhase = lDetails[LOADING_AFTER_CLEANUP_FN] !== null;\n if (newState === DeferBlockState.Loading && loadingAfter !== null && !inLoadingAfterPhase) {\n // Trying to render loading, but it has an `after` config,\n // so schedule an update action after a timeout.\n lDetails[NEXT_DEFER_BLOCK_STATE] = newState;\n const cleanupFn = scheduleDeferBlockUpdate(loadingAfter, lDetails, tNode, lContainer, hostLView);\n lDetails[LOADING_AFTER_CLEANUP_FN] = cleanupFn;\n }\n else {\n // If we transition to a complete or an error state and there is a pending\n // operation to render loading after a timeout - invoke a cleanup operation,\n // which stops the timer.\n if (newState > DeferBlockState.Loading && inLoadingAfterPhase) {\n lDetails[LOADING_AFTER_CLEANUP_FN]();\n lDetails[LOADING_AFTER_CLEANUP_FN] = null;\n lDetails[NEXT_DEFER_BLOCK_STATE] = null;\n }\n applyDeferBlockState(newState, lDetails, lContainer, tNode, hostLView);\n const duration = getMinimumDurationForState(tDetails, newState);\n if (duration !== null) {\n lDetails[STATE_IS_FROZEN_UNTIL] = now + duration;\n scheduleDeferBlockUpdate(duration, lDetails, tNode, lContainer, hostLView);\n }\n }\n }\n else {\n // We are still rendering the previous state.\n // Update the `NEXT_DEFER_BLOCK_STATE`, which would be\n // picked up once it's time to transition to the next state.\n lDetails[NEXT_DEFER_BLOCK_STATE] = newState;\n }\n}\n/**\n * Schedules an update operation after a specified timeout.\n */\nfunction scheduleDeferBlockUpdate(timeout, lDetails, tNode, lContainer, hostLView) {\n const callback = () => {\n const nextState = lDetails[NEXT_DEFER_BLOCK_STATE];\n lDetails[STATE_IS_FROZEN_UNTIL] = null;\n lDetails[NEXT_DEFER_BLOCK_STATE] = null;\n if (nextState !== null) {\n renderDeferBlockState(nextState, tNode, lContainer);\n }\n };\n return scheduleTimerTrigger(timeout, callback, hostLView);\n}\n/**\n * Checks whether we can transition to the next state.\n *\n * We transition to the next state if the previous state was represented\n * with a number that is less than the next state. For example, if the current\n * state is \"loading\" (represented as `1`), we should not show a placeholder\n * (represented as `0`), but we can show a completed state (represented as `2`)\n * or an error state (represented as `3`).\n */\nfunction isValidStateChange(currentState, newState) {\n return currentState < newState;\n}\n/**\n * Trigger prefetching of dependencies for a defer block.\n *\n * @param tDetails Static information about this defer block.\n * @param lView LView of a host view.\n */\nfunction triggerPrefetching(tDetails, lView, tNode) {\n if (lView[INJECTOR] && shouldTriggerDeferBlock(lView[INJECTOR])) {\n triggerResourceLoading(tDetails, lView, tNode);\n }\n}\n/**\n * Trigger loading of defer block dependencies if the process hasn't started yet.\n *\n * @param tDetails Static information about this defer block.\n * @param lView LView of a host view.\n */\nfunction triggerResourceLoading(tDetails, lView, tNode) {\n const injector = lView[INJECTOR];\n const tView = lView[TVIEW];\n if (tDetails.loadingState !== DeferDependenciesLoadingState.NOT_STARTED) {\n // If the loading status is different from initial one, it means that\n // the loading of dependencies is in progress and there is nothing to do\n // in this function. All details can be obtained from the `tDetails` object.\n return tDetails.loadingPromise ?? Promise.resolve();\n }\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const primaryBlockTNode = getPrimaryBlockTNode(tView, tDetails);\n // Switch from NOT_STARTED -> IN_PROGRESS state.\n tDetails.loadingState = DeferDependenciesLoadingState.IN_PROGRESS;\n // Prefetching is triggered, cleanup all registered prefetch triggers.\n invokeTriggerCleanupFns(1 /* TriggerType.Prefetch */, lDetails);\n let dependenciesFn = tDetails.dependencyResolverFn;\n if (ngDevMode) {\n // Check if dependency function interceptor is configured.\n const deferDependencyInterceptor = injector.get(DEFER_BLOCK_DEPENDENCY_INTERCEPTOR, null, { optional: true });\n if (deferDependencyInterceptor) {\n dependenciesFn = deferDependencyInterceptor.intercept(dependenciesFn);\n }\n }\n // Indicate that an application is not stable and has a pending task.\n const pendingTasks = injector.get(PendingTasks);\n const taskId = pendingTasks.add();\n // The `dependenciesFn` might be `null` when all dependencies within\n // a given defer block were eagerly referenced elsewhere in a file,\n // thus no dynamic `import()`s were produced.\n if (!dependenciesFn) {\n tDetails.loadingPromise = Promise.resolve().then(() => {\n tDetails.loadingPromise = null;\n tDetails.loadingState = DeferDependenciesLoadingState.COMPLETE;\n pendingTasks.remove(taskId);\n });\n return tDetails.loadingPromise;\n }\n // Start downloading of defer block dependencies.\n tDetails.loadingPromise = Promise.allSettled(dependenciesFn()).then(results => {\n let failed = false;\n const directiveDefs = [];\n const pipeDefs = [];\n for (const result of results) {\n if (result.status === 'fulfilled') {\n const dependency = result.value;\n const directiveDef = getComponentDef(dependency) || getDirectiveDef(dependency);\n if (directiveDef) {\n directiveDefs.push(directiveDef);\n }\n else {\n const pipeDef = getPipeDef$1(dependency);\n if (pipeDef) {\n pipeDefs.push(pipeDef);\n }\n }\n }\n else {\n failed = true;\n break;\n }\n }\n // Loading is completed, we no longer need the loading Promise\n // and a pending task should also be removed.\n tDetails.loadingPromise = null;\n pendingTasks.remove(taskId);\n if (failed) {\n tDetails.loadingState = DeferDependenciesLoadingState.FAILED;\n if (tDetails.errorTmplIndex === null) {\n const templateLocation = getTemplateLocationDetails(lView);\n const error = new RuntimeError(750 /* RuntimeErrorCode.DEFER_LOADING_FAILED */, ngDevMode &&\n 'Loading dependencies for `@defer` block failed, ' +\n `but no \\`@error\\` block was configured${templateLocation}. ` +\n 'Consider using the `@error` block to render an error state.');\n handleError(lView, error);\n }\n }\n else {\n tDetails.loadingState = DeferDependenciesLoadingState.COMPLETE;\n // Update directive and pipe registries to add newly downloaded dependencies.\n const primaryBlockTView = primaryBlockTNode.tView;\n if (directiveDefs.length > 0) {\n primaryBlockTView.directiveRegistry =\n addDepsToRegistry(primaryBlockTView.directiveRegistry, directiveDefs);\n // Extract providers from all NgModules imported by standalone components\n // used within this defer block.\n const directiveTypes = directiveDefs.map(def => def.type);\n const providers = internalImportProvidersFrom(false, ...directiveTypes);\n tDetails.providers = providers;\n }\n if (pipeDefs.length > 0) {\n primaryBlockTView.pipeRegistry =\n addDepsToRegistry(primaryBlockTView.pipeRegistry, pipeDefs);\n }\n }\n });\n return tDetails.loadingPromise;\n}\n/** Utility function to render placeholder content (if present) */\nfunction renderPlaceholder(lView, tNode) {\n const lContainer = lView[tNode.index];\n ngDevMode && assertLContainer(lContainer);\n renderDeferBlockState(DeferBlockState.Placeholder, tNode, lContainer);\n}\n/**\n * Subscribes to the \"loading\" Promise and renders corresponding defer sub-block,\n * based on the loading results.\n *\n * @param lContainer Represents an instance of a defer block.\n * @param tNode Represents defer block info shared across all instances.\n */\nfunction renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer) {\n ngDevMode &&\n assertDefined(tDetails.loadingPromise, 'Expected loading Promise to exist on this defer block');\n tDetails.loadingPromise.then(() => {\n if (tDetails.loadingState === DeferDependenciesLoadingState.COMPLETE) {\n ngDevMode && assertDeferredDependenciesLoaded(tDetails);\n // Everything is loaded, show the primary block content\n renderDeferBlockState(DeferBlockState.Complete, tNode, lContainer);\n }\n else if (tDetails.loadingState === DeferDependenciesLoadingState.FAILED) {\n renderDeferBlockState(DeferBlockState.Error, tNode, lContainer);\n }\n });\n}\n/**\n * Attempts to trigger loading of defer block dependencies.\n * If the block is already in a loading, completed or an error state -\n * no additional actions are taken.\n */\nfunction triggerDeferBlock(lView, tNode) {\n const tView = lView[TVIEW];\n const lContainer = lView[tNode.index];\n const injector = lView[INJECTOR];\n ngDevMode && assertLContainer(lContainer);\n if (!shouldTriggerDeferBlock(injector))\n return;\n const lDetails = getLDeferBlockDetails(lView, tNode);\n const tDetails = getTDeferBlockDetails(tView, tNode);\n // Defer block is triggered, cleanup all registered trigger functions.\n invokeAllTriggerCleanupFns(lDetails);\n switch (tDetails.loadingState) {\n case DeferDependenciesLoadingState.NOT_STARTED:\n renderDeferBlockState(DeferBlockState.Loading, tNode, lContainer);\n triggerResourceLoading(tDetails, lView, tNode);\n // The `loadingState` might have changed to \"loading\".\n if (tDetails.loadingState ===\n DeferDependenciesLoadingState.IN_PROGRESS) {\n renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer);\n }\n break;\n case DeferDependenciesLoadingState.IN_PROGRESS:\n renderDeferBlockState(DeferBlockState.Loading, tNode, lContainer);\n renderDeferStateAfterResourceLoading(tDetails, tNode, lContainer);\n break;\n case DeferDependenciesLoadingState.COMPLETE:\n ngDevMode && assertDeferredDependenciesLoaded(tDetails);\n renderDeferBlockState(DeferBlockState.Complete, tNode, lContainer);\n break;\n case DeferDependenciesLoadingState.FAILED:\n renderDeferBlockState(DeferBlockState.Error, tNode, lContainer);\n break;\n default:\n if (ngDevMode) {\n throwError('Unknown defer block state');\n }\n }\n}\n\n/**\n * Updates the value of or removes a bound attribute on an Element.\n *\n * Used in the case of `[attr.title]=\"value\"`\n *\n * @param name name The name of the attribute.\n * @param value value The attribute is removed when value is `null` or `undefined`.\n * Otherwise the attribute value is set to the stringified value.\n * @param sanitizer An optional function used to sanitize the value.\n * @param namespace Optional namespace to use when setting the attribute.\n *\n * @codeGenApi\n */\nfunction ɵɵattribute(name, value, sanitizer, namespace) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);\n }\n return ɵɵattribute;\n}\n\n/**\n * Create interpolation bindings with a variable number of expressions.\n *\n * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.\n * Those are faster because there is no need to create an array of expressions and iterate over it.\n *\n * `values`:\n * - has static text at even indexes,\n * - has evaluated expressions at odd indexes.\n *\n * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.\n */\nfunction interpolationV(lView, values) {\n ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');\n ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');\n let isBindingUpdated = false;\n let bindingIndex = getBindingIndex();\n for (let i = 1; i < values.length; i += 2) {\n // Check if bindings (odd indexes) have changed\n isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;\n }\n setBindingIndex(bindingIndex);\n if (!isBindingUpdated) {\n return NO_CHANGE;\n }\n // Build the updated content\n let content = values[0];\n for (let i = 1; i < values.length; i += 2) {\n content += renderStringify(values[i]) + values[i + 1];\n }\n return content;\n}\n/**\n * Creates an interpolation binding with 1 expression.\n *\n * @param prefix static value used for concatenation only.\n * @param v0 value checked for change.\n * @param suffix static value used for concatenation only.\n */\nfunction interpolation1(lView, prefix, v0, suffix) {\n const different = bindingUpdated(lView, nextBindingIndex(), v0);\n return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 2 expressions.\n */\nfunction interpolation2(lView, prefix, v0, i0, v1, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated2(lView, bindingIndex, v0, v1);\n incrementBindingIndex(2);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 3 expressions.\n */\nfunction interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);\n incrementBindingIndex(3);\n return different ?\n prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix :\n NO_CHANGE;\n}\n/**\n * Create an interpolation binding with 4 expressions.\n */\nfunction interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n incrementBindingIndex(4);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 5 expressions.\n */\nfunction interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated(lView, bindingIndex + 4, v4) || different;\n incrementBindingIndex(5);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 6 expressions.\n */\nfunction interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;\n incrementBindingIndex(6);\n return different ?\n prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 +\n renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 7 expressions.\n */\nfunction interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;\n incrementBindingIndex(7);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +\n renderStringify(v5) + i5 + renderStringify(v6) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 8 expressions.\n */\nfunction interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;\n incrementBindingIndex(8);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +\n renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + suffix :\n NO_CHANGE;\n}\n\n/**\n *\n * Update an interpolated attribute on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);\n }\n return ɵɵattributeInterpolate1;\n}\n/**\n *\n * Update an interpolated attribute on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);\n }\n return ɵɵattributeInterpolate2;\n}\n/**\n *\n * Update an interpolated attribute on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n }\n return ɵɵattributeInterpolate3;\n}\n/**\n *\n * Update an interpolated attribute on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n }\n return ɵɵattributeInterpolate4;\n}\n/**\n *\n * Update an interpolated attribute on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n }\n return ɵɵattributeInterpolate5;\n}\n/**\n *\n * Update an interpolated attribute on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate6(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n }\n return ɵɵattributeInterpolate6;\n}\n/**\n *\n * Update an interpolated attribute on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate7(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n }\n return ɵɵattributeInterpolate7;\n}\n/**\n *\n * Update an interpolated attribute on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate8(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n }\n return ɵɵattributeInterpolate8;\n}\n/**\n * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolateV(\n * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * @param attrName The name of the attribute to update.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {\n const lView = getLView();\n const interpolated = interpolationV(lView, values);\n if (interpolated !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);\n if (ngDevMode) {\n const interpolationInBetween = [values[0]]; // prefix\n for (let i = 2; i < values.length; i += 2) {\n interpolationInBetween.push(values[i]);\n }\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n }\n }\n return ɵɵattributeInterpolateV;\n}\n\nfunction toTStylingRange(prev, next) {\n ngDevMode && assertNumberInRange(prev, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n return (prev << 17 /* StylingRange.PREV_SHIFT */ | next << 2 /* StylingRange.NEXT_SHIFT */);\n}\nfunction getTStylingRangePrev(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange >> 17 /* StylingRange.PREV_SHIFT */) & 32767 /* StylingRange.UNSIGNED_MASK */;\n}\nfunction getTStylingRangePrevDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 2 /* StylingRange.PREV_DUPLICATE */) == 2 /* StylingRange.PREV_DUPLICATE */;\n}\nfunction setTStylingRangePrev(tStylingRange, previous) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n ngDevMode && assertNumberInRange(previous, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n return ((tStylingRange & ~4294836224 /* StylingRange.PREV_MASK */) | (previous << 17 /* StylingRange.PREV_SHIFT */));\n}\nfunction setTStylingRangePrevDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange | 2 /* StylingRange.PREV_DUPLICATE */);\n}\nfunction getTStylingRangeNext(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 131068 /* StylingRange.NEXT_MASK */) >> 2 /* StylingRange.NEXT_SHIFT */;\n}\nfunction setTStylingRangeNext(tStylingRange, next) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n ngDevMode && assertNumberInRange(next, 0, 32767 /* StylingRange.UNSIGNED_MASK */);\n return ((tStylingRange & ~131068 /* StylingRange.NEXT_MASK */) | //\n next << 2 /* StylingRange.NEXT_SHIFT */);\n}\nfunction getTStylingRangeNextDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return ((tStylingRange) & 1 /* StylingRange.NEXT_DUPLICATE */) === 1 /* StylingRange.NEXT_DUPLICATE */;\n}\nfunction setTStylingRangeNextDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange | 1 /* StylingRange.NEXT_DUPLICATE */);\n}\nfunction getTStylingRangeTail(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n const next = getTStylingRangeNext(tStylingRange);\n return next === 0 ? getTStylingRangePrev(tStylingRange) : next;\n}\n\n/**\n * NOTE: The word `styling` is used interchangeably as style or class styling.\n *\n * This file contains code to link styling instructions together so that they can be replayed in\n * priority order. The file exists because Ivy styling instruction execution order does not match\n * that of the priority order. The purpose of this code is to create a linked list so that the\n * instructions can be traversed in priority order when computing the styles.\n *\n * Assume we are dealing with the following code:\n * ```\n * @Component({\n * template: `\n * <my-cmp [style]=\" {color: '#001'} \"\n * [style.color]=\" #002 \"\n * dir-style-color-1\n * dir-style-color-2> `\n * })\n * class ExampleComponent {\n * static ngComp = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#001'});\n * ɵɵstyleProp('color', '#002');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `[dir-style-color-1]',\n * })\n * class Style1Directive {\n * @HostBinding('style') style = {color: '#005'};\n * @HostBinding('style.color') color = '#006';\n *\n * static ngDir = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#005'});\n * ɵɵstyleProp('color', '#006');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `[dir-style-color-2]',\n * })\n * class Style2Directive {\n * @HostBinding('style') style = {color: '#007'};\n * @HostBinding('style.color') color = '#008';\n *\n * static ngDir = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#007'});\n * ɵɵstyleProp('color', '#008');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `my-cmp',\n * })\n * class MyComponent {\n * @HostBinding('style') style = {color: '#003'};\n * @HostBinding('style.color') color = '#004';\n *\n * static ngComp = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#003'});\n * ɵɵstyleProp('color', '#004');\n * ...\n * }\n * }\n * ```\n *\n * The Order of instruction execution is:\n *\n * NOTE: the comment binding location is for illustrative purposes only.\n *\n * ```\n * // Template: (ExampleComponent)\n * ɵɵstyleMap({color: '#001'}); // Binding index: 10\n * ɵɵstyleProp('color', '#002'); // Binding index: 12\n * // MyComponent\n * ɵɵstyleMap({color: '#003'}); // Binding index: 20\n * ɵɵstyleProp('color', '#004'); // Binding index: 22\n * // Style1Directive\n * ɵɵstyleMap({color: '#005'}); // Binding index: 24\n * ɵɵstyleProp('color', '#006'); // Binding index: 26\n * // Style2Directive\n * ɵɵstyleMap({color: '#007'}); // Binding index: 28\n * ɵɵstyleProp('color', '#008'); // Binding index: 30\n * ```\n *\n * The correct priority order of concatenation is:\n *\n * ```\n * // MyComponent\n * ɵɵstyleMap({color: '#003'}); // Binding index: 20\n * ɵɵstyleProp('color', '#004'); // Binding index: 22\n * // Style1Directive\n * ɵɵstyleMap({color: '#005'}); // Binding index: 24\n * ɵɵstyleProp('color', '#006'); // Binding index: 26\n * // Style2Directive\n * ɵɵstyleMap({color: '#007'}); // Binding index: 28\n * ɵɵstyleProp('color', '#008'); // Binding index: 30\n * // Template: (ExampleComponent)\n * ɵɵstyleMap({color: '#001'}); // Binding index: 10\n * ɵɵstyleProp('color', '#002'); // Binding index: 12\n * ```\n *\n * What color should be rendered?\n *\n * Once the items are correctly sorted in the list, the answer is simply the last item in the\n * concatenation list which is `#002`.\n *\n * To do so we keep a linked list of all of the bindings which pertain to this element.\n * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows\n * us to traverse them in the order of priority.\n *\n * |Idx|`TView.data`|`LView` | Notes\n * |---|------------|-----------------|--------------\n * |...| | |\n * |10 |`null` |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`\n * |11 |`30 | 12` | ... |\n * |12 |`color` |`'#002'` | `ɵɵstyleProp('color', '#002')`\n * |13 |`10 | 0` | ... |\n * |...| | |\n * |20 |`null` |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`\n * |21 |`0 | 22` | ... |\n * |22 |`color` |`'#004'` | `ɵɵstyleProp('color', '#004')`\n * |23 |`20 | 24` | ... |\n * |24 |`null` |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`\n * |25 |`22 | 26` | ... |\n * |26 |`color` |`'#006'` | `ɵɵstyleProp('color', '#006')`\n * |27 |`24 | 28` | ... |\n * |28 |`null` |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`\n * |29 |`26 | 30` | ... |\n * |30 |`color` |`'#008'` | `ɵɵstyleProp('color', '#008')`\n * |31 |`28 | 10` | ... |\n *\n * The above data structure allows us to re-concatenate the styling no matter which data binding\n * changes.\n *\n * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next\n * duplicate bit. The duplicate bit if true says there either is a binding with the same name or\n * there is a map (which may contain the name). This information is useful in knowing if other\n * styles with higher priority need to be searched for overwrites.\n *\n * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in\n * `tnode_linked_list_spec.ts` for working example.\n */\nlet __unused_const_as_closure_does_not_like_standalone_comment_blocks__;\n/**\n * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked\n * list of styles and compute the duplicate flag.\n *\n * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.\n *\n * The function works by keeping track of `tStylingRange` which contains two pointers pointing to\n * the head/tail of the template portion of the styles.\n * - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`\n * - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`\n *\n * @param tData The `TData` to insert into.\n * @param tNode `TNode` associated with the styling element.\n * @param tStylingKey See `TStylingKey`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of\n * template.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {\n ngDevMode && assertFirstUpdatePass(getTView());\n let tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;\n let tmplHead = getTStylingRangePrev(tBindings);\n let tmplTail = getTStylingRangeNext(tBindings);\n tData[index] = tStylingKeyWithStatic;\n let isKeyDuplicateOfStatic = false;\n let tStylingKey;\n if (Array.isArray(tStylingKeyWithStatic)) {\n // We are case when the `TStylingKey` contains static fields as well.\n const staticKeyValueArray = tStylingKeyWithStatic;\n tStylingKey = staticKeyValueArray[1]; // unwrap.\n // We need to check if our key is present in the static so that we can mark it as duplicate.\n if (tStylingKey === null ||\n keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {\n // tStylingKey is present in the statics, need to mark it as duplicate.\n isKeyDuplicateOfStatic = true;\n }\n }\n else {\n tStylingKey = tStylingKeyWithStatic;\n }\n if (isHostBinding) {\n // We are inserting host bindings\n // If we don't have template bindings then `tail` is 0.\n const hasTemplateBindings = tmplTail !== 0;\n // This is important to know because that means that the `head` can't point to the first\n // template bindings (there are none.) Instead the head points to the tail of the template.\n if (hasTemplateBindings) {\n // template head's \"prev\" will point to last host binding or to 0 if no host bindings yet\n const previousNode = getTStylingRangePrev(tData[tmplHead + 1]);\n tData[index + 1] = toTStylingRange(previousNode, tmplHead);\n // if a host binding has already been registered, we need to update the next of that host\n // binding to point to this one\n if (previousNode !== 0) {\n // We need to update the template-tail value to point to us.\n tData[previousNode + 1] =\n setTStylingRangeNext(tData[previousNode + 1], index);\n }\n // The \"previous\" of the template binding head should point to this host binding\n tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);\n }\n else {\n tData[index + 1] = toTStylingRange(tmplHead, 0);\n // if a host binding has already been registered, we need to update the next of that host\n // binding to point to this one\n if (tmplHead !== 0) {\n // We need to update the template-tail value to point to us.\n tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);\n }\n // if we don't have template, the head points to template-tail, and needs to be advanced.\n tmplHead = index;\n }\n }\n else {\n // We are inserting in template section.\n // We need to set this binding's \"previous\" to the current template tail\n tData[index + 1] = toTStylingRange(tmplTail, 0);\n ngDevMode &&\n assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');\n if (tmplHead === 0) {\n tmplHead = index;\n }\n else {\n // We need to update the previous value \"next\" to point to this binding\n tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);\n }\n tmplTail = index;\n }\n // Now we need to update / compute the duplicates.\n // Starting with our location search towards head (least priority)\n if (isKeyDuplicateOfStatic) {\n tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);\n }\n markDuplicates(tData, tStylingKey, index, true);\n markDuplicates(tData, tStylingKey, index, false);\n markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);\n tBindings = toTStylingRange(tmplHead, tmplTail);\n if (isClassBinding) {\n tNode.classBindings = tBindings;\n }\n else {\n tNode.styleBindings = tBindings;\n }\n}\n/**\n * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.\n *\n * @param tNode `TNode` where the residual is stored.\n * @param tStylingKey `TStylingKey` to store.\n * @param tData `TData` associated with the current `LView`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {\n const residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;\n if (residual != null /* or undefined */ && typeof tStylingKey == 'string' &&\n keyValueArrayIndexOf(residual, tStylingKey) >= 0) {\n // We have duplicate in the residual so mark ourselves as duplicate.\n tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);\n }\n}\n/**\n * Marks `TStyleValue`s as duplicates if another style binding in the list has the same\n * `TStyleValue`.\n *\n * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once\n * with it set to `false` to search both the previous as well as next items in the list.\n *\n * No duplicate case\n * ```\n * [style.color]\n * [style.width.px] <<- index\n * [style.height.px]\n * ```\n *\n * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no\n * duplicates because `width` is not found in any other part of the linked list.\n *\n * Duplicate case\n * ```\n * [style.color]\n * [style.width.em]\n * [style.width.px] <<- index\n * ```\n * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`\n * because `width` is found in the chain.\n *\n * Map case 1\n * ```\n * [style.width.px]\n * [style.color]\n * [style] <<- index\n * ```\n * In the above case adding `[style]` will produce a duplicate with any other bindings because\n * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.\n *\n * Map case 2\n * ```\n * [style]\n * [style.width.px]\n * [style.color] <<- index\n * ```\n * In the above case adding `[style.color]` will produce a duplicate because there is already a\n * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or\n * `width`.\n *\n * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.\n * NOTE: We use `style` as example, but same logic is applied to `class`es as well.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in\n * the linked list.\n * @param index Starting location in the linked list to search from\n * @param isPrevDir Direction.\n * - `true` for previous (lower priority);\n * - `false` for next (higher priority).\n */\nfunction markDuplicates(tData, tStylingKey, index, isPrevDir) {\n const tStylingAtIndex = tData[index + 1];\n const isMap = tStylingKey === null;\n let cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : getTStylingRangeNext(tStylingAtIndex);\n let foundDuplicate = false;\n // We keep iterating as long as we have a cursor\n // AND either:\n // - we found what we are looking for, OR\n // - we are a map in which case we have to continue searching even after we find what we were\n // looking for since we are a wild card and everything needs to be flipped to duplicate.\n while (cursor !== 0 && (foundDuplicate === false || isMap)) {\n ngDevMode && assertIndexInRange(tData, cursor);\n const tStylingValueAtCursor = tData[cursor];\n const tStyleRangeAtCursor = tData[cursor + 1];\n if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {\n foundDuplicate = true;\n tData[cursor + 1] = isPrevDir ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) :\n setTStylingRangePrevDuplicate(tStyleRangeAtCursor);\n }\n cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) :\n getTStylingRangeNext(tStyleRangeAtCursor);\n }\n if (foundDuplicate) {\n // if we found a duplicate, than mark ourselves.\n tData[index + 1] = isPrevDir ? setTStylingRangePrevDuplicate(tStylingAtIndex) :\n setTStylingRangeNextDuplicate(tStylingAtIndex);\n }\n}\n/**\n * Determines if two `TStylingKey`s are a match.\n *\n * When computing whether a binding contains a duplicate, we need to compare if the instruction\n * `TStylingKey` has a match.\n *\n * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:\n * - `color`\n * - `color` // Match another color\n * - `null` // That means that `tStylingKey` is a `classMap`/`styleMap` instruction\n * - `['', 'color', 'other', true]` // wrapped `color` so match\n * - `['', null, 'other', true]` // wrapped `null` so match\n * - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`\n * - `null` // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction\n *\n * @param tStylingKeyCursor\n * @param tStylingKey\n */\nfunction isStylingMatch(tStylingKeyCursor, tStylingKey) {\n ngDevMode &&\n assertNotEqual(Array.isArray(tStylingKey), true, 'Expected that \\'tStylingKey\\' has been unwrapped');\n if (tStylingKeyCursor === null || // If the cursor is `null` it means that we have map at that\n // location so we must assume that we have a match.\n tStylingKey == null || // If `tStylingKey` is `null` then it is a map therefor assume that it\n // contains a match.\n (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) ===\n tStylingKey // If the keys match explicitly than we are a match.\n ) {\n return true;\n }\n else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {\n // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has\n // statics and we need to check those as well.\n return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >=\n 0; // see if we are matching the key\n }\n return false;\n}\n\n// Global state of the parser. (This makes parser non-reentrant, but that is not an issue)\nconst parserState = {\n textEnd: 0,\n key: 0,\n keyEnd: 0,\n value: 0,\n valueEnd: 0,\n};\n/**\n * Retrieves the last parsed `key` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedKey(text) {\n return text.substring(parserState.key, parserState.keyEnd);\n}\n/**\n * Retrieves the last parsed `value` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedValue(text) {\n return text.substring(parserState.value, parserState.valueEnd);\n}\n/**\n * Initializes `className` string for parsing and parses the first token.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n * const key = getLastParsedKey();\n * ...\n * }\n * ```\n * @param text `className` to parse\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassName(text) {\n resetParserState(text);\n return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses next `className` token.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n * const key = getLastParsedKey();\n * ...\n * }\n * ```\n *\n * @param text `className` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassNameNext(text, index) {\n const end = parserState.textEnd;\n if (end === index) {\n return -1;\n }\n index = parserState.keyEnd = consumeClassToken(text, parserState.key = index, end);\n return consumeWhitespace(text, index, end);\n}\n/**\n * Initializes `cssText` string for parsing and parses the first key/values.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n * const key = getLastParsedKey();\n * const value = getLastParsedValue();\n * ...\n * }\n * ```\n * @param text `cssText` to parse\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyle(text) {\n resetParserState(text);\n return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses the next `cssText` key/values.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n * const key = getLastParsedKey();\n * const value = getLastParsedValue();\n * ...\n * }\n *\n * @param text `cssText` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyleNext(text, startIndex) {\n const end = parserState.textEnd;\n let index = parserState.key = consumeWhitespace(text, startIndex, end);\n if (end === index) {\n // we reached an end so just quit\n return -1;\n }\n index = parserState.keyEnd = consumeStyleKey(text, index, end);\n index = consumeSeparator(text, index, end, 58 /* CharCode.COLON */);\n index = parserState.value = consumeWhitespace(text, index, end);\n index = parserState.valueEnd = consumeStyleValue(text, index, end);\n return consumeSeparator(text, index, end, 59 /* CharCode.SEMI_COLON */);\n}\n/**\n * Reset the global state of the styling parser.\n * @param text The styling text to parse.\n */\nfunction resetParserState(text) {\n parserState.key = 0;\n parserState.keyEnd = 0;\n parserState.value = 0;\n parserState.valueEnd = 0;\n parserState.textEnd = text.length;\n}\n/**\n * Returns index of next non-whitespace character.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at\n * that location.)\n */\nfunction consumeWhitespace(text, startIndex, endIndex) {\n while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32 /* CharCode.SPACE */) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Returns index of last char in class token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last char in class token.\n */\nfunction consumeClassToken(text, startIndex, endIndex) {\n while (startIndex < endIndex && text.charCodeAt(startIndex) > 32 /* CharCode.SPACE */) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes all of the characters belonging to style key and token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style key character.\n */\nfunction consumeStyleKey(text, startIndex, endIndex) {\n let ch;\n while (startIndex < endIndex &&\n ((ch = text.charCodeAt(startIndex)) === 45 /* CharCode.DASH */ || ch === 95 /* CharCode.UNDERSCORE */ ||\n ((ch & -33 /* CharCode.UPPER_CASE */) >= 65 /* CharCode.A */ && (ch & -33 /* CharCode.UPPER_CASE */) <= 90 /* CharCode.Z */) ||\n (ch >= 48 /* CharCode.ZERO */ && ch <= 57 /* CharCode.NINE */))) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes all whitespace and the separator `:` after the style key.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after separator and surrounding whitespace.\n */\nfunction consumeSeparator(text, startIndex, endIndex, separator) {\n startIndex = consumeWhitespace(text, startIndex, endIndex);\n if (startIndex < endIndex) {\n if (ngDevMode && text.charCodeAt(startIndex) !== separator) {\n malformedStyleError(text, String.fromCharCode(separator), startIndex);\n }\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes style value honoring `url()` and `\"\"` text.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style value character.\n */\nfunction consumeStyleValue(text, startIndex, endIndex) {\n let ch1 = -1; // 1st previous character\n let ch2 = -1; // 2nd previous character\n let ch3 = -1; // 3rd previous character\n let i = startIndex;\n let lastChIndex = i;\n while (i < endIndex) {\n const ch = text.charCodeAt(i++);\n if (ch === 59 /* CharCode.SEMI_COLON */) {\n return lastChIndex;\n }\n else if (ch === 34 /* CharCode.DOUBLE_QUOTE */ || ch === 39 /* CharCode.SINGLE_QUOTE */) {\n lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);\n }\n else if (startIndex ===\n i - 4 && // We have seen only 4 characters so far \"URL(\" (Ignore \"foo_URL()\")\n ch3 === 85 /* CharCode.U */ &&\n ch2 === 82 /* CharCode.R */ && ch1 === 76 /* CharCode.L */ && ch === 40 /* CharCode.OPEN_PAREN */) {\n lastChIndex = i = consumeQuotedText(text, 41 /* CharCode.CLOSE_PAREN */, i, endIndex);\n }\n else if (ch > 32 /* CharCode.SPACE */) {\n // if we have a non-whitespace character then capture its location\n lastChIndex = i;\n }\n ch3 = ch2;\n ch2 = ch1;\n ch1 = ch & -33 /* CharCode.UPPER_CASE */;\n }\n return lastChIndex;\n}\n/**\n * Consumes all of the quoted characters.\n *\n * @param text Text to scan\n * @param quoteCharCode CharCode of either `\"` or `'` quote or `)` for `url(...)`.\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after quoted characters.\n */\nfunction consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {\n let ch1 = -1; // 1st previous character\n let index = startIndex;\n while (index < endIndex) {\n const ch = text.charCodeAt(index++);\n if (ch == quoteCharCode && ch1 !== 92 /* CharCode.BACK_SLASH */) {\n return index;\n }\n if (ch == 92 /* CharCode.BACK_SLASH */ && ch1 === 92 /* CharCode.BACK_SLASH */) {\n // two back slashes cancel each other out. For example `\"\\\\\"` should properly end the\n // quotation. (It should not assume that the last `\"` is escaped.)\n ch1 = 0;\n }\n else {\n ch1 = ch;\n }\n }\n throw ngDevMode ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex) :\n new Error();\n}\nfunction malformedStyleError(text, expecting, index) {\n ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');\n throw throwError(`Malformed style at location ${index} in string '` + text.substring(0, index) + '[>>' +\n text.substring(index, index + 1) + '<<]' + text.slice(index + 1) +\n `'. Expecting '${expecting}'.`);\n}\n\n/**\n * Update a property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵproperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵproperty;\n}\n/**\n * Given `<div style=\"...\" my-dir>` and `MyDir` with `@Input('style')` we need to write to\n * directive input.\n */\nfunction setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {\n const inputs = tNode.inputs;\n const property = isClassBased ? 'class' : 'style';\n // We support both 'class' and `className` hence the fallback.\n setInputsForProperty(tView, lView, inputs[property], property, value);\n}\n\n/**\n * Update a style binding on an element with the provided value.\n *\n * If the style value is falsy then it will be removed from the element\n * (or assigned a different value depending if there are any styles placed\n * on the element with `styleMap` or any static styles that are\n * present from when the element was created with `styling`).\n *\n * Note that the styling element is updated as part of `stylingApply`.\n *\n * @param prop A valid CSS property.\n * @param value New value to write (`null` or an empty string to remove).\n * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.\n *\n * Note that this will apply the provided style value to the host element if this function is called\n * within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleProp(prop, value, suffix) {\n checkStylingProperty(prop, value, suffix, false);\n return ɵɵstyleProp;\n}\n/**\n * Update a class binding on an element with the provided value.\n *\n * This instruction is meant to handle the `[class.foo]=\"exp\"` case and,\n * therefore, the class binding itself must already be allocated using\n * `styling` within the creation block.\n *\n * @param prop A valid CSS class (only one).\n * @param value A true/false value which will turn the class on or off.\n *\n * Note that this will apply the provided class value to the host element if this function\n * is called within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵclassProp(className, value) {\n checkStylingProperty(className, value, null, true);\n return ɵɵclassProp;\n}\n/**\n * Update style bindings using an object literal on an element.\n *\n * This instruction is meant to apply styling via the `[style]=\"exp\"` template bindings.\n * When styles are applied to the element they will then be updated with respect to\n * any styles/classes set via `styleProp`. If any styles are set to falsy\n * then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n *\n * @param styles A key/value style map of the styles that will be applied to the given element.\n * Any missing styles (that have already been applied to the element beforehand) will be\n * removed (unset) from the element's styling.\n *\n * Note that this will apply the provided styleMap value to the host element if this function\n * is called within a host binding.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleMap(styles) {\n checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);\n}\n/**\n * Parse text as style and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵstyleMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction styleStringParser(keyValueArray, text) {\n for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {\n styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));\n }\n}\n/**\n * Update class bindings using an object literal or class-string on an element.\n *\n * This instruction is meant to apply styling via the `[class]=\"exp\"` template bindings.\n * When classes are applied to the element they will then be updated with\n * respect to any styles/classes set via `classProp`. If any\n * classes are set to falsy then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n * Note that this will the provided classMap value to the host element if this function is called\n * within a host binding.\n *\n * @param classes A key/value map or string of CSS classes that will be added to the\n * given element. Any missing classes (that have already been applied to the element\n * beforehand) will be removed (unset) from the element's list of CSS classes.\n *\n * @codeGenApi\n */\nfunction ɵɵclassMap(classes) {\n checkStylingMap(classKeyValueArraySet, classStringParser, classes, true);\n}\n/**\n * Parse text as class and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵclassMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction classStringParser(keyValueArray, text) {\n for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n keyValueArraySet(keyValueArray, getLastParsedKey(text), true);\n }\n}\n/**\n * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.\n *\n * @param prop property name.\n * @param value binding value.\n * @param suffix suffix for the property (e.g. `em` or `px`)\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingProperty(prop, value, suffix, isClassBased) {\n const lView = getLView();\n const tView = getTView();\n // Styling instructions use 2 slots per binding.\n // 1. one for the value / TStylingKey\n // 2. one for the intermittent-value / TStylingRange\n const bindingIndex = incrementBindingIndex(2);\n if (tView.firstUpdatePass) {\n stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);\n }\n if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n const tNode = tView.data[getSelectedIndex()];\n updateStyling(tView, tNode, lView, lView[RENDERER], prop, lView[bindingIndex + 1] = normalizeSuffix(value, suffix), isClassBased, bindingIndex);\n }\n}\n/**\n * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n * function so that `style` can be processed. This is done for tree shaking purposes.\n * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`\n * have different parsers.)\n * @param value bound value from application\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {\n const tView = getTView();\n const bindingIndex = incrementBindingIndex(2);\n if (tView.firstUpdatePass) {\n stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);\n }\n const lView = getLView();\n if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n // if so as not to read unnecessarily.\n const tNode = tView.data[getSelectedIndex()];\n if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {\n if (ngDevMode) {\n // verify that if we are shadowing then `TData` is appropriately marked so that we skip\n // processing this binding in styling resolution.\n const tStylingKey = tView.data[bindingIndex];\n assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, 'Styling linked list shadow input should be marked as \\'false\\'');\n }\n // VE does not concatenate the static portion like we are doing here.\n // Instead VE just ignores the static completely if dynamic binding is present.\n // Because of locality we have already set the static portion because we don't know if there\n // is a dynamic portion until later. If we would ignore the static portion it would look like\n // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong\n // thing as it would think that the static portion was removed. For this reason we\n // concatenate it so that `[ngStyle]`/`[ngClass]` can continue to work on changed.\n let staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;\n ngDevMode && isClassBased === false && staticPrefix !== null &&\n assertEqual(staticPrefix.endsWith(';'), true, 'Expecting static portion to end with \\';\\'');\n if (staticPrefix !== null) {\n // We want to make sure that falsy values of `value` become empty strings.\n value = concatStringsWithSpace(staticPrefix, value ? value : '');\n }\n // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.\n // This takes over the `[style]` binding. (Same for `[class]`)\n setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);\n }\n else {\n updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value), isClassBased, bindingIndex);\n }\n }\n}\n/**\n * Determines when the binding is in `hostBindings` section\n *\n * @param tView Current `TView`\n * @param bindingIndex index of binding which we would like if it is in `hostBindings`\n */\nfunction isInHostBindings(tView, bindingIndex) {\n // All host bindings are placed after the expando section.\n return bindingIndex >= tView.expandoStartIndex;\n}\n/**\n * Collects the necessary information to insert the binding into a linked list of style bindings\n * using `insertTStylingBinding`.\n *\n * @param tView `TView` where the binding linked list will be stored.\n * @param tStylingKey Property/key of the binding.\n * @param bindingIndex Index of binding associated with the `prop`\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {\n ngDevMode && assertFirstUpdatePass(tView);\n const tData = tView.data;\n if (tData[bindingIndex + 1] === null) {\n // The above check is necessary because we don't clear first update pass until first successful\n // (no exception) template execution. This prevents the styling instruction from double adding\n // itself to the list.\n // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n // if so as not to read unnecessarily.\n const tNode = tData[getSelectedIndex()];\n ngDevMode && assertDefined(tNode, 'TNode expected');\n const isHostBindings = isInHostBindings(tView, bindingIndex);\n if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {\n // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.\n // If there is a directive which uses `@Input('style')` or `@Input('class')` than\n // we need to neutralize this binding since that directive is shadowing it.\n // We turn this into a noop by setting the key to `false`\n tStylingKey = false;\n }\n tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);\n insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);\n }\n}\n/**\n * Adds static styling information to the binding if applicable.\n *\n * The linked list of styles not only stores the list and keys, but also stores static styling\n * information on some of the keys. This function determines if the key should contain the styling\n * information and computes it.\n *\n * See `TStylingStatic` for more details.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {\n const hostDirectiveDef = getCurrentDirectiveDef(tData);\n let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n if (hostDirectiveDef === null) {\n // We are in template node.\n // If template node already had styling instruction then it has already collected the static\n // styling and there is no need to collect them again. We know that we are the first styling\n // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).\n const isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;\n if (isFirstStylingInstructionInTemplate) {\n // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point\n // they are already merged and it would not be possible to figure which property belongs where\n // in the priority.\n stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);\n stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased);\n // We know that if we have styling binding in template we can't have residual.\n residual = null;\n }\n }\n else {\n // We are in host binding node and there was no binding instruction in template node.\n // This means that we need to compute the residual.\n const directiveStylingLast = tNode.directiveStylingLast;\n const isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;\n if (isFirstStylingInstructionInHostBinding) {\n stylingKey =\n collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);\n if (residual === null) {\n // - If `null` than either:\n // - Template styling instruction already ran and it has consumed the static\n // styling into its `TStylingKey` and so there is no need to update residual. Instead\n // we need to update the `TStylingKey` associated with the first template node\n // instruction. OR\n // - Some other styling instruction ran and determined that there are no residuals\n let templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);\n if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {\n // Only recompute if `templateStylingKey` had static values. (If no static value found\n // then there is nothing to do since this operation can only produce less static keys, not\n // more.)\n templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1] /* unwrap previous statics */, isClassBased);\n templateStylingKey =\n collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);\n setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);\n }\n }\n else {\n // We only need to recompute residual if it is not `null`.\n // - If existing residual (implies there was no template styling). This means that some of\n // the statics may have moved from the residual to the `stylingKey` and so we have to\n // recompute.\n // - If `undefined` this is the first time we are running.\n residual = collectResidual(tData, tNode, isClassBased);\n }\n }\n }\n if (residual !== undefined) {\n isClassBased ? (tNode.residualClasses = residual) : (tNode.residualStyles = residual);\n }\n return stylingKey;\n}\n/**\n * Retrieve the `TStylingKey` for the template styling instruction.\n *\n * This is needed since `hostBinding` styling instructions are inserted after the template\n * instruction. While the template instruction needs to update the residual in `TNode` the\n * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because\n * the template instruction is downstream from the `hostBindings` instructions.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @return `TStylingKey` if found or `undefined` if not found.\n */\nfunction getTemplateHeadTStylingKey(tData, tNode, isClassBased) {\n const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n if (getTStylingRangeNext(bindings) === 0) {\n // There does not seem to be a styling instruction in the `template`.\n return undefined;\n }\n return tData[getTStylingRangePrev(bindings)];\n}\n/**\n * Update the `TStylingKey` of the first template instruction in `TNode`.\n *\n * Logically `hostBindings` styling instructions are of lower priority than that of the template.\n * However, they execute after the template styling instructions. This means that they get inserted\n * in front of the template styling instructions.\n *\n * If we have a template styling instruction and a new `hostBindings` styling instruction is\n * executed it means that it may need to steal static fields from the template instruction. This\n * method allows us to update the first template instruction `TStylingKey` with a new value.\n *\n * Assume:\n * ```\n * <div my-dir style=\"color: red\" [style.color]=\"tmplExp\"></div>\n *\n * @Directive({\n * host: {\n * 'style': 'width: 100px',\n * '[style.color]': 'dirExp',\n * }\n * })\n * class MyDir {}\n * ```\n *\n * when `[style.color]=\"tmplExp\"` executes it creates this data structure.\n * ```\n * ['', 'color', 'color', 'red', 'width', '100px'],\n * ```\n *\n * The reason for this is that the template instruction does not know if there are styling\n * instructions and must assume that there are none and must collect all of the static styling.\n * (both\n * `color' and 'width`)\n *\n * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.\n * ```\n * ['', 'color', 'width', '100px'], // newly inserted\n * ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong\n * ```\n *\n * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to\n * update it like so:\n * ```\n * ['', 'color', 'width', '100px'],\n * ['', 'color', 'color', 'red'], // UPDATE\n * ```\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param tStylingKey New `TStylingKey` which is replacing the old one.\n */\nfunction setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {\n const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n ngDevMode &&\n assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');\n tData[getTStylingRangePrev(bindings)] = tStylingKey;\n}\n/**\n * Collect all static values after the current `TNode.directiveStylingLast` index.\n *\n * Collect the remaining styling information which has not yet been collected by an existing\n * styling instruction.\n *\n * @param tData `TData` where the `DirectiveDefs` are stored.\n * @param tNode `TNode` which contains the directive range.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectResidual(tData, tNode, isClassBased) {\n let residual = undefined;\n const directiveEnd = tNode.directiveEnd;\n ngDevMode &&\n assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.');\n // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are\n // collecting things after the last `hostBindings` directive which had a styling instruction.)\n for (let i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {\n const attrs = tData[i].hostAttrs;\n residual = collectStylingFromTAttrs(residual, attrs, isClassBased);\n }\n return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);\n}\n/**\n * Collect the static styling information with lower priority than `hostDirectiveDef`.\n *\n * (This is opposite of residual styling.)\n *\n * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static\n * styling. (Or `null` if template styling)\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey Existing `TStylingKey` to update or wrap.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {\n // We need to loop because there can be directives which have `hostAttrs` but don't have\n // `hostBindings` so this loop catches up to the current directive..\n let currentDirective = null;\n const directiveEnd = tNode.directiveEnd;\n let directiveStylingLast = tNode.directiveStylingLast;\n if (directiveStylingLast === -1) {\n directiveStylingLast = tNode.directiveStart;\n }\n else {\n directiveStylingLast++;\n }\n while (directiveStylingLast < directiveEnd) {\n currentDirective = tData[directiveStylingLast];\n ngDevMode && assertDefined(currentDirective, 'expected to be defined');\n stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);\n if (currentDirective === hostDirectiveDef)\n break;\n directiveStylingLast++;\n }\n if (hostDirectiveDef !== null) {\n // we only advance the styling cursor if we are collecting data from host bindings.\n // Template executes before host bindings and so if we would update the index,\n // host bindings would not get their statics.\n tNode.directiveStylingLast = directiveStylingLast;\n }\n return stylingKey;\n}\n/**\n * Convert `TAttrs` into `TStylingStatic`.\n *\n * @param stylingKey existing `TStylingKey` to update or wrap.\n * @param attrs `TAttributes` to process.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {\n const desiredMarker = isClassBased ? 1 /* AttributeMarker.Classes */ : 2 /* AttributeMarker.Styles */;\n let currentMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n if (attrs !== null) {\n for (let i = 0; i < attrs.length; i++) {\n const item = attrs[i];\n if (typeof item === 'number') {\n currentMarker = item;\n }\n else {\n if (currentMarker === desiredMarker) {\n if (!Array.isArray(stylingKey)) {\n stylingKey = stylingKey === undefined ? [] : ['', stylingKey];\n }\n keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);\n }\n }\n }\n }\n return stylingKey === undefined ? null : stylingKey;\n}\n/**\n * Convert user input to `KeyValueArray`.\n *\n * This function takes user input which could be `string`, Object literal, or iterable and converts\n * it into a consistent representation. The output of this is `KeyValueArray` (which is an array\n * where\n * even indexes contain keys and odd indexes contain values for those keys).\n *\n * The advantage of converting to `KeyValueArray` is that we can perform diff in an input\n * independent\n * way.\n * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be\n * applied)\n *\n * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the\n * difference in linear fashion without the need to allocate any additional data.\n *\n * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine\n * which values need to be deleted, over the new `Map` to determine additions, and we would have to\n * keep additional `Map` to keep track of duplicates or items which have not yet been visited.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n * function so that `style` can be processed. This is done\n * for tree shaking purposes.\n * @param stringParser The parser is passed in so that it will be tree shakable. See\n * `styleStringParser` and `classStringParser`\n * @param value The value to parse/convert to `KeyValueArray`\n */\nfunction toStylingKeyValueArray(keyValueArraySet, stringParser, value) {\n if (value == null /*|| value === undefined */ || value === '')\n return EMPTY_ARRAY;\n const styleKeyValueArray = [];\n const unwrappedValue = unwrapSafeValue(value);\n if (Array.isArray(unwrappedValue)) {\n for (let i = 0; i < unwrappedValue.length; i++) {\n keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);\n }\n }\n else if (typeof unwrappedValue === 'object') {\n for (const key in unwrappedValue) {\n if (unwrappedValue.hasOwnProperty(key)) {\n keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);\n }\n }\n }\n else if (typeof unwrappedValue === 'string') {\n stringParser(styleKeyValueArray, unwrappedValue);\n }\n else {\n ngDevMode &&\n throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);\n }\n return styleKeyValueArray;\n}\n/**\n * Set a `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction styleKeyValueArraySet(keyValueArray, key, value) {\n keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));\n}\n/**\n * Class-binding-specific function for setting the `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction classKeyValueArraySet(keyValueArray, key, value) {\n // We use `classList.add` to eventually add the CSS classes to the DOM node. Any value passed into\n // `add` is stringified and added to the `class` attribute, e.g. even null, undefined or numbers\n // will be added. Stringify the key here so that our internal data structure matches the value in\n // the DOM. The only exceptions are empty strings and strings that contain spaces for which\n // the browser throws an error. We ignore such values, because the error is somewhat cryptic.\n const stringKey = String(key);\n if (stringKey !== '' && !stringKey.includes(' ')) {\n keyValueArraySet(keyValueArray, stringKey, value);\n }\n}\n/**\n * Update map based styling.\n *\n * Map based styling could be anything which contains more than one binding. For example `string`,\n * or object literal. Dealing with all of these types would complicate the logic so\n * instead this function expects that the complex input is first converted into normalized\n * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it\n * very cheap to compute deltas between the previous and current value.\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param oldKeyValueArray Previous value represented as `KeyValueArray`\n * @param newKeyValueArray Current value represented as `KeyValueArray`\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}\n/**\n * Update a simple (property name) styling.\n *\n * This function takes `prop` and updates the DOM to that value. The function takes the binding\n * value as well as binding priority into consideration to determine which value should be written\n * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks\n * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param prop Either style property name or a class name.\n * @param value Either style value for `prop` or `true`/`false` if `prop` is class.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {\n if (!(tNode.type & 3 /* TNodeType.AnyRNode */)) {\n // It is possible to have styling on non-elements (such as ng-container).\n // This is rare, but it does happen. In such a case, just ignore the binding.\n return;\n }\n const tData = tView.data;\n const tRange = tData[bindingIndex + 1];\n const higherPriorityValue = getTStylingRangeNextDuplicate(tRange) ?\n findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased) :\n undefined;\n if (!isStylingValuePresent(higherPriorityValue)) {\n // We don't have a next duplicate, or we did not find a duplicate value.\n if (!isStylingValuePresent(value)) {\n // We should delete current value or restore to lower priority value.\n if (getTStylingRangePrevDuplicate(tRange)) {\n // We have a possible prev duplicate, let's retrieve it.\n value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);\n }\n }\n const rNode = getNativeByIndex(getSelectedIndex(), lView);\n applyStyling(renderer, isClassBased, rNode, prop, value);\n }\n}\n/**\n * Search for styling value with higher priority which is overwriting current value, or a\n * value of lower priority to which we should fall back if the value is `undefined`.\n *\n * When value is being applied at a location, related values need to be consulted.\n * - If there is a higher priority binding, we should be using that one instead.\n * For example `<div [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp1`\n * requires that we check `exp2` to see if it is set to value other than `undefined`.\n * - If there is a lower priority binding and we are changing to `undefined`\n * For example `<div [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp2` to\n * `undefined` requires that we check `exp1` (and static values) and use that as new value.\n *\n * NOTE: The styling stores two values.\n * 1. The raw value which came from the application is stored at `index + 0` location. (This value\n * is used for dirty checking).\n * 2. The normalized value is stored at `index + 1`.\n *\n * @param tData `TData` used for traversing the priority.\n * @param tNode `TNode` to use for resolving static styling. Also controls search direction.\n * - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n * If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n * - `null` search prev and go all the way to end. Return last value where\n * `isStylingValuePresent(value)` is true.\n * @param lView `LView` used for retrieving the actual values.\n * @param prop Property which we are interested in.\n * @param index Starting index in the linked list of styling bindings where the search should start.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction findStylingValue(tData, tNode, lView, prop, index, isClassBased) {\n // `TNode` to use for resolving static styling. Also controls search direction.\n // - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n // If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n // - `null` search prev and go all the way to end. Return last value where\n // `isStylingValuePresent(value)` is true.\n const isPrevDirection = tNode === null;\n let value = undefined;\n while (index > 0) {\n const rawKey = tData[index];\n const containsStatics = Array.isArray(rawKey);\n // Unwrap the key if we contain static values.\n const key = containsStatics ? rawKey[1] : rawKey;\n const isStylingMap = key === null;\n let valueAtLViewIndex = lView[index + 1];\n if (valueAtLViewIndex === NO_CHANGE) {\n // In firstUpdatePass the styling instructions create a linked list of styling.\n // On subsequent passes it is possible for a styling instruction to try to read a binding\n // which\n // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that\n // we have `undefined` (or empty array in case of styling-map instruction) instead. This\n // allows the resolution to apply the value (which may later be overwritten when the\n // binding actually executes.)\n valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY : undefined;\n }\n let currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) :\n (key === prop ? valueAtLViewIndex : undefined);\n if (containsStatics && !isStylingValuePresent(currentValue)) {\n currentValue = keyValueArrayGet(rawKey, prop);\n }\n if (isStylingValuePresent(currentValue)) {\n value = currentValue;\n if (isPrevDirection) {\n return value;\n }\n }\n const tRange = tData[index + 1];\n index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);\n }\n if (tNode !== null) {\n // in case where we are going in next direction AND we did not find anything, we need to\n // consult residual styling\n let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n if (residual != null /** OR residual !=== undefined */) {\n value = keyValueArrayGet(residual, prop);\n }\n }\n return value;\n}\n/**\n * Determines if the binding value should be used (or if the value is 'undefined' and hence priority\n * resolution should be used.)\n *\n * @param value Binding style value.\n */\nfunction isStylingValuePresent(value) {\n // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't\n // have an opinion as to what this binding should be and you should consult other bindings by\n // priority to determine the valid value.\n // This is extracted into a single function so that we have a single place to control this.\n return value !== undefined;\n}\n/**\n * Normalizes and/or adds a suffix to the value.\n *\n * If value is `null`/`undefined` no suffix is added\n * @param value\n * @param suffix\n */\nfunction normalizeSuffix(value, suffix) {\n if (value == null || value === '') {\n // do nothing\n // Do not add the suffix if the value is going to be empty.\n // As it produce invalid CSS, which the browsers will automatically omit but Domino will not.\n // Example: `\"left\": \"px;\"` instead of `\"left\": \"\"`.\n }\n else if (typeof suffix === 'string') {\n value = value + suffix;\n }\n else if (typeof value === 'object') {\n value = stringify(unwrapSafeValue(value));\n }\n return value;\n}\n/**\n * Tests if the `TNode` has input shadow.\n *\n * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or\n * `@Input('class')` as input.\n *\n * @param tNode `TNode` which we would like to see if it has shadow.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction hasStylingInputShadow(tNode, isClassBased) {\n return (tNode.flags & (isClassBased ? 8 /* TNodeFlags.hasClassInput */ : 16 /* TNodeFlags.hasStyleInput */)) !== 0;\n}\n\n/**\n *\n * Update an interpolated class on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate6(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate7(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate8(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n * Update an interpolated class on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolateV(\n * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolateV(values) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Instruction that returns the component instance in which the current instruction is executing.\n * This is a constant-time version of `nextContent` for the case where we know that we need the\n * component instance specifically, rather than the context of a particular template.\n *\n * @codeGenApi\n */\nfunction ɵɵcomponentInstance() {\n const instance = getLView()[DECLARATION_COMPONENT_VIEW][CONTEXT];\n ngDevMode && assertDefined(instance, 'Expected component instance to be defined');\n return instance;\n}\n\n/**\n * A type representing the live collection to be reconciled with any new (incoming) collection. This\n * is an adapter class that makes it possible to work with different internal data structures,\n * regardless of the actual values of the incoming collection.\n */\nclass LiveCollection {\n destroy(item) {\n // noop by default\n }\n updateValue(index, value) {\n // noop by default\n }\n // operations below could be implemented on top of the operations defined so far, but having\n // them explicitly allow clear expression of intent and potentially more performant\n // implementations\n swap(index1, index2) {\n const startIdx = Math.min(index1, index2);\n const endIdx = Math.max(index1, index2);\n const endItem = this.detach(endIdx);\n if (endIdx - startIdx > 1) {\n const startItem = this.detach(startIdx);\n this.attach(startIdx, endItem);\n this.attach(endIdx, startItem);\n }\n else {\n this.attach(startIdx, endItem);\n }\n }\n move(prevIndex, newIdx) {\n this.attach(newIdx, this.detach(prevIndex));\n }\n}\nfunction valuesMatching(liveIdx, liveValue, newIdx, newValue, trackBy) {\n if (liveIdx === newIdx && Object.is(liveValue, newValue)) {\n // matching and no value identity to update\n return 1;\n }\n else if (Object.is(trackBy(liveIdx, liveValue), trackBy(newIdx, newValue))) {\n // matching but requires value identity update\n return -1;\n }\n return 0;\n}\n/**\n * The live collection reconciliation algorithm that perform various in-place operations, so it\n * reflects the content of the new (incoming) collection.\n *\n * The reconciliation algorithm has 2 code paths:\n * - \"fast\" path that don't require any memory allocation;\n * - \"slow\" path that requires additional memory allocation for intermediate data structures used to\n * collect additional information about the live collection.\n * It might happen that the algorithm switches between the two modes in question in a single\n * reconciliation path - generally it tries to stay on the \"fast\" path as much as possible.\n *\n * The overall complexity of the algorithm is O(n + m) for speed and O(n) for memory (where n is the\n * length of the live collection and m is the length of the incoming collection). Given the problem\n * at hand the complexity / performance constraints makes it impossible to perform the absolute\n * minimum of operation to reconcile the 2 collections. The algorithm makes different tradeoffs to\n * stay within reasonable performance bounds and may apply sub-optimal number of operations in\n * certain situations.\n *\n * @param liveCollection the current, live collection;\n * @param newCollection the new, incoming collection;\n * @param trackByFn key generation function that determines equality between items in the life and\n * incoming collection;\n */\nfunction reconcile(liveCollection, newCollection, trackByFn) {\n let detachedItems = undefined;\n let liveKeysInTheFuture = undefined;\n let liveStartIdx = 0;\n let liveEndIdx = liveCollection.length - 1;\n if (Array.isArray(newCollection)) {\n let newEndIdx = newCollection.length - 1;\n while (liveStartIdx <= liveEndIdx && liveStartIdx <= newEndIdx) {\n // compare from the beginning\n const liveStartValue = liveCollection.at(liveStartIdx);\n const newStartValue = newCollection[liveStartIdx];\n const isStartMatching = valuesMatching(liveStartIdx, liveStartValue, liveStartIdx, newStartValue, trackByFn);\n if (isStartMatching !== 0) {\n if (isStartMatching < 0) {\n liveCollection.updateValue(liveStartIdx, newStartValue);\n }\n liveStartIdx++;\n continue;\n }\n // compare from the end\n // TODO(perf): do _all_ the matching from the end\n const liveEndValue = liveCollection.at(liveEndIdx);\n const newEndValue = newCollection[newEndIdx];\n const isEndMatching = valuesMatching(liveEndIdx, liveEndValue, newEndIdx, newEndValue, trackByFn);\n if (isEndMatching !== 0) {\n if (isEndMatching < 0) {\n liveCollection.updateValue(liveEndIdx, newEndValue);\n }\n liveEndIdx--;\n newEndIdx--;\n continue;\n }\n // Detect swap and moves:\n const liveStartKey = trackByFn(liveStartIdx, liveStartValue);\n const liveEndKey = trackByFn(liveEndIdx, liveEndValue);\n const newStartKey = trackByFn(liveStartIdx, newStartValue);\n if (Object.is(newStartKey, liveEndKey)) {\n const newEndKey = trackByFn(newEndIdx, newEndValue);\n // detect swap on both ends;\n if (Object.is(newEndKey, liveStartKey)) {\n liveCollection.swap(liveStartIdx, liveEndIdx);\n liveCollection.updateValue(liveEndIdx, newEndValue);\n newEndIdx--;\n liveEndIdx--;\n }\n else {\n // the new item is the same as the live item with the end pointer - this is a move forward\n // to an earlier index;\n liveCollection.move(liveEndIdx, liveStartIdx);\n }\n liveCollection.updateValue(liveStartIdx, newStartValue);\n liveStartIdx++;\n continue;\n }\n // Fallback to the slow path: we need to learn more about the content of the live and new\n // collections.\n detachedItems ??= new UniqueValueMultiKeyMap();\n liveKeysInTheFuture ??=\n initLiveItemsInTheFuture(liveCollection, liveStartIdx, liveEndIdx, trackByFn);\n // Check if I'm inserting a previously detached item: if so, attach it here\n if (attachPreviouslyDetached(liveCollection, detachedItems, liveStartIdx, newStartKey)) {\n liveCollection.updateValue(liveStartIdx, newStartValue);\n liveStartIdx++;\n liveEndIdx++;\n }\n else if (!liveKeysInTheFuture.has(newStartKey)) {\n // Check if we seen a new item that doesn't exist in the old collection and must be INSERTED\n const newItem = liveCollection.create(liveStartIdx, newCollection[liveStartIdx]);\n liveCollection.attach(liveStartIdx, newItem);\n liveStartIdx++;\n liveEndIdx++;\n }\n else {\n // We know that the new item exists later on in old collection but we don't know its index\n // and as the consequence can't move it (don't know where to find it). Detach the old item,\n // hoping that it unlocks the fast path again.\n detachedItems.set(liveStartKey, liveCollection.detach(liveStartIdx));\n liveEndIdx--;\n }\n }\n // Final cleanup steps:\n // - more items in the new collection => insert\n while (liveStartIdx <= newEndIdx) {\n createOrAttach(liveCollection, detachedItems, trackByFn, liveStartIdx, newCollection[liveStartIdx]);\n liveStartIdx++;\n }\n }\n else if (newCollection != null) {\n // iterable - immediately fallback to the slow path\n const newCollectionIterator = newCollection[Symbol.iterator]();\n let newIterationResult = newCollectionIterator.next();\n while (!newIterationResult.done && liveStartIdx <= liveEndIdx) {\n const liveValue = liveCollection.at(liveStartIdx);\n const newValue = newIterationResult.value;\n const isStartMatching = valuesMatching(liveStartIdx, liveValue, liveStartIdx, newValue, trackByFn);\n if (isStartMatching !== 0) {\n // found a match - move on, but update value\n if (isStartMatching < 0) {\n liveCollection.updateValue(liveStartIdx, newValue);\n }\n liveStartIdx++;\n newIterationResult = newCollectionIterator.next();\n }\n else {\n detachedItems ??= new UniqueValueMultiKeyMap();\n liveKeysInTheFuture ??=\n initLiveItemsInTheFuture(liveCollection, liveStartIdx, liveEndIdx, trackByFn);\n // Check if I'm inserting a previously detached item: if so, attach it here\n const newKey = trackByFn(liveStartIdx, newValue);\n if (attachPreviouslyDetached(liveCollection, detachedItems, liveStartIdx, newKey)) {\n liveCollection.updateValue(liveStartIdx, newValue);\n liveStartIdx++;\n liveEndIdx++;\n newIterationResult = newCollectionIterator.next();\n }\n else if (!liveKeysInTheFuture.has(newKey)) {\n liveCollection.attach(liveStartIdx, liveCollection.create(liveStartIdx, newValue));\n liveStartIdx++;\n liveEndIdx++;\n newIterationResult = newCollectionIterator.next();\n }\n else {\n // it is a move forward - detach the current item without advancing in collections\n const liveKey = trackByFn(liveStartIdx, liveValue);\n detachedItems.set(liveKey, liveCollection.detach(liveStartIdx));\n liveEndIdx--;\n }\n }\n }\n // this is a new item as we run out of the items in the old collection - create or attach a\n // previously detached one\n while (!newIterationResult.done) {\n createOrAttach(liveCollection, detachedItems, trackByFn, liveCollection.length, newIterationResult.value);\n newIterationResult = newCollectionIterator.next();\n }\n }\n // Cleanups common to the array and iterable:\n // - more items in the live collection => delete starting from the end;\n while (liveStartIdx <= liveEndIdx) {\n liveCollection.destroy(liveCollection.detach(liveEndIdx--));\n }\n // - destroy items that were detached but never attached again.\n detachedItems?.forEach(item => {\n liveCollection.destroy(item);\n });\n}\nfunction attachPreviouslyDetached(prevCollection, detachedItems, index, key) {\n if (detachedItems !== undefined && detachedItems.has(key)) {\n prevCollection.attach(index, detachedItems.get(key));\n detachedItems.delete(key);\n return true;\n }\n return false;\n}\nfunction createOrAttach(liveCollection, detachedItems, trackByFn, index, value) {\n if (!attachPreviouslyDetached(liveCollection, detachedItems, index, trackByFn(index, value))) {\n const newItem = liveCollection.create(index, value);\n liveCollection.attach(index, newItem);\n }\n else {\n liveCollection.updateValue(index, value);\n }\n}\nfunction initLiveItemsInTheFuture(liveCollection, start, end, trackByFn) {\n const keys = new Set();\n for (let i = start; i <= end; i++) {\n keys.add(trackByFn(i, liveCollection.at(i)));\n }\n return keys;\n}\n/**\n * A specific, partial implementation of the Map interface with the following characteristics:\n * - allows multiple values for a given key;\n * - maintain FIFO order for multiple values corresponding to a given key;\n * - assumes that all values are unique.\n *\n * The implementation aims at having the minimal overhead for cases where keys are _not_ duplicated\n * (the most common case in the list reconciliation algorithm). To achieve this, the first value for\n * a given key is stored in a regular map. Then, when more values are set for a given key, we\n * maintain a form of linked list in a separate map. To maintain this linked list we assume that all\n * values (in the entire collection) are unique.\n */\nclass UniqueValueMultiKeyMap {\n constructor() {\n // A map from a key to the first value corresponding to this key.\n this.kvMap = new Map();\n // A map that acts as a linked list of values - each value maps to the next value in this \"linked\n // list\" (this only works if values are unique). Allocated lazily to avoid memory consumption when\n // there are no duplicated values.\n this._vMap = undefined;\n }\n has(key) {\n return this.kvMap.has(key);\n }\n delete(key) {\n if (!this.has(key))\n return false;\n const value = this.kvMap.get(key);\n if (this._vMap !== undefined && this._vMap.has(value)) {\n this.kvMap.set(key, this._vMap.get(value));\n this._vMap.delete(value);\n }\n else {\n this.kvMap.delete(key);\n }\n return true;\n }\n get(key) {\n return this.kvMap.get(key);\n }\n set(key, value) {\n if (this.kvMap.has(key)) {\n let prevValue = this.kvMap.get(key);\n ngDevMode &&\n assertNotSame(prevValue, value, `Detected a duplicated value ${value} for the key ${key}`);\n if (this._vMap === undefined) {\n this._vMap = new Map();\n }\n const vMap = this._vMap;\n while (vMap.has(prevValue)) {\n prevValue = vMap.get(prevValue);\n }\n vMap.set(prevValue, value);\n }\n else {\n this.kvMap.set(key, value);\n }\n }\n forEach(cb) {\n for (let [key, value] of this.kvMap) {\n cb(value, key);\n if (this._vMap !== undefined) {\n const vMap = this._vMap;\n while (vMap.has(value)) {\n value = vMap.get(value);\n cb(value, key);\n }\n }\n }\n }\n}\n\n/**\n * The conditional instruction represents the basic building block on the runtime side to support\n * built-in \"if\" and \"switch\". On the high level this instruction is responsible for adding and\n * removing views selected by a conditional expression.\n *\n * @param containerIndex index of a container in a host view (indexed from HEADER_OFFSET) where\n * conditional views should be inserted.\n * @param matchingTemplateIndex index of a template TNode representing a conditional view to be\n * inserted; -1 represents a special case when there is no view to insert.\n * @codeGenApi\n */\nfunction ɵɵconditional(containerIndex, matchingTemplateIndex, value) {\n performanceMarkFeature('NgControlFlow');\n const hostLView = getLView();\n const bindingIndex = nextBindingIndex();\n const lContainer = getLContainer(hostLView, HEADER_OFFSET + containerIndex);\n const viewInContainerIdx = 0;\n if (bindingUpdated(hostLView, bindingIndex, matchingTemplateIndex)) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // The index of the view to show changed - remove the previously displayed one\n // (it is a noop if there are no active views in a container).\n removeLViewFromLContainer(lContainer, viewInContainerIdx);\n // Index -1 is a special case where none of the conditions evaluates to\n // a truthy value and as the consequence we've got no view to show.\n if (matchingTemplateIndex !== -1) {\n const templateTNode = getExistingTNode(hostLView[TVIEW], HEADER_OFFSET + matchingTemplateIndex);\n const dehydratedView = findMatchingDehydratedView(lContainer, templateTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(hostLView, templateTNode, value, { dehydratedView });\n addLViewToLContainer(lContainer, embeddedLView, viewInContainerIdx, shouldAddViewToDom(templateTNode, dehydratedView));\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n else {\n // We might keep displaying the same template but the actual value of the expression could have\n // changed - re-bind in context.\n const lView = getLViewFromLContainer(lContainer, viewInContainerIdx);\n if (lView !== undefined) {\n lView[CONTEXT] = value;\n }\n }\n}\nclass RepeaterContext {\n constructor(lContainer, $implicit, $index) {\n this.lContainer = lContainer;\n this.$implicit = $implicit;\n this.$index = $index;\n }\n get $count() {\n return this.lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n}\n/**\n * A built-in trackBy function used for situations where users specified collection index as a\n * tracking expression. Having this function body in the runtime avoids unnecessary code generation.\n *\n * @param index\n * @returns\n */\nfunction ɵɵrepeaterTrackByIndex(index) {\n return index;\n}\n/**\n * A built-in trackBy function used for situations where users specified collection item reference\n * as a tracking expression. Having this function body in the runtime avoids unnecessary code\n * generation.\n *\n * @param index\n * @returns\n */\nfunction ɵɵrepeaterTrackByIdentity(_, value) {\n return value;\n}\nclass RepeaterMetadata {\n constructor(hasEmptyBlock, trackByFn, liveCollection) {\n this.hasEmptyBlock = hasEmptyBlock;\n this.trackByFn = trackByFn;\n this.liveCollection = liveCollection;\n }\n}\n/**\n * The repeaterCreate instruction runs in the creation part of the template pass and initializes\n * internal data structures required by the update pass of the built-in repeater logic. Repeater\n * metadata are allocated in the data part of LView with the following layout:\n * - LView[HEADER_OFFSET + index] - metadata\n * - LView[HEADER_OFFSET + index + 1] - reference to a template function rendering an item\n * - LView[HEADER_OFFSET + index + 2] - optional reference to a template function rendering an empty\n * block\n *\n * @param index Index at which to store the metadata of the repeater.\n * @param templateFn Reference to the template of the main repeater block.\n * @param decls The number of nodes, local refs, and pipes for the main block.\n * @param vars The number of bindings for the main block.\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param trackByFn Reference to the tracking function.\n * @param trackByUsesComponentInstance Whether the tracking function has any references to the\n * component instance. If it doesn't, we can avoid rebinding it.\n * @param emptyTemplateFn Reference to the template function of the empty block.\n * @param emptyDecls The number of nodes, local refs, and pipes for the empty block.\n * @param emptyVars The number of bindings for the empty block.\n * @param emptyTagName The name of the empty block container element, if applicable\n * @param emptyAttrsIndex Index of the empty block template attributes in the `consts` array.\n *\n * @codeGenApi\n */\nfunction ɵɵrepeaterCreate(index, templateFn, decls, vars, tagName, attrsIndex, trackByFn, trackByUsesComponentInstance, emptyTemplateFn, emptyDecls, emptyVars, emptyTagName, emptyAttrsIndex) {\n performanceMarkFeature('NgControlFlow');\n ngDevMode &&\n assertFunction(trackByFn, `A track expression must be a function, was ${typeof trackByFn} instead.`);\n const hasEmptyBlock = emptyTemplateFn !== undefined;\n const hostLView = getLView();\n const boundTrackBy = trackByUsesComponentInstance ?\n // We only want to bind when necessary, because it produces a\n // new function. For pure functions it's not necessary.\n trackByFn.bind(hostLView[DECLARATION_COMPONENT_VIEW][CONTEXT]) :\n trackByFn;\n const metadata = new RepeaterMetadata(hasEmptyBlock, boundTrackBy);\n hostLView[HEADER_OFFSET + index] = metadata;\n ɵɵtemplate(index + 1, templateFn, decls, vars, tagName, attrsIndex);\n if (hasEmptyBlock) {\n ngDevMode &&\n assertDefined(emptyDecls, 'Missing number of declarations for the empty repeater block.');\n ngDevMode &&\n assertDefined(emptyVars, 'Missing number of bindings for the empty repeater block.');\n ɵɵtemplate(index + 2, emptyTemplateFn, emptyDecls, emptyVars, emptyTagName, emptyAttrsIndex);\n }\n}\nclass LiveCollectionLContainerImpl extends LiveCollection {\n constructor(lContainer, hostLView, templateTNode) {\n super();\n this.lContainer = lContainer;\n this.hostLView = hostLView;\n this.templateTNode = templateTNode;\n /**\n Property indicating if indexes in the repeater context need to be updated following the live\n collection changes. Index updates are necessary if and only if views are inserted / removed in\n the middle of LContainer. Adds and removals at the end don't require index updates.\n */\n this.needsIndexUpdate = false;\n }\n get length() {\n return this.lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n at(index) {\n return this.getLView(index)[CONTEXT].$implicit;\n }\n attach(index, lView) {\n const dehydratedView = lView[HYDRATION];\n this.needsIndexUpdate ||= index !== this.length;\n addLViewToLContainer(this.lContainer, lView, index, shouldAddViewToDom(this.templateTNode, dehydratedView));\n }\n detach(index) {\n this.needsIndexUpdate ||= index !== this.length - 1;\n return detachExistingView(this.lContainer, index);\n }\n create(index, value) {\n const dehydratedView = findMatchingDehydratedView(this.lContainer, this.templateTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(this.hostLView, this.templateTNode, new RepeaterContext(this.lContainer, value, index), { dehydratedView });\n return embeddedLView;\n }\n destroy(lView) {\n destroyLView(lView[TVIEW], lView);\n }\n updateValue(index, value) {\n this.getLView(index)[CONTEXT].$implicit = value;\n }\n reset() {\n this.needsIndexUpdate = false;\n }\n updateIndexes() {\n if (this.needsIndexUpdate) {\n for (let i = 0; i < this.length; i++) {\n this.getLView(i)[CONTEXT].$index = i;\n }\n }\n }\n getLView(index) {\n return getExistingLViewFromLContainer(this.lContainer, index);\n }\n}\n/**\n * The repeater instruction does update-time diffing of a provided collection (against the\n * collection seen previously) and maps changes in the collection to views structure (by adding,\n * removing or moving views as needed).\n * @param collection - the collection instance to be checked for changes\n * @codeGenApi\n */\nfunction ɵɵrepeater(collection) {\n const prevConsumer = setActiveConsumer$1(null);\n const metadataSlotIdx = getSelectedIndex();\n try {\n const hostLView = getLView();\n const hostTView = hostLView[TVIEW];\n const metadata = hostLView[metadataSlotIdx];\n if (metadata.liveCollection === undefined) {\n const containerIndex = metadataSlotIdx + 1;\n const lContainer = getLContainer(hostLView, containerIndex);\n const itemTemplateTNode = getExistingTNode(hostTView, containerIndex);\n metadata.liveCollection =\n new LiveCollectionLContainerImpl(lContainer, hostLView, itemTemplateTNode);\n }\n else {\n metadata.liveCollection.reset();\n }\n const liveCollection = metadata.liveCollection;\n reconcile(liveCollection, collection, metadata.trackByFn);\n // moves in the container might caused context's index to get out of order, re-adjust if needed\n liveCollection.updateIndexes();\n // handle empty blocks\n if (metadata.hasEmptyBlock) {\n const bindingIndex = nextBindingIndex();\n const isCollectionEmpty = liveCollection.length === 0;\n if (bindingUpdated(hostLView, bindingIndex, isCollectionEmpty)) {\n const emptyTemplateIndex = metadataSlotIdx + 2;\n const lContainerForEmpty = getLContainer(hostLView, emptyTemplateIndex);\n if (isCollectionEmpty) {\n const emptyTemplateTNode = getExistingTNode(hostTView, emptyTemplateIndex);\n const dehydratedView = findMatchingDehydratedView(lContainerForEmpty, emptyTemplateTNode.tView.ssrId);\n const embeddedLView = createAndRenderEmbeddedLView(hostLView, emptyTemplateTNode, undefined, { dehydratedView });\n addLViewToLContainer(lContainerForEmpty, embeddedLView, 0, shouldAddViewToDom(emptyTemplateTNode, dehydratedView));\n }\n else {\n removeLViewFromLContainer(lContainerForEmpty, 0);\n }\n }\n }\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\nfunction getLContainer(lView, index) {\n const lContainer = lView[index];\n ngDevMode && assertLContainer(lContainer);\n return lContainer;\n}\nfunction detachExistingView(lContainer, index) {\n const existingLView = detachView(lContainer, index);\n ngDevMode && assertLView(existingLView);\n return existingLView;\n}\nfunction getExistingLViewFromLContainer(lContainer, index) {\n const existingLView = getLViewFromLContainer(lContainer, index);\n ngDevMode && assertLView(existingLView);\n return existingLView;\n}\nfunction getExistingTNode(tView, index) {\n const tNode = getTNode(tView, index);\n ngDevMode && assertTNode(tNode);\n return tNode;\n}\n\nfunction elementStartFirstCreatePass(index, tView, lView, name, attrsIndex, localRefsIndex) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n const attrs = getConstant(tViewConsts, attrsIndex);\n const tNode = getOrCreateTNode(tView, index, 2 /* TNodeType.Element */, name, attrs);\n resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n if (tNode.attrs !== null) {\n computeStaticStyling(tNode, tNode.attrs, false);\n }\n if (tNode.mergedAttrs !== null) {\n computeStaticStyling(tNode, tNode.mergedAttrs, true);\n }\n if (tView.queries !== null) {\n tView.queries.elementStart(tView, tNode);\n }\n return tNode;\n}\n/**\n * Create DOM element. The instruction must later be followed by `elementEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * Attributes and localRefs are passed as an array of strings where elements with an even index\n * hold an attribute name and elements with an odd index hold an attribute value, ex.:\n * ['id', 'warning5', 'class', 'alert']\n *\n * @codeGenApi\n */\nfunction ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = HEADER_OFFSET + index;\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n const renderer = lView[RENDERER];\n const tNode = tView.firstCreatePass ?\n elementStartFirstCreatePass(adjustedIndex, tView, lView, name, attrsIndex, localRefsIndex) :\n tView.data[adjustedIndex];\n const native = _locateOrCreateElementNode(tView, lView, tNode, renderer, name, index);\n lView[adjustedIndex] = native;\n const hasDirectives = isDirectiveHost(tNode);\n if (ngDevMode && tView.firstCreatePass) {\n validateElementIsKnown(native, lView, tNode.value, tView.schemas, hasDirectives);\n }\n setCurrentTNode(tNode, true);\n setupStaticAttributes(renderer, native, tNode);\n if (!isDetachedByI18n(tNode) && wasLastNodeCreated()) {\n // In the i18n case, the translation may have removed this element, so only add it if it is not\n // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n appendChild(tView, lView, native, tNode);\n }\n // any immediate children of a component or template container must be pre-emptively\n // monkey-patched with the component view data so that the element can be inspected\n // later on using any element discovery utility methods (see `element_discovery.ts`)\n if (getElementDepthCount() === 0) {\n attachPatchData(native, lView);\n }\n increaseElementDepthCount();\n if (hasDirectives) {\n createDirectivesInstances(tView, lView, tNode);\n executeContentQueries(tView, tNode, lView);\n }\n if (localRefsIndex !== null) {\n saveResolvedLocalsInData(lView, tNode);\n }\n return ɵɵelementStart;\n}\n/**\n * Mark the end of the element.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementEnd() {\n let currentTNode = getCurrentTNode();\n ngDevMode && assertDefined(currentTNode, 'No parent node to close.');\n if (isCurrentTNodeParent()) {\n setCurrentTNodeAsNotParent();\n }\n else {\n ngDevMode && assertHasParent(getCurrentTNode());\n currentTNode = currentTNode.parent;\n setCurrentTNode(currentTNode, false);\n }\n const tNode = currentTNode;\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */);\n if (isSkipHydrationRootTNode(tNode)) {\n leaveSkipHydrationBlock();\n }\n decreaseElementDepthCount();\n const tView = getTView();\n if (tView.firstCreatePass) {\n registerPostOrderHooks(tView, currentTNode);\n if (isContentQueryHost(currentTNode)) {\n tView.queries.elementEnd(currentTNode);\n }\n }\n if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {\n setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);\n }\n if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {\n setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);\n }\n return ɵɵelementEnd;\n}\n/**\n * Creates an empty element using {@link elementStart} and {@link elementEnd}\n *\n * @param index Index of the element in the data array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelement(index, name, attrsIndex, localRefsIndex) {\n ɵɵelementStart(index, name, attrsIndex, localRefsIndex);\n ɵɵelementEnd();\n return ɵɵelement;\n}\nlet _locateOrCreateElementNode = (tView, lView, tNode, renderer, name, index) => {\n lastNodeWasCreated(true);\n return createElementNode(renderer, name, getNamespace$1());\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of element nodes.\n */\nfunction locateOrCreateElementNodeImpl(tView, lView, tNode, renderer, name, index) {\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() ||\n isDetachedByI18n(tNode) || isDisconnectedNode$1(hydrationInfo, index);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createElementNode(renderer, name, getNamespace$1());\n }\n // Hydration mode, looking up an existing element in DOM.\n const native = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateMatchingNode(native, Node.ELEMENT_NODE, name, lView, tNode);\n ngDevMode && markRNodeAsClaimedByHydration(native);\n // This element might also be an anchor of a view container.\n if (getSerializedContainerViews(hydrationInfo, index)) {\n // Important note: this element acts as an anchor, but it's **not** a part\n // of the embedded view, so we start the segment **after** this element, taking\n // a reference to the next sibling. For example, the following template:\n // `<div #vcrTarget>` is represented in the DOM as `<div></div>...<!--container-->`,\n // so while processing a `<div>` instruction, point to the next sibling as a\n // start of a segment.\n ngDevMode && validateNodeExists(native.nextSibling, lView, tNode);\n setSegmentHead(hydrationInfo, index, native.nextSibling);\n }\n // Checks if the skip hydration attribute is present during hydration so we know to\n // skip attempting to hydrate this block. We check both TNode and RElement for an\n // attribute: the RElement case is needed for i18n cases, when we add it to host\n // elements during the annotation phase (after all internal data structures are setup).\n if (hydrationInfo &&\n (hasSkipHydrationAttrOnTNode(tNode) || hasSkipHydrationAttrOnRElement(native))) {\n if (isComponentHost(tNode)) {\n enterSkipHydrationBlock(tNode);\n // Since this isn't hydratable, we need to empty the node\n // so there's no duplicate content after render\n clearElementContents(native);\n ngDevMode && markRNodeAsSkippedByHydration(native);\n }\n else if (ngDevMode) {\n // If this is not a component host, throw an error.\n // Hydration can be skipped on per-component basis only.\n throw invalidSkipHydrationHost(native);\n }\n }\n return native;\n}\nfunction enableLocateOrCreateElementNodeImpl() {\n _locateOrCreateElementNode = locateOrCreateElementNodeImpl;\n}\n\nfunction elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n const attrs = getConstant(tViewConsts, attrsIndex);\n const tNode = getOrCreateTNode(tView, index, 8 /* TNodeType.ElementContainer */, 'ng-container', attrs);\n // While ng-container doesn't necessarily support styling, we use the style context to identify\n // and execute directives on the ng-container.\n if (attrs !== null) {\n computeStaticStyling(tNode, attrs, true);\n }\n const localRefs = getConstant(tViewConsts, localRefsIndex);\n resolveDirectives(tView, lView, tNode, localRefs);\n if (tView.queries !== null) {\n tView.queries.elementStart(tView, tNode);\n }\n return tNode;\n}\n/**\n * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.\n * The instruction must later be followed by `elementContainerEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * Even if this instruction accepts a set of attributes no actual attribute values are propagated to\n * the DOM (as a comment node can't have attributes). Attributes are here only for directive\n * matching purposes and setting initial inputs of directives.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');\n const tNode = tView.firstCreatePass ?\n elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex) :\n tView.data[adjustedIndex];\n setCurrentTNode(tNode, true);\n const comment = _locateOrCreateElementContainerNode(tView, lView, tNode, index);\n lView[adjustedIndex] = comment;\n if (wasLastNodeCreated()) {\n appendChild(tView, lView, comment, tNode);\n }\n attachPatchData(comment, lView);\n if (isDirectiveHost(tNode)) {\n createDirectivesInstances(tView, lView, tNode);\n executeContentQueries(tView, tNode, lView);\n }\n if (localRefsIndex != null) {\n saveResolvedLocalsInData(lView, tNode);\n }\n return ɵɵelementContainerStart;\n}\n/**\n * Mark the end of the <ng-container>.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerEnd() {\n let currentTNode = getCurrentTNode();\n const tView = getTView();\n if (isCurrentTNodeParent()) {\n setCurrentTNodeAsNotParent();\n }\n else {\n ngDevMode && assertHasParent(currentTNode);\n currentTNode = currentTNode.parent;\n setCurrentTNode(currentTNode, false);\n }\n ngDevMode && assertTNodeType(currentTNode, 8 /* TNodeType.ElementContainer */);\n if (tView.firstCreatePass) {\n registerPostOrderHooks(tView, currentTNode);\n if (isContentQueryHost(currentTNode)) {\n tView.queries.elementEnd(currentTNode);\n }\n }\n return ɵɵelementContainerEnd;\n}\n/**\n * Creates an empty logical container using {@link elementContainerStart}\n * and {@link elementContainerEnd}\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n * @returns This function returns itself so that it may be chained.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainer(index, attrsIndex, localRefsIndex) {\n ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);\n ɵɵelementContainerEnd();\n return ɵɵelementContainer;\n}\nlet _locateOrCreateElementContainerNode = (tView, lView, tNode, index) => {\n lastNodeWasCreated(true);\n return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of comment nodes that\n * represent <ng-container>'s anchor.\n */\nfunction locateOrCreateElementContainerNode(tView, lView, tNode, index) {\n let comment;\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() || isDetachedByI18n(tNode);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createCommentNode(lView[RENDERER], ngDevMode ? 'ng-container' : '');\n }\n // Hydration mode, looking up existing elements in DOM.\n const currentRNode = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateNodeExists(currentRNode, lView, tNode);\n const ngContainerSize = getNgContainerSize(hydrationInfo, index);\n ngDevMode &&\n assertNumber(ngContainerSize, 'Unexpected state: hydrating an <ng-container>, ' +\n 'but no hydration info is available.');\n setSegmentHead(hydrationInfo, index, currentRNode);\n comment = siblingAfter(ngContainerSize, currentRNode);\n if (ngDevMode) {\n validateMatchingNode(comment, Node.COMMENT_NODE, null, lView, tNode);\n markRNodeAsClaimedByHydration(comment);\n }\n return comment;\n}\nfunction enableLocateOrCreateElementContainerNodeImpl() {\n _locateOrCreateElementContainerNode = locateOrCreateElementContainerNode;\n}\n\n/**\n * Returns the current OpaqueViewState instance.\n *\n * Used in conjunction with the restoreView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @codeGenApi\n */\nfunction ɵɵgetCurrentView() {\n return getLView();\n}\n\n/**\n * Update a property on a host element. Only applies to native node properties, not inputs.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵhostProperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵhostProperty;\n}\n/**\n * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in\n * the component's renderer. Normally all host bindings are evaluated with the parent\n * component's renderer, but, in the case of animation @triggers, they need to be\n * evaluated with the sub component's renderer (because that's where the animation\n * triggers are defined).\n *\n * Do not use this instruction as a replacement for `elementProperty`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param index The index of the element to update in the data array\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostProperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n const currentDef = getCurrentDirectiveDef(tView.data);\n const renderer = loadComponentRenderer(currentDef, tNode, lView);\n elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵsyntheticHostProperty;\n}\n\n/**\n * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nif (typeof ngI18nClosureMode === 'undefined') {\n // These property accesses can be ignored because ngI18nClosureMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.\n // NOTE: we need to have it in IIFE so that the tree-shaker is happy.\n (function () {\n // tslint:disable-next-line:no-toplevel-property-access\n _global['ngI18nClosureMode'] =\n // TODO(FW-1250): validate that this actually, you know, works.\n // tslint:disable-next-line:no-toplevel-property-access\n typeof goog !== 'undefined' && typeof goog.getMsg === 'function';\n })();\n}\n\n// THIS CODE IS GENERATED - DO NOT MODIFY.\nconst u = undefined;\nfunction plural(val) {\n const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\\.?/, '').length;\n if (i === 1 && v === 0)\n return 1;\n return 5;\n}\nvar localeEn = [\"en\", [[\"a\", \"p\"], [\"AM\", \"PM\"], u], [[\"AM\", \"PM\"], u, u], [[\"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\"]], u, [[\"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\"]], u, [[\"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}\", u, \"{1} 'at' {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"¤#,##0.00\", \"#E0\"], \"USD\", \"$\", \"US Dollar\", {}, \"ltr\", plural];\n\n/**\n * This const is used to store the locale data registered with `registerLocaleData`\n */\nlet LOCALE_DATA = {};\n/**\n * Register locale data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1\n */\nfunction registerLocaleData(data, localeId, extraData) {\n if (typeof localeId !== 'string') {\n extraData = localeId;\n localeId = data[LocaleDataIndex.LocaleId];\n }\n localeId = localeId.toLowerCase().replace(/_/g, '-');\n LOCALE_DATA[localeId] = data;\n if (extraData) {\n LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;\n }\n}\n/**\n * Finds the locale data for a given locale.\n *\n * @param locale The locale code.\n * @returns The locale data.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n */\nfunction findLocaleData(locale) {\n const normalizedLocale = normalizeLocale(locale);\n let match = getLocaleData(normalizedLocale);\n if (match) {\n return match;\n }\n // let's try to find a parent locale\n const parentLocale = normalizedLocale.split('-')[0];\n match = getLocaleData(parentLocale);\n if (match) {\n return match;\n }\n if (parentLocale === 'en') {\n return localeEn;\n }\n throw new RuntimeError(701 /* RuntimeErrorCode.MISSING_LOCALE_DATA */, ngDevMode && `Missing locale data for the locale \"${locale}\".`);\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n */\nfunction getLocaleCurrencyCode(locale) {\n const data = findLocaleData(locale);\n return data[LocaleDataIndex.CurrencyCode] || null;\n}\n/**\n * Retrieves the plural function used by ICU expressions to determine the plural case to use\n * for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The plural function for the locale.\n * @see {@link NgPlural}\n * @see [Internationalization (i18n) Guide](/guide/i18n-overview)\n */\nfunction getLocalePluralCase(locale) {\n const data = findLocaleData(locale);\n return data[LocaleDataIndex.PluralCase];\n}\n/**\n * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`\n * or from the global `ng.common.locale`.\n */\nfunction getLocaleData(normalizedLocale) {\n if (!(normalizedLocale in LOCALE_DATA)) {\n LOCALE_DATA[normalizedLocale] = _global.ng && _global.ng.common && _global.ng.common.locales &&\n _global.ng.common.locales[normalizedLocale];\n }\n return LOCALE_DATA[normalizedLocale];\n}\n/**\n * Helper function to remove all the locale data from `LOCALE_DATA`.\n */\nfunction unregisterAllLocaleData() {\n LOCALE_DATA = {};\n}\n/**\n * Index of each type of locale data from the locale data array\n */\nvar LocaleDataIndex;\n(function (LocaleDataIndex) {\n LocaleDataIndex[LocaleDataIndex[\"LocaleId\"] = 0] = \"LocaleId\";\n LocaleDataIndex[LocaleDataIndex[\"DayPeriodsFormat\"] = 1] = \"DayPeriodsFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DayPeriodsStandalone\"] = 2] = \"DayPeriodsStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"DaysFormat\"] = 3] = \"DaysFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DaysStandalone\"] = 4] = \"DaysStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"MonthsFormat\"] = 5] = \"MonthsFormat\";\n LocaleDataIndex[LocaleDataIndex[\"MonthsStandalone\"] = 6] = \"MonthsStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"Eras\"] = 7] = \"Eras\";\n LocaleDataIndex[LocaleDataIndex[\"FirstDayOfWeek\"] = 8] = \"FirstDayOfWeek\";\n LocaleDataIndex[LocaleDataIndex[\"WeekendRange\"] = 9] = \"WeekendRange\";\n LocaleDataIndex[LocaleDataIndex[\"DateFormat\"] = 10] = \"DateFormat\";\n LocaleDataIndex[LocaleDataIndex[\"TimeFormat\"] = 11] = \"TimeFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DateTimeFormat\"] = 12] = \"DateTimeFormat\";\n LocaleDataIndex[LocaleDataIndex[\"NumberSymbols\"] = 13] = \"NumberSymbols\";\n LocaleDataIndex[LocaleDataIndex[\"NumberFormats\"] = 14] = \"NumberFormats\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencyCode\"] = 15] = \"CurrencyCode\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencySymbol\"] = 16] = \"CurrencySymbol\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencyName\"] = 17] = \"CurrencyName\";\n LocaleDataIndex[LocaleDataIndex[\"Currencies\"] = 18] = \"Currencies\";\n LocaleDataIndex[LocaleDataIndex[\"Directionality\"] = 19] = \"Directionality\";\n LocaleDataIndex[LocaleDataIndex[\"PluralCase\"] = 20] = \"PluralCase\";\n LocaleDataIndex[LocaleDataIndex[\"ExtraData\"] = 21] = \"ExtraData\";\n})(LocaleDataIndex || (LocaleDataIndex = {}));\n/**\n * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.\n */\nfunction normalizeLocale(locale) {\n return locale.toLowerCase().replace(/_/g, '-');\n}\n\nconst pluralMapping = ['zero', 'one', 'two', 'few', 'many'];\n/**\n * Returns the plural case based on the locale\n */\nfunction getPluralCase(value, locale) {\n const plural = getLocalePluralCase(locale)(parseInt(value, 10));\n const result = pluralMapping[plural];\n return (result !== undefined) ? result : 'other';\n}\n/**\n * The locale id that the application is using by default (for translations and ICU expressions).\n */\nconst DEFAULT_LOCALE_ID = 'en-US';\n/**\n * USD currency code that the application uses by default for CurrencyPipe when no\n * DEFAULT_CURRENCY_CODE is provided.\n */\nconst USD_CURRENCY_CODE = 'USD';\n\n/**\n * Marks that the next string is an element name.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ELEMENT_MARKER = {\n marker: 'element'\n};\n/**\n * Marks that the next string is comment text need for ICU.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ICU_MARKER = {\n marker: 'ICU'\n};\n/**\n * See `I18nCreateOpCodes`\n */\nvar I18nCreateOpCode;\n(function (I18nCreateOpCode) {\n /**\n * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and\n * `COMMENT`.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"SHIFT\"] = 2] = \"SHIFT\";\n /**\n * Should the node be appended to parent immediately after creation.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"APPEND_EAGERLY\"] = 1] = \"APPEND_EAGERLY\";\n /**\n * If set the node should be comment (rather than a text) node.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"COMMENT\"] = 2] = \"COMMENT\";\n})(I18nCreateOpCode || (I18nCreateOpCode = {}));\n\n/**\n * The locale id that the application is currently using (for translations and ICU expressions).\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nlet LOCALE_ID$1 = DEFAULT_LOCALE_ID;\n/**\n * Sets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n *\n * @param localeId\n */\nfunction setLocaleId(localeId) {\n ngDevMode && assertDefined(localeId, `Expected localeId to be defined`);\n if (typeof localeId === 'string') {\n LOCALE_ID$1 = localeId.toLowerCase().replace(/_/g, '-');\n }\n}\n/**\n * Gets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nfunction getLocaleId() {\n return LOCALE_ID$1;\n}\n\n/**\n * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {\n const tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;\n const insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex) ? tNodeInsertBeforeIndex[0] : tNodeInsertBeforeIndex;\n if (insertBeforeIndex === null) {\n return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);\n }\n else {\n ngDevMode && assertIndexInRange(lView, insertBeforeIndex);\n return unwrapRNode(lView[insertBeforeIndex]);\n }\n}\n/**\n * Process `TNode.insertBeforeIndex` by adding i18n text nodes.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {\n const tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;\n if (Array.isArray(tNodeInsertBeforeIndex)) {\n // An array indicates that there are i18n nodes that need to be added as children of this\n // `childRNode`. These i18n nodes were created before this `childRNode` was available and so\n // only now can be added. The first element of the array is the normal index where we should\n // insert the `childRNode`. Additional elements are the extra nodes to be added as children of\n // `childRNode`.\n ngDevMode && assertDomNode(childRNode);\n let i18nParent = childRNode;\n let anchorRNode = null;\n if (!(childTNode.type & 3 /* TNodeType.AnyRNode */)) {\n anchorRNode = i18nParent;\n i18nParent = parentRElement;\n }\n if (i18nParent !== null && childTNode.componentOffset === -1) {\n for (let i = 1; i < tNodeInsertBeforeIndex.length; i++) {\n // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.\n // see `assertDomNode` below.\n const i18nChild = lView[tNodeInsertBeforeIndex[i]];\n nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);\n }\n }\n }\n}\n\n/**\n * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list\n * `tNode.insertBeforeIndex`.\n *\n * Things to keep in mind:\n * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the\n * `ɵɵi18nStart` instruction.\n * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by\n * `ɵɵelementStart` instruction.\n * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a\n * smaller index `TNode` is guaranteed to be created before a larger one)\n *\n * We use the above three invariants to determine `TNode.insertBeforeIndex`.\n *\n * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,\n * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that\n * the next node is not yet created and therefore we can't insert in front of it.\n *\n * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't\n * know if there will be further `TNode`s inserted after.)\n * Rule2: If `previousTNode` is created after the `tNode` being inserted, then\n * `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check\n * previous to see if we can update its `insertBeforeTNode`)\n *\n * See `TNode.insertBeforeIndex` for more context.\n *\n * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in\n * reverse order. (If `TNode` would have `previous` this would not be necessary.)\n * @param newTNode A TNode to add to the `previousTNodes` list.\n */\nfunction addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {\n // Start with Rule1\n ngDevMode &&\n assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');\n previousTNodes.push(newTNode);\n if (previousTNodes.length > 1) {\n for (let i = previousTNodes.length - 2; i >= 0; i--) {\n const existingTNode = previousTNodes[i];\n // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.\n // It is safe to ignore them.\n if (!isI18nText(existingTNode)) {\n if (isNewTNodeCreatedBefore(existingTNode, newTNode) &&\n getInsertBeforeIndex(existingTNode) === null) {\n // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)\n // then add the `insertBeforeIndex`.\n setInsertBeforeIndex(existingTNode, newTNode.index);\n }\n }\n }\n }\n}\nfunction isI18nText(tNode) {\n return !(tNode.type & 64 /* TNodeType.Placeholder */);\n}\nfunction isNewTNodeCreatedBefore(existingTNode, newTNode) {\n return isI18nText(newTNode) || existingTNode.index > newTNode.index;\n}\nfunction getInsertBeforeIndex(tNode) {\n const index = tNode.insertBeforeIndex;\n return Array.isArray(index) ? index[0] : index;\n}\nfunction setInsertBeforeIndex(tNode, value) {\n const index = tNode.insertBeforeIndex;\n if (Array.isArray(index)) {\n // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`\n index[0] = value;\n }\n else {\n setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n tNode.insertBeforeIndex = value;\n }\n}\n\n/**\n * Retrieve `TIcu` at a given `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be read from.\n */\nfunction getTIcu(tView, index) {\n const value = tView.data[index];\n if (value === null || typeof value === 'string')\n return null;\n if (ngDevMode &&\n !(value.hasOwnProperty('tView') || value.hasOwnProperty('currentCaseLViewIndex'))) {\n throwError('We expect to get \\'null\\'|\\'TIcu\\'|\\'TIcuContainer\\', but got: ' + value);\n }\n // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be\n // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it\n // will be just two cases which fits into the browser inline cache (inline cache can take up to\n // 4)\n const tIcu = value.hasOwnProperty('currentCaseLViewIndex') ? value :\n value.value;\n ngDevMode && assertTIcu(tIcu);\n return tIcu;\n}\n/**\n * Store `TIcu` at a give `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be stored at in `Tview.data`\n * @param tIcu The TIcu to store.\n */\nfunction setTIcu(tView, index, tIcu) {\n const tNode = tView.data[index];\n ngDevMode &&\n assertEqual(tNode === null || tNode.hasOwnProperty('tView'), true, 'We expect to get \\'null\\'|\\'TIcuContainer\\'');\n if (tNode === null) {\n tView.data[index] = tIcu;\n }\n else {\n ngDevMode && assertTNodeType(tNode, 32 /* TNodeType.Icu */);\n tNode.value = tIcu;\n }\n}\n/**\n * Set `TNode.insertBeforeIndex` taking the `Array` into account.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction setTNodeInsertBeforeIndex(tNode, index) {\n ngDevMode && assertTNode(tNode);\n let insertBeforeIndex = tNode.insertBeforeIndex;\n if (insertBeforeIndex === null) {\n setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n insertBeforeIndex = tNode.insertBeforeIndex =\n [null /* may be updated to number later */, index];\n }\n else {\n assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');\n insertBeforeIndex.push(index);\n }\n}\n/**\n * Create `TNode.type=TNodeType.Placeholder` node.\n *\n * See `TNodeType.Placeholder` for more information.\n */\nfunction createTNodePlaceholder(tView, previousTNodes, index) {\n const tNode = createTNodeAtIndex(tView, index, 64 /* TNodeType.Placeholder */, null, null);\n addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);\n return tNode;\n}\n/**\n * Returns current ICU case.\n *\n * ICU cases are stored as index into the `TIcu.cases`.\n * At times it is necessary to communicate that the ICU case just switched and that next ICU update\n * should update all bindings regardless of the mask. In such a case the we store negative numbers\n * for cases which have just been switched. This function removes the negative flag.\n */\nfunction getCurrentICUCaseIndex(tIcu, lView) {\n const currentCase = lView[tIcu.currentCaseLViewIndex];\n return currentCase === null ? currentCase : (currentCase < 0 ? ~currentCase : currentCase);\n}\nfunction getParentFromIcuCreateOpCode(mergedCode) {\n return mergedCode >>> 17 /* IcuCreateOpCode.SHIFT_PARENT */;\n}\nfunction getRefFromIcuCreateOpCode(mergedCode) {\n return (mergedCode & 131070 /* IcuCreateOpCode.MASK_REF */) >>> 1 /* IcuCreateOpCode.SHIFT_REF */;\n}\nfunction getInstructionFromIcuCreateOpCode(mergedCode) {\n return mergedCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */;\n}\nfunction icuCreateOpCode(opCode, parentIdx, refIdx) {\n ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');\n ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');\n return opCode | parentIdx << 17 /* IcuCreateOpCode.SHIFT_PARENT */ | refIdx << 1 /* IcuCreateOpCode.SHIFT_REF */;\n}\n\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * This is used to efficiently update expressions in i18n only when the corresponding input has\n * changed.\n *\n * 1) Each bit represents which of the `ɵɵi18nExp` has changed.\n * 2) There are 32 bits allowed in JS.\n * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more\n * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means\n * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare\n * so in practice it should not be an issue.)\n */\nlet changeMask = 0b0;\n/**\n * Keeps track of which bit needs to be updated in `changeMask`\n *\n * This value gets incremented on every call to `ɵɵi18nExp`\n */\nlet changeMaskCounter = 0;\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.\n *\n * @param hasChange did `ɵɵi18nExp` detect a change.\n */\nfunction setMaskBit(hasChange) {\n if (hasChange) {\n changeMask = changeMask | (1 << Math.min(changeMaskCounter, 31));\n }\n changeMaskCounter++;\n}\nfunction applyI18n(tView, lView, index) {\n if (changeMaskCounter > 0) {\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const tI18n = tView.data[index];\n // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`\n const updateOpCodes = Array.isArray(tI18n) ? tI18n : tI18n.update;\n const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;\n applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);\n }\n // Reset changeMask & maskBit to default for the next update cycle\n changeMask = 0b0;\n changeMaskCounter = 0;\n}\nfunction createNodeWithoutHydration(lView, textOrName, nodeType) {\n const renderer = lView[RENDERER];\n switch (nodeType) {\n case Node.COMMENT_NODE:\n return createCommentNode(renderer, textOrName);\n case Node.TEXT_NODE:\n return createTextNode(renderer, textOrName);\n case Node.ELEMENT_NODE:\n return createElementNode(renderer, textOrName, null);\n }\n}\nlet _locateOrCreateNode = (lView, index, textOrName, nodeType) => {\n lastNodeWasCreated(true);\n return createNodeWithoutHydration(lView, textOrName, nodeType);\n};\nfunction locateOrCreateNodeImpl(lView, index, textOrName, nodeType) {\n // TODO: Add support for hydration\n lastNodeWasCreated(true);\n return createNodeWithoutHydration(lView, textOrName, nodeType);\n}\nfunction enableLocateOrCreateI18nNodeImpl() {\n _locateOrCreateNode = locateOrCreateNodeImpl;\n}\n/**\n * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.\n *\n * Creates text (and comment) nodes which are internationalized.\n *\n * @param lView Current lView\n * @param createOpCodes Set of op-codes to apply\n * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is\n * a root node.\n * @param insertInFrontOf DOM node that should be used as an anchor.\n */\nfunction applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {\n const renderer = lView[RENDERER];\n for (let i = 0; i < createOpCodes.length; i++) {\n const opCode = createOpCodes[i++];\n const text = createOpCodes[i];\n const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n const index = opCode >>> I18nCreateOpCode.SHIFT;\n let rNode = lView[index];\n let lastNodeWasCreated = false;\n if (rNode === null) {\n // We only create new DOM nodes if they don't already exist: If ICU switches case back to a\n // case which was already instantiated, no need to create new DOM nodes.\n rNode = lView[index] =\n _locateOrCreateNode(lView, index, text, isComment ? Node.COMMENT_NODE : Node.TEXT_NODE);\n lastNodeWasCreated = wasLastNodeCreated();\n }\n if (appendNow && parentRNode !== null && lastNodeWasCreated) {\n nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);\n }\n }\n}\n/**\n * Apply `I18nMutateOpCodes` OpCodes.\n *\n * @param tView Current `TView`\n * @param mutableOpCodes Mutable OpCodes to process\n * @param lView Current `LView`\n * @param anchorRNode place where the i18n node should be inserted.\n */\nfunction applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {\n ngDevMode && assertDomNode(anchorRNode);\n const renderer = lView[RENDERER];\n // `rootIdx` represents the node into which all inserts happen.\n let rootIdx = null;\n // `rootRNode` represents the real node into which we insert. This can be different from\n // `lView[rootIdx]` if we have projection.\n // - null we don't have a parent (as can be the case in when we are inserting into a root of\n // LView which has no parent.)\n // - `RElement` The element representing the root after taking projection into account.\n let rootRNode;\n for (let i = 0; i < mutableOpCodes.length; i++) {\n const opCode = mutableOpCodes[i];\n if (typeof opCode == 'string') {\n const textNodeIndex = mutableOpCodes[++i];\n if (lView[textNodeIndex] === null) {\n ngDevMode && ngDevMode.rendererCreateTextNode++;\n ngDevMode && assertIndexInRange(lView, textNodeIndex);\n lView[textNodeIndex] = _locateOrCreateNode(lView, textNodeIndex, opCode, Node.TEXT_NODE);\n }\n }\n else if (typeof opCode == 'number') {\n switch (opCode & 1 /* IcuCreateOpCode.MASK_INSTRUCTION */) {\n case 0 /* IcuCreateOpCode.AppendChild */:\n const parentIdx = getParentFromIcuCreateOpCode(opCode);\n if (rootIdx === null) {\n // The first operation should save the `rootIdx` because the first operation\n // must insert into the root. (Only subsequent operations can insert into a dynamic\n // parent)\n rootIdx = parentIdx;\n rootRNode = nativeParentNode(renderer, anchorRNode);\n }\n let insertInFrontOf;\n let parentRNode;\n if (parentIdx === rootIdx) {\n insertInFrontOf = anchorRNode;\n parentRNode = rootRNode;\n }\n else {\n insertInFrontOf = null;\n parentRNode = unwrapRNode(lView[parentIdx]);\n }\n // FIXME(misko): Refactor with `processI18nText`\n if (parentRNode !== null) {\n // This can happen if the `LView` we are adding to is not attached to a parent `LView`.\n // In such a case there is no \"root\" we can attach to. This is fine, as we still need to\n // create the elements. When the `LView` gets later added to a parent these \"root\" nodes\n // get picked up and added.\n ngDevMode && assertDomNode(parentRNode);\n const refIdx = getRefFromIcuCreateOpCode(opCode);\n ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref');\n // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n\n // which can't have components.\n const child = lView[refIdx];\n ngDevMode && assertDomNode(child);\n nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);\n const tIcu = getTIcu(tView, refIdx);\n if (tIcu !== null && typeof tIcu === 'object') {\n // If we just added a comment node which has ICU then that ICU may have already been\n // rendered and therefore we need to re-add it here.\n ngDevMode && assertTIcu(tIcu);\n const caseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (caseIndex !== null) {\n applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);\n }\n }\n }\n break;\n case 1 /* IcuCreateOpCode.Attr */:\n const elementNodeIndex = opCode >>> 1 /* IcuCreateOpCode.SHIFT_REF */;\n const attrName = mutableOpCodes[++i];\n const attrValue = mutableOpCodes[++i];\n // This code is used for ICU expressions only, since we don't support\n // directives/components in ICUs, we don't need to worry about inputs here\n setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);\n break;\n default:\n if (ngDevMode) {\n throw new RuntimeError(700 /* RuntimeErrorCode.INVALID_I18N_STRUCTURE */, `Unable to determine the type of mutate operation for \"${opCode}\"`);\n }\n }\n }\n else {\n switch (opCode) {\n case ICU_MARKER:\n const commentValue = mutableOpCodes[++i];\n const commentNodeIndex = mutableOpCodes[++i];\n if (lView[commentNodeIndex] === null) {\n ngDevMode &&\n assertEqual(typeof commentValue, 'string', `Expected \"${commentValue}\" to be a comment node value`);\n ngDevMode && ngDevMode.rendererCreateComment++;\n ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);\n const commentRNode = lView[commentNodeIndex] =\n _locateOrCreateNode(lView, commentNodeIndex, commentValue, Node.COMMENT_NODE);\n // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n attachPatchData(commentRNode, lView);\n }\n break;\n case ELEMENT_MARKER:\n const tagName = mutableOpCodes[++i];\n const elementNodeIndex = mutableOpCodes[++i];\n if (lView[elementNodeIndex] === null) {\n ngDevMode &&\n assertEqual(typeof tagName, 'string', `Expected \"${tagName}\" to be an element node tag name`);\n ngDevMode && ngDevMode.rendererCreateElement++;\n ngDevMode && assertIndexInExpandoRange(lView, elementNodeIndex);\n const elementRNode = lView[elementNodeIndex] =\n _locateOrCreateNode(lView, elementNodeIndex, tagName, Node.ELEMENT_NODE);\n // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n attachPatchData(elementRNode, lView);\n }\n break;\n default:\n ngDevMode &&\n throwError(`Unable to determine the type of mutate operation for \"${opCode}\"`);\n }\n }\n }\n}\n/**\n * Apply `I18nUpdateOpCodes` OpCodes\n *\n * @param tView Current `TView`\n * @param lView Current `LView`\n * @param updateOpCodes OpCodes to process\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from\n * `bindingsStartIndex`)\n */\nfunction applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {\n for (let i = 0; i < updateOpCodes.length; i++) {\n // bit code to check if we should apply the next update\n const checkBit = updateOpCodes[i];\n // Number of opCodes to skip until next set of update codes\n const skipCodes = updateOpCodes[++i];\n if (checkBit & changeMask) {\n // The value has been updated since last checked\n let value = '';\n for (let j = i + 1; j <= (i + skipCodes); j++) {\n const opCode = updateOpCodes[j];\n if (typeof opCode == 'string') {\n value += opCode;\n }\n else if (typeof opCode == 'number') {\n if (opCode < 0) {\n // Negative opCode represent `i18nExp` values offset.\n value += renderStringify(lView[bindingsStartIndex - opCode]);\n }\n else {\n const nodeIndex = (opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */);\n switch (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) {\n case 1 /* I18nUpdateOpCode.Attr */:\n const propName = updateOpCodes[++j];\n const sanitizeFn = updateOpCodes[++j];\n const tNodeOrTagName = tView.data[nodeIndex];\n ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');\n if (typeof tNodeOrTagName === 'string') {\n // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does\n // not have TNode), in which case we know that there are no directives, and hence\n // we use attribute setting.\n setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);\n }\n else {\n elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);\n }\n break;\n case 0 /* I18nUpdateOpCode.Text */:\n const rText = lView[nodeIndex];\n rText !== null && updateTextNode(lView[RENDERER], rText, value);\n break;\n case 2 /* I18nUpdateOpCode.IcuSwitch */:\n applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);\n break;\n case 3 /* I18nUpdateOpCode.IcuUpdate */:\n applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);\n break;\n }\n }\n }\n }\n }\n else {\n const opCode = updateOpCodes[i + 1];\n if (opCode > 0 && (opCode & 3 /* I18nUpdateOpCode.MASK_OPCODE */) === 3 /* I18nUpdateOpCode.IcuUpdate */) {\n // Special case for the `icuUpdateCase`. It could be that the mask did not match, but\n // we still need to execute `icuUpdateCase` because the case has changed recently due to\n // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in\n // pairs.)\n const nodeIndex = (opCode >>> 2 /* I18nUpdateOpCode.SHIFT_REF */);\n const tIcu = getTIcu(tView, nodeIndex);\n const currentIndex = lView[tIcu.currentCaseLViewIndex];\n if (currentIndex < 0) {\n applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);\n }\n }\n }\n i += skipCodes;\n }\n}\n/**\n * Apply OpCodes associated with updating an existing ICU.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param lView Current `LView`\n */\nfunction applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {\n ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);\n let activeCaseIndex = lView[tIcu.currentCaseLViewIndex];\n if (activeCaseIndex !== null) {\n let mask = changeMask;\n if (activeCaseIndex < 0) {\n // Clear the flag.\n // Negative number means that the ICU was freshly created and we need to force the update.\n activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex;\n // -1 is same as all bits on, which simulates creation since it marks all bits dirty\n mask = -1;\n }\n applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);\n }\n}\n/**\n * Apply OpCodes associated with switching a case on ICU.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n * @param value Value of the case to update to.\n */\nfunction applyIcuSwitchCase(tView, tIcu, lView, value) {\n // Rebuild a new case for this ICU\n const caseIndex = getCaseIndex(tIcu, value);\n let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (activeCaseIndex !== caseIndex) {\n applyIcuSwitchCaseRemove(tView, tIcu, lView);\n lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;\n if (caseIndex !== null) {\n // Add the nodes for the new case\n const anchorRNode = lView[tIcu.anchorIdx];\n if (anchorRNode) {\n ngDevMode && assertDomNode(anchorRNode);\n applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);\n }\n }\n }\n}\n/**\n * Apply OpCodes associated with tearing ICU case.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n */\nfunction applyIcuSwitchCaseRemove(tView, tIcu, lView) {\n let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (activeCaseIndex !== null) {\n const removeCodes = tIcu.remove[activeCaseIndex];\n for (let i = 0; i < removeCodes.length; i++) {\n const nodeOrIcuIndex = removeCodes[i];\n if (nodeOrIcuIndex > 0) {\n // Positive numbers are `RNode`s.\n const rNode = getNativeByIndex(nodeOrIcuIndex, lView);\n rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);\n }\n else {\n // Negative numbers are ICUs\n applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);\n }\n }\n }\n}\n/**\n * Returns the index of the current case of an ICU expression depending on the main binding value\n *\n * @param icuExpression\n * @param bindingValue The value of the main binding used by this ICU expression\n */\nfunction getCaseIndex(icuExpression, bindingValue) {\n let index = icuExpression.cases.indexOf(bindingValue);\n if (index === -1) {\n switch (icuExpression.type) {\n case 1 /* IcuType.plural */: {\n const resolvedCase = getPluralCase(bindingValue, getLocaleId());\n index = icuExpression.cases.indexOf(resolvedCase);\n if (index === -1 && resolvedCase !== 'other') {\n index = icuExpression.cases.indexOf('other');\n }\n break;\n }\n case 0 /* IcuType.select */: {\n index = icuExpression.cases.indexOf('other');\n break;\n }\n }\n }\n return index === -1 ? null : index;\n}\n\nfunction loadIcuContainerVisitor() {\n const _stack = [];\n let _index = -1;\n let _lView;\n let _removes;\n /**\n * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`\n * to determine which root belong to the ICU.\n *\n * Example of usage.\n * ```\n * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);\n * let rNode: RNode|null;\n * while(rNode = nextRNode()) {\n * console.log(rNode);\n * }\n * ```\n *\n * @param tIcuContainerNode Current `TIcuContainerNode`\n * @param lView `LView` where the `RNode`s should be looked up.\n */\n function icuContainerIteratorStart(tIcuContainerNode, lView) {\n _lView = lView;\n while (_stack.length)\n _stack.pop();\n ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);\n enterIcu(tIcuContainerNode.value, lView);\n return icuContainerIteratorNext;\n }\n function enterIcu(tIcu, lView) {\n _index = 0;\n const currentCase = getCurrentICUCaseIndex(tIcu, lView);\n if (currentCase !== null) {\n ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);\n _removes = tIcu.remove[currentCase];\n }\n else {\n _removes = EMPTY_ARRAY;\n }\n }\n function icuContainerIteratorNext() {\n if (_index < _removes.length) {\n const removeOpCode = _removes[_index++];\n ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');\n if (removeOpCode > 0) {\n const rNode = _lView[removeOpCode];\n ngDevMode && assertDomNode(rNode);\n return rNode;\n }\n else {\n _stack.push(_index, _removes);\n // ICUs are represented by negative indices\n const tIcuIndex = ~removeOpCode;\n const tIcu = _lView[TVIEW].data[tIcuIndex];\n ngDevMode && assertTIcu(tIcu);\n enterIcu(tIcu, _lView);\n return icuContainerIteratorNext();\n }\n }\n else {\n if (_stack.length === 0) {\n return null;\n }\n else {\n _removes = _stack.pop();\n _index = _stack.pop();\n return icuContainerIteratorNext();\n }\n }\n }\n return icuContainerIteratorStart;\n}\n\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction i18nCreateOpCodesToString(opcodes) {\n const createOpCodes = opcodes || (Array.isArray(this) ? this : []);\n let lines = [];\n for (let i = 0; i < createOpCodes.length; i++) {\n const opCode = createOpCodes[i++];\n const text = createOpCodes[i];\n const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n const index = opCode >>> I18nCreateOpCode.SHIFT;\n lines.push(`lView[${index}] = document.${isComment ? 'createComment' : 'createText'}(${JSON.stringify(text)});`);\n if (appendNow) {\n lines.push(`parent.appendChild(lView[${index}]);`);\n }\n }\n return lines;\n}\n/**\n * Converts `I18nUpdateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nUpdateOpCodes` if attached as a method.\n * @param opcodes `I18nUpdateOpCodes` if invoked as a function.\n */\nfunction i18nUpdateOpCodesToString(opcodes) {\n const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n let lines = [];\n function consumeOpCode(value) {\n const ref = value >>> 2 /* I18nUpdateOpCode.SHIFT_REF */;\n const opCode = value & 3 /* I18nUpdateOpCode.MASK_OPCODE */;\n switch (opCode) {\n case 0 /* I18nUpdateOpCode.Text */:\n return `(lView[${ref}] as Text).textContent = $$$`;\n case 1 /* I18nUpdateOpCode.Attr */:\n const attrName = parser.consumeString();\n const sanitizationFn = parser.consumeFunction();\n const value = sanitizationFn ? `(${sanitizationFn})($$$)` : '$$$';\n return `(lView[${ref}] as Element).setAttribute('${attrName}', ${value})`;\n case 2 /* I18nUpdateOpCode.IcuSwitch */:\n return `icuSwitchCase(${ref}, $$$)`;\n case 3 /* I18nUpdateOpCode.IcuUpdate */:\n return `icuUpdateCase(${ref})`;\n }\n throw new Error('unexpected OpCode');\n }\n while (parser.hasMore()) {\n let mask = parser.consumeNumber();\n let size = parser.consumeNumber();\n const end = parser.i + size;\n const statements = [];\n let statement = '';\n while (parser.i < end) {\n let value = parser.consumeNumberOrString();\n if (typeof value === 'string') {\n statement += value;\n }\n else if (value < 0) {\n // Negative numbers are ref indexes\n // Here `i` refers to current binding index. It is to signify that the value is relative,\n // rather than absolute.\n statement += '${lView[i' + value + ']}';\n }\n else {\n // Positive numbers are operations.\n const opCodeText = consumeOpCode(value);\n statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');\n statement = '';\n }\n }\n lines.push(`if (mask & 0b${mask.toString(2)}) { ${statements.join(' ')} }`);\n }\n return lines;\n}\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction icuCreateOpCodesToString(opcodes) {\n const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n let lines = [];\n function consumeOpCode(opCode) {\n const parent = getParentFromIcuCreateOpCode(opCode);\n const ref = getRefFromIcuCreateOpCode(opCode);\n switch (getInstructionFromIcuCreateOpCode(opCode)) {\n case 0 /* IcuCreateOpCode.AppendChild */:\n return `(lView[${parent}] as Element).appendChild(lView[${lastRef}])`;\n case 1 /* IcuCreateOpCode.Attr */:\n return `(lView[${ref}] as Element).setAttribute(\"${parser.consumeString()}\", \"${parser.consumeString()}\")`;\n }\n throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));\n }\n let lastRef = -1;\n while (parser.hasMore()) {\n let value = parser.consumeNumberStringOrMarker();\n if (value === ICU_MARKER) {\n const text = parser.consumeString();\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createComment(\"${text}\")`);\n }\n else if (value === ELEMENT_MARKER) {\n const text = parser.consumeString();\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createElement(\"${text}\")`);\n }\n else if (typeof value === 'string') {\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createTextNode(\"${value}\")`);\n }\n else if (typeof value === 'number') {\n const line = consumeOpCode(value);\n line && lines.push(line);\n }\n else {\n throw new Error('Unexpected value');\n }\n }\n return lines;\n}\n/**\n * Converts `I18nRemoveOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nRemoveOpCodes` if attached as a method.\n * @param opcodes `I18nRemoveOpCodes` if invoked as a function.\n */\nfunction i18nRemoveOpCodesToString(opcodes) {\n const removeCodes = opcodes || (Array.isArray(this) ? this : []);\n let lines = [];\n for (let i = 0; i < removeCodes.length; i++) {\n const nodeOrIcuIndex = removeCodes[i];\n if (nodeOrIcuIndex > 0) {\n // Positive numbers are `RNode`s.\n lines.push(`remove(lView[${nodeOrIcuIndex}])`);\n }\n else {\n // Negative numbers are ICUs\n lines.push(`removeNestedICU(${~nodeOrIcuIndex})`);\n }\n }\n return lines;\n}\nclass OpCodeParser {\n constructor(codes) {\n this.i = 0;\n this.codes = codes;\n }\n hasMore() {\n return this.i < this.codes.length;\n }\n consumeNumber() {\n let value = this.codes[this.i++];\n assertNumber(value, 'expecting number in OpCode');\n return value;\n }\n consumeString() {\n let value = this.codes[this.i++];\n assertString(value, 'expecting string in OpCode');\n return value;\n }\n consumeFunction() {\n let value = this.codes[this.i++];\n if (value === null || typeof value === 'function') {\n return value;\n }\n throw new Error('expecting function in OpCode');\n }\n consumeNumberOrString() {\n let value = this.codes[this.i++];\n if (typeof value === 'string') {\n return value;\n }\n assertNumber(value, 'expecting number or string in OpCode');\n return value;\n }\n consumeNumberStringOrMarker() {\n let value = this.codes[this.i++];\n if (typeof value === 'string' || typeof value === 'number' || value == ICU_MARKER ||\n value == ELEMENT_MARKER) {\n return value;\n }\n assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');\n return value;\n }\n}\n\nconst BINDING_REGEXP = /�(\\d+):?\\d*�/gi;\nconst ICU_REGEXP = /({\\s*�\\d+:?\\d*�\\s*,\\s*\\S{6}\\s*,[\\s\\S]*})/gi;\nconst NESTED_ICU = /�(\\d+)�/;\nconst ICU_BLOCK_REGEXP = /^\\s*(�\\d+:?\\d*�)\\s*,\\s*(select|plural)\\s*,/;\nconst MARKER = `�`;\nconst SUBTEMPLATE_REGEXP = /�\\/?\\*(\\d+:\\d+)�/gi;\nconst PH_REGEXP = /�(\\/?[#*]\\d+):?\\d*�/gi;\n/**\n * Angular uses the special entity &ngsp; as a placeholder for non-removable space.\n * It's replaced by the 0xE500 PUA (Private Use Areas) unicode character and later on replaced by a\n * space.\n * We are re-implementing the same idea since translations might contain this special character.\n */\nconst NGSP_UNICODE_REGEXP = /\\uE500/g;\nfunction replaceNgsp(value) {\n return value.replace(NGSP_UNICODE_REGEXP, ' ');\n}\n/**\n * Patch a `debug` property getter on top of the existing object.\n *\n * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`\n *\n * @param obj Object to patch\n * @param debugGetter Getter returning a value to patch\n */\nfunction attachDebugGetter(obj, debugGetter) {\n if (ngDevMode) {\n Object.defineProperty(obj, 'debug', { get: debugGetter, enumerable: false });\n }\n else {\n throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');\n }\n}\n/**\n * Create dynamic nodes from i18n translation block.\n *\n * - Text nodes are created synchronously\n * - TNodes are linked into tree lazily\n *\n * @param tView Current `TView`\n * @parentTNodeIndex index to the parent TNode of this i18n block\n * @param lView Current `LView`\n * @param index Index of `ɵɵi18nStart` instruction.\n * @param message Message to translate.\n * @param subTemplateIndex Index into the sub template of message translation. (ie in case of\n * `ngIf`) (-1 otherwise)\n */\nfunction i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {\n const rootTNode = getCurrentParentTNode();\n const createOpCodes = [];\n const updateOpCodes = [];\n const existingTNodeStack = [[]];\n const astStack = [[]];\n if (ngDevMode) {\n attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n message = getTranslationForTemplate(message, subTemplateIndex);\n const msgParts = replaceNgsp(message).split(PH_REGEXP);\n for (let i = 0; i < msgParts.length; i++) {\n let value = msgParts[i];\n if ((i & 1) === 0) {\n // Even indexes are text (including bindings & ICU expressions)\n const parts = i18nParseTextIntoPartsAndICU(value);\n for (let j = 0; j < parts.length; j++) {\n let part = parts[j];\n if ((j & 1) === 0) {\n // `j` is odd therefore `part` is string\n const text = part;\n ngDevMode && assertString(text, 'Parsed ICU part should be string');\n if (text !== '') {\n i18nStartFirstCreatePassProcessTextNode(astStack[0], tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);\n }\n }\n else {\n // `j` is Even therefor `part` is an `ICUExpression`\n const icuExpression = part;\n // Verify that ICU expression has the right shape. Translations might contain invalid\n // constructions (while original messages were correct), so ICU parsing at runtime may\n // not succeed (thus `icuExpression` remains a string).\n // Note: we intentionally retain the error here by not using `ngDevMode`, because\n // the value can change based on the locale and users aren't guaranteed to hit\n // an invalid string while they're developing.\n if (typeof icuExpression !== 'object') {\n throw new Error(`Unable to parse ICU expression in \"${message}\" message.`);\n }\n const icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? `ICU ${index}:${icuExpression.mainBinding}` : '', true);\n const icuNodeIndex = icuContainerTNode.index;\n ngDevMode &&\n assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');\n icuStart(astStack[0], tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);\n }\n }\n }\n else {\n // Odd indexes are placeholders (elements and sub-templates)\n // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')\n const isClosing = value.charCodeAt(0) === 47 /* CharCode.SLASH */;\n const type = value.charCodeAt(isClosing ? 1 : 0);\n ngDevMode && assertOneOf(type, 42 /* CharCode.STAR */, 35 /* CharCode.HASH */);\n const index = HEADER_OFFSET + Number.parseInt(value.substring((isClosing ? 2 : 1)));\n if (isClosing) {\n existingTNodeStack.shift();\n astStack.shift();\n setCurrentTNode(getCurrentParentTNode(), false);\n }\n else {\n const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);\n existingTNodeStack.unshift([]);\n setCurrentTNode(tNode, true);\n const placeholderNode = {\n kind: 2 /* I18nNodeKind.PLACEHOLDER */,\n index,\n children: [],\n type: type === 35 /* CharCode.HASH */ ? 0 /* I18nPlaceholderType.ELEMENT */ :\n 1 /* I18nPlaceholderType.SUBTEMPLATE */,\n };\n astStack[0].push(placeholderNode);\n astStack.unshift(placeholderNode.children);\n }\n }\n }\n tView.data[index] = {\n create: createOpCodes,\n update: updateOpCodes,\n ast: astStack[0],\n };\n}\n/**\n * Allocate space in i18n Range add create OpCode instruction to create a text or comment node.\n *\n * @param tView Current `TView` needed to allocate space in i18n range.\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be\n * added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param lView Current `LView` needed to allocate space in i18n range.\n * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.\n * @param text Text to be added when the `Text` or `Comment` node will be created.\n * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.\n */\nfunction createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {\n const i18nNodeIdx = allocExpando(tView, lView, 1, null);\n let opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;\n let parentTNode = getCurrentParentTNode();\n if (rootTNode === parentTNode) {\n // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.\n // (there is no parent), but in some circumstances (because we are inconsistent about how we set\n // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.\n parentTNode = null;\n }\n if (parentTNode === null) {\n // If we don't have a parent that means that we can eagerly add nodes.\n // If we have a parent than these nodes can't be added now (as the parent has not been created\n // yet) and instead the `parentTNode` is responsible for adding it. See\n // `TNode.insertBeforeIndex`\n opCode |= I18nCreateOpCode.APPEND_EAGERLY;\n }\n if (isICU) {\n opCode |= I18nCreateOpCode.COMMENT;\n ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);\n }\n createOpCodes.push(opCode, text === null ? '' : text);\n // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the\n // bindings are.\n const tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32 /* TNodeType.Icu */ : 1 /* TNodeType.Text */, text === null ? (ngDevMode ? '{{?}}' : '') : text, null);\n addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);\n const tNodeIdx = tNode.index;\n setCurrentTNode(tNode, false /* Text nodes are self closing */);\n if (parentTNode !== null && rootTNode !== parentTNode) {\n // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)\n // We have to make sure to add ourselves to the parent.\n setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);\n }\n return tNode;\n}\n/**\n * Processes text node in i18n block.\n *\n * Text nodes can have:\n * - Create instruction in `createOpCodes` for creating the text node.\n * - Allocate spec for text node in i18n range of `LView`\n * - If contains binding:\n * - bindings => allocate space in i18n range of `LView` to store the binding value.\n * - populate `updateOpCodes` with update instructions.\n *\n * @param tView Current `TView`\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will\n * be added as part of the `i18nStart` instruction or as part of the\n * `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param createOpCodes Location where the creation OpCodes will be stored.\n * @param lView Current `LView`\n * @param text The translated text (which may contain binding)\n */\nfunction i18nStartFirstCreatePassProcessTextNode(ast, tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {\n const hasBinding = text.match(BINDING_REGEXP);\n const tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);\n const index = tNode.index;\n if (hasBinding) {\n generateBindingUpdateOpCodes(updateOpCodes, text, index, null, 0, null);\n }\n ast.push({ kind: 0 /* I18nNodeKind.TEXT */, index });\n}\n/**\n * See `i18nAttributes` above.\n */\nfunction i18nAttributesFirstPass(tView, index, values) {\n const previousElement = getCurrentTNode();\n const previousElementIndex = previousElement.index;\n const updateOpCodes = [];\n if (ngDevMode) {\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n if (tView.firstCreatePass && tView.data[index] === null) {\n for (let i = 0; i < values.length; i += 2) {\n const attrName = values[i];\n const message = values[i + 1];\n if (message !== '') {\n // Check if attribute value contains an ICU and throw an error if that's the case.\n // ICUs in element attributes are not supported.\n // Note: we intentionally retain the error here by not using `ngDevMode`, because\n // the `value` can change based on the locale and users aren't guaranteed to hit\n // an invalid string while they're developing.\n if (ICU_REGEXP.test(message)) {\n throw new Error(`ICU expressions are not supported in attributes. Message: \"${message}\".`);\n }\n // i18n attributes that hit this code path are guaranteed to have bindings, because\n // the compiler treats static i18n attributes as regular attribute bindings.\n // Since this may not be the first i18n attribute on this element we need to pass in how\n // many previous bindings there have already been.\n generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName, countBindings(updateOpCodes), null);\n }\n }\n tView.data[index] = updateOpCodes;\n }\n}\n/**\n * Generate the OpCodes to update the bindings of a string.\n *\n * @param updateOpCodes Place where the update opcodes will be stored.\n * @param str The string containing the bindings.\n * @param destinationNode Index of the destination node which will receive the binding.\n * @param attrName Name of the attribute, if the string belongs to an attribute.\n * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.\n * @param bindingStart The lView index of the next expression that can be bound via an opCode.\n * @returns The mask value for these bindings\n */\nfunction generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName, bindingStart, sanitizeFn) {\n ngDevMode &&\n assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');\n const maskIndex = updateOpCodes.length; // Location of mask\n const sizeIndex = maskIndex + 1; // location of size for skipping\n updateOpCodes.push(null, null); // Alloc space for mask and size\n const startIndex = maskIndex + 2; // location of first allocation.\n if (ngDevMode) {\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n const textParts = str.split(BINDING_REGEXP);\n let mask = 0;\n for (let j = 0; j < textParts.length; j++) {\n const textValue = textParts[j];\n if (j & 1) {\n // Odd indexes are bindings\n const bindingIndex = bindingStart + parseInt(textValue, 10);\n updateOpCodes.push(-1 - bindingIndex);\n mask = mask | toMaskBit(bindingIndex);\n }\n else if (textValue !== '') {\n // Even indexes are text\n updateOpCodes.push(textValue);\n }\n }\n updateOpCodes.push(destinationNode << 2 /* I18nUpdateOpCode.SHIFT_REF */ |\n (attrName ? 1 /* I18nUpdateOpCode.Attr */ : 0 /* I18nUpdateOpCode.Text */));\n if (attrName) {\n updateOpCodes.push(attrName, sanitizeFn);\n }\n updateOpCodes[maskIndex] = mask;\n updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;\n return mask;\n}\n/**\n * Count the number of bindings in the given `opCodes`.\n *\n * It could be possible to speed this up, by passing the number of bindings found back from\n * `generateBindingUpdateOpCodes()` to `i18nAttributesFirstPass()` but this would then require more\n * complexity in the code and/or transient objects to be created.\n *\n * Since this function is only called once when the template is instantiated, is trivial in the\n * first instance (since `opCodes` will be an empty array), and it is not common for elements to\n * contain multiple i18n bound attributes, it seems like this is a reasonable compromise.\n */\nfunction countBindings(opCodes) {\n let count = 0;\n for (let i = 0; i < opCodes.length; i++) {\n const opCode = opCodes[i];\n // Bindings are negative numbers.\n if (typeof opCode === 'number' && opCode < 0) {\n count++;\n }\n }\n return count;\n}\n/**\n * Convert binding index to mask bit.\n *\n * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make\n * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to\n * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner\n * case is that we will execute binding code more often than necessary. (penalty of performance)\n */\nfunction toMaskBit(bindingIndex) {\n return 1 << Math.min(bindingIndex, 31);\n}\nfunction isRootTemplateMessage(subTemplateIndex) {\n return subTemplateIndex === -1;\n}\n/**\n * Removes everything inside the sub-templates of a message.\n */\nfunction removeInnerTemplateTranslation(message) {\n let match;\n let res = '';\n let index = 0;\n let inTemplate = false;\n let tagMatched;\n while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {\n if (!inTemplate) {\n res += message.substring(index, match.index + match[0].length);\n tagMatched = match[1];\n inTemplate = true;\n }\n else {\n if (match[0] === `${MARKER}/*${tagMatched}${MARKER}`) {\n index = match.index;\n inTemplate = false;\n }\n }\n }\n ngDevMode &&\n assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation \"${message}\"`);\n res += message.slice(index);\n return res;\n}\n/**\n * Extracts a part of a message and removes the rest.\n *\n * This method is used for extracting a part of the message associated with a template. A\n * translated message can span multiple templates.\n *\n * Example:\n * ```\n * <div i18n>Translate <span *ngIf>me</span>!</div>\n * ```\n *\n * @param message The message to crop\n * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the\n * external template and removes all sub-templates.\n */\nfunction getTranslationForTemplate(message, subTemplateIndex) {\n if (isRootTemplateMessage(subTemplateIndex)) {\n // We want the root template message, ignore all sub-templates\n return removeInnerTemplateTranslation(message);\n }\n else {\n // We want a specific sub-template\n const start = message.indexOf(`:${subTemplateIndex}${MARKER}`) + 2 + subTemplateIndex.toString().length;\n const end = message.search(new RegExp(`${MARKER}\\\\/\\\\*\\\\d+:${subTemplateIndex}${MARKER}`));\n return removeInnerTemplateTranslation(message.substring(start, end));\n }\n}\n/**\n * Generate the OpCodes for ICU expressions.\n *\n * @param icuExpression\n * @param index Index where the anchor is stored and an optional `TIcuContainerNode`\n * - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.\n * - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)\n */\nfunction icuStart(ast, tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {\n ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');\n let bindingMask = 0;\n const tIcu = {\n type: icuExpression.type,\n currentCaseLViewIndex: allocExpando(tView, lView, 1, null),\n anchorIdx,\n cases: [],\n create: [],\n remove: [],\n update: []\n };\n addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);\n setTIcu(tView, anchorIdx, tIcu);\n const values = icuExpression.values;\n const cases = [];\n for (let i = 0; i < values.length; i++) {\n // Each value is an array of strings & other ICU expressions\n const valueArr = values[i];\n const nestedIcus = [];\n for (let j = 0; j < valueArr.length; j++) {\n const value = valueArr[j];\n if (typeof value !== 'string') {\n // It is an nested ICU expression\n const icuIndex = nestedIcus.push(value) - 1;\n // Replace nested ICU expression by a comment node\n valueArr[j] = `<!--�${icuIndex}�-->`;\n }\n }\n const caseAst = [];\n cases.push(caseAst);\n bindingMask = parseIcuCase(caseAst, tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) |\n bindingMask;\n }\n if (bindingMask) {\n addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);\n }\n ast.push({\n kind: 3 /* I18nNodeKind.ICU */,\n index: anchorIdx,\n cases,\n currentCaseLViewIndex: tIcu.currentCaseLViewIndex\n });\n}\n/**\n * Parses text containing an ICU expression and produces a JSON object for it.\n * Original code from closure library, modified for Angular.\n *\n * @param pattern Text containing an ICU expression that needs to be parsed.\n *\n */\nfunction parseICUBlock(pattern) {\n const cases = [];\n const values = [];\n let icuType = 1 /* IcuType.plural */;\n let mainBinding = 0;\n pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {\n if (type === 'select') {\n icuType = 0 /* IcuType.select */;\n }\n else {\n icuType = 1 /* IcuType.plural */;\n }\n mainBinding = parseInt(binding.slice(1), 10);\n return '';\n });\n const parts = i18nParseTextIntoPartsAndICU(pattern);\n // Looking for (key block)+ sequence. One of the keys has to be \"other\".\n for (let pos = 0; pos < parts.length;) {\n let key = parts[pos++].trim();\n if (icuType === 1 /* IcuType.plural */) {\n // Key can be \"=x\", we just want \"x\"\n key = key.replace(/\\s*(?:=)?(\\w+)\\s*/, '$1');\n }\n if (key.length) {\n cases.push(key);\n }\n const blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);\n if (cases.length > values.length) {\n values.push(blocks);\n }\n }\n // TODO(ocombe): support ICU expressions in attributes, see #21615\n return { type: icuType, mainBinding: mainBinding, cases, values };\n}\n/**\n * Breaks pattern into strings and top level {...} blocks.\n * Can be used to break a message into text and ICU expressions, or to break an ICU expression\n * into keys and cases. Original code from closure library, modified for Angular.\n *\n * @param pattern (sub)Pattern to be broken.\n * @returns An `Array<string|IcuExpression>` where:\n * - odd positions: `string` => text between ICU expressions\n * - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.\n */\nfunction i18nParseTextIntoPartsAndICU(pattern) {\n if (!pattern) {\n return [];\n }\n let prevPos = 0;\n const braceStack = [];\n const results = [];\n const braces = /[{}]/g;\n // lastIndex doesn't get set to 0 so we have to.\n braces.lastIndex = 0;\n let match;\n while (match = braces.exec(pattern)) {\n const pos = match.index;\n if (match[0] == '}') {\n braceStack.pop();\n if (braceStack.length == 0) {\n // End of the block.\n const block = pattern.substring(prevPos, pos);\n if (ICU_BLOCK_REGEXP.test(block)) {\n results.push(parseICUBlock(block));\n }\n else {\n results.push(block);\n }\n prevPos = pos + 1;\n }\n }\n else {\n if (braceStack.length == 0) {\n const substring = pattern.substring(prevPos, pos);\n results.push(substring);\n prevPos = pos + 1;\n }\n braceStack.push('{');\n }\n }\n const substring = pattern.substring(prevPos);\n results.push(substring);\n return results;\n}\n/**\n * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.\n *\n */\nfunction parseIcuCase(ast, tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {\n const create = [];\n const remove = [];\n const update = [];\n if (ngDevMode) {\n attachDebugGetter(create, icuCreateOpCodesToString);\n attachDebugGetter(remove, i18nRemoveOpCodesToString);\n attachDebugGetter(update, i18nUpdateOpCodesToString);\n }\n tIcu.cases.push(caseName);\n tIcu.create.push(create);\n tIcu.remove.push(remove);\n tIcu.update.push(update);\n const inertBodyHelper = getInertBodyHelper(getDocument());\n const inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);\n ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');\n const inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;\n if (inertRootNode) {\n return walkIcuTree(ast, tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);\n }\n else {\n return 0;\n }\n}\nfunction walkIcuTree(ast, tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {\n let bindingMask = 0;\n let currentNode = parentNode.firstChild;\n while (currentNode) {\n const newIndex = allocExpando(tView, lView, 1, null);\n switch (currentNode.nodeType) {\n case Node.ELEMENT_NODE:\n const element = currentNode;\n const tagName = element.tagName.toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName)) {\n addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);\n tView.data[newIndex] = tagName;\n const elAttrs = element.attributes;\n for (let i = 0; i < elAttrs.length; i++) {\n const attr = elAttrs.item(i);\n const lowerAttrName = attr.name.toLowerCase();\n const hasBinding = !!attr.value.match(BINDING_REGEXP);\n // we assume the input string is safe, unless it's using a binding\n if (hasBinding) {\n if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {\n if (URI_ATTRS[lowerAttrName]) {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, _sanitizeUrl);\n }\n else {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, null);\n }\n }\n else {\n ngDevMode &&\n console.warn(`WARNING: ignoring unsafe attribute value ` +\n `${lowerAttrName} on element ${tagName} ` +\n `(see ${XSS_SECURITY_URL})`);\n }\n }\n else {\n addCreateAttribute(create, newIndex, attr);\n }\n }\n const elementNode = {\n kind: 1 /* I18nNodeKind.ELEMENT */,\n index: newIndex,\n children: [],\n };\n ast.push(elementNode);\n // Parse the children of this node (if any)\n bindingMask =\n walkIcuTree(elementNode.children, tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) |\n bindingMask;\n addRemoveNode(remove, newIndex, depth);\n }\n break;\n case Node.TEXT_NODE:\n const value = currentNode.textContent || '';\n const hasBinding = value.match(BINDING_REGEXP);\n addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);\n addRemoveNode(remove, newIndex, depth);\n if (hasBinding) {\n bindingMask =\n generateBindingUpdateOpCodes(update, value, newIndex, null, 0, null) | bindingMask;\n }\n ast.push({\n kind: 0 /* I18nNodeKind.TEXT */,\n index: newIndex,\n });\n break;\n case Node.COMMENT_NODE:\n // Check if the comment node is a placeholder for a nested ICU\n const isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');\n if (isNestedIcu) {\n const nestedIcuIndex = parseInt(isNestedIcu[1], 10);\n const icuExpression = nestedIcus[nestedIcuIndex];\n // Create the comment node that will anchor the ICU expression\n addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? `nested ICU ${nestedIcuIndex}` : '', parentIdx, newIndex);\n icuStart(ast, tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);\n addRemoveNestedIcu(remove, newIndex, depth);\n }\n break;\n }\n currentNode = currentNode.nextSibling;\n }\n return bindingMask;\n}\nfunction addRemoveNode(remove, index, depth) {\n if (depth === 0) {\n remove.push(index);\n }\n}\nfunction addRemoveNestedIcu(remove, index, depth) {\n if (depth === 0) {\n remove.push(~index); // remove ICU at `index`\n remove.push(index); // remove ICU comment at `index`\n }\n}\nfunction addUpdateIcuSwitch(update, icuExpression, index) {\n update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, index << 2 /* I18nUpdateOpCode.SHIFT_REF */ | 2 /* I18nUpdateOpCode.IcuSwitch */);\n}\nfunction addUpdateIcuUpdate(update, bindingMask, index) {\n update.push(bindingMask, 1, index << 2 /* I18nUpdateOpCode.SHIFT_REF */ | 3 /* I18nUpdateOpCode.IcuUpdate */);\n}\nfunction addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {\n if (marker !== null) {\n create.push(marker);\n }\n create.push(text, createAtIdx, icuCreateOpCode(0 /* IcuCreateOpCode.AppendChild */, appendToParentIdx, createAtIdx));\n}\nfunction addCreateAttribute(create, newIndex, attr) {\n create.push(newIndex << 1 /* IcuCreateOpCode.SHIFT_REF */ | 1 /* IcuCreateOpCode.Attr */, attr.name, attr.value);\n}\n\n// i18nPostprocess consts\nconst ROOT_TEMPLATE_ID = 0;\nconst PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]/;\nconst PP_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]|(�\\/?\\*\\d+:\\d+�)/g;\nconst PP_ICU_VARS_REGEXP = /({\\s*)(VAR_(PLURAL|SELECT)(_\\d+)?)(\\s*,)/g;\nconst PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;\nconst PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\\d+)?)�/g;\nconst PP_CLOSE_TEMPLATE_REGEXP = /\\/\\*/;\nconst PP_TEMPLATE_ID_REGEXP = /\\d+\\:(\\d+)/;\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n * in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction i18nPostprocess(message, replacements = {}) {\n /**\n * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]\n *\n * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically\n * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root\n * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index\n * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in\n * front of �#6�. The post processing step restores the right order by keeping track of the\n * template id stack and looks for placeholders that belong to the currently active template.\n */\n let result = message;\n if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {\n const matches = {};\n const templateIdsStack = [ROOT_TEMPLATE_ID];\n result = result.replace(PP_PLACEHOLDERS_REGEXP, (m, phs, tmpl) => {\n const content = phs || tmpl;\n const placeholders = matches[content] || [];\n if (!placeholders.length) {\n content.split('|').forEach((placeholder) => {\n const match = placeholder.match(PP_TEMPLATE_ID_REGEXP);\n const templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;\n const isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);\n placeholders.push([templateId, isCloseTemplateTag, placeholder]);\n });\n matches[content] = placeholders;\n }\n if (!placeholders.length) {\n throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);\n }\n const currentTemplateId = templateIdsStack[templateIdsStack.length - 1];\n let idx = 0;\n // find placeholder index that matches current template id\n for (let i = 0; i < placeholders.length; i++) {\n if (placeholders[i][0] === currentTemplateId) {\n idx = i;\n break;\n }\n }\n // update template id stack based on the current tag extracted\n const [templateId, isCloseTemplateTag, placeholder] = placeholders[idx];\n if (isCloseTemplateTag) {\n templateIdsStack.pop();\n }\n else if (currentTemplateId !== templateId) {\n templateIdsStack.push(templateId);\n }\n // remove processed tag from the list\n placeholders.splice(idx, 1);\n return placeholder;\n });\n }\n // return current result if no replacements specified\n if (!Object.keys(replacements).length) {\n return result;\n }\n /**\n * Step 2: replace all ICU vars (like \"VAR_PLURAL\")\n */\n result = result.replace(PP_ICU_VARS_REGEXP, (match, start, key, _type, _idx, end) => {\n return replacements.hasOwnProperty(key) ? `${start}${replacements[key]}${end}` : match;\n });\n /**\n * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n */\n result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, (match, key) => {\n return replacements.hasOwnProperty(key) ? replacements[key] : match;\n });\n /**\n * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case\n * multiple ICUs have the same placeholder name\n */\n result = result.replace(PP_ICUS_REGEXP, (match, key) => {\n if (replacements.hasOwnProperty(key)) {\n const list = replacements[key];\n if (!list.length) {\n throw new Error(`i18n postprocess: unmatched ICU - ${match} with key: ${key}`);\n }\n return list.shift();\n }\n return match;\n });\n return result;\n}\n\n/**\n * Marks a block of text as translatable.\n *\n * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n * interpolated into. The placeholder `index` points to the expression binding index. An optional\n * `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning\n * and end of DOM element that were embedded in the original translation block. The placeholder\n * `index` points to the element index in the template instructions set. An optional `block` that\n * matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n * split up and translated separately in each angular template function. The `index` points to the\n * `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nStart(index, messageIndex, subTemplateIndex = -1) {\n const tView = getTView();\n const lView = getLView();\n const adjustedIndex = HEADER_OFFSET + index;\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const message = getConstant(tView.consts, messageIndex);\n const parentTNode = getCurrentParentTNode();\n if (tView.firstCreatePass) {\n i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);\n }\n // Set a flag that this LView has i18n blocks.\n // The flag is later used to determine whether this component should\n // be hydrated (currently hydration is not supported for i18n blocks).\n if (tView.type === 2 /* TViewType.Embedded */) {\n // Annotate host component's LView (not embedded view's LView),\n // since hydration can be skipped on per-component basis only.\n const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n componentLView[FLAGS] |= 32 /* LViewFlags.HasI18n */;\n }\n else {\n lView[FLAGS] |= 32 /* LViewFlags.HasI18n */;\n }\n const tI18n = tView.data[adjustedIndex];\n const sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;\n const parentRNode = getClosestRElement(tView, sameViewParentTNode, lView);\n // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.\n // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.\n const insertInFrontOf = parentTNode && (parentTNode.type & 8 /* TNodeType.ElementContainer */) ?\n lView[parentTNode.index] :\n null;\n applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);\n setInI18nBlock(true);\n}\n/**\n * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes\n * into the render tree, moves the placeholder nodes and removes the deleted nodes.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nEnd() {\n setInI18nBlock(false);\n}\n/**\n *\n * Use this instruction to create a translation block that doesn't contain any placeholder.\n * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.\n *\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n * interpolated into. The placeholder `index` points to the expression binding index. An optional\n * `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning\n * and end of DOM element that were embedded in the original translation block. The placeholder\n * `index` points to the element index in the template instructions set. An optional `block` that\n * matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n * split up and translated separately in each angular template function. The `index` points to the\n * `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18n(index, messageIndex, subTemplateIndex) {\n ɵɵi18nStart(index, messageIndex, subTemplateIndex);\n ɵɵi18nEnd();\n}\n/**\n * Marks a list of attributes as translatable.\n *\n * @param index A unique index in the static block\n * @param values\n *\n * @codeGenApi\n */\nfunction ɵɵi18nAttributes(index, attrsIndex) {\n const tView = getTView();\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const attrs = getConstant(tView.consts, attrsIndex);\n i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);\n}\n/**\n * Stores the values of the bindings during each update cycle in order to determine if we need to\n * update the translated nodes.\n *\n * @param value The binding's value\n * @returns This function returns itself so that it may be chained\n * (e.g. `i18nExp(ctx.name)(ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵi18nExp(value) {\n const lView = getLView();\n setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));\n return ɵɵi18nExp;\n}\n/**\n * Updates a translation block or an i18n attribute when the bindings have changed.\n *\n * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}\n * (i18n attribute) on which it should update the content.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nApply(index) {\n applyI18n(getTView(), getLView(), index + HEADER_OFFSET);\n}\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n * in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction ɵɵi18nPostprocess(message, replacements = {}) {\n return i18nPostprocess(message, replacements);\n}\n\n/**\n * Adds an event listener to the current node.\n *\n * If an output exists on one of the node's directives, it also subscribes to the output\n * and saves the subscription for later cleanup.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener - this argument is a reminder\n * from the Renderer3 infrastructure and should be removed from the instruction arguments\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵlistener(eventName, listenerFn, useCapture, eventTargetResolver) {\n const lView = getLView();\n const tView = getTView();\n const tNode = getCurrentTNode();\n listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, eventTargetResolver);\n return ɵɵlistener;\n}\n/**\n * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered\n * in the component's renderer. Normally all host listeners are evaluated with the\n * parent component's renderer, but, in the case of animation @triggers, they need\n * to be evaluated with the sub component's renderer (because that's where the\n * animation triggers are defined).\n *\n * Do not use this instruction as a replacement for `listener`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostListener(eventName, listenerFn) {\n const tNode = getCurrentTNode();\n const lView = getLView();\n const tView = getTView();\n const currentDef = getCurrentDirectiveDef(tView.data);\n const renderer = loadComponentRenderer(currentDef, tNode, lView);\n listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn);\n return ɵɵsyntheticHostListener;\n}\n/**\n * A utility function that checks if a given element has already an event handler registered for an\n * event with a specified name. The TView.cleanup data structure is used to find out which events\n * are registered for a given element.\n */\nfunction findExistingListener(tView, lView, eventName, tNodeIdx) {\n const tCleanup = tView.cleanup;\n if (tCleanup != null) {\n for (let i = 0; i < tCleanup.length - 1; i += 2) {\n const cleanupEventName = tCleanup[i];\n if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {\n // We have found a matching event name on the same node but it might not have been\n // registered yet, so we must explicitly verify entries in the LView cleanup data\n // structures.\n const lCleanup = lView[CLEANUP];\n const listenerIdxInLCleanup = tCleanup[i + 2];\n return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;\n }\n // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or\n // 2-element entries (for directive and queries destroy hooks). As such we can encounter\n // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements\n // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check\n // documentation of TView.cleanup for more details of this data structure layout.\n if (typeof cleanupEventName === 'string') {\n i += 2;\n }\n }\n }\n return null;\n}\nfunction listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, eventTargetResolver) {\n const isTNodeDirectiveHost = isDirectiveHost(tNode);\n const firstCreatePass = tView.firstCreatePass;\n const tCleanup = firstCreatePass && getOrCreateTViewCleanup(tView);\n const context = lView[CONTEXT];\n // When the ɵɵlistener instruction was generated and is executed we know that there is either a\n // native listener or a directive output on this element. As such we we know that we will have to\n // register a listener and store its cleanup function on LView.\n const lCleanup = getOrCreateLViewCleanup(lView);\n ngDevMode && assertTNodeType(tNode, 3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */);\n let processOutputs = true;\n // Adding a native event listener is applicable when:\n // - The corresponding TNode represents a DOM element.\n // - The event target has a resolver (usually resulting in a global object,\n // such as `window` or `document`).\n if ((tNode.type & 3 /* TNodeType.AnyRNode */) || eventTargetResolver) {\n const native = getNativeByTNode(tNode, lView);\n const target = eventTargetResolver ? eventTargetResolver(native) : native;\n const lCleanupIndex = lCleanup.length;\n const idxOrTargetGetter = eventTargetResolver ?\n (_lView) => eventTargetResolver(unwrapRNode(_lView[tNode.index])) :\n tNode.index;\n // In order to match current behavior, native DOM event listeners must be added for all\n // events (including outputs).\n // There might be cases where multiple directives on the same element try to register an event\n // handler function for the same event. In this situation we want to avoid registration of\n // several native listeners as each registration would be intercepted by NgZone and\n // trigger change detection. This would mean that a single user action would result in several\n // change detections being invoked. To avoid this situation we want to have only one call to\n // native handler registration (for the same element and same type of event).\n //\n // In order to have just one native event handler in presence of multiple handler functions,\n // we just register a first handler function as a native event listener and then chain\n // (coalesce) other handler functions on top of the first native handler function.\n let existingListener = null;\n // Please note that the coalescing described here doesn't happen for events specifying an\n // alternative target (ex. (document:click)) - this is to keep backward compatibility with the\n // view engine.\n // Also, we don't have to search for existing listeners is there are no directives\n // matching on a given node as we can't register multiple event handlers for the same event in\n // a template (this would mean having duplicate attributes).\n if (!eventTargetResolver && isTNodeDirectiveHost) {\n existingListener = findExistingListener(tView, lView, eventName, tNode.index);\n }\n if (existingListener !== null) {\n // Attach a new listener to coalesced listeners list, maintaining the order in which\n // listeners are registered. For performance reasons, we keep a reference to the last\n // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through\n // the entire set each time we need to add a new listener.\n const lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;\n lastListenerFn.__ngNextListenerFn__ = listenerFn;\n existingListener.__ngLastListenerFn__ = listenerFn;\n processOutputs = false;\n }\n else {\n listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);\n const cleanupFn = renderer.listen(target, eventName, listenerFn);\n ngDevMode && ngDevMode.rendererAddEventListener++;\n lCleanup.push(listenerFn, cleanupFn);\n tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);\n }\n }\n else {\n // Even if there is no native listener to add, we still need to wrap the listener so that OnPush\n // ancestors are marked dirty when an event occurs.\n listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);\n }\n // subscribe to directive outputs\n const outputs = tNode.outputs;\n let props;\n if (processOutputs && outputs !== null && (props = outputs[eventName])) {\n const propsLength = props.length;\n if (propsLength) {\n for (let i = 0; i < propsLength; i += 2) {\n const index = props[i];\n ngDevMode && assertIndexInRange(lView, index);\n const minifiedName = props[i + 1];\n const directiveInstance = lView[index];\n const output = directiveInstance[minifiedName];\n if (ngDevMode && !isOutputSubscribable(output)) {\n throw new Error(`@Output ${minifiedName} not initialized in '${directiveInstance.constructor.name}'.`);\n }\n const subscription = output.subscribe(listenerFn);\n const idx = lCleanup.length;\n lCleanup.push(listenerFn, subscription);\n tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));\n }\n }\n }\n}\nfunction executeListenerWithErrorHandling(lView, context, listenerFn, e) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n profiler(6 /* ProfilerEvent.OutputStart */, context, listenerFn);\n // Only explicitly returning false from a listener should preventDefault\n return listenerFn(e) !== false;\n }\n catch (error) {\n handleError(lView, error);\n return false;\n }\n finally {\n profiler(7 /* ProfilerEvent.OutputEnd */, context, listenerFn);\n setActiveConsumer$1(prevConsumer);\n }\n}\n/**\n * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,\n * if applicable.\n *\n * @param tNode The TNode associated with this listener\n * @param lView The LView that contains this listener\n * @param listenerFn The listener function to call\n * @param wrapWithPreventDefault Whether or not to prevent default behavior\n * (the procedural renderer does this already, so in those cases, we should skip)\n */\nfunction wrapListener(tNode, lView, context, listenerFn, wrapWithPreventDefault) {\n // Note: we are performing most of the work in the listener function itself\n // to optimize listener registration.\n return function wrapListenerIn_markDirtyAndPreventDefault(e) {\n // Ivy uses `Function` as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.\n if (e === Function) {\n return listenerFn;\n }\n // In order to be backwards compatible with View Engine, events on component host nodes\n // must also mark the component view itself dirty (i.e. the view that it owns).\n const startView = tNode.componentOffset > -1 ? getComponentLViewByIndex(tNode.index, lView) : lView;\n markViewDirty(startView);\n let result = executeListenerWithErrorHandling(lView, context, listenerFn, e);\n // A just-invoked listener function might have coalesced listeners so we need to check for\n // their presence and invoke as needed.\n let nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;\n while (nextListenerFn) {\n // We should prevent default if any of the listeners explicitly return false\n result = executeListenerWithErrorHandling(lView, context, nextListenerFn, e) && result;\n nextListenerFn = nextListenerFn.__ngNextListenerFn__;\n }\n if (wrapWithPreventDefault && result === false) {\n e.preventDefault();\n }\n return result;\n };\n}\n/**\n * Whether the given value represents a subscribable output.\n *\n * For example, an `EventEmitter, a `Subject`, an `Observable` or an\n * `OutputEmitter`.\n */\nfunction isOutputSubscribable(value) {\n return value != null &&\n typeof value.subscribe === 'function';\n}\n\n/**\n * Retrieves a context at the level specified and saves it as the global, contextViewData.\n * Will get the next level up if level is not specified.\n *\n * This is used to save contexts of parent views so they can be bound in embedded views, or\n * in conjunction with reference() to bind a ref from a parent view.\n *\n * @param level The relative level of the view from which to grab context compared to contextVewData\n * @returns context\n *\n * @codeGenApi\n */\nfunction ɵɵnextContext(level = 1) {\n return nextContextImpl(level);\n}\n\n/**\n * Checks a given node against matching projection slots and returns the\n * determined slot index. Returns \"null\" if no slot matched the given node.\n *\n * This function takes into account the parsed ngProjectAs selector from the\n * node's attributes. If present, it will check whether the ngProjectAs selector\n * matches any of the projection slot selectors.\n */\nfunction matchingProjectionSlotIndex(tNode, projectionSlots) {\n let wildcardNgContentIndex = null;\n const ngProjectAsAttrVal = getProjectAsAttrValue(tNode);\n for (let i = 0; i < projectionSlots.length; i++) {\n const slotValue = projectionSlots[i];\n // The last wildcard projection slot should match all nodes which aren't matching\n // any selector. This is necessary to be backwards compatible with view engine.\n if (slotValue === '*') {\n wildcardNgContentIndex = i;\n continue;\n }\n // If we ran into an `ngProjectAs` attribute, we should match its parsed selector\n // to the list of selectors, otherwise we fall back to matching against the node.\n if (ngProjectAsAttrVal === null ?\n isNodeMatchingSelectorList(tNode, slotValue, /* isProjectionMode */ true) :\n isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {\n return i; // first matching selector \"captures\" a given node\n }\n }\n return wildcardNgContentIndex;\n}\n/**\n * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.\n * It takes all the selectors from the entire component's template and decides where\n * each projected node belongs (it re-distributes nodes among \"buckets\" where each \"bucket\" is\n * backed by a selector).\n *\n * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,\n * un-parsed form.\n *\n * The parsed form is needed for efficient matching of a node against a given CSS selector.\n * The un-parsed, textual form is needed for support of the ngProjectAs attribute.\n *\n * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more\n * drawbacks:\n * - having only a textual form would require runtime parsing of CSS selectors;\n * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a\n * template author).\n *\n * @param projectionSlots? A collection of projection slots. A projection slot can be based\n * on a parsed CSS selectors or set to the wildcard selector (\"*\") in order to match\n * all nodes which do not match any selector. If not specified, a single wildcard\n * selector projection slot will be defined.\n *\n * @codeGenApi\n */\nfunction ɵɵprojectionDef(projectionSlots) {\n const componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];\n if (!componentNode.projection) {\n // If no explicit projection slots are defined, fall back to a single\n // projection slot with the wildcard selector.\n const numProjectionSlots = projectionSlots ? projectionSlots.length : 1;\n const projectionHeads = componentNode.projection =\n newArray(numProjectionSlots, null);\n const tails = projectionHeads.slice();\n let componentChild = componentNode.child;\n while (componentChild !== null) {\n const slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 0;\n if (slotIndex !== null) {\n if (tails[slotIndex]) {\n tails[slotIndex].projectionNext = componentChild;\n }\n else {\n projectionHeads[slotIndex] = componentChild;\n }\n tails[slotIndex] = componentChild;\n }\n componentChild = componentChild.next;\n }\n }\n}\n/**\n * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call\n * to the projectionDef instruction.\n *\n * @param nodeIndex\n * @param selectorIndex:\n * - 0 when the selector is `*` (or unspecified as this is the default value),\n * - 1 based index of the selector from the {@link projectionDef}\n *\n * @codeGenApi\n */\nfunction ɵɵprojection(nodeIndex, selectorIndex = 0, attrs) {\n const lView = getLView();\n const tView = getTView();\n const tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16 /* TNodeType.Projection */, null, attrs || null);\n // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.\n if (tProjectionNode.projection === null)\n tProjectionNode.projection = selectorIndex;\n // `<ng-content>` has no content\n setCurrentTNodeAsNotParent();\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1();\n if (isNodeCreationMode &&\n (tProjectionNode.flags & 32 /* TNodeFlags.isDetached */) !== 32 /* TNodeFlags.isDetached */) {\n // re-distribution of projectable nodes is stored on a component's view level\n applyProjection(tView, lView, tProjectionNode);\n }\n}\n\n/**\n *\n * Update an interpolated property on an element with a lone bound value\n *\n * Used when the value passed to a property has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div title=\"{{v0}}\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate('title', v0);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate(propName, v0, sanitizer) {\n ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);\n return ɵɵpropertyInterpolate;\n}\n/**\n *\n * Update an interpolated property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);\n }\n return ɵɵpropertyInterpolate1;\n}\n/**\n *\n * Update an interpolated property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);\n }\n return ɵɵpropertyInterpolate2;\n}\n/**\n *\n * Update an interpolated property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n }\n return ɵɵpropertyInterpolate3;\n}\n/**\n *\n * Update an interpolated property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n }\n return ɵɵpropertyInterpolate4;\n}\n/**\n *\n * Update an interpolated property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n }\n return ɵɵpropertyInterpolate5;\n}\n/**\n *\n * Update an interpolated property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate6(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n }\n return ɵɵpropertyInterpolate6;\n}\n/**\n *\n * Update an interpolated property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate7(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n }\n return ɵɵpropertyInterpolate7;\n}\n/**\n *\n * Update an interpolated property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate8(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n }\n return ɵɵpropertyInterpolate8;\n}\n/**\n * Update an interpolated property on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolateV(\n * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update.\n * @param values The collection of values and the strings in between those values, beginning with a\n * string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolateV(propName, values, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n if (ngDevMode) {\n const interpolationInBetween = [values[0]]; // prefix\n for (let i = 2; i < values.length; i += 2) {\n interpolationInBetween.push(values[i]);\n }\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n }\n }\n return ɵɵpropertyInterpolateV;\n}\n\n/**\n * Registers a QueryList, associated with a content query, for later refresh (part of a view\n * refresh).\n *\n * @param directiveIndex Current directive index\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n * @returns QueryList<T>\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuery(directiveIndex, predicate, flags, read) {\n createContentQuery(directiveIndex, predicate, flags, read);\n}\n/**\n * Creates a new view query by initializing internal data structures.\n *\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuery(predicate, flags, read) {\n createViewQuery(predicate, flags, read);\n}\n/**\n * Refreshes a query by combining matches from all active views and removing matches from deleted\n * views.\n *\n * @returns `true` if a query got dirty during change detection or if this is a static query\n * resolving in creation mode, `false` otherwise.\n *\n * @codeGenApi\n */\nfunction ɵɵqueryRefresh(queryList) {\n const lView = getLView();\n const tView = getTView();\n const queryIndex = getCurrentQueryIndex();\n setCurrentQueryIndex(queryIndex + 1);\n const tQuery = getTQuery(tView, queryIndex);\n if (queryList.dirty &&\n (isCreationMode(lView) ===\n ((tQuery.metadata.flags & 2 /* QueryFlags.isStatic */) === 2 /* QueryFlags.isStatic */))) {\n if (tQuery.matches === null) {\n queryList.reset([]);\n }\n else {\n const result = getQueryResults(lView, queryIndex);\n queryList.reset(result, unwrapElementRef);\n queryList.notifyOnChanges();\n }\n return true;\n }\n return false;\n}\n/**\n * Loads a QueryList corresponding to the current view or content query.\n *\n * @codeGenApi\n */\nfunction ɵɵloadQuery() {\n return loadQueryInternal(getLView(), getCurrentQueryIndex());\n}\n\n/**\n * Creates a new content query and binds it to a signal created by an authoring function.\n *\n * @param directiveIndex Current directive index\n * @param target The target signal to which the query should be bound\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuerySignal(directiveIndex, target, predicate, flags, read) {\n bindQueryToSignal(target, createContentQuery(directiveIndex, predicate, flags, read));\n}\n/**\n * Creates a new view query by initializing internal data structures and binding a new query to the\n * target signal.\n *\n * @param target The target signal to assign the query results to.\n * @param predicate The type or label that should match a given query\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuerySignal(target, predicate, flags, read) {\n bindQueryToSignal(target, createViewQuery(predicate, flags, read));\n}\n/**\n * Advances the current query index by a specified offset.\n *\n * Adjusting the current query index is necessary in cases where a given directive has a mix of\n * zone-based and signal-based queries. The signal-based queries don't require tracking of the\n * current index (those are refreshed on demand and not during change detection) so this instruction\n * is only necessary for backward-compatibility.\n *\n * @param index offset to apply to the current query index (defaults to 1)\n *\n * @codeGenApi\n */\nfunction ɵɵqueryAdvance(indexOffset = 1) {\n setCurrentQueryIndex(getCurrentQueryIndex() + indexOffset);\n}\n\n/** Store a value in the `data` at a given `index`. */\nfunction store(tView, lView, index, value) {\n // We don't store any static data for local variables, so the first time\n // we see the template, we should store as null to avoid a sparse array\n if (index >= tView.data.length) {\n tView.data[index] = null;\n tView.blueprint[index] = null;\n }\n lView[index] = value;\n}\n/**\n * Retrieves a local reference from the current contextViewData.\n *\n * If the reference to retrieve is in a parent view, this instruction is used in conjunction\n * with a nextContext() call, which walks up the tree and updates the contextViewData instance.\n *\n * @param index The index of the local ref in contextViewData.\n *\n * @codeGenApi\n */\nfunction ɵɵreference(index) {\n const contextLView = getContextLView();\n return load(contextLView, HEADER_OFFSET + index);\n}\n\n/**\n *\n * Update an interpolated style on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style=\"key: {{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate3(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate4(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate5(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};\n * key5: {{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate6(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate7(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}; key7: {{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate8(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, '; key7: ', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n * Update an interpolated style on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * class=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolateV(\n * ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolateV(values) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n ɵɵstyleMap(interpolatedValue);\n}\n\n/**\n *\n * Update an interpolated style property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate1;\n}\n/**\n *\n * Update an interpolated style property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate2;\n}\n/**\n *\n * Update an interpolated style property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate3;\n}\n/**\n *\n * Update an interpolated style property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate4;\n}\n/**\n *\n * Update an interpolated style property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate5;\n}\n/**\n *\n * Update an interpolated style property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate6;\n}\n/**\n *\n * Update an interpolated style property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate7(\n * 0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate7;\n}\n/**\n *\n * Update an interpolated style property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,\n * '-', v7, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate8;\n}\n/**\n * Update an interpolated style property on an element with 9 or more bound values surrounded by\n * text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\">\n * </div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolateV(\n * 0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`..\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolateV(prop, values, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolateV;\n}\n\n/**\n * Create static text node\n *\n * @param index Index of the node in the data array\n * @param value Static string value to write.\n *\n * @codeGenApi\n */\nfunction ɵɵtext(index, value = '') {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n const tNode = tView.firstCreatePass ?\n getOrCreateTNode(tView, adjustedIndex, 1 /* TNodeType.Text */, value, null) :\n tView.data[adjustedIndex];\n const textNative = _locateOrCreateTextNode(tView, lView, tNode, value, index);\n lView[adjustedIndex] = textNative;\n if (wasLastNodeCreated()) {\n appendChild(tView, lView, textNative, tNode);\n }\n // Text nodes are self closing.\n setCurrentTNode(tNode, false);\n}\nlet _locateOrCreateTextNode = (tView, lView, tNode, value, index) => {\n lastNodeWasCreated(true);\n return createTextNode(lView[RENDERER], value);\n};\n/**\n * Enables hydration code path (to lookup existing elements in DOM)\n * in addition to the regular creation mode of text nodes.\n */\nfunction locateOrCreateTextNodeImpl(tView, lView, tNode, value, index) {\n const hydrationInfo = lView[HYDRATION];\n const isNodeCreationMode = !hydrationInfo || isInSkipHydrationBlock$1() ||\n isDetachedByI18n(tNode) || isDisconnectedNode$1(hydrationInfo, index);\n lastNodeWasCreated(isNodeCreationMode);\n // Regular creation mode.\n if (isNodeCreationMode) {\n return createTextNode(lView[RENDERER], value);\n }\n // Hydration mode, looking up an existing element in DOM.\n const textNative = locateNextRNode(hydrationInfo, tView, lView, tNode);\n ngDevMode && validateMatchingNode(textNative, Node.TEXT_NODE, null, lView, tNode);\n ngDevMode && markRNodeAsClaimedByHydration(textNative);\n return textNative;\n}\nfunction enableLocateOrCreateTextNodeImpl() {\n _locateOrCreateTextNode = locateOrCreateTextNodeImpl;\n}\n\n/**\n *\n * Update text content with a lone bound value\n *\n * Used when a text node has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div>{{v0}}</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate(v0);\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate(v0) {\n ɵɵtextInterpolate1('', v0, '');\n return ɵɵtextInterpolate;\n}\n/**\n *\n * Update text content with single bound value surrounded by other text.\n *\n * Used when a text node has 1 interpolated value in it:\n *\n * ```html\n * <div>prefix{{v0}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate1('prefix', v0, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolated = interpolation1(lView, prefix, v0, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate1;\n}\n/**\n *\n * Update text content with 2 bound values surrounded by other text.\n *\n * Used when a text node has 2 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate2;\n}\n/**\n *\n * Update text content with 3 bound values surrounded by other text.\n *\n * Used when a text node has 3 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate3;\n}\n/**\n *\n * Update text content with 4 bound values surrounded by other text.\n *\n * Used when a text node has 4 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see ɵɵtextInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate4;\n}\n/**\n *\n * Update text content with 5 bound values surrounded by other text.\n *\n * Used when a text node has 5 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate5;\n}\n/**\n *\n * Update text content with 6 bound values surrounded by other text.\n *\n * Used when a text node has 6 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate6(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change. @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate6;\n}\n/**\n *\n * Update text content with 7 bound values surrounded by other text.\n *\n * Used when a text node has 7 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate7(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate7;\n}\n/**\n *\n * Update text content with 8 bound values surrounded by other text.\n *\n * Used when a text node has 8 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate8(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate8;\n}\n/**\n * Update text content with 9 or more bound values other surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolateV(\n * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n *\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵtextInterpolateV(values) {\n const lView = getLView();\n const interpolated = interpolationV(lView, values);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolateV;\n}\n\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Update a two-way bound property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `twoWayProperty('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayProperty(propName, value, sanitizer) {\n // TODO(crisbeto): perf impact of re-evaluating this on each change detection?\n if (isWritableSignal(value)) {\n value = value();\n }\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵtwoWayProperty;\n}\n/**\n * Function used inside two-way listeners to conditionally set the value of the bound expression.\n *\n * @param target Field on which to set the value.\n * @param value Value to be set to the field.\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayBindingSet(target, value) {\n const canWrite = isWritableSignal(target);\n canWrite && target.set(value);\n return canWrite;\n}\n/**\n * Adds an event listener that updates a two-way binding to the current node.\n *\n * @param eventName Name of the event.\n * @param listenerFn The function to be called when event emits.\n *\n * @codeGenApi\n */\nfunction ɵɵtwoWayListener(eventName, listenerFn) {\n const lView = getLView();\n const tView = getTView();\n const tNode = getCurrentTNode();\n listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn);\n return ɵɵtwoWayListener;\n}\n\n/*\n * This file re-exports all symbols contained in this directory.\n *\n * Why is this file not `index.ts`?\n *\n * There seems to be an inconsistent path resolution of an `index.ts` file\n * when only the parent directory is referenced. This could be due to the\n * node module resolution configuration differing from rollup and/or typescript.\n *\n * With commit\n * https://github.com/angular/angular/commit/d5e3f2c64bd13ce83e7c70788b7fc514ca4a9918\n * the `instructions.ts` file was moved to `instructions/instructions.ts` and an\n * `index.ts` file was used to re-export everything. Having had file names that were\n * importing from `instructions' directly (not the from the sub file or the `index.ts`\n * file) caused strange CI issues. `index.ts` had to be renamed to `all.ts` for this\n * to work.\n *\n * Jira Issue = FW-1184\n */\n\n/**\n * Resolves the providers which are defined in the DirectiveDef.\n *\n * When inserting the tokens and the factories in their respective arrays, we can assume that\n * this method is called first for the component (if any), and then for other directives on the same\n * node.\n * As a consequence,the providers are always processed in that order:\n * 1) The view providers of the component\n * 2) The providers of the component\n * 3) The providers of the other directives\n * This matches the structure of the injectables arrays of a view (for each node).\n * So the tokens and the factories can be pushed at the end of the arrays, except\n * in one case for multi providers.\n *\n * @param def the directive definition\n * @param providers: Array of `providers`.\n * @param viewProviders: Array of `viewProviders`.\n */\nfunction providersResolver(def, providers, viewProviders) {\n const tView = getTView();\n if (tView.firstCreatePass) {\n const isComponent = isComponentDef(def);\n // The list of view providers is processed first, and the flags are updated\n resolveProvider(viewProviders, tView.data, tView.blueprint, isComponent, true);\n // Then, the list of providers is processed, and the flags are updated\n resolveProvider(providers, tView.data, tView.blueprint, isComponent, false);\n }\n}\n/**\n * Resolves a provider and publishes it to the DI system.\n */\nfunction resolveProvider(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {\n provider = resolveForwardRef(provider);\n if (Array.isArray(provider)) {\n // Recursively call `resolveProvider`\n // Recursion is OK in this case because this code will not be in hot-path once we implement\n // cloning of the initial state.\n for (let i = 0; i < provider.length; i++) {\n resolveProvider(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);\n }\n }\n else {\n const tView = getTView();\n const lView = getLView();\n const tNode = getCurrentTNode();\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);\n const providerFactory = providerToFactory(provider);\n if (ngDevMode) {\n const injector = new NodeInjector(tNode, lView);\n runInInjectorProfilerContext(injector, token, () => {\n emitProviderConfiguredEvent(provider, isViewProvider);\n });\n }\n const beginIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const endIndex = tNode.directiveStart;\n const cptViewProvidersCount = tNode.providerIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n if (isTypeProvider(provider) || !provider.multi) {\n // Single provider case: the factory is created and pushed immediately\n const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);\n const existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);\n if (existingFactoryIndex === -1) {\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n registerDestroyHooksIfSupported(tView, provider, tInjectables.length);\n tInjectables.push(token);\n tNode.directiveStart++;\n tNode.directiveEnd++;\n if (isViewProvider) {\n tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;\n }\n lInjectablesBlueprint.push(factory);\n lView.push(factory);\n }\n else {\n lInjectablesBlueprint[existingFactoryIndex] = factory;\n lView[existingFactoryIndex] = factory;\n }\n }\n else {\n // Multi provider case:\n // We create a multi factory which is going to aggregate all the values.\n // Since the output of such a factory depends on content or view injection,\n // we create two of them, which are linked together.\n //\n // The first one (for view providers) is always in the first block of the injectables array,\n // and the second one (for providers) is always in the second block.\n // This is important because view providers have higher priority. When a multi token\n // is being looked up, the view providers should be found first.\n // Note that it is not possible to have a multi factory in the third block (directive block).\n //\n // The algorithm to process multi providers is as follows:\n // 1) If the multi provider comes from the `viewProviders` of the component:\n // a) If the special view providers factory doesn't exist, it is created and pushed.\n // b) Else, the multi provider is added to the existing multi factory.\n // 2) If the multi provider comes from the `providers` of the component or of another\n // directive:\n // a) If the multi factory doesn't exist, it is created and provider pushed into it.\n // It is also linked to the multi factory for view providers, if it exists.\n // b) Else, the multi provider is added to the existing multi factory.\n const existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);\n const existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);\n const doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 &&\n lInjectablesBlueprint[existingProvidersFactoryIndex];\n const doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 &&\n lInjectablesBlueprint[existingViewProvidersFactoryIndex];\n if (isViewProvider && !doesViewProvidersFactoryExist ||\n !isViewProvider && !doesProvidersFactoryExist) {\n // Cases 1.a and 2.a\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n const factory = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);\n if (!isViewProvider && doesViewProvidersFactoryExist) {\n lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = factory;\n }\n registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);\n tInjectables.push(token);\n tNode.directiveStart++;\n tNode.directiveEnd++;\n if (isViewProvider) {\n tNode.providerIndexes += 1048576 /* TNodeProviderIndexes.CptViewProvidersCountShifter */;\n }\n lInjectablesBlueprint.push(factory);\n lView.push(factory);\n }\n else {\n // Cases 1.b and 2.b\n const indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex :\n existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);\n registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? existingProvidersFactoryIndex :\n existingViewProvidersFactoryIndex, indexInFactory);\n }\n if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {\n lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;\n }\n }\n }\n}\n/**\n * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.\n * @param tView `TView` in which to register the hook.\n * @param provider Provider whose hook should be registered.\n * @param contextIndex Index under which to find the context for the hook when it's being invoked.\n * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi\n * provider factory.\n */\nfunction registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {\n const providerIsTypeProvider = isTypeProvider(provider);\n const providerIsClassProvider = isClassProvider(provider);\n if (providerIsTypeProvider || providerIsClassProvider) {\n // Resolve forward references as `useClass` can hold a forward reference.\n const classToken = providerIsClassProvider ? resolveForwardRef(provider.useClass) : provider;\n const prototype = classToken.prototype;\n const ngOnDestroy = prototype.ngOnDestroy;\n if (ngOnDestroy) {\n const hooks = tView.destroyHooks || (tView.destroyHooks = []);\n if (!providerIsTypeProvider && provider.multi) {\n ngDevMode &&\n assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');\n const existingCallbacksIndex = hooks.indexOf(contextIndex);\n if (existingCallbacksIndex === -1) {\n hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);\n }\n else {\n hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);\n }\n }\n else {\n hooks.push(contextIndex, ngOnDestroy);\n }\n }\n }\n}\n/**\n * Add a factory in a multi factory.\n * @returns Index at which the factory was inserted.\n */\nfunction multiFactoryAdd(multiFactory, factory, isComponentProvider) {\n if (isComponentProvider) {\n multiFactory.componentProviders++;\n }\n return multiFactory.multi.push(factory) - 1;\n}\n/**\n * Returns the index of item in the array, but only in the begin to end range.\n */\nfunction indexOf(item, arr, begin, end) {\n for (let i = begin; i < end; i++) {\n if (arr[i] === item)\n return i;\n }\n return -1;\n}\n/**\n * Use this with `multi` `providers`.\n */\nfunction multiProvidersFactoryResolver(_, tData, lData, tNode) {\n return multiResolve(this.multi, []);\n}\n/**\n * Use this with `multi` `viewProviders`.\n *\n * This factory knows how to concatenate itself with the existing `multi` `providers`.\n */\nfunction multiViewProvidersFactoryResolver(_, tData, lView, tNode) {\n const factories = this.multi;\n let result;\n if (this.providerFactory) {\n const componentCount = this.providerFactory.componentProviders;\n const multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode);\n // Copy the section of the array which contains `multi` `providers` from the component\n result = multiProviders.slice(0, componentCount);\n // Insert the `viewProvider` instances.\n multiResolve(factories, result);\n // Copy the section of the array which contains `multi` `providers` from other directives\n for (let i = componentCount; i < multiProviders.length; i++) {\n result.push(multiProviders[i]);\n }\n }\n else {\n result = [];\n // Insert the `viewProvider` instances.\n multiResolve(factories, result);\n }\n return result;\n}\n/**\n * Maps an array of factories into an array of values.\n */\nfunction multiResolve(factories, result) {\n for (let i = 0; i < factories.length; i++) {\n const factory = factories[i];\n result.push(factory());\n }\n return result;\n}\n/**\n * Creates a multi factory.\n */\nfunction multiFactory(factoryFn, index, isViewProvider, isComponent, f) {\n const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);\n factory.multi = [];\n factory.index = index;\n factory.componentProviders = 0;\n multiFactoryAdd(factory, f, isComponent && !isViewProvider);\n return factory;\n}\n\n/**\n * This feature resolves the providers of a directive (or component),\n * and publish them into the DI system, making it visible to others for injection.\n *\n * For example:\n * ```ts\n * class ComponentWithProviders {\n * constructor(private greeter: GreeterDE) {}\n *\n * static ɵcmp = defineComponent({\n * type: ComponentWithProviders,\n * selectors: [['component-with-providers']],\n * factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),\n * decls: 1,\n * vars: 1,\n * template: function(fs: RenderFlags, ctx: ComponentWithProviders) {\n * if (fs & RenderFlags.Create) {\n * ɵɵtext(0);\n * }\n * if (fs & RenderFlags.Update) {\n * ɵɵtextInterpolate(ctx.greeter.greet());\n * }\n * },\n * features: [ɵɵProvidersFeature([GreeterDE])]\n * });\n * }\n * ```\n *\n * @param definition\n *\n * @codeGenApi\n */\nfunction ɵɵProvidersFeature(providers, viewProviders = []) {\n return (definition) => {\n definition.providersResolver =\n (def, processProvidersFn) => {\n return providersResolver(def, //\n processProvidersFn ? processProvidersFn(providers) : providers, //\n viewProviders);\n };\n };\n}\n\n/**\n * A service used by the framework to create instances of standalone injectors. Those injectors are\n * created on demand in case of dynamic component instantiation and contain ambient providers\n * collected from the imports graph rooted at a given standalone component.\n */\nclass StandaloneService {\n constructor(_injector) {\n this._injector = _injector;\n this.cachedInjectors = new Map();\n }\n getOrCreateStandaloneInjector(componentDef) {\n if (!componentDef.standalone) {\n return null;\n }\n if (!this.cachedInjectors.has(componentDef)) {\n const providers = internalImportProvidersFrom(false, componentDef.type);\n const standaloneInjector = providers.length > 0 ?\n createEnvironmentInjector([providers], this._injector, `Standalone[${componentDef.type.name}]`) :\n null;\n this.cachedInjectors.set(componentDef, standaloneInjector);\n }\n return this.cachedInjectors.get(componentDef);\n }\n ngOnDestroy() {\n try {\n for (const injector of this.cachedInjectors.values()) {\n if (injector !== null) {\n injector.destroy();\n }\n }\n }\n finally {\n this.cachedInjectors.clear();\n }\n }\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: StandaloneService,\n providedIn: 'environment',\n factory: () => new StandaloneService(ɵɵinject(EnvironmentInjector)),\n }); }\n}\n/**\n * A feature that acts as a setup code for the {@link StandaloneService}.\n *\n * The most important responsibility of this feature is to expose the \"getStandaloneInjector\"\n * function (an entry points to a standalone injector creation) on a component definition object. We\n * go through the features infrastructure to make sure that the standalone injector creation logic\n * is tree-shakable and not included in applications that don't use standalone components.\n *\n * @codeGenApi\n */\nfunction ɵɵStandaloneFeature(definition) {\n performanceMarkFeature('NgStandalone');\n definition.getStandaloneInjector = (parentInjector) => {\n return parentInjector.get(StandaloneService).getOrCreateStandaloneInjector(definition);\n };\n}\n\n/**\n * Generated next to NgModules to monkey-patch directive and pipe references onto a component's\n * definition, when generating a direct reference in the component file would otherwise create an\n * import cycle.\n *\n * See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.\n *\n * @codeGenApi\n */\nfunction ɵɵsetComponentScope(type, directives, pipes) {\n const def = type.ɵcmp;\n def.directiveDefs = extractDefListOrFactory(directives, /* pipeDef */ false);\n def.pipeDefs = extractDefListOrFactory(pipes, /* pipeDef */ true);\n}\n/**\n * Adds the module metadata that is necessary to compute the module's transitive scope to an\n * existing module definition.\n *\n * Scope metadata of modules is not used in production builds, so calls to this function can be\n * marked pure to tree-shake it from the bundle, allowing for all referenced declarations\n * to become eligible for tree-shaking as well.\n *\n * @codeGenApi\n */\nfunction ɵɵsetNgModuleScope(type, scope) {\n return noSideEffects(() => {\n const ngModuleDef = getNgModuleDef(type, true);\n ngModuleDef.declarations = convertToTypeArray(scope.declarations || EMPTY_ARRAY);\n ngModuleDef.imports = convertToTypeArray(scope.imports || EMPTY_ARRAY);\n ngModuleDef.exports = convertToTypeArray(scope.exports || EMPTY_ARRAY);\n if (scope.bootstrap) {\n // This only happens in local compilation mode.\n ngModuleDef.bootstrap = convertToTypeArray(scope.bootstrap);\n }\n depsTracker.registerNgModule(type, scope);\n });\n}\nfunction convertToTypeArray(values) {\n if (typeof values === 'function') {\n return values;\n }\n const flattenValues = flatten(values);\n if (flattenValues.some(isForwardRef)) {\n return () => flattenValues.map(resolveForwardRef).map(maybeUnwrapModuleWithProviders);\n }\n else {\n return flattenValues.map(maybeUnwrapModuleWithProviders);\n }\n}\nfunction maybeUnwrapModuleWithProviders(value) {\n return isModuleWithProviders(value) ? value.ngModule : value;\n}\n\n/**\n * Bindings for pure functions are stored after regular bindings.\n *\n * |-------decls------|---------vars---------| |----- hostVars (dir1) ------|\n * ------------------------------------------------------------------------------------------\n * | nodes/refs/pipes | bindings | fn slots | injector | dir1 | host bindings | host slots |\n * ------------------------------------------------------------------------------------------\n * ^ ^\n * TView.bindingStartIndex TView.expandoStartIndex\n *\n * Pure function instructions are given an offset from the binding root. Adding the offset to the\n * binding root gives the first index where the bindings are stored. In component views, the binding\n * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +\n * any directive instances + any hostVars in directives evaluated before it.\n *\n * See VIEW_DATA.md for more information about host binding resolution.\n */\n/**\n * If the value hasn't been saved, calls the pure function to store and return the\n * value. If it has been saved, returns the saved value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns a value\n * @param thisArg Optional calling context of pureFn\n * @returns value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction0(slotOffset, pureFn, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n return lView[bindingIndex] === NO_CHANGE ?\n updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn()) :\n getBinding(lView, bindingIndex);\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {\n return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {\n return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated(lView, bindingIndex + 4, exp5) || different ?\n updateBinding(lView, bindingIndex + 5, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5) :\n pureFn(exp1, exp2, exp3, exp4, exp5)) :\n getBinding(lView, bindingIndex + 5);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different ?\n updateBinding(lView, bindingIndex + 6, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6) :\n pureFn(exp1, exp2, exp3, exp4, exp5, exp6)) :\n getBinding(lView, bindingIndex + 6);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n let different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different ?\n updateBinding(lView, bindingIndex + 7, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7) :\n pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7)) :\n getBinding(lView, bindingIndex + 7);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param exp8\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different ?\n updateBinding(lView, bindingIndex + 8, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8) :\n pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) :\n getBinding(lView, bindingIndex + 8);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {\n return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);\n}\n/**\n * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized\n * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first\n * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE\n * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert\n * it to `undefined`.\n */\nfunction getPureFunctionReturnValue(lView, returnValueIndex) {\n ngDevMode && assertIndexInRange(lView, returnValueIndex);\n const lastReturnValue = lView[returnValueIndex];\n return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated(lView, bindingIndex, exp) ?\n updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) :\n getPureFunctionReturnValue(lView, bindingIndex + 1);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated2(lView, bindingIndex, exp1, exp2) ?\n updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2)) :\n getPureFunctionReturnValue(lView, bindingIndex + 2);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) ?\n updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3)) :\n getPureFunctionReturnValue(lView, bindingIndex + 3);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n */\nfunction pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) ?\n updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4)) :\n getPureFunctionReturnValue(lView, bindingIndex + 4);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {\n let bindingIndex = bindingRoot + slotOffset;\n let different = false;\n for (let i = 0; i < exps.length; i++) {\n bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);\n }\n return different ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) :\n getPureFunctionReturnValue(lView, bindingIndex);\n}\n\n/**\n * Create a pipe.\n *\n * @param index Pipe index where the pipe will be stored.\n * @param pipeName The name of the pipe\n * @returns T the instance of the pipe.\n *\n * @codeGenApi\n */\nfunction ɵɵpipe(index, pipeName) {\n const tView = getTView();\n let pipeDef;\n const adjustedIndex = index + HEADER_OFFSET;\n if (tView.firstCreatePass) {\n // The `getPipeDef` throws if a pipe with a given name is not found\n // (so we use non-null assertion below).\n pipeDef = getPipeDef(pipeName, tView.pipeRegistry);\n tView.data[adjustedIndex] = pipeDef;\n if (pipeDef.onDestroy) {\n (tView.destroyHooks ??= []).push(adjustedIndex, pipeDef.onDestroy);\n }\n }\n else {\n pipeDef = tView.data[adjustedIndex];\n }\n const pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));\n let previousInjectorProfilerContext;\n if (ngDevMode) {\n previousInjectorProfilerContext = setInjectorProfilerContext({\n injector: new NodeInjector(getCurrentTNode(), getLView()),\n token: pipeDef.type\n });\n }\n const previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);\n try {\n // DI for pipes is supposed to behave like directives when placed on a component\n // host node, which means that we have to disable access to `viewProviders`.\n const previousIncludeViewProviders = setIncludeViewProviders(false);\n const pipeInstance = pipeFactory();\n setIncludeViewProviders(previousIncludeViewProviders);\n store(tView, getLView(), adjustedIndex, pipeInstance);\n return pipeInstance;\n }\n finally {\n // we have to restore the injector implementation in finally, just in case the creation of the\n // pipe throws an error.\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(previousInjectorProfilerContext);\n }\n}\n/**\n * Searches the pipe registry for a pipe with the given name. If one is found,\n * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.\n *\n * @param name Name of pipe to resolve\n * @param registry Full list of available pipes\n * @returns Matching PipeDef\n */\nfunction getPipeDef(name, registry) {\n if (registry) {\n if (ngDevMode) {\n const pipes = registry.filter(pipe => pipe.name === name);\n // TODO: Throw an error in the next major\n if (pipes.length > 1) {\n console.warn(formatRuntimeError(313 /* RuntimeErrorCode.MULTIPLE_MATCHING_PIPES */, getMultipleMatchingPipesMessage(name)));\n }\n }\n for (let i = registry.length - 1; i >= 0; i--) {\n const pipeDef = registry[i];\n if (name === pipeDef.name) {\n return pipeDef;\n }\n }\n }\n if (ngDevMode) {\n throw new RuntimeError(-302 /* RuntimeErrorCode.PIPE_NOT_FOUND */, getPipeNotFoundErrorMessage(name));\n }\n return;\n}\n/**\n * Generates a helpful error message for the user when multiple pipes match the name.\n *\n * @param name Name of the pipe\n * @returns The error message\n */\nfunction getMultipleMatchingPipesMessage(name) {\n const lView = getLView();\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n const hostIsStandalone = isHostComponentStandalone(lView);\n const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';\n const verifyMessage = `check ${hostIsStandalone ? '\\'@Component.imports\\' of this component' :\n 'the imports of this module'}`;\n const errorMessage = `Multiple pipes match the name \\`${name}\\`${componentInfoMessage}. ${verifyMessage}`;\n return errorMessage;\n}\n/**\n * Generates a helpful error message for the user when a pipe is not found.\n *\n * @param name Name of the missing pipe\n * @returns The error message\n */\nfunction getPipeNotFoundErrorMessage(name) {\n const lView = getLView();\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n const hostIsStandalone = isHostComponentStandalone(lView);\n const componentInfoMessage = context ? ` in the '${context.constructor.name}' component` : '';\n const verifyMessage = `Verify that it is ${hostIsStandalone ? 'included in the \\'@Component.imports\\' of this component' :\n 'declared or imported in this module'}`;\n const errorMessage = `The pipe '${name}' could not be found${componentInfoMessage}. ${verifyMessage}`;\n return errorMessage;\n}\n/**\n * Invokes a pipe with 1 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param offset the binding offset\n * @param v1 1st argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind1(index, offset, v1) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunction1Internal(lView, getBindingRoot(), offset, pipeInstance.transform, v1, pipeInstance) :\n pipeInstance.transform(v1);\n}\n/**\n * Invokes a pipe with 2 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind2(index, slotOffset, v1, v2) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance) :\n pipeInstance.transform(v1, v2);\n}\n/**\n * Invokes a pipe with 3 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 4rd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) :\n pipeInstance.transform(v1, v2, v3);\n}\n/**\n * Invokes a pipe with 4 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 3rd argument to {@link PipeTransform#transform}.\n * @param v4 4th argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) :\n pipeInstance.transform(v1, v2, v3, v4);\n}\n/**\n * Invokes a pipe with variable number of arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param values Array of arguments to pass to {@link PipeTransform#transform} method.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBindV(index, slotOffset, values) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance) :\n pipeInstance.transform.apply(pipeInstance, values);\n}\nfunction isPure(lView, index) {\n return lView[TVIEW].data[index].pure;\n}\n\n/**\n * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the\n * `<ng-template>` element.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplateRefExtractor(tNode, lView) {\n return createTemplateRef(tNode, lView);\n}\n\nfunction ɵɵgetComponentDepsFactory(type, rawImports) {\n return () => {\n try {\n return depsTracker.getComponentDependencies(type, rawImports).dependencies;\n }\n catch (e) {\n console.error(`Computing dependencies in local compilation mode for the component \"${type.name}\" failed with the exception:`, e);\n throw e;\n }\n };\n}\n\n/**\n * Sets the debug info for an Angular class.\n *\n * This runtime is guarded by ngDevMode flag.\n */\nfunction ɵsetClassDebugInfo(type, debugInfo) {\n const def = getComponentDef(type);\n if (def !== null) {\n def.debugInfo = debugInfo;\n }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreEnv = (() => ({\n 'ɵɵattribute': ɵɵattribute,\n 'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,\n 'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,\n 'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,\n 'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,\n 'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,\n 'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,\n 'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,\n 'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,\n 'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,\n 'ɵɵdefineComponent': ɵɵdefineComponent,\n 'ɵɵdefineDirective': ɵɵdefineDirective,\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵdefineNgModule': ɵɵdefineNgModule,\n 'ɵɵdefinePipe': ɵɵdefinePipe,\n 'ɵɵdirectiveInject': ɵɵdirectiveInject,\n 'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinjectAttribute': ɵɵinjectAttribute,\n 'ɵɵinvalidFactory': ɵɵinvalidFactory,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,\n 'ɵɵresetView': ɵɵresetView,\n 'ɵɵHostDirectivesFeature': ɵɵHostDirectivesFeature,\n 'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,\n 'ɵɵProvidersFeature': ɵɵProvidersFeature,\n 'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,\n 'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,\n 'ɵɵInputTransformsFeature': ɵɵInputTransformsFeature,\n 'ɵɵStandaloneFeature': ɵɵStandaloneFeature,\n 'ɵɵnextContext': ɵɵnextContext,\n 'ɵɵnamespaceHTML': ɵɵnamespaceHTML,\n 'ɵɵnamespaceMathML': ɵɵnamespaceMathML,\n 'ɵɵnamespaceSVG': ɵɵnamespaceSVG,\n 'ɵɵenableBindings': ɵɵenableBindings,\n 'ɵɵdisableBindings': ɵɵdisableBindings,\n 'ɵɵelementStart': ɵɵelementStart,\n 'ɵɵelementEnd': ɵɵelementEnd,\n 'ɵɵelement': ɵɵelement,\n 'ɵɵelementContainerStart': ɵɵelementContainerStart,\n 'ɵɵelementContainerEnd': ɵɵelementContainerEnd,\n 'ɵɵelementContainer': ɵɵelementContainer,\n 'ɵɵpureFunction0': ɵɵpureFunction0,\n 'ɵɵpureFunction1': ɵɵpureFunction1,\n 'ɵɵpureFunction2': ɵɵpureFunction2,\n 'ɵɵpureFunction3': ɵɵpureFunction3,\n 'ɵɵpureFunction4': ɵɵpureFunction4,\n 'ɵɵpureFunction5': ɵɵpureFunction5,\n 'ɵɵpureFunction6': ɵɵpureFunction6,\n 'ɵɵpureFunction7': ɵɵpureFunction7,\n 'ɵɵpureFunction8': ɵɵpureFunction8,\n 'ɵɵpureFunctionV': ɵɵpureFunctionV,\n 'ɵɵgetCurrentView': ɵɵgetCurrentView,\n 'ɵɵrestoreView': ɵɵrestoreView,\n 'ɵɵlistener': ɵɵlistener,\n 'ɵɵprojection': ɵɵprojection,\n 'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,\n 'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,\n 'ɵɵpipeBind1': ɵɵpipeBind1,\n 'ɵɵpipeBind2': ɵɵpipeBind2,\n 'ɵɵpipeBind3': ɵɵpipeBind3,\n 'ɵɵpipeBind4': ɵɵpipeBind4,\n 'ɵɵpipeBindV': ɵɵpipeBindV,\n 'ɵɵprojectionDef': ɵɵprojectionDef,\n 'ɵɵhostProperty': ɵɵhostProperty,\n 'ɵɵproperty': ɵɵproperty,\n 'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,\n 'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,\n 'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,\n 'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,\n 'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,\n 'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,\n 'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,\n 'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,\n 'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,\n 'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,\n 'ɵɵpipe': ɵɵpipe,\n 'ɵɵqueryRefresh': ɵɵqueryRefresh,\n 'ɵɵqueryAdvance': ɵɵqueryAdvance,\n 'ɵɵviewQuery': ɵɵviewQuery,\n 'ɵɵviewQuerySignal': ɵɵviewQuerySignal,\n 'ɵɵloadQuery': ɵɵloadQuery,\n 'ɵɵcontentQuery': ɵɵcontentQuery,\n 'ɵɵcontentQuerySignal': ɵɵcontentQuerySignal,\n 'ɵɵreference': ɵɵreference,\n 'ɵɵclassMap': ɵɵclassMap,\n 'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,\n 'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,\n 'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,\n 'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,\n 'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,\n 'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,\n 'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,\n 'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,\n 'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,\n 'ɵɵstyleMap': ɵɵstyleMap,\n 'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,\n 'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,\n 'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,\n 'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,\n 'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,\n 'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,\n 'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,\n 'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,\n 'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,\n 'ɵɵstyleProp': ɵɵstyleProp,\n 'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,\n 'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,\n 'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,\n 'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,\n 'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,\n 'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,\n 'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,\n 'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,\n 'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,\n 'ɵɵclassProp': ɵɵclassProp,\n 'ɵɵadvance': ɵɵadvance,\n 'ɵɵtemplate': ɵɵtemplate,\n 'ɵɵconditional': ɵɵconditional,\n 'ɵɵdefer': ɵɵdefer,\n 'ɵɵdeferWhen': ɵɵdeferWhen,\n 'ɵɵdeferOnIdle': ɵɵdeferOnIdle,\n 'ɵɵdeferOnImmediate': ɵɵdeferOnImmediate,\n 'ɵɵdeferOnTimer': ɵɵdeferOnTimer,\n 'ɵɵdeferOnHover': ɵɵdeferOnHover,\n 'ɵɵdeferOnInteraction': ɵɵdeferOnInteraction,\n 'ɵɵdeferOnViewport': ɵɵdeferOnViewport,\n 'ɵɵdeferPrefetchWhen': ɵɵdeferPrefetchWhen,\n 'ɵɵdeferPrefetchOnIdle': ɵɵdeferPrefetchOnIdle,\n 'ɵɵdeferPrefetchOnImmediate': ɵɵdeferPrefetchOnImmediate,\n 'ɵɵdeferPrefetchOnTimer': ɵɵdeferPrefetchOnTimer,\n 'ɵɵdeferPrefetchOnHover': ɵɵdeferPrefetchOnHover,\n 'ɵɵdeferPrefetchOnInteraction': ɵɵdeferPrefetchOnInteraction,\n 'ɵɵdeferPrefetchOnViewport': ɵɵdeferPrefetchOnViewport,\n 'ɵɵdeferEnableTimerScheduling': ɵɵdeferEnableTimerScheduling,\n 'ɵɵrepeater': ɵɵrepeater,\n 'ɵɵrepeaterCreate': ɵɵrepeaterCreate,\n 'ɵɵrepeaterTrackByIndex': ɵɵrepeaterTrackByIndex,\n 'ɵɵrepeaterTrackByIdentity': ɵɵrepeaterTrackByIdentity,\n 'ɵɵcomponentInstance': ɵɵcomponentInstance,\n 'ɵɵtext': ɵɵtext,\n 'ɵɵtextInterpolate': ɵɵtextInterpolate,\n 'ɵɵtextInterpolate1': ɵɵtextInterpolate1,\n 'ɵɵtextInterpolate2': ɵɵtextInterpolate2,\n 'ɵɵtextInterpolate3': ɵɵtextInterpolate3,\n 'ɵɵtextInterpolate4': ɵɵtextInterpolate4,\n 'ɵɵtextInterpolate5': ɵɵtextInterpolate5,\n 'ɵɵtextInterpolate6': ɵɵtextInterpolate6,\n 'ɵɵtextInterpolate7': ɵɵtextInterpolate7,\n 'ɵɵtextInterpolate8': ɵɵtextInterpolate8,\n 'ɵɵtextInterpolateV': ɵɵtextInterpolateV,\n 'ɵɵi18n': ɵɵi18n,\n 'ɵɵi18nAttributes': ɵɵi18nAttributes,\n 'ɵɵi18nExp': ɵɵi18nExp,\n 'ɵɵi18nStart': ɵɵi18nStart,\n 'ɵɵi18nEnd': ɵɵi18nEnd,\n 'ɵɵi18nApply': ɵɵi18nApply,\n 'ɵɵi18nPostprocess': ɵɵi18nPostprocess,\n 'ɵɵresolveWindow': ɵɵresolveWindow,\n 'ɵɵresolveDocument': ɵɵresolveDocument,\n 'ɵɵresolveBody': ɵɵresolveBody,\n 'ɵɵsetComponentScope': ɵɵsetComponentScope,\n 'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,\n 'ɵɵregisterNgModuleType': registerNgModuleType,\n 'ɵɵgetComponentDepsFactory': ɵɵgetComponentDepsFactory,\n 'ɵsetClassDebugInfo': ɵsetClassDebugInfo,\n 'ɵɵsanitizeHtml': ɵɵsanitizeHtml,\n 'ɵɵsanitizeStyle': ɵɵsanitizeStyle,\n 'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,\n 'ɵɵsanitizeScript': ɵɵsanitizeScript,\n 'ɵɵsanitizeUrl': ɵɵsanitizeUrl,\n 'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,\n 'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,\n 'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl,\n 'ɵɵvalidateIframeAttribute': ɵɵvalidateIframeAttribute,\n 'forwardRef': forwardRef,\n 'resolveForwardRef': resolveForwardRef,\n 'ɵɵtwoWayProperty': ɵɵtwoWayProperty,\n 'ɵɵtwoWayBindingSet': ɵɵtwoWayBindingSet,\n 'ɵɵtwoWayListener': ɵɵtwoWayListener,\n 'ɵɵInputFlags': InputFlags,\n}))();\n\nlet jitOptions = null;\nfunction setJitOptions(options) {\n if (jitOptions !== null) {\n if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {\n ngDevMode &&\n console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');\n return;\n }\n if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {\n ngDevMode &&\n console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');\n return;\n }\n }\n jitOptions = options;\n}\nfunction getJitOptions() {\n return jitOptions;\n}\nfunction resetJitOptions() {\n jitOptions = null;\n}\n\nfunction patchModuleCompilation() {\n // Does nothing, but exists as a target for patching.\n}\n\nconst moduleQueue = [];\n/**\n * Enqueues moduleDef to be checked later to see if scope can be set on its\n * component declarations.\n */\nfunction enqueueModuleForDelayedScoping(moduleType, ngModule) {\n moduleQueue.push({ moduleType, ngModule });\n}\nlet flushingModuleQueue = false;\n/**\n * Loops over queued module definitions, if a given module definition has all of its\n * declarations resolved, it dequeues that module definition and sets the scope on\n * its declarations.\n */\nfunction flushModuleScopingQueueAsMuchAsPossible() {\n if (!flushingModuleQueue) {\n flushingModuleQueue = true;\n try {\n for (let i = moduleQueue.length - 1; i >= 0; i--) {\n const { moduleType, ngModule } = moduleQueue[i];\n if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {\n // dequeue\n moduleQueue.splice(i, 1);\n setScopeOnDeclaredComponents(moduleType, ngModule);\n }\n }\n }\n finally {\n flushingModuleQueue = false;\n }\n }\n}\n/**\n * Returns truthy if a declaration has resolved. If the declaration happens to be\n * an array of declarations, it will recurse to check each declaration in that array\n * (which may also be arrays).\n */\nfunction isResolvedDeclaration(declaration) {\n if (Array.isArray(declaration)) {\n return declaration.every(isResolvedDeclaration);\n }\n return !!resolveForwardRef(declaration);\n}\n/**\n * Compiles a module in JIT mode.\n *\n * This function automatically gets called when a class has a `@NgModule` decorator.\n */\nfunction compileNgModule(moduleType, ngModule = {}) {\n patchModuleCompilation();\n compileNgModuleDefs(moduleType, ngModule);\n if (ngModule.id !== undefined) {\n registerNgModuleType(moduleType, ngModule.id);\n }\n // Because we don't know if all declarations have resolved yet at the moment the\n // NgModule decorator is executing, we're enqueueing the setting of module scope\n // on its declarations to be run at a later time when all declarations for the module,\n // including forward refs, have resolved.\n enqueueModuleForDelayedScoping(moduleType, ngModule);\n}\n/**\n * Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.\n *\n * It's possible to compile a module via this API which will allow duplicate declarations in its\n * root.\n */\nfunction compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInRoot = false) {\n ngDevMode && assertDefined(moduleType, 'Required value moduleType');\n ngDevMode && assertDefined(ngModule, 'Required value ngModule');\n const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n let ngModuleDef = null;\n Object.defineProperty(moduleType, NG_MOD_DEF, {\n configurable: true,\n get: () => {\n if (ngModuleDef === null) {\n if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {\n // We need to assert this immediately, because allowing it to continue will cause it to\n // go into an infinite loop before we've reached the point where we throw all the errors.\n throw new Error(`'${stringifyForError(moduleType)}' module can't import itself`);\n }\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'NgModule', type: moduleType });\n ngModuleDef = compiler.compileNgModule(angularCoreEnv, `ng:///${moduleType.name}/ɵmod.js`, {\n type: moduleType,\n bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY).map(resolveForwardRef),\n declarations: declarations.map(resolveForwardRef),\n imports: flatten(ngModule.imports || EMPTY_ARRAY)\n .map(resolveForwardRef)\n .map(expandModuleWithProviders),\n exports: flatten(ngModule.exports || EMPTY_ARRAY)\n .map(resolveForwardRef)\n .map(expandModuleWithProviders),\n schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,\n id: ngModule.id || null,\n });\n // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime\n // should verify that there are no unknown elements in a template. In AOT mode, that check\n // happens at compile time and `schemas` information is not present on Component and Module\n // defs after compilation (so the check doesn't happen the second time at runtime).\n if (!ngModuleDef.schemas) {\n ngModuleDef.schemas = [];\n }\n }\n return ngModuleDef;\n }\n });\n let ngFactoryDef = null;\n Object.defineProperty(moduleType, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'NgModule', type: moduleType });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${moduleType.name}/ɵfac.js`, {\n name: moduleType.name,\n type: moduleType,\n deps: reflectDependencies(moduleType),\n target: compiler.FactoryTarget.NgModule,\n typeArgumentCount: 0,\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n let ngInjectorDef = null;\n Object.defineProperty(moduleType, NG_INJ_DEF, {\n get: () => {\n if (ngInjectorDef === null) {\n ngDevMode && verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);\n const meta = {\n name: moduleType.name,\n type: moduleType,\n providers: ngModule.providers || EMPTY_ARRAY,\n imports: [\n (ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef),\n (ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef),\n ],\n };\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'NgModule', type: moduleType });\n ngInjectorDef =\n compiler.compileInjector(angularCoreEnv, `ng:///${moduleType.name}/ɵinj.js`, meta);\n }\n return ngInjectorDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction generateStandaloneInDeclarationsError(type, location) {\n const prefix = `Unexpected \"${stringifyForError(type)}\" found in the \"declarations\" array of the`;\n const suffix = `\"${stringifyForError(type)}\" is marked as standalone and can't be declared ` +\n 'in any NgModule - did you intend to import it instead (by adding it to the \"imports\" array)?';\n return `${prefix} ${location}, ${suffix}`;\n}\nfunction verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {\n if (verifiedNgModule.get(moduleType))\n return;\n // skip verifications of standalone components, directives, and pipes\n if (isStandalone(moduleType))\n return;\n verifiedNgModule.set(moduleType, true);\n moduleType = resolveForwardRef(moduleType);\n let ngModuleDef;\n if (importingModule) {\n ngModuleDef = getNgModuleDef(moduleType);\n if (!ngModuleDef) {\n throw new Error(`Unexpected value '${moduleType.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n }\n else {\n ngModuleDef = getNgModuleDef(moduleType, true);\n }\n const errors = [];\n const declarations = maybeUnwrapFn(ngModuleDef.declarations);\n const imports = maybeUnwrapFn(ngModuleDef.imports);\n flatten(imports).map(unwrapModuleWithProvidersImports).forEach(modOrStandaloneCmpt => {\n verifySemanticsOfNgModuleImport(modOrStandaloneCmpt, moduleType);\n verifySemanticsOfNgModuleDef(modOrStandaloneCmpt, false, moduleType);\n });\n const exports = maybeUnwrapFn(ngModuleDef.exports);\n declarations.forEach(verifyDeclarationsHaveDefinitions);\n declarations.forEach(verifyDirectivesHaveSelector);\n declarations.forEach((declarationType) => verifyNotStandalone(declarationType, moduleType));\n const combinedDeclarations = [\n ...declarations.map(resolveForwardRef),\n ...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef),\n ];\n exports.forEach(verifyExportsAreDeclaredOrReExported);\n declarations.forEach(decl => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));\n const ngModule = getAnnotation(moduleType, 'NgModule');\n if (ngModule) {\n ngModule.imports &&\n flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).forEach(mod => {\n verifySemanticsOfNgModuleImport(mod, moduleType);\n verifySemanticsOfNgModuleDef(mod, false, moduleType);\n });\n ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);\n ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);\n }\n // Throw Error if any errors were detected.\n if (errors.length) {\n throw new Error(errors.join('\\n'));\n }\n ////////////////////////////////////////////////////////////////////////////////////////////////\n function verifyDeclarationsHaveDefinitions(type) {\n type = resolveForwardRef(type);\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n if (!def) {\n errors.push(`Unexpected value '${stringifyForError(type)}' declared by the module '${stringifyForError(moduleType)}'. Please add a @Pipe/@Directive/@Component annotation.`);\n }\n }\n function verifyDirectivesHaveSelector(type) {\n type = resolveForwardRef(type);\n const def = getDirectiveDef(type);\n if (!getComponentDef(type) && def && def.selectors.length == 0) {\n errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`);\n }\n }\n function verifyNotStandalone(type, moduleType) {\n type = resolveForwardRef(type);\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n if (def?.standalone) {\n const location = `\"${stringifyForError(moduleType)}\" NgModule`;\n errors.push(generateStandaloneInDeclarationsError(type, location));\n }\n }\n function verifyExportsAreDeclaredOrReExported(type) {\n type = resolveForwardRef(type);\n const kind = getComponentDef(type) && 'component' || getDirectiveDef(type) && 'directive' ||\n getPipeDef$1(type) && 'pipe';\n if (kind) {\n // only checked if we are declared as Component, Directive, or Pipe\n // Modules don't need to be declared or imported.\n if (combinedDeclarations.lastIndexOf(type) === -1) {\n // We are exporting something which we don't explicitly declare or import.\n errors.push(`Can't export ${kind} ${stringifyForError(type)} from ${stringifyForError(moduleType)} as it was neither declared nor imported!`);\n }\n }\n }\n function verifyDeclarationIsUnique(type, suppressErrors) {\n type = resolveForwardRef(type);\n const existingModule = ownerNgModule.get(type);\n if (existingModule && existingModule !== moduleType) {\n if (!suppressErrors) {\n const modules = [existingModule, moduleType].map(stringifyForError).sort();\n errors.push(`Type ${stringifyForError(type)} is part of the declarations of 2 modules: ${modules[0]} and ${modules[1]}! ` +\n `Please consider moving ${stringifyForError(type)} to a higher module that imports ${modules[0]} and ${modules[1]}. ` +\n `You can also create a new NgModule that exports and includes ${stringifyForError(type)} then import that NgModule in ${modules[0]} and ${modules[1]}.`);\n }\n }\n else {\n // Mark type as having owner.\n ownerNgModule.set(type, moduleType);\n }\n }\n function verifyComponentIsPartOfNgModule(type) {\n type = resolveForwardRef(type);\n const existingModule = ownerNgModule.get(type);\n if (!existingModule && !isStandalone(type)) {\n errors.push(`Component ${stringifyForError(type)} is not part of any NgModule or the module has not been imported into your module.`);\n }\n }\n function verifyCorrectBootstrapType(type) {\n type = resolveForwardRef(type);\n if (!getComponentDef(type)) {\n errors.push(`${stringifyForError(type)} cannot be used as an entry component.`);\n }\n if (isStandalone(type)) {\n // Note: this error should be the same as the\n // `NGMODULE_BOOTSTRAP_IS_STANDALONE` one in AOT compiler.\n errors.push(`The \\`${stringifyForError(type)}\\` class is a standalone component, which can ` +\n `not be used in the \\`@NgModule.bootstrap\\` array. Use the \\`bootstrapApplication\\` ` +\n `function for bootstrap instead.`);\n }\n }\n function verifySemanticsOfNgModuleImport(type, importingModule) {\n type = resolveForwardRef(type);\n const directiveDef = getComponentDef(type) || getDirectiveDef(type);\n if (directiveDef !== null && !directiveDef.standalone) {\n throw new Error(`Unexpected directive '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n const pipeDef = getPipeDef$1(type);\n if (pipeDef !== null && !pipeDef.standalone) {\n throw new Error(`Unexpected pipe '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n }\n}\nfunction unwrapModuleWithProvidersImports(typeOrWithProviders) {\n typeOrWithProviders = resolveForwardRef(typeOrWithProviders);\n return typeOrWithProviders.ngModule || typeOrWithProviders;\n}\nfunction getAnnotation(type, name) {\n let annotation = null;\n collect(type.__annotations__);\n collect(type.decorators);\n return annotation;\n function collect(annotations) {\n if (annotations) {\n annotations.forEach(readAnnotation);\n }\n }\n function readAnnotation(decorator) {\n if (!annotation) {\n const proto = Object.getPrototypeOf(decorator);\n if (proto.ngMetadataName == name) {\n annotation = decorator;\n }\n else if (decorator.type) {\n const proto = Object.getPrototypeOf(decorator.type);\n if (proto.ngMetadataName == name) {\n annotation = decorator.args[0];\n }\n }\n }\n }\n}\n/**\n * Keep track of compiled components. This is needed because in tests we often want to compile the\n * same component with more than one NgModule. This would cause an error unless we reset which\n * NgModule the component belongs to. We keep the list of compiled components here so that the\n * TestBed can reset it later.\n */\nlet ownerNgModule = new WeakMap();\nlet verifiedNgModule = new WeakMap();\nfunction resetCompiledComponents() {\n ownerNgModule = new WeakMap();\n verifiedNgModule = new WeakMap();\n moduleQueue.length = 0;\n GENERATED_COMP_IDS.clear();\n}\n/**\n * Computes the combined declarations of explicit declarations, as well as declarations inherited by\n * traversing the exports of imported modules.\n * @param type\n */\nfunction computeCombinedExports(type) {\n type = resolveForwardRef(type);\n const ngModuleDef = getNgModuleDef(type);\n // a standalone component, directive or pipe\n if (ngModuleDef === null) {\n return [type];\n }\n return flatten(maybeUnwrapFn(ngModuleDef.exports).map((type) => {\n const ngModuleDef = getNgModuleDef(type);\n if (ngModuleDef) {\n verifySemanticsOfNgModuleDef(type, false);\n return computeCombinedExports(type);\n }\n else {\n return type;\n }\n }));\n}\n/**\n * Some declared components may be compiled asynchronously, and thus may not have their\n * ɵcmp set yet. If this is the case, then a reference to the module is written into\n * the `ngSelectorScope` property of the declared type.\n */\nfunction setScopeOnDeclaredComponents(moduleType, ngModule) {\n const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n const transitiveScopes = transitiveScopesFor(moduleType);\n declarations.forEach(declaration => {\n declaration = resolveForwardRef(declaration);\n if (declaration.hasOwnProperty(NG_COMP_DEF)) {\n // A `ɵcmp` field exists - go ahead and patch the component directly.\n const component = declaration;\n const componentDef = getComponentDef(component);\n patchComponentDefWithScope(componentDef, transitiveScopes);\n }\n else if (!declaration.hasOwnProperty(NG_DIR_DEF) && !declaration.hasOwnProperty(NG_PIPE_DEF)) {\n // Set `ngSelectorScope` for future reference when the component compilation finishes.\n declaration.ngSelectorScope = moduleType;\n }\n });\n}\n/**\n * Patch the definition of a component with directives and pipes from the compilation scope of\n * a given module.\n */\nfunction patchComponentDefWithScope(componentDef, transitiveScopes) {\n componentDef.directiveDefs = () => Array.from(transitiveScopes.compilation.directives)\n .map(dir => dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir))\n .filter(def => !!def);\n componentDef.pipeDefs = () => Array.from(transitiveScopes.compilation.pipes).map(pipe => getPipeDef$1(pipe));\n componentDef.schemas = transitiveScopes.schemas;\n // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we\n // may face a problem where previously compiled defs available to a given Component/Directive\n // are cached in TView and may become stale (in case any of these defs gets recompiled). In\n // order to avoid this problem, we force fresh TView to be created.\n componentDef.tView = null;\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given type\n * (either a NgModule or a standalone component / directive / pipe).\n */\nfunction transitiveScopesFor(type) {\n if (isNgModule(type)) {\n if (USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n const scope = depsTracker.getNgModuleScope(type);\n const def = getNgModuleDef(type, true);\n return {\n schemas: def.schemas || null,\n ...scope,\n };\n }\n else {\n return transitiveScopesForNgModule(type);\n }\n }\n else if (isStandalone(type)) {\n const directiveDef = getComponentDef(type) || getDirectiveDef(type);\n if (directiveDef !== null) {\n return {\n schemas: null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set([type]),\n pipes: new Set(),\n },\n };\n }\n const pipeDef = getPipeDef$1(type);\n if (pipeDef !== null) {\n return {\n schemas: null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set(),\n pipes: new Set([type]),\n },\n };\n }\n }\n // TODO: change the error message to be more user-facing and take standalone into account\n throw new Error(`${type.name} does not have a module def (ɵmod property)`);\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.\n *\n * This operation is memoized and the result is cached on the module's definition. This function can\n * be called on modules with components that have not fully compiled yet, but the result should not\n * be used until they have.\n *\n * @param moduleType module that transitive scope should be calculated for.\n */\nfunction transitiveScopesForNgModule(moduleType) {\n const def = getNgModuleDef(moduleType, true);\n if (def.transitiveCompileScopes !== null) {\n return def.transitiveCompileScopes;\n }\n const scopes = {\n schemas: def.schemas || null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set(),\n pipes: new Set(),\n },\n };\n maybeUnwrapFn(def.imports).forEach((imported) => {\n // When this module imports another, the imported module's exported directives and pipes are\n // added to the compilation scope of this module.\n const importedScope = transitiveScopesFor(imported);\n importedScope.exported.directives.forEach(entry => scopes.compilation.directives.add(entry));\n importedScope.exported.pipes.forEach(entry => scopes.compilation.pipes.add(entry));\n });\n maybeUnwrapFn(def.declarations).forEach(declared => {\n const declaredWithDefs = declared;\n if (getPipeDef$1(declaredWithDefs)) {\n scopes.compilation.pipes.add(declared);\n }\n else {\n // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't\n // had its template compiled yet. In either case, it gets added to the compilation's\n // directives.\n scopes.compilation.directives.add(declared);\n }\n });\n maybeUnwrapFn(def.exports).forEach((exported) => {\n const exportedType = exported;\n // Either the type is a module, a pipe, or a component/directive (which may not have a\n // ɵcmp as it might be compiled asynchronously).\n if (isNgModule(exportedType)) {\n // When this module exports another, the exported module's exported directives and pipes are\n // added to both the compilation and exported scopes of this module.\n const exportedScope = transitiveScopesFor(exportedType);\n exportedScope.exported.directives.forEach(entry => {\n scopes.compilation.directives.add(entry);\n scopes.exported.directives.add(entry);\n });\n exportedScope.exported.pipes.forEach(entry => {\n scopes.compilation.pipes.add(entry);\n scopes.exported.pipes.add(entry);\n });\n }\n else if (getPipeDef$1(exportedType)) {\n scopes.exported.pipes.add(exportedType);\n }\n else {\n scopes.exported.directives.add(exportedType);\n }\n });\n def.transitiveCompileScopes = scopes;\n return scopes;\n}\nfunction expandModuleWithProviders(value) {\n if (isModuleWithProviders(value)) {\n return value.ngModule;\n }\n return value;\n}\n\n/**\n * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This\n * matters in the following scenario:\n *\n * Consider a component 'A' that extends component 'B', both declared in module 'M'. During\n * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,\n * potentially triggering compilation of 'B'. If this nested compilation were to trigger\n * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the\n * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of\n * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid\n * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure\n * all compilations have finished.\n */\nlet compilationDepth = 0;\n/**\n * Compile an Angular component according to its decorator metadata, and patch the resulting\n * component def (ɵcmp) onto the component type.\n *\n * Compilation may be asynchronous (due to the need to resolve URLs for the component template or\n * other resources, for example). In the event that compilation is not immediate, `compileComponent`\n * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`\n * until the global queue has been resolved with a call to `resolveComponentResources`.\n */\nfunction compileComponent(type, metadata) {\n // Initialize ngDevMode. This must be the first statement in compileComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n let ngComponentDef = null;\n // Metadata may have resources which need to be resolved.\n maybeQueueResolutionOfComponentResources(type, metadata);\n // Note that we're using the same function as `Directive`, because that's only subset of metadata\n // that we need to create the ngFactoryDef. We're avoiding using the component metadata\n // because we'd have to resolve the asynchronous templates.\n addDirectiveFactoryDef(type, metadata);\n Object.defineProperty(type, NG_COMP_DEF, {\n get: () => {\n if (ngComponentDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'component', type: type });\n if (componentNeedsResolution(metadata)) {\n const error = [`Component '${type.name}' is not resolved:`];\n if (metadata.templateUrl) {\n error.push(` - templateUrl: ${metadata.templateUrl}`);\n }\n if (metadata.styleUrls && metadata.styleUrls.length) {\n error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`);\n }\n if (metadata.styleUrl) {\n error.push(` - styleUrl: ${metadata.styleUrl}`);\n }\n error.push(`Did you run and wait for 'resolveComponentResources()'?`);\n throw new Error(error.join('\\n'));\n }\n // This const was called `jitOptions` previously but had to be renamed to `options` because\n // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.\n // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.\n // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.\n const options = getJitOptions();\n let preserveWhitespaces = metadata.preserveWhitespaces;\n if (preserveWhitespaces === undefined) {\n if (options !== null && options.preserveWhitespaces !== undefined) {\n preserveWhitespaces = options.preserveWhitespaces;\n }\n else {\n preserveWhitespaces = false;\n }\n }\n let encapsulation = metadata.encapsulation;\n if (encapsulation === undefined) {\n if (options !== null && options.defaultEncapsulation !== undefined) {\n encapsulation = options.defaultEncapsulation;\n }\n else {\n encapsulation = ViewEncapsulation$1.Emulated;\n }\n }\n const templateUrl = metadata.templateUrl || `ng:///${type.name}/template.html`;\n const meta = {\n ...directiveMetadata(type, metadata),\n typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl),\n template: metadata.template || '',\n preserveWhitespaces,\n styles: typeof metadata.styles === 'string' ? [metadata.styles] :\n (metadata.styles || EMPTY_ARRAY),\n animations: metadata.animations,\n // JIT components are always compiled against an empty set of `declarations`. Instead, the\n // `directiveDefs` and `pipeDefs` are updated at a later point:\n // * for NgModule-based components, they're set when the NgModule which declares the\n // component resolves in the module scoping queue\n // * for standalone components, they're set just below, after `compileComponent`.\n declarations: [],\n changeDetection: metadata.changeDetection,\n encapsulation,\n interpolation: metadata.interpolation,\n viewProviders: metadata.viewProviders || null,\n };\n compilationDepth++;\n try {\n if (meta.usesInheritance) {\n addDirectiveDefToUndecoratedParents(type);\n }\n ngComponentDef =\n compiler.compileComponent(angularCoreEnv, templateUrl, meta);\n if (metadata.standalone) {\n // Patch the component definition for standalone components with `directiveDefs` and\n // `pipeDefs` functions which lazily compute the directives/pipes available in the\n // standalone component. Also set `dependencies` to the lazily resolved list of imports.\n const imports = flatten(metadata.imports || EMPTY_ARRAY);\n const { directiveDefs, pipeDefs } = getStandaloneDefFunctions(type, imports);\n ngComponentDef.directiveDefs = directiveDefs;\n ngComponentDef.pipeDefs = pipeDefs;\n ngComponentDef.dependencies = () => imports.map(resolveForwardRef);\n }\n }\n finally {\n // Ensure that the compilation depth is decremented even when the compilation failed.\n compilationDepth--;\n }\n if (compilationDepth === 0) {\n // When NgModule decorator executed, we enqueued the module definition such that\n // it would only dequeue and add itself as module scope to all of its declarations,\n // but only if if all of its declarations had resolved. This call runs the check\n // to see if any modules that are in the queue can be dequeued and add scope to\n // their declarations.\n flushModuleScopingQueueAsMuchAsPossible();\n }\n // If component compilation is async, then the @NgModule annotation which declares the\n // component may execute and set an ngSelectorScope property on the component type. This\n // allows the component to patch itself with directiveDefs from the module after it\n // finishes compiling.\n if (hasSelectorScope(type)) {\n const scopes = transitiveScopesFor(type.ngSelectorScope);\n patchComponentDefWithScope(ngComponentDef, scopes);\n }\n if (metadata.schemas) {\n if (metadata.standalone) {\n ngComponentDef.schemas = metadata.schemas;\n }\n else {\n throw new Error(`The 'schemas' was specified for the ${stringifyForError(type)} but is only valid on a component that is standalone.`);\n }\n }\n else if (metadata.standalone) {\n ngComponentDef.schemas = [];\n }\n }\n return ngComponentDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\n/**\n * Build memoized `directiveDefs` and `pipeDefs` functions for the component definition of a\n * standalone component, which process `imports` and filter out directives and pipes. The use of\n * memoized functions here allows for the delayed resolution of any `forwardRef`s present in the\n * component's `imports`.\n */\nfunction getStandaloneDefFunctions(type, imports) {\n let cachedDirectiveDefs = null;\n let cachedPipeDefs = null;\n const directiveDefs = () => {\n if (!USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n if (cachedDirectiveDefs === null) {\n // Standalone components are always able to self-reference, so include the component's own\n // definition in its `directiveDefs`.\n cachedDirectiveDefs = [getComponentDef(type)];\n const seen = new Set([type]);\n for (const rawDep of imports) {\n ngDevMode && verifyStandaloneImport(rawDep, type);\n const dep = resolveForwardRef(rawDep);\n if (seen.has(dep)) {\n continue;\n }\n seen.add(dep);\n if (!!getNgModuleDef(dep)) {\n const scope = transitiveScopesFor(dep);\n for (const dir of scope.exported.directives) {\n const def = getComponentDef(dir) || getDirectiveDef(dir);\n if (def && !seen.has(dir)) {\n seen.add(dir);\n cachedDirectiveDefs.push(def);\n }\n }\n }\n else {\n const def = getComponentDef(dep) || getDirectiveDef(dep);\n if (def) {\n cachedDirectiveDefs.push(def);\n }\n }\n }\n }\n return cachedDirectiveDefs;\n }\n else {\n if (ngDevMode) {\n for (const rawDep of imports) {\n verifyStandaloneImport(rawDep, type);\n }\n }\n if (!isComponent(type)) {\n return [];\n }\n const scope = depsTracker.getStandaloneComponentScope(type, imports);\n return [...scope.compilation.directives]\n .map(p => (getComponentDef(p) || getDirectiveDef(p)))\n .filter(d => d !== null);\n }\n };\n const pipeDefs = () => {\n if (!USE_RUNTIME_DEPS_TRACKER_FOR_JIT) {\n if (cachedPipeDefs === null) {\n cachedPipeDefs = [];\n const seen = new Set();\n for (const rawDep of imports) {\n const dep = resolveForwardRef(rawDep);\n if (seen.has(dep)) {\n continue;\n }\n seen.add(dep);\n if (!!getNgModuleDef(dep)) {\n const scope = transitiveScopesFor(dep);\n for (const pipe of scope.exported.pipes) {\n const def = getPipeDef$1(pipe);\n if (def && !seen.has(pipe)) {\n seen.add(pipe);\n cachedPipeDefs.push(def);\n }\n }\n }\n else {\n const def = getPipeDef$1(dep);\n if (def) {\n cachedPipeDefs.push(def);\n }\n }\n }\n }\n return cachedPipeDefs;\n }\n else {\n if (ngDevMode) {\n for (const rawDep of imports) {\n verifyStandaloneImport(rawDep, type);\n }\n }\n if (!isComponent(type)) {\n return [];\n }\n const scope = depsTracker.getStandaloneComponentScope(type, imports);\n return [...scope.compilation.pipes].map(p => getPipeDef$1(p)).filter(d => d !== null);\n }\n };\n return {\n directiveDefs,\n pipeDefs,\n };\n}\nfunction hasSelectorScope(component) {\n return component.ngSelectorScope !== undefined;\n}\n/**\n * Compile an Angular directive according to its decorator metadata, and patch the resulting\n * directive def onto the component type.\n *\n * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which\n * will resolve when compilation completes and the directive becomes usable.\n */\nfunction compileDirective(type, directive) {\n let ngDirectiveDef = null;\n addDirectiveFactoryDef(type, directive || {});\n Object.defineProperty(type, NG_DIR_DEF, {\n get: () => {\n if (ngDirectiveDef === null) {\n // `directive` can be null in the case of abstract directives as a base class\n // that use `@Directive()` with no selector. In that case, pass empty object to the\n // `directiveMetadata` function instead of null.\n const meta = getDirectiveMetadata(type, directive || {});\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'directive', type });\n ngDirectiveDef =\n compiler.compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);\n }\n return ngDirectiveDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction getDirectiveMetadata(type, metadata) {\n const name = type && type.name;\n const sourceMapUrl = `ng:///${name}/ɵdir.js`;\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'directive', type });\n const facade = directiveMetadata(type, metadata);\n facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);\n if (facade.usesInheritance) {\n addDirectiveDefToUndecoratedParents(type);\n }\n return { metadata: facade, sourceMapUrl };\n}\nfunction addDirectiveFactoryDef(type, metadata) {\n let ngFactoryDef = null;\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const meta = getDirectiveMetadata(type, metadata);\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'directive', type });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${type.name}/ɵfac.js`, {\n name: meta.metadata.name,\n type: meta.metadata.type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Directive\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction extendsDirectlyFromObject(type) {\n return Object.getPrototypeOf(type.prototype) === Object.prototype;\n}\n/**\n * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a\n * `Component`).\n */\nfunction directiveMetadata(type, metadata) {\n // Reflect inputs and outputs.\n const reflect = getReflect();\n const propMetadata = reflect.ownPropMetadata(type);\n return {\n name: type.name,\n type: type,\n selector: metadata.selector !== undefined ? metadata.selector : null,\n host: metadata.host || EMPTY_OBJ,\n propMetadata: propMetadata,\n inputs: metadata.inputs || EMPTY_ARRAY,\n outputs: metadata.outputs || EMPTY_ARRAY,\n queries: extractQueriesMetadata(type, propMetadata, isContentQuery),\n lifecycle: { usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges') },\n typeSourceSpan: null,\n usesInheritance: !extendsDirectlyFromObject(type),\n exportAs: extractExportAs(metadata.exportAs),\n providers: metadata.providers || null,\n viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery),\n isStandalone: !!metadata.standalone,\n isSignal: !!metadata.signals,\n hostDirectives: metadata.hostDirectives?.map(directive => typeof directive === 'function' ? { directive } : directive) ||\n null\n };\n}\n/**\n * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.\n */\nfunction addDirectiveDefToUndecoratedParents(type) {\n const objPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objPrototype) {\n // Since inheritance works if the class was annotated already, we only need to add\n // the def if there are no annotations and the def hasn't been created already.\n if (!getDirectiveDef(parent) && !getComponentDef(parent) &&\n shouldAddAbstractDirective(parent)) {\n compileDirective(parent, null);\n }\n parent = Object.getPrototypeOf(parent);\n }\n}\nfunction convertToR3QueryPredicate(selector) {\n return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);\n}\nfunction convertToR3QueryMetadata(propertyName, ann) {\n return {\n propertyName: propertyName,\n predicate: convertToR3QueryPredicate(ann.selector),\n descendants: ann.descendants,\n first: ann.first,\n read: ann.read ? ann.read : null,\n static: !!ann.static,\n emitDistinctChangesOnly: !!ann.emitDistinctChangesOnly,\n isSignal: !!ann.isSignal,\n };\n}\nfunction extractQueriesMetadata(type, propMetadata, isQueryAnn) {\n const queriesMeta = [];\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n const annotations = propMetadata[field];\n annotations.forEach(ann => {\n if (isQueryAnn(ann)) {\n if (!ann.selector) {\n throw new Error(`Can't construct a query for the property \"${field}\" of ` +\n `\"${stringifyForError(type)}\" since the query selector wasn't defined.`);\n }\n if (annotations.some(isInputAnnotation)) {\n throw new Error(`Cannot combine @Input decorators with query decorators`);\n }\n queriesMeta.push(convertToR3QueryMetadata(field, ann));\n }\n });\n }\n }\n return queriesMeta;\n}\nfunction extractExportAs(exportAs) {\n return exportAs === undefined ? null : splitByComma(exportAs);\n}\nfunction isContentQuery(value) {\n const name = value.ngMetadataName;\n return name === 'ContentChild' || name === 'ContentChildren';\n}\nfunction isViewQuery(value) {\n const name = value.ngMetadataName;\n return name === 'ViewChild' || name === 'ViewChildren';\n}\nfunction isInputAnnotation(value) {\n return value.ngMetadataName === 'Input';\n}\nfunction splitByComma(value) {\n return value.split(',').map(piece => piece.trim());\n}\nconst LIFECYCLE_HOOKS = [\n 'ngOnChanges', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked',\n 'ngAfterContentInit', 'ngAfterContentChecked'\n];\nfunction shouldAddAbstractDirective(type) {\n const reflect = getReflect();\n if (LIFECYCLE_HOOKS.some(hookName => reflect.hasLifecycleHook(type, hookName))) {\n return true;\n }\n const propMetadata = reflect.propMetadata(type);\n for (const field in propMetadata) {\n const annotations = propMetadata[field];\n for (let i = 0; i < annotations.length; i++) {\n const current = annotations[i];\n const metadataName = current.ngMetadataName;\n if (isInputAnnotation(current) || isContentQuery(current) || isViewQuery(current) ||\n metadataName === 'Output' || metadataName === 'HostBinding' ||\n metadataName === 'HostListener') {\n return true;\n }\n }\n }\n return false;\n}\n\nfunction compilePipe(type, meta) {\n let ngPipeDef = null;\n let ngFactoryDef = null;\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const metadata = getPipeMetadata(type, meta);\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'pipe', type: metadata.type });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${metadata.name}/ɵfac.js`, {\n name: metadata.name,\n type: metadata.type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Pipe\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n Object.defineProperty(type, NG_PIPE_DEF, {\n get: () => {\n if (ngPipeDef === null) {\n const metadata = getPipeMetadata(type, meta);\n const compiler = getCompilerFacade({ usage: 0 /* JitCompilerUsage.Decorator */, kind: 'pipe', type: metadata.type });\n ngPipeDef =\n compiler.compilePipe(angularCoreEnv, `ng:///${metadata.name}/ɵpipe.js`, metadata);\n }\n return ngPipeDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction getPipeMetadata(type, meta) {\n return {\n type: type,\n name: type.name,\n pipeName: meta.name,\n pure: meta.pure !== undefined ? meta.pure : true,\n isStandalone: !!meta.standalone,\n };\n}\n\n/**\n * Type of the Directive metadata.\n *\n * @publicApi\n */\nconst Directive = makeDecorator('Directive', (dir = {}) => dir, undefined, undefined, (type, meta) => compileDirective(type, meta));\n/**\n * Component decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Component = makeDecorator('Component', (c = {}) => ({ changeDetection: ChangeDetectionStrategy.Default, ...c }), Directive, undefined, (type, meta) => compileComponent(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Pipe = makeDecorator('Pipe', (p) => ({ pure: true, ...p }), undefined, undefined, (type, meta) => compilePipe(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Input = makePropDecorator('Input', (arg) => {\n if (!arg) {\n return {};\n }\n return typeof arg === 'string' ? { alias: arg } : arg;\n});\n/**\n * @Annotation\n * @publicApi\n */\nconst Output = makePropDecorator('Output', (alias) => ({ alias }));\n/**\n * @Annotation\n * @publicApi\n */\nconst HostBinding = makePropDecorator('HostBinding', (hostPropertyName) => ({ hostPropertyName }));\n/**\n * Decorator that binds a DOM event to a host listener and supplies configuration metadata.\n * Angular invokes the supplied handler method when the host element emits the specified event,\n * and updates the bound element with the result.\n *\n * If the handler method returns false, applies `preventDefault` on the bound element.\n *\n * @usageNotes\n *\n * The following example declares a directive\n * that attaches a click listener to a button and counts clicks.\n *\n * ```ts\n * @Directive({selector: 'button[counting]'})\n * class CountClicks {\n * numberOfClicks = 0;\n *\n * @HostListener('click', ['$event.target'])\n * onClick(btn) {\n * console.log('button', btn, 'number of clicks:', this.numberOfClicks++);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: '<button counting>Increment</button>',\n * })\n * class App {}\n *\n * ```\n *\n * The following example registers another DOM event handler that listens for `Enter` key-press\n * events on the global `window`.\n * ``` ts\n * import { HostListener, Component } from \"@angular/core\";\n *\n * @Component({\n * selector: 'app',\n * template: `<h1>Hello, you have pressed enter {{counter}} number of times!</h1> Press enter key\n * to increment the counter.\n * <button (click)=\"resetCounter()\">Reset Counter</button>`\n * })\n * class AppComponent {\n * counter = 0;\n * @HostListener('window:keydown.enter', ['$event'])\n * handleKeyDown(event: KeyboardEvent) {\n * this.counter++;\n * }\n * resetCounter() {\n * this.counter = 0;\n * }\n * }\n * ```\n * The list of valid key names for `keydown` and `keyup` events\n * can be found here:\n * https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values\n *\n * Note that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`.\n *\n * The global target names that can be used to prefix an event name are\n * `document:`, `window:` and `body:`.\n *\n * @Annotation\n * @publicApi\n */\nconst HostListener = makePropDecorator('HostListener', (eventName, args) => ({ eventName, args }));\n\n/**\n * @Annotation\n */\nconst NgModule = makeDecorator('NgModule', (ngModule) => ngModule, undefined, undefined, \n/**\n * Decorator that marks the following class as an NgModule, and supplies\n * configuration metadata for it.\n *\n * * The `declarations` option configures the compiler\n * with information about what belongs to the NgModule.\n * * The `providers` options configures the NgModule's injector to provide\n * dependencies the NgModule members.\n * * The `imports` and `exports` options bring in members from other modules, and make\n * this module's members available to others.\n */\n(type, meta) => compileNgModule(type, meta));\n\n/**\n * This indirection is needed to free up Component, etc symbols in the public API\n * to be used by the decorator versions of these annotations.\n */\n\n/**\n * @description Represents the version of Angular\n *\n * @publicApi\n */\nclass Version {\n constructor(full) {\n this.full = full;\n const parts = full.split('.');\n this.major = parts[0];\n this.minor = parts[1];\n this.patch = parts.slice(2).join('.');\n }\n}\n/**\n * @publicApi\n */\nconst VERSION = new Version('17.3.12');\n\nclass Console {\n log(message) {\n // tslint:disable-next-line:no-console\n console.log(message);\n }\n // Note: for reporting errors use `DOM.logError()` as it is platform specific\n warn(message) {\n // tslint:disable-next-line:no-console\n console.warn(message);\n }\n static { this.ɵfac = function Console_Factory(t) { return new (t || Console)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac, providedIn: 'platform' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Console, [{\n type: Injectable,\n args: [{ providedIn: 'platform' }]\n }], null, null); })();\n\n/**\n * These are the data structures that our framework injector profiler will fill with data in order\n * to support DI debugging APIs.\n *\n * resolverToTokenToDependencies: Maps an injector to a Map of tokens to an Array of\n * dependencies. Injector -> Token -> Dependencies This is used to support the\n * getDependenciesFromInjectable API, which takes in an injector and a token and returns it's\n * dependencies.\n *\n * resolverToProviders: Maps a DI resolver (an Injector or a TNode) to the providers configured\n * within it This is used to support the getInjectorProviders API, which takes in an injector and\n * returns the providers that it was configured with. Note that for the element injector case we\n * use the TNode instead of the LView as the DI resolver. This is because the registration of\n * providers happens only once per type of TNode. If an injector is created with an identical TNode,\n * the providers for that injector will not be reconfigured.\n *\n * standaloneInjectorToComponent: Maps the injector of a standalone component to the standalone\n * component that it is associated with. Used in the getInjectorProviders API, specificially in the\n * discovery of import paths for each provider. This is necessary because the imports array of a\n * standalone component is processed and configured in its standalone injector, but exists within\n * the component's definition. Because getInjectorProviders takes in an injector, if that injector\n * is the injector of a standalone component, we need to be able to discover the place where the\n * imports array is located (the component) in order to flatten the imports array within it to\n * discover all of it's providers.\n *\n *\n * All of these data structures are instantiated with WeakMaps. This will ensure that the presence\n * of any object in the keys of these maps does not prevent the garbage collector from collecting\n * those objects. Because of this property of WeakMaps, these data structures will never be the\n * source of a memory leak.\n *\n * An example of this advantage: When components are destroyed, we don't need to do\n * any additional work to remove that component from our mappings.\n *\n */\nclass DIDebugData {\n constructor() {\n this.resolverToTokenToDependencies = new WeakMap();\n this.resolverToProviders = new WeakMap();\n this.standaloneInjectorToComponent = new WeakMap();\n }\n reset() {\n this.resolverToTokenToDependencies =\n new WeakMap();\n this.resolverToProviders = new WeakMap();\n this.standaloneInjectorToComponent = new WeakMap();\n }\n}\nlet frameworkDIDebugData = new DIDebugData();\nfunction getFrameworkDIDebugData() {\n return frameworkDIDebugData;\n}\n/**\n * Initalize default handling of injector events. This handling parses events\n * as they are emitted and constructs the data structures necessary to support\n * some of debug APIs.\n *\n * See handleInjectEvent, handleCreateEvent and handleProviderConfiguredEvent\n * for descriptions of each handler\n *\n * Supported APIs:\n * - getDependenciesFromInjectable\n * - getInjectorProviders\n */\nfunction setupFrameworkInjectorProfiler() {\n frameworkDIDebugData.reset();\n setInjectorProfiler((injectorProfilerEvent) => handleInjectorProfilerEvent(injectorProfilerEvent));\n}\nfunction handleInjectorProfilerEvent(injectorProfilerEvent) {\n const { context, type } = injectorProfilerEvent;\n if (type === 0 /* InjectorProfilerEventType.Inject */) {\n handleInjectEvent(context, injectorProfilerEvent.service);\n }\n else if (type === 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */) {\n handleInstanceCreatedByInjectorEvent(context, injectorProfilerEvent.instance);\n }\n else if (type === 2 /* InjectorProfilerEventType.ProviderConfigured */) {\n handleProviderConfiguredEvent(context, injectorProfilerEvent.providerRecord);\n }\n}\n/**\n *\n * Stores the injected service in frameworkDIDebugData.resolverToTokenToDependencies\n * based on it's injector and token.\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data InjectedService the service associated with this inject event.\n *\n */\nfunction handleInjectEvent(context, data) {\n const diResolver = getDIResolver(context.injector);\n if (diResolver === null) {\n throwError('An Inject event must be run within an injection context.');\n }\n const diResolverToInstantiatedToken = frameworkDIDebugData.resolverToTokenToDependencies;\n if (!diResolverToInstantiatedToken.has(diResolver)) {\n diResolverToInstantiatedToken.set(diResolver, new WeakMap());\n }\n // if token is a primitive type, ignore this event. We do this because we cannot keep track of\n // non-primitive tokens in WeakMaps since they are not garbage collectable.\n if (!canBeHeldWeakly(context.token)) {\n return;\n }\n const instantiatedTokenToDependencies = diResolverToInstantiatedToken.get(diResolver);\n if (!instantiatedTokenToDependencies.has(context.token)) {\n instantiatedTokenToDependencies.set(context.token, []);\n }\n const { token, value, flags } = data;\n assertDefined(context.token, 'Injector profiler context token is undefined.');\n const dependencies = instantiatedTokenToDependencies.get(context.token);\n assertDefined(dependencies, 'Could not resolve dependencies for token.');\n if (context.injector instanceof NodeInjector) {\n dependencies.push({ token, value, flags, injectedIn: getNodeInjectorContext(context.injector) });\n }\n else {\n dependencies.push({ token, value, flags });\n }\n}\n/**\n *\n * Returns the LView and TNode associated with a NodeInjector. Returns undefined if the injector\n * is not a NodeInjector.\n *\n * @param injector\n * @returns {lView: LView, tNode: TNode}|undefined\n */\nfunction getNodeInjectorContext(injector) {\n if (!(injector instanceof NodeInjector)) {\n throwError('getNodeInjectorContext must be called with a NodeInjector');\n }\n const lView = getNodeInjectorLView(injector);\n const tNode = getNodeInjectorTNode(injector);\n if (tNode === null) {\n return;\n }\n assertTNodeForLView(tNode, lView);\n return { lView, tNode };\n}\n/**\n *\n * If the created instance is an instance of a standalone component, maps the injector to that\n * standalone component in frameworkDIDebugData.standaloneInjectorToComponent\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data InjectorCreatedInstance an object containing the instance that was just created\n *\n */\nfunction handleInstanceCreatedByInjectorEvent(context, data) {\n const { value } = data;\n if (getDIResolver(context.injector) === null) {\n throwError('An InjectorCreatedInstance event must be run within an injection context.');\n }\n // if our value is an instance of a standalone component, map the injector of that standalone\n // component to the component class. Otherwise, this event is a noop.\n let standaloneComponent = undefined;\n if (typeof value === 'object') {\n standaloneComponent = value?.constructor;\n }\n if (standaloneComponent === undefined || !isStandaloneComponent(standaloneComponent)) {\n return;\n }\n const environmentInjector = context.injector.get(EnvironmentInjector, null, { optional: true });\n // Standalone components should have an environment injector. If one cannot be\n // found we may be in a test case for low level functionality that did not explictly\n // setup this injector. In those cases, we simply ignore this event.\n if (environmentInjector === null) {\n return;\n }\n const { standaloneInjectorToComponent } = frameworkDIDebugData;\n // If our injector has already been mapped, as is the case\n // when a standalone component imports another standalone component,\n // we consider the original component (the component doing the importing)\n // as the component connected to our injector.\n if (standaloneInjectorToComponent.has(environmentInjector)) {\n return;\n }\n // If our injector hasn't been mapped, then we map it to the standalone component\n standaloneInjectorToComponent.set(environmentInjector, standaloneComponent);\n}\nfunction isStandaloneComponent(value) {\n const def = getComponentDef(value);\n return !!def?.standalone;\n}\n/**\n *\n * Stores the emitted ProviderRecords from the InjectorProfilerEventType.ProviderConfigured\n * event in frameworkDIDebugData.resolverToProviders\n *\n * @param context InjectorProfilerContext the injection context that this event occurred in.\n * @param data ProviderRecord an object containing the instance that was just created\n *\n */\nfunction handleProviderConfiguredEvent(context, data) {\n const { resolverToProviders } = frameworkDIDebugData;\n let diResolver;\n if (context?.injector instanceof NodeInjector) {\n diResolver = getNodeInjectorTNode(context.injector);\n }\n else {\n diResolver = context.injector;\n }\n if (diResolver === null) {\n throwError('A ProviderConfigured event must be run within an injection context.');\n }\n if (!resolverToProviders.has(diResolver)) {\n resolverToProviders.set(diResolver, []);\n }\n resolverToProviders.get(diResolver).push(data);\n}\nfunction getDIResolver(injector) {\n let diResolver = null;\n if (injector === undefined) {\n return diResolver;\n }\n // We use the LView as the diResolver for NodeInjectors because they\n // do not persist anywhere in the framework. They are simply wrappers around an LView and a TNode\n // that do persist. Because of this, we rely on the LView of the NodeInjector in order to use\n // as a concrete key to represent this injector. If we get the same LView back later, we know\n // we're looking at the same injector.\n if (injector instanceof NodeInjector) {\n diResolver = getNodeInjectorLView(injector);\n }\n // Other injectors can be used a keys for a map because their instances\n // persist\n else {\n diResolver = injector;\n }\n return diResolver;\n}\n// inspired by\n// https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html#sec-canbeheldweakly\nfunction canBeHeldWeakly(value) {\n // we check for value !== null here because typeof null === 'object\n return value !== null &&\n (typeof value === 'object' || typeof value === 'function' || typeof value === 'symbol');\n}\n\n/**\n * Marks a component for check (in case of OnPush components) and synchronously\n * performs change detection on the application this component belongs to.\n *\n * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction applyChanges(component) {\n ngDevMode && assertDefined(component, 'component');\n markViewDirty(getComponentViewByInstance(component));\n getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));\n}\n/**\n * Synchronously perform change detection on a component (and possibly its sub-components).\n *\n * This function triggers change detection in a synchronous way on a component.\n *\n * @param component The component which the change detection should be performed on.\n */\nfunction detectChanges(component) {\n const view = getComponentViewByInstance(component);\n view[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n detectChangesInternal(view);\n}\n\n/**\n * Discovers the dependencies of an injectable instance. Provides DI information about each\n * dependency that the injectable was instantiated with, including where they were provided from.\n *\n * @param injector An injector instance\n * @param token a DI token that was constructed by the given injector instance\n * @returns an object that contains the created instance of token as well as all of the dependencies\n * that it was instantiated with OR undefined if the token was not created within the given\n * injector.\n */\nfunction getDependenciesFromInjectable(injector, token) {\n // First we check to see if the token given maps to an actual instance in the injector given.\n // We use `self: true` because we only want to look at the injector we were given.\n // We use `optional: true` because it's possible that the token we were given was never\n // constructed by the injector we were given.\n const instance = injector.get(token, null, { self: true, optional: true });\n if (instance === null) {\n throw new Error(`Unable to determine instance of ${token} in given injector`);\n }\n const unformattedDependencies = getDependenciesForTokenInInjector(token, injector);\n const resolutionPath = getInjectorResolutionPath(injector);\n const dependencies = unformattedDependencies.map(dep => {\n // injectedIn contains private fields, so we omit it from the response\n const formattedDependency = {\n value: dep.value,\n };\n // convert injection flags to booleans\n const flags = dep.flags;\n formattedDependency.flags = {\n optional: (8 /* InternalInjectFlags.Optional */ & flags) === 8 /* InternalInjectFlags.Optional */,\n host: (1 /* InternalInjectFlags.Host */ & flags) === 1 /* InternalInjectFlags.Host */,\n self: (2 /* InternalInjectFlags.Self */ & flags) === 2 /* InternalInjectFlags.Self */,\n skipSelf: (4 /* InternalInjectFlags.SkipSelf */ & flags) === 4 /* InternalInjectFlags.SkipSelf */,\n };\n // find the injector that provided the dependency\n for (let i = 0; i < resolutionPath.length; i++) {\n const injectorToCheck = resolutionPath[i];\n // if skipSelf is true we skip the first injector\n if (i === 0 && formattedDependency.flags.skipSelf) {\n continue;\n }\n // host only applies to NodeInjectors\n if (formattedDependency.flags.host && injectorToCheck instanceof EnvironmentInjector) {\n break;\n }\n const instance = injectorToCheck.get(dep.token, null, { self: true, optional: true });\n if (instance !== null) {\n // if host flag is true we double check that we can get the service from the first element\n // in the resolution path by using the host flag. This is done to make sure that we've found\n // the correct providing injector, and not a node injector that is connected to our path via\n // a router outlet.\n if (formattedDependency.flags.host) {\n const firstInjector = resolutionPath[0];\n const lookupFromFirstInjector = firstInjector.get(dep.token, null, { ...formattedDependency.flags, optional: true });\n if (lookupFromFirstInjector !== null) {\n formattedDependency.providedIn = injectorToCheck;\n }\n break;\n }\n formattedDependency.providedIn = injectorToCheck;\n break;\n }\n // if self is true we stop after the first injector\n if (i === 0 && formattedDependency.flags.self) {\n break;\n }\n }\n if (dep.token)\n formattedDependency.token = dep.token;\n return formattedDependency;\n });\n return { instance, dependencies };\n}\nfunction getDependenciesForTokenInInjector(token, injector) {\n const { resolverToTokenToDependencies } = getFrameworkDIDebugData();\n if (!(injector instanceof NodeInjector)) {\n return resolverToTokenToDependencies.get(injector)?.get?.(token) ?? [];\n }\n const lView = getNodeInjectorLView(injector);\n const tokenDependencyMap = resolverToTokenToDependencies.get(lView);\n const dependencies = tokenDependencyMap?.get(token) ?? [];\n // In the NodeInjector case, all injections for every node are stored in the same lView.\n // We use the injectedIn field of the dependency to filter out the dependencies that\n // do not come from the same node as the instance we're looking at.\n return dependencies.filter(dependency => {\n const dependencyNode = dependency.injectedIn?.tNode;\n if (dependencyNode === undefined) {\n return false;\n }\n const instanceNode = getNodeInjectorTNode(injector);\n assertTNode(dependencyNode);\n assertTNode(instanceNode);\n return dependencyNode === instanceNode;\n });\n}\n/**\n * Gets the class associated with an injector that contains a provider `imports` array in it's\n * definition\n *\n * For Module Injectors this returns the NgModule constructor.\n *\n * For Standalone injectors this returns the standalone component constructor.\n *\n * @param injector Injector an injector instance\n * @returns the constructor where the `imports` array that configures this injector is located\n */\nfunction getProviderImportsContainer(injector) {\n const { standaloneInjectorToComponent } = getFrameworkDIDebugData();\n // standalone components configure providers through a component def, so we have to\n // use the standalone component associated with this injector if Injector represents\n // a standalone components EnvironmentInjector\n if (standaloneInjectorToComponent.has(injector)) {\n return standaloneInjectorToComponent.get(injector);\n }\n // Module injectors configure providers through their NgModule def, so we use the\n // injector to lookup its NgModuleRef and through that grab its instance\n const defTypeRef = injector.get(NgModuleRef$1, null, { self: true, optional: true });\n // If we can't find an associated imports container, return null.\n // This could be the case if this function is called with an R3Injector that does not represent\n // a standalone component or NgModule.\n if (defTypeRef === null) {\n return null;\n }\n // In standalone applications, the root environment injector created by bootstrapApplication\n // may have no associated \"instance\".\n if (defTypeRef.instance === null) {\n return null;\n }\n return defTypeRef.instance.constructor;\n}\n/**\n * Gets the providers configured on a NodeInjector\n *\n * @param injector A NodeInjector instance\n * @returns ProviderRecord[] an array of objects representing the providers configured on this\n * injector\n */\nfunction getNodeInjectorProviders(injector) {\n const diResolver = getNodeInjectorTNode(injector);\n const { resolverToProviders } = getFrameworkDIDebugData();\n return resolverToProviders.get(diResolver) ?? [];\n}\n/**\n * Gets a mapping of providers configured on an injector to their import paths\n *\n * ModuleA -> imports ModuleB\n * ModuleB -> imports ModuleC\n * ModuleB -> provides MyServiceA\n * ModuleC -> provides MyServiceB\n *\n * getProviderImportPaths(ModuleA)\n * > Map(2) {\n * MyServiceA => [ModuleA, ModuleB]\n * MyServiceB => [ModuleA, ModuleB, ModuleC]\n * }\n *\n * @param providerImportsContainer constructor of class that contains an `imports` array in it's\n * definition\n * @returns A Map object that maps providers to an array of constructors representing it's import\n * path\n *\n */\nfunction getProviderImportPaths(providerImportsContainer) {\n const providerToPath = new Map();\n const visitedContainers = new Set();\n const visitor = walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers);\n walkProviderTree(providerImportsContainer, visitor, [], new Set());\n return providerToPath;\n}\n/**\n *\n * Higher order function that returns a visitor for WalkProviderTree\n *\n * Takes in a Map and Set to keep track of the providers and containers\n * visited, so that we can discover the import paths of these providers\n * during the traversal.\n *\n * This visitor takes advantage of the fact that walkProviderTree performs a\n * postorder traversal of the provider tree for the passed in container. Because postorder\n * traversal recursively processes subtrees from leaf nodes until the traversal reaches the root,\n * we write a visitor that constructs provider import paths in reverse.\n *\n *\n * We use the visitedContainers set defined outside this visitor\n * because we want to run some logic only once for\n * each container in the tree. That logic can be described as:\n *\n *\n * 1. for each discovered_provider and discovered_path in the incomplete provider paths we've\n * already discovered\n * 2. get the first container in discovered_path\n * 3. if that first container is in the imports array of the container we're visiting\n * Then the container we're visiting is also in the import path of discovered_provider, so we\n * unshift discovered_path with the container we're currently visiting\n *\n *\n * Example Run:\n * ```\n * ┌──────────â”\n * │containerA│\n * ┌─imports-─┤ ├──imports─â”\n * │ │ provA │ │\n * │ │ provB │ │\n * │ └──────────┘ │\n * │ │\n * ┌▼─────────┠┌────────▼─â”\n * │containerB│ │containerC│\n * │ │ │ │\n * │ provD │ │ provF │\n * │ provE │ │ provG │\n * └──────────┘ └──────────┘\n * ```\n *\n * Each step of the traversal,\n *\n * ```\n * visitor(provD, containerB)\n * providerToPath === Map { provD => [containerB] }\n * visitedContainers === Set { containerB }\n *\n * visitor(provE, containerB)\n * providerToPath === Map { provD => [containerB], provE => [containerB] }\n * visitedContainers === Set { containerB }\n *\n * visitor(provF, containerC)\n * providerToPath === Map { provD => [containerB], provE => [containerB], provF => [containerC] }\n * visitedContainers === Set { containerB, containerC }\n *\n * visitor(provG, containerC)\n * providerToPath === Map {\n * provD => [containerB], provE => [containerB], provF => [containerC], provG => [containerC]\n * }\n * visitedContainers === Set { containerB, containerC }\n *\n * visitor(provA, containerA)\n * providerToPath === Map {\n * provD => [containerA, containerB],\n * provE => [containerA, containerB],\n * provF => [containerA, containerC],\n * provG => [containerA, containerC],\n * provA => [containerA]\n * }\n * visitedContainers === Set { containerB, containerC, containerA }\n *\n * visitor(provB, containerA)\n * providerToPath === Map {\n * provD => [containerA, containerB],\n * provE => [containerA, containerB],\n * provF => [containerA, containerC],\n * provG => [containerA, containerC],\n * provA => [containerA]\n * provB => [containerA]\n * }\n * visitedContainers === Set { containerB, containerC, containerA }\n * ```\n *\n * @param providerToPath Map map of providers to paths that this function fills\n * @param visitedContainers Set a set to keep track of the containers we've already visited\n * @return function(provider SingleProvider, container: Type<unknown> | InjectorType<unknown>) =>\n * void\n */\nfunction walkProviderTreeToDiscoverImportPaths(providerToPath, visitedContainers) {\n return (provider, container) => {\n // If the provider is not already in the providerToPath map,\n // add an entry with the provider as the key and an array containing the current container as\n // the value\n if (!providerToPath.has(provider)) {\n providerToPath.set(provider, [container]);\n }\n // This block will run exactly once for each container in the import tree.\n // This is where we run the logic to check the imports array of the current\n // container to see if it's the next container in the path for our currently\n // discovered providers.\n if (!visitedContainers.has(container)) {\n // Iterate through the providers we've already seen\n for (const prov of providerToPath.keys()) {\n const existingImportPath = providerToPath.get(prov);\n let containerDef = getInjectorDef(container);\n if (!containerDef) {\n const ngModule = container.ngModule;\n containerDef = getInjectorDef(ngModule);\n }\n if (!containerDef) {\n return;\n }\n const lastContainerAddedToPath = existingImportPath[0];\n let isNextStepInPath = false;\n deepForEach(containerDef.imports, (moduleImport) => {\n if (isNextStepInPath) {\n return;\n }\n isNextStepInPath = moduleImport.ngModule === lastContainerAddedToPath ||\n moduleImport === lastContainerAddedToPath;\n if (isNextStepInPath) {\n providerToPath.get(prov)?.unshift(container);\n }\n });\n }\n }\n visitedContainers.add(container);\n };\n}\n/**\n * Gets the providers configured on an EnvironmentInjector\n *\n * @param injector EnvironmentInjector\n * @returns an array of objects representing the providers of the given injector\n */\nfunction getEnvironmentInjectorProviders(injector) {\n const providerRecordsWithoutImportPaths = getFrameworkDIDebugData().resolverToProviders.get(injector) ?? [];\n // platform injector has no provider imports container so can we skip trying to\n // find import paths\n if (isPlatformInjector(injector)) {\n return providerRecordsWithoutImportPaths;\n }\n const providerImportsContainer = getProviderImportsContainer(injector);\n if (providerImportsContainer === null) {\n // We assume that if an environment injector exists without an associated provider imports\n // container, it was created without such a container. Some examples cases where this could\n // happen:\n // - The root injector of a standalone application\n // - A router injector created by using the providers array in a lazy loaded route\n // - A manually created injector that is attached to the injector tree\n // Since each of these cases has no provider container, there is no concept of import paths,\n // so we can simply return the provider records.\n return providerRecordsWithoutImportPaths;\n }\n const providerToPath = getProviderImportPaths(providerImportsContainer);\n const providerRecords = [];\n for (const providerRecord of providerRecordsWithoutImportPaths) {\n const provider = providerRecord.provider;\n // Ignore these special providers for now until we have a cleaner way of\n // determing when they are provided by the framework vs provided by the user.\n const token = provider.provide;\n if (token === ENVIRONMENT_INITIALIZER || token === INJECTOR_DEF_TYPES) {\n continue;\n }\n let importPath = providerToPath.get(provider) ?? [];\n const def = getComponentDef(providerImportsContainer);\n const isStandaloneComponent = !!def?.standalone;\n // We prepend the component constructor in the standalone case\n // because walkProviderTree does not visit this constructor during it's traversal\n if (isStandaloneComponent) {\n importPath = [providerImportsContainer, ...importPath];\n }\n providerRecords.push({ ...providerRecord, importPath });\n }\n return providerRecords;\n}\nfunction isPlatformInjector(injector) {\n return injector instanceof R3Injector && injector.scopes.has('platform');\n}\n/**\n * Gets the providers configured on an injector.\n *\n * @param injector the injector to lookup the providers of\n * @returns ProviderRecord[] an array of objects representing the providers of the given injector\n */\nfunction getInjectorProviders(injector) {\n if (injector instanceof NodeInjector) {\n return getNodeInjectorProviders(injector);\n }\n else if (injector instanceof EnvironmentInjector) {\n return getEnvironmentInjectorProviders(injector);\n }\n throwError('getInjectorProviders only supports NodeInjector and EnvironmentInjector');\n}\n/**\n *\n * Given an injector, this function will return\n * an object containing the type and source of the injector.\n *\n * | | type | source |\n * |--------------|-------------|-------------------------------------------------------------|\n * | NodeInjector | element | DOM element that created this injector |\n * | R3Injector | environment | `injector.source` |\n * | NullInjector | null | null |\n *\n * @param injector the Injector to get metadata for\n * @returns an object containing the type and source of the given injector. If the injector metadata\n * cannot be determined, returns null.\n */\nfunction getInjectorMetadata(injector) {\n if (injector instanceof NodeInjector) {\n const lView = getNodeInjectorLView(injector);\n const tNode = getNodeInjectorTNode(injector);\n assertTNodeForLView(tNode, lView);\n return { type: 'element', source: getNativeByTNode(tNode, lView) };\n }\n if (injector instanceof R3Injector) {\n return { type: 'environment', source: injector.source ?? null };\n }\n if (injector instanceof NullInjector) {\n return { type: 'null', source: null };\n }\n return null;\n}\nfunction getInjectorResolutionPath(injector) {\n const resolutionPath = [injector];\n getInjectorResolutionPathHelper(injector, resolutionPath);\n return resolutionPath;\n}\nfunction getInjectorResolutionPathHelper(injector, resolutionPath) {\n const parent = getInjectorParent(injector);\n // if getInjectorParent can't find a parent, then we've either reached the end\n // of the path, or we need to move from the Element Injector tree to the\n // module injector tree using the first injector in our path as the connection point.\n if (parent === null) {\n if (injector instanceof NodeInjector) {\n const firstInjector = resolutionPath[0];\n if (firstInjector instanceof NodeInjector) {\n const moduleInjector = getModuleInjectorOfNodeInjector(firstInjector);\n if (moduleInjector === null) {\n throwError('NodeInjector must have some connection to the module injector tree');\n }\n resolutionPath.push(moduleInjector);\n getInjectorResolutionPathHelper(moduleInjector, resolutionPath);\n }\n return resolutionPath;\n }\n }\n else {\n resolutionPath.push(parent);\n getInjectorResolutionPathHelper(parent, resolutionPath);\n }\n return resolutionPath;\n}\n/**\n * Gets the parent of an injector.\n *\n * This function is not able to make the jump from the Element Injector Tree to the Module\n * injector tree. This is because the \"parent\" (the next step in the reoslution path)\n * of a root NodeInjector is dependent on which NodeInjector ancestor initiated\n * the DI lookup. See getInjectorResolutionPath for a function that can make this jump.\n *\n * In the below diagram:\n * ```ts\n * getInjectorParent(NodeInjectorB)\n * > NodeInjectorA\n * getInjectorParent(NodeInjectorA) // or getInjectorParent(getInjectorParent(NodeInjectorB))\n * > null // cannot jump to ModuleInjector tree\n * ```\n *\n * ```\n * ┌───────┠┌───────────────────â”\n * ┌───────────┤ModuleA├───Injector────►│EnvironmentInjector│\n * │ └───┬───┘ └───────────────────┘\n * │ │\n * │ bootstraps\n * │ │\n * │ │\n * │ ┌────▼─────┠┌─────────────â”\n * declares │ComponentA├────Injector────►│NodeInjectorA│\n * │ └────┬─────┘ └─────▲───────┘\n * │ │ │\n * │ renders parent\n * │ │ │\n * │ ┌────▼─────┠┌─────┴───────â”\n * └─────────►│ComponentB├────Injector────►│NodeInjectorB│\n * └──────────┘ └─────────────┘\n *```\n *\n * @param injector an Injector to get the parent of\n * @returns Injector the parent of the given injector\n */\nfunction getInjectorParent(injector) {\n if (injector instanceof R3Injector) {\n return injector.parent;\n }\n let tNode;\n let lView;\n if (injector instanceof NodeInjector) {\n tNode = getNodeInjectorTNode(injector);\n lView = getNodeInjectorLView(injector);\n }\n else if (injector instanceof NullInjector) {\n return null;\n }\n else if (injector instanceof ChainedInjector) {\n return injector.parentInjector;\n }\n else {\n throwError('getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector, ChainedInjector');\n }\n const parentLocation = getParentInjectorLocation(tNode, lView);\n if (hasParentInjector(parentLocation)) {\n const parentInjectorIndex = getParentInjectorIndex(parentLocation);\n const parentLView = getParentInjectorView(parentLocation, lView);\n const parentTView = parentLView[TVIEW];\n const parentTNode = parentTView.data[parentInjectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n return new NodeInjector(parentTNode, parentLView);\n }\n else {\n const chainedInjector = lView[INJECTOR];\n // Case where chainedInjector.injector is an OutletInjector and chainedInjector.injector.parent\n // is a NodeInjector.\n // todo(aleksanderbodurri): ideally nothing in packages/core should deal\n // directly with router concerns. Refactor this so that we can make the jump from\n // NodeInjector -> OutletInjector -> NodeInjector\n // without explictly relying on types contracts from packages/router\n const injectorParent = chainedInjector.injector?.parent;\n if (injectorParent instanceof NodeInjector) {\n return injectorParent;\n }\n }\n return null;\n}\n/**\n * Gets the module injector of a NodeInjector.\n *\n * @param injector NodeInjector to get module injector of\n * @returns Injector representing module injector of the given NodeInjector\n */\nfunction getModuleInjectorOfNodeInjector(injector) {\n let lView;\n if (injector instanceof NodeInjector) {\n lView = getNodeInjectorLView(injector);\n }\n else {\n throwError('getModuleInjectorOfNodeInjector must be called with a NodeInjector');\n }\n const inj = lView[INJECTOR];\n const moduleInjector = (inj instanceof ChainedInjector) ? inj.parentInjector : inj.parent;\n if (!moduleInjector) {\n throwError('NodeInjector must have some connection to the module injector tree');\n }\n return moduleInjector;\n}\n\n/**\n * This file introduces series of globally accessible debug tools\n * to allow for the Angular debugging story to function.\n *\n * To see this in action run the following command:\n *\n * bazel run //packages/core/test/bundling/todo:devserver\n *\n * Then load `localhost:5432` and start using the console tools.\n */\n/**\n * This value reflects the property on the window where the dev\n * tools are patched (window.ng).\n * */\nconst GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';\nconst globalUtilsFunctions = {\n /**\n * Warning: functions that start with `ɵ` are considered *INTERNAL* and should not be relied upon\n * in application's code. The contract of those functions might be changed in any release and/or a\n * function can be removed completely.\n */\n 'ɵgetDependenciesFromInjectable': getDependenciesFromInjectable,\n 'ɵgetInjectorProviders': getInjectorProviders,\n 'ɵgetInjectorResolutionPath': getInjectorResolutionPath,\n 'ɵgetInjectorMetadata': getInjectorMetadata,\n 'ɵsetProfiler': setProfiler,\n 'getDirectiveMetadata': getDirectiveMetadata$1,\n 'getComponent': getComponent$1,\n 'getContext': getContext,\n 'getListeners': getListeners,\n 'getOwningComponent': getOwningComponent,\n 'getHostElement': getHostElement,\n 'getInjector': getInjector,\n 'getRootComponents': getRootComponents,\n 'getDirectives': getDirectives,\n 'applyChanges': applyChanges,\n 'isSignal': isSignal,\n};\nlet _published = false;\n/**\n * Publishes a collection of default debug tools onto`window.ng`.\n *\n * These functions are available globally when Angular is in development\n * mode and are automatically stripped away from prod mode is on.\n */\nfunction publishDefaultGlobalUtils$1() {\n if (!_published) {\n _published = true;\n if (typeof window !== 'undefined') {\n // Only configure the injector profiler when running in the browser.\n setupFrameworkInjectorProfiler();\n }\n for (const [methodName, method] of Object.entries(globalUtilsFunctions)) {\n publishGlobalUtil(methodName, method);\n }\n }\n}\n/**\n * Publishes the given function to `window.ng` so that it can be\n * used from the browser console when an application is not in production.\n */\nfunction publishGlobalUtil(name, fn) {\n if (typeof COMPILED === 'undefined' || !COMPILED) {\n // Note: we can't export `ng` when using closure enhanced optimization as:\n // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n // - we can't declare a closure extern as the namespace `ng` is already used within Google\n // for typings for AngularJS (via `goog.provide('ng....')`).\n const w = _global;\n ngDevMode && assertDefined(fn, 'function not defined');\n w[GLOBAL_PUBLISH_EXPANDO_KEY] ??= {};\n w[GLOBAL_PUBLISH_EXPANDO_KEY][name] = fn;\n }\n}\n\n/**\n * Internal injection token that can used to access an instance of a Testability class.\n *\n * This token acts as a bridge between the core bootstrap code and the `Testability` class. This is\n * needed to ensure that there are no direct references to the `Testability` class, so it can be\n * tree-shaken away (if not referenced). For the environments/setups when the `Testability` class\n * should be available, this token is used to add a provider that references the `Testability`\n * class. Otherwise, only this token is retained in a bundle, but the `Testability` class is not.\n */\nconst TESTABILITY = new InjectionToken('');\n/**\n * Internal injection token to retrieve Testability getter class instance.\n */\nconst TESTABILITY_GETTER = new InjectionToken('');\n/**\n * The Testability service provides testing hooks that can be accessed from\n * the browser.\n *\n * Angular applications bootstrapped using an NgModule (via `@NgModule.bootstrap` field) will also\n * instantiate Testability by default (in both development and production modes).\n *\n * For applications bootstrapped using the `bootstrapApplication` function, Testability is not\n * included by default. You can include it into your applications by getting the list of necessary\n * providers using the `provideProtractorTestingSupport()` function and adding them into the\n * `options.providers` array. Example:\n *\n * ```typescript\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);\n * ```\n *\n * @publicApi\n */\nclass Testability {\n constructor(_ngZone, registry, testabilityGetter) {\n this._ngZone = _ngZone;\n this.registry = registry;\n this._pendingCount = 0;\n this._isZoneStable = true;\n this._callbacks = [];\n this.taskTrackingZone = null;\n // If there was no Testability logic registered in the global scope\n // before, register the current testability getter as a global one.\n if (!_testabilityGetter) {\n setTestabilityGetter(testabilityGetter);\n testabilityGetter.addToWindow(registry);\n }\n this._watchAngularEvents();\n _ngZone.run(() => {\n this.taskTrackingZone =\n typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');\n });\n }\n _watchAngularEvents() {\n this._ngZone.onUnstable.subscribe({\n next: () => {\n this._isZoneStable = false;\n }\n });\n this._ngZone.runOutsideAngular(() => {\n this._ngZone.onStable.subscribe({\n next: () => {\n NgZone.assertNotInAngularZone();\n queueMicrotask(() => {\n this._isZoneStable = true;\n this._runCallbacksIfReady();\n });\n }\n });\n });\n }\n /**\n * Increases the number of pending request\n * @deprecated pending requests are now tracked with zones.\n */\n increasePendingRequestCount() {\n this._pendingCount += 1;\n return this._pendingCount;\n }\n /**\n * Decreases the number of pending request\n * @deprecated pending requests are now tracked with zones\n */\n decreasePendingRequestCount() {\n this._pendingCount -= 1;\n if (this._pendingCount < 0) {\n throw new Error('pending async requests below zero');\n }\n this._runCallbacksIfReady();\n return this._pendingCount;\n }\n /**\n * Whether an associated application is stable\n */\n isStable() {\n return this._isZoneStable && this._pendingCount === 0 && !this._ngZone.hasPendingMacrotasks;\n }\n _runCallbacksIfReady() {\n if (this.isStable()) {\n // Schedules the call backs in a new frame so that it is always async.\n queueMicrotask(() => {\n while (this._callbacks.length !== 0) {\n let cb = this._callbacks.pop();\n clearTimeout(cb.timeoutId);\n cb.doneCb();\n }\n });\n }\n else {\n // Still not stable, send updates.\n let pending = this.getPendingTasks();\n this._callbacks = this._callbacks.filter((cb) => {\n if (cb.updateCb && cb.updateCb(pending)) {\n clearTimeout(cb.timeoutId);\n return false;\n }\n return true;\n });\n }\n }\n getPendingTasks() {\n if (!this.taskTrackingZone) {\n return [];\n }\n // Copy the tasks data so that we don't leak tasks.\n return this.taskTrackingZone.macroTasks.map((t) => {\n return {\n source: t.source,\n // From TaskTrackingZone:\n // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40\n creationLocation: t.creationLocation,\n data: t.data\n };\n });\n }\n addCallback(cb, timeout, updateCb) {\n let timeoutId = -1;\n if (timeout && timeout > 0) {\n timeoutId = setTimeout(() => {\n this._callbacks = this._callbacks.filter((cb) => cb.timeoutId !== timeoutId);\n cb();\n }, timeout);\n }\n this._callbacks.push({ doneCb: cb, timeoutId: timeoutId, updateCb: updateCb });\n }\n /**\n * Wait for the application to be stable with a timeout. If the timeout is reached before that\n * happens, the callback receives a list of the macro tasks that were pending, otherwise null.\n *\n * @param doneCb The callback to invoke when Angular is stable or the timeout expires\n * whichever comes first.\n * @param timeout Optional. The maximum time to wait for Angular to become stable. If not\n * specified, whenStable() will wait forever.\n * @param updateCb Optional. If specified, this callback will be invoked whenever the set of\n * pending macrotasks changes. If this callback returns true doneCb will not be invoked\n * and no further updates will be issued.\n */\n whenStable(doneCb, timeout, updateCb) {\n if (updateCb && !this.taskTrackingZone) {\n throw new Error('Task tracking zone is required when passing an update callback to ' +\n 'whenStable(). Is \"zone.js/plugins/task-tracking\" loaded?');\n }\n this.addCallback(doneCb, timeout, updateCb);\n this._runCallbacksIfReady();\n }\n /**\n * Get the number of pending requests\n * @deprecated pending requests are now tracked with zones\n */\n getPendingRequestCount() {\n return this._pendingCount;\n }\n /**\n * Registers an application with a testability hook so that it can be tracked.\n * @param token token of application, root element\n *\n * @internal\n */\n registerApplication(token) {\n this.registry.registerApplication(token, this);\n }\n /**\n * Unregisters an application.\n * @param token token of application, root element\n *\n * @internal\n */\n unregisterApplication(token) {\n this.registry.unregisterApplication(token);\n }\n /**\n * Find providers by name\n * @param using The root element to search from\n * @param provider The name of binding variable\n * @param exactMatch Whether using exactMatch\n */\n findProviders(using, provider, exactMatch) {\n // TODO(juliemr): implement.\n return [];\n }\n static { this.ɵfac = function Testability_Factory(t) { return new (t || Testability)(ɵɵinject(NgZone), ɵɵinject(TestabilityRegistry), ɵɵinject(TESTABILITY_GETTER)); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Testability, factory: Testability.ɵfac }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Testability, [{\n type: Injectable\n }], () => [{ type: NgZone }, { type: TestabilityRegistry }, { type: undefined, decorators: [{\n type: Inject,\n args: [TESTABILITY_GETTER]\n }] }], null); })();\n/**\n * A global registry of {@link Testability} instances for specific elements.\n * @publicApi\n */\nclass TestabilityRegistry {\n constructor() {\n /** @internal */\n this._applications = new Map();\n }\n /**\n * Registers an application with a testability hook so that it can be tracked\n * @param token token of application, root element\n * @param testability Testability hook\n */\n registerApplication(token, testability) {\n this._applications.set(token, testability);\n }\n /**\n * Unregisters an application.\n * @param token token of application, root element\n */\n unregisterApplication(token) {\n this._applications.delete(token);\n }\n /**\n * Unregisters all applications\n */\n unregisterAllApplications() {\n this._applications.clear();\n }\n /**\n * Get a testability hook associated with the application\n * @param elem root element\n */\n getTestability(elem) {\n return this._applications.get(elem) || null;\n }\n /**\n * Get all registered testabilities\n */\n getAllTestabilities() {\n return Array.from(this._applications.values());\n }\n /**\n * Get all registered applications(root elements)\n */\n getAllRootElements() {\n return Array.from(this._applications.keys());\n }\n /**\n * Find testability of a node in the Tree\n * @param elem node\n * @param findInAncestors whether finding testability in ancestors if testability was not found in\n * current node\n */\n findTestabilityInTree(elem, findInAncestors = true) {\n return _testabilityGetter?.findTestabilityInTree(this, elem, findInAncestors) ?? null;\n }\n static { this.ɵfac = function TestabilityRegistry_Factory(t) { return new (t || TestabilityRegistry)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac, providedIn: 'platform' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{\n type: Injectable,\n args: [{ providedIn: 'platform' }]\n }], null, null); })();\n/**\n * Set the {@link GetTestability} implementation used by the Angular testing framework.\n * @publicApi\n */\nfunction setTestabilityGetter(getter) {\n _testabilityGetter = getter;\n}\nlet _testabilityGetter;\n\n/**\n * Determine if the argument is shaped like a Promise\n */\nfunction isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}\n/**\n * Determine if the argument is a Subscribable\n */\nfunction isSubscribable(obj) {\n return !!obj && typeof obj.subscribe === 'function';\n}\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that you can use to provide\n * one or more initialization functions.\n *\n * The provided functions are injected at application startup and executed during\n * app initialization. If any of these functions returns a Promise or an Observable, initialization\n * does not complete until the Promise is resolved or the Observable is completed.\n *\n * You can, for example, create a factory function that loads language data\n * or an external configuration, and provide that function to the `APP_INITIALIZER` token.\n * The function is executed during the application bootstrap process,\n * and the needed data is available on startup.\n *\n * @see {@link ApplicationInitStatus}\n *\n * @usageNotes\n *\n * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token\n * and a function returning a promise.\n * ### Example with NgModule-based application\n * ```\n * function initializeApp(): Promise<any> {\n * return new Promise((resolve, reject) => {\n * // Do some asynchronous stuff\n * resolve();\n * });\n * }\n *\n * @NgModule({\n * imports: [BrowserModule],\n * declarations: [AppComponent],\n * bootstrap: [AppComponent],\n * providers: [{\n * provide: APP_INITIALIZER,\n * useFactory: () => initializeApp,\n * multi: true\n * }]\n * })\n * export class AppModule {}\n * ```\n *\n * ### Example with standalone application\n * ```\n * export function initializeApp(http: HttpClient) {\n * return (): Promise<any> =>\n * firstValueFrom(\n * http\n * .get(\"https://someUrl.com/api/user\")\n * .pipe(tap(user => { ... }))\n * );\n * }\n *\n * bootstrapApplication(App, {\n * providers: [\n * provideHttpClient(),\n * {\n * provide: APP_INITIALIZER,\n * useFactory: initializeApp,\n * multi: true,\n * deps: [HttpClient],\n * },\n * ],\n * });\n\n * ```\n *\n *\n * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function\n * returning an observable, see an example below. Note: the `HttpClient` in this example is used for\n * demo purposes to illustrate how the factory function can work with other providers available\n * through DI.\n *\n * ### Example with NgModule-based application\n * ```\n * function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {\n * return () => httpClient.get(\"https://someUrl.com/api/user\")\n * .pipe(\n * tap(user => { ... })\n * );\n * }\n *\n * @NgModule({\n * imports: [BrowserModule, HttpClientModule],\n * declarations: [AppComponent],\n * bootstrap: [AppComponent],\n * providers: [{\n * provide: APP_INITIALIZER,\n * useFactory: initializeAppFactory,\n * deps: [HttpClient],\n * multi: true\n * }]\n * })\n * export class AppModule {}\n * ```\n *\n * ### Example with standalone application\n * ```\n * function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {\n * return () => httpClient.get(\"https://someUrl.com/api/user\")\n * .pipe(\n * tap(user => { ... })\n * );\n * }\n *\n * bootstrapApplication(App, {\n * providers: [\n * provideHttpClient(),\n * {\n * provide: APP_INITIALIZER,\n * useFactory: initializeAppFactory,\n * multi: true,\n * deps: [HttpClient],\n * },\n * ],\n * });\n * ```\n *\n * @publicApi\n */\nconst APP_INITIALIZER = new InjectionToken(ngDevMode ? 'Application Initializer' : '');\n/**\n * A class that reflects the state of running {@link APP_INITIALIZER} functions.\n *\n * @publicApi\n */\nclass ApplicationInitStatus {\n constructor() {\n this.initialized = false;\n this.done = false;\n this.donePromise = new Promise((res, rej) => {\n this.resolve = res;\n this.reject = rej;\n });\n this.appInits = inject(APP_INITIALIZER, { optional: true }) ?? [];\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !Array.isArray(this.appInits)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_INITIALIZER` token value ' +\n `(expected an array, but got ${typeof this.appInits}). ` +\n 'Please check that the `APP_INITIALIZER` token is configured as a ' +\n '`multi: true` provider.');\n }\n }\n /** @internal */\n runInitializers() {\n if (this.initialized) {\n return;\n }\n const asyncInitPromises = [];\n for (const appInits of this.appInits) {\n const initResult = appInits();\n if (isPromise(initResult)) {\n asyncInitPromises.push(initResult);\n }\n else if (isSubscribable(initResult)) {\n const observableAsPromise = new Promise((resolve, reject) => {\n initResult.subscribe({ complete: resolve, error: reject });\n });\n asyncInitPromises.push(observableAsPromise);\n }\n }\n const complete = () => {\n // @ts-expect-error overwriting a readonly\n this.done = true;\n this.resolve();\n };\n Promise.all(asyncInitPromises)\n .then(() => {\n complete();\n })\n .catch(e => {\n this.reject(e);\n });\n if (asyncInitPromises.length === 0) {\n complete();\n }\n this.initialized = true;\n }\n static { this.ɵfac = function ApplicationInitStatus_Factory(t) { return new (t || ApplicationInitStatus)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationInitStatus, factory: ApplicationInitStatus.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationInitStatus, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], () => [], null); })();\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that provides a set of callbacks to\n * be called for every component that is bootstrapped.\n *\n * Each callback must take a `ComponentRef` instance and return nothing.\n *\n * `(componentRef: ComponentRef) => void`\n *\n * @publicApi\n */\nconst APP_BOOTSTRAP_LISTENER = new InjectionToken(ngDevMode ? 'appBootstrapListener' : '');\nfunction publishDefaultGlobalUtils() {\n ngDevMode && publishDefaultGlobalUtils$1();\n}\n/**\n * Sets the error for an invalid write to a signal to be an Angular `RuntimeError`.\n */\nfunction publishSignalConfiguration() {\n setThrowInvalidWriteToSignalError$1(() => {\n throw new RuntimeError(600 /* RuntimeErrorCode.SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT */, ngDevMode &&\n 'Writing to signals is not allowed in a `computed` or an `effect` by default. ' +\n 'Use `allowSignalWrites` in the `CreateEffectOptions` to enable this inside effects.');\n });\n}\nfunction isBoundToModule(cf) {\n return cf.isBoundToModule;\n}\n/**\n * A token for third-party components that can register themselves with NgProbe.\n *\n * @deprecated\n * @publicApi\n */\nclass NgProbeToken {\n constructor(name, token) {\n this.name = name;\n this.token = token;\n }\n}\nfunction _callAndReportToErrorHandler(errorHandler, ngZone, callback) {\n try {\n const result = callback();\n if (isPromise(result)) {\n return result.catch((e) => {\n ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n // rethrow as the exception handler might not do it\n throw e;\n });\n }\n return result;\n }\n catch (e) {\n ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n // rethrow as the exception handler might not do it\n throw e;\n }\n}\nfunction optionsReducer(dst, objs) {\n if (Array.isArray(objs)) {\n return objs.reduce(optionsReducer, dst);\n }\n return { ...dst, ...objs };\n}\n/**\n * A reference to an Angular application running on a page.\n *\n * @usageNotes\n * {@a is-stable-examples}\n * ### isStable examples and caveats\n *\n * Note two important points about `isStable`, demonstrated in the examples below:\n * - the application will never be stable if you start any kind\n * of recurrent asynchronous task when the application starts\n * (for example for a polling process, started with a `setInterval`, a `setTimeout`\n * or using RxJS operators like `interval`);\n * - the `isStable` Observable runs outside of the Angular zone.\n *\n * Let's imagine that you start a recurrent task\n * (here incrementing a counter, using RxJS `interval`),\n * and at the same time subscribe to `isStable`.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * filter(stable => stable)\n * ).subscribe(() => console.log('App is stable now');\n * interval(1000).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, `isStable` will never emit `true`,\n * and the trace \"App is stable now\" will never get logged.\n *\n * If you want to execute something when the app is stable,\n * you have to wait for the application to be stable\n * before starting your polling process.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * tap(stable => console.log('App is stable now')),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, the trace \"App is stable now\" will be logged\n * and then the counter starts incrementing every second.\n *\n * Note also that this Observable runs outside of the Angular zone,\n * which means that the code in the subscription\n * to this Observable will not trigger the change detection.\n *\n * Let's imagine that instead of logging the counter value,\n * you update a field of your component\n * and display it in its template.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => this.value = counter);\n * }\n * ```\n * As the `isStable` Observable runs outside the zone,\n * the `value` field will be updated properly,\n * but the template will not be refreshed!\n *\n * You'll have to manually trigger the change detection to update the template.\n *\n * ```\n * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => {\n * this.value = counter;\n * cd.detectChanges();\n * });\n * }\n * ```\n *\n * Or make the subscription callback run inside the zone.\n *\n * ```\n * constructor(appRef: ApplicationRef, zone: NgZone) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => zone.run(() => this.value = counter));\n * }\n * ```\n *\n * @publicApi\n */\nclass ApplicationRef {\n constructor() {\n /** @internal */\n this._bootstrapListeners = [];\n this._runningTick = false;\n this._destroyed = false;\n this._destroyListeners = [];\n /** @internal */\n this._views = [];\n this.internalErrorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);\n this.afterRenderEffectManager = inject(AfterRenderEventManager);\n // Needed for ComponentFixture temporarily during migration of autoDetect behavior\n // Eventually the hostView of the fixture should just attach to ApplicationRef.\n this.externalTestViews = new Set();\n this.beforeRender = new Subject();\n this.afterTick = new Subject();\n /**\n * Get a list of component types registered to this application.\n * This list is populated even before the component is created.\n */\n this.componentTypes = [];\n /**\n * Get a list of components registered to this application.\n */\n this.components = [];\n /**\n * Returns an Observable that indicates when the application is stable or unstable.\n */\n this.isStable = inject(PendingTasks).hasPendingTasks.pipe(map(pending => !pending));\n this._injector = inject(EnvironmentInjector);\n }\n /**\n * Indicates whether this instance was destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n /**\n * The `EnvironmentInjector` used to create this application.\n */\n get injector() {\n return this._injector;\n }\n /**\n * Bootstrap a component onto the element identified by its selector or, optionally, to a\n * specified element.\n *\n * @usageNotes\n * ### Bootstrap process\n *\n * When bootstrapping a component, Angular mounts it onto a target DOM element\n * and kicks off automatic change detection. The target DOM element can be\n * provided using the `rootSelectorOrNode` argument.\n *\n * If the target DOM element is not provided, Angular tries to find one on a page\n * using the `selector` of the component that is being bootstrapped\n * (first matched element is used).\n *\n * ### Example\n *\n * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,\n * but it requires us to know the component while writing the application code.\n *\n * Imagine a situation where we have to wait for an API call to decide about the component to\n * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to\n * dynamically bootstrap a component.\n *\n * {@example core/ts/platform/platform.ts region='componentSelector'}\n *\n * Optionally, a component can be mounted onto a DOM element that does not match the\n * selector of the bootstrapped component.\n *\n * In the following example, we are providing a CSS selector to match the target element.\n *\n * {@example core/ts/platform/platform.ts region='cssSelector'}\n *\n * While in this example, we are providing reference to a DOM node.\n *\n * {@example core/ts/platform/platform.ts region='domNode'}\n */\n bootstrap(componentOrFactory, rootSelectorOrNode) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n const isComponentFactory = componentOrFactory instanceof ComponentFactory$1;\n const initStatus = this._injector.get(ApplicationInitStatus);\n if (!initStatus.done) {\n const standalone = !isComponentFactory && isStandalone(componentOrFactory);\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Cannot bootstrap as there are still asynchronous initializers running.' +\n (standalone ?\n '' :\n ' Bootstrap components in the `ngDoBootstrap` method of the root module.');\n throw new RuntimeError(405 /* RuntimeErrorCode.ASYNC_INITIALIZERS_STILL_RUNNING */, errorMessage);\n }\n let componentFactory;\n if (isComponentFactory) {\n componentFactory = componentOrFactory;\n }\n else {\n const resolver = this._injector.get(ComponentFactoryResolver$1);\n componentFactory = resolver.resolveComponentFactory(componentOrFactory);\n }\n this.componentTypes.push(componentFactory.componentType);\n // Create a factory associated with the current module if it's not bound to some other\n const ngModule = isBoundToModule(componentFactory) ? undefined : this._injector.get(NgModuleRef$1);\n const selectorOrNode = rootSelectorOrNode || componentFactory.selector;\n const compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);\n const nativeElement = compRef.location.nativeElement;\n const testability = compRef.injector.get(TESTABILITY, null);\n testability?.registerApplication(nativeElement);\n compRef.onDestroy(() => {\n this.detachView(compRef.hostView);\n remove(this.components, compRef);\n testability?.unregisterApplication(nativeElement);\n });\n this._loadComponent(compRef);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const _console = this._injector.get(Console);\n _console.log(`Angular is running in development mode.`);\n }\n return compRef;\n }\n /**\n * Invoke this method to explicitly process change detection and its side-effects.\n *\n * In development mode, `tick()` also performs a second change detection cycle to ensure that no\n * further changes are detected. If additional changes are picked up during this second cycle,\n * bindings in the app have side-effects that cannot be resolved in a single change detection\n * pass.\n * In this case, Angular throws an error, since an Angular application can only have one change\n * detection pass during which all change detection must complete.\n */\n tick() {\n this._tick(true);\n }\n /** @internal */\n _tick(refreshViews) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n if (this._runningTick) {\n throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');\n }\n const prevConsumer = setActiveConsumer$1(null);\n try {\n this._runningTick = true;\n this.detectChangesInAttachedViews(refreshViews);\n if ((typeof ngDevMode === 'undefined' || ngDevMode)) {\n for (let view of this._views) {\n view.checkNoChanges();\n }\n }\n }\n catch (e) {\n // Attention: Don't rethrow as it could cancel subscriptions to Observables!\n this.internalErrorHandler(e);\n }\n finally {\n this.afterTick.next();\n this._runningTick = false;\n setActiveConsumer$1(prevConsumer);\n }\n }\n detectChangesInAttachedViews(refreshViews) {\n let runs = 0;\n const afterRenderEffectManager = this.afterRenderEffectManager;\n while (true) {\n if (runs === MAXIMUM_REFRESH_RERUNS) {\n throw new RuntimeError(103 /* RuntimeErrorCode.INFINITE_CHANGE_DETECTION */, ngDevMode &&\n 'Infinite change detection while refreshing application views. ' +\n 'Ensure afterRender or queueStateUpdate hooks are not continuously causing updates.');\n }\n if (refreshViews) {\n const isFirstPass = runs === 0;\n this.beforeRender.next(isFirstPass);\n for (let { _lView, notifyErrorHandler } of this._views) {\n detectChangesInViewIfRequired(_lView, isFirstPass, notifyErrorHandler);\n }\n }\n runs++;\n afterRenderEffectManager.executeInternalCallbacks();\n // If we have a newly dirty view after running internal callbacks, recheck the views again\n // before running user-provided callbacks\n if ([...this.externalTestViews.keys(), ...this._views].some(({ _lView }) => shouldRecheckView(_lView))) {\n continue;\n }\n afterRenderEffectManager.execute();\n // If after running all afterRender callbacks we have no more views that need to be refreshed,\n // we can break out of the loop\n if (![...this.externalTestViews.keys(), ...this._views].some(({ _lView }) => shouldRecheckView(_lView))) {\n break;\n }\n }\n }\n /**\n * Attaches a view so that it will be dirty checked.\n * The view will be automatically detached when it is destroyed.\n * This will throw if the view is already attached to a ViewContainer.\n */\n attachView(viewRef) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n const view = viewRef;\n this._views.push(view);\n view.attachToAppRef(this);\n }\n /**\n * Detaches a view from dirty checking again.\n */\n detachView(viewRef) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n const view = viewRef;\n remove(this._views, view);\n view.detachFromAppRef();\n }\n _loadComponent(componentRef) {\n this.attachView(componentRef.hostView);\n this.tick();\n this.components.push(componentRef);\n // Get the listeners lazily to prevent DI cycles.\n const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []);\n if (ngDevMode && !Array.isArray(listeners)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `APP_BOOTSTRAP_LISTENER` token value ' +\n `(expected an array, but got ${typeof listeners}). ` +\n 'Please check that the `APP_BOOTSTRAP_LISTENER` token is configured as a ' +\n '`multi: true` provider.');\n }\n [...this._bootstrapListeners, ...listeners].forEach((listener) => listener(componentRef));\n }\n /** @internal */\n ngOnDestroy() {\n if (this._destroyed)\n return;\n try {\n // Call all the lifecycle hooks.\n this._destroyListeners.forEach(listener => listener());\n // Destroy all registered views.\n this._views.slice().forEach((view) => view.destroy());\n }\n finally {\n // Indicate that this instance is destroyed.\n this._destroyed = true;\n // Release all references.\n this._views = [];\n this._bootstrapListeners = [];\n this._destroyListeners = [];\n }\n }\n /**\n * Registers a listener to be called when an instance is destroyed.\n *\n * @param callback A callback function to add as a listener.\n * @returns A function which unregisters a listener.\n */\n onDestroy(callback) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.warnIfDestroyed();\n this._destroyListeners.push(callback);\n return () => remove(this._destroyListeners, callback);\n }\n /**\n * Destroys an Angular application represented by this `ApplicationRef`. Calling this function\n * will destroy the associated environment injectors as well as all the bootstrapped components\n * with their views.\n */\n destroy() {\n if (this._destroyed) {\n throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');\n }\n const injector = this._injector;\n // Check that this injector instance supports destroy operation.\n if (injector.destroy && !injector.destroyed) {\n // Destroying an underlying injector will trigger the `ngOnDestroy` lifecycle\n // hook, which invokes the remaining cleanup actions.\n injector.destroy();\n }\n }\n /**\n * Returns the number of attached views.\n */\n get viewCount() {\n return this._views.length;\n }\n warnIfDestroyed() {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && this._destroyed) {\n console.warn(formatRuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, 'This instance of the `ApplicationRef` has already been destroyed.'));\n }\n }\n static { this.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationRef, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\nfunction remove(list, el) {\n const index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n }\n}\nlet whenStableStore;\n/**\n * Returns a Promise that resolves when the application becomes stable after this method is called\n * the first time.\n */\nfunction whenStable(applicationRef) {\n whenStableStore ??= new WeakMap();\n const cachedWhenStable = whenStableStore.get(applicationRef);\n if (cachedWhenStable) {\n return cachedWhenStable;\n }\n const whenStablePromise = applicationRef.isStable.pipe(first((isStable) => isStable)).toPromise().then(() => void 0);\n whenStableStore.set(applicationRef, whenStablePromise);\n // Be a good citizen and clean the store `onDestroy` even though we are using `WeakMap`.\n applicationRef.onDestroy(() => whenStableStore?.delete(applicationRef));\n return whenStablePromise;\n}\nfunction detectChangesInViewIfRequired(lView, isFirstPass, notifyErrorHandler) {\n // When re-checking, only check views which actually need it.\n if (!isFirstPass && !shouldRecheckView(lView)) {\n return;\n }\n detectChangesInView(lView, notifyErrorHandler, isFirstPass);\n}\nfunction shouldRecheckView(view) {\n return requiresRefreshOrTraversal(view);\n}\nfunction detectChangesInView(lView, notifyErrorHandler, isFirstPass) {\n let mode;\n if (isFirstPass) {\n // The first pass is always in Global mode, which includes `CheckAlways` views.\n mode = 0 /* ChangeDetectionMode.Global */;\n // Add `RefreshView` flag to ensure this view is refreshed if not already dirty.\n // `RefreshView` flag is used intentionally over `Dirty` because it gets cleared before\n // executing any of the actual refresh code while the `Dirty` flag doesn't get cleared\n // until the end of the refresh. Using `RefreshView` prevents creating a potential\n // difference in the state of the LViewFlags during template execution.\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n }\n else if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n // The root view has been explicitly marked for check, so check it in Global mode.\n mode = 0 /* ChangeDetectionMode.Global */;\n }\n else {\n // The view has not been marked for check, but contains a view marked for refresh\n // (likely via a signal). Start this change detection in Targeted mode to skip the root\n // view and check just the view(s) that need refreshed.\n mode = 1 /* ChangeDetectionMode.Targeted */;\n }\n detectChangesInternal(lView, notifyErrorHandler, mode);\n}\n\n/**\n * Combination of NgModuleFactory and ComponentFactories.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass ModuleWithComponentFactories {\n constructor(ngModuleFactory, componentFactories) {\n this.ngModuleFactory = ngModuleFactory;\n this.componentFactories = componentFactories;\n }\n}\n/**\n * Low-level service for running the angular compiler during runtime\n * to create {@link ComponentFactory}s, which\n * can later be used to create and render a Component instance.\n *\n * Each `@NgModule` provides an own `Compiler` to its injector,\n * that will use the directives/pipes of the ng module for compilation\n * of components.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass Compiler {\n /**\n * Compiles the given NgModule and all of its components. All templates of the components\n * have to be inlined.\n */\n compileModuleSync(moduleType) {\n return new NgModuleFactory(moduleType);\n }\n /**\n * Compiles the given NgModule and all of its components\n */\n compileModuleAsync(moduleType) {\n return Promise.resolve(this.compileModuleSync(moduleType));\n }\n /**\n * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.\n */\n compileModuleAndAllComponentsSync(moduleType) {\n const ngModuleFactory = this.compileModuleSync(moduleType);\n const moduleDef = getNgModuleDef(moduleType);\n const componentFactories = maybeUnwrapFn(moduleDef.declarations)\n .reduce((factories, declaration) => {\n const componentDef = getComponentDef(declaration);\n componentDef && factories.push(new ComponentFactory(componentDef));\n return factories;\n }, []);\n return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);\n }\n /**\n * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.\n */\n compileModuleAndAllComponentsAsync(moduleType) {\n return Promise.resolve(this.compileModuleAndAllComponentsSync(moduleType));\n }\n /**\n * Clears all caches.\n */\n clearCache() { }\n /**\n * Clears the cache for the given component/ngModule.\n */\n clearCacheFor(type) { }\n /**\n * Returns the id for a given NgModule, if one is defined and known to the compiler.\n */\n getModuleId(moduleType) {\n return undefined;\n }\n static { this.ɵfac = function Compiler_Factory(t) { return new (t || Compiler)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Compiler, factory: Compiler.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Compiler, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n/**\n * Token to provide CompilerOptions in the platform injector.\n *\n * @publicApi\n */\nconst COMPILER_OPTIONS = new InjectionToken(ngDevMode ? 'compilerOptions' : '');\n/**\n * A factory for creating a Compiler\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass CompilerFactory {\n}\n\nfunction compileNgModuleFactory(injector, options, moduleType) {\n ngDevMode && assertNgModuleType(moduleType);\n const moduleFactory = new NgModuleFactory(moduleType);\n // All of the logic below is irrelevant for AOT-compiled code.\n if (typeof ngJitMode !== 'undefined' && !ngJitMode) {\n return Promise.resolve(moduleFactory);\n }\n const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options);\n // Configure the compiler to use the provided options. This call may fail when multiple modules\n // are bootstrapped with incompatible options, as a component can only be compiled according to\n // a single set of options.\n setJitOptions({\n defaultEncapsulation: _lastDefined(compilerOptions.map(opts => opts.defaultEncapsulation)),\n preserveWhitespaces: _lastDefined(compilerOptions.map(opts => opts.preserveWhitespaces)),\n });\n if (isComponentResourceResolutionQueueEmpty()) {\n return Promise.resolve(moduleFactory);\n }\n const compilerProviders = compilerOptions.flatMap((option) => option.providers ?? []);\n // In case there are no compiler providers, we just return the module factory as\n // there won't be any resource loader. This can happen with Ivy, because AOT compiled\n // modules can be still passed through \"bootstrapModule\". In that case we shouldn't\n // unnecessarily require the JIT compiler.\n if (compilerProviders.length === 0) {\n return Promise.resolve(moduleFactory);\n }\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'NgModule',\n type: moduleType,\n });\n const compilerInjector = Injector.create({ providers: compilerProviders });\n const resourceLoader = compilerInjector.get(compiler.ResourceLoader);\n // The resource loader can also return a string while the \"resolveComponentResources\"\n // always expects a promise. Therefore we need to wrap the returned value in a promise.\n return resolveComponentResources(url => Promise.resolve(resourceLoader.get(url)))\n .then(() => moduleFactory);\n}\nfunction _lastDefined(args) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nclass NgZoneChangeDetectionScheduler {\n constructor() {\n this.zone = inject(NgZone);\n this.applicationRef = inject(ApplicationRef);\n }\n initialize() {\n if (this._onMicrotaskEmptySubscription) {\n return;\n }\n this._onMicrotaskEmptySubscription = this.zone.onMicrotaskEmpty.subscribe({\n next: () => {\n this.zone.run(() => {\n this.applicationRef.tick();\n });\n }\n });\n }\n ngOnDestroy() {\n this._onMicrotaskEmptySubscription?.unsubscribe();\n }\n static { this.ɵfac = function NgZoneChangeDetectionScheduler_Factory(t) { return new (t || NgZoneChangeDetectionScheduler)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: NgZoneChangeDetectionScheduler, factory: NgZoneChangeDetectionScheduler.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(NgZoneChangeDetectionScheduler, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n/**\n * Internal token used to verify that `provideZoneChangeDetection` is not used\n * with the bootstrapModule API.\n */\nconst PROVIDED_NG_ZONE = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'provideZoneChangeDetection token' : '');\nfunction internalProvideZoneChangeDetection(ngZoneFactory) {\n return [\n { provide: NgZone, useFactory: ngZoneFactory },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const ngZoneChangeDetectionScheduler = inject(NgZoneChangeDetectionScheduler, { optional: true });\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n ngZoneChangeDetectionScheduler === null) {\n throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, `A required Injectable was not found in the dependency injection tree. ` +\n 'If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.');\n }\n return () => ngZoneChangeDetectionScheduler.initialize();\n },\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const service = inject(ZoneStablePendingTask);\n return () => {\n service.initialize();\n };\n }\n },\n { provide: INTERNAL_APPLICATION_ERROR_HANDLER, useFactory: ngZoneApplicationErrorHandlerFactory },\n ];\n}\nfunction ngZoneApplicationErrorHandlerFactory() {\n const zone = inject(NgZone);\n const userErrorHandler = inject(ErrorHandler);\n return (e) => zone.runOutsideAngular(() => userErrorHandler.handleError(e));\n}\n/**\n * Provides `NgZone`-based change detection for the application bootstrapped using\n * `bootstrapApplication`.\n *\n * `NgZone` is already provided in applications by default. This provider allows you to configure\n * options like `eventCoalescing` in the `NgZone`.\n * This provider is not available for `platformBrowser().bootstrapModule`, which uses\n * `BootstrapOptions` instead.\n *\n * @usageNotes\n * ```typescript\n * bootstrapApplication(MyApp, {providers: [\n * provideZoneChangeDetection({eventCoalescing: true}),\n * ]});\n * ```\n *\n * @publicApi\n * @see {@link bootstrapApplication}\n * @see {@link NgZoneOptions}\n */\nfunction provideZoneChangeDetection(options) {\n const zoneProviders = internalProvideZoneChangeDetection(() => new NgZone(getNgZoneOptions(options)));\n return makeEnvironmentProviders([\n (typeof ngDevMode === 'undefined' || ngDevMode) ? { provide: PROVIDED_NG_ZONE, useValue: true } :\n [],\n zoneProviders,\n ]);\n}\n// Transforms a set of `BootstrapOptions` (supported by the NgModule-based bootstrap APIs) ->\n// `NgZoneOptions` that are recognized by the NgZone constructor. Passing no options will result in\n// a set of default options returned.\nfunction getNgZoneOptions(options) {\n return {\n enableLongStackTrace: typeof ngDevMode === 'undefined' ? false : !!ngDevMode,\n shouldCoalesceEventChangeDetection: options?.eventCoalescing ?? false,\n shouldCoalesceRunChangeDetection: options?.runCoalescing ?? false,\n };\n}\nclass ZoneStablePendingTask {\n constructor() {\n this.subscription = new Subscription();\n this.initialized = false;\n this.zone = inject(NgZone);\n this.pendingTasks = inject(PendingTasks);\n }\n initialize() {\n if (this.initialized) {\n return;\n }\n this.initialized = true;\n let task = null;\n if (!this.zone.isStable && !this.zone.hasPendingMacrotasks && !this.zone.hasPendingMicrotasks) {\n task = this.pendingTasks.add();\n }\n this.zone.runOutsideAngular(() => {\n this.subscription.add(this.zone.onStable.subscribe(() => {\n NgZone.assertNotInAngularZone();\n // Check whether there are no pending macro/micro tasks in the next tick\n // to allow for NgZone to update the state.\n queueMicrotask(() => {\n if (task !== null && !this.zone.hasPendingMacrotasks && !this.zone.hasPendingMicrotasks) {\n this.pendingTasks.remove(task);\n task = null;\n }\n });\n }));\n });\n this.subscription.add(this.zone.onUnstable.subscribe(() => {\n NgZone.assertInAngularZone();\n task ??= this.pendingTasks.add();\n }));\n }\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n static { this.ɵfac = function ZoneStablePendingTask_Factory(t) { return new (t || ZoneStablePendingTask)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ZoneStablePendingTask, factory: ZoneStablePendingTask.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ZoneStablePendingTask, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\n\n/**\n * Work out the locale from the potential global properties.\n *\n * * Closure Compiler: use `goog.LOCALE`.\n * * Ivy enabled: use `$localize.locale`\n */\nfunction getGlobalLocale() {\n if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode &&\n typeof goog !== 'undefined' && goog.LOCALE !== 'en') {\n // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.\n // * In order to preserve backwards compatibility, we use Angular default value over\n // Closure Compiler's one.\n return goog.LOCALE;\n }\n else {\n // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE\n // COMPILE-TIME INLINER.\n //\n // * During compile time inlining of translations the expression will be replaced\n // with a string literal that is the current locale. Other forms of this expression are not\n // guaranteed to be replaced.\n //\n // * During runtime translation evaluation, the developer is required to set `$localize.locale`\n // if required, or just to provide their own `LOCALE_ID` provider.\n return (typeof $localize !== 'undefined' && $localize.locale) || DEFAULT_LOCALE_ID;\n }\n}\n/**\n * Provide this token to set the locale of your application.\n * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,\n * DecimalPipe and PercentPipe) and by ICU expressions.\n *\n * See the [i18n guide](guide/i18n-common-locale-id) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { LOCALE_ID } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: LOCALE_ID, useValue: 'en-US' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst LOCALE_ID = new InjectionToken(ngDevMode ? 'LocaleId' : '', {\n providedIn: 'root',\n factory: () => inject(LOCALE_ID, InjectFlags.Optional | InjectFlags.SkipSelf) || getGlobalLocale(),\n});\n/**\n * Provide this token to set the default currency code your application uses for\n * CurrencyPipe when there is no currency code passed into it. This is only used by\n * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.\n *\n * See the [i18n guide](guide/i18n-common-locale-id) for more information.\n *\n * <div class=\"alert is-helpful\">\n *\n * **Deprecation notice:**\n *\n * The default currency code is currently always `USD` but this is deprecated from v9.\n *\n * **In v10 the default currency code will be taken from the current locale.**\n *\n * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in\n * your application `NgModule`:\n *\n * ```ts\n * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}\n * ```\n *\n * </div>\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst DEFAULT_CURRENCY_CODE = new InjectionToken(ngDevMode ? 'DefaultCurrencyCode' : '', {\n providedIn: 'root',\n factory: () => USD_CURRENCY_CODE,\n});\n/**\n * Use this token at bootstrap to provide the content of your translation file (`xtb`,\n * `xlf` or `xlf2`) when you want to translate your application in another language.\n *\n * See the [i18n guide](guide/i18n-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { TRANSLATIONS } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * // content of your translation file\n * const translations = '....';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: TRANSLATIONS, useValue: translations }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS = new InjectionToken(ngDevMode ? 'Translations' : '');\n/**\n * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,\n * `xlf` or `xlf2`.\n *\n * See the [i18n guide](guide/i18n-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { TRANSLATIONS_FORMAT } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS_FORMAT = new InjectionToken(ngDevMode ? 'TranslationsFormat' : '');\n/**\n * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy\n * that the compiler should use in case of missing translations:\n * - Error: throw if you have missing translations.\n * - Warning (default): show a warning in the console and/or shell.\n * - Ignore: do nothing.\n *\n * See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * import { MissingTranslationStrategy } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * missingTranslation: MissingTranslationStrategy.Error\n * });\n * ```\n *\n * @publicApi\n */\nvar MissingTranslationStrategy;\n(function (MissingTranslationStrategy) {\n MissingTranslationStrategy[MissingTranslationStrategy[\"Error\"] = 0] = \"Error\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Warning\"] = 1] = \"Warning\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Ignore\"] = 2] = \"Ignore\";\n})(MissingTranslationStrategy || (MissingTranslationStrategy = {}));\n\n/**\n * Internal token that allows to register extra callbacks that should be invoked during the\n * `PlatformRef.destroy` operation. This token is needed to avoid a direct reference to the\n * `PlatformRef` class (i.e. register the callback via `PlatformRef.onDestroy`), thus making the\n * entire class tree-shakeable.\n */\nconst PLATFORM_DESTROY_LISTENERS = new InjectionToken(ngDevMode ? 'PlatformDestroyListeners' : '');\n/**\n * The Angular platform is the entry point for Angular on a web page.\n * Each page has exactly one platform. Services (such as reflection) which are common\n * to every Angular application running on the page are bound in its scope.\n * A page's platform is initialized implicitly when a platform is created using a platform\n * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.\n *\n * @publicApi\n */\nclass PlatformRef {\n /** @internal */\n constructor(_injector) {\n this._injector = _injector;\n this._modules = [];\n this._destroyListeners = [];\n this._destroyed = false;\n }\n /**\n * Creates an instance of an `@NgModule` for the given platform.\n *\n * @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function\n * argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.\n */\n bootstrapModuleFactory(moduleFactory, options) {\n // Note: We need to create the NgZone _before_ we instantiate the module,\n // as instantiating the module creates some providers eagerly.\n // So we create a mini parent injector that just contains the new NgZone and\n // pass that as parent to the NgModuleFactory.\n const ngZone = getNgZone(options?.ngZone, getNgZoneOptions({\n eventCoalescing: options?.ngZoneEventCoalescing,\n runCoalescing: options?.ngZoneRunCoalescing\n }));\n // Note: Create ngZoneInjector within ngZone.run so that all of the instantiated services are\n // created within the Angular zone\n // Do not try to replace ngZone.run with ApplicationRef#run because ApplicationRef would then be\n // created outside of the Angular zone.\n return ngZone.run(() => {\n const moduleRef = createNgModuleRefWithProviders(moduleFactory.moduleType, this.injector, internalProvideZoneChangeDetection(() => ngZone));\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n moduleRef.injector.get(PROVIDED_NG_ZONE, null) !== null) {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, '`bootstrapModule` does not support `provideZoneChangeDetection`. Use `BootstrapOptions` instead.');\n }\n const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && exceptionHandler === null) {\n throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, 'No ErrorHandler. Is platform module (BrowserModule) included?');\n }\n ngZone.runOutsideAngular(() => {\n const subscription = ngZone.onError.subscribe({\n next: (error) => {\n exceptionHandler.handleError(error);\n }\n });\n moduleRef.onDestroy(() => {\n remove(this._modules, moduleRef);\n subscription.unsubscribe();\n });\n });\n return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n const initStatus = moduleRef.injector.get(ApplicationInitStatus);\n initStatus.runInitializers();\n return initStatus.donePromise.then(() => {\n // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy\n const localeId = moduleRef.injector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n setLocaleId(localeId || DEFAULT_LOCALE_ID);\n this._moduleDoBootstrap(moduleRef);\n return moduleRef;\n });\n });\n });\n }\n /**\n * Creates an instance of an `@NgModule` for a given platform.\n *\n * @usageNotes\n * ### Simple Example\n *\n * ```typescript\n * @NgModule({\n * imports: [BrowserModule]\n * })\n * class MyModule {}\n *\n * let moduleRef = platformBrowser().bootstrapModule(MyModule);\n * ```\n *\n */\n bootstrapModule(moduleType, compilerOptions = []) {\n const options = optionsReducer({}, compilerOptions);\n return compileNgModuleFactory(this.injector, options, moduleType)\n .then(moduleFactory => this.bootstrapModuleFactory(moduleFactory, options));\n }\n _moduleDoBootstrap(moduleRef) {\n const appRef = moduleRef.injector.get(ApplicationRef);\n if (moduleRef._bootstrapComponents.length > 0) {\n moduleRef._bootstrapComponents.forEach(f => appRef.bootstrap(f));\n }\n else if (moduleRef.instance.ngDoBootstrap) {\n moduleRef.instance.ngDoBootstrap(appRef);\n }\n else {\n throw new RuntimeError(-403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode &&\n `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` +\n `but it does not declare \"@NgModule.bootstrap\" components nor a \"ngDoBootstrap\" method. ` +\n `Please define one of these.`);\n }\n this._modules.push(moduleRef);\n }\n /**\n * Registers a listener to be called when the platform is destroyed.\n */\n onDestroy(callback) {\n this._destroyListeners.push(callback);\n }\n /**\n * Retrieves the platform {@link Injector}, which is the parent injector for\n * every Angular application on the page and provides singleton providers.\n */\n get injector() {\n return this._injector;\n }\n /**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n */\n destroy() {\n if (this._destroyed) {\n throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');\n }\n this._modules.slice().forEach(module => module.destroy());\n this._destroyListeners.forEach(listener => listener());\n const destroyListeners = this._injector.get(PLATFORM_DESTROY_LISTENERS, null);\n if (destroyListeners) {\n destroyListeners.forEach(listener => listener());\n destroyListeners.clear();\n }\n this._destroyed = true;\n }\n /**\n * Indicates whether this instance was destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n static { this.ɵfac = function PlatformRef_Factory(t) { return new (t || PlatformRef)(ɵɵinject(Injector)); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac, providedIn: 'platform' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PlatformRef, [{\n type: Injectable,\n args: [{ providedIn: 'platform' }]\n }], () => [{ type: Injector }], null); })();\n\nlet _platformInjector = null;\n/**\n * Internal token to indicate whether having multiple bootstrapped platform should be allowed (only\n * one bootstrapped platform is allowed by default). This token helps to support SSR scenarios.\n */\nconst ALLOW_MULTIPLE_PLATFORMS = new InjectionToken(ngDevMode ? 'AllowMultipleToken' : '');\n/**\n * Creates a platform.\n * Platforms must be created on launch using this function.\n *\n * @publicApi\n */\nfunction createPlatform(injector) {\n if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode &&\n 'There can be only one platform. Destroy the previous one to create a new one.');\n }\n publishDefaultGlobalUtils();\n publishSignalConfiguration();\n _platformInjector = injector;\n const platform = injector.get(PlatformRef);\n runPlatformInitializers(injector);\n return platform;\n}\n/**\n * Creates a factory for a platform. Can be used to provide or override `Providers` specific to\n * your application's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.\n * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories\n * to build up configurations that might be required by different libraries or parts of the\n * application.\n * @param name Identifies the new platform factory.\n * @param providers A set of dependency providers for platforms created with the new factory.\n *\n * @publicApi\n */\nfunction createPlatformFactory(parentPlatformFactory, name, providers = []) {\n const desc = `Platform: ${name}`;\n const marker = new InjectionToken(desc);\n return (extraProviders = []) => {\n let platform = getPlatform();\n if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n const platformProviders = [...providers, ...extraProviders, { provide: marker, useValue: true }];\n if (parentPlatformFactory) {\n parentPlatformFactory(platformProviders);\n }\n else {\n createPlatform(createPlatformInjector(platformProviders, desc));\n }\n }\n return assertPlatform(marker);\n };\n}\n/**\n * Helper function to create an instance of a platform injector (that maintains the 'platform'\n * scope).\n */\nfunction createPlatformInjector(providers = [], name) {\n return Injector.create({\n name,\n providers: [\n { provide: INJECTOR_SCOPE, useValue: 'platform' },\n { provide: PLATFORM_DESTROY_LISTENERS, useValue: new Set([() => _platformInjector = null]) },\n ...providers\n ],\n });\n}\n/**\n * Checks that there is currently a platform that contains the given token as a provider.\n *\n * @publicApi\n */\nfunction assertPlatform(requiredToken) {\n const platform = getPlatform();\n if (!platform) {\n throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');\n }\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n !platform.injector.get(requiredToken, null)) {\n throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, 'A platform with a different configuration has been created. Please destroy it first.');\n }\n return platform;\n}\n/**\n * Returns the current platform.\n *\n * @publicApi\n */\nfunction getPlatform() {\n return _platformInjector?.get(PlatformRef) ?? null;\n}\n/**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n *\n * @publicApi\n */\nfunction destroyPlatform() {\n getPlatform()?.destroy();\n}\n/**\n * The goal of this function is to bootstrap a platform injector,\n * but avoid referencing `PlatformRef` class.\n * This function is needed for bootstrapping a Standalone Component.\n */\nfunction createOrReusePlatformInjector(providers = []) {\n // If a platform injector already exists, it means that the platform\n // is already bootstrapped and no additional actions are required.\n if (_platformInjector)\n return _platformInjector;\n publishDefaultGlobalUtils();\n // Otherwise, setup a new platform injector and run platform initializers.\n const injector = createPlatformInjector(providers);\n _platformInjector = injector;\n publishSignalConfiguration();\n runPlatformInitializers(injector);\n return injector;\n}\nfunction runPlatformInitializers(injector) {\n const inits = injector.get(PLATFORM_INITIALIZER, null);\n inits?.forEach((init) => init());\n}\n\n/**\n * Returns whether Angular is in development mode.\n *\n * By default, this is true, unless `enableProdMode` is invoked prior to calling this method or the\n * application is built using the Angular CLI with the `optimization` option.\n * @see {@link cli/build ng build}\n *\n * @publicApi\n */\nfunction isDevMode() {\n return typeof ngDevMode === 'undefined' || !!ngDevMode;\n}\n/**\n * Disable Angular's development mode, which turns off assertions and other\n * checks within the framework.\n *\n * One important assertion this disables verifies that a change detection pass\n * does not result in additional changes to any bindings (also known as\n * unidirectional data flow).\n *\n * Using this method is discouraged as the Angular CLI will set production mode when using the\n * `optimization` option.\n * @see {@link cli/build ng build}\n *\n * @publicApi\n */\nfunction enableProdMode() {\n // The below check is there so when ngDevMode is set via terser\n // `global['ngDevMode'] = false;` is also dropped.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _global['ngDevMode'] = false;\n }\n}\n\n// Public API for render\n\n/**\n * Returns the NgModuleFactory with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n * @deprecated Use `getNgModuleById` instead.\n */\nfunction getModuleFactory(id) {\n const type = getRegisteredNgModuleType(id);\n if (!type)\n throw noModuleError(id);\n return new NgModuleFactory(type);\n}\n/**\n * Returns the NgModule class with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Classes for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n */\nfunction getNgModuleById(id) {\n const type = getRegisteredNgModuleType(id);\n if (!type)\n throw noModuleError(id);\n return type;\n}\nfunction noModuleError(id) {\n return new Error(`No module with ID ${id} loaded`);\n}\n\n/**\n * Base class that provides change detection functionality.\n * A change-detection tree collects all views that are to be checked for changes.\n * Use the methods to add and remove views from the tree, initiate change-detection,\n * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.\n *\n * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)\n * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)\n *\n * @usageNotes\n *\n * The following examples demonstrate how to modify default change-detection behavior\n * to perform explicit detection when needed.\n *\n * ### Use `markForCheck()` with `CheckOnce` strategy\n *\n * The following example sets the `OnPush` change-detection strategy for a component\n * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check\n * after an interval.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\"\n * region=\"mark-for-check\"></code-example>\n *\n * ### Detach change detector to limit how often check occurs\n *\n * The following example defines a component with a large list of read-only data\n * that is expected to change constantly, many times per second.\n * To improve performance, we want to check and update the list\n * less often than the changes actually occur. To do that, we detach\n * the component's change detector and perform an explicit local check every five seconds.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"detach\"></code-example>\n *\n *\n * ### Reattaching a detached component\n *\n * The following example creates a component displaying live data.\n * The component detaches its change detector from the main change detector tree\n * when the `live` property is set to false, and reattaches it when the property\n * becomes true.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"reattach\"></code-example>\n *\n * @publicApi\n */\nclass ChangeDetectorRef {\n /**\n * @internal\n * @nocollapse\n */\n static { this.__NG_ELEMENT_ID__ = injectChangeDetectorRef; }\n}\n/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */\nfunction injectChangeDetectorRef(flags) {\n return createViewRef(getCurrentTNode(), getLView(), (flags & 16 /* InternalInjectFlags.ForPipe */) === 16 /* InternalInjectFlags.ForPipe */);\n}\n/**\n * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).\n *\n * @param tNode The node that is requesting a ChangeDetectorRef\n * @param lView The view to which the node belongs\n * @param isPipe Whether the view is being injected into a pipe.\n * @returns The ChangeDetectorRef to use\n */\nfunction createViewRef(tNode, lView, isPipe) {\n if (isComponentHost(tNode) && !isPipe) {\n // The LView represents the location where the component is declared.\n // Instead we want the LView for the component View and so we need to look it up.\n const componentView = getComponentLViewByIndex(tNode.index, lView); // look down\n return new ViewRef$1(componentView, componentView);\n }\n else if (tNode.type & (3 /* TNodeType.AnyRNode */ | 12 /* TNodeType.AnyContainer */ | 32 /* TNodeType.Icu */)) {\n // The LView represents the location where the injection is requested from.\n // We need to locate the containing LView (in case where the `lView` is an embedded view)\n const hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up\n return new ViewRef$1(hostComponentView, lView);\n }\n return null;\n}\n\n/**\n * Represents an Angular [view](guide/glossary#view \"Definition\").\n *\n * @see {@link ChangeDetectorRef#usage-notes Change detection usage}\n *\n * @publicApi\n */\nclass ViewRef extends ChangeDetectorRef {\n}\n/**\n * Represents an Angular [view](guide/glossary#view) in a view container.\n * An [embedded view](guide/glossary#view-hierarchy) can be referenced from a component\n * other than the hosting component whose template defines it, or it can be defined\n * independently by a `TemplateRef`.\n *\n * Properties of elements in a view can change, but the structure (number and order) of elements in\n * a view cannot. Change the structure of elements by inserting, moving, or\n * removing nested views in a view container.\n *\n * @see {@link ViewContainerRef}\n *\n * @usageNotes\n *\n * The following template breaks down into two separate `TemplateRef` instances,\n * an outer one and an inner one.\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n * <li *ngFor=\"let item of items\">{{item}}</li>\n * </ul>\n * ```\n *\n * This is the outer `TemplateRef`:\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n * <ng-template ngFor let-item [ngForOf]=\"items\"></ng-template>\n * </ul>\n * ```\n *\n * This is the inner `TemplateRef`:\n *\n * ```\n * <li>{{item}}</li>\n * ```\n *\n * The outer and inner `TemplateRef` instances are assembled into views as follows:\n *\n * ```\n * <!-- ViewRef: outer-0 -->\n * Count: 2\n * <ul>\n * <ng-template view-container-ref></ng-template>\n * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\n * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\n * </ul>\n * <!-- /ViewRef: outer-0 -->\n * ```\n * @publicApi\n */\nclass EmbeddedViewRef extends ViewRef {\n}\n\n// Public API for compiler\n\n// This file exists for easily patching NgModuleFactoryLoader in g3\nvar ng_module_factory_loader_impl = {};\n\n/**\n * @publicApi\n */\nclass DebugEventListener {\n constructor(name, callback) {\n this.name = name;\n this.callback = callback;\n }\n}\n/**\n * @publicApi\n */\nfunction asNativeElements(debugEls) {\n return debugEls.map((el) => el.nativeElement);\n}\n/**\n * @publicApi\n */\nclass DebugNode {\n constructor(nativeNode) {\n this.nativeNode = nativeNode;\n }\n /**\n * The `DebugElement` parent. Will be `null` if this is the root element.\n */\n get parent() {\n const parent = this.nativeNode.parentNode;\n return parent ? new DebugElement(parent) : null;\n }\n /**\n * The host dependency injector. For example, the root element's component instance injector.\n */\n get injector() {\n return getInjector(this.nativeNode);\n }\n /**\n * The element's own component instance, if it has one.\n */\n get componentInstance() {\n const nativeElement = this.nativeNode;\n return nativeElement &&\n (getComponent$1(nativeElement) || getOwningComponent(nativeElement));\n }\n /**\n * An object that provides parent context for this element. Often an ancestor component instance\n * that governs this element.\n *\n * When an element is repeated within *ngFor, the context is an `NgForOf` whose `$implicit`\n * property is the value of the row instance value. For example, the `hero` in `*ngFor=\"let hero\n * of heroes\"`.\n */\n get context() {\n return getComponent$1(this.nativeNode) || getContext(this.nativeNode);\n }\n /**\n * The callbacks attached to the component's @Output properties and/or the element's event\n * properties.\n */\n get listeners() {\n return getListeners(this.nativeNode).filter(listener => listener.type === 'dom');\n }\n /**\n * Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local\n * variable name.\n */\n get references() {\n return getLocalRefs(this.nativeNode);\n }\n /**\n * This component's injector lookup tokens. Includes the component itself plus the tokens that the\n * component lists in its providers metadata.\n */\n get providerTokens() {\n return getInjectionTokens(this.nativeNode);\n }\n}\n/**\n * @publicApi\n *\n * @see [Component testing scenarios](guide/testing-components-scenarios)\n * @see [Basics of testing components](guide/testing-components-basics)\n * @see [Testing utility APIs](guide/testing-utility-apis)\n */\nclass DebugElement extends DebugNode {\n constructor(nativeNode) {\n ngDevMode && assertDomNode(nativeNode);\n super(nativeNode);\n }\n /**\n * The underlying DOM element at the root of the component.\n */\n get nativeElement() {\n return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;\n }\n /**\n * The element tag name, if it is an element.\n */\n get name() {\n const context = getLContext(this.nativeNode);\n const lView = context ? context.lView : null;\n if (lView !== null) {\n const tData = lView[TVIEW].data;\n const tNode = tData[context.nodeIndex];\n return tNode.value;\n }\n else {\n return this.nativeNode.nodeName;\n }\n }\n /**\n * Gets a map of property names to property values for an element.\n *\n * This map includes:\n * - Regular property bindings (e.g. `[id]=\"id\"`)\n * - Host property bindings (e.g. `host: { '[id]': \"id\" }`)\n * - Interpolated property bindings (e.g. `id=\"{{ value }}\")\n *\n * It does not include:\n * - input property bindings (e.g. `[myCustomInput]=\"value\"`)\n * - attribute bindings (e.g. `[attr.role]=\"menu\"`)\n */\n get properties() {\n const context = getLContext(this.nativeNode);\n const lView = context ? context.lView : null;\n if (lView === null) {\n return {};\n }\n const tData = lView[TVIEW].data;\n const tNode = tData[context.nodeIndex];\n const properties = {};\n // Collect properties from the DOM.\n copyDomProperties(this.nativeElement, properties);\n // Collect properties from the bindings. This is needed for animation renderer which has\n // synthetic properties which don't get reflected into the DOM.\n collectPropertyBindings(properties, tNode, lView, tData);\n return properties;\n }\n /**\n * A map of attribute names to attribute values for an element.\n */\n // TODO: replace null by undefined in the return type\n get attributes() {\n const attributes = {};\n const element = this.nativeElement;\n if (!element) {\n return attributes;\n }\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n if (lView === null) {\n return {};\n }\n const tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;\n const lowercaseTNodeAttrs = [];\n // For debug nodes we take the element's attribute directly from the DOM since it allows us\n // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones\n // that are set through `Renderer2`). The problem is that the browser will lowercase all names,\n // however since we have the attributes already on the TNode, we can preserve the case by going\n // through them once, adding them to the `attributes` map and putting their lower-cased name\n // into an array. Afterwards when we're going through the native DOM attributes, we can check\n // whether we haven't run into an attribute already through the TNode.\n if (tNodeAttrs) {\n let i = 0;\n while (i < tNodeAttrs.length) {\n const attrName = tNodeAttrs[i];\n // Stop as soon as we hit a marker. We only care about the regular attributes. Everything\n // else will be handled below when we read the final attributes off the DOM.\n if (typeof attrName !== 'string')\n break;\n const attrValue = tNodeAttrs[i + 1];\n attributes[attrName] = attrValue;\n lowercaseTNodeAttrs.push(attrName.toLowerCase());\n i += 2;\n }\n }\n for (const attr of element.attributes) {\n // Make sure that we don't assign the same attribute both in its\n // case-sensitive form and the lower-cased one from the browser.\n if (!lowercaseTNodeAttrs.includes(attr.name)) {\n attributes[attr.name] = attr.value;\n }\n }\n return attributes;\n }\n /**\n * The inline styles of the DOM element.\n */\n // TODO: replace null by undefined in the return type\n get styles() {\n const element = this.nativeElement;\n return (element?.style ?? {});\n }\n /**\n * A map containing the class names on the element as keys.\n *\n * This map is derived from the `className` property of the DOM element.\n *\n * Note: The values of this object will always be `true`. The class key will not appear in the KV\n * object if it does not exist on the element.\n *\n * @see [Element.className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)\n */\n get classes() {\n const result = {};\n const element = this.nativeElement;\n // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.\n const className = element.className;\n const classes = typeof className !== 'string' ? className.baseVal.split(' ') : className.split(' ');\n classes.forEach((value) => result[value] = true);\n return result;\n }\n /**\n * The `childNodes` of the DOM element as a `DebugNode` array.\n *\n * @see [Node.childNodes](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)\n */\n get childNodes() {\n const childNodes = this.nativeNode.childNodes;\n const children = [];\n for (let i = 0; i < childNodes.length; i++) {\n const element = childNodes[i];\n children.push(getDebugNode(element));\n }\n return children;\n }\n /**\n * The immediate `DebugElement` children. Walk the tree by descending through `children`.\n */\n get children() {\n const nativeElement = this.nativeElement;\n if (!nativeElement)\n return [];\n const childNodes = nativeElement.children;\n const children = [];\n for (let i = 0; i < childNodes.length; i++) {\n const element = childNodes[i];\n children.push(getDebugNode(element));\n }\n return children;\n }\n /**\n * @returns the first `DebugElement` that matches the predicate at any depth in the subtree.\n */\n query(predicate) {\n const results = this.queryAll(predicate);\n return results[0] || null;\n }\n /**\n * @returns All `DebugElement` matches for the predicate at any depth in the subtree.\n */\n queryAll(predicate) {\n const matches = [];\n _queryAll(this, predicate, matches, true);\n return matches;\n }\n /**\n * @returns All `DebugNode` matches for the predicate at any depth in the subtree.\n */\n queryAllNodes(predicate) {\n const matches = [];\n _queryAll(this, predicate, matches, false);\n return matches;\n }\n /**\n * Triggers the event by its name if there is a corresponding listener in the element's\n * `listeners` collection.\n *\n * If the event lacks a listener or there's some other problem, consider\n * calling `nativeElement.dispatchEvent(eventObject)`.\n *\n * @param eventName The name of the event to trigger\n * @param eventObj The _event object_ expected by the handler\n *\n * @see [Testing components scenarios](guide/testing-components-scenarios#trigger-event-handler)\n */\n triggerEventHandler(eventName, eventObj) {\n const node = this.nativeNode;\n const invokedListeners = [];\n this.listeners.forEach(listener => {\n if (listener.name === eventName) {\n const callback = listener.callback;\n callback.call(node, eventObj);\n invokedListeners.push(callback);\n }\n });\n // We need to check whether `eventListeners` exists, because it's something\n // that Zone.js only adds to `EventTarget` in browser environments.\n if (typeof node.eventListeners === 'function') {\n // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some\n // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event\n // listener.\n node.eventListeners(eventName).forEach((listener) => {\n // In order to ensure that we can detect the special __ngUnwrap__ token described above, we\n // use `toString` on the listener and see if it contains the token. We use this approach to\n // ensure that it still worked with compiled code since it cannot remove or rename string\n // literals. We also considered using a special function name (i.e. if(listener.name ===\n // special)) but that was more cumbersome and we were also concerned the compiled code could\n // strip the name, turning the condition in to (\"\" === \"\") and always returning true.\n if (listener.toString().indexOf('__ngUnwrap__') !== -1) {\n const unwrappedListener = listener('__ngUnwrap__');\n return invokedListeners.indexOf(unwrappedListener) === -1 &&\n unwrappedListener.call(node, eventObj);\n }\n });\n }\n }\n}\nfunction copyDomProperties(element, properties) {\n if (element) {\n // Skip own properties (as those are patched)\n let obj = Object.getPrototypeOf(element);\n const NodePrototype = Node.prototype;\n while (obj !== null && obj !== NodePrototype) {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n for (let key in descriptors) {\n if (!key.startsWith('__') && !key.startsWith('on')) {\n // don't include properties starting with `__` and `on`.\n // `__` are patched values which should not be included.\n // `on` are listeners which also should not be included.\n const value = element[key];\n if (isPrimitiveValue(value)) {\n properties[key] = value;\n }\n }\n }\n obj = Object.getPrototypeOf(obj);\n }\n }\n}\nfunction isPrimitiveValue(value) {\n return typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number' ||\n value === null;\n}\nfunction _queryAll(parentElement, predicate, matches, elementsOnly) {\n const context = getLContext(parentElement.nativeNode);\n const lView = context ? context.lView : null;\n if (lView !== null) {\n const parentTNode = lView[TVIEW].data[context.nodeIndex];\n _queryNodeChildren(parentTNode, lView, predicate, matches, elementsOnly, parentElement.nativeNode);\n }\n else {\n // If the context is null, then `parentElement` was either created with Renderer2 or native DOM\n // APIs.\n _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);\n }\n}\n/**\n * Recursively match the current TNode against the predicate, and goes on with the next ones.\n *\n * @param tNode the current TNode\n * @param lView the LView of this TNode\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildren(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const nativeNode = getNativeByTNodeOrNull(tNode, lView);\n // For each type of TNode, specific logic is executed.\n if (tNode.type & (3 /* TNodeType.AnyRNode */ | 8 /* TNodeType.ElementContainer */)) {\n // Case 1: the TNode is an element\n // The native node has to be checked.\n _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n if (isComponentHost(tNode)) {\n // If the element is the host of a component, then all nodes in its view have to be processed.\n // Note: the component's content (tNode.child) will be processed from the insertion points.\n const componentView = getComponentLViewByIndex(tNode.index, lView);\n if (componentView && componentView[TVIEW].firstChild) {\n _queryNodeChildren(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else {\n if (tNode.child) {\n // Otherwise, its children have to be processed.\n _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n // We also have to query the DOM directly in order to catch elements inserted through\n // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple\n // times. ViewEngine could do it more efficiently, because all the insertions go through\n // Renderer2, however that's not the case in Ivy. This approach is being used because:\n // 1. Matching the ViewEngine behavior would mean potentially introducing a dependency\n // from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.\n // 2. It allows us to capture nodes that were inserted directly via the DOM.\n nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);\n }\n // In all cases, if a dynamic container exists for this node, each view inside it has to be\n // processed.\n const nodeOrContainer = lView[tNode.index];\n if (isLContainer(nodeOrContainer)) {\n _queryNodeChildrenInContainer(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (tNode.type & 4 /* TNodeType.Container */) {\n // Case 2: the TNode is a container\n // The native node has to be checked.\n const lContainer = lView[tNode.index];\n _addQueryMatch(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode);\n // Each view inside the container has to be processed.\n _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode);\n }\n else if (tNode.type & 16 /* TNodeType.Projection */) {\n // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).\n // The nodes projected at this location all need to be processed.\n const componentView = lView[DECLARATION_COMPONENT_VIEW];\n const componentHost = componentView[T_HOST];\n const head = componentHost.projection[tNode.projection];\n if (Array.isArray(head)) {\n for (let nativeNode of head) {\n _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (head) {\n const nextLView = componentView[PARENT];\n const nextTNode = nextLView[TVIEW].data[head.index];\n _queryNodeChildren(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (tNode.child) {\n // Case 4: the TNode is a view.\n _queryNodeChildren(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n // We don't want to go to the next sibling of the root node.\n if (rootNativeNode !== nativeNode) {\n // To determine the next node to be processed, we need to use the next or the projectionNext\n // link, depending on whether the current node has been projected.\n const nextTNode = (tNode.flags & 2 /* TNodeFlags.isProjected */) ? tNode.projectionNext : tNode.next;\n if (nextTNode) {\n _queryNodeChildren(nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n}\n/**\n * Process all TNodes in a given container.\n *\n * @param lContainer the container to be processed\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildrenInContainer(lContainer, predicate, matches, elementsOnly, rootNativeNode) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const childView = lContainer[i];\n const firstChild = childView[TVIEW].firstChild;\n if (firstChild) {\n _queryNodeChildren(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n}\n/**\n * Match the current native node against the predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _addQueryMatch(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {\n if (rootNativeNode !== nativeNode) {\n const debugNode = getDebugNode(nativeNode);\n if (!debugNode) {\n return;\n }\n // Type of the \"predicate and \"matches\" array are set based on the value of\n // the \"elementsOnly\" parameter. TypeScript is not able to properly infer these\n // types with generics, so we manually cast the parameters accordingly.\n if (elementsOnly && (debugNode instanceof DebugElement) && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n else if (!elementsOnly && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n }\n}\n/**\n * Match all the descendants of a DOM node against a predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list where matches are stored\n * @param elementsOnly whether only elements should be searched\n */\nfunction _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {\n const nodes = parentNode.childNodes;\n const length = nodes.length;\n for (let i = 0; i < length; i++) {\n const node = nodes[i];\n const debugNode = getDebugNode(node);\n if (debugNode) {\n if (elementsOnly && (debugNode instanceof DebugElement) && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n else if (!elementsOnly && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);\n }\n }\n}\n/**\n * Iterates through the property bindings for a given node and generates\n * a map of property names to values. This map only contains property bindings\n * defined in templates, not in host bindings.\n */\nfunction collectPropertyBindings(properties, tNode, lView, tData) {\n let bindingIndexes = tNode.propertyBindings;\n if (bindingIndexes !== null) {\n for (let i = 0; i < bindingIndexes.length; i++) {\n const bindingIndex = bindingIndexes[i];\n const propMetadata = tData[bindingIndex];\n const metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);\n const propertyName = metadataParts[0];\n if (metadataParts.length > 1) {\n let value = metadataParts[1];\n for (let j = 1; j < metadataParts.length - 1; j++) {\n value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];\n }\n properties[propertyName] = value;\n }\n else {\n properties[propertyName] = lView[bindingIndex];\n }\n }\n }\n}\n// Need to keep the nodes in a global Map so that multiple angular apps are supported.\nconst _nativeNodeToDebugNode = new Map();\nconst NG_DEBUG_PROPERTY = '__ng_debug__';\n/**\n * @publicApi\n */\nfunction getDebugNode(nativeNode) {\n if (nativeNode instanceof Node) {\n if (!(nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY))) {\n nativeNode[NG_DEBUG_PROPERTY] = nativeNode.nodeType == Node.ELEMENT_NODE ?\n new DebugElement(nativeNode) :\n new DebugNode(nativeNode);\n }\n return nativeNode[NG_DEBUG_PROPERTY];\n }\n return null;\n}\nfunction getAllDebugNodes() {\n return Array.from(_nativeNodeToDebugNode.values());\n}\nfunction indexDebugNode(node) {\n _nativeNodeToDebugNode.set(node.nativeNode, node);\n}\nfunction removeDebugNodeFromIndex(node) {\n _nativeNodeToDebugNode.delete(node.nativeNode);\n}\n\nclass DefaultIterableDifferFactory {\n constructor() { }\n supports(obj) {\n return isListLikeIterable(obj);\n }\n create(trackByFn) {\n return new DefaultIterableDiffer(trackByFn);\n }\n}\nconst trackByIdentity = (index, item) => item;\n/**\n * @deprecated v4.0.0 - Should not be part of public API.\n * @publicApi\n */\nclass DefaultIterableDiffer {\n constructor(trackByFn) {\n this.length = 0;\n // Keeps track of the used records at any point in time (during & across `_check()` calls)\n this._linkedRecords = null;\n // Keeps track of the removed records at any point in time during `_check()` calls.\n this._unlinkedRecords = null;\n this._previousItHead = null;\n this._itHead = null;\n this._itTail = null;\n this._additionsHead = null;\n this._additionsTail = null;\n this._movesHead = null;\n this._movesTail = null;\n this._removalsHead = null;\n this._removalsTail = null;\n // Keeps track of records where custom track by is the same, but item identity has changed\n this._identityChangesHead = null;\n this._identityChangesTail = null;\n this._trackByFn = trackByFn || trackByIdentity;\n }\n forEachItem(fn) {\n let record;\n for (record = this._itHead; record !== null; record = record._next) {\n fn(record);\n }\n }\n forEachOperation(fn) {\n let nextIt = this._itHead;\n let nextRemove = this._removalsHead;\n let addRemoveOffset = 0;\n let moveOffsets = null;\n while (nextIt || nextRemove) {\n // Figure out which is the next record to process\n // Order: remove, add, move\n const record = !nextRemove ||\n nextIt &&\n nextIt.currentIndex <\n getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ?\n nextIt :\n nextRemove;\n const adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);\n const currentIndex = record.currentIndex;\n // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary\n if (record === nextRemove) {\n addRemoveOffset--;\n nextRemove = nextRemove._nextRemoved;\n }\n else {\n nextIt = nextIt._next;\n if (record.previousIndex == null) {\n addRemoveOffset++;\n }\n else {\n // INVARIANT: currentIndex < previousIndex\n if (!moveOffsets)\n moveOffsets = [];\n const localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;\n const localCurrentIndex = currentIndex - addRemoveOffset;\n if (localMovePreviousIndex != localCurrentIndex) {\n for (let i = 0; i < localMovePreviousIndex; i++) {\n const offset = i < moveOffsets.length ? moveOffsets[i] : (moveOffsets[i] = 0);\n const index = offset + i;\n if (localCurrentIndex <= index && index < localMovePreviousIndex) {\n moveOffsets[i] = offset + 1;\n }\n }\n const previousIndex = record.previousIndex;\n moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;\n }\n }\n }\n if (adjPreviousIndex !== currentIndex) {\n fn(record, adjPreviousIndex, currentIndex);\n }\n }\n }\n forEachPreviousItem(fn) {\n let record;\n for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n }\n forEachAddedItem(fn) {\n let record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n }\n forEachMovedItem(fn) {\n let record;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n fn(record);\n }\n }\n forEachRemovedItem(fn) {\n let record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n }\n forEachIdentityChange(fn) {\n let record;\n for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\n fn(record);\n }\n }\n diff(collection) {\n if (collection == null)\n collection = [];\n if (!isListLikeIterable(collection)) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&\n `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);\n }\n if (this.check(collection)) {\n return this;\n }\n else {\n return null;\n }\n }\n onDestroy() { }\n check(collection) {\n this._reset();\n let record = this._itHead;\n let mayBeDirty = false;\n let index;\n let item;\n let itemTrackBy;\n if (Array.isArray(collection)) {\n this.length = collection.length;\n for (let index = 0; index < this.length; index++) {\n item = collection[index];\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n }\n }\n else {\n index = 0;\n iterateListLike(collection, (item) => {\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n index++;\n });\n this.length = index;\n }\n this._truncate(record);\n this.collection = collection;\n return this.isDirty;\n }\n /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity\n * changes.\n */\n get isDirty() {\n return this._additionsHead !== null || this._movesHead !== null ||\n this._removalsHead !== null || this._identityChangesHead !== null;\n }\n /**\n * Reset the state of the change objects to show no changes. This means set previousKey to\n * currentKey, and clear all of the queues (additions, moves, removals).\n * Set the previousIndexes of moved and added items to their currentIndexes\n * Reset the list of additions, moves and removals\n *\n * @internal\n */\n _reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }\n /**\n * This is the core function which handles differences between collections.\n *\n * - `record` is the record which we saw at this position last time. If null then it is a new\n * item.\n * - `item` is the current item in the collection\n * - `index` is the position of the item in the collection\n *\n * @internal\n */\n _mismatch(record, item, itemTrackBy, index) {\n // The previous record after which we will append the current one.\n let previousRecord;\n if (record === null) {\n previousRecord = this._itTail;\n }\n else {\n previousRecord = record._prev;\n // Remove the record from the collection since we know it does not match the item.\n this._remove(record);\n }\n // See if we have evicted the item, which used to be at some anterior position of _itHead list.\n record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (record !== null) {\n // It is an item which we have evicted earlier: reinsert it back into the list.\n // But first we need to check if identity changed, so we can update in view if necessary.\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n this._reinsertAfter(record, previousRecord, index);\n }\n else {\n // Attempt to see if the item is at some posterior position of _itHead list.\n record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\n if (record !== null) {\n // We have the item in _itHead at/after `index` position. We need to move it forward in the\n // collection.\n // But first we need to check if identity changed, so we can update in view if necessary.\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n this._moveAfter(record, previousRecord, index);\n }\n else {\n // It is a new item: add it.\n record =\n this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);\n }\n }\n return record;\n }\n /**\n * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\n *\n * Use case: `[a, a]` => `[b, a, a]`\n *\n * If we did not have this check then the insertion of `b` would:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) leave `a` at index `1` as is. <-- this is wrong!\n * 3) reinsert `a` at index 2. <-- this is wrong!\n *\n * The correct behavior is:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) reinsert `a` at index 1.\n * 3) move `a` at from `1` to `2`.\n *\n *\n * Double check that we have not evicted a duplicate item. We need to check if the item type may\n * have already been removed:\n * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\n * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\n * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\n * at the end.\n *\n * @internal\n */\n _verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }\n /**\n * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection\n *\n * - `record` The first excess {@link IterableChangeRecord_}.\n *\n * @internal\n */\n _truncate(record) {\n // Anything after that needs to be removed;\n while (record !== null) {\n const nextRecord = record._next;\n this._addToRemovals(this._unlink(record));\n record = nextRecord;\n }\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.clear();\n }\n if (this._additionsTail !== null) {\n this._additionsTail._nextAdded = null;\n }\n if (this._movesTail !== null) {\n this._movesTail._nextMoved = null;\n }\n if (this._itTail !== null) {\n this._itTail._next = null;\n }\n if (this._removalsTail !== null) {\n this._removalsTail._nextRemoved = null;\n }\n if (this._identityChangesTail !== null) {\n this._identityChangesTail._nextIdentityChange = null;\n }\n }\n /** @internal */\n _reinsertAfter(record, prevRecord, index) {\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.remove(record);\n }\n const prev = record._prevRemoved;\n const next = record._nextRemoved;\n if (prev === null) {\n this._removalsHead = next;\n }\n else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n }\n else {\n next._prevRemoved = prev;\n }\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n }\n /** @internal */\n _moveAfter(record, prevRecord, index) {\n this._unlink(record);\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n }\n /** @internal */\n _addAfter(record, prevRecord, index) {\n this._insertAfter(record, prevRecord, index);\n if (this._additionsTail === null) {\n // TODO(vicb):\n // assert(this._additionsHead === null);\n this._additionsTail = this._additionsHead = record;\n }\n else {\n // TODO(vicb):\n // assert(_additionsTail._nextAdded === null);\n // assert(record._nextAdded === null);\n this._additionsTail = this._additionsTail._nextAdded = record;\n }\n return record;\n }\n /** @internal */\n _insertAfter(record, prevRecord, index) {\n // TODO(vicb):\n // assert(record != prevRecord);\n // assert(record._next === null);\n // assert(record._prev === null);\n const next = prevRecord === null ? this._itHead : prevRecord._next;\n // TODO(vicb):\n // assert(next != record);\n // assert(prevRecord != record);\n record._next = next;\n record._prev = prevRecord;\n if (next === null) {\n this._itTail = record;\n }\n else {\n next._prev = record;\n }\n if (prevRecord === null) {\n this._itHead = record;\n }\n else {\n prevRecord._next = record;\n }\n if (this._linkedRecords === null) {\n this._linkedRecords = new _DuplicateMap();\n }\n this._linkedRecords.put(record);\n record.currentIndex = index;\n return record;\n }\n /** @internal */\n _remove(record) {\n return this._addToRemovals(this._unlink(record));\n }\n /** @internal */\n _unlink(record) {\n if (this._linkedRecords !== null) {\n this._linkedRecords.remove(record);\n }\n const prev = record._prev;\n const next = record._next;\n // TODO(vicb):\n // assert((record._prev = null) === null);\n // assert((record._next = null) === null);\n if (prev === null) {\n this._itHead = next;\n }\n else {\n prev._next = next;\n }\n if (next === null) {\n this._itTail = prev;\n }\n else {\n next._prev = prev;\n }\n return record;\n }\n /** @internal */\n _addToMoves(record, toIndex) {\n // TODO(vicb):\n // assert(record._nextMoved === null);\n if (record.previousIndex === toIndex) {\n return record;\n }\n if (this._movesTail === null) {\n // TODO(vicb):\n // assert(_movesHead === null);\n this._movesTail = this._movesHead = record;\n }\n else {\n // TODO(vicb):\n // assert(_movesTail._nextMoved === null);\n this._movesTail = this._movesTail._nextMoved = record;\n }\n return record;\n }\n _addToRemovals(record) {\n if (this._unlinkedRecords === null) {\n this._unlinkedRecords = new _DuplicateMap();\n }\n this._unlinkedRecords.put(record);\n record.currentIndex = null;\n record._nextRemoved = null;\n if (this._removalsTail === null) {\n // TODO(vicb):\n // assert(_removalsHead === null);\n this._removalsTail = this._removalsHead = record;\n record._prevRemoved = null;\n }\n else {\n // TODO(vicb):\n // assert(_removalsTail._nextRemoved === null);\n // assert(record._nextRemoved === null);\n record._prevRemoved = this._removalsTail;\n this._removalsTail = this._removalsTail._nextRemoved = record;\n }\n return record;\n }\n /** @internal */\n _addIdentityChange(record, item) {\n record.item = item;\n if (this._identityChangesTail === null) {\n this._identityChangesTail = this._identityChangesHead = record;\n }\n else {\n this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\n }\n return record;\n }\n}\nclass IterableChangeRecord_ {\n constructor(item, trackById) {\n this.item = item;\n this.trackById = trackById;\n this.currentIndex = null;\n this.previousIndex = null;\n /** @internal */\n this._nextPrevious = null;\n /** @internal */\n this._prev = null;\n /** @internal */\n this._next = null;\n /** @internal */\n this._prevDup = null;\n /** @internal */\n this._nextDup = null;\n /** @internal */\n this._prevRemoved = null;\n /** @internal */\n this._nextRemoved = null;\n /** @internal */\n this._nextAdded = null;\n /** @internal */\n this._nextMoved = null;\n /** @internal */\n this._nextIdentityChange = null;\n }\n}\n// A linked list of IterableChangeRecords with the same IterableChangeRecord_.item\nclass _DuplicateItemRecordList {\n constructor() {\n /** @internal */\n this._head = null;\n /** @internal */\n this._tail = null;\n }\n /**\n * Append the record to the list of duplicates.\n *\n * Note: by design all records in the list of duplicates hold the same value in record.item.\n */\n add(record) {\n if (this._head === null) {\n this._head = this._tail = record;\n record._nextDup = null;\n record._prevDup = null;\n }\n else {\n // TODO(vicb):\n // assert(record.item == _head.item ||\n // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\n this._tail._nextDup = record;\n record._prevDup = this._tail;\n record._nextDup = null;\n this._tail = record;\n }\n }\n // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and\n // IterableChangeRecord_.currentIndex >= atOrAfterIndex\n get(trackById, atOrAfterIndex) {\n let record;\n for (record = this._head; record !== null; record = record._nextDup) {\n if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) &&\n Object.is(record.trackById, trackById)) {\n return record;\n }\n }\n return null;\n }\n /**\n * Remove one {@link IterableChangeRecord_} from the list of duplicates.\n *\n * Returns whether the list of duplicates is empty.\n */\n remove(record) {\n // TODO(vicb):\n // assert(() {\n // // verify that the record being removed is in the list.\n // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {\n // if (identical(cursor, record)) return true;\n // }\n // return false;\n //});\n const prev = record._prevDup;\n const next = record._nextDup;\n if (prev === null) {\n this._head = next;\n }\n else {\n prev._nextDup = next;\n }\n if (next === null) {\n this._tail = prev;\n }\n else {\n next._prevDup = prev;\n }\n return this._head === null;\n }\n}\nclass _DuplicateMap {\n constructor() {\n this.map = new Map();\n }\n put(record) {\n const key = record.trackById;\n let duplicates = this.map.get(key);\n if (!duplicates) {\n duplicates = new _DuplicateItemRecordList();\n this.map.set(key, duplicates);\n }\n duplicates.add(record);\n }\n /**\n * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we\n * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.\n *\n * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\n * have any more `a`s needs to return the second `a`.\n */\n get(trackById, atOrAfterIndex) {\n const key = trackById;\n const recordList = this.map.get(key);\n return recordList ? recordList.get(trackById, atOrAfterIndex) : null;\n }\n /**\n * Removes a {@link IterableChangeRecord_} from the list of duplicates.\n *\n * The list of duplicates also is removed from the map if it gets empty.\n */\n remove(record) {\n const key = record.trackById;\n const recordList = this.map.get(key);\n // Remove the list of duplicates when it gets empty\n if (recordList.remove(record)) {\n this.map.delete(key);\n }\n return record;\n }\n get isEmpty() {\n return this.map.size === 0;\n }\n clear() {\n this.map.clear();\n }\n}\nfunction getPreviousIndex(item, addRemoveOffset, moveOffsets) {\n const previousIndex = item.previousIndex;\n if (previousIndex === null)\n return previousIndex;\n let moveOffset = 0;\n if (moveOffsets && previousIndex < moveOffsets.length) {\n moveOffset = moveOffsets[previousIndex];\n }\n return previousIndex + addRemoveOffset + moveOffset;\n}\n\nclass DefaultKeyValueDifferFactory {\n constructor() { }\n supports(obj) {\n return obj instanceof Map || isJsObject(obj);\n }\n create() {\n return new DefaultKeyValueDiffer();\n }\n}\nclass DefaultKeyValueDiffer {\n constructor() {\n this._records = new Map();\n this._mapHead = null;\n // _appendAfter is used in the check loop\n this._appendAfter = null;\n this._previousMapHead = null;\n this._changesHead = null;\n this._changesTail = null;\n this._additionsHead = null;\n this._additionsTail = null;\n this._removalsHead = null;\n this._removalsTail = null;\n }\n get isDirty() {\n return this._additionsHead !== null || this._changesHead !== null ||\n this._removalsHead !== null;\n }\n forEachItem(fn) {\n let record;\n for (record = this._mapHead; record !== null; record = record._next) {\n fn(record);\n }\n }\n forEachPreviousItem(fn) {\n let record;\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n }\n forEachChangedItem(fn) {\n let record;\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n fn(record);\n }\n }\n forEachAddedItem(fn) {\n let record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n }\n forEachRemovedItem(fn) {\n let record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n }\n diff(map) {\n if (!map) {\n map = new Map();\n }\n else if (!(map instanceof Map || isJsObject(map))) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&\n `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);\n }\n return this.check(map) ? this : null;\n }\n onDestroy() { }\n /**\n * Check the current state of the map vs the previous.\n * The algorithm is optimised for when the keys do no change.\n */\n check(map) {\n this._reset();\n let insertBefore = this._mapHead;\n this._appendAfter = null;\n this._forEach(map, (value, key) => {\n if (insertBefore && insertBefore.key === key) {\n this._maybeAddToChanges(insertBefore, value);\n this._appendAfter = insertBefore;\n insertBefore = insertBefore._next;\n }\n else {\n const record = this._getOrCreateRecordForKey(key, value);\n insertBefore = this._insertBeforeOrAppend(insertBefore, record);\n }\n });\n // Items remaining at the end of the list have been deleted\n if (insertBefore) {\n if (insertBefore._prev) {\n insertBefore._prev._next = null;\n }\n this._removalsHead = insertBefore;\n for (let record = insertBefore; record !== null; record = record._nextRemoved) {\n if (record === this._mapHead) {\n this._mapHead = null;\n }\n this._records.delete(record.key);\n record._nextRemoved = record._next;\n record.previousValue = record.currentValue;\n record.currentValue = null;\n record._prev = null;\n record._next = null;\n }\n }\n // Make sure tails have no next records from previous runs\n if (this._changesTail)\n this._changesTail._nextChanged = null;\n if (this._additionsTail)\n this._additionsTail._nextAdded = null;\n return this.isDirty;\n }\n /**\n * Inserts a record before `before` or append at the end of the list when `before` is null.\n *\n * Notes:\n * - This method appends at `this._appendAfter`,\n * - This method updates `this._appendAfter`,\n * - The return value is the new value for the insertion pointer.\n */\n _insertBeforeOrAppend(before, record) {\n if (before) {\n const prev = before._prev;\n record._next = before;\n record._prev = prev;\n before._prev = record;\n if (prev) {\n prev._next = record;\n }\n if (before === this._mapHead) {\n this._mapHead = record;\n }\n this._appendAfter = before;\n return before;\n }\n if (this._appendAfter) {\n this._appendAfter._next = record;\n record._prev = this._appendAfter;\n }\n else {\n this._mapHead = record;\n }\n this._appendAfter = record;\n return null;\n }\n _getOrCreateRecordForKey(key, value) {\n if (this._records.has(key)) {\n const record = this._records.get(key);\n this._maybeAddToChanges(record, value);\n const prev = record._prev;\n const next = record._next;\n if (prev) {\n prev._next = next;\n }\n if (next) {\n next._prev = prev;\n }\n record._next = null;\n record._prev = null;\n return record;\n }\n const record = new KeyValueChangeRecord_(key);\n this._records.set(key, record);\n record.currentValue = value;\n this._addToAdditions(record);\n return record;\n }\n /** @internal */\n _reset() {\n if (this.isDirty) {\n let record;\n // let `_previousMapHead` contain the state of the map before the changes\n this._previousMapHead = this._mapHead;\n for (record = this._previousMapHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n // Update `record.previousValue` with the value of the item before the changes\n // We need to update all changed items (that's those which have been added and changed)\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n record.previousValue = record.currentValue;\n }\n for (record = this._additionsHead; record != null; record = record._nextAdded) {\n record.previousValue = record.currentValue;\n }\n this._changesHead = this._changesTail = null;\n this._additionsHead = this._additionsTail = null;\n this._removalsHead = null;\n }\n }\n // Add the record or a given key to the list of changes only when the value has actually changed\n _maybeAddToChanges(record, newValue) {\n if (!Object.is(newValue, record.currentValue)) {\n record.previousValue = record.currentValue;\n record.currentValue = newValue;\n this._addToChanges(record);\n }\n }\n _addToAdditions(record) {\n if (this._additionsHead === null) {\n this._additionsHead = this._additionsTail = record;\n }\n else {\n this._additionsTail._nextAdded = record;\n this._additionsTail = record;\n }\n }\n _addToChanges(record) {\n if (this._changesHead === null) {\n this._changesHead = this._changesTail = record;\n }\n else {\n this._changesTail._nextChanged = record;\n this._changesTail = record;\n }\n }\n /** @internal */\n _forEach(obj, fn) {\n if (obj instanceof Map) {\n obj.forEach(fn);\n }\n else {\n Object.keys(obj).forEach(k => fn(obj[k], k));\n }\n }\n}\nclass KeyValueChangeRecord_ {\n constructor(key) {\n this.key = key;\n this.previousValue = null;\n this.currentValue = null;\n /** @internal */\n this._nextPrevious = null;\n /** @internal */\n this._next = null;\n /** @internal */\n this._prev = null;\n /** @internal */\n this._nextAdded = null;\n /** @internal */\n this._nextRemoved = null;\n /** @internal */\n this._nextChanged = null;\n }\n}\n\nfunction defaultIterableDiffersFactory() {\n return new IterableDiffers([new DefaultIterableDifferFactory()]);\n}\n/**\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\n *\n * @publicApi\n */\nclass IterableDiffers {\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({ token: IterableDiffers, providedIn: 'root', factory: defaultIterableDiffersFactory }); }\n constructor(factories) {\n this.factories = factories;\n }\n static create(factories, parent) {\n if (parent != null) {\n const copied = parent.factories.slice();\n factories = factories.concat(copied);\n }\n return new IterableDiffers(factories);\n }\n /**\n * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the\n * inherited {@link IterableDiffers} instance with the provided factories and return a new\n * {@link IterableDiffers} instance.\n *\n * @usageNotes\n * ### Example\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link IterableDiffer} available.\n *\n * ```\n * @Component({\n * viewProviders: [\n * IterableDiffers.extend([new ImmutableListDiffer()])\n * ]\n * })\n * ```\n */\n static extend(factories) {\n return {\n provide: IterableDiffers,\n useFactory: (parent) => {\n // if parent is null, it means that we are in the root injector and we have just overridden\n // the default injection mechanism for IterableDiffers, in such a case just assume\n // `defaultIterableDiffersFactory`.\n return IterableDiffers.create(factories, parent || defaultIterableDiffersFactory());\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[IterableDiffers, new SkipSelf(), new Optional()]]\n };\n }\n find(iterable) {\n const factory = this.factories.find(f => f.supports(iterable));\n if (factory != null) {\n return factory;\n }\n else {\n throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode &&\n `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);\n }\n }\n}\nfunction getTypeNameForDebugging(type) {\n return type['name'] || typeof type;\n}\n\nfunction defaultKeyValueDiffersFactory() {\n return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]);\n}\n/**\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\n *\n * @publicApi\n */\nclass KeyValueDiffers {\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({ token: KeyValueDiffers, providedIn: 'root', factory: defaultKeyValueDiffersFactory }); }\n constructor(factories) {\n this.factories = factories;\n }\n static create(factories, parent) {\n if (parent) {\n const copied = parent.factories.slice();\n factories = factories.concat(copied);\n }\n return new KeyValueDiffers(factories);\n }\n /**\n * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the\n * inherited {@link KeyValueDiffers} instance with the provided factories and return a new\n * {@link KeyValueDiffers} instance.\n *\n * @usageNotes\n * ### Example\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link KeyValueDiffer} available.\n *\n * ```\n * @Component({\n * viewProviders: [\n * KeyValueDiffers.extend([new ImmutableMapDiffer()])\n * ]\n * })\n * ```\n */\n static extend(factories) {\n return {\n provide: KeyValueDiffers,\n useFactory: (parent) => {\n // if parent is null, it means that we are in the root injector and we have just overridden\n // the default injection mechanism for KeyValueDiffers, in such a case just assume\n // `defaultKeyValueDiffersFactory`.\n return KeyValueDiffers.create(factories, parent || defaultKeyValueDiffersFactory());\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]\n };\n }\n find(kv) {\n const factory = this.factories.find(f => f.supports(kv));\n if (factory) {\n return factory;\n }\n throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);\n }\n}\n\n/**\n * Structural diffing for `Object`s and `Map`s.\n */\nconst keyValDiff = [new DefaultKeyValueDifferFactory()];\n/**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\nconst iterableDiff = [new DefaultIterableDifferFactory()];\nconst defaultIterableDiffers = new IterableDiffers(iterableDiff);\nconst defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);\n\n/**\n * @module\n * @description\n * Change detection enables data binding in Angular.\n */\n\n/**\n * This platform has to be included in any other platform\n *\n * @publicApi\n */\nconst platformCore = createPlatformFactory(null, 'core', []);\n\n/**\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command. Eagerly injects\n * `ApplicationRef` to instantiate it.\n *\n * @publicApi\n */\nclass ApplicationModule {\n // Inject ApplicationRef to make it eager...\n constructor(appRef) { }\n static { this.ɵfac = function ApplicationModule_Factory(t) { return new (t || ApplicationModule)(ɵɵinject(ApplicationRef)); }; }\n static { this.ɵmod = /*@__PURE__*/ ɵɵdefineNgModule({ type: ApplicationModule }); }\n static { this.ɵinj = /*@__PURE__*/ ɵɵdefineInjector({}); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationModule, [{\n type: NgModule\n }], () => [{ type: ApplicationRef }], null); })();\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */ Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n producerMustRecompute: () => false,\n producerRecomputeValue: () => { },\n consumerMarkedDirty: () => { },\n consumerOnSignalRead: () => { },\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ?\n `Assertion error: signal read during notification phase` :\n '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] =\n consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n }\n finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined ||\n node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length =\n 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (node.liveConsumerNode.length === 0) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */ Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */ Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */ Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n newValue = node.computation();\n }\n catch (err) {\n newValue = ERRORED;\n node.error = err;\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED &&\n node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n },\n };\n})();\n\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = (() => {\n producerAccessed(node);\n return node.value;\n });\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined,\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\n\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = (cleanupFn) => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n }\n finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node,\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => { };\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: (node) => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN,\n };\n})();\n\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\n\n// A delay in milliseconds before the scan is run after onLoad, to avoid any\n// potential race conditions with other LCP-related functions. This delay\n// happens outside of the main JavaScript execution and will only effect the timing\n// on when the warning becomes visible in the console.\nconst SCAN_DELAY = 200;\nconst OVERSIZED_IMAGE_TOLERANCE = 1200;\nclass ImagePerformanceWarning {\n constructor() {\n // Map of full image URLs -> original `ngSrc` values.\n this.window = null;\n this.observer = null;\n this.options = inject(IMAGE_CONFIG);\n this.ngZone = inject(NgZone);\n }\n start() {\n if (typeof PerformanceObserver === 'undefined' ||\n (this.options?.disableImageSizeWarning && this.options?.disableImageLazyLoadWarning)) {\n return;\n }\n this.observer = this.initPerformanceObserver();\n const doc = getDocument();\n const win = doc.defaultView;\n if (typeof win !== 'undefined') {\n this.window = win;\n // Wait to avoid race conditions where LCP image triggers\n // load event before it's recorded by the performance observer\n const waitToScan = () => {\n setTimeout(this.scanImages.bind(this), SCAN_DELAY);\n };\n // Angular doesn't have to run change detection whenever any asynchronous tasks are invoked in\n // the scope of this functionality.\n this.ngZone.runOutsideAngular(() => {\n // Consider the case when the application is created and destroyed multiple times.\n // Typically, applications are created instantly once the page is loaded, and the\n // `window.load` listener is always triggered. However, the `window.load` event will never\n // be fired if the page is loaded, and the application is created later. Checking for\n // `readyState` is the easiest way to determine whether the page has been loaded or not.\n if (doc.readyState === 'complete') {\n waitToScan();\n }\n else {\n this.window?.addEventListener('load', waitToScan, { once: true });\n }\n });\n }\n }\n ngOnDestroy() {\n this.observer?.disconnect();\n }\n initPerformanceObserver() {\n if (typeof PerformanceObserver === 'undefined') {\n return null;\n }\n const observer = new PerformanceObserver((entryList) => {\n const entries = entryList.getEntries();\n if (entries.length === 0)\n return;\n // We use the latest entry produced by the `PerformanceObserver` as the best\n // signal on which element is actually an LCP one. As an example, the first image to load on\n // a page, by virtue of being the only thing on the page so far, is often a LCP candidate\n // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.\n const lcpElement = entries[entries.length - 1];\n // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.\n // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint\n const imgSrc = lcpElement.element?.src ?? '';\n // Exclude `data:` and `blob:` URLs, since they are fetched resources.\n if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:'))\n return;\n this.lcpImageUrl = imgSrc;\n });\n observer.observe({ type: 'largest-contentful-paint', buffered: true });\n return observer;\n }\n scanImages() {\n const images = getDocument().querySelectorAll('img');\n let lcpElementFound, lcpElementLoadedCorrectly = false;\n images.forEach(image => {\n if (!this.options?.disableImageSizeWarning) {\n for (const image of images) {\n // Image elements using the NgOptimizedImage directive are excluded,\n // as that directive has its own version of this check.\n if (!image.getAttribute('ng-img') && this.isOversized(image)) {\n logOversizedImageWarning(image.src);\n }\n }\n }\n if (!this.options?.disableImageLazyLoadWarning && this.lcpImageUrl) {\n if (image.src === this.lcpImageUrl) {\n lcpElementFound = true;\n if (image.loading !== 'lazy' || image.getAttribute('ng-img')) {\n // This variable is set to true and never goes back to false to account\n // for the case where multiple images have the same src url, and some\n // have lazy loading while others don't.\n // Also ignore NgOptimizedImage because there's a different warning for that.\n lcpElementLoadedCorrectly = true;\n }\n }\n }\n });\n if (lcpElementFound && !lcpElementLoadedCorrectly && this.lcpImageUrl &&\n !this.options?.disableImageLazyLoadWarning) {\n logLazyLCPWarning(this.lcpImageUrl);\n }\n }\n isOversized(image) {\n if (!this.window) {\n return false;\n }\n const computedStyle = this.window.getComputedStyle(image);\n let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));\n let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));\n const boxSizing = computedStyle.getPropertyValue('box-sizing');\n const objectFit = computedStyle.getPropertyValue('object-fit');\n if (objectFit === `cover`) {\n // Object fit cover may indicate a use case such as a sprite sheet where\n // this warning does not apply.\n return false;\n }\n if (boxSizing === 'border-box') {\n const paddingTop = computedStyle.getPropertyValue('padding-top');\n const paddingRight = computedStyle.getPropertyValue('padding-right');\n const paddingBottom = computedStyle.getPropertyValue('padding-bottom');\n const paddingLeft = computedStyle.getPropertyValue('padding-left');\n renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);\n renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);\n }\n const intrinsicWidth = image.naturalWidth;\n const intrinsicHeight = image.naturalHeight;\n const recommendedWidth = this.window.devicePixelRatio * renderedWidth;\n const recommendedHeight = this.window.devicePixelRatio * renderedHeight;\n const oversizedWidth = (intrinsicWidth - recommendedWidth) >= OVERSIZED_IMAGE_TOLERANCE;\n const oversizedHeight = (intrinsicHeight - recommendedHeight) >= OVERSIZED_IMAGE_TOLERANCE;\n return oversizedWidth || oversizedHeight;\n }\n static { this.ɵfac = function ImagePerformanceWarning_Factory(t) { return new (t || ImagePerformanceWarning)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ImagePerformanceWarning, factory: ImagePerformanceWarning.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ImagePerformanceWarning, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\nfunction logLazyLCPWarning(src) {\n console.warn(formatRuntimeError(-913 /* RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING */, `An image with src ${src} is the Largest Contentful Paint (LCP) element ` +\n `but was given a \"loading\" value of \"lazy\", which can negatively impact ` +\n `application loading performance. This warning can be addressed by ` +\n `changing the loading value of the LCP image to \"eager\", or by using the ` +\n `NgOptimizedImage directive's prioritization utilities. For more ` +\n `information about addressing or disabling this warning, see ` +\n `https://angular.io/errors/NG0913`));\n}\nfunction logOversizedImageWarning(src) {\n console.warn(formatRuntimeError(-913 /* RuntimeErrorCode.IMAGE_PERFORMANCE_WARNING */, `An image with src ${src} has intrinsic file dimensions much larger than its ` +\n `rendered size. This can negatively impact application loading performance. ` +\n `For more information about addressing or disabling this warning, see ` +\n `https://angular.io/errors/NG0913`));\n}\n\n/**\n * Internal create application API that implements the core application creation logic and optional\n * bootstrap logic.\n *\n * Platforms (such as `platform-browser`) may require different set of application and platform\n * providers for an application to function correctly. As a result, platforms may use this function\n * internally and supply the necessary providers during the bootstrap, while exposing\n * platform-specific APIs as a part of their public API.\n *\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n */\nfunction internalCreateApplication(config) {\n try {\n const { rootComponent, appProviders, platformProviders } = config;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && rootComponent !== undefined) {\n assertStandaloneComponentType(rootComponent);\n }\n const platformInjector = createOrReusePlatformInjector(platformProviders);\n // Create root application injector based on a set of providers configured at the platform\n // bootstrap level as well as providers passed to the bootstrap call by a user.\n const allAppProviders = [\n provideZoneChangeDetection(),\n ...(appProviders || []),\n ];\n const adapter = new EnvironmentNgModuleRefAdapter({\n providers: allAppProviders,\n parent: platformInjector,\n debugName: (typeof ngDevMode === 'undefined' || ngDevMode) ? 'Environment Injector' : '',\n // We skip environment initializers because we need to run them inside the NgZone, which\n // happens after we get the NgZone instance from the Injector.\n runEnvironmentInitializers: false,\n });\n const envInjector = adapter.injector;\n const ngZone = envInjector.get(NgZone);\n return ngZone.run(() => {\n envInjector.resolveInjectorInitializers();\n const exceptionHandler = envInjector.get(ErrorHandler, null);\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !exceptionHandler) {\n throw new RuntimeError(402 /* RuntimeErrorCode.MISSING_REQUIRED_INJECTABLE_IN_BOOTSTRAP */, 'No `ErrorHandler` found in the Dependency Injection tree.');\n }\n let onErrorSubscription;\n ngZone.runOutsideAngular(() => {\n onErrorSubscription = ngZone.onError.subscribe({\n next: (error) => {\n exceptionHandler.handleError(error);\n }\n });\n });\n // If the whole platform is destroyed, invoke the `destroy` method\n // for all bootstrapped applications as well.\n const destroyListener = () => envInjector.destroy();\n const onPlatformDestroyListeners = platformInjector.get(PLATFORM_DESTROY_LISTENERS);\n onPlatformDestroyListeners.add(destroyListener);\n envInjector.onDestroy(() => {\n onErrorSubscription.unsubscribe();\n onPlatformDestroyListeners.delete(destroyListener);\n });\n return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n const initStatus = envInjector.get(ApplicationInitStatus);\n initStatus.runInitializers();\n return initStatus.donePromise.then(() => {\n const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n setLocaleId(localeId || DEFAULT_LOCALE_ID);\n const appRef = envInjector.get(ApplicationRef);\n if (rootComponent !== undefined) {\n appRef.bootstrap(rootComponent);\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const imagePerformanceService = envInjector.get(ImagePerformanceWarning);\n imagePerformanceService.start();\n }\n return appRef;\n });\n });\n });\n }\n catch (e) {\n return Promise.reject(e);\n }\n}\n\nclass ChangeDetectionSchedulerImpl {\n constructor() {\n this.appRef = inject(ApplicationRef);\n this.taskService = inject(PendingTasks);\n this.pendingRenderTaskId = null;\n this.shouldRefreshViews = false;\n }\n notify(type = 0 /* NotificationType.RefreshViews */) {\n // When the only source of notification is an afterRender hook will skip straight to the hooks\n // rather than refreshing views in ApplicationRef.tick\n this.shouldRefreshViews ||= type === 0 /* NotificationType.RefreshViews */;\n if (this.pendingRenderTaskId !== null) {\n return;\n }\n this.pendingRenderTaskId = this.taskService.add();\n this.raceTimeoutAndRequestAnimationFrame();\n }\n /**\n * Run change detection after the first of setTimeout and requestAnimationFrame resolves.\n *\n * - `requestAnimationFrame` ensures that change detection runs ahead of a browser repaint.\n * This ensures that the create and update passes of a change detection always happen\n * in the same frame.\n * - When the browser is resource-starved, `rAF` can execute _before_ a `setTimeout` because\n * rendering is a very high priority process. This means that `setTimeout` cannot guarantee\n * same-frame create and update pass, when `setTimeout` is used to schedule the update phase.\n * - While `rAF` gives us the desirable same-frame updates, it has two limitations that\n * prevent it from being used alone. First, it does not run in background tabs, which would\n * prevent Angular from initializing an application when opened in a new tab (for example).\n * Second, repeated calls to requestAnimationFrame will execute at the refresh rate of the\n * hardware (~16ms for a 60Hz display). This would cause significant slowdown of tests that\n * are written with several updates and asserts in the form of \"update; await stable; assert;\".\n * - Both `setTimeout` and `rAF` are able to \"coalesce\" several events from a single user\n * interaction into a single change detection. Importantly, this reduces view tree traversals when\n * compared to an alternative timing mechanism like `queueMicrotask`, where change detection would\n * then be interleaves between each event.\n *\n * By running change detection after the first of `setTimeout` and `rAF` to execute, we get the\n * best of both worlds.\n */\n async raceTimeoutAndRequestAnimationFrame() {\n const timeout = new Promise(resolve => setTimeout(resolve));\n const rAF = typeof _global['requestAnimationFrame'] === 'function' ?\n new Promise(resolve => requestAnimationFrame(() => resolve())) :\n null;\n await Promise.race([timeout, rAF]);\n this.tick();\n }\n tick() {\n try {\n if (!this.appRef.destroyed) {\n this.appRef._tick(this.shouldRefreshViews);\n }\n }\n finally {\n this.shouldRefreshViews = false;\n // If this is the last task, the service will synchronously emit a stable notification. If\n // there is a subscriber that then acts in a way that tries to notify the scheduler again,\n // we need to be able to respond to schedule a new change detection. Therefore, we should\n // clear the task ID before removing it from the pending tasks (or the tasks service should\n // not synchronously emit stable, similar to how Zone stableness only happens if it's still\n // stable after a microtask).\n const taskId = this.pendingRenderTaskId;\n this.pendingRenderTaskId = null;\n this.taskService.remove(taskId);\n }\n }\n static { this.ɵfac = function ChangeDetectionSchedulerImpl_Factory(t) { return new (t || ChangeDetectionSchedulerImpl)(); }; }\n static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ChangeDetectionSchedulerImpl, factory: ChangeDetectionSchedulerImpl.ɵfac, providedIn: 'root' }); }\n}\n(() => { (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ChangeDetectionSchedulerImpl, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], null, null); })();\nfunction provideZonelessChangeDetection() {\n return makeEnvironmentProviders([\n { provide: ChangeDetectionScheduler, useExisting: ChangeDetectionSchedulerImpl },\n { provide: NgZone, useClass: NoopNgZone },\n ]);\n}\n\n/**\n * Retrieves all defer blocks in a given LView.\n *\n * @param lView lView with defer blocks\n * @param deferBlocks defer block aggregator array\n */\nfunction getDeferBlocks(lView, deferBlocks) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (isLContainer(lView[i])) {\n const lContainer = lView[i];\n // An LContainer may represent an instance of a defer block, in which case\n // we store it as a result. Otherwise, keep iterating over LContainer views and\n // look for defer blocks.\n const isLast = i === tView.bindingStartIndex - 1;\n if (!isLast) {\n const tNode = tView.data[i];\n const tDetails = getTDeferBlockDetails(tView, tNode);\n if (isTDeferBlockDetails(tDetails)) {\n deferBlocks.push({ lContainer, lView, tNode, tDetails });\n // This LContainer represents a defer block, so we exit\n // this iteration and don't inspect views in this LContainer.\n continue;\n }\n }\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n getDeferBlocks(lContainer[i], deferBlocks);\n }\n }\n else if (isLView(lView[i])) {\n // This is a component, enter the `getDeferBlocks` recursively.\n getDeferBlocks(lView[i], deferBlocks);\n }\n }\n}\n\n/**\n * Indicates whether the hydration-related code was added,\n * prevents adding it multiple times.\n */\nlet isHydrationSupportEnabled = false;\n/**\n * Indicates whether support for hydrating i18n blocks is enabled.\n */\nlet _isI18nHydrationSupportEnabled = false;\n/**\n * Defines a period of time that Angular waits for the `ApplicationRef.isStable` to emit `true`.\n * If there was no event with the `true` value during this time, Angular reports a warning.\n */\nconst APPLICATION_IS_STABLE_TIMEOUT = 10_000;\n/**\n * Brings the necessary hydration code in tree-shakable manner.\n * The code is only present when the `provideClientHydration` is\n * invoked. Otherwise, this code is tree-shaken away during the\n * build optimization step.\n *\n * This technique allows us to swap implementations of methods so\n * tree shaking works appropriately when hydration is disabled or\n * enabled. It brings in the appropriate version of the method that\n * supports hydration only when enabled.\n */\nfunction enableHydrationRuntimeSupport() {\n if (!isHydrationSupportEnabled) {\n isHydrationSupportEnabled = true;\n enableRetrieveHydrationInfoImpl();\n enableLocateOrCreateElementNodeImpl();\n enableLocateOrCreateTextNodeImpl();\n enableLocateOrCreateElementContainerNodeImpl();\n enableLocateOrCreateContainerAnchorImpl();\n enableLocateOrCreateContainerRefImpl();\n enableFindMatchingDehydratedViewImpl();\n enableApplyRootElementTransformImpl();\n enableLocateOrCreateI18nNodeImpl();\n }\n}\n/**\n * Outputs a message with hydration stats into a console.\n */\nfunction printHydrationStats(injector) {\n const console = injector.get(Console);\n const message = `Angular hydrated ${ngDevMode.hydratedComponents} component(s) ` +\n `and ${ngDevMode.hydratedNodes} node(s), ` +\n `${ngDevMode.componentsSkippedHydration} component(s) were skipped. ` +\n `Learn more at https://angular.io/guide/hydration.`;\n // tslint:disable-next-line:no-console\n console.log(message);\n}\n/**\n * Returns a Promise that is resolved when an application becomes stable.\n */\nfunction whenStableWithTimeout(appRef, injector) {\n const whenStablePromise = whenStable(appRef);\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const timeoutTime = APPLICATION_IS_STABLE_TIMEOUT;\n const console = injector.get(Console);\n const ngZone = injector.get(NgZone);\n // The following call should not and does not prevent the app to become stable\n // We cannot use RxJS timer here because the app would remain unstable.\n // This also avoids an extra change detection cycle.\n const timeoutId = ngZone.runOutsideAngular(() => {\n return setTimeout(() => logWarningOnStableTimedout(timeoutTime, console), timeoutTime);\n });\n whenStablePromise.finally(() => clearTimeout(timeoutId));\n }\n return whenStablePromise;\n}\n/**\n * Returns a set of providers required to setup hydration support\n * for an application that is server side rendered. This function is\n * included into the `provideClientHydration` public API function from\n * the `platform-browser` package.\n *\n * The function sets up an internal flag that would be recognized during\n * the server side rendering time as well, so there is no need to\n * configure or change anything in NgUniversal to enable the feature.\n */\nfunction withDomHydration() {\n return makeEnvironmentProviders([\n {\n provide: IS_HYDRATION_DOM_REUSE_ENABLED,\n useFactory: () => {\n let isEnabled = true;\n if (isPlatformBrowser()) {\n // On the client, verify that the server response contains\n // hydration annotations. Otherwise, keep hydration disabled.\n const transferState = inject(TransferState, { optional: true });\n isEnabled = !!transferState?.get(NGH_DATA_KEY, null);\n if (!isEnabled && (typeof ngDevMode !== 'undefined' && ngDevMode)) {\n const console = inject(Console);\n const message = formatRuntimeError(-505 /* RuntimeErrorCode.MISSING_HYDRATION_ANNOTATIONS */, 'Angular hydration was requested on the client, but there was no ' +\n 'serialized information present in the server response, ' +\n 'thus hydration was not enabled. ' +\n 'Make sure the `provideClientHydration()` is included into the list ' +\n 'of providers in the server part of the application configuration.');\n // tslint:disable-next-line:no-console\n console.warn(message);\n }\n }\n if (isEnabled) {\n performanceMarkFeature('NgHydration');\n }\n return isEnabled;\n },\n },\n {\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n _isI18nHydrationSupportEnabled = !!inject(IS_I18N_HYDRATION_ENABLED, { optional: true });\n // Since this function is used across both server and client,\n // make sure that the runtime code is only added when invoked\n // on the client. Moving forward, the `isPlatformBrowser` check should\n // be replaced with a tree-shakable alternative (e.g. `isServer`\n // flag).\n if (isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n verifySsrContentsIntegrity();\n enableHydrationRuntimeSupport();\n }\n },\n multi: true,\n },\n {\n provide: PRESERVE_HOST_CONTENT,\n useFactory: () => {\n // Preserve host element content only in a browser\n // environment and when hydration is configured properly.\n // On a server, an application is rendered from scratch,\n // so the host content needs to be empty.\n return isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED);\n }\n },\n {\n provide: APP_BOOTSTRAP_LISTENER,\n useFactory: () => {\n if (isPlatformBrowser() && inject(IS_HYDRATION_DOM_REUSE_ENABLED)) {\n const appRef = inject(ApplicationRef);\n const injector = inject(Injector);\n return () => {\n // Wait until an app becomes stable and cleanup all views that\n // were not claimed during the application bootstrap process.\n // The timing is similar to when we start the serialization process\n // on the server.\n //\n // Note: the cleanup task *MUST* be scheduled within the Angular zone in Zone apps\n // to ensure that change detection is properly run afterward.\n whenStableWithTimeout(appRef, injector).then(() => {\n cleanupDehydratedViews(appRef);\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n printHydrationStats(injector);\n }\n });\n };\n }\n return () => { }; // noop\n },\n multi: true,\n }\n ]);\n}\n/**\n * Returns a set of providers required to setup support for i18n hydration.\n * Requires hydration to be enabled separately.\n */\nfunction withI18nHydration() {\n return makeEnvironmentProviders([\n {\n provide: IS_I18N_HYDRATION_ENABLED,\n useValue: true,\n },\n ]);\n}\n/**\n * Returns whether i18n hydration support is enabled.\n */\nfunction isI18nHydrationSupportEnabled() {\n return _isI18nHydrationSupportEnabled;\n}\n/**\n *\n * @param time The time in ms until the stable timedout warning message is logged\n */\nfunction logWarningOnStableTimedout(time, console) {\n const message = `Angular hydration expected the ApplicationRef.isStable() to emit \\`true\\`, but it ` +\n `didn't happen within ${time}ms. Angular hydration logic depends on the application becoming stable ` +\n `as a signal to complete hydration process.`;\n console.warn(formatRuntimeError(-506 /* RuntimeErrorCode.HYDRATION_STABLE_TIMEDOUT */, message));\n}\n/**\n * Verifies whether the DOM contains a special marker added during SSR time to make sure\n * there is no SSR'ed contents transformations happen after SSR is completed. Typically that\n * happens either by CDN or during the build process as an optimization to remove comment nodes.\n * Hydration process requires comment nodes produced by Angular to locate correct DOM segments.\n * When this special marker is *not* present - throw an error and do not proceed with hydration,\n * since it will not be able to function correctly.\n *\n * Note: this function is invoked only on the client, so it's safe to use DOM APIs.\n */\nfunction verifySsrContentsIntegrity() {\n const doc = getDocument();\n let hydrationMarker;\n for (const node of doc.body.childNodes) {\n if (node.nodeType === Node.COMMENT_NODE &&\n node.textContent?.trim() === SSR_CONTENT_INTEGRITY_MARKER) {\n hydrationMarker = node;\n break;\n }\n }\n if (!hydrationMarker) {\n throw new RuntimeError(-507 /* RuntimeErrorCode.MISSING_SSR_CONTENT_INTEGRITY_MARKER */, typeof ngDevMode !== 'undefined' && ngDevMode &&\n 'Angular hydration logic detected that HTML content of this page was modified after it ' +\n 'was produced during server side rendering. Make sure that there are no optimizations ' +\n 'that remove comment nodes from HTML enabled on your CDN. Angular hydration ' +\n 'relies on HTML produced by the server, including whitespaces and comment nodes.');\n }\n}\n\n/**\n * A collection that tracks all serialized views (`ngh` DOM annotations)\n * to avoid duplication. An attempt to add a duplicate view results in the\n * collection returning the index of the previously collected serialized view.\n * This reduces the number of annotations needed for a given page.\n */\nclass SerializedViewCollection {\n constructor() {\n this.views = [];\n this.indexByContent = new Map();\n }\n add(serializedView) {\n const viewAsString = JSON.stringify(serializedView);\n if (!this.indexByContent.has(viewAsString)) {\n const index = this.views.length;\n this.views.push(serializedView);\n this.indexByContent.set(viewAsString, index);\n return index;\n }\n return this.indexByContent.get(viewAsString);\n }\n getAll() {\n return this.views;\n }\n}\n/**\n * Global counter that is used to generate a unique id for TViews\n * during the serialization process.\n */\nlet tViewSsrId = 0;\n/**\n * Generates a unique id for a given TView and returns this id.\n * The id is also stored on this instance of a TView and reused in\n * subsequent calls.\n *\n * This id is needed to uniquely identify and pick up dehydrated views\n * at runtime.\n */\nfunction getSsrId(tView) {\n if (!tView.ssrId) {\n tView.ssrId = `t${tViewSsrId++}`;\n }\n return tView.ssrId;\n}\n/**\n * Computes the number of root nodes in a given view\n * (or child nodes in a given container if a tNode is provided).\n */\nfunction calcNumRootNodes(tView, lView, tNode) {\n const rootNodes = [];\n collectNativeNodes(tView, lView, tNode, rootNodes);\n return rootNodes.length;\n}\n/**\n * Computes the number of root nodes in all views in a given LContainer.\n */\nfunction calcNumRootNodesInLContainer(lContainer) {\n const rootNodes = [];\n collectNativeNodesInLContainer(lContainer, rootNodes);\n return rootNodes.length;\n}\n/**\n * Annotates root level component's LView for hydration,\n * see `annotateHostElementForHydration` for additional information.\n */\nfunction annotateComponentLViewForHydration(lView, context) {\n const hostElement = lView[HOST];\n // Root elements might also be annotated with the `ngSkipHydration` attribute,\n // check if it's present before starting the serialization process.\n if (hostElement && !hostElement.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n return annotateHostElementForHydration(hostElement, lView, context);\n }\n return null;\n}\n/**\n * Annotates root level LContainer for hydration. This happens when a root component\n * injects ViewContainerRef, thus making the component an anchor for a view container.\n * This function serializes the component itself as well as all views from the view\n * container.\n */\nfunction annotateLContainerForHydration(lContainer, context) {\n const componentLView = unwrapLView(lContainer[HOST]);\n // Serialize the root component itself.\n const componentLViewNghIndex = annotateComponentLViewForHydration(componentLView, context);\n const hostElement = unwrapRNode(componentLView[HOST]);\n // Serialize all views within this view container.\n const rootLView = lContainer[PARENT];\n const rootLViewNghIndex = annotateHostElementForHydration(hostElement, rootLView, context);\n const renderer = componentLView[RENDERER];\n // For cases when a root component also acts as an anchor node for a ViewContainerRef\n // (for example, when ViewContainerRef is injected in a root component), there is a need\n // to serialize information about the component itself, as well as an LContainer that\n // represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info:\n // (1) hydration info for the root component itself and (2) hydration info for the\n // ViewContainerRef instance (an LContainer). Each piece of information is included into\n // the hydration data (in the TransferState object) separately, thus we end up with 2 ids.\n // Since we only have 1 root element, we encode both bits of info into a single string:\n // ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view\n // and 25 is the `ngh` for a root view which holds LContainer).\n const finalIndex = `${componentLViewNghIndex}|${rootLViewNghIndex}`;\n renderer.setAttribute(hostElement, NGH_ATTR_NAME, finalIndex);\n}\n/**\n * Annotates all components bootstrapped in a given ApplicationRef\n * with info needed for hydration.\n *\n * @param appRef An instance of an ApplicationRef.\n * @param doc A reference to the current Document instance.\n */\nfunction annotateForHydration(appRef, doc) {\n const serializedViewCollection = new SerializedViewCollection();\n const corruptedTextNodes = new Map();\n const viewRefs = appRef._views;\n for (const viewRef of viewRefs) {\n const lNode = getLNodeForHydration(viewRef);\n // An `lView` might be `null` if a `ViewRef` represents\n // an embedded view (not a component view).\n if (lNode !== null) {\n const context = {\n serializedViewCollection,\n corruptedTextNodes,\n };\n if (isLContainer(lNode)) {\n annotateLContainerForHydration(lNode, context);\n }\n else {\n annotateComponentLViewForHydration(lNode, context);\n }\n insertCorruptedTextNodeMarkers(corruptedTextNodes, doc);\n }\n }\n // Note: we *always* include hydration info key and a corresponding value\n // into the TransferState, even if the list of serialized views is empty.\n // This is needed as a signal to the client that the server part of the\n // hydration logic was setup and enabled correctly. Otherwise, if a client\n // hydration doesn't find a key in the transfer state - an error is produced.\n const serializedViews = serializedViewCollection.getAll();\n const transferState = appRef.injector.get(TransferState);\n transferState.set(NGH_DATA_KEY, serializedViews);\n}\n/**\n * Serializes the lContainer data into a list of SerializedView objects,\n * that represent views within this lContainer.\n *\n * @param lContainer the lContainer we are serializing\n * @param context the hydration context\n * @returns an array of the `SerializedView` objects\n */\nfunction serializeLContainer(lContainer, context) {\n const views = [];\n let lastViewAsString = '';\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n let childLView = lContainer[i];\n let template;\n let numRootNodes;\n let serializedView;\n if (isRootView(childLView)) {\n // If this is a root view, get an LView for the underlying component,\n // because it contains information about the view to serialize.\n childLView = childLView[HEADER_OFFSET];\n // If we have an LContainer at this position, this indicates that the\n // host element was used as a ViewContainerRef anchor (e.g. a `ViewContainerRef`\n // was injected within the component class). This case requires special handling.\n if (isLContainer(childLView)) {\n // Calculate the number of root nodes in all views in a given container\n // and increment by one to account for an anchor node itself, i.e. in this\n // scenario we'll have a layout that would look like this:\n // `<app-root /><#VIEW1><#VIEW2>...<!--container-->`\n // The `+1` is to capture the `<app-root />` element.\n numRootNodes = calcNumRootNodesInLContainer(childLView) + 1;\n annotateLContainerForHydration(childLView, context);\n const componentLView = unwrapLView(childLView[HOST]);\n serializedView = {\n [TEMPLATE_ID]: componentLView[TVIEW].ssrId,\n [NUM_ROOT_NODES]: numRootNodes,\n };\n }\n }\n if (!serializedView) {\n const childTView = childLView[TVIEW];\n if (childTView.type === 1 /* TViewType.Component */) {\n template = childTView.ssrId;\n // This is a component view, thus it has only 1 root node: the component\n // host node itself (other nodes would be inside that host node).\n numRootNodes = 1;\n }\n else {\n template = getSsrId(childTView);\n numRootNodes = calcNumRootNodes(childTView, childLView, childTView.firstChild);\n }\n serializedView = {\n [TEMPLATE_ID]: template,\n [NUM_ROOT_NODES]: numRootNodes,\n ...serializeLView(lContainer[i], context),\n };\n }\n // Check if the previous view has the same shape (for example, it was\n // produced by the *ngFor), in which case bump the counter on the previous\n // view instead of including the same information again.\n const currentViewAsString = JSON.stringify(serializedView);\n if (views.length > 0 && currentViewAsString === lastViewAsString) {\n const previousView = views[views.length - 1];\n previousView[MULTIPLIER] ??= 1;\n previousView[MULTIPLIER]++;\n }\n else {\n // Record this view as most recently added.\n lastViewAsString = currentViewAsString;\n views.push(serializedView);\n }\n }\n return views;\n}\n/**\n * Helper function to produce a node path (which navigation steps runtime logic\n * needs to take to locate a node) and stores it in the `NODES` section of the\n * current serialized view.\n */\nfunction appendSerializedNodePath(ngh, tNode, lView) {\n const noOffsetIndex = tNode.index - HEADER_OFFSET;\n ngh[NODES] ??= {};\n ngh[NODES][noOffsetIndex] = calcPathForNode(tNode, lView);\n}\n/**\n * Helper function to append information about a disconnected node.\n * This info is needed at runtime to avoid DOM lookups for this element\n * and instead, the element would be created from scratch.\n */\nfunction appendDisconnectedNodeIndex(ngh, tNode) {\n const noOffsetIndex = tNode.index - HEADER_OFFSET;\n ngh[DISCONNECTED_NODES] ??= [];\n if (!ngh[DISCONNECTED_NODES].includes(noOffsetIndex)) {\n ngh[DISCONNECTED_NODES].push(noOffsetIndex);\n }\n}\n/**\n * Serializes the lView data into a SerializedView object that will later be added\n * to the TransferState storage and referenced using the `ngh` attribute on a host\n * element.\n *\n * @param lView the lView we are serializing\n * @param context the hydration context\n * @returns the `SerializedView` object containing the data to be added to the host node\n */\nfunction serializeLView(lView, context) {\n const ngh = {};\n const tView = lView[TVIEW];\n // Iterate over DOM element references in an LView.\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n const tNode = tView.data[i];\n const noOffsetIndex = i - HEADER_OFFSET;\n // Skip processing of a given slot in the following cases:\n // - Local refs (e.g. <div #localRef>) take up an extra slot in LViews\n // to store the same element. In this case, there is no information in\n // a corresponding slot in TNode data structure.\n // - When a slot contains something other than a TNode. For example, there\n // might be some metadata information about a defer block or a control flow block.\n if (!isTNodeShape(tNode)) {\n continue;\n }\n // Check if a native node that represents a given TNode is disconnected from the DOM tree.\n // Such nodes must be excluded from the hydration (since the hydration won't be able to\n // find them), so the TNode ids are collected and used at runtime to skip the hydration.\n //\n // This situation may happen during the content projection, when some nodes don't make it\n // into one of the content projection slots (for example, when there is no default\n // <ng-content /> slot in projector component's template).\n if (isDisconnectedNode(tNode, lView) && isContentProjectedNode(tNode)) {\n appendDisconnectedNodeIndex(ngh, tNode);\n continue;\n }\n if (Array.isArray(tNode.projection)) {\n for (const projectionHeadTNode of tNode.projection) {\n // We may have `null`s in slots with no projected content.\n if (!projectionHeadTNode)\n continue;\n if (!Array.isArray(projectionHeadTNode)) {\n // If we process re-projected content (i.e. `<ng-content>`\n // appears at projection location), skip annotations for this content\n // since all DOM nodes in this projection were handled while processing\n // a parent lView, which contains those nodes.\n if (!isProjectionTNode(projectionHeadTNode) &&\n !isInSkipHydrationBlock(projectionHeadTNode)) {\n if (isDisconnectedNode(projectionHeadTNode, lView)) {\n // Check whether this node is connected, since we may have a TNode\n // in the data structure as a projection segment head, but the\n // content projection slot might be disabled (e.g.\n // <ng-content *ngIf=\"false\" />).\n appendDisconnectedNodeIndex(ngh, projectionHeadTNode);\n }\n else {\n appendSerializedNodePath(ngh, projectionHeadTNode, lView);\n }\n }\n }\n else {\n // If a value is an array, it means that we are processing a projection\n // where projectable nodes were passed in as DOM nodes (for example, when\n // calling `ViewContainerRef.createComponent(CmpA, {projectableNodes: [...]})`).\n //\n // In this scenario, nodes can come from anywhere (either created manually,\n // accessed via `document.querySelector`, etc) and may be in any state\n // (attached or detached from the DOM tree). As a result, we can not reliably\n // restore the state for such cases during hydration.\n throw unsupportedProjectionOfDomNodes(unwrapRNode(lView[i]));\n }\n }\n }\n conditionallyAnnotateNodePath(ngh, tNode, lView);\n if (isLContainer(lView[i])) {\n // Serialize information about a template.\n const embeddedTView = tNode.tView;\n if (embeddedTView !== null) {\n ngh[TEMPLATES] ??= {};\n ngh[TEMPLATES][noOffsetIndex] = getSsrId(embeddedTView);\n }\n // Serialize views within this LContainer.\n const hostNode = lView[i][HOST]; // host node of this container\n // LView[i][HOST] can be of 2 different types:\n // - either a DOM node\n // - or an array that represents an LView of a component\n if (Array.isArray(hostNode)) {\n // This is a component, serialize info about it.\n const targetNode = unwrapRNode(hostNode);\n if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n annotateHostElementForHydration(targetNode, hostNode, context);\n }\n }\n ngh[CONTAINERS] ??= {};\n ngh[CONTAINERS][noOffsetIndex] = serializeLContainer(lView[i], context);\n }\n else if (Array.isArray(lView[i])) {\n // This is a component, annotate the host node with an `ngh` attribute.\n const targetNode = unwrapRNode(lView[i][HOST]);\n if (!targetNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME)) {\n annotateHostElementForHydration(targetNode, lView[i], context);\n }\n }\n else {\n // <ng-container> case\n if (tNode.type & 8 /* TNodeType.ElementContainer */) {\n // An <ng-container> is represented by the number of\n // top-level nodes. This information is needed to skip over\n // those nodes to reach a corresponding anchor node (comment node).\n ngh[ELEMENT_CONTAINERS] ??= {};\n ngh[ELEMENT_CONTAINERS][noOffsetIndex] = calcNumRootNodes(tView, lView, tNode.child);\n }\n else if (tNode.type & 16 /* TNodeType.Projection */) {\n // Current TNode represents an `<ng-content>` slot, thus it has no\n // DOM elements associated with it, so the **next sibling** node would\n // not be able to find an anchor. In this case, use full path instead.\n let nextTNode = tNode.next;\n // Skip over all `<ng-content>` slots in a row.\n while (nextTNode !== null && (nextTNode.type & 16 /* TNodeType.Projection */)) {\n nextTNode = nextTNode.next;\n }\n if (nextTNode && !isInSkipHydrationBlock(nextTNode)) {\n // Handle a tNode after the `<ng-content>` slot.\n appendSerializedNodePath(ngh, nextTNode, lView);\n }\n }\n else {\n // Handle cases where text nodes can be lost after DOM serialization:\n // 1. When there is an *empty text node* in DOM: in this case, this\n // node would not make it into the serialized string and as a result,\n // this node wouldn't be created in a browser. This would result in\n // a mismatch during the hydration, where the runtime logic would expect\n // a text node to be present in live DOM, but no text node would exist.\n // Example: `<span>{{ name }}</span>` when the `name` is an empty string.\n // This would result in `<span></span>` string after serialization and\n // in a browser only the `span` element would be created. To resolve that,\n // an extra comment node is appended in place of an empty text node and\n // that special comment node is replaced with an empty text node *before*\n // hydration.\n // 2. When there are 2 consecutive text nodes present in the DOM.\n // Example: `<div>Hello <ng-container *ngIf=\"true\">world</ng-container></div>`.\n // In this scenario, the live DOM would look like this:\n // <div>#text('Hello ') #text('world') #comment('container')</div>\n // Serialized string would look like this: `<div>Hello world<!--container--></div>`.\n // The live DOM in a browser after that would be:\n // <div>#text('Hello world') #comment('container')</div>\n // Notice how 2 text nodes are now \"merged\" into one. This would cause hydration\n // logic to fail, since it'd expect 2 text nodes being present, not one.\n // To fix this, we insert a special comment node in between those text nodes, so\n // serialized representation is: `<div>Hello <!--ngtns-->world<!--container--></div>`.\n // This forces browser to create 2 text nodes separated by a comment node.\n // Before running a hydration process, this special comment node is removed, so the\n // live DOM has exactly the same state as it was before serialization.\n if (tNode.type & 1 /* TNodeType.Text */) {\n const rNode = unwrapRNode(lView[i]);\n // Collect this node as required special annotation only when its\n // contents is empty. Otherwise, such text node would be present on\n // the client after server-side rendering and no special handling needed.\n if (rNode.textContent === '') {\n context.corruptedTextNodes.set(rNode, \"ngetn\" /* TextNodeMarker.EmptyNode */);\n }\n else if (rNode.nextSibling?.nodeType === Node.TEXT_NODE) {\n context.corruptedTextNodes.set(rNode, \"ngtns\" /* TextNodeMarker.Separator */);\n }\n }\n }\n }\n }\n return ngh;\n}\n/**\n * Serializes node location in cases when it's needed, specifically:\n *\n * 1. If `tNode.projectionNext` is different from `tNode.next` - it means that\n * the next `tNode` after projection is different from the one in the original\n * template. Since hydration relies on `tNode.next`, this serialized info\n * if required to help runtime code find the node at the correct location.\n * 2. In certain content projection-based use-cases, it's possible that only\n * a content of a projected element is rendered. In this case, content nodes\n * require an extra annotation, since runtime logic can't rely on parent-child\n * connection to identify the location of a node.\n */\nfunction conditionallyAnnotateNodePath(ngh, tNode, lView) {\n // Handle case #1 described above.\n if (tNode.projectionNext && tNode.projectionNext !== tNode.next &&\n !isInSkipHydrationBlock(tNode.projectionNext)) {\n appendSerializedNodePath(ngh, tNode.projectionNext, lView);\n }\n // Handle case #2 described above.\n // Note: we only do that for the first node (i.e. when `tNode.prev === null`),\n // the rest of the nodes would rely on the current node location, so no extra\n // annotation is needed.\n if (tNode.prev === null && tNode.parent !== null && isDisconnectedNode(tNode.parent, lView) &&\n !isDisconnectedNode(tNode, lView)) {\n appendSerializedNodePath(ngh, tNode, lView);\n }\n}\n/**\n * Determines whether a component instance that is represented\n * by a given LView uses `ViewEncapsulation.ShadowDom`.\n */\nfunction componentUsesShadowDomEncapsulation(lView) {\n const instance = lView[CONTEXT];\n return instance?.constructor ?\n getComponentDef(instance.constructor)?.encapsulation === ViewEncapsulation$1.ShadowDom :\n false;\n}\n/**\n * Annotates component host element for hydration:\n * - by either adding the `ngh` attribute and collecting hydration-related info\n * for the serialization and transferring to the client\n * - or by adding the `ngSkipHydration` attribute in case Angular detects that\n * component contents is not compatible with hydration.\n *\n * @param element The Host element to be annotated\n * @param lView The associated LView\n * @param context The hydration context\n * @returns An index of serialized view from the transfer state object\n * or `null` when a given component can not be serialized.\n */\nfunction annotateHostElementForHydration(element, lView, context) {\n const renderer = lView[RENDERER];\n if ((hasI18n(lView) && !isI18nHydrationSupportEnabled()) ||\n componentUsesShadowDomEncapsulation(lView)) {\n // Attach the skip hydration attribute if this component:\n // - either has i18n blocks, since hydrating such blocks is not yet supported\n // - or uses ShadowDom view encapsulation, since Domino doesn't support\n // shadow DOM, so we can not guarantee that client and server representations\n // would exactly match\n renderer.setAttribute(element, SKIP_HYDRATION_ATTR_NAME, '');\n return null;\n }\n else {\n const ngh = serializeLView(lView, context);\n const index = context.serializedViewCollection.add(ngh);\n renderer.setAttribute(element, NGH_ATTR_NAME, index.toString());\n return index;\n }\n}\n/**\n * Physically inserts the comment nodes to ensure empty text nodes and adjacent\n * text node separators are preserved after server serialization of the DOM.\n * These get swapped back for empty text nodes or separators once hydration happens\n * on the client.\n *\n * @param corruptedTextNodes The Map of text nodes to be replaced with comments\n * @param doc The document\n */\nfunction insertCorruptedTextNodeMarkers(corruptedTextNodes, doc) {\n for (const [textNode, marker] of corruptedTextNodes) {\n textNode.after(doc.createComment(marker));\n }\n}\n/**\n * Detects whether a given TNode represents a node that\n * is being content projected.\n */\nfunction isContentProjectedNode(tNode) {\n let currentTNode = tNode;\n while (currentTNode != null) {\n // If we come across a component host node in parent nodes -\n // this TNode is in the content projection section.\n if (isComponentHost(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n\n/**\n * Queue a state update to be performed asynchronously.\n *\n * This is useful to safely update application state that is used in an expression that was already\n * checked during change detection. This defers the update until later and prevents\n * `ExpressionChangedAfterItHasBeenChecked` errors. Using signals for state is recommended instead,\n * but it's not always immediately possible to change the state to a signal because it would be a\n * breaking change. When the callback updates state used in an expression, this needs to be\n * accompanied by an explicit notification to the framework that something has changed (i.e.\n * updating a signal or calling `ChangeDetectorRef.markForCheck()`) or may still cause\n * `ExpressionChangedAfterItHasBeenChecked` in dev mode or fail to synchronize the state to the DOM\n * in production.\n */\nfunction queueStateUpdate(callback, options) {\n !options && assertInInjectionContext(queueStateUpdate);\n const injector = options?.injector ?? inject(Injector);\n const appRef = injector.get(ApplicationRef);\n let executed = false;\n const runCallbackOnce = () => {\n if (executed || appRef.destroyed)\n return;\n executed = true;\n callback();\n };\n internalAfterNextRender(runCallbackOnce, { injector, runOnServer: true });\n queueMicrotask(runCallbackOnce);\n}\n\n/**\n * Transforms a value (typically a string) to a boolean.\n * Intended to be used as a transform function of an input.\n *\n * @usageNotes\n * ```typescript\n * @Input({ transform: booleanAttribute }) status!: boolean;\n * ```\n * @param value Value to be transformed.\n *\n * @publicApi\n */\nfunction booleanAttribute(value) {\n return typeof value === 'boolean' ? value : (value != null && value !== 'false');\n}\n/**\n * Transforms a value (typically a string) to a number.\n * Intended to be used as a transform function of an input.\n * @param value Value to be transformed.\n * @param fallbackValue Value to use if the provided value can't be parsed as a number.\n *\n * @usageNotes\n * ```typescript\n * @Input({ transform: numberAttribute }) id!: number;\n * ```\n *\n * @publicApi\n */\nfunction numberAttribute(value, fallbackValue = NaN) {\n // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n // and other non-number values as NaN, where Number just uses 0) but it considers the string\n // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n const isNumberValue = !isNaN(parseFloat(value)) && !isNaN(Number(value));\n return isNumberValue ? Number(value) : fallbackValue;\n}\n\n/**\n * Compiles a partial directive declaration object into a full directive definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareDirective(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'directive', type: decl.type });\n return compiler.compileDirectiveDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\n/**\n * Evaluates the class metadata declaration.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareClassMetadata(decl) {\n setClassMetadata(decl.type, decl.decorators, decl.ctorParameters ?? null, decl.propDecorators ?? null);\n}\n/**\n * Compiles a partial component declaration object into a full component definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareComponent(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'component', type: decl.type });\n return compiler.compileComponentDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵcmp.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareFactory(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* JitCompilerUsage.PartialDeclaration */,\n kind: getFactoryKind(decl.target),\n type: decl.type\n });\n return compiler.compileFactoryDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\nfunction getFactoryKind(target) {\n switch (target) {\n case FactoryTarget.Directive:\n return 'directive';\n case FactoryTarget.Component:\n return 'component';\n case FactoryTarget.Injectable:\n return 'injectable';\n case FactoryTarget.Pipe:\n return 'pipe';\n case FactoryTarget.NgModule:\n return 'NgModule';\n }\n}\n/**\n * Compiles a partial injectable declaration object into a full injectable definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjectable(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'injectable', type: decl.type });\n return compiler.compileInjectableDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵprov.js`, decl);\n}\n/**\n * Compiles a partial injector declaration object into a full injector definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjector(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'NgModule', type: decl.type });\n return compiler.compileInjectorDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵinj.js`, decl);\n}\n/**\n * Compiles a partial NgModule declaration object into a full NgModule definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareNgModule(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'NgModule', type: decl.type });\n return compiler.compileNgModuleDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵmod.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclarePipe(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* JitCompilerUsage.PartialDeclaration */, kind: 'pipe', type: decl.type });\n return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);\n}\n\n// clang-format off\n// clang-format on\n\n/**\n * Create a computed `Signal` which derives a reactive value from an expression.\n */\nfunction computed(computation, options) {\n performanceMarkFeature('NgSignals');\n const getter = createComputed$1(computation);\n if (options?.equal) {\n getter[SIGNAL$1].equal = options.equal;\n }\n if (ngDevMode) {\n getter.toString = () => `[Computed: ${getter()}]`;\n }\n return getter;\n}\n\n/**\n * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function\n * can, optionally, return a value.\n */\nfunction untracked(nonReactiveReadsFn) {\n const prevConsumer = setActiveConsumer$1(null);\n // We are not trying to catch any particular errors here, just making sure that the consumers\n // stack is restored in case of errors.\n try {\n return nonReactiveReadsFn();\n }\n finally {\n setActiveConsumer$1(prevConsumer);\n }\n}\n\n/**\n * Not public API, which guarantees `EffectScheduler` only ever comes from the application root\n * injector.\n */\nconst APP_EFFECT_SCHEDULER = new InjectionToken('', {\n providedIn: 'root',\n factory: () => inject(EffectScheduler),\n});\n/**\n * A scheduler which manages the execution of effects.\n */\nclass EffectScheduler {\n /** @nocollapse */\n static { this.ɵprov = ɵɵdefineInjectable({\n token: EffectScheduler,\n providedIn: 'root',\n factory: () => new ZoneAwareEffectScheduler(),\n }); }\n}\n/**\n * A wrapper around `ZoneAwareQueueingScheduler` that schedules flushing via the microtask queue\n * when.\n */\nclass ZoneAwareEffectScheduler {\n constructor() {\n this.queuedEffectCount = 0;\n this.queues = new Map();\n this.pendingTasks = inject(PendingTasks);\n this.taskId = null;\n }\n scheduleEffect(handle) {\n this.enqueue(handle);\n if (this.taskId === null) {\n const taskId = this.taskId = this.pendingTasks.add();\n queueMicrotask(() => {\n this.flush();\n this.pendingTasks.remove(taskId);\n this.taskId = null;\n });\n }\n }\n enqueue(handle) {\n const zone = handle.creationZone;\n if (!this.queues.has(zone)) {\n this.queues.set(zone, new Set());\n }\n const queue = this.queues.get(zone);\n if (queue.has(handle)) {\n return;\n }\n this.queuedEffectCount++;\n queue.add(handle);\n }\n /**\n * Run all scheduled effects.\n *\n * Execution order of effects within the same zone is guaranteed to be FIFO, but there is no\n * ordering guarantee between effects scheduled in different zones.\n */\n flush() {\n while (this.queuedEffectCount > 0) {\n for (const [zone, queue] of this.queues) {\n // `zone` here must be defined.\n if (zone === null) {\n this.flushQueue(queue);\n }\n else {\n zone.run(() => this.flushQueue(queue));\n }\n }\n }\n }\n flushQueue(queue) {\n for (const handle of queue) {\n queue.delete(handle);\n this.queuedEffectCount--;\n // TODO: what happens if this throws an error?\n handle.run();\n }\n }\n}\n/**\n * Core reactive node for an Angular effect.\n *\n * `EffectHandle` combines the reactive graph's `Watch` base node for effects with the framework's\n * scheduling abstraction (`EffectScheduler`) as well as automatic cleanup via `DestroyRef` if\n * available/requested.\n */\nclass EffectHandle {\n constructor(scheduler, effectFn, creationZone, destroyRef, injector, allowSignalWrites) {\n this.scheduler = scheduler;\n this.effectFn = effectFn;\n this.creationZone = creationZone;\n this.injector = injector;\n this.watcher = createWatch$1((onCleanup) => this.runEffect(onCleanup), () => this.schedule(), allowSignalWrites);\n this.unregisterOnDestroy = destroyRef?.onDestroy(() => this.destroy());\n }\n runEffect(onCleanup) {\n try {\n this.effectFn(onCleanup);\n }\n catch (err) {\n // Inject the `ErrorHandler` here in order to avoid circular DI error\n // if the effect is used inside of a custom `ErrorHandler`.\n const errorHandler = this.injector.get(ErrorHandler, null, { optional: true });\n errorHandler?.handleError(err);\n }\n }\n run() {\n this.watcher.run();\n }\n schedule() {\n this.scheduler.scheduleEffect(this);\n }\n destroy() {\n this.watcher.destroy();\n this.unregisterOnDestroy?.();\n // Note: if the effect is currently scheduled, it's not un-scheduled, and so the scheduler will\n // retain a reference to it. Attempting to execute it will be a no-op.\n }\n}\n/**\n * Create a global `Effect` for the given reactive function.\n *\n * @developerPreview\n */\nfunction effect(effectFn, options) {\n performanceMarkFeature('NgSignals');\n ngDevMode &&\n assertNotInReactiveContext(effect, 'Call `effect` outside of a reactive context. For example, schedule the ' +\n 'effect inside the component constructor.');\n !options?.injector && assertInInjectionContext(effect);\n const injector = options?.injector ?? inject(Injector);\n const destroyRef = options?.manualCleanup !== true ? injector.get(DestroyRef) : null;\n const handle = new EffectHandle(injector.get(APP_EFFECT_SCHEDULER), effectFn, (typeof Zone === 'undefined') ? null : Zone.current, destroyRef, injector, options?.allowSignalWrites ?? false);\n // Effects need to be marked dirty manually to trigger their initial run. The timing of this\n // marking matters, because the effects may read signals that track component inputs, which are\n // only available after those components have had their first update pass.\n //\n // We inject `ChangeDetectorRef` optionally, to determine whether this effect is being created in\n // the context of a component or not. If it is, then we check whether the component has already\n // run its update pass, and defer the effect's initial scheduling until the update pass if it\n // hasn't already run.\n const cdr = injector.get(ChangeDetectorRef, null, { optional: true });\n if (!cdr || !(cdr._lView[FLAGS] & 8 /* LViewFlags.FirstLViewPass */)) {\n // This effect is either not running in a view injector, or the view has already\n // undergone its first change detection pass, which is necessary for any required inputs to be\n // set.\n handle.watcher.notify();\n }\n else {\n // Delay the initialization of the effect until the view is fully initialized.\n (cdr._lView[EFFECTS_TO_SCHEDULE] ??= []).push(handle.watcher.notify);\n }\n return handle;\n}\n\n// clang-format off\n// clang-format on\n\n// This file exists to allow the set of reactivity exports to be modified in g3, as these APIs are\n\n/**\n * Creates a `ComponentRef` instance based on provided component type and a set of options.\n *\n * @usageNotes\n *\n * The example below demonstrates how the `createComponent` function can be used\n * to create an instance of a ComponentRef dynamically and attach it to an ApplicationRef,\n * so that it gets included into change detection cycles.\n *\n * Note: the example uses standalone components, but the function can also be used for\n * non-standalone components (declared in an NgModule) as well.\n *\n * ```typescript\n * @Component({\n * standalone: true,\n * template: `Hello {{ name }}!`\n * })\n * class HelloComponent {\n * name = 'Angular';\n * }\n *\n * @Component({\n * standalone: true,\n * template: `<div id=\"hello-component-host\"></div>`\n * })\n * class RootComponent {}\n *\n * // Bootstrap an application.\n * const applicationRef = await bootstrapApplication(RootComponent);\n *\n * // Locate a DOM node that would be used as a host.\n * const hostElement = document.getElementById('hello-component-host');\n *\n * // Get an `EnvironmentInjector` instance from the `ApplicationRef`.\n * const environmentInjector = applicationRef.injector;\n *\n * // We can now create a `ComponentRef` instance.\n * const componentRef = createComponent(HelloComponent, {hostElement, environmentInjector});\n *\n * // Last step is to register the newly created ref using the `ApplicationRef` instance\n * // to include the component view into change detection cycles.\n * applicationRef.attachView(componentRef.hostView);\n * componentRef.changeDetectorRef.detectChanges();\n * ```\n *\n * @param component Component class reference.\n * @param options Set of options to use:\n * * `environmentInjector`: An `EnvironmentInjector` instance to be used for the component, see\n * additional info about it [here](/guide/standalone-components#environment-injectors).\n * * `hostElement` (optional): A DOM node that should act as a host node for the component. If not\n * provided, Angular creates one based on the tag name used in the component selector (and falls\n * back to using `div` if selector doesn't have tag name info).\n * * `elementInjector` (optional): An `ElementInjector` instance, see additional info about it\n * [here](/guide/hierarchical-dependency-injection#elementinjector).\n * * `projectableNodes` (optional): A list of DOM nodes that should be projected through\n * [`<ng-content>`](api/core/ng-content) of the new component instance.\n * @returns ComponentRef instance that represents a given Component.\n *\n * @publicApi\n */\nfunction createComponent(component, options) {\n ngDevMode && assertComponentDef(component);\n const componentDef = getComponentDef(component);\n const elementInjector = options.elementInjector || getNullInjector();\n const factory = new ComponentFactory(componentDef);\n return factory.create(elementInjector, options.projectableNodes, options.hostElement, options.environmentInjector);\n}\n/**\n * Creates an object that allows to retrieve component metadata.\n *\n * @usageNotes\n *\n * The example below demonstrates how to use the function and how the fields\n * of the returned object map to the component metadata.\n *\n * ```typescript\n * @Component({\n * standalone: true,\n * selector: 'foo-component',\n * template: `\n * <ng-content></ng-content>\n * <ng-content select=\"content-selector-a\"></ng-content>\n * `,\n * })\n * class FooComponent {\n * @Input('inputName') inputPropName: string;\n * @Output('outputName') outputPropName = new EventEmitter<void>();\n * }\n *\n * const mirror = reflectComponentType(FooComponent);\n * expect(mirror.type).toBe(FooComponent);\n * expect(mirror.selector).toBe('foo-component');\n * expect(mirror.isStandalone).toBe(true);\n * expect(mirror.inputs).toEqual([{propName: 'inputName', templateName: 'inputPropName'}]);\n * expect(mirror.outputs).toEqual([{propName: 'outputName', templateName: 'outputPropName'}]);\n * expect(mirror.ngContentSelectors).toEqual([\n * '*', // first `<ng-content>` in a template, the selector defaults to `*`\n * 'content-selector-a' // second `<ng-content>` in a template\n * ]);\n * ```\n *\n * @param component Component class reference.\n * @returns An object that allows to retrieve component metadata.\n *\n * @publicApi\n */\nfunction reflectComponentType(component) {\n const componentDef = getComponentDef(component);\n if (!componentDef)\n return null;\n const factory = new ComponentFactory(componentDef);\n return {\n get selector() {\n return factory.selector;\n },\n get type() {\n return factory.componentType;\n },\n get inputs() {\n return factory.inputs;\n },\n get outputs() {\n return factory.outputs;\n },\n get ngContentSelectors() {\n return factory.ngContentSelectors;\n },\n get isStandalone() {\n return componentDef.standalone;\n },\n get isSignal() {\n return componentDef.signals;\n },\n };\n}\n\n/**\n * Merge multiple application configurations from left to right.\n *\n * @param configs Two or more configurations to be merged.\n * @returns A merged [ApplicationConfig](api/core/ApplicationConfig).\n *\n * @publicApi\n */\nfunction mergeApplicationConfig(...configs) {\n return configs.reduce((prev, curr) => {\n return Object.assign(prev, curr, { providers: [...prev.providers, ...curr.providers] });\n }, { providers: [] });\n}\n\n/**\n * @module\n * @description\n * Entry point from which you should import all public core APIs.\n */\nif (typeof ngDevMode !== 'undefined' && ngDevMode) {\n // This helper is to give a reasonable error message to people upgrading to v9 that have not yet\n // installed `@angular/localize` in their app.\n // tslint:disable-next-line: no-toplevel-property-access\n _global.$localize ??= function () {\n throw new Error('It looks like your application or one of its dependencies is using i18n.\\n' +\n 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\\n' +\n 'Please run `ng add @angular/localize` from the Angular CLI.\\n' +\n '(For non-CLI projects, add `import \\'@angular/localize/init\\';` to your `polyfills.ts` file.\\n' +\n 'For server-side rendering applications add the import to your `main.server.ts` file.)');\n };\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/* This file is not used to build this module. It is only used during editing\n * by the TypeScript language service and during build for verification. `ngc`\n * replaces this file with production index.ts when it rewrites private symbol\n * names.\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, AfterRenderPhase, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CSP_NONCE, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, DestroyRef, Directive, ENVIRONMENT_INITIALIZER, ElementRef, EmbeddedViewRef, EnvironmentInjector, ErrorHandler, EventEmitter, Host, HostAttributeToken, HostBinding, HostListener, INJECTOR$1 as INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, OutputEmitterRef, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, Renderer2, RendererFactory2, RendererStyleFlags2, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, TransferState, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, afterNextRender, afterRender, asNativeElements, assertInInjectionContext, assertNotInReactiveContext, assertPlatform, booleanAttribute, computed, contentChild, contentChildren, createComponent, createEnvironmentInjector, createNgModule, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, effect, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, importProvidersFrom, inject, input, isDevMode, isSignal, isStandalone, makeEnvironmentProviders, makeStateKey, mergeApplicationConfig, model, numberAttribute, output, platformCore, provideZoneChangeDetection, reflectComponentType, resolveForwardRef, runInInjectionContext, setTestabilityGetter, signal, untracked, viewChild, viewChildren, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, AfterRenderEventManager as ɵAfterRenderEventManager, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, DEFER_BLOCK_CONFIG as ɵDEFER_BLOCK_CONFIG, DEFER_BLOCK_DEPENDENCY_INTERCEPTOR as ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockState as ɵDeferBlockState, EffectScheduler as ɵEffectScheduler, IMAGE_CONFIG as ɵIMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, ɵINPUT_SIGNAL_BRAND_WRITE_TYPE, IS_HYDRATION_DOM_REUSE_ENABLED as ɵIS_HYDRATION_DOM_REUSE_ENABLED, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, PendingTasks as ɵPendingTasks, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, SSR_CONTENT_INTEGRITY_MARKER as ɵSSR_CONTENT_INTEGRITY_MARKER, TESTABILITY as ɵTESTABILITY, TESTABILITY_GETTER as ɵTESTABILITY_GETTER, USE_RUNTIME_DEPS_TRACKER_FOR_JIT as ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT, ViewRef$1 as ɵViewRef, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, annotateForHydration as ɵannotateForHydration, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, depsTracker as ɵdepsTracker, detectChangesInViewIfRequired as ɵdetectChangesInViewIfRequired, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, formatRuntimeError as ɵformatRuntimeError, generateStandaloneInDeclarationsError as ɵgenerateStandaloneInDeclarationsError, getAsyncClassMetadataFn as ɵgetAsyncClassMetadataFn, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getDirectives as ɵgetDirectives, getEnsureDirtyViewsAreAlwaysReachable as ɵgetEnsureDirtyViewsAreAlwaysReachable, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getOutputDestroyRef as ɵgetOutputDestroyRef, getSanitizationBypassType as ɵgetSanitizationBypassType, ɵgetUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, internalAfterNextRender as ɵinternalAfterNextRender, internalCreateApplication as ɵinternalCreateApplication, isBoundToModule as ɵisBoundToModule, isComponentDefPendingResolution as ɵisComponentDefPendingResolution, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, isNgModule as ɵisNgModule, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, performanceMarkFeature as ɵperformanceMarkFeature, provideZonelessChangeDetection as ɵprovideZonelessChangeDetection, queueStateUpdate as ɵqueueStateUpdate, readHydrationInfo as ɵreadHydrationInfo, registerLocaleData as ɵregisterLocaleData, renderDeferBlockState as ɵrenderDeferBlockState, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, restoreComponentResolutionQueue as ɵrestoreComponentResolutionQueue, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl, ɵsetClassDebugInfo, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setEnsureDirtyViewsAreAlwaysReachable as ɵsetEnsureDirtyViewsAreAlwaysReachable, setInjectorProfilerContext as ɵsetInjectorProfilerContext, setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, triggerResourceLoading as ɵtriggerResourceLoading, truncateMiddle as ɵtruncateMiddle, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, ɵunwrapWritableSignal, whenStable as ɵwhenStable, withDomHydration as ɵwithDomHydration, withI18nHydration as ɵwithI18nHydration, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵHostDirectivesFeature, ɵɵInheritDefinitionFeature, InputFlags as ɵɵInputFlags, ɵɵInputTransformsFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵStandaloneFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcomponentInstance, ɵɵconditional, ɵɵcontentQuery, ɵɵcontentQuerySignal, ɵɵdefer, ɵɵdeferEnableTimerScheduling, ɵɵdeferOnHover, ɵɵdeferOnIdle, ɵɵdeferOnImmediate, ɵɵdeferOnInteraction, ɵɵdeferOnTimer, ɵɵdeferOnViewport, ɵɵdeferPrefetchOnHover, ɵɵdeferPrefetchOnIdle, ɵɵdeferPrefetchOnImmediate, ɵɵdeferPrefetchOnInteraction, ɵɵdeferPrefetchOnTimer, ɵɵdeferPrefetchOnViewport, ɵɵdeferPrefetchWhen, ɵɵdeferWhen, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryAdvance, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, ɵɵrepeaterTrackByIndex, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtwoWayBindingSet, ɵɵtwoWayListener, ɵɵtwoWayProperty, ɵɵvalidateIframeAttribute, ɵɵviewQuery, ɵɵviewQuerySignal };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisSubscribable, ɵRuntimeError, Self, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, Injectable, inject, NgModule, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BaseControlValueAccessor {\n constructor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n /**\n * The registered callback function called when a change or input event occurs on the input\n * element.\n * @nodoc\n */\n this.onChange = (_) => { };\n /**\n * The registered callback function called when a blur event occurs on the input element.\n * @nodoc\n */\n this.onTouched = () => { };\n }\n /**\n * Helper method that sets a property on a target element using the current Renderer\n * implementation.\n * @nodoc\n */\n setProperty(key, value) {\n this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n }\n /**\n * Registers a function called when the control is touched.\n * @nodoc\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = fn;\n }\n /**\n * Sets the \"disabled\" property on the range input element.\n * @nodoc\n */\n setDisabledState(isDisabled) {\n this.setProperty('disabled', isDisabled);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: BaseControlValueAccessor, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BaseControlValueAccessor, decorators: [{\n type: Directive\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BuiltInControlValueAccessor extends BaseControlValueAccessor {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{\n type: Directive\n }] });\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = new InjectionToken(ngDevMode ? 'NgValueAccessor' : '');\n\nconst CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxControlValueAccessor),\n multi: true,\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"checked\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('checked', value);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: CheckboxControlValueAccessor, selector: \"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]\", host: { listeners: { \"change\": \"onChange($event.target.checked)\", \"blur\": \"onTouched()\" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',\n host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\n providers: [CHECKBOX_VALUE_ACCESSOR]\n }]\n }] });\n\nconst DEFAULT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DefaultValueAccessor),\n multi: true\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = new InjectionToken(ngDevMode ? 'CompositionEventMode' : '');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * {@searchKeywords ngDefaultControl}\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"text\" [formControl]=\"firstNameControl\">\n * ```\n *\n * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but\n * you could also use it for custom components that have similar behavior and do not require special\n * processing. In order to attach the default value accessor to a custom element, add the\n * `ngDefaultControl` attribute as shown below.\n *\n * ```\n * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass DefaultValueAccessor extends BaseControlValueAccessor {\n constructor(renderer, elementRef, _compositionMode) {\n super(renderer, elementRef);\n this._compositionMode = _compositionMode;\n /** Whether the user is creating a composition string (IME events). */\n this._composing = false;\n if (this._compositionMode == null) {\n this._compositionMode = !_isAndroid();\n }\n }\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n const normalizedValue = value == null ? '' : value;\n this.setProperty('value', normalizedValue);\n }\n /** @internal */\n _handleInput(value) {\n if (!this._compositionMode || (this._compositionMode && !this._composing)) {\n this.onChange(value);\n }\n }\n /** @internal */\n _compositionStart() {\n this._composing = true;\n }\n /** @internal */\n _compositionEnd(value) {\n this._composing = false;\n this._compositionMode && this.onChange(value);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\", host: { listeners: { \"input\": \"$any(this)._handleInput($event.target.value)\", \"blur\": \"onTouched()\", \"compositionstart\": \"$any(this)._compositionStart()\", \"compositionend\": \"$any(this)._compositionEnd($event.target.value)\" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\n // TODO: vsavkin replace the above selector with the one below it once\n // https://github.com/angular/angular/issues/3011 is implemented\n // selector: '[ngModel],[formControl],[formControlName]',\n host: {\n '(input)': '$any(this)._handleInput($event.target.value)',\n '(blur)': 'onTouched()',\n '(compositionstart)': '$any(this)._compositionStart()',\n '(compositionend)': '$any(this)._compositionEnd($event.target.value)'\n },\n providers: [DEFAULT_VALUE_ACCESSOR]\n }]\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [COMPOSITION_BUFFER_MODE]\n }] }] });\n\nfunction isEmptyInputValue(value) {\n /**\n * Check if the object is a string or array before evaluating the length attribute.\n * This avoids falsely rejecting objects that contain a custom length attribute.\n * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.\n */\n return value == null ||\n ((typeof value === 'string' || Array.isArray(value)) && value.length === 0);\n}\nfunction hasValidLength(value) {\n // non-strict comparison is intentional, to check for both `null` and `undefined` values\n return value != null && typeof value.length === 'number';\n}\n/**\n * @description\n * An `InjectionToken` for registering additional synchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_ASYNC_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Providing a custom validator\n *\n * The following example registers a custom validator directive. Adding the validator to the\n * existing collection of validators requires the `multi: true` option.\n *\n * ```typescript\n * @Directive({\n * selector: '[customValidator]',\n * providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]\n * })\n * class CustomValidatorDirective implements Validator {\n * validate(control: AbstractControl): ValidationErrors | null {\n * return { 'custom': true };\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_VALIDATORS = new InjectionToken(ngDevMode ? 'NgValidators' : '');\n/**\n * @description\n * An `InjectionToken` for registering additional asynchronous validators used with\n * `AbstractControl`s.\n *\n * @see {@link NG_VALIDATORS}\n *\n * @usageNotes\n *\n * ### Provide a custom async validator directive\n *\n * The following example implements the `AsyncValidator` interface to create an\n * async validator directive with a custom error key.\n *\n * ```typescript\n * @Directive({\n * selector: '[customAsyncValidator]',\n * providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:\n * true}]\n * })\n * class CustomAsyncValidatorDirective implements AsyncValidator {\n * validate(control: AbstractControl): Promise<ValidationErrors|null> {\n * return Promise.resolve({'custom': true});\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_ASYNC_VALIDATORS = new InjectionToken(ngDevMode ? 'NgAsyncValidators' : '');\n/**\n * A regular expression that matches valid e-mail addresses.\n *\n * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:\n * - `local-part` consists of one or more of the allowed characters (alphanumeric and some\n * punctuation symbols).\n * - `local-part` cannot begin or end with a period (`.`).\n * - `local-part` cannot be longer than 64 characters.\n * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or\n * `foo.com`.\n * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and\n * periods (`.`)).\n * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).\n * - A `label` cannot be longer than 63 characters.\n * - The whole address cannot be longer than 254 characters.\n *\n * ## Implementation background\n *\n * This regexp was ported over from AngularJS (see there for git history):\n * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27\n * It is based on the\n * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address). The main differences from the WHATWG version are:\n * - Disallow `local-part` to begin or end with a period (`.`).\n * - Disallow `local-part` length to exceed 64 characters.\n * - Disallow total address length to exceed 254 characters.\n *\n * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.\n */\nconst EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n/**\n * @description\n * Provides a set of built-in validators that can be used by form controls.\n *\n * A validator is a function that processes a `FormControl` or collection of\n * controls and returns an error map or null. A null map means that validation has passed.\n *\n * @see [Form Validation](/guide/form-validation)\n *\n * @publicApi\n */\nclass Validators {\n /**\n * @description\n * Validator that requires the control's value to be greater than or equal to the provided number.\n *\n * @usageNotes\n *\n * ### Validate against a minimum of 3\n *\n * ```typescript\n * const control = new FormControl(2, Validators.min(3));\n *\n * console.log(control.errors); // {min: {min: 3, actual: 2}}\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `min` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static min(min) {\n return minValidator(min);\n }\n /**\n * @description\n * Validator that requires the control's value to be less than or equal to the provided number.\n *\n * @usageNotes\n *\n * ### Validate against a maximum of 15\n *\n * ```typescript\n * const control = new FormControl(16, Validators.max(15));\n *\n * console.log(control.errors); // {max: {max: 15, actual: 16}}\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `max` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static max(max) {\n return maxValidator(max);\n }\n /**\n * @description\n * Validator that requires the control have a non-empty value.\n *\n * @usageNotes\n *\n * ### Validate that the field is non-empty\n *\n * ```typescript\n * const control = new FormControl('', Validators.required);\n *\n * console.log(control.errors); // {required: true}\n * ```\n *\n * @returns An error map with the `required` property\n * if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static required(control) {\n return requiredValidator(control);\n }\n /**\n * @description\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n *\n * @usageNotes\n *\n * ### Validate that the field value is true\n *\n * ```typescript\n * const control = new FormControl('some value', Validators.requiredTrue);\n *\n * console.log(control.errors); // {required: true}\n * ```\n *\n * @returns An error map that contains the `required` property\n * set to `true` if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static requiredTrue(control) {\n return requiredTrueValidator(control);\n }\n /**\n * @description\n * Validator that requires the control's value pass an email validation test.\n *\n * Tests the value using a [regular\n * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n * pattern suitable for common use cases. The pattern is based on the definition of a valid email\n * address in the [WHATWG HTML\n * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address).\n *\n * The differences from the WHATWG version include:\n * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).\n * - Disallow `local-part` to be longer than 64 characters.\n * - Disallow the whole address to be longer than 254 characters.\n *\n * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to\n * validate the value against a different pattern.\n *\n * @usageNotes\n *\n * ### Validate that the field matches a valid email pattern\n *\n * ```typescript\n * const control = new FormControl('bad@', Validators.email);\n *\n * console.log(control.errors); // {email: true}\n * ```\n *\n * @returns An error map with the `email` property\n * if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static email(control) {\n return emailValidator(control);\n }\n /**\n * @description\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. This validator is also provided by default if you use the\n * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used\n * only for types that have a numeric `length` property, such as strings or arrays. The\n * `minLength` validator logic is also not invoked for values when their `length` property is 0\n * (for example in case of an empty string or an empty array), to support optional controls. You\n * can use the standard `required` validator if empty values should not be considered valid.\n *\n * @usageNotes\n *\n * ### Validate that the field has a minimum of 3 characters\n *\n * ```typescript\n * const control = new FormControl('ng', Validators.minLength(3));\n *\n * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}\n * ```\n *\n * ```html\n * <input minlength=\"5\">\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `minlength` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static minLength(minLength) {\n return minLengthValidator(minLength);\n }\n /**\n * @description\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. This validator is also provided by default if you use the\n * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used\n * only for types that have a numeric `length` property, such as strings or arrays.\n *\n * @usageNotes\n *\n * ### Validate that the field has maximum of 5 characters\n *\n * ```typescript\n * const control = new FormControl('Angular', Validators.maxLength(5));\n *\n * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}\n * ```\n *\n * ```html\n * <input maxlength=\"5\">\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `maxlength` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static maxLength(maxLength) {\n return maxLengthValidator(maxLength);\n }\n /**\n * @description\n * Validator that requires the control's value to match a regex pattern. This validator is also\n * provided by default if you use the HTML5 `pattern` attribute.\n *\n * @usageNotes\n *\n * ### Validate that the field only contains letters or spaces\n *\n * ```typescript\n * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));\n *\n * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}\n * ```\n *\n * ```html\n * <input pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * ### Pattern matching with the global or sticky flag\n *\n * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`\n * can produce different results on the same input when validations are run consecutively. This is\n * due to how the behavior of `RegExp.prototype.test` is\n * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)\n * (`RegExp` preserves the index of the last match when the global or sticky flag is used).\n * Due to this behavior, it is recommended that when using\n * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky\n * flag enabled.\n *\n * ```typescript\n * // Not recommended (since the `g` flag is used)\n * const controlOne = new FormControl('1', Validators.pattern(/foo/g));\n *\n * // Good\n * const controlTwo = new FormControl('1', Validators.pattern(/foo/));\n * ```\n *\n * @param pattern A regular expression to be used as is to test the values, or a string.\n * If a string is passed, the `^` character is prepended and the `$` character is\n * appended to the provided string (if not already present), and the resulting regular\n * expression is used to test the values.\n *\n * @returns A validator function that returns an error map with the\n * `pattern` property if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static pattern(pattern) {\n return patternValidator(pattern);\n }\n /**\n * @description\n * Validator that performs no operation.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static nullValidator(control) {\n return nullValidator(control);\n }\n static compose(validators) {\n return compose(validators);\n }\n /**\n * @description\n * Compose multiple async validators into a single function that returns the union\n * of the individual error objects for the provided control.\n *\n * @returns A validator function that returns an error map with the\n * merged error objects of the async validators if the validation check fails, otherwise `null`.\n *\n * @see {@link updateValueAndValidity()}\n *\n */\n static composeAsync(validators) {\n return composeAsync(validators);\n }\n}\n/**\n * Validator that requires the control's value to be greater than or equal to the provided number.\n * See `Validators.min` for additional information.\n */\nfunction minValidator(min) {\n return (control) => {\n if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = parseFloat(control.value);\n // Controls with NaN values after parsing should be treated as not having a\n // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min\n return !isNaN(value) && value < min ? { 'min': { 'min': min, 'actual': control.value } } : null;\n };\n}\n/**\n * Validator that requires the control's value to be less than or equal to the provided number.\n * See `Validators.max` for additional information.\n */\nfunction maxValidator(max) {\n return (control) => {\n if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = parseFloat(control.value);\n // Controls with NaN values after parsing should be treated as not having a\n // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max\n return !isNaN(value) && value > max ? { 'max': { 'max': max, 'actual': control.value } } : null;\n };\n}\n/**\n * Validator that requires the control have a non-empty value.\n * See `Validators.required` for additional information.\n */\nfunction requiredValidator(control) {\n return isEmptyInputValue(control.value) ? { 'required': true } : null;\n}\n/**\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n * See `Validators.requiredTrue` for additional information.\n */\nfunction requiredTrueValidator(control) {\n return control.value === true ? null : { 'required': true };\n}\n/**\n * Validator that requires the control's value pass an email validation test.\n * See `Validators.email` for additional information.\n */\nfunction emailValidator(control) {\n if (isEmptyInputValue(control.value)) {\n return null; // don't validate empty values to allow optional controls\n }\n return EMAIL_REGEXP.test(control.value) ? null : { 'email': true };\n}\n/**\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. See `Validators.minLength` for additional information.\n */\nfunction minLengthValidator(minLength) {\n return (control) => {\n if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {\n // don't validate empty values to allow optional controls\n // don't validate values without `length` property\n return null;\n }\n return control.value.length < minLength ?\n { 'minlength': { 'requiredLength': minLength, 'actualLength': control.value.length } } :\n null;\n };\n}\n/**\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. See `Validators.maxLength` for additional information.\n */\nfunction maxLengthValidator(maxLength) {\n return (control) => {\n return hasValidLength(control.value) && control.value.length > maxLength ?\n { 'maxlength': { 'requiredLength': maxLength, 'actualLength': control.value.length } } :\n null;\n };\n}\n/**\n * Validator that requires the control's value to match a regex pattern.\n * See `Validators.pattern` for additional information.\n */\nfunction patternValidator(pattern) {\n if (!pattern)\n return nullValidator;\n let regex;\n let regexStr;\n if (typeof pattern === 'string') {\n regexStr = '';\n if (pattern.charAt(0) !== '^')\n regexStr += '^';\n regexStr += pattern;\n if (pattern.charAt(pattern.length - 1) !== '$')\n regexStr += '$';\n regex = new RegExp(regexStr);\n }\n else {\n regexStr = pattern.toString();\n regex = pattern;\n }\n return (control) => {\n if (isEmptyInputValue(control.value)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = control.value;\n return regex.test(value) ? null :\n { 'pattern': { 'requiredPattern': regexStr, 'actualValue': value } };\n };\n}\n/**\n * Function that has `ValidatorFn` shape, but performs no operation.\n */\nfunction nullValidator(control) {\n return null;\n}\nfunction isPresent(o) {\n return o != null;\n}\nfunction toObservable(value) {\n const obs = ɵisPromise(value) ? from(value) : value;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !(ɵisSubscribable(obs))) {\n let errorMessage = `Expected async validator to return Promise or Observable.`;\n // A synchronous validator will return object or null.\n if (typeof value === 'object') {\n errorMessage +=\n ' Are you using a synchronous validator where an async validator is expected?';\n }\n throw new ɵRuntimeError(-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);\n }\n return obs;\n}\nfunction mergeErrors(arrayOfErrors) {\n let res = {};\n arrayOfErrors.forEach((errors) => {\n res = errors != null ? { ...res, ...errors } : res;\n });\n return Object.keys(res).length === 0 ? null : res;\n}\nfunction executeValidators(control, validators) {\n return validators.map(validator => validator(control));\n}\nfunction isValidatorFn(validator) {\n return !validator.validate;\n}\n/**\n * Given the list of validators that may contain both functions as well as classes, return the list\n * of validator functions (convert validator classes into validator functions). This is needed to\n * have consistent structure in validators list before composing them.\n *\n * @param validators The set of validators that may contain validators both in plain function form\n * as well as represented as a validator class.\n */\nfunction normalizeValidators(validators) {\n return validators.map(validator => {\n return isValidatorFn(validator) ?\n validator :\n ((c) => validator.validate(c));\n });\n}\n/**\n * Merges synchronous validators into a single validator function.\n * See `Validators.compose` for additional information.\n */\nfunction compose(validators) {\n if (!validators)\n return null;\n const presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n return mergeErrors(executeValidators(control, presentValidators));\n };\n}\n/**\n * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),\n * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single\n * validator function.\n */\nfunction composeValidators(validators) {\n return validators != null ? compose(normalizeValidators(validators)) : null;\n}\n/**\n * Merges asynchronous validators into a single validator function.\n * See `Validators.composeAsync` for additional information.\n */\nfunction composeAsync(validators) {\n if (!validators)\n return null;\n const presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n const observables = executeValidators(control, presentValidators).map(toObservable);\n return forkJoin(observables).pipe(map(mergeErrors));\n };\n}\n/**\n * Accepts a list of async validators of different possible shapes (`AsyncValidator` and\n * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges\n * them into a single validator function.\n */\nfunction composeAsyncValidators(validators) {\n return validators != null ? composeAsync(normalizeValidators(validators)) :\n null;\n}\n/**\n * Merges raw control validators with a given directive validator and returns the combined list of\n * validators as an array.\n */\nfunction mergeValidators(controlValidators, dirValidator) {\n if (controlValidators === null)\n return [dirValidator];\n return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] :\n [controlValidators, dirValidator];\n}\n/**\n * Retrieves the list of raw synchronous validators attached to a given control.\n */\nfunction getControlValidators(control) {\n return control._rawValidators;\n}\n/**\n * Retrieves the list of raw asynchronous validators attached to a given control.\n */\nfunction getControlAsyncValidators(control) {\n return control._rawAsyncValidators;\n}\n/**\n * Accepts a singleton validator, an array, or null, and returns an array type with the provided\n * validators.\n *\n * @param validators A validator, validators, or null.\n * @returns A validators array.\n */\nfunction makeValidatorsArray(validators) {\n if (!validators)\n return [];\n return Array.isArray(validators) ? validators : [validators];\n}\n/**\n * Determines whether a validator or validators array has a given validator.\n *\n * @param validators The validator or validators to compare against.\n * @param validator The validator to check.\n * @returns Whether the validator is present.\n */\nfunction hasValidator(validators, validator) {\n return Array.isArray(validators) ? validators.includes(validator) : validators === validator;\n}\n/**\n * Combines two arrays of validators into one. If duplicates are provided, only one will be added.\n *\n * @param validators The new validators.\n * @param currentValidators The base array of current validators.\n * @returns An array of validators.\n */\nfunction addValidators(validators, currentValidators) {\n const current = makeValidatorsArray(currentValidators);\n const validatorsToAdd = makeValidatorsArray(validators);\n validatorsToAdd.forEach((v) => {\n // Note: if there are duplicate entries in the new validators array,\n // only the first one would be added to the current list of validators.\n // Duplicate ones would be ignored since `hasValidator` would detect\n // the presence of a validator function and we update the current list in place.\n if (!hasValidator(current, v)) {\n current.push(v);\n }\n });\n return current;\n}\nfunction removeValidators(validators, currentValidators) {\n return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v));\n}\n\n/**\n * @description\n * Base class for control directives.\n *\n * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.\n *\n * @publicApi\n */\nclass AbstractControlDirective {\n constructor() {\n /**\n * Set of synchronous validators as they were provided while calling `setValidators` function.\n * @internal\n */\n this._rawValidators = [];\n /**\n * Set of asynchronous validators as they were provided while calling `setAsyncValidators`\n * function.\n * @internal\n */\n this._rawAsyncValidators = [];\n /*\n * The set of callbacks to be invoked when directive instance is being destroyed.\n */\n this._onDestroyCallbacks = [];\n }\n /**\n * @description\n * Reports the value of the control if it is present, otherwise null.\n */\n get value() {\n return this.control ? this.control.value : null;\n }\n /**\n * @description\n * Reports whether the control is valid. A control is considered valid if no\n * validation errors exist with the current value.\n * If the control is not present, null is returned.\n */\n get valid() {\n return this.control ? this.control.valid : null;\n }\n /**\n * @description\n * Reports whether the control is invalid, meaning that an error exists in the input value.\n * If the control is not present, null is returned.\n */\n get invalid() {\n return this.control ? this.control.invalid : null;\n }\n /**\n * @description\n * Reports whether a control is pending, meaning that async validation is occurring and\n * errors are not yet available for the input value. If the control is not present, null is\n * returned.\n */\n get pending() {\n return this.control ? this.control.pending : null;\n }\n /**\n * @description\n * Reports whether the control is disabled, meaning that the control is disabled\n * in the UI and is exempt from validation checks and excluded from aggregate\n * values of ancestor controls. If the control is not present, null is returned.\n */\n get disabled() {\n return this.control ? this.control.disabled : null;\n }\n /**\n * @description\n * Reports whether the control is enabled, meaning that the control is included in ancestor\n * calculations of validity or value. If the control is not present, null is returned.\n */\n get enabled() {\n return this.control ? this.control.enabled : null;\n }\n /**\n * @description\n * Reports the control's validation errors. If the control is not present, null is returned.\n */\n get errors() {\n return this.control ? this.control.errors : null;\n }\n /**\n * @description\n * Reports whether the control is pristine, meaning that the user has not yet changed\n * the value in the UI. If the control is not present, null is returned.\n */\n get pristine() {\n return this.control ? this.control.pristine : null;\n }\n /**\n * @description\n * Reports whether the control is dirty, meaning that the user has changed\n * the value in the UI. If the control is not present, null is returned.\n */\n get dirty() {\n return this.control ? this.control.dirty : null;\n }\n /**\n * @description\n * Reports whether the control is touched, meaning that the user has triggered\n * a `blur` event on it. If the control is not present, null is returned.\n */\n get touched() {\n return this.control ? this.control.touched : null;\n }\n /**\n * @description\n * Reports the validation status of the control. Possible values include:\n * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.\n * If the control is not present, null is returned.\n */\n get status() {\n return this.control ? this.control.status : null;\n }\n /**\n * @description\n * Reports whether the control is untouched, meaning that the user has not yet triggered\n * a `blur` event on it. If the control is not present, null is returned.\n */\n get untouched() {\n return this.control ? this.control.untouched : null;\n }\n /**\n * @description\n * Returns a multicasting observable that emits a validation status whenever it is\n * calculated for the control. If the control is not present, null is returned.\n */\n get statusChanges() {\n return this.control ? this.control.statusChanges : null;\n }\n /**\n * @description\n * Returns a multicasting observable of value changes for the control that emits every time the\n * value of the control changes in the UI or programmatically.\n * If the control is not present, null is returned.\n */\n get valueChanges() {\n return this.control ? this.control.valueChanges : null;\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return null;\n }\n /**\n * Sets synchronous validators for this directive.\n * @internal\n */\n _setValidators(validators) {\n this._rawValidators = validators || [];\n this._composedValidatorFn = composeValidators(this._rawValidators);\n }\n /**\n * Sets asynchronous validators for this directive.\n * @internal\n */\n _setAsyncValidators(validators) {\n this._rawAsyncValidators = validators || [];\n this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);\n }\n /**\n * @description\n * Synchronous validator function composed of all the synchronous validators registered with this\n * directive.\n */\n get validator() {\n return this._composedValidatorFn || null;\n }\n /**\n * @description\n * Asynchronous validator function composed of all the asynchronous validators registered with\n * this directive.\n */\n get asyncValidator() {\n return this._composedAsyncValidatorFn || null;\n }\n /**\n * Internal function to register callbacks that should be invoked\n * when directive instance is being destroyed.\n * @internal\n */\n _registerOnDestroy(fn) {\n this._onDestroyCallbacks.push(fn);\n }\n /**\n * Internal function to invoke all registered \"on destroy\" callbacks.\n * Note: calling this function also clears the list of callbacks.\n * @internal\n */\n _invokeOnDestroyCallbacks() {\n this._onDestroyCallbacks.forEach(fn => fn());\n this._onDestroyCallbacks = [];\n }\n /**\n * @description\n * Resets the control with the provided value if the control is present.\n */\n reset(value = undefined) {\n if (this.control)\n this.control.reset(value);\n }\n /**\n * @description\n * Reports whether the control with the given path has the error specified.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * If no path is given, this method checks for the error on the current control.\n *\n * @returns whether the given error is present in the control at the given path.\n *\n * If the control is not present, false is returned.\n */\n hasError(errorCode, path) {\n return this.control ? this.control.hasError(errorCode, path) : false;\n }\n /**\n * @description\n * Reports error data for the control with the given path.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * @returns error data for that particular error. If the control or error is not present,\n * null is returned.\n */\n getError(errorCode, path) {\n return this.control ? this.control.getError(errorCode, path) : null;\n }\n}\n\n/**\n * @description\n * A base class for directives that contain multiple registered instances of `NgControl`.\n * Only used by the forms module.\n *\n * @publicApi\n */\nclass ControlContainer extends AbstractControlDirective {\n /**\n * @description\n * The top-level form directive for the control.\n */\n get formDirective() {\n return null;\n }\n /**\n * @description\n * The path to this group.\n */\n get path() {\n return null;\n }\n}\n\n/**\n * @description\n * A base class that all `FormControl`-based directives extend. It binds a `FormControl`\n * object to a DOM element.\n *\n * @publicApi\n */\nclass NgControl extends AbstractControlDirective {\n constructor() {\n super(...arguments);\n /**\n * @description\n * The parent form for the control.\n *\n * @internal\n */\n this._parent = null;\n /**\n * @description\n * The name for the control\n */\n this.name = null;\n /**\n * @description\n * The value accessor for the control\n */\n this.valueAccessor = null;\n }\n}\n\n// DO NOT REFACTOR!\n// Each status is represented by a separate function to make sure that\n// advanced Closure Compiler optimizations related to property renaming\n// can work correctly.\nclass AbstractControlStatus {\n constructor(cd) {\n this._cd = cd;\n }\n get isTouched() {\n return !!this._cd?.control?.touched;\n }\n get isUntouched() {\n return !!this._cd?.control?.untouched;\n }\n get isPristine() {\n return !!this._cd?.control?.pristine;\n }\n get isDirty() {\n return !!this._cd?.control?.dirty;\n }\n get isValid() {\n return !!this._cd?.control?.valid;\n }\n get isInvalid() {\n return !!this._cd?.control?.invalid;\n }\n get isPending() {\n return !!this._cd?.control?.pending;\n }\n get isSubmitted() {\n // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but\n // we avoid instanceof checks to prevent non-tree-shakable references to those types.\n return !!this._cd?.submitted;\n }\n}\nconst ngControlStatusHost = {\n '[class.ng-untouched]': 'isUntouched',\n '[class.ng-touched]': 'isTouched',\n '[class.ng-pristine]': 'isPristine',\n '[class.ng-dirty]': 'isDirty',\n '[class.ng-valid]': 'isValid',\n '[class.ng-invalid]': 'isInvalid',\n '[class.ng-pending]': 'isPending',\n};\nconst ngGroupStatusHost = {\n ...ngControlStatusHost,\n '[class.ng-submitted]': 'isSubmitted',\n};\n/**\n * @description\n * Directive automatically applied to Angular form controls that sets CSS classes\n * based on control status.\n *\n * @usageNotes\n *\n * ### CSS classes applied\n *\n * The following classes are applied as the properties become true:\n *\n * * ng-valid\n * * ng-invalid\n * * ng-pending\n * * ng-pristine\n * * ng-dirty\n * * ng-untouched\n * * ng-touched\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatus extends AbstractControlStatus {\n constructor(cd) {\n super(cd);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\", host: { properties: { \"class.ng-untouched\": \"isUntouched\", \"class.ng-touched\": \"isTouched\", \"class.ng-pristine\": \"isPristine\", \"class.ng-dirty\": \"isDirty\", \"class.ng-valid\": \"isValid\", \"class.ng-invalid\": \"isInvalid\", \"class.ng-pending\": \"isPending\" } }, usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgControlStatus, decorators: [{\n type: Directive,\n args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]\n }], ctorParameters: () => [{ type: NgControl, decorators: [{\n type: Self\n }] }] });\n/**\n * @description\n * Directive automatically applied to Angular form groups that sets CSS classes\n * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional\n * class ng-submitted.\n *\n * @see {@link NgControlStatus}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatusGroup extends AbstractControlStatus {\n constructor(cd) {\n super(cd);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgControlStatusGroup, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\", host: { properties: { \"class.ng-untouched\": \"isUntouched\", \"class.ng-touched\": \"isTouched\", \"class.ng-pristine\": \"isPristine\", \"class.ng-dirty\": \"isDirty\", \"class.ng-valid\": \"isValid\", \"class.ng-invalid\": \"isInvalid\", \"class.ng-pending\": \"isPending\", \"class.ng-submitted\": \"isSubmitted\" } }, usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgControlStatusGroup, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',\n host: ngGroupStatusHost\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }] });\n\nconst formControlNameExample = `\n <div [formGroup]=\"myGroup\">\n <input formControlName=\"firstName\">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });`;\nconst formGroupNameExample = `\n <div [formGroup]=\"myGroup\">\n <div formGroupName=\"person\">\n <input formControlName=\"firstName\">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });`;\nconst formArrayNameExample = `\n <div [formGroup]=\"myGroup\">\n <div formArrayName=\"cities\">\n <div *ngFor=\"let city of cityArray.controls; index as i\">\n <input [formControlName]=\"i\">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl('SF')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });`;\nconst ngModelGroupExample = `\n <form>\n <div ngModelGroup=\"person\">\n <input [(ngModel)]=\"person.name\" name=\"firstName\">\n </div>\n </form>`;\nconst ngModelWithFormGroupExample = `\n <div [formGroup]=\"myGroup\">\n <input formControlName=\"firstName\">\n <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">\n </div>\n`;\n\nfunction controlParentException() {\n return new ɵRuntimeError(1050 /* RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT */, `formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formControlNameExample}`);\n}\nfunction ngModelGroupException() {\n return new ɵRuntimeError(1051 /* RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP */, `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${formGroupNameExample}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ngModelGroupExample}`);\n}\nfunction missingFormException() {\n return new ɵRuntimeError(1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${formControlNameExample}`);\n}\nfunction groupParentException() {\n return new ɵRuntimeError(1053 /* RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT */, `formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formGroupNameExample}`);\n}\nfunction arrayParentException() {\n return new ɵRuntimeError(1054 /* RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT */, `formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formArrayNameExample}`);\n}\nconst disabledAttrWarning = `\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n // Specify the \\`disabled\\` property at control creation time:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n\n // Controls can also be enabled/disabled after creation:\n form.get('first')?.enable();\n form.get('last')?.disable();\n`;\nconst asyncValidatorsDroppedWithOptsWarning = `\n It looks like you're constructing using a FormControl with both an options argument and an\n async validators argument. Mixing these arguments will cause your async validators to be dropped.\n You should either put all your validators in the options object, or in separate validators\n arguments. For example:\n\n // Using validators arguments\n fc = new FormControl(42, Validators.required, myAsyncValidator);\n\n // Using AbstractControlOptions\n fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});\n\n // Do NOT mix them: async validators will be dropped!\n fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator);\n`;\nfunction ngModelWarning(directiveName) {\n return `\n It looks like you're using ngModel on the same form field as ${directiveName}.\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel\n `;\n}\nfunction describeKey(isFormGroup, key) {\n return isFormGroup ? `with name: '${key}'` : `at index: ${key}`;\n}\nfunction noControlsError(isFormGroup) {\n return `\n There are no form controls registered with this ${isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `;\n}\nfunction missingControlError(isFormGroup, key) {\n return `Cannot find form control ${describeKey(isFormGroup, key)}`;\n}\nfunction missingControlValueError(isFormGroup, key) {\n return `Must supply a value for form control ${describeKey(isFormGroup, key)}`;\n}\n\n/**\n * Reports that a control is valid, meaning that no errors exist in the input value.\n *\n * @see {@link status}\n */\nconst VALID = 'VALID';\n/**\n * Reports that a control is invalid, meaning that an error exists in the input value.\n *\n * @see {@link status}\n */\nconst INVALID = 'INVALID';\n/**\n * Reports that a control is pending, meaning that async validation is occurring and\n * errors are not yet available for the input value.\n *\n * @see {@link markAsPending}\n * @see {@link status}\n */\nconst PENDING = 'PENDING';\n/**\n * Reports that a control is disabled, meaning that the control is exempt from ancestor\n * calculations of validity or value.\n *\n * @see {@link markAsDisabled}\n * @see {@link status}\n */\nconst DISABLED = 'DISABLED';\n/**\n * Gets validators from either an options object or given validators.\n */\nfunction pickValidators(validatorOrOpts) {\n return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;\n}\n/**\n * Creates validator function by combining provided validators.\n */\nfunction coerceToValidator(validator) {\n return Array.isArray(validator) ? composeValidators(validator) : validator || null;\n}\n/**\n * Gets async validators from either an options object or given validators.\n */\nfunction pickAsyncValidators(asyncValidator, validatorOrOpts) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (isOptionsObj(validatorOrOpts) && asyncValidator) {\n console.warn(asyncValidatorsDroppedWithOptsWarning);\n }\n }\n return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;\n}\n/**\n * Creates async validator function by combining provided async validators.\n */\nfunction coerceToAsyncValidator(asyncValidator) {\n return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) :\n asyncValidator || null;\n}\nfunction isOptionsObj(validatorOrOpts) {\n return validatorOrOpts != null && !Array.isArray(validatorOrOpts) &&\n typeof validatorOrOpts === 'object';\n}\nfunction assertControlPresent(parent, isGroup, key) {\n const controls = parent.controls;\n const collection = isGroup ? Object.keys(controls) : controls;\n if (!collection.length) {\n throw new ɵRuntimeError(1000 /* RuntimeErrorCode.NO_CONTROLS */, (typeof ngDevMode === 'undefined' || ngDevMode) ? noControlsError(isGroup) : '');\n }\n if (!controls[key]) {\n throw new ɵRuntimeError(1001 /* RuntimeErrorCode.MISSING_CONTROL */, (typeof ngDevMode === 'undefined' || ngDevMode) ? missingControlError(isGroup, key) : '');\n }\n}\nfunction assertAllValuesPresent(control, isGroup, value) {\n control._forEachChild((_, key) => {\n if (value[key] === undefined) {\n throw new ɵRuntimeError(1002 /* RuntimeErrorCode.MISSING_CONTROL_VALUE */, (typeof ngDevMode === 'undefined' || ngDevMode) ? missingControlValueError(isGroup, key) :\n '');\n }\n });\n}\n// clang-format on\n/**\n * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.\n *\n * It provides some of the shared behavior that all controls and groups of controls have, like\n * running validators, calculating status, and resetting state. It also defines the properties\n * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be\n * instantiated directly.\n *\n * The first type parameter TValue represents the value type of the control (`control.value`).\n * The optional type parameter TRawValue represents the raw value type (`control.getRawValue()`).\n *\n * @see [Forms Guide](/guide/forms)\n * @see [Reactive Forms Guide](/guide/reactive-forms)\n * @see [Dynamic Forms Guide](/guide/dynamic-form)\n *\n * @publicApi\n */\nclass AbstractControl {\n /**\n * Initialize the AbstractControl instance.\n *\n * @param validators The function or array of functions that is used to determine the validity of\n * this control synchronously.\n * @param asyncValidators The function or array of functions that is used to determine validity of\n * this control asynchronously.\n */\n constructor(validators, asyncValidators) {\n /** @internal */\n this._pendingDirty = false;\n /**\n * Indicates that a control has its own pending asynchronous validation in progress.\n *\n * @internal\n */\n this._hasOwnPendingAsyncValidator = false;\n /** @internal */\n this._pendingTouched = false;\n /** @internal */\n this._onCollectionChange = () => { };\n this._parent = null;\n /**\n * A control is `pristine` if the user has not yet changed\n * the value in the UI.\n *\n * @returns True if the user has not yet changed the value in the UI; compare `dirty`.\n * Programmatic changes to a control's value do not mark it dirty.\n */\n this.pristine = true;\n /**\n * True if the control is marked as `touched`.\n *\n * A control is marked `touched` once the user has triggered\n * a `blur` event on it.\n */\n this.touched = false;\n /** @internal */\n this._onDisabledChange = [];\n this._assignValidators(validators);\n this._assignAsyncValidators(asyncValidators);\n }\n /**\n * Returns the function that is used to determine the validity of this control synchronously.\n * If multiple validators have been added, this will be a single composed function.\n * See `Validators.compose()` for additional information.\n */\n get validator() {\n return this._composedValidatorFn;\n }\n set validator(validatorFn) {\n this._rawValidators = this._composedValidatorFn = validatorFn;\n }\n /**\n * Returns the function that is used to determine the validity of this control asynchronously.\n * If multiple validators have been added, this will be a single composed function.\n * See `Validators.compose()` for additional information.\n */\n get asyncValidator() {\n return this._composedAsyncValidatorFn;\n }\n set asyncValidator(asyncValidatorFn) {\n this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;\n }\n /**\n * The parent control.\n */\n get parent() {\n return this._parent;\n }\n /**\n * A control is `valid` when its `status` is `VALID`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if the control has passed all of its validation tests,\n * false otherwise.\n */\n get valid() {\n return this.status === VALID;\n }\n /**\n * A control is `invalid` when its `status` is `INVALID`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if this control has failed one or more of its validation checks,\n * false otherwise.\n */\n get invalid() {\n return this.status === INVALID;\n }\n /**\n * A control is `pending` when its `status` is `PENDING`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if this control is in the process of conducting a validation check,\n * false otherwise.\n */\n get pending() {\n return this.status == PENDING;\n }\n /**\n * A control is `disabled` when its `status` is `DISABLED`.\n *\n * Disabled controls are exempt from validation checks and\n * are not included in the aggregate value of their ancestor\n * controls.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if the control is disabled, false otherwise.\n */\n get disabled() {\n return this.status === DISABLED;\n }\n /**\n * A control is `enabled` as long as its `status` is not `DISABLED`.\n *\n * @returns True if the control has any status other than 'DISABLED',\n * false if the status is 'DISABLED'.\n *\n * @see {@link AbstractControl.status}\n *\n */\n get enabled() {\n return this.status !== DISABLED;\n }\n /**\n * A control is `dirty` if the user has changed the value\n * in the UI.\n *\n * @returns True if the user has changed the value of this control in the UI; compare `pristine`.\n * Programmatic changes to a control's value do not mark it dirty.\n */\n get dirty() {\n return !this.pristine;\n }\n /**\n * True if the control has not been marked as touched\n *\n * A control is `untouched` if the user has not yet triggered\n * a `blur` event on it.\n */\n get untouched() {\n return !this.touched;\n }\n /**\n * Reports the update strategy of the `AbstractControl` (meaning\n * the event on which the control updates itself).\n * Possible values: `'change'` | `'blur'` | `'submit'`\n * Default value: `'change'`\n */\n get updateOn() {\n return this._updateOn ? this._updateOn : (this.parent ? this.parent.updateOn : 'change');\n }\n /**\n * Sets the synchronous validators that are active on this control. Calling\n * this overwrites any existing synchronous validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * If you want to add a new validator without affecting existing ones, consider\n * using `addValidators()` method instead.\n */\n setValidators(validators) {\n this._assignValidators(validators);\n }\n /**\n * Sets the asynchronous validators that are active on this control. Calling this\n * overwrites any existing asynchronous validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * If you want to add a new validator without affecting existing ones, consider\n * using `addAsyncValidators()` method instead.\n */\n setAsyncValidators(validators) {\n this._assignAsyncValidators(validators);\n }\n /**\n * Add a synchronous validator or validators to this control, without affecting other validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * Adding a validator that already exists will have no effect. If duplicate validator functions\n * are present in the `validators` array, only the first instance would be added to a form\n * control.\n *\n * @param validators The new validator function or functions to add to this control.\n */\n addValidators(validators) {\n this.setValidators(addValidators(validators, this._rawValidators));\n }\n /**\n * Add an asynchronous validator or validators to this control, without affecting other\n * validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * Adding a validator that already exists will have no effect.\n *\n * @param validators The new asynchronous validator function or functions to add to this control.\n */\n addAsyncValidators(validators) {\n this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));\n }\n /**\n * Remove a synchronous validator from this control, without affecting other validators.\n * Validators are compared by function reference; you must pass a reference to the exact same\n * validator function as the one that was originally set. If a provided validator is not found,\n * it is ignored.\n *\n * @usageNotes\n *\n * ### Reference to a ValidatorFn\n *\n * ```\n * // Reference to the RequiredValidator\n * const ctrl = new FormControl<string | null>('', Validators.required);\n * ctrl.removeValidators(Validators.required);\n *\n * // Reference to anonymous function inside MinValidator\n * const minValidator = Validators.min(3);\n * const ctrl = new FormControl<string | null>('', minValidator);\n * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n *\n * ctrl.removeValidators(minValidator);\n * ```\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * @param validators The validator or validators to remove.\n */\n removeValidators(validators) {\n this.setValidators(removeValidators(validators, this._rawValidators));\n }\n /**\n * Remove an asynchronous validator from this control, without affecting other validators.\n * Validators are compared by function reference; you must pass a reference to the exact same\n * validator function as the one that was originally set. If a provided validator is not found, it\n * is ignored.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * @param validators The asynchronous validator or validators to remove.\n */\n removeAsyncValidators(validators) {\n this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));\n }\n /**\n * Check whether a synchronous validator function is present on this control. The provided\n * validator must be a reference to the exact same function that was provided.\n *\n * @usageNotes\n *\n * ### Reference to a ValidatorFn\n *\n * ```\n * // Reference to the RequiredValidator\n * const ctrl = new FormControl<number | null>(0, Validators.required);\n * expect(ctrl.hasValidator(Validators.required)).toEqual(true)\n *\n * // Reference to anonymous function inside MinValidator\n * const minValidator = Validators.min(3);\n * const ctrl = new FormControl<number | null>(0, minValidator);\n * expect(ctrl.hasValidator(minValidator)).toEqual(true)\n * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)\n * ```\n *\n * @param validator The validator to check for presence. Compared by function reference.\n * @returns Whether the provided validator was found on this control.\n */\n hasValidator(validator) {\n return hasValidator(this._rawValidators, validator);\n }\n /**\n * Check whether an asynchronous validator function is present on this control. The provided\n * validator must be a reference to the exact same function that was provided.\n *\n * @param validator The asynchronous validator to check for presence. Compared by function\n * reference.\n * @returns Whether the provided asynchronous validator was found on this control.\n */\n hasAsyncValidator(validator) {\n return hasValidator(this._rawAsyncValidators, validator);\n }\n /**\n * Empties out the synchronous validator list.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n */\n clearValidators() {\n this.validator = null;\n }\n /**\n * Empties out the async validator list.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n */\n clearAsyncValidators() {\n this.asyncValidator = null;\n }\n /**\n * Marks the control as `touched`. A control is touched by focus and\n * blur events that do not change the value.\n *\n * @see {@link markAsUntouched()}\n * @see {@link markAsDirty()}\n * @see {@link markAsPristine()}\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsTouched(opts = {}) {\n this.touched = true;\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsTouched(opts);\n }\n }\n /**\n * Marks the control and all its descendant controls as `touched`.\n * @see {@link markAsTouched()}\n */\n markAllAsTouched() {\n this.markAsTouched({ onlySelf: true });\n this._forEachChild((control) => control.markAllAsTouched());\n }\n /**\n * Marks the control as `untouched`.\n *\n * If the control has any children, also marks all children as `untouched`\n * and recalculates the `touched` status of all parent controls.\n *\n * @see {@link markAsTouched()}\n * @see {@link markAsDirty()}\n * @see {@link markAsPristine()}\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after the marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsUntouched(opts = {}) {\n this.touched = false;\n this._pendingTouched = false;\n this._forEachChild((control) => {\n control.markAsUntouched({ onlySelf: true });\n });\n if (this._parent && !opts.onlySelf) {\n this._parent._updateTouched(opts);\n }\n }\n /**\n * Marks the control as `dirty`. A control becomes dirty when\n * the control's value is changed through the UI; compare `markAsTouched`.\n *\n * @see {@link markAsTouched()}\n * @see {@link markAsUntouched()}\n * @see {@link markAsPristine()}\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsDirty(opts = {}) {\n this.pristine = false;\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsDirty(opts);\n }\n }\n /**\n * Marks the control as `pristine`.\n *\n * If the control has any children, marks all children as `pristine`,\n * and recalculates the `pristine` status of all parent\n * controls.\n *\n * @see {@link markAsTouched()}\n * @see {@link markAsUntouched()}\n * @see {@link markAsDirty()}\n *\n * @param opts Configuration options that determine how the control emits events after\n * marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsPristine(opts = {}) {\n this.pristine = true;\n this._pendingDirty = false;\n this._forEachChild((control) => {\n control.markAsPristine({ onlySelf: true });\n });\n if (this._parent && !opts.onlySelf) {\n this._parent._updatePristine(opts);\n }\n }\n /**\n * Marks the control as `pending`.\n *\n * A control is pending while the control performs async validation.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configuration options that determine how the control propagates changes and\n * emits events after marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n * observable emits an event with the latest status the control is marked pending.\n * When false, no events are emitted.\n *\n */\n markAsPending(opts = {}) {\n this.status = PENDING;\n if (opts.emitEvent !== false) {\n this.statusChanges.emit(this.status);\n }\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsPending(opts);\n }\n }\n /**\n * Disables the control. This means the control is exempt from validation checks and\n * excluded from the aggregate value of any parent. Its status is `DISABLED`.\n *\n * If the control has children, all children are also disabled.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configuration options that determine how the control propagates\n * changes and emits events after the control is disabled.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is disabled.\n * When false, no events are emitted.\n */\n disable(opts = {}) {\n // If parent has been marked artificially dirty we don't want to re-calculate the\n // parent's dirtiness based on the children.\n const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n this.status = DISABLED;\n this.errors = null;\n this._forEachChild((control) => {\n control.disable({ ...opts, onlySelf: true });\n });\n this._updateValue();\n if (opts.emitEvent !== false) {\n this.valueChanges.emit(this.value);\n this.statusChanges.emit(this.status);\n }\n this._updateAncestors({ ...opts, skipPristineCheck });\n this._onDisabledChange.forEach((changeFn) => changeFn(true));\n }\n /**\n * Enables the control. This means the control is included in validation checks and\n * the aggregate value of its parent. Its status recalculates based on its value and\n * its validators.\n *\n * By default, if the control has children, all children are enabled.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configure options that control how the control propagates changes and\n * emits events when marked as untouched\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is enabled.\n * When false, no events are emitted.\n */\n enable(opts = {}) {\n // If parent has been marked artificially dirty we don't want to re-calculate the\n // parent's dirtiness based on the children.\n const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n this.status = VALID;\n this._forEachChild((control) => {\n control.enable({ ...opts, onlySelf: true });\n });\n this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });\n this._updateAncestors({ ...opts, skipPristineCheck });\n this._onDisabledChange.forEach((changeFn) => changeFn(false));\n }\n _updateAncestors(opts) {\n if (this._parent && !opts.onlySelf) {\n this._parent.updateValueAndValidity(opts);\n if (!opts.skipPristineCheck) {\n this._parent._updatePristine();\n }\n this._parent._updateTouched();\n }\n }\n /**\n * Sets the parent of the control\n *\n * @param parent The new parent.\n */\n setParent(parent) {\n this._parent = parent;\n }\n /**\n * The raw value of this control. For most control implementations, the raw value will include\n * disabled children.\n */\n getRawValue() {\n return this.value;\n }\n /**\n * Recalculates the value and validation status of the control.\n *\n * By default, it also updates the value and validity of its ancestors.\n *\n * @param opts Configuration options determine how the control propagates changes and emits events\n * after updates and validity checks are applied.\n * * `onlySelf`: When true, only update this control. When false or not supplied,\n * update all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is updated.\n * When false, no events are emitted.\n */\n updateValueAndValidity(opts = {}) {\n this._setInitialStatus();\n this._updateValue();\n if (this.enabled) {\n this._cancelExistingSubscription();\n this.errors = this._runValidator();\n this.status = this._calculateStatus();\n if (this.status === VALID || this.status === PENDING) {\n this._runAsyncValidator(opts.emitEvent);\n }\n }\n if (opts.emitEvent !== false) {\n this.valueChanges.emit(this.value);\n this.statusChanges.emit(this.status);\n }\n if (this._parent && !opts.onlySelf) {\n this._parent.updateValueAndValidity(opts);\n }\n }\n /** @internal */\n _updateTreeValidity(opts = { emitEvent: true }) {\n this._forEachChild((ctrl) => ctrl._updateTreeValidity(opts));\n this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });\n }\n _setInitialStatus() {\n this.status = this._allControlsDisabled() ? DISABLED : VALID;\n }\n _runValidator() {\n return this.validator ? this.validator(this) : null;\n }\n _runAsyncValidator(emitEvent) {\n if (this.asyncValidator) {\n this.status = PENDING;\n this._hasOwnPendingAsyncValidator = true;\n const obs = toObservable(this.asyncValidator(this));\n this._asyncValidationSubscription = obs.subscribe((errors) => {\n this._hasOwnPendingAsyncValidator = false;\n // This will trigger the recalculation of the validation status, which depends on\n // the state of the asynchronous validation (whether it is in progress or not). So, it is\n // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.\n this.setErrors(errors, { emitEvent });\n });\n }\n }\n _cancelExistingSubscription() {\n if (this._asyncValidationSubscription) {\n this._asyncValidationSubscription.unsubscribe();\n this._hasOwnPendingAsyncValidator = false;\n }\n }\n /**\n * Sets errors on a form control when running validations manually, rather than automatically.\n *\n * Calling `setErrors` also updates the validity of the parent control.\n *\n * @param opts Configuration options that determine how the control propagates\n * changes and emits events after the control errors are set.\n * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n * observable emits an event after the errors are set.\n *\n * @usageNotes\n *\n * ### Manually set the errors for a control\n *\n * ```\n * const login = new FormControl('someLogin');\n * login.setErrors({\n * notUnique: true\n * });\n *\n * expect(login.valid).toEqual(false);\n * expect(login.errors).toEqual({ notUnique: true });\n *\n * login.setValue('someOtherLogin');\n *\n * expect(login.valid).toEqual(true);\n * ```\n */\n setErrors(errors, opts = {}) {\n this.errors = errors;\n this._updateControlsErrors(opts.emitEvent !== false);\n }\n /**\n * Retrieves a child control given the control's name or path.\n *\n * @param path A dot-delimited string or array of string/number values that define the path to the\n * control. If a string is provided, passing it as a string literal will result in improved type\n * information. Likewise, if an array is provided, passing it `as const` will cause improved type\n * information to be available.\n *\n * @usageNotes\n * ### Retrieve a nested control\n *\n * For example, to get a `name` control nested within a `person` sub-group:\n *\n * * `this.form.get('person.name');`\n *\n * -OR-\n *\n * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings\n *\n * ### Retrieve a control in a FormArray\n *\n * When accessing an element inside a FormArray, you can use an element index.\n * For example, to get a `price` control from the first element in an `items` array you can use:\n *\n * * `this.form.get('items.0.price');`\n *\n * -OR-\n *\n * * `this.form.get(['items', 0, 'price']);`\n */\n get(path) {\n let currPath = path;\n if (currPath == null)\n return null;\n if (!Array.isArray(currPath))\n currPath = currPath.split('.');\n if (currPath.length === 0)\n return null;\n return currPath.reduce((control, name) => control && control._find(name), this);\n }\n /**\n * @description\n * Reports error data for the control with the given path.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * @returns error data for that particular error. If the control or error is not present,\n * null is returned.\n */\n getError(errorCode, path) {\n const control = path ? this.get(path) : this;\n return control && control.errors ? control.errors[errorCode] : null;\n }\n /**\n * @description\n * Reports whether the control with the given path has the error specified.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * If no path is given, this method checks for the error on the current control.\n *\n * @returns whether the given error is present in the control at the given path.\n *\n * If the control is not present, false is returned.\n */\n hasError(errorCode, path) {\n return !!this.getError(errorCode, path);\n }\n /**\n * Retrieves the top-level ancestor of this control.\n */\n get root() {\n let x = this;\n while (x._parent) {\n x = x._parent;\n }\n return x;\n }\n /** @internal */\n _updateControlsErrors(emitEvent) {\n this.status = this._calculateStatus();\n if (emitEvent) {\n this.statusChanges.emit(this.status);\n }\n if (this._parent) {\n this._parent._updateControlsErrors(emitEvent);\n }\n }\n /** @internal */\n _initObservables() {\n this.valueChanges = new EventEmitter();\n this.statusChanges = new EventEmitter();\n }\n _calculateStatus() {\n if (this._allControlsDisabled())\n return DISABLED;\n if (this.errors)\n return INVALID;\n if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING))\n return PENDING;\n if (this._anyControlsHaveStatus(INVALID))\n return INVALID;\n return VALID;\n }\n /** @internal */\n _anyControlsHaveStatus(status) {\n return this._anyControls((control) => control.status === status);\n }\n /** @internal */\n _anyControlsDirty() {\n return this._anyControls((control) => control.dirty);\n }\n /** @internal */\n _anyControlsTouched() {\n return this._anyControls((control) => control.touched);\n }\n /** @internal */\n _updatePristine(opts = {}) {\n this.pristine = !this._anyControlsDirty();\n if (this._parent && !opts.onlySelf) {\n this._parent._updatePristine(opts);\n }\n }\n /** @internal */\n _updateTouched(opts = {}) {\n this.touched = this._anyControlsTouched();\n if (this._parent && !opts.onlySelf) {\n this._parent._updateTouched(opts);\n }\n }\n /** @internal */\n _registerOnCollectionChange(fn) {\n this._onCollectionChange = fn;\n }\n /** @internal */\n _setUpdateStrategy(opts) {\n if (isOptionsObj(opts) && opts.updateOn != null) {\n this._updateOn = opts.updateOn;\n }\n }\n /**\n * Check to see if parent has been marked artificially dirty.\n *\n * @internal\n */\n _parentMarkedDirty(onlySelf) {\n const parentDirty = this._parent && this._parent.dirty;\n return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();\n }\n /** @internal */\n _find(name) {\n return null;\n }\n /**\n * Internal implementation of the `setValidators` method. Needs to be separated out into a\n * different method, because it is called in the constructor and it can break cases where\n * a control is extended.\n */\n _assignValidators(validators) {\n this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;\n this._composedValidatorFn = coerceToValidator(this._rawValidators);\n }\n /**\n * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a\n * different method, because it is called in the constructor and it can break cases where\n * a control is extended.\n */\n _assignAsyncValidators(validators) {\n this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;\n this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);\n }\n}\n\n/**\n * Tracks the value and validity state of a group of `FormControl` instances.\n *\n * A `FormGroup` aggregates the values of each child `FormControl` into one object,\n * with each control name as the key. It calculates its status by reducing the status values\n * of its children. For example, if one of the controls in a group is invalid, the entire\n * group becomes invalid.\n *\n * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormArray`, and `FormRecord`.\n *\n * When instantiating a `FormGroup`, pass in a collection of child controls as the first\n * argument. The key for each child registers the name for the control.\n *\n * `FormGroup` is intended for use cases where the keys are known ahead of time.\n * If you need to dynamically add and remove controls, use {@link FormRecord} instead.\n *\n * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner\n * control types as values.\n *\n * @usageNotes\n *\n * ### Create a form group with 2 controls\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl('Nancy', Validators.minLength(2)),\n * last: new FormControl('Drew'),\n * });\n *\n * console.log(form.value); // {first: 'Nancy', last; 'Drew'}\n * console.log(form.status); // 'VALID'\n * ```\n *\n * ### The type argument, and optional controls\n *\n * `FormGroup` accepts one generic argument, which is an object containing its inner controls.\n * This type will usually be inferred automatically, but you can always specify it explicitly if you\n * wish.\n *\n * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the\n * type):\n *\n * ```\n * const form = new FormGroup<{\n * first: FormControl<string|null>,\n * middle?: FormControl<string|null>, // Middle name is optional.\n * last: FormControl<string|null>,\n * }>({\n * first: new FormControl('Nancy'),\n * last: new FormControl('Drew'),\n * });\n * ```\n *\n * ### Create a form group with a group-level validator\n *\n * You include group-level validators as the second arg, or group-level async\n * validators as the third arg. These come in handy when you want to perform validation\n * that considers the value of more than one child control.\n *\n * ```\n * const form = new FormGroup({\n * password: new FormControl('', Validators.minLength(2)),\n * passwordConfirm: new FormControl('', Validators.minLength(2)),\n * }, passwordMatchValidator);\n *\n *\n * function passwordMatchValidator(g: FormGroup) {\n * return g.get('password').value === g.get('passwordConfirm').value\n * ? null : {'mismatch': true};\n * }\n * ```\n *\n * Like `FormControl` instances, you choose to pass in\n * validators and async validators as part of an options object.\n *\n * ```\n * const form = new FormGroup({\n * password: new FormControl('')\n * passwordConfirm: new FormControl('')\n * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });\n * ```\n *\n * ### Set the updateOn property for all controls in a form group\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * group level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const c = new FormGroup({\n * one: new FormControl()\n * }, { updateOn: 'blur' });\n * ```\n *\n * ### Using a FormGroup with optional controls\n *\n * It is possible to have optional controls in a FormGroup. An optional control can be removed later\n * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be\n * declared optional in the group's type.\n *\n * ```ts\n * const c = new FormGroup<{one?: FormControl<string>}>({\n * one: new FormControl('')\n * });\n * ```\n *\n * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`\n * without providing the optional key `one` will cause it to become `null`.\n *\n * @publicApi\n */\nclass FormGroup extends AbstractControl {\n /**\n * Creates a new `FormGroup` instance.\n *\n * @param controls A collection of child controls. The key for each child is the name\n * under which it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(controls, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n (typeof ngDevMode === 'undefined' || ngDevMode) && validateFormGroupControls(controls);\n this.controls = controls;\n this._initObservables();\n this._setUpdateStrategy(validatorOrOpts);\n this._setUpControls();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,\n // so we set `emitEvent` to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator\n });\n }\n registerControl(name, control) {\n if (this.controls[name])\n return this.controls[name];\n this.controls[name] = control;\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n return control;\n }\n addControl(name, control, options = {}) {\n this.registerControl(name, control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Remove a control from this group. In a strongly-typed group, required controls cannot be\n * removed.\n *\n * This method also updates the value and validity of the control.\n *\n * @param name The control name to remove from the collection\n * @param options Specifies whether this FormGroup instance should emit events after a\n * control is removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * removed. When false, no events are emitted.\n */\n removeControl(name, options = {}) {\n if (this.controls[name])\n this.controls[name]._registerOnCollectionChange(() => { });\n delete (this.controls[name]);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n setControl(name, control, options = {}) {\n if (this.controls[name])\n this.controls[name]._registerOnCollectionChange(() => { });\n delete (this.controls[name]);\n if (control)\n this.registerControl(name, control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n contains(controlName) {\n return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;\n }\n /**\n * Sets the value of the `FormGroup`. It accepts an object that matches\n * the structure of the group, with control names as keys.\n *\n * @usageNotes\n * ### Set the complete value for the form group\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl(),\n * last: new FormControl()\n * });\n *\n * console.log(form.value); // {first: null, last: null}\n *\n * form.setValue({first: 'Nancy', last: 'Drew'});\n * console.log(form.value); // {first: 'Nancy', last: 'Drew'}\n * ```\n *\n * @throws When strict checks fail, such as setting the value of a control\n * that doesn't exist or if you exclude a value of a control that does exist.\n *\n * @param value The new value for the control that matches the structure of the group.\n * @param options Configuration options that determine how the control propagates changes\n * and emits events after the value changes.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n */\n setValue(value, options = {}) {\n assertAllValuesPresent(this, true, value);\n Object.keys(value).forEach(name => {\n assertControlPresent(this, true, name);\n this.controls[name].setValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of the `FormGroup`. It accepts an object with control\n * names as keys, and does its best to match the values to the correct controls\n * in the group.\n *\n * It accepts both super-sets and sub-sets of the group without throwing an error.\n *\n * @usageNotes\n * ### Patch the value for a form group\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl(),\n * last: new FormControl()\n * });\n * console.log(form.value); // {first: null, last: null}\n *\n * form.patchValue({first: 'Nancy'});\n * console.log(form.value); // {first: 'Nancy', last: null}\n * ```\n *\n * @param value The object that matches the structure of the group.\n * @param options Configuration options that determine how the control propagates changes and\n * emits events after the value is patched.\n * * `onlySelf`: When true, each change only affects this control and not its parent. Default is\n * true.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control value\n * is updated. When false, no events are emitted. The configuration options are passed to\n * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n */\n patchValue(value, options = {}) {\n // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n // `patchValue` can be called recursively and inner data structures might have these values, so\n // we just ignore such cases when a field containing FormGroup instance receives `null` or\n // `undefined` as a value.\n if (value == null /* both `null` and `undefined` */)\n return;\n Object.keys(value).forEach(name => {\n // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so\n // `as any` is required.\n const control = this.controls[name];\n if (control) {\n control.patchValue(\n /* Guaranteed to be present, due to the outer forEach. */ value[name], { onlySelf: true, emitEvent: options.emitEvent });\n }\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets\n * the value of all descendants to their default values, or null if no defaults were provided.\n *\n * You reset to a specific form state by passing in a map of states\n * that matches the structure of your form, with control names as keys. The state\n * is a standalone value or a form state object with both a value and a disabled\n * status.\n *\n * @param value Resets the control with an initial value,\n * or an object that defines the initial value and disabled state.\n *\n * @param options Configuration options that determine how the control propagates changes\n * and emits events when the group is reset.\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * @usageNotes\n *\n * ### Reset the form group values\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl('first name'),\n * last: new FormControl('last name')\n * });\n *\n * console.log(form.value); // {first: 'first name', last: 'last name'}\n *\n * form.reset({ first: 'name', last: 'last name' });\n *\n * console.log(form.value); // {first: 'name', last: 'last name'}\n * ```\n *\n * ### Reset the form group values and disabled status\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl('first name'),\n * last: new FormControl('last name')\n * });\n *\n * form.reset({\n * first: {value: 'name', disabled: true},\n * last: 'last'\n * });\n *\n * console.log(form.value); // {last: 'last'}\n * console.log(form.get('first').status); // 'DISABLED'\n * ```\n */\n reset(value = {}, options = {}) {\n this._forEachChild((control, name) => {\n control.reset(value ? value[name] : null, { onlySelf: true, emitEvent: options.emitEvent });\n });\n this._updatePristine(options);\n this._updateTouched(options);\n this.updateValueAndValidity(options);\n }\n /**\n * The aggregate value of the `FormGroup`, including any disabled controls.\n *\n * Retrieves all values regardless of disabled status.\n */\n getRawValue() {\n return this._reduceChildren({}, (acc, control, name) => {\n acc[name] = control.getRawValue();\n return acc;\n });\n }\n /** @internal */\n _syncPendingControls() {\n let subtreeUpdated = this._reduceChildren(false, (updated, child) => {\n return child._syncPendingControls() ? true : updated;\n });\n if (subtreeUpdated)\n this.updateValueAndValidity({ onlySelf: true });\n return subtreeUpdated;\n }\n /** @internal */\n _forEachChild(cb) {\n Object.keys(this.controls).forEach(key => {\n // The list of controls can change (for ex. controls might be removed) while the loop\n // is running (as a result of invoking Forms API in `valueChanges` subscription), so we\n // have to null check before invoking the callback.\n const control = this.controls[key];\n control && cb(control, key);\n });\n }\n /** @internal */\n _setUpControls() {\n this._forEachChild((control) => {\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n });\n }\n /** @internal */\n _updateValue() {\n this.value = this._reduceValue();\n }\n /** @internal */\n _anyControls(condition) {\n for (const [controlName, control] of Object.entries(this.controls)) {\n if (this.contains(controlName) && condition(control)) {\n return true;\n }\n }\n return false;\n }\n /** @internal */\n _reduceValue() {\n let acc = {};\n return this._reduceChildren(acc, (acc, control, name) => {\n if (control.enabled || this.disabled) {\n acc[name] = control.value;\n }\n return acc;\n });\n }\n /** @internal */\n _reduceChildren(initValue, fn) {\n let res = initValue;\n this._forEachChild((control, name) => {\n res = fn(res, control, name);\n });\n return res;\n }\n /** @internal */\n _allControlsDisabled() {\n for (const controlName of Object.keys(this.controls)) {\n if (this.controls[controlName].enabled) {\n return false;\n }\n }\n return Object.keys(this.controls).length > 0 || this.disabled;\n }\n /** @internal */\n _find(name) {\n return this.controls.hasOwnProperty(name) ?\n this.controls[name] :\n null;\n }\n}\n/**\n * Will validate that none of the controls has a key with a dot\n * Throws other wise\n */\nfunction validateFormGroupControls(controls) {\n const invalidKeys = Object.keys(controls).filter(key => key.includes('.'));\n if (invalidKeys.length > 0) {\n // TODO: make this an error once there are no more uses in G3\n console.warn(`FormGroup keys cannot include \\`.\\`, please replace the keys for: ${invalidKeys.join(',')}.`);\n }\n}\nconst UntypedFormGroup = FormGroup;\n/**\n * @description\n * Asserts that the given control is an instance of `FormGroup`\n *\n * @publicApi\n */\nconst isFormGroup = (control) => control instanceof FormGroup;\n/**\n * Tracks the value and validity state of a collection of `FormControl` instances, each of which has\n * the same value type.\n *\n * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,\n * with controls added and removed as needed.\n *\n * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.\n *\n * @usageNotes\n *\n * ```\n * let numbers = new FormRecord({bill: new FormControl('415-123-456')});\n * numbers.addControl('bob', new FormControl('415-234-567'));\n * numbers.removeControl('bill');\n * ```\n *\n * @publicApi\n */\nclass FormRecord extends FormGroup {\n}\n/**\n * @description\n * Asserts that the given control is an instance of `FormRecord`\n *\n * @publicApi\n */\nconst isFormRecord = (control) => control instanceof FormRecord;\n\n/**\n * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of\n * whether the control is disabled or enabled.\n *\n * @see {@link FormsModule#withconfig}\n */\nconst CALL_SET_DISABLED_STATE = new InjectionToken('CallSetDisabledState', { providedIn: 'root', factory: () => setDisabledStateDefault });\n/**\n * Whether to use the fixed setDisabledState behavior by default.\n */\nconst setDisabledStateDefault = 'always';\nfunction controlPath(name, parent) {\n return [...parent.path, name];\n}\n/**\n * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both\n * instances. This function is typically invoked when form directive is being initialized.\n *\n * @param control Form control instance that should be linked.\n * @param dir Directive that should be linked with a given control.\n */\nfunction setUpControl(control, dir, callSetDisabledState = setDisabledStateDefault) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!control)\n _throwError(dir, 'Cannot find control with');\n if (!dir.valueAccessor)\n _throwMissingValueAccessorError(dir);\n }\n setUpValidators(control, dir);\n dir.valueAccessor.writeValue(control.value);\n // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.\n // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and\n // the method is always called.\n if (control.disabled || callSetDisabledState === 'always') {\n dir.valueAccessor.setDisabledState?.(control.disabled);\n }\n setUpViewChangePipeline(control, dir);\n setUpModelChangePipeline(control, dir);\n setUpBlurPipeline(control, dir);\n setUpDisabledChangeHandler(control, dir);\n}\n/**\n * Reverts configuration performed by the `setUpControl` control function.\n * Effectively disconnects form control with a given form directive.\n * This function is typically invoked when corresponding form directive is being destroyed.\n *\n * @param control Form control which should be cleaned up.\n * @param dir Directive that should be disconnected from a given control.\n * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should\n * contain asserts to verify that it's not called once directive is destroyed. We need this flag\n * to avoid potentially breaking changes caused by better control cleanup introduced in #39235.\n */\nfunction cleanUpControl(control, dir, validateControlPresenceOnChange = true) {\n const noop = () => {\n if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n _noControlError(dir);\n }\n };\n // The `valueAccessor` field is typically defined on FromControl and FormControlName directive\n // instances and there is a logic in `selectValueAccessor` function that throws if it's not the\n // case. We still check the presence of `valueAccessor` before invoking its methods to make sure\n // that cleanup works correctly if app code or tests are setup to ignore the error thrown from\n // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.\n if (dir.valueAccessor) {\n dir.valueAccessor.registerOnChange(noop);\n dir.valueAccessor.registerOnTouched(noop);\n }\n cleanUpValidators(control, dir);\n if (control) {\n dir._invokeOnDestroyCallbacks();\n control._registerOnCollectionChange(() => { });\n }\n}\nfunction registerOnValidatorChange(validators, onChange) {\n validators.forEach((validator) => {\n if (validator.registerOnValidatorChange)\n validator.registerOnValidatorChange(onChange);\n });\n}\n/**\n * Sets up disabled change handler function on a given form control if ControlValueAccessor\n * associated with a given directive instance supports the `setDisabledState` call.\n *\n * @param control Form control where disabled change handler should be setup.\n * @param dir Corresponding directive instance associated with this control.\n */\nfunction setUpDisabledChangeHandler(control, dir) {\n if (dir.valueAccessor.setDisabledState) {\n const onDisabledChange = (isDisabled) => {\n dir.valueAccessor.setDisabledState(isDisabled);\n };\n control.registerOnDisabledChange(onDisabledChange);\n // Register a callback function to cleanup disabled change handler\n // from a control instance when a directive is destroyed.\n dir._registerOnDestroy(() => {\n control._unregisterOnDisabledChange(onDisabledChange);\n });\n }\n}\n/**\n * Sets up sync and async directive validators on provided form control.\n * This function merges validators from the directive into the validators of the control.\n *\n * @param control Form control where directive validators should be setup.\n * @param dir Directive instance that contains validators to be setup.\n */\nfunction setUpValidators(control, dir) {\n const validators = getControlValidators(control);\n if (dir.validator !== null) {\n control.setValidators(mergeValidators(validators, dir.validator));\n }\n else if (typeof validators === 'function') {\n // If sync validators are represented by a single validator function, we force the\n // `Validators.compose` call to happen by executing the `setValidators` function with\n // an array that contains that function. We need this to avoid possible discrepancies in\n // validators behavior, so sync validators are always processed by the `Validators.compose`.\n // Note: we should consider moving this logic inside the `setValidators` function itself, so we\n // have consistent behavior on AbstractControl API level. The same applies to the async\n // validators logic below.\n control.setValidators([validators]);\n }\n const asyncValidators = getControlAsyncValidators(control);\n if (dir.asyncValidator !== null) {\n control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));\n }\n else if (typeof asyncValidators === 'function') {\n control.setAsyncValidators([asyncValidators]);\n }\n // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\n const onValidatorChange = () => control.updateValueAndValidity();\n registerOnValidatorChange(dir._rawValidators, onValidatorChange);\n registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);\n}\n/**\n * Cleans up sync and async directive validators on provided form control.\n * This function reverts the setup performed by the `setUpValidators` function, i.e.\n * removes directive-specific validators from a given control instance.\n *\n * @param control Form control from where directive validators should be removed.\n * @param dir Directive instance that contains validators to be removed.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpValidators(control, dir) {\n let isControlUpdated = false;\n if (control !== null) {\n if (dir.validator !== null) {\n const validators = getControlValidators(control);\n if (Array.isArray(validators) && validators.length > 0) {\n // Filter out directive validator function.\n const updatedValidators = validators.filter((validator) => validator !== dir.validator);\n if (updatedValidators.length !== validators.length) {\n isControlUpdated = true;\n control.setValidators(updatedValidators);\n }\n }\n }\n if (dir.asyncValidator !== null) {\n const asyncValidators = getControlAsyncValidators(control);\n if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {\n // Filter out directive async validator function.\n const updatedAsyncValidators = asyncValidators.filter((asyncValidator) => asyncValidator !== dir.asyncValidator);\n if (updatedAsyncValidators.length !== asyncValidators.length) {\n isControlUpdated = true;\n control.setAsyncValidators(updatedAsyncValidators);\n }\n }\n }\n }\n // Clear onValidatorChange callbacks by providing a noop function.\n const noop = () => { };\n registerOnValidatorChange(dir._rawValidators, noop);\n registerOnValidatorChange(dir._rawAsyncValidators, noop);\n return isControlUpdated;\n}\nfunction setUpViewChangePipeline(control, dir) {\n dir.valueAccessor.registerOnChange((newValue) => {\n control._pendingValue = newValue;\n control._pendingChange = true;\n control._pendingDirty = true;\n if (control.updateOn === 'change')\n updateControl(control, dir);\n });\n}\nfunction setUpBlurPipeline(control, dir) {\n dir.valueAccessor.registerOnTouched(() => {\n control._pendingTouched = true;\n if (control.updateOn === 'blur' && control._pendingChange)\n updateControl(control, dir);\n if (control.updateOn !== 'submit')\n control.markAsTouched();\n });\n}\nfunction updateControl(control, dir) {\n if (control._pendingDirty)\n control.markAsDirty();\n control.setValue(control._pendingValue, { emitModelToViewChange: false });\n dir.viewToModelUpdate(control._pendingValue);\n control._pendingChange = false;\n}\nfunction setUpModelChangePipeline(control, dir) {\n const onChange = (newValue, emitModelEvent) => {\n // control -> view\n dir.valueAccessor.writeValue(newValue);\n // control -> ngModel\n if (emitModelEvent)\n dir.viewToModelUpdate(newValue);\n };\n control.registerOnChange(onChange);\n // Register a callback function to cleanup onChange handler\n // from a control instance when a directive is destroyed.\n dir._registerOnDestroy(() => {\n control._unregisterOnChange(onChange);\n });\n}\n/**\n * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators\n * present in the view.\n *\n * @param control FormGroup or FormArray instance that should be linked.\n * @param dir Directive that provides view validators.\n */\nfunction setUpFormContainer(control, dir) {\n if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'Cannot find control with');\n setUpValidators(control, dir);\n}\n/**\n * Reverts the setup performed by the `setUpFormContainer` function.\n *\n * @param control FormGroup or FormArray instance that should be cleaned up.\n * @param dir Directive that provided view validators.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpFormContainer(control, dir) {\n return cleanUpValidators(control, dir);\n}\nfunction _noControlError(dir) {\n return _throwError(dir, 'There is no FormControl instance attached to form control element with');\n}\nfunction _throwError(dir, message) {\n const messageEnd = _describeControlLocation(dir);\n throw new Error(`${message} ${messageEnd}`);\n}\nfunction _describeControlLocation(dir) {\n const path = dir.path;\n if (path && path.length > 1)\n return `path: '${path.join(' -> ')}'`;\n if (path?.[0])\n return `name: '${path}'`;\n return 'unspecified name attribute';\n}\nfunction _throwMissingValueAccessorError(dir) {\n const loc = _describeControlLocation(dir);\n throw new ɵRuntimeError(-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);\n}\nfunction _throwInvalidValueAccessorError(dir) {\n const loc = _describeControlLocation(dir);\n throw new ɵRuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` +\n `Check that the \\`NG_VALUE_ACCESSOR\\` token is configured as a \\`multi: true\\` provider.`);\n}\nfunction isPropertyUpdated(changes, viewModel) {\n if (!changes.hasOwnProperty('model'))\n return false;\n const change = changes['model'];\n if (change.isFirstChange())\n return true;\n return !Object.is(viewModel, change.currentValue);\n}\nfunction isBuiltInAccessor(valueAccessor) {\n // Check if a given value accessor is an instance of a class that directly extends\n // `BuiltInControlValueAccessor` one.\n return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;\n}\nfunction syncPendingControls(form, directives) {\n form._syncPendingControls();\n directives.forEach((dir) => {\n const control = dir.control;\n if (control.updateOn === 'submit' && control._pendingChange) {\n dir.viewToModelUpdate(control._pendingValue);\n control._pendingChange = false;\n }\n });\n}\n// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\nfunction selectValueAccessor(dir, valueAccessors) {\n if (!valueAccessors)\n return null;\n if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwInvalidValueAccessorError(dir);\n let defaultAccessor = undefined;\n let builtinAccessor = undefined;\n let customAccessor = undefined;\n valueAccessors.forEach((v) => {\n if (v.constructor === DefaultValueAccessor) {\n defaultAccessor = v;\n }\n else if (isBuiltInAccessor(v)) {\n if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'More than one built-in value accessor matches form control with');\n builtinAccessor = v;\n }\n else {\n if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'More than one custom value accessor matches form control with');\n customAccessor = v;\n }\n });\n if (customAccessor)\n return customAccessor;\n if (builtinAccessor)\n return builtinAccessor;\n if (defaultAccessor)\n return defaultAccessor;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _throwError(dir, 'No valid value accessor for form control with');\n }\n return null;\n}\nfunction removeListItem$1(list, el) {\n const index = list.indexOf(el);\n if (index > -1)\n list.splice(index, 1);\n}\n// TODO(kara): remove after deprecation period\nfunction _ngModelWarning(name, type, instance, warningConfig) {\n if (warningConfig === 'never')\n return;\n if (((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce) ||\n (warningConfig === 'always' && !instance._ngModelWarningSent)) {\n console.warn(ngModelWarning(name));\n type._ngModelWarningSentOnce = true;\n instance._ngModelWarningSent = true;\n }\n}\n\nconst formDirectiveProvider$1 = {\n provide: ControlContainer,\n useExisting: forwardRef(() => NgForm)\n};\nconst resolvedPromise$1 = (() => Promise.resolve())();\n/**\n * @description\n * Creates a top-level `FormGroup` instance and binds it to a form\n * to track aggregate form value and validation status.\n *\n * As soon as you import the `FormsModule`, this directive becomes active by default on\n * all `<form>` tags. You don't need to add a special selector.\n *\n * You optionally export the directive into a local template variable using `ngForm` as the key\n * (ex: `#myForm=\"ngForm\"`). This is optional, but useful. Many properties from the underlying\n * `FormGroup` instance are duplicated on the directive itself, so a reference to it\n * gives you access to the aggregate value and validity status of the form, as well as\n * user interaction properties like `dirty` and `touched`.\n *\n * To register child controls with the form, use `NgModel` with a `name`\n * attribute. You may use `NgModelGroup` to create sub-groups within the form.\n *\n * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has\n * triggered a form submission. The `ngSubmit` event emits the original form\n * submission event.\n *\n * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.\n * To import the `FormsModule` but skip its usage in some forms,\n * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`\n * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is\n * unnecessary because the `<form>` tags are inert. In that case, you would\n * refrain from using the `formGroup` directive.\n *\n * @usageNotes\n *\n * ### Listening for form submission\n *\n * The following example shows how to capture the form values from the \"ngSubmit\" event.\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Setting the update options\n *\n * The following example shows you how to change the \"updateOn\" option from its default using\n * ngFormOptions.\n *\n * ```html\n * <form [ngFormOptions]=\"{updateOn: 'blur'}\">\n * <input name=\"one\" ngModel> <!-- this ngModel will update on blur -->\n * </form>\n * ```\n *\n * ### Native DOM validation UI\n *\n * In order to prevent the native DOM form validation UI from interfering with Angular's form\n * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever\n * `FormModule` or `ReactiveFormModule` are imported into the application.\n * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the\n * `ngNativeValidate` attribute to the `<form>` element:\n *\n * ```html\n * <form ngNativeValidate>\n * ...\n * </form>\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgForm extends ControlContainer {\n constructor(validators, asyncValidators, callSetDisabledState) {\n super();\n this.callSetDisabledState = callSetDisabledState;\n /**\n * @description\n * Returns whether the form submission has been triggered.\n */\n this.submitted = false;\n this._directives = new Set();\n /**\n * @description\n * Event emitter for the \"ngSubmit\" event\n */\n this.ngSubmit = new EventEmitter();\n this.form =\n new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\n }\n /** @nodoc */\n ngAfterViewInit() {\n this._setUpdateStrategy();\n }\n /**\n * @description\n * The directive instance.\n */\n get formDirective() {\n return this;\n }\n /**\n * @description\n * The internal `FormGroup` instance.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Returns an array representing the path to this group. Because this directive\n * always lives at the top level of a form, it is always an empty array.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * Returns a map of the controls in this group.\n */\n get controls() {\n return this.form.controls;\n }\n /**\n * @description\n * Method that sets up the control directive in this group, re-calculates its value\n * and validity, and adds the instance to the internal list of directives.\n *\n * @param dir The `NgModel` directive instance.\n */\n addControl(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n dir.control =\n container.registerControl(dir.name, dir.control);\n setUpControl(dir.control, dir, this.callSetDisabledState);\n dir.control.updateValueAndValidity({ emitEvent: false });\n this._directives.add(dir);\n });\n }\n /**\n * @description\n * Retrieves the `FormControl` instance from the provided `NgModel` directive.\n *\n * @param dir The `NgModel` directive instance.\n */\n getControl(dir) {\n return this.form.get(dir.path);\n }\n /**\n * @description\n * Removes the `NgModel` instance from the internal list of directives\n *\n * @param dir The `NgModel` directive instance.\n */\n removeControl(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n if (container) {\n container.removeControl(dir.name);\n }\n this._directives.delete(dir);\n });\n }\n /**\n * @description\n * Adds a new `NgModelGroup` directive instance to the form.\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n addFormGroup(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n const group = new FormGroup({});\n setUpFormContainer(group, dir);\n container.registerControl(dir.name, group);\n group.updateValueAndValidity({ emitEvent: false });\n });\n }\n /**\n * @description\n * Removes the `NgModelGroup` directive instance from the form.\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n removeFormGroup(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n if (container) {\n container.removeControl(dir.name);\n }\n });\n }\n /**\n * @description\n * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n getFormGroup(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Sets the new value for the provided `NgControl` directive.\n *\n * @param dir The `NgControl` directive instance.\n * @param value The new value for the directive's control.\n */\n updateModel(dir, value) {\n resolvedPromise$1.then(() => {\n const ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n });\n }\n /**\n * @description\n * Sets the value for this `FormGroup`.\n *\n * @param value The new value\n */\n setValue(value) {\n this.control.setValue(value);\n }\n /**\n * @description\n * Method called when the \"submit\" event is triggered on the form.\n * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n *\n * @param $event The \"submit\" event object\n */\n onSubmit($event) {\n this.submitted = true;\n syncPendingControls(this.form, this._directives);\n this.ngSubmit.emit($event);\n // Forms with `method=\"dialog\"` have some special behavior\n // that won't reload the page and that shouldn't be prevented.\n return $event?.target?.method === 'dialog';\n }\n /**\n * @description\n * Method called when the \"reset\" event is triggered on the form.\n */\n onReset() {\n this.resetForm();\n }\n /**\n * @description\n * Resets the form to an initial value and resets its submitted status.\n *\n * @param value The new value for the form.\n */\n resetForm(value = undefined) {\n this.form.reset(value);\n this.submitted = false;\n }\n _setUpdateStrategy() {\n if (this.options && this.options.updateOn != null) {\n this.form._updateOn = this.options.updateOn;\n }\n }\n _findContainer(path) {\n path.pop();\n return path.length ? this.form.get(path) : this.form;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgForm, selector: \"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]\", inputs: { options: [\"ngFormOptions\", \"options\"] }, outputs: { ngSubmit: \"ngSubmit\" }, host: { listeners: { \"submit\": \"onSubmit($event)\", \"reset\": \"onReset()\" } }, providers: [formDirectiveProvider$1], exportAs: [\"ngForm\"], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgForm, decorators: [{\n type: Directive,\n args: [{\n selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',\n providers: [formDirectiveProvider$1],\n host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\n outputs: ['ngSubmit'],\n exportAs: 'ngForm'\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { options: [{\n type: Input,\n args: ['ngFormOptions']\n }] } });\n\nfunction removeListItem(list, el) {\n const index = list.indexOf(el);\n if (index > -1)\n list.splice(index, 1);\n}\n\nfunction isFormControlState(formState) {\n return typeof formState === 'object' && formState !== null &&\n Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;\n}\nconst FormControl = (class FormControl extends AbstractControl {\n constructor(\n // formState and defaultValue will only be null if T is nullable\n formState = null, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n /** @publicApi */\n this.defaultValue = null;\n /** @internal */\n this._onChange = [];\n /** @internal */\n this._pendingChange = false;\n this._applyFormState(formState);\n this._setUpdateStrategy(validatorOrOpts);\n this._initObservables();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`.\n // The status should be broadcasted via the `statusChanges` observable, so we set\n // `emitEvent` to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator\n });\n if (isOptionsObj(validatorOrOpts) &&\n (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {\n if (isFormControlState(formState)) {\n this.defaultValue = formState.value;\n }\n else {\n this.defaultValue = formState;\n }\n }\n }\n setValue(value, options = {}) {\n this.value = this._pendingValue = value;\n if (this._onChange.length && options.emitModelToViewChange !== false) {\n this._onChange.forEach((changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));\n }\n this.updateValueAndValidity(options);\n }\n patchValue(value, options = {}) {\n this.setValue(value, options);\n }\n reset(formState = this.defaultValue, options = {}) {\n this._applyFormState(formState);\n this.markAsPristine(options);\n this.markAsUntouched(options);\n this.setValue(this.value, options);\n this._pendingChange = false;\n }\n /** @internal */\n _updateValue() { }\n /** @internal */\n _anyControls(condition) {\n return false;\n }\n /** @internal */\n _allControlsDisabled() {\n return this.disabled;\n }\n registerOnChange(fn) {\n this._onChange.push(fn);\n }\n /** @internal */\n _unregisterOnChange(fn) {\n removeListItem(this._onChange, fn);\n }\n registerOnDisabledChange(fn) {\n this._onDisabledChange.push(fn);\n }\n /** @internal */\n _unregisterOnDisabledChange(fn) {\n removeListItem(this._onDisabledChange, fn);\n }\n /** @internal */\n _forEachChild(cb) { }\n /** @internal */\n _syncPendingControls() {\n if (this.updateOn === 'submit') {\n if (this._pendingDirty)\n this.markAsDirty();\n if (this._pendingTouched)\n this.markAsTouched();\n if (this._pendingChange) {\n this.setValue(this._pendingValue, { onlySelf: true, emitModelToViewChange: false });\n return true;\n }\n }\n return false;\n }\n _applyFormState(formState) {\n if (isFormControlState(formState)) {\n this.value = this._pendingValue = formState.value;\n formState.disabled ? this.disable({ onlySelf: true, emitEvent: false }) :\n this.enable({ onlySelf: true, emitEvent: false });\n }\n else {\n this.value = this._pendingValue = formState;\n }\n }\n});\nconst UntypedFormControl = FormControl;\n/**\n * @description\n * Asserts that the given control is an instance of `FormControl`\n *\n * @publicApi\n */\nconst isFormControl = (control) => control instanceof FormControl;\n\n/**\n * @description\n * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.\n *\n * @publicApi\n */\nclass AbstractFormGroupDirective extends ControlContainer {\n /** @nodoc */\n ngOnInit() {\n this._checkParentType();\n // Register the group with its parent group.\n this.formDirective.addFormGroup(this);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.formDirective) {\n // Remove the group from its parent group.\n this.formDirective.removeFormGroup(this);\n }\n }\n /**\n * @description\n * The `FormGroup` bound to this directive.\n */\n get control() {\n return this.formDirective.getFormGroup(this);\n }\n /**\n * @description\n * The path to this group from the top-level directive.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /** @internal */\n _checkParentType() { }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{\n type: Directive\n }] });\n\nfunction modelParentException() {\n return new ɵRuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive \"formControlName\" instead. Example:\n\n ${formControlNameExample}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${ngModelWithFormGroupExample}`);\n}\nfunction formGroupNameException() {\n return new ɵRuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${formGroupNameExample}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ngModelGroupExample}`);\n}\nfunction missingNameException() {\n return new ɵRuntimeError(1352 /* RuntimeErrorCode.NGMODEL_WITHOUT_NAME */, `If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as 'standalone' in ngModelOptions.\n\n Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">\n Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`);\n}\nfunction modelGroupParentException() {\n return new ɵRuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${formGroupNameExample}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ngModelGroupExample}`);\n}\n\nconst modelGroupProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => NgModelGroup)\n};\n/**\n * @description\n * Creates and binds a `FormGroup` instance to a DOM element.\n *\n * This directive can only be used as a child of `NgForm` (within `<form>` tags).\n *\n * Use this directive to validate a sub-group of your form separately from the\n * rest of your form, or if some values in your domain model make more sense\n * to consume together in a nested object.\n *\n * Provide a name for the sub-group and it will become the key\n * for the sub-group in the form's full value. If you need direct access, export the directive into\n * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).\n *\n * @usageNotes\n *\n * ### Consuming controls in a grouping\n *\n * The following example shows you how to combine controls together in a sub-group\n * of the form.\n *\n * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgModelGroup extends AbstractFormGroupDirective {\n constructor(parent, validators, asyncValidators) {\n super();\n /**\n * @description\n * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds\n * to a key in the parent `NgForm`.\n */\n this.name = '';\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @internal */\n _checkParentType() {\n if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw modelGroupParentException();\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgModelGroup, deps: [{ token: ControlContainer, host: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgModelGroup, selector: \"[ngModelGroup]\", inputs: { name: [\"ngModelGroup\", \"name\"] }, providers: [modelGroupProvider], exportAs: [\"ngModelGroup\"], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgModelGroup, decorators: [{\n type: Directive,\n args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['ngModelGroup']\n }] } });\n\nconst formControlBinding$1 = {\n provide: NgControl,\n useExisting: forwardRef(() => NgModel)\n};\n/**\n * `ngModel` forces an additional change detection run when its inputs change:\n * E.g.:\n * ```\n * <div>{{myModel.valid}}</div>\n * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">\n * ```\n * I.e. `ngModel` can export itself on the element and then be used in the template.\n * Normally, this would result in expressions before the `input` that use the exported directive\n * to have an old value as they have been\n * dirty checked before. As this is a very common case for `ngModel`, we added this second change\n * detection run.\n *\n * Notes:\n * - this is just one extra run no matter how many `ngModel`s have been changed.\n * - this is a general problem when using `exportAs` for directives!\n */\nconst resolvedPromise = (() => Promise.resolve())();\n/**\n * @description\n * Creates a `FormControl` instance from a [domain\n * model](https://en.wikipedia.org/wiki/Domain_model) and binds it to a form control element.\n *\n * The `FormControl` instance tracks the value, user interaction, and\n * validation status of the control and keeps the view synced with the model. If used\n * within a parent form, the directive also registers itself with the form as a child\n * control.\n *\n * This directive is used by itself or as part of a larger form. Use the\n * `ngModel` selector to activate it.\n *\n * It accepts a domain model as an optional `Input`. If you have a one-way binding\n * to `ngModel` with `[]` syntax, changing the domain model's value in the component\n * class sets the value in the view. If you have a two-way binding with `[()]` syntax\n * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to\n * the domain model in your class.\n *\n * To inspect the properties of the associated `FormControl` (like the validity state),\n * export the directive into a local template variable using `ngModel` as the key (ex:\n * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.\n * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control\n * for direct access. See a full list of properties directly available in\n * `AbstractControlDirective`.\n *\n * @see {@link RadioControlValueAccessor}\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using ngModel on a standalone control\n *\n * The following examples show a simple standalone control using `ngModel`:\n *\n * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}\n *\n * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute\n * so that the control can be registered with the parent form under that name.\n *\n * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,\n * as the parent form syncs the value for you. You access its properties by exporting it into a\n * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where\n * needed on form submission.\n *\n * If you do need to populate initial values into your form, using a one-way binding for\n * `ngModel` tends to be sufficient as long as you use the exported form's value rather\n * than the domain model's value on submit.\n *\n * ### Using ngModel within a form\n *\n * The following example shows controls using `ngModel` within a form:\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Using a standalone ngModel within a group\n *\n * The following example shows you how to use a standalone ngModel control\n * within a form. This controls the display of the form, but doesn't contain form data.\n *\n * ```html\n * <form>\n * <input name=\"login\" ngModel placeholder=\"Login\">\n * <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?\n * </form>\n * <!-- form value: {login: ''} -->\n * ```\n *\n * ### Setting the ngModel `name` attribute through options\n *\n * The following example shows you an alternate way to set the name attribute. Here,\n * an attribute identified as name is used within a custom form control component. To still be able\n * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.\n *\n * ```html\n * <form>\n * <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">\n * </my-custom-form-control>\n * </form>\n * <!-- form value: {user: ''} -->\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgModel extends NgControl {\n constructor(parent, validators, asyncValidators, valueAccessors, _changeDetectorRef, callSetDisabledState) {\n super();\n this._changeDetectorRef = _changeDetectorRef;\n this.callSetDisabledState = callSetDisabledState;\n this.control = new FormControl();\n /** @internal */\n this._registered = false;\n /**\n * @description\n * Tracks the name bound to the directive. If a parent form exists, it\n * uses this name as a key to retrieve this control's value.\n */\n this.name = '';\n /**\n * @description\n * Event emitter for producing the `ngModelChange` event after\n * the view model updates.\n */\n this.update = new EventEmitter();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this._checkForErrors();\n if (!this._registered || 'name' in changes) {\n if (this._registered) {\n this._checkName();\n if (this.formDirective) {\n // We can't call `formDirective.removeControl(this)`, because the `name` has already been\n // changed. We also can't reset the name temporarily since the logic in `removeControl`\n // is inside a promise and it won't run immediately. We work around it by giving it an\n // object with the same shape instead.\n const oldName = changes['name'].previousValue;\n this.formDirective.removeControl({ name: oldName, path: this._getPath(oldName) });\n }\n }\n this._setUpControl();\n }\n if ('isDisabled' in changes) {\n this._updateDisabled(changes);\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n this._updateValue(this.model);\n this.viewModel = this.model;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n this.formDirective && this.formDirective.removeControl(this);\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return this._getPath(this.name);\n }\n /**\n * @description\n * The top-level directive for this control if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value emitted by `ngModelChange`.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n _setUpControl() {\n this._setUpdateStrategy();\n this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);\n this._registered = true;\n }\n _setUpdateStrategy() {\n if (this.options && this.options.updateOn != null) {\n this.control._updateOn = this.options.updateOn;\n }\n }\n _isStandalone() {\n return !this._parent || !!(this.options && this.options.standalone);\n }\n _setUpStandalone() {\n setUpControl(this.control, this, this.callSetDisabledState);\n this.control.updateValueAndValidity({ emitEvent: false });\n }\n _checkForErrors() {\n if (!this._isStandalone()) {\n this._checkParentType();\n }\n this._checkName();\n }\n _checkParentType() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!(this._parent instanceof NgModelGroup) &&\n this._parent instanceof AbstractFormGroupDirective) {\n throw formGroupNameException();\n }\n else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n throw modelParentException();\n }\n }\n }\n _checkName() {\n if (this.options && this.options.name)\n this.name = this.options.name;\n if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw missingNameException();\n }\n }\n _updateValue(value) {\n resolvedPromise.then(() => {\n this.control.setValue(value, { emitViewToModelChange: false });\n this._changeDetectorRef?.markForCheck();\n });\n }\n _updateDisabled(changes) {\n const disabledValue = changes['isDisabled'].currentValue;\n // checking for 0 to avoid breaking change\n const isDisabled = disabledValue !== 0 && booleanAttribute(disabledValue);\n resolvedPromise.then(() => {\n if (isDisabled && !this.control.disabled) {\n this.control.disable();\n }\n else if (!isDisabled && this.control.disabled) {\n this.control.enable();\n }\n this._changeDetectorRef?.markForCheck();\n });\n }\n _getPath(controlName) {\n return this._parent ? controlPath(controlName, this._parent) : [controlName];\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgModel, deps: [{ token: ControlContainer, host: true, optional: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: ChangeDetectorRef, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: { name: \"name\", isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"], options: [\"ngModelOptions\", \"options\"] }, outputs: { update: \"ngModelChange\" }, providers: [formControlBinding$1], exportAs: [\"ngModel\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgModel, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngModel]:not([formControlName]):not([formControl])',\n providers: [formControlBinding$1],\n exportAs: 'ngModel'\n }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: i0.ChangeDetectorRef, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ChangeDetectorRef]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { name: [{\n type: Input\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], options: [{\n type: Input,\n args: ['ngModelOptions']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\n/**\n * @description\n *\n * Adds `novalidate` attribute to all forms by default.\n *\n * `novalidate` is used to disable browser's native form validation.\n *\n * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:\n *\n * ```\n * <form ngNativeValidate></form>\n * ```\n *\n * @publicApi\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n */\nclass ɵNgNoValidate {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\", host: { attributes: { \"novalidate\": \"\" } }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵNgNoValidate, decorators: [{\n type: Directive,\n args: [{\n selector: 'form:not([ngNoForm]):not([ngNativeValidate])',\n host: { 'novalidate': '' },\n }]\n }] });\n\nconst NUMBER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NumberValueAccessor),\n multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a number value and listening to number input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a number input with a reactive form.\n *\n * The following example shows how to use a number input with a reactive form.\n *\n * ```ts\n * const totalCountControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"number\" [formControl]=\"totalCountControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NumberValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\n const normalizedValue = value == null ? '' : value;\n this.setProperty('value', normalizedValue);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (value) => {\n fn(value == '' ? null : parseFloat(value));\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NumberValueAccessor, selector: \"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]\", host: { listeners: { \"input\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NumberValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',\n host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [NUMBER_VALUE_ACCESSOR]\n }]\n }] });\n\nconst RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioControlValueAccessor),\n multi: true\n};\nfunction throwNameError() {\n throw new ɵRuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">\n `);\n}\n/**\n * @description\n * Class used by Angular to track radio buttons. For internal use only.\n */\nclass RadioControlRegistry {\n constructor() {\n this._accessors = [];\n }\n /**\n * @description\n * Adds a control to the internal registry. For internal use only.\n */\n add(control, accessor) {\n this._accessors.push([control, accessor]);\n }\n /**\n * @description\n * Removes a control from the internal registry. For internal use only.\n */\n remove(accessor) {\n for (let i = this._accessors.length - 1; i >= 0; --i) {\n if (this._accessors[i][1] === accessor) {\n this._accessors.splice(i, 1);\n return;\n }\n }\n }\n /**\n * @description\n * Selects a radio button. For internal use only.\n */\n select(accessor) {\n this._accessors.forEach((c) => {\n if (this._isSameGroup(c, accessor) && c[1] !== accessor) {\n c[1].fireUncheck(accessor.value);\n }\n });\n }\n _isSameGroup(controlPair, accessor) {\n if (!controlPair[0].control)\n return false;\n return controlPair[0]._parent === accessor._control._parent &&\n controlPair[1].name === accessor.name;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioControlRegistry, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * @description\n * The `ControlValueAccessor` for writing radio control values and listening to radio control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using radio buttons with reactive form directives\n *\n * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in\n * a reactive form, radio buttons in the same group should have the same `formControlName`.\n * Providing a `name` attribute is optional.\n *\n * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass RadioControlValueAccessor extends BuiltInControlValueAccessor {\n constructor(renderer, elementRef, _registry, _injector) {\n super(renderer, elementRef);\n this._registry = _registry;\n this._injector = _injector;\n this.setDisabledStateFired = false;\n /**\n * The registered callback function called when a change event occurs on the input element.\n * Note: we declare `onChange` here (also used as host listener) as a function with no arguments\n * to override the `onChange` function (which expects 1 argument) in the parent\n * `BaseControlValueAccessor` class.\n * @nodoc\n */\n this.onChange = () => { };\n this.callSetDisabledState = inject(CALL_SET_DISABLED_STATE, { optional: true }) ?? setDisabledStateDefault;\n }\n /** @nodoc */\n ngOnInit() {\n this._control = this._injector.get(NgControl);\n this._checkName();\n this._registry.add(this._control, this);\n }\n /** @nodoc */\n ngOnDestroy() {\n this._registry.remove(this);\n }\n /**\n * Sets the \"checked\" property value on the radio input element.\n * @nodoc\n */\n writeValue(value) {\n this._state = value === this.value;\n this.setProperty('checked', this._state);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this._fn = fn;\n this.onChange = () => {\n fn(this.value);\n this._registry.select(this);\n };\n }\n /** @nodoc */\n setDisabledState(isDisabled) {\n /**\n * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,\n * including upon control creation. However, a longstanding bug caused the method to not fire\n * when an *enabled* control was attached. This bug was fixed in v15 in #47576.\n *\n * This had a side effect: previously, it was possible to instantiate a reactive form control\n * with `[attr.disabled]=true`, even though the corresponding control was enabled in the\n * model. This resulted in a mismatch between the model and the DOM. Now, because\n * `setDisabledState` is always called, the value in the DOM will be immediately overwritten\n * with the \"correct\" enabled value.\n *\n * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms\n * models the entire group of radio buttons as a single `FormControl`, there is no way to\n * control the disabled state for individual radios, so they can no longer be configured as\n * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`\n * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`\n * is `false`, and we are not in legacy mode.\n */\n if (this.setDisabledStateFired || isDisabled ||\n this.callSetDisabledState === 'whenDisabledForLegacyCode') {\n this.setProperty('disabled', isDisabled);\n }\n this.setDisabledStateFired = true;\n }\n /**\n * Sets the \"value\" on the radio input element and unchecks it.\n *\n * @param value\n */\n fireUncheck(value) {\n this.writeValue(value);\n }\n _checkName() {\n if (this.name && this.formControlName && this.name !== this.formControlName &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwNameError();\n }\n if (!this.name && this.formControlName)\n this.name = this.formControlName;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RadioControlValueAccessor, selector: \"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]\", inputs: { name: \"name\", formControlName: \"formControlName\", value: \"value\" }, host: { listeners: { \"change\": \"onChange()\", \"blur\": \"onTouched()\" } }, providers: [RADIO_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',\n host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },\n providers: [RADIO_VALUE_ACCESSOR]\n }]\n }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: RadioControlRegistry }, { type: i0.Injector }], propDecorators: { name: [{\n type: Input\n }], formControlName: [{\n type: Input\n }], value: [{\n type: Input\n }] } });\n\nconst RANGE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RangeValueAccessor),\n multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a range value and listening to range input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a range input with a reactive form\n *\n * The following example shows how to use a range input with a reactive form.\n *\n * ```ts\n * const ageControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"range\" [formControl]=\"ageControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass RangeValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('value', parseFloat(value));\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (value) => {\n fn(value == '' ? null : parseFloat(value));\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RangeValueAccessor, selector: \"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]\", host: { listeners: { \"change\": \"onChange($event.target.value)\", \"input\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RangeValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',\n host: {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()'\n },\n providers: [RANGE_VALUE_ACCESSOR]\n }]\n }] });\n\n/**\n * Token to provide to turn off the ngModel warning on formControl and formControlName.\n */\nconst NG_MODEL_WITH_FORM_CONTROL_WARNING = new InjectionToken(ngDevMode ? 'NgModelWithFormControlWarning' : '');\nconst formControlBinding = {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlDirective)\n};\n/**\n * @description\n * Synchronizes a standalone `FormControl` instance to a form control element.\n *\n * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives was deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * The following example shows how to register a standalone control and set its value.\n *\n * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlDirective extends NgControl {\n /**\n * @description\n * Triggers a warning in dev mode that this input should not be used with reactive forms.\n */\n set isDisabled(isDisabled) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(disabledAttrWarning);\n }\n }\n /**\n * @description\n * Static property used to track whether any ngModel warnings have been sent across\n * all instances of FormControlDirective. Used to support warning config of \"once\".\n *\n * @internal\n */\n static { this._ngModelWarningSentOnce = false; }\n constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig, callSetDisabledState) {\n super();\n this._ngModelWarningConfig = _ngModelWarningConfig;\n this.callSetDisabledState = callSetDisabledState;\n /** @deprecated as of v6 */\n this.update = new EventEmitter();\n /**\n * @description\n * Instance property used to track whether an ngModel warning has been sent out for this\n * particular `FormControlDirective` instance. Used to support warning config of \"always\".\n *\n * @internal\n */\n this._ngModelWarningSent = false;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this._isControlChanged(changes)) {\n const previousForm = changes['form'].previousValue;\n if (previousForm) {\n cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */ false);\n }\n setUpControl(this.form, this, this.callSetDisabledState);\n this.form.updateValueAndValidity({ emitEvent: false });\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n }\n this.form.setValue(this.model);\n this.viewModel = this.model;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.form) {\n cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);\n }\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * The `FormControl` bound to this directive.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value for the view model.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n _isControlChanged(changes) {\n return changes.hasOwnProperty('form');\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormControlDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FormControlDirective, selector: \"[formControl]\", inputs: { form: [\"formControl\", \"form\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [formControlBinding], exportAs: [\"ngForm\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormControlDirective, decorators: [{\n type: Directive,\n args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { form: [{\n type: Input,\n args: ['formControl']\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\nconst formDirectiveProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupDirective)\n};\n/**\n * @description\n *\n * Binds an existing `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive accepts an existing `FormGroup` instance. It will then use this\n * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,\n * and `FormArray` instances to child `FormControlName`, `FormGroupName`,\n * and `FormArrayName` directives.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n * ### Register Form Group\n *\n * The following example registers a `FormGroup` with first name and last name controls,\n * and listens for the *ngSubmit* event when the button is clicked.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormGroupDirective extends ControlContainer {\n constructor(validators, asyncValidators, callSetDisabledState) {\n super();\n this.callSetDisabledState = callSetDisabledState;\n /**\n * @description\n * Reports whether the form submission has been triggered.\n */\n this.submitted = false;\n /**\n * Callback that should be invoked when controls in FormGroup or FormArray collection change\n * (added or removed). This callback triggers corresponding DOM updates.\n */\n this._onCollectionChange = () => this._updateDomValue();\n /**\n * @description\n * Tracks the list of added `FormControlName` instances\n */\n this.directives = [];\n /**\n * @description\n * Tracks the `FormGroup` bound to this directive.\n */\n this.form = null;\n /**\n * @description\n * Emits an event when the form submission has been triggered.\n */\n this.ngSubmit = new EventEmitter();\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this._checkFormPresent();\n if (changes.hasOwnProperty('form')) {\n this._updateValidators();\n this._updateDomValue();\n this._updateRegistrations();\n this._oldForm = this.form;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.form) {\n cleanUpValidators(this.form, this);\n // Currently the `onCollectionChange` callback is rewritten each time the\n // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should\n // happen *only* when the `onCollectionChange` callback was set by this directive instance.\n // Otherwise it might cause overriding a callback of some other directive instances. We should\n // consider updating this logic later to make it similar to how `onChange` callbacks are\n // handled, see https://github.com/angular/angular/issues/39732 for additional info.\n if (this.form._onCollectionChange === this._onCollectionChange) {\n this.form._registerOnCollectionChange(() => { });\n }\n }\n }\n /**\n * @description\n * Returns this directive's instance.\n */\n get formDirective() {\n return this;\n }\n /**\n * @description\n * Returns the `FormGroup` bound to this directive.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Returns an array representing the path to this group. Because this directive\n * always lives at the top level of a form, it always an empty array.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * Method that sets up the control directive in this group, re-calculates its value\n * and validity, and adds the instance to the internal list of directives.\n *\n * @param dir The `FormControlName` directive instance.\n */\n addControl(dir) {\n const ctrl = this.form.get(dir.path);\n setUpControl(ctrl, dir, this.callSetDisabledState);\n ctrl.updateValueAndValidity({ emitEvent: false });\n this.directives.push(dir);\n return ctrl;\n }\n /**\n * @description\n * Retrieves the `FormControl` instance from the provided `FormControlName` directive\n *\n * @param dir The `FormControlName` directive instance.\n */\n getControl(dir) {\n return this.form.get(dir.path);\n }\n /**\n * @description\n * Removes the `FormControlName` instance from the internal list of directives\n *\n * @param dir The `FormControlName` directive instance.\n */\n removeControl(dir) {\n cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */ false);\n removeListItem$1(this.directives, dir);\n }\n /**\n * Adds a new `FormGroupName` directive instance to the form.\n *\n * @param dir The `FormGroupName` directive instance.\n */\n addFormGroup(dir) {\n this._setUpFormContainer(dir);\n }\n /**\n * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the\n * view.\n *\n * @param dir The `FormGroupName` directive instance.\n */\n removeFormGroup(dir) {\n this._cleanUpFormContainer(dir);\n }\n /**\n * @description\n * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance\n *\n * @param dir The `FormGroupName` directive instance.\n */\n getFormGroup(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n addFormArray(dir) {\n this._setUpFormContainer(dir);\n }\n /**\n * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the\n * view.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n removeFormArray(dir) {\n this._cleanUpFormContainer(dir);\n }\n /**\n * @description\n * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n getFormArray(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Sets the new value for the provided `FormControlName` directive.\n *\n * @param dir The `FormControlName` directive instance.\n * @param value The new value for the directive's control.\n */\n updateModel(dir, value) {\n const ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n }\n /**\n * @description\n * Method called with the \"submit\" event is triggered on the form.\n * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n *\n * @param $event The \"submit\" event object\n */\n onSubmit($event) {\n this.submitted = true;\n syncPendingControls(this.form, this.directives);\n this.ngSubmit.emit($event);\n // Forms with `method=\"dialog\"` have some special behavior that won't reload the page and that\n // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because\n // some internal apps call this method directly with the wrong arguments.\n return $event?.target?.method === 'dialog';\n }\n /**\n * @description\n * Method called when the \"reset\" event is triggered on the form.\n */\n onReset() {\n this.resetForm();\n }\n /**\n * @description\n * Resets the form to an initial value and resets its submitted status.\n *\n * @param value The new value for the form.\n */\n resetForm(value = undefined) {\n this.form.reset(value);\n this.submitted = false;\n }\n /** @internal */\n _updateDomValue() {\n this.directives.forEach(dir => {\n const oldCtrl = dir.control;\n const newCtrl = this.form.get(dir.path);\n if (oldCtrl !== newCtrl) {\n // Note: the value of the `dir.control` may not be defined, for example when it's a first\n // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).\n cleanUpControl(oldCtrl || null, dir);\n // Check whether new control at the same location inside the corresponding `FormGroup` is an\n // instance of `FormControl` and perform control setup only if that's the case.\n // Note: we don't need to clear the list of directives (`this.directives`) here, it would be\n // taken care of in the `removeControl` method invoked when corresponding `formControlName`\n // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).\n if (isFormControl(newCtrl)) {\n setUpControl(newCtrl, dir, this.callSetDisabledState);\n dir.control = newCtrl;\n }\n }\n });\n this.form._updateTreeValidity({ emitEvent: false });\n }\n _setUpFormContainer(dir) {\n const ctrl = this.form.get(dir.path);\n setUpFormContainer(ctrl, dir);\n // NOTE: this operation looks unnecessary in case no new validators were added in\n // `setUpFormContainer` call. Consider updating this code to match the logic in\n // `_cleanUpFormContainer` function.\n ctrl.updateValueAndValidity({ emitEvent: false });\n }\n _cleanUpFormContainer(dir) {\n if (this.form) {\n const ctrl = this.form.get(dir.path);\n if (ctrl) {\n const isControlUpdated = cleanUpFormContainer(ctrl, dir);\n if (isControlUpdated) {\n // Run validity check only in case a control was updated (i.e. view validators were\n // removed) as removing view validators might cause validity to change.\n ctrl.updateValueAndValidity({ emitEvent: false });\n }\n }\n }\n }\n _updateRegistrations() {\n this.form._registerOnCollectionChange(this._onCollectionChange);\n if (this._oldForm) {\n this._oldForm._registerOnCollectionChange(() => { });\n }\n }\n _updateValidators() {\n setUpValidators(this.form, this);\n if (this._oldForm) {\n cleanUpValidators(this._oldForm, this);\n }\n }\n _checkFormPresent() {\n if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw missingFormException();\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FormGroupDirective, selector: \"[formGroup]\", inputs: { form: [\"formGroup\", \"form\"] }, outputs: { ngSubmit: \"ngSubmit\" }, host: { listeners: { \"submit\": \"onSubmit($event)\", \"reset\": \"onReset()\" } }, providers: [formDirectiveProvider], exportAs: [\"ngForm\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormGroupDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroup]',\n providers: [formDirectiveProvider],\n host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\n exportAs: 'ngForm'\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CALL_SET_DISABLED_STATE]\n }] }], propDecorators: { form: [{\n type: Input,\n args: ['formGroup']\n }], ngSubmit: [{\n type: Output\n }] } });\n\nconst formGroupNameProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.\n *\n * This directive can only be used with a parent `FormGroupDirective`.\n *\n * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and\n * looks for a `FormGroup` or `FormRecord` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * Use nested form groups to validate a sub-group of a\n * form separately from the rest or to group the values of certain\n * controls into their own nested object.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @usageNotes\n *\n * ### Access the group by name\n *\n * The following example uses the `AbstractControl.get` method to access the\n * associated `FormGroup`\n *\n * ```ts\n * this.form.get('name');\n * ```\n *\n * ### Access individual controls in the group\n *\n * The following example uses the `AbstractControl.get` method to access\n * individual controls within the group using dot syntax.\n *\n * ```ts\n * this.form.get('name.first');\n * ```\n *\n * ### Register a nested `FormGroup`.\n *\n * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,\n * and provides methods to retrieve the nested `FormGroup` and individual controls.\n *\n * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormGroupName extends AbstractFormGroupDirective {\n constructor(parent, validators, asyncValidators) {\n super();\n /**\n * @description\n * Tracks the name of the `FormGroup` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n * Accepts a name as a string or a number.\n * The name in the form of a string is useful for individual forms,\n * while the numerical form allows for form groups to be bound\n * to indices when iterating over groups in a `FormArray`.\n */\n this.name = null;\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @internal */\n _checkParentType() {\n if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw groupParentException();\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormGroupName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FormGroupName, selector: \"[formGroupName]\", inputs: { name: [\"formGroupName\", \"name\"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormGroupName, decorators: [{\n type: Directive,\n args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['formGroupName']\n }] } });\nconst formArrayNameProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormArrayName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormArray` to a DOM element.\n *\n * This directive is designed to be used with a parent `FormGroupDirective` (selector:\n * `[formGroup]`).\n *\n * It accepts the string name of the nested `FormArray` you want to link, and\n * will look for a `FormArray` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormArrayName extends ControlContainer {\n constructor(parent, validators, asyncValidators) {\n super();\n /**\n * @description\n * Tracks the name of the `FormArray` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n * Accepts a name as a string or a number.\n * The name in the form of a string is useful for individual forms,\n * while the numerical form allows for form arrays to be bound\n * to indices when iterating over arrays in a `FormArray`.\n */\n this.name = null;\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /**\n * A lifecycle method called when the directive's inputs are initialized. For internal use only.\n * @throws If the directive does not have a valid parent.\n * @nodoc\n */\n ngOnInit() {\n this._checkParentType();\n this.formDirective.addFormArray(this);\n }\n /**\n * A lifecycle method called before the directive's instance is destroyed. For internal use only.\n * @nodoc\n */\n ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n }\n /**\n * @description\n * The `FormArray` bound to this directive.\n */\n get control() {\n return this.formDirective.getFormArray(this);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n _checkParentType() {\n if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw arrayParentException();\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormArrayName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FormArrayName, selector: \"[formArrayName]\", inputs: { name: [\"formArrayName\", \"name\"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormArrayName, decorators: [{\n type: Directive,\n args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['formArrayName']\n }] } });\nfunction _hasInvalidParent(parent) {\n return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&\n !(parent instanceof FormArrayName);\n}\n\nconst controlNameBinding = {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlName)\n};\n/**\n * @description\n * Syncs a `FormControl` in an existing `FormGroup` to a form control\n * element by name.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see {@link FormControl}\n * @see {@link AbstractControl}\n *\n * @usageNotes\n *\n * ### Register `FormControl` within a group\n *\n * The following example shows how to register multiple form controls within a form group\n * and set their value.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * To see `formControlName` examples with different form control types, see:\n *\n * * Radio buttons: `RadioControlValueAccessor`\n * * Selects: `SelectControlValueAccessor`\n *\n * ### Use with ngModel is deprecated\n *\n * Support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives has been deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n *\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlName extends NgControl {\n /**\n * @description\n * Triggers a warning in dev mode that this input should not be used with reactive forms.\n */\n set isDisabled(isDisabled) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(disabledAttrWarning);\n }\n }\n /**\n * @description\n * Static property used to track whether any ngModel warnings have been sent across\n * all instances of FormControlName. Used to support warning config of \"once\".\n *\n * @internal\n */\n static { this._ngModelWarningSentOnce = false; }\n constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n super();\n this._ngModelWarningConfig = _ngModelWarningConfig;\n this._added = false;\n /**\n * @description\n * Tracks the name of the `FormControl` bound to the directive. The name corresponds\n * to a key in the parent `FormGroup` or `FormArray`.\n * Accepts a name as a string or a number.\n * The name in the form of a string is useful for individual forms,\n * while the numerical form allows for form controls to be bound\n * to indices when iterating over controls in a `FormArray`.\n */\n this.name = null;\n /** @deprecated as of v6 */\n this.update = new EventEmitter();\n /**\n * @description\n * Instance property used to track whether an ngModel warning has been sent out for this\n * particular FormControlName instance. Used to support warning config of \"always\".\n *\n * @internal\n */\n this._ngModelWarningSent = false;\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (!this._added)\n this._setUpControl();\n if (isPropertyUpdated(changes, this.viewModel)) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n }\n this.viewModel = this.model;\n this.formDirective.updateModel(this, this.model);\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeControl(this);\n }\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value for the view model.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n _checkParentType() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!(this._parent instanceof FormGroupName) &&\n this._parent instanceof AbstractFormGroupDirective) {\n throw ngModelGroupException();\n }\n else if (!(this._parent instanceof FormGroupName) &&\n !(this._parent instanceof FormGroupDirective) &&\n !(this._parent instanceof FormArrayName)) {\n throw controlParentException();\n }\n }\n }\n _setUpControl() {\n this._checkParentType();\n this.control = this.formDirective.addControl(this);\n this._added = true;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormControlName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FormControlName, selector: \"[formControlName]\", inputs: { name: [\"formControlName\", \"name\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormControlName, decorators: [{\n type: Directive,\n args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]\n }], ctorParameters: () => [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]\n }] }], propDecorators: { name: [{\n type: Input,\n args: ['formControlName']\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\nconst SELECT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectControlValueAccessor),\n multi: true\n};\nfunction _buildValueString$1(id, value) {\n if (id == null)\n return `${value}`;\n if (value && typeof value === 'object')\n value = 'Object';\n return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId$1(valueString) {\n return valueString.split(':')[0];\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing select control values and listening to select control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using select controls in a reactive form\n *\n * The following examples show how to use a select control in a reactive form.\n *\n * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}\n *\n * ### Using select controls in a template-driven form\n *\n * To use a select in a template-driven form, simply add an `ngModel` and a `name`\n * attribute to the main `<select>` tag.\n *\n * {@example forms/ts/selectControl/select_control_example.ts region='Component'}\n *\n * ### Customizing option selection\n *\n * Angular uses object identity to select option. It's possible for the identities of items\n * to change while the data does not. This can happen, for example, if the items are produced\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\n * second response will produce objects with different identities.\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\n * If `compareWith` is given, Angular selects option by the return value of the function.\n *\n * ```ts\n * const selectedCountriesControl = new FormControl();\n * ```\n *\n * ```\n * <select [compareWith]=\"compareFn\" [formControl]=\"selectedCountriesControl\">\n * <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n * {{country.name}}\n * </option>\n * </select>\n *\n * compareFn(c1: Country, c2: Country): boolean {\n * return c1 && c2 ? c1.id === c2.id : c1 === c2;\n * }\n * ```\n *\n * **Note:** We listen to the 'change' event because 'input' events aren't fired\n * for selects in IE, see:\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass SelectControlValueAccessor extends BuiltInControlValueAccessor {\n constructor() {\n super(...arguments);\n /** @internal */\n this._optionMap = new Map();\n /** @internal */\n this._idCounter = 0;\n this._compareWith = Object.is;\n }\n /**\n * @description\n * Tracks the option comparison algorithm for tracking identities when\n * checking for changes.\n */\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n }\n this._compareWith = fn;\n }\n /**\n * Sets the \"value\" property on the select element.\n * @nodoc\n */\n writeValue(value) {\n this.value = value;\n const id = this._getOptionId(value);\n const valueString = _buildValueString$1(id, value);\n this.setProperty('value', valueString);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (valueString) => {\n this.value = this._getOptionValue(valueString);\n fn(this.value);\n };\n }\n /** @internal */\n _registerOption() {\n return (this._idCounter++).toString();\n }\n /** @internal */\n _getOptionId(value) {\n for (const id of this._optionMap.keys()) {\n if (this._compareWith(this._optionMap.get(id), value))\n return id;\n }\n return null;\n }\n /** @internal */\n _getOptionValue(valueString) {\n const id = _extractId$1(valueString);\n return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: SelectControlValueAccessor, selector: \"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]\", inputs: { compareWith: \"compareWith\" }, host: { listeners: { \"change\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SelectControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',\n host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [SELECT_VALUE_ACCESSOR]\n }]\n }], propDecorators: { compareWith: [{\n type: Input\n }] } });\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgSelectOption {\n constructor(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (this._select)\n this.id = this._select._registerOption();\n }\n /**\n * @description\n * Tracks the value bound to the option element. Unlike the value binding,\n * ngValue supports binding to objects.\n */\n set ngValue(value) {\n if (this._select == null)\n return;\n this._select._optionMap.set(this.id, value);\n this._setElementValue(_buildValueString$1(this.id, value));\n this._select.writeValue(this._select.value);\n }\n /**\n * @description\n * Tracks simple string values bound to the option element.\n * For objects, use the `ngValue` input binding.\n */\n set value(value) {\n this._setElementValue(value);\n if (this._select)\n this._select.writeValue(this._select.value);\n }\n /** @internal */\n _setElementValue(value) {\n this._renderer.setProperty(this._element.nativeElement, 'value', value);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this._select) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: NgSelectOption, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NgSelectOption, decorators: [{\n type: Directive,\n args: [{ selector: 'option' }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectControlValueAccessor, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }], propDecorators: { ngValue: [{\n type: Input,\n args: ['ngValue']\n }], value: [{\n type: Input,\n args: ['value']\n }] } });\n\nconst SELECT_MULTIPLE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectMultipleControlValueAccessor),\n multi: true\n};\nfunction _buildValueString(id, value) {\n if (id == null)\n return `${value}`;\n if (typeof value === 'string')\n value = `'${value}'`;\n if (value && typeof value === 'object')\n value = 'Object';\n return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId(valueString) {\n return valueString.split(':')[0];\n}\n/** Mock interface for HTMLCollection */\nclass HTMLCollection {\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select\n * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @see {@link SelectControlValueAccessor}\n *\n * @usageNotes\n *\n * ### Using a multi-select control\n *\n * The follow example shows you how to use a multi-select control with a reactive form.\n *\n * ```ts\n * const countryControl = new FormControl();\n * ```\n *\n * ```\n * <select multiple name=\"countries\" [formControl]=\"countryControl\">\n * <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n * {{ country.name }}\n * </option>\n * </select>\n * ```\n *\n * ### Customizing option selection\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * See the `SelectControlValueAccessor` for usage.\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {\n constructor() {\n super(...arguments);\n /** @internal */\n this._optionMap = new Map();\n /** @internal */\n this._idCounter = 0;\n this._compareWith = Object.is;\n }\n /**\n * @description\n * Tracks the option comparison algorithm for tracking identities when\n * checking for changes.\n */\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new ɵRuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);\n }\n this._compareWith = fn;\n }\n /**\n * Sets the \"value\" property on one or of more of the select's options.\n * @nodoc\n */\n writeValue(value) {\n this.value = value;\n let optionSelectedStateSetter;\n if (Array.isArray(value)) {\n // convert values to ids\n const ids = value.map((v) => this._getOptionId(v));\n optionSelectedStateSetter = (opt, o) => {\n opt._setSelected(ids.indexOf(o.toString()) > -1);\n };\n }\n else {\n optionSelectedStateSetter = (opt, o) => {\n opt._setSelected(false);\n };\n }\n this._optionMap.forEach(optionSelectedStateSetter);\n }\n /**\n * Registers a function called when the control value changes\n * and writes an array of the selected options.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (element) => {\n const selected = [];\n const selectedOptions = element.selectedOptions;\n if (selectedOptions !== undefined) {\n const options = selectedOptions;\n for (let i = 0; i < options.length; i++) {\n const opt = options[i];\n const val = this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n // Degrade to use `options` when `selectedOptions` property is not available.\n // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib\n // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.\n else {\n const options = element.options;\n for (let i = 0; i < options.length; i++) {\n const opt = options[i];\n if (opt.selected) {\n const val = this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n }\n this.value = selected;\n fn(selected);\n };\n }\n /** @internal */\n _registerOption(value) {\n const id = (this._idCounter++).toString();\n this._optionMap.set(id, value);\n return id;\n }\n /** @internal */\n _getOptionId(value) {\n for (const id of this._optionMap.keys()) {\n if (this._compareWith(this._optionMap.get(id)._value, value))\n return id;\n }\n return null;\n }\n /** @internal */\n _getOptionValue(valueString) {\n const id = _extractId(valueString);\n return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: SelectMultipleControlValueAccessor, selector: \"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]\", inputs: { compareWith: \"compareWith\" }, host: { listeners: { \"change\": \"onChange($event.target)\", \"blur\": \"onTouched()\" } }, providers: [SELECT_MULTIPLE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',\n host: { '(change)': 'onChange($event.target)', '(blur)': 'onTouched()' },\n providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]\n }]\n }], propDecorators: { compareWith: [{\n type: Input\n }] } });\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see {@link SelectMultipleControlValueAccessor}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass ɵNgSelectMultipleOption {\n constructor(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (this._select) {\n this.id = this._select._registerOption(this);\n }\n }\n /**\n * @description\n * Tracks the value bound to the option element. Unlike the value binding,\n * ngValue supports binding to objects.\n */\n set ngValue(value) {\n if (this._select == null)\n return;\n this._value = value;\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n }\n /**\n * @description\n * Tracks simple string values bound to the option element.\n * For objects, use the `ngValue` input binding.\n */\n set value(value) {\n if (this._select) {\n this._value = value;\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n }\n else {\n this._setElementValue(value);\n }\n }\n /** @internal */\n _setElementValue(value) {\n this._renderer.setProperty(this._element.nativeElement, 'value', value);\n }\n /** @internal */\n _setSelected(selected) {\n this._renderer.setProperty(this._element.nativeElement, 'selected', selected);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this._select) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ɵNgSelectMultipleOption, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{\n type: Directive,\n args: [{ selector: 'option' }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectMultipleControlValueAccessor, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }], propDecorators: { ngValue: [{\n type: Input,\n args: ['ngValue']\n }], value: [{\n type: Input,\n args: ['value']\n }] } });\n\n/**\n * Method that updates string to integer if not already a number\n *\n * @param value The value to convert to integer.\n * @returns value of parameter converted to number or integer.\n */\nfunction toInteger(value) {\n return typeof value === 'number' ? value : parseInt(value, 10);\n}\n/**\n * Method that ensures that provided value is a float (and converts it to float if needed).\n *\n * @param value The value to convert to float.\n * @returns value of parameter converted to number or float.\n */\nfunction toFloat(value) {\n return typeof value === 'number' ? value : parseFloat(value);\n}\n/**\n * A base class for Validator-based Directives. The class contains common logic shared across such\n * Directives.\n *\n * For internal use only, this class is not intended for use outside of the Forms package.\n */\nclass AbstractValidatorDirective {\n constructor() {\n this._validator = nullValidator;\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this.inputName in changes) {\n const input = this.normalizeInput(changes[this.inputName].currentValue);\n this._enabled = this.enabled(input);\n this._validator = this._enabled ? this.createValidator(input) : nullValidator;\n if (this._onChange) {\n this._onChange();\n }\n }\n }\n /** @nodoc */\n validate(control) {\n return this._validator(control);\n }\n /** @nodoc */\n registerOnValidatorChange(fn) {\n this._onChange = fn;\n }\n /**\n * @description\n * Determines whether this validator should be active or not based on an input.\n * Base class implementation checks whether an input is defined (if the value is different from\n * `null` and `undefined`). Validator classes that extend this base class can override this\n * function with the logic specific to a particular validator directive.\n */\n enabled(input) {\n return input != null /* both `null` and `undefined` */;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AbstractValidatorDirective, decorators: [{\n type: Directive\n }] });\n/**\n * @description\n * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxValidator),\n multi: true\n};\n/**\n * A directive which installs the {@link MaxValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `max` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a max validator\n *\n * The following example shows how to add a max validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel max=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MaxValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'max';\n /** @internal */\n this.normalizeInput = (input) => toFloat(input);\n /** @internal */\n this.createValidator = (max) => maxValidator(max);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: MaxValidator, selector: \"input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]\", inputs: { max: \"max\" }, host: { properties: { \"attr.max\": \"_enabled ? max : null\" } }, providers: [MAX_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MaxValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',\n providers: [MAX_VALIDATOR],\n host: { '[attr.max]': '_enabled ? max : null' }\n }]\n }], propDecorators: { max: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinValidator),\n multi: true\n};\n/**\n * A directive which installs the {@link MinValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `min` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a min validator\n *\n * The following example shows how to add a min validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel min=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MinValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'min';\n /** @internal */\n this.normalizeInput = (input) => toFloat(input);\n /** @internal */\n this.createValidator = (min) => minValidator(min);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: MinValidator, selector: \"input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]\", inputs: { min: \"min\" }, host: { properties: { \"attr.min\": \"_enabled ? min : null\" } }, providers: [MIN_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MinValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',\n providers: [MIN_VALIDATOR],\n host: { '[attr.min]': '_enabled ? min : null' }\n }]\n }], propDecorators: { min: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => RequiredValidator),\n multi: true\n};\n/**\n * @description\n * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst CHECKBOX_REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => CheckboxRequiredValidator),\n multi: true\n};\n/**\n * @description\n * A directive that adds the `required` validator to any controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required validator using template-driven forms\n *\n * ```\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass RequiredValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'required';\n /** @internal */\n this.normalizeInput = booleanAttribute;\n /** @internal */\n this.createValidator = (input) => requiredValidator;\n }\n /** @nodoc */\n enabled(input) {\n return input;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RequiredValidator, selector: \":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]\", inputs: { required: \"required\" }, host: { properties: { \"attr.required\": \"_enabled ? \\\"\\\" : null\" } }, providers: [REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',\n providers: [REQUIRED_VALIDATOR],\n host: { '[attr.required]': '_enabled ? \"\" : null' }\n }]\n }], propDecorators: { required: [{\n type: Input\n }] } });\n/**\n * A Directive that adds the `required` validator to checkbox controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required checkbox validator using template-driven forms\n *\n * The following example shows how to add a checkbox required validator to an input attached to an\n * ngModel binding.\n *\n * ```\n * <input type=\"checkbox\" name=\"active\" ngModel required>\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass CheckboxRequiredValidator extends RequiredValidator {\n constructor() {\n super(...arguments);\n /** @internal */\n this.createValidator = (input) => requiredTrueValidator;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: CheckboxRequiredValidator, selector: \"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]\", host: { properties: { \"attr.required\": \"_enabled ? \\\"\\\" : null\" } }, providers: [CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',\n providers: [CHECKBOX_REQUIRED_VALIDATOR],\n host: { '[attr.required]': '_enabled ? \"\" : null' }\n }]\n }] });\n/**\n * @description\n * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst EMAIL_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => EmailValidator),\n multi: true\n};\n/**\n * A directive that adds the `email` validator to controls marked with the\n * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * The email validation is based on the WHATWG HTML specification with some enhancements to\n * incorporate more RFC rules. More information can be found on the [Validators.email\n * page](api/forms/Validators#email).\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding an email validator\n *\n * The following example shows how to add an email validator to an input attached to an ngModel\n * binding.\n *\n * ```\n * <input type=\"email\" name=\"email\" ngModel email>\n * <input type=\"email\" name=\"email\" ngModel email=\"true\">\n * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass EmailValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'email';\n /** @internal */\n this.normalizeInput = booleanAttribute;\n /** @internal */\n this.createValidator = (input) => emailValidator;\n }\n /** @nodoc */\n enabled(input) {\n return input;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: EmailValidator, selector: \"[email][formControlName],[email][formControl],[email][ngModel]\", inputs: { email: \"email\" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EmailValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[email][formControlName],[email][formControl],[email][ngModel]',\n providers: [EMAIL_VALIDATOR]\n }]\n }], propDecorators: { email: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinLengthValidator),\n multi: true\n};\n/**\n * A directive that adds minimum length validation to controls marked with the\n * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a minimum length validator\n *\n * The following example shows how to add a minimum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel minlength=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MinLengthValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'minlength';\n /** @internal */\n this.normalizeInput = (input) => toInteger(input);\n /** @internal */\n this.createValidator = (minlength) => minLengthValidator(minlength);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: MinLengthValidator, selector: \"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]\", inputs: { minlength: \"minlength\" }, host: { properties: { \"attr.minlength\": \"_enabled ? minlength : null\" } }, providers: [MIN_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MinLengthValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',\n providers: [MIN_LENGTH_VALIDATOR],\n host: { '[attr.minlength]': '_enabled ? minlength : null' }\n }]\n }], propDecorators: { minlength: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxLengthValidator),\n multi: true\n};\n/**\n * A directive that adds maximum length validation to controls marked with the\n * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a maximum length validator\n *\n * The following example shows how to add a maximum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel maxlength=\"25\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MaxLengthValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'maxlength';\n /** @internal */\n this.normalizeInput = (input) => toInteger(input);\n /** @internal */\n this.createValidator = (maxlength) => maxLengthValidator(maxlength);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: MaxLengthValidator, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: { maxlength: \"maxlength\" }, host: { properties: { \"attr.maxlength\": \"_enabled ? maxlength : null\" } }, providers: [MAX_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MaxLengthValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',\n providers: [MAX_LENGTH_VALIDATOR],\n host: { '[attr.maxlength]': '_enabled ? maxlength : null' }\n }]\n }], propDecorators: { maxlength: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst PATTERN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => PatternValidator),\n multi: true\n};\n/**\n * @description\n * A directive that adds regex pattern validation to controls marked with the\n * `pattern` attribute. The regex must match the entire control value.\n * The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a pattern validator\n *\n * The following example shows how to add a pattern validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass PatternValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'pattern';\n /** @internal */\n this.normalizeInput = (input) => input;\n /** @internal */\n this.createValidator = (input) => patternValidator(input);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: PatternValidator, selector: \"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]\", inputs: { pattern: \"pattern\" }, host: { properties: { \"attr.pattern\": \"_enabled ? pattern : null\" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PatternValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',\n providers: [PATTERN_VALIDATOR],\n host: { '[attr.pattern]': '_enabled ? pattern : null' }\n }]\n }], propDecorators: { pattern: [{\n type: Input\n }] } });\n\nconst SHARED_FORM_DIRECTIVES = [\n ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator,\n];\nconst TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\nconst REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\n/**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\nclass ɵInternalFormsSharedModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator], exports: [ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵInternalFormsSharedModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: SHARED_FORM_DIRECTIVES,\n exports: SHARED_FORM_DIRECTIVES,\n }]\n }] });\n\n/**\n * Tracks the value and validity state of an array of `FormControl`,\n * `FormGroup` or `FormArray` instances.\n *\n * A `FormArray` aggregates the values of each child `FormControl` into an array.\n * It calculates its status by reducing the status values of its children. For example, if one of\n * the controls in a `FormArray` is invalid, the entire array becomes invalid.\n *\n * `FormArray` accepts one generic argument, which is the type of the controls inside.\n * If you need a heterogenous array, use {@link UntypedFormArray}.\n *\n * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,\n * along with `FormControl`, `FormGroup`, and `FormRecord`.\n *\n * @usageNotes\n *\n * ### Create an array of form controls\n *\n * ```\n * const arr = new FormArray([\n * new FormControl('Nancy', Validators.minLength(2)),\n * new FormControl('Drew'),\n * ]);\n *\n * console.log(arr.value); // ['Nancy', 'Drew']\n * console.log(arr.status); // 'VALID'\n * ```\n *\n * ### Create a form array with array-level validators\n *\n * You include array-level validators and async validators. These come in handy\n * when you want to perform validation that considers the value of more than one child\n * control.\n *\n * The two types of validators are passed in separately as the second and third arg\n * respectively, or together as part of an options object.\n *\n * ```\n * const arr = new FormArray([\n * new FormControl('Nancy'),\n * new FormControl('Drew')\n * ], {validators: myValidator, asyncValidators: myAsyncValidator});\n * ```\n *\n * ### Set the updateOn property for all controls in a form array\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * array level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl()\n * ], {updateOn: 'blur'});\n * ```\n *\n * ### Adding or removing controls from a form array\n *\n * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\n * the `FormArray` directly, as that result in strange and unexpected behavior such\n * as broken change detection.\n *\n * @publicApi\n */\nclass FormArray extends AbstractControl {\n /**\n * Creates a new `FormArray` instance.\n *\n * @param controls An array of child controls. Each child control is given an index\n * where it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(controls, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n this.controls = controls;\n this._initObservables();\n this._setUpdateStrategy(validatorOrOpts);\n this._setUpControls();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`.\n // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`\n // to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator\n });\n }\n /**\n * Get the `AbstractControl` at the given `index` in the array.\n *\n * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap\n * around from the back, and if index is greatly negative (less than `-length`), the result is\n * undefined. This behavior is the same as `Array.at(index)`.\n */\n at(index) {\n return this.controls[this._adjustIndex(index)];\n }\n /**\n * Insert a new `AbstractControl` at the end of the array.\n *\n * @param control Form control to be inserted\n * @param options Specifies whether this FormArray instance should emit events after a new\n * control is added.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * inserted. When false, no events are emitted.\n */\n push(control, options = {}) {\n this.controls.push(control);\n this._registerControl(control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Insert a new `AbstractControl` at the given `index` in the array.\n *\n * @param index Index in the array to insert the control. If `index` is negative, wraps around\n * from the back. If `index` is greatly negative (less than `-length`), prepends to the array.\n * This behavior is the same as `Array.splice(index, 0, control)`.\n * @param control Form control to be inserted\n * @param options Specifies whether this FormArray instance should emit events after a new\n * control is inserted.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * inserted. When false, no events are emitted.\n */\n insert(index, control, options = {}) {\n this.controls.splice(index, 0, control);\n this._registerControl(control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Remove the control at the given `index` in the array.\n *\n * @param index Index in the array to remove the control. If `index` is negative, wraps around\n * from the back. If `index` is greatly negative (less than `-length`), removes the first\n * element. This behavior is the same as `Array.splice(index, 1)`.\n * @param options Specifies whether this FormArray instance should emit events after a\n * control is removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * removed. When false, no events are emitted.\n */\n removeAt(index, options = {}) {\n // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n let adjustedIndex = this._adjustIndex(index);\n if (adjustedIndex < 0)\n adjustedIndex = 0;\n if (this.controls[adjustedIndex])\n this.controls[adjustedIndex]._registerOnCollectionChange(() => { });\n this.controls.splice(adjustedIndex, 1);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Replace an existing control.\n *\n * @param index Index in the array to replace the control. If `index` is negative, wraps around\n * from the back. If `index` is greatly negative (less than `-length`), replaces the first\n * element. This behavior is the same as `Array.splice(index, 1, control)`.\n * @param control The `AbstractControl` control to replace the existing control\n * @param options Specifies whether this FormArray instance should emit events after an\n * existing control is replaced with a new one.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * replaced with a new one. When false, no events are emitted.\n */\n setControl(index, control, options = {}) {\n // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.\n let adjustedIndex = this._adjustIndex(index);\n if (adjustedIndex < 0)\n adjustedIndex = 0;\n if (this.controls[adjustedIndex])\n this.controls[adjustedIndex]._registerOnCollectionChange(() => { });\n this.controls.splice(adjustedIndex, 1);\n if (control) {\n this.controls.splice(adjustedIndex, 0, control);\n this._registerControl(control);\n }\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Length of the control array.\n */\n get length() {\n return this.controls.length;\n }\n /**\n * Sets the value of the `FormArray`. It accepts an array that matches\n * the structure of the control.\n *\n * This method performs strict checks, and throws an error if you try\n * to set the value of a control that doesn't exist or if you exclude the\n * value of a control.\n *\n * @usageNotes\n * ### Set the values for the controls in the form array\n *\n * ```\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.value); // [null, null]\n *\n * arr.setValue(['Nancy', 'Drew']);\n * console.log(arr.value); // ['Nancy', 'Drew']\n * ```\n *\n * @param value Array of values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n */\n setValue(value, options = {}) {\n assertAllValuesPresent(this, false, value);\n value.forEach((newValue, index) => {\n assertControlPresent(this, false, index);\n this.at(index).setValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of the `FormArray`. It accepts an array that matches the\n * structure of the control, and does its best to match the values to the correct\n * controls in the group.\n *\n * It accepts both super-sets and sub-sets of the array without throwing an error.\n *\n * @usageNotes\n * ### Patch the values for controls in a form array\n *\n * ```\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.value); // [null, null]\n *\n * arr.patchValue(['Nancy']);\n * console.log(arr.value); // ['Nancy', null]\n * ```\n *\n * @param value Array of latest values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control\n * value is updated. When false, no events are emitted. The configuration options are passed to\n * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n */\n patchValue(value, options = {}) {\n // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n // `patchValue` can be called recursively and inner data structures might have these values,\n // so we just ignore such cases when a field containing FormArray instance receives `null` or\n // `undefined` as a value.\n if (value == null /* both `null` and `undefined` */)\n return;\n value.forEach((newValue, index) => {\n if (this.at(index)) {\n this.at(index).patchValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\n }\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the\n * value of all descendants to null or null maps.\n *\n * You reset to a specific form state by passing in an array of states\n * that matches the structure of the control. The state is a standalone value\n * or a form state object with both a value and a disabled status.\n *\n * @usageNotes\n * ### Reset the values in a form array\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * arr.reset(['name', 'last name']);\n *\n * console.log(arr.value); // ['name', 'last name']\n * ```\n *\n * ### Reset the values in a form array and the disabled status for the first control\n *\n * ```\n * arr.reset([\n * {value: 'name', disabled: true},\n * 'last'\n * ]);\n *\n * console.log(arr.value); // ['last']\n * console.log(arr.at(0).status); // 'DISABLED'\n * ```\n *\n * @param value Array of values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n */\n reset(value = [], options = {}) {\n this._forEachChild((control, index) => {\n control.reset(value[index], { onlySelf: true, emitEvent: options.emitEvent });\n });\n this._updatePristine(options);\n this._updateTouched(options);\n this.updateValueAndValidity(options);\n }\n /**\n * The aggregate value of the array, including any disabled controls.\n *\n * Reports all values regardless of disabled status.\n */\n getRawValue() {\n return this.controls.map((control) => control.getRawValue());\n }\n /**\n * Remove all controls in the `FormArray`.\n *\n * @param options Specifies whether this FormArray instance should emit events after all\n * controls are removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when all controls\n * in this FormArray instance are removed. When false, no events are emitted.\n *\n * @usageNotes\n * ### Remove all elements from a FormArray\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.length); // 2\n *\n * arr.clear();\n * console.log(arr.length); // 0\n * ```\n *\n * It's a simpler and more efficient alternative to removing all elements one by one:\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n *\n * while (arr.length) {\n * arr.removeAt(0);\n * }\n * ```\n */\n clear(options = {}) {\n if (this.controls.length < 1)\n return;\n this._forEachChild((control) => control._registerOnCollectionChange(() => { }));\n this.controls.splice(0);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Adjusts a negative index by summing it with the length of the array. For very negative\n * indices, the result may remain negative.\n * @internal\n */\n _adjustIndex(index) {\n return index < 0 ? index + this.length : index;\n }\n /** @internal */\n _syncPendingControls() {\n let subtreeUpdated = this.controls.reduce((updated, child) => {\n return child._syncPendingControls() ? true : updated;\n }, false);\n if (subtreeUpdated)\n this.updateValueAndValidity({ onlySelf: true });\n return subtreeUpdated;\n }\n /** @internal */\n _forEachChild(cb) {\n this.controls.forEach((control, index) => {\n cb(control, index);\n });\n }\n /** @internal */\n _updateValue() {\n this.value =\n this.controls.filter((control) => control.enabled || this.disabled)\n .map((control) => control.value);\n }\n /** @internal */\n _anyControls(condition) {\n return this.controls.some((control) => control.enabled && condition(control));\n }\n /** @internal */\n _setUpControls() {\n this._forEachChild((control) => this._registerControl(control));\n }\n /** @internal */\n _allControlsDisabled() {\n for (const control of this.controls) {\n if (control.enabled)\n return false;\n }\n return this.controls.length > 0 || this.disabled;\n }\n _registerControl(control) {\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n }\n /** @internal */\n _find(name) {\n return this.at(name) ?? null;\n }\n}\nconst UntypedFormArray = FormArray;\n/**\n * @description\n * Asserts that the given control is an instance of `FormArray`\n *\n * @publicApi\n */\nconst isFormArray = (control) => control instanceof FormArray;\n\nfunction isAbstractControlOptions(options) {\n return !!options &&\n (options.asyncValidators !== undefined ||\n options.validators !== undefined ||\n options.updateOn !== undefined);\n}\n// clang-format on\n/**\n * @description\n * Creates an `AbstractControl` from a user-specified configuration.\n *\n * The `FormBuilder` provides syntactic sugar that shortens creating instances of a\n * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to\n * build complex forms.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nclass FormBuilder {\n constructor() {\n this.useNonNullable = false;\n }\n /**\n * @description\n * Returns a FormBuilder in which automatically constructed `FormControl` elements\n * have `{nonNullable: true}` and are non-nullable.\n *\n * **Constructing non-nullable controls**\n *\n * When constructing a control, it will be non-nullable, and will reset to its initial value.\n *\n * ```ts\n * let nnfb = new FormBuilder().nonNullable;\n * let name = nnfb.control('Alex'); // FormControl<string>\n * name.reset();\n * console.log(name); // 'Alex'\n * ```\n *\n * **Constructing non-nullable groups or arrays**\n *\n * When constructing a group or array, all automatically created inner controls will be\n * non-nullable, and will reset to their initial values.\n *\n * ```ts\n * let nnfb = new FormBuilder().nonNullable;\n * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>\n * name.reset();\n * console.log(name); // {who: 'Alex'}\n * ```\n * **Constructing *nullable* fields on groups or arrays**\n *\n * It is still possible to have a nullable field. In particular, any `FormControl` which is\n * *already* constructed will not be altered. For example:\n *\n * ```ts\n * let nnfb = new FormBuilder().nonNullable;\n * // FormGroup<{who: FormControl<string|null>}>\n * let name = nnfb.group({who: new FormControl('Alex')});\n * name.reset(); console.log(name); // {who: null}\n * ```\n *\n * Because the inner control is constructed explicitly by the caller, the builder has\n * no control over how it is created, and cannot exclude the `null`.\n */\n get nonNullable() {\n const nnfb = new FormBuilder();\n nnfb.useNonNullable = true;\n return nnfb;\n }\n group(controls, options = null) {\n const reducedControls = this._reduceControls(controls);\n let newOptions = {};\n if (isAbstractControlOptions(options)) {\n // `options` are `AbstractControlOptions`\n newOptions = options;\n }\n else if (options !== null) {\n // `options` are legacy form group options\n newOptions.validators = options.validator;\n newOptions.asyncValidators = options.asyncValidator;\n }\n return new FormGroup(reducedControls, newOptions);\n }\n /**\n * @description\n * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object\n * containing all the keys and corresponding inner control types.\n *\n * @param controls A collection of child controls. The key for each child is the name\n * under which it is registered.\n *\n * @param options Configuration options object for the `FormRecord`. The object should have the\n * `AbstractControlOptions` type and might contain the following fields:\n * * `validators`: A synchronous validator function, or an array of validator functions.\n * * `asyncValidators`: A single async validator or array of async validator functions.\n * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'\n * | submit').\n */\n record(controls, options = null) {\n const reducedControls = this._reduceControls(controls);\n // Cast to `any` because the inferred types are not as specific as Element.\n return new FormRecord(reducedControls, options);\n }\n /**\n * @description\n * Constructs a new `FormControl` with the given state, validators and options. Sets\n * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the\n * control will be nullable. Accepts a single generic argument, which is the type of the\n * control's value.\n *\n * @param formState Initializes the control with an initial state value, or\n * with an object that contains both a value and a disabled status.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or a `FormControlOptions` object that contains\n * validation functions and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator\n * functions.\n *\n * @usageNotes\n *\n * ### Initialize a control as disabled\n *\n * The following example returns a control with an initial value in a disabled state.\n *\n * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">\n * </code-example>\n */\n control(formState, validatorOrOpts, asyncValidator) {\n let newOptions = {};\n if (!this.useNonNullable) {\n return new FormControl(formState, validatorOrOpts, asyncValidator);\n }\n if (isAbstractControlOptions(validatorOrOpts)) {\n // If the second argument is options, then they are copied.\n newOptions = validatorOrOpts;\n }\n else {\n // If the other arguments are validators, they are copied into an options object.\n newOptions.validators = validatorOrOpts;\n newOptions.asyncValidators = asyncValidator;\n }\n return new FormControl(formState, { ...newOptions, nonNullable: true });\n }\n /**\n * Constructs a new `FormArray` from the given array of configurations,\n * validators and options. Accepts a single generic argument, which is the type of each control\n * inside the array.\n *\n * @param controls An array of child controls or control configs. Each child control is given an\n * index when it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an\n * `AbstractControlOptions` object that contains\n * validation functions and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions.\n */\n array(controls, validatorOrOpts, asyncValidator) {\n const createdControls = controls.map(c => this._createControl(c));\n // Cast to `any` because the inferred types are not as specific as Element.\n return new FormArray(createdControls, validatorOrOpts, asyncValidator);\n }\n /** @internal */\n _reduceControls(controls) {\n const createdControls = {};\n Object.keys(controls).forEach(controlName => {\n createdControls[controlName] = this._createControl(controls[controlName]);\n });\n return createdControls;\n }\n /** @internal */\n _createControl(controls) {\n if (controls instanceof FormControl) {\n return controls;\n }\n else if (controls instanceof AbstractControl) { // A control; just return it\n return controls;\n }\n else if (Array.isArray(controls)) { // ControlConfig Tuple\n const value = controls[0];\n const validator = controls.length > 1 ? controls[1] : null;\n const asyncValidator = controls.length > 2 ? controls[2] : null;\n return this.control(value, validator, asyncValidator);\n }\n else { // T or FormControlState<T>\n return this.control(controls);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormBuilder, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * @description\n * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed\n * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.\n *\n * @publicApi\n */\nclass NonNullableFormBuilder {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NonNullableFormBuilder, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n useFactory: () => inject(FormBuilder).nonNullable,\n }]\n }] });\n/**\n * UntypedFormBuilder is the same as `FormBuilder`, but it provides untyped controls.\n */\nclass UntypedFormBuilder extends FormBuilder {\n group(controlsConfig, options = null) {\n return super.group(controlsConfig, options);\n }\n /**\n * Like `FormBuilder#control`, except the resulting control is untyped.\n */\n control(formState, validatorOrOpts, asyncValidator) {\n return super.control(formState, validatorOrOpts, asyncValidator);\n }\n /**\n * Like `FormBuilder#array`, except the resulting array is untyped.\n */\n array(controlsConfig, validatorOrOpts, asyncValidator) {\n return super.array(controlsConfig, validatorOrOpts, asyncValidator);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UntypedFormBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the forms package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('17.3.12');\n\n/**\n * Exports the required providers and directives for template-driven forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](/guide/forms-overview)\n * @see [Template-driven Forms Guide](/guide/forms)\n *\n * @publicApi\n */\nclass FormsModule {\n /**\n * @description\n * Provides options for configuring the forms module.\n *\n * @param opts An object of configuration options\n * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n */\n static withConfig(opts) {\n return {\n ngModule: FormsModule,\n providers: [{\n provide: CALL_SET_DISABLED_STATE,\n useValue: opts.callSetDisabledState ?? setDisabledStateDefault\n }]\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FormsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: TEMPLATE_DRIVEN_DIRECTIVES,\n exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]\n }]\n }] });\n/**\n * Exports the required infrastructure and directives for reactive forms,\n * making them available for import by NgModules that import this module.\n *\n * @see [Forms Overview](guide/forms-overview)\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nclass ReactiveFormsModule {\n /**\n * @description\n * Provides options for configuring the reactive forms module.\n *\n * @param opts An object of configuration options\n * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`\n * binding is used with reactive form directives.\n * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more\n * correct, or to only call it `whenDisabled`, which is the legacy behavior.\n */\n static withConfig(opts) {\n return {\n ngModule: ReactiveFormsModule,\n providers: [\n {\n provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,\n useValue: opts.warnOnNgModelWithFormControl ?? 'always'\n },\n {\n provide: CALL_SET_DISABLED_STATE,\n useValue: opts.callSetDisabledState ?? setDisabledStateDefault\n }\n ]\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ReactiveFormsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [REACTIVE_DRIVEN_DIRECTIVES],\n exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]\n }]\n }] });\n\n/**\n * @module\n * @description\n * This module is used for handling user input, by defining and building a `FormGroup` that\n * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`\n * objects can then be used to read information from the form DOM elements.\n *\n * Forms providers are not included in default providers; you must import these providers\n * explicitly.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, isFormArray, isFormControl, isFormGroup, isFormRecord, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };\n","import * as i0 from '@angular/core';\nimport { inject, NgZone, EventEmitter, PLATFORM_ID, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, Directive, ContentChildren, NgModule, Injectable } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { BehaviorSubject, Observable, Subject, combineLatest } from 'rxjs';\nimport { switchMap, take, map, takeUntil } from 'rxjs/operators';\n\n/** Manages event on a Google Maps object, ensuring that events are added only when necessary. */\nclass MapEventManager {\n /** Clears all currently-registered event listeners. */\n _clearListeners() {\n for (const listener of this._listeners) {\n listener.remove();\n }\n this._listeners = [];\n }\n constructor(_ngZone) {\n this._ngZone = _ngZone;\n /** Pending listeners that were added before the target was set. */\n this._pending = [];\n this._listeners = [];\n this._targetStream = new BehaviorSubject(undefined);\n }\n /** Gets an observable that adds an event listener to the map when a consumer subscribes to it. */\n getLazyEmitter(name) {\n return this._targetStream.pipe(switchMap(target => {\n const observable = new Observable(observer => {\n // If the target hasn't been initialized yet, cache the observer so it can be added later.\n if (!target) {\n this._pending.push({ observable, observer });\n return undefined;\n }\n const listener = target.addListener(name, (event) => {\n this._ngZone.run(() => observer.next(event));\n });\n // If there's an error when initializing the Maps API (e.g. a wrong API key), it will\n // return a dummy object that returns `undefined` from `addListener` (see #26514).\n if (!listener) {\n observer.complete();\n return undefined;\n }\n this._listeners.push(listener);\n return () => listener.remove();\n });\n return observable;\n }));\n }\n /** Sets the current target that the manager should bind events to. */\n setTarget(target) {\n const currentTarget = this._targetStream.value;\n if (target === currentTarget) {\n return;\n }\n // Clear the listeners from the pre-existing target.\n if (currentTarget) {\n this._clearListeners();\n this._pending = [];\n }\n this._targetStream.next(target);\n // Add the listeners that were bound before the map was initialized.\n this._pending.forEach(subscriber => subscriber.observable.subscribe(subscriber.observer));\n this._pending = [];\n }\n /** Destroys the manager and clears the event listeners. */\n destroy() {\n this._clearListeners();\n this._pending = [];\n this._targetStream.complete();\n }\n}\n\n/// <reference types=\"google.maps\" />\n/** default options set to the Googleplex */\nconst DEFAULT_OPTIONS = {\n center: { lat: 37.421995, lng: -122.084092 },\n zoom: 17,\n // Note: the type conversion here isn't necessary for our CI, but it resolves a g3 failure.\n mapTypeId: 'roadmap',\n};\n/** Arbitrary default height for the map element */\nconst DEFAULT_HEIGHT = '500px';\n/** Arbitrary default width for the map element */\nconst DEFAULT_WIDTH = '500px';\n/**\n * Angular component that renders a Google Map via the Google Maps JavaScript\n * API.\n * @see https://developers.google.com/maps/documentation/javascript/reference/\n */\nclass GoogleMap {\n set center(center) {\n this._center = center;\n }\n set zoom(zoom) {\n this._zoom = zoom;\n }\n set options(options) {\n this._options = options || DEFAULT_OPTIONS;\n }\n constructor(_elementRef, _ngZone, platformId) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n /** Height of the map. Set this to `null` if you'd like to control the height through CSS. */\n this.height = DEFAULT_HEIGHT;\n /** Width of the map. Set this to `null` if you'd like to control the width through CSS. */\n this.width = DEFAULT_WIDTH;\n this._options = DEFAULT_OPTIONS;\n /** Event emitted when the map is initialized. */\n this.mapInitialized = new EventEmitter();\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/events#auth-errors\n */\n this.authFailure = new EventEmitter();\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.bounds_changed\n */\n this.boundsChanged = this._eventManager.getLazyEmitter('bounds_changed');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.center_changed\n */\n this.centerChanged = this._eventManager.getLazyEmitter('center_changed');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.click\n */\n this.mapClick = this._eventManager.getLazyEmitter('click');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.dblclick\n */\n this.mapDblclick = this._eventManager.getLazyEmitter('dblclick');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.drag\n */\n this.mapDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragend\n */\n this.mapDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.dragstart\n */\n this.mapDragstart = this._eventManager.getLazyEmitter('dragstart');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.heading_changed\n */\n this.headingChanged = this._eventManager.getLazyEmitter('heading_changed');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.idle\n */\n this.idle = this._eventManager.getLazyEmitter('idle');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.maptypeid_changed\n */\n this.maptypeidChanged = this._eventManager.getLazyEmitter('maptypeid_changed');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.mousemove\n */\n this.mapMousemove = this._eventManager.getLazyEmitter('mousemove');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseout\n */\n this.mapMouseout = this._eventManager.getLazyEmitter('mouseout');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.mouseover\n */\n this.mapMouseover = this._eventManager.getLazyEmitter('mouseover');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/map#Map.projection_changed\n */\n this.projectionChanged = this._eventManager.getLazyEmitter('projection_changed');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.rightclick\n */\n this.mapRightclick = this._eventManager.getLazyEmitter('rightclick');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilesloaded\n */\n this.tilesloaded = this._eventManager.getLazyEmitter('tilesloaded');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.tilt_changed\n */\n this.tiltChanged = this._eventManager.getLazyEmitter('tilt_changed');\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.zoom_changed\n */\n this.zoomChanged = this._eventManager.getLazyEmitter('zoom_changed');\n this._isBrowser = isPlatformBrowser(platformId);\n if (this._isBrowser) {\n const googleMapsWindow = window;\n if (!googleMapsWindow.google && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Namespace google not found, cannot construct embedded google ' +\n 'map. Please install the Google Maps JavaScript API: ' +\n 'https://developers.google.com/maps/documentation/javascript/' +\n 'tutorial#Loading_the_Maps_API');\n }\n this._existingAuthFailureCallback = googleMapsWindow.gm_authFailure;\n googleMapsWindow.gm_authFailure = () => {\n if (this._existingAuthFailureCallback) {\n this._existingAuthFailureCallback();\n }\n this.authFailure.emit();\n };\n }\n }\n ngOnChanges(changes) {\n if (changes['height'] || changes['width']) {\n this._setSize();\n }\n const googleMap = this.googleMap;\n if (googleMap) {\n if (changes['options']) {\n googleMap.setOptions(this._combineOptions());\n }\n if (changes['center'] && this._center) {\n googleMap.setCenter(this._center);\n }\n // Note that the zoom can be zero.\n if (changes['zoom'] && this._zoom != null) {\n googleMap.setZoom(this._zoom);\n }\n if (changes['mapTypeId'] && this.mapTypeId) {\n googleMap.setMapTypeId(this.mapTypeId);\n }\n }\n }\n ngOnInit() {\n // It should be a noop during server-side rendering.\n if (this._isBrowser) {\n this._mapEl = this._elementRef.nativeElement.querySelector('.map-container');\n this._setSize();\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n if (google.maps.Map) {\n this._initialize(google.maps.Map);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n google.maps\n .importLibrary('maps')\n .then(lib => this._initialize(lib.Map));\n });\n }\n }\n }\n _initialize(mapConstructor) {\n this._ngZone.runOutsideAngular(() => {\n this.googleMap = new mapConstructor(this._mapEl, this._combineOptions());\n this._eventManager.setTarget(this.googleMap);\n this.mapInitialized.emit(this.googleMap);\n });\n }\n ngOnDestroy() {\n this.mapInitialized.complete();\n this._eventManager.destroy();\n if (this._isBrowser) {\n const googleMapsWindow = window;\n googleMapsWindow.gm_authFailure = this._existingAuthFailureCallback;\n }\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.fitBounds\n */\n fitBounds(bounds, padding) {\n this._assertInitialized();\n this.googleMap.fitBounds(bounds, padding);\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.panBy\n */\n panBy(x, y) {\n this._assertInitialized();\n this.googleMap.panBy(x, y);\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.panTo\n */\n panTo(latLng) {\n this._assertInitialized();\n this.googleMap.panTo(latLng);\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.panToBounds\n */\n panToBounds(latLngBounds, padding) {\n this._assertInitialized();\n this.googleMap.panToBounds(latLngBounds, padding);\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getBounds\n */\n getBounds() {\n this._assertInitialized();\n return this.googleMap.getBounds() || null;\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getCenter\n */\n getCenter() {\n this._assertInitialized();\n return this.googleMap.getCenter();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getClickableIcons\n */\n getClickableIcons() {\n this._assertInitialized();\n return this.googleMap.getClickableIcons();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getHeading\n */\n getHeading() {\n this._assertInitialized();\n return this.googleMap.getHeading();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getMapTypeId\n */\n getMapTypeId() {\n this._assertInitialized();\n return this.googleMap.getMapTypeId();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getProjection\n */\n getProjection() {\n this._assertInitialized();\n return this.googleMap.getProjection() || null;\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getStreetView\n */\n getStreetView() {\n this._assertInitialized();\n return this.googleMap.getStreetView();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getTilt\n */\n getTilt() {\n this._assertInitialized();\n return this.googleMap.getTilt();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.getZoom\n */\n getZoom() {\n this._assertInitialized();\n return this.googleMap.getZoom();\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.controls\n */\n get controls() {\n this._assertInitialized();\n return this.googleMap.controls;\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.data\n */\n get data() {\n this._assertInitialized();\n return this.googleMap.data;\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.mapTypes\n */\n get mapTypes() {\n this._assertInitialized();\n return this.googleMap.mapTypes;\n }\n /**\n * See\n * https://developers.google.com/maps/documentation/javascript/reference/map#Map.overlayMapTypes\n */\n get overlayMapTypes() {\n this._assertInitialized();\n return this.googleMap.overlayMapTypes;\n }\n /** Returns a promise that resolves when the map has been initialized. */\n _resolveMap() {\n return this.googleMap\n ? Promise.resolve(this.googleMap)\n : this.mapInitialized.pipe(take(1)).toPromise();\n }\n _setSize() {\n if (this._mapEl) {\n const styles = this._mapEl.style;\n styles.height =\n this.height === null ? '' : coerceCssPixelValue(this.height) || DEFAULT_HEIGHT;\n styles.width = this.width === null ? '' : coerceCssPixelValue(this.width) || DEFAULT_WIDTH;\n }\n }\n /** Combines the center and zoom and the other map options into a single object */\n _combineOptions() {\n const options = this._options || {};\n return {\n ...options,\n // It's important that we set **some** kind of `center` and `zoom`, otherwise\n // Google Maps will render a blank rectangle which looks broken.\n center: this._center || options.center || DEFAULT_OPTIONS.center,\n zoom: this._zoom ?? options.zoom ?? DEFAULT_OPTIONS.zoom,\n // Passing in an undefined `mapTypeId` seems to break tile loading\n // so make sure that we have some kind of default (see #22082).\n mapTypeId: this.mapTypeId || options.mapTypeId || DEFAULT_OPTIONS.mapTypeId,\n mapId: this.mapId || options.mapId,\n };\n }\n /** Asserts that the map has been initialized. */\n _assertInitialized() {\n if (!this.googleMap && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Cannot access Google Map information before the API has been initialized. ' +\n 'Please wait for the API to load before trying to interact with it.');\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: GoogleMap, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.2.0\", type: GoogleMap, isStandalone: true, selector: \"google-map\", inputs: { height: \"height\", width: \"width\", mapId: \"mapId\", mapTypeId: \"mapTypeId\", center: \"center\", zoom: \"zoom\", options: \"options\" }, outputs: { mapInitialized: \"mapInitialized\", authFailure: \"authFailure\", boundsChanged: \"boundsChanged\", centerChanged: \"centerChanged\", mapClick: \"mapClick\", mapDblclick: \"mapDblclick\", mapDrag: \"mapDrag\", mapDragend: \"mapDragend\", mapDragstart: \"mapDragstart\", headingChanged: \"headingChanged\", idle: \"idle\", maptypeidChanged: \"maptypeidChanged\", mapMousemove: \"mapMousemove\", mapMouseout: \"mapMouseout\", mapMouseover: \"mapMouseover\", projectionChanged: \"projectionChanged\", mapRightclick: \"mapRightclick\", tilesloaded: \"tilesloaded\", tiltChanged: \"tiltChanged\", zoomChanged: \"zoomChanged\" }, exportAs: [\"googleMap\"], usesOnChanges: true, ngImport: i0, template: '<div class=\"map-container\"></div><ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: GoogleMap, decorators: [{\n type: Component,\n args: [{\n selector: 'google-map',\n exportAs: 'googleMap',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: '<div class=\"map-container\"></div><ng-content />',\n encapsulation: ViewEncapsulation.None,\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }], propDecorators: { height: [{\n type: Input\n }], width: [{\n type: Input\n }], mapId: [{\n type: Input\n }], mapTypeId: [{\n type: Input\n }], center: [{\n type: Input\n }], zoom: [{\n type: Input\n }], options: [{\n type: Input\n }], mapInitialized: [{\n type: Output\n }], authFailure: [{\n type: Output\n }], boundsChanged: [{\n type: Output\n }], centerChanged: [{\n type: Output\n }], mapClick: [{\n type: Output\n }], mapDblclick: [{\n type: Output\n }], mapDrag: [{\n type: Output\n }], mapDragend: [{\n type: Output\n }], mapDragstart: [{\n type: Output\n }], headingChanged: [{\n type: Output\n }], idle: [{\n type: Output\n }], maptypeidChanged: [{\n type: Output\n }], mapMousemove: [{\n type: Output\n }], mapMouseout: [{\n type: Output\n }], mapMouseover: [{\n type: Output\n }], projectionChanged: [{\n type: Output\n }], mapRightclick: [{\n type: Output\n }], tilesloaded: [{\n type: Output\n }], tiltChanged: [{\n type: Output\n }], zoomChanged: [{\n type: Output\n }] } });\nconst cssUnitsPattern = /([A-Za-z%]+)$/;\n/** Coerces a value to a CSS pixel value. */\nfunction coerceCssPixelValue(value) {\n if (value == null) {\n return '';\n }\n return cssUnitsPattern.test(value) ? value : `${value}px`;\n}\n\n/// <reference types=\"google.maps\" />\nclass MapBaseLayer {\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n this._ngZone.runOutsideAngular(() => {\n this._initializeObject();\n });\n this._assertInitialized();\n this._setMap();\n }\n }\n ngOnDestroy() {\n this._unsetMap();\n }\n _assertInitialized() {\n if (!this._map.googleMap) {\n throw Error('Cannot access Google Map information before the API has been initialized. ' +\n 'Please wait for the API to load before trying to interact with it.');\n }\n }\n _initializeObject() { }\n _setMap() { }\n _unsetMap() { }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapBaseLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapBaseLayer, isStandalone: true, selector: \"map-base-layer\", exportAs: [\"mapBaseLayer\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapBaseLayer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-base-layer',\n exportAs: 'mapBaseLayer',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }] });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Bicycling Layer via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/map#BicyclingLayer\n */\nclass MapBicyclingLayer {\n constructor() {\n this._map = inject(GoogleMap);\n this._zone = inject(NgZone);\n /** Event emitted when the bicycling layer is initialized. */\n this.bicyclingLayerInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n if (google.maps.BicyclingLayer && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.BicyclingLayer);\n }\n else {\n this._zone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.BicyclingLayer);\n });\n });\n }\n }\n }\n _initialize(map, layerConstructor) {\n this._zone.runOutsideAngular(() => {\n this.bicyclingLayer = new layerConstructor();\n this.bicyclingLayerInitialized.emit(this.bicyclingLayer);\n this._assertLayerInitialized();\n this.bicyclingLayer.setMap(map);\n });\n }\n ngOnDestroy() {\n this.bicyclingLayer?.setMap(null);\n }\n _assertLayerInitialized() {\n if (!this.bicyclingLayer) {\n throw Error('Cannot interact with a Google Map Bicycling Layer before it has been initialized. ' +\n 'Please wait for the Transit Layer to load before trying to interact with it.');\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapBicyclingLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapBicyclingLayer, isStandalone: true, selector: \"map-bicycling-layer\", outputs: { bicyclingLayerInitialized: \"bicyclingLayerInitialized\" }, exportAs: [\"mapBicyclingLayer\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapBicyclingLayer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-bicycling-layer',\n exportAs: 'mapBicyclingLayer',\n standalone: true,\n }]\n }], propDecorators: { bicyclingLayerInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Circle via the Google Maps JavaScript API.\n * @see developers.google.com/maps/documentation/javascript/reference/polygon#Circle\n */\nclass MapCircle {\n set options(options) {\n this._options.next(options || {});\n }\n set center(center) {\n this._center.next(center);\n }\n set radius(radius) {\n this._radius.next(radius);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._options = new BehaviorSubject({});\n this._center = new BehaviorSubject(undefined);\n this._radius = new BehaviorSubject(undefined);\n this._destroyed = new Subject();\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.center_changed\n */\n this.centerChanged = this._eventManager.getLazyEmitter('center_changed');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.click\n */\n this.circleClick = this._eventManager.getLazyEmitter('click');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dblclick\n */\n this.circleDblclick = this._eventManager.getLazyEmitter('dblclick');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.drag\n */\n this.circleDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dragend\n */\n this.circleDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.dragstart\n */\n this.circleDragstart = this._eventManager.getLazyEmitter('dragstart');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mousedown\n */\n this.circleMousedown = this._eventManager.getLazyEmitter('mousedown');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mousemove\n */\n this.circleMousemove = this._eventManager.getLazyEmitter('mousemove');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseout\n */\n this.circleMouseout = this._eventManager.getLazyEmitter('mouseout');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseover\n */\n this.circleMouseover = this._eventManager.getLazyEmitter('mouseover');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.mouseup\n */\n this.circleMouseup = this._eventManager.getLazyEmitter('mouseup');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.radius_changed\n */\n this.radiusChanged = this._eventManager.getLazyEmitter('radius_changed');\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.rightclick\n */\n this.circleRightclick = this._eventManager.getLazyEmitter('rightclick');\n /** Event emitted when the circle is initialized. */\n this.circleInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (!this._map._isBrowser) {\n return;\n }\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.Circle && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.Circle, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.Circle, options);\n });\n });\n }\n });\n }\n _initialize(map, circleConstructor, options) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.circle = new circleConstructor(options);\n this._assertInitialized();\n this.circle.setMap(map);\n this._eventManager.setTarget(this.circle);\n this.circleInitialized.emit(this.circle);\n this._watchForOptionsChanges();\n this._watchForCenterChanges();\n this._watchForRadiusChanges();\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n this.circle?.setMap(null);\n }\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getBounds\n */\n getBounds() {\n this._assertInitialized();\n return this.circle.getBounds();\n }\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getCenter\n */\n getCenter() {\n this._assertInitialized();\n return this.circle.getCenter();\n }\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getDraggable\n */\n getDraggable() {\n this._assertInitialized();\n return this.circle.getDraggable();\n }\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getEditable\n */\n getEditable() {\n this._assertInitialized();\n return this.circle.getEditable();\n }\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getRadius\n */\n getRadius() {\n this._assertInitialized();\n return this.circle.getRadius();\n }\n /**\n * @see\n * developers.google.com/maps/documentation/javascript/reference/polygon#Circle.getVisible\n */\n getVisible() {\n this._assertInitialized();\n return this.circle.getVisible();\n }\n _combineOptions() {\n return combineLatest([this._options, this._center, this._radius]).pipe(map(([options, center, radius]) => {\n const combinedOptions = {\n ...options,\n center: center || options.center,\n radius: radius !== undefined ? radius : options.radius,\n };\n return combinedOptions;\n }));\n }\n _watchForOptionsChanges() {\n this._options.pipe(takeUntil(this._destroyed)).subscribe(options => {\n this._assertInitialized();\n this.circle.setOptions(options);\n });\n }\n _watchForCenterChanges() {\n this._center.pipe(takeUntil(this._destroyed)).subscribe(center => {\n if (center) {\n this._assertInitialized();\n this.circle.setCenter(center);\n }\n });\n }\n _watchForRadiusChanges() {\n this._radius.pipe(takeUntil(this._destroyed)).subscribe(radius => {\n if (radius !== undefined) {\n this._assertInitialized();\n this.circle.setRadius(radius);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.circle) {\n throw Error('Cannot interact with a Google Map Circle before it has been ' +\n 'initialized. Please wait for the Circle to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapCircle, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapCircle, isStandalone: true, selector: \"map-circle\", inputs: { options: \"options\", center: \"center\", radius: \"radius\" }, outputs: { centerChanged: \"centerChanged\", circleClick: \"circleClick\", circleDblclick: \"circleDblclick\", circleDrag: \"circleDrag\", circleDragend: \"circleDragend\", circleDragstart: \"circleDragstart\", circleMousedown: \"circleMousedown\", circleMousemove: \"circleMousemove\", circleMouseout: \"circleMouseout\", circleMouseover: \"circleMouseover\", circleMouseup: \"circleMouseup\", radiusChanged: \"radiusChanged\", circleRightclick: \"circleRightclick\", circleInitialized: \"circleInitialized\" }, exportAs: [\"mapCircle\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapCircle, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-circle',\n exportAs: 'mapCircle',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { options: [{\n type: Input\n }], center: [{\n type: Input\n }], radius: [{\n type: Input\n }], centerChanged: [{\n type: Output\n }], circleClick: [{\n type: Output\n }], circleDblclick: [{\n type: Output\n }], circleDrag: [{\n type: Output\n }], circleDragend: [{\n type: Output\n }], circleDragstart: [{\n type: Output\n }], circleMousedown: [{\n type: Output\n }], circleMousemove: [{\n type: Output\n }], circleMouseout: [{\n type: Output\n }], circleMouseover: [{\n type: Output\n }], circleMouseup: [{\n type: Output\n }], radiusChanged: [{\n type: Output\n }], circleRightclick: [{\n type: Output\n }], circleInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Directions Renderer via the Google Maps\n * JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRenderer\n */\nclass MapDirectionsRenderer {\n /**\n * See developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsRendererOptions.directions\n */\n set directions(directions) {\n this._directions = directions;\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsRendererOptions\n */\n set options(options) {\n this._options = options;\n }\n constructor(_googleMap, _ngZone) {\n this._googleMap = _googleMap;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n /**\n * See developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsRenderer.directions_changed\n */\n this.directionsChanged = this._eventManager.getLazyEmitter('directions_changed');\n /** Event emitted when the directions renderer is initialized. */\n this.directionsRendererInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._googleMap._isBrowser) {\n if (google.maps.DirectionsRenderer && this._googleMap.googleMap) {\n this._initialize(this._googleMap.googleMap, google.maps.DirectionsRenderer);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._googleMap._resolveMap(), google.maps.importLibrary('routes')]).then(([map, lib]) => {\n this._initialize(map, lib.DirectionsRenderer);\n });\n });\n }\n }\n }\n _initialize(map, rendererConstructor) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.directionsRenderer = new rendererConstructor(this._combineOptions());\n this._assertInitialized();\n this.directionsRenderer.setMap(map);\n this._eventManager.setTarget(this.directionsRenderer);\n this.directionsRendererInitialized.emit(this.directionsRenderer);\n });\n }\n ngOnChanges(changes) {\n if (this.directionsRenderer) {\n if (changes['options']) {\n this.directionsRenderer.setOptions(this._combineOptions());\n }\n if (changes['directions'] && this._directions !== undefined) {\n this.directionsRenderer.setDirections(this._directions);\n }\n }\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this.directionsRenderer?.setMap(null);\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsRenderer.getDirections\n */\n getDirections() {\n this._assertInitialized();\n return this.directionsRenderer.getDirections();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsRenderer.getPanel\n */\n getPanel() {\n this._assertInitialized();\n return this.directionsRenderer.getPanel();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsRenderer.getRouteIndex\n */\n getRouteIndex() {\n this._assertInitialized();\n return this.directionsRenderer.getRouteIndex();\n }\n _combineOptions() {\n const options = this._options || {};\n return {\n ...options,\n directions: this._directions || options.directions,\n map: this._googleMap.googleMap,\n };\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.directionsRenderer) {\n throw Error('Cannot interact with a Google Map Directions Renderer before it has been ' +\n 'initialized. Please wait for the Directions Renderer to load before trying ' +\n 'to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapDirectionsRenderer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapDirectionsRenderer, isStandalone: true, selector: \"map-directions-renderer\", inputs: { directions: \"directions\", options: \"options\" }, outputs: { directionsChanged: \"directionsChanged\", directionsRendererInitialized: \"directionsRendererInitialized\" }, exportAs: [\"mapDirectionsRenderer\"], usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapDirectionsRenderer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-directions-renderer',\n exportAs: 'mapDirectionsRenderer',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { directions: [{\n type: Input\n }], options: [{\n type: Input\n }], directionsChanged: [{\n type: Output\n }], directionsRendererInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Ground Overlay via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/image-overlay#GroundOverlay\n */\nclass MapGroundOverlay {\n /** URL of the image that will be shown in the overlay. */\n set url(url) {\n this._url.next(url);\n }\n /** Bounds for the overlay. */\n get bounds() {\n return this._bounds.value;\n }\n set bounds(bounds) {\n this._bounds.next(bounds);\n }\n /** Opacity of the overlay. */\n set opacity(opacity) {\n this._opacity.next(opacity);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._opacity = new BehaviorSubject(1);\n this._url = new BehaviorSubject('');\n this._bounds = new BehaviorSubject(undefined);\n this._destroyed = new Subject();\n /** Whether the overlay is clickable */\n this.clickable = false;\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/image-overlay#GroundOverlay.click\n */\n this.mapClick = this._eventManager.getLazyEmitter('click');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/image-overlay\n * #GroundOverlay.dblclick\n */\n this.mapDblclick = this._eventManager.getLazyEmitter('dblclick');\n /** Event emitted when the ground overlay is initialized. */\n this.groundOverlayInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n // The ground overlay setup is slightly different from the other Google Maps objects in that\n // we have to recreate the `GroundOverlay` object whenever the bounds change, because\n // Google Maps doesn't provide an API to update the bounds of an existing overlay.\n this._bounds.pipe(takeUntil(this._destroyed)).subscribe(bounds => {\n if (this.groundOverlay) {\n this.groundOverlay.setMap(null);\n this.groundOverlay = undefined;\n }\n if (!bounds) {\n return;\n }\n if (google.maps.GroundOverlay && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.GroundOverlay, bounds);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.GroundOverlay, bounds);\n });\n });\n }\n });\n }\n }\n _initialize(map, overlayConstructor, bounds) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.groundOverlay = new overlayConstructor(this._url.getValue(), bounds, {\n clickable: this.clickable,\n opacity: this._opacity.value,\n });\n this._assertInitialized();\n this.groundOverlay.setMap(map);\n this._eventManager.setTarget(this.groundOverlay);\n this.groundOverlayInitialized.emit(this.groundOverlay);\n // We only need to set up the watchers once.\n if (!this._hasWatchers) {\n this._hasWatchers = true;\n this._watchForOpacityChanges();\n this._watchForUrlChanges();\n }\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n this.groundOverlay?.setMap(null);\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/image-overlay\n * #GroundOverlay.getBounds\n */\n getBounds() {\n this._assertInitialized();\n return this.groundOverlay.getBounds();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/image-overlay\n * #GroundOverlay.getOpacity\n */\n getOpacity() {\n this._assertInitialized();\n return this.groundOverlay.getOpacity();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/image-overlay\n * #GroundOverlay.getUrl\n */\n getUrl() {\n this._assertInitialized();\n return this.groundOverlay.getUrl();\n }\n _watchForOpacityChanges() {\n this._opacity.pipe(takeUntil(this._destroyed)).subscribe(opacity => {\n if (opacity != null) {\n this.groundOverlay?.setOpacity(opacity);\n }\n });\n }\n _watchForUrlChanges() {\n this._url.pipe(takeUntil(this._destroyed)).subscribe(url => {\n const overlay = this.groundOverlay;\n if (overlay) {\n overlay.set('url', url);\n // Google Maps only redraws the overlay if we re-set the map.\n overlay.setMap(null);\n overlay.setMap(this._map.googleMap);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.groundOverlay) {\n throw Error('Cannot interact with a Google Map GroundOverlay before it has been initialized. ' +\n 'Please wait for the GroundOverlay to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapGroundOverlay, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapGroundOverlay, isStandalone: true, selector: \"map-ground-overlay\", inputs: { url: \"url\", bounds: \"bounds\", clickable: \"clickable\", opacity: \"opacity\" }, outputs: { mapClick: \"mapClick\", mapDblclick: \"mapDblclick\", groundOverlayInitialized: \"groundOverlayInitialized\" }, exportAs: [\"mapGroundOverlay\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapGroundOverlay, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-ground-overlay',\n exportAs: 'mapGroundOverlay',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { url: [{\n type: Input\n }], bounds: [{\n type: Input\n }], clickable: [{\n type: Input\n }], opacity: [{\n type: Input\n }], mapClick: [{\n type: Output\n }], mapDblclick: [{\n type: Output\n }], groundOverlayInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps info window via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/info-window\n */\nclass MapInfoWindow {\n set options(options) {\n this._options.next(options || {});\n }\n set position(position) {\n this._position.next(position);\n }\n constructor(_googleMap, _elementRef, _ngZone) {\n this._googleMap = _googleMap;\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._options = new BehaviorSubject({});\n this._position = new BehaviorSubject(undefined);\n this._destroy = new Subject();\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.closeclick\n */\n this.closeclick = this._eventManager.getLazyEmitter('closeclick');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window\n * #InfoWindow.content_changed\n */\n this.contentChanged = this._eventManager.getLazyEmitter('content_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.domready\n */\n this.domready = this._eventManager.getLazyEmitter('domready');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window\n * #InfoWindow.position_changed\n */\n this.positionChanged = this._eventManager.getLazyEmitter('position_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window\n * #InfoWindow.zindex_changed\n */\n this.zindexChanged = this._eventManager.getLazyEmitter('zindex_changed');\n /** Event emitted when the info window is initialized. */\n this.infoWindowInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._googleMap._isBrowser) {\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.InfoWindow) {\n this._initialize(google.maps.InfoWindow, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n google.maps.importLibrary('maps').then(lib => {\n this._initialize(lib.InfoWindow, options);\n });\n });\n }\n });\n }\n }\n _initialize(infoWindowConstructor, options) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.infoWindow = new infoWindowConstructor(options);\n this._eventManager.setTarget(this.infoWindow);\n this.infoWindowInitialized.emit(this.infoWindow);\n this._watchForOptionsChanges();\n this._watchForPositionChanges();\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroy.next();\n this._destroy.complete();\n // If no info window has been created on the server, we do not try closing it.\n // On the server, an info window cannot be created and this would cause errors.\n if (this.infoWindow) {\n this.close();\n }\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.close\n */\n close() {\n this._assertInitialized();\n this.infoWindow.close();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.getContent\n */\n getContent() {\n this._assertInitialized();\n return this.infoWindow.getContent() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window\n * #InfoWindow.getPosition\n */\n getPosition() {\n this._assertInitialized();\n return this.infoWindow.getPosition() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindow.getZIndex\n */\n getZIndex() {\n this._assertInitialized();\n return this.infoWindow.getZIndex();\n }\n /**\n * Opens the MapInfoWindow using the provided AdvancedMarkerElement.\n * @deprecated Use the `open` method instead.\n * @breaking-change 20.0.0\n */\n openAdvancedMarkerElement(advancedMarkerElement, content) {\n this.open({\n getAnchor: () => advancedMarkerElement,\n }, undefined, content);\n }\n /**\n * Opens the MapInfoWindow using the provided anchor. If the anchor is not set,\n * then the position property of the options input is used instead.\n */\n open(anchor, shouldFocus, content) {\n this._assertInitialized();\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && anchor && !anchor.getAnchor) {\n throw new Error('Specified anchor does not implement the `getAnchor` method. ' +\n 'It cannot be used to open an info window.');\n }\n const anchorObject = anchor ? anchor.getAnchor() : undefined;\n // Prevent the info window from initializing when trying to reopen on the same anchor.\n // Note that when the window is opened for the first time, the anchor will always be\n // undefined. If that's the case, we have to allow it to open in order to handle the\n // case where the window doesn't have an anchor, but is placed at a particular position.\n if (this.infoWindow.get('anchor') !== anchorObject || !anchorObject) {\n this._elementRef.nativeElement.style.display = '';\n if (content) {\n this.infoWindow.setContent(content);\n }\n this.infoWindow.open({\n map: this._googleMap.googleMap,\n anchor: anchorObject,\n shouldFocus,\n });\n }\n }\n _combineOptions() {\n return combineLatest([this._options, this._position]).pipe(map(([options, position]) => {\n const combinedOptions = {\n ...options,\n position: position || options.position,\n content: this._elementRef.nativeElement,\n };\n return combinedOptions;\n }));\n }\n _watchForOptionsChanges() {\n this._options.pipe(takeUntil(this._destroy)).subscribe(options => {\n this._assertInitialized();\n this.infoWindow.setOptions(options);\n });\n }\n _watchForPositionChanges() {\n this._position.pipe(takeUntil(this._destroy)).subscribe(position => {\n if (position) {\n this._assertInitialized();\n this.infoWindow.setPosition(position);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.infoWindow) {\n throw Error('Cannot interact with a Google Map Info Window before it has been ' +\n 'initialized. Please wait for the Info Window to load before trying to interact with ' +\n 'it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapInfoWindow, deps: [{ token: GoogleMap }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapInfoWindow, isStandalone: true, selector: \"map-info-window\", inputs: { options: \"options\", position: \"position\" }, outputs: { closeclick: \"closeclick\", contentChanged: \"contentChanged\", domready: \"domready\", positionChanged: \"positionChanged\", zindexChanged: \"zindexChanged\", infoWindowInitialized: \"infoWindowInitialized\" }, host: { styleAttribute: \"display: none\" }, exportAs: [\"mapInfoWindow\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapInfoWindow, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-info-window',\n exportAs: 'mapInfoWindow',\n standalone: true,\n host: { 'style': 'display: none' },\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { options: [{\n type: Input\n }], position: [{\n type: Input\n }], closeclick: [{\n type: Output\n }], contentChanged: [{\n type: Output\n }], domready: [{\n type: Output\n }], positionChanged: [{\n type: Output\n }], zindexChanged: [{\n type: Output\n }], infoWindowInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps KML Layer via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer\n */\nclass MapKmlLayer {\n set options(options) {\n this._options.next(options || {});\n }\n set url(url) {\n this._url.next(url);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._options = new BehaviorSubject({});\n this._url = new BehaviorSubject('');\n this._destroyed = new Subject();\n /**\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.click\n */\n this.kmlClick = this._eventManager.getLazyEmitter('click');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/kml\n * #KmlLayer.defaultviewport_changed\n */\n this.defaultviewportChanged = this._eventManager.getLazyEmitter('defaultviewport_changed');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.status_changed\n */\n this.statusChanged = this._eventManager.getLazyEmitter('status_changed');\n /** Event emitted when the KML layer is initialized. */\n this.kmlLayerInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.KmlLayer && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.KmlLayer, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.KmlLayer, options);\n });\n });\n }\n });\n }\n }\n _initialize(map, layerConstructor, options) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.kmlLayer = new layerConstructor(options);\n this._assertInitialized();\n this.kmlLayer.setMap(map);\n this._eventManager.setTarget(this.kmlLayer);\n this.kmlLayerInitialized.emit(this.kmlLayer);\n this._watchForOptionsChanges();\n this._watchForUrlChanges();\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n this.kmlLayer?.setMap(null);\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.getDefaultViewport\n */\n getDefaultViewport() {\n this._assertInitialized();\n return this.kmlLayer.getDefaultViewport();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.getMetadata\n */\n getMetadata() {\n this._assertInitialized();\n return this.kmlLayer.getMetadata();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.getStatus\n */\n getStatus() {\n this._assertInitialized();\n return this.kmlLayer.getStatus();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.getUrl\n */\n getUrl() {\n this._assertInitialized();\n return this.kmlLayer.getUrl();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/kml#KmlLayer.getZIndex\n */\n getZIndex() {\n this._assertInitialized();\n return this.kmlLayer.getZIndex();\n }\n _combineOptions() {\n return combineLatest([this._options, this._url]).pipe(map(([options, url]) => {\n const combinedOptions = {\n ...options,\n url: url || options.url,\n };\n return combinedOptions;\n }));\n }\n _watchForOptionsChanges() {\n this._options.pipe(takeUntil(this._destroyed)).subscribe(options => {\n if (this.kmlLayer) {\n this._assertInitialized();\n this.kmlLayer.setOptions(options);\n }\n });\n }\n _watchForUrlChanges() {\n this._url.pipe(takeUntil(this._destroyed)).subscribe(url => {\n if (url && this.kmlLayer) {\n this._assertInitialized();\n this.kmlLayer.setUrl(url);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.kmlLayer) {\n throw Error('Cannot interact with a Google Map KmlLayer before it has been ' +\n 'initialized. Please wait for the KmlLayer to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapKmlLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapKmlLayer, isStandalone: true, selector: \"map-kml-layer\", inputs: { options: \"options\", url: \"url\" }, outputs: { kmlClick: \"kmlClick\", defaultviewportChanged: \"defaultviewportChanged\", statusChanged: \"statusChanged\", kmlLayerInitialized: \"kmlLayerInitialized\" }, exportAs: [\"mapKmlLayer\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapKmlLayer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-kml-layer',\n exportAs: 'mapKmlLayer',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { options: [{\n type: Input\n }], url: [{\n type: Input\n }], kmlClick: [{\n type: Output\n }], defaultviewportChanged: [{\n type: Output\n }], statusChanged: [{\n type: Output\n }], kmlLayerInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Default options for the Google Maps marker component. Displays a marker\n * at the Googleplex.\n */\nconst DEFAULT_MARKER_OPTIONS$1 = {\n position: { lat: 37.421995, lng: -122.084092 },\n};\n/**\n * Angular component that renders a Google Maps marker via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/marker\n */\nclass MapMarker {\n /**\n * Title of the marker.\n * See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.title\n */\n set title(title) {\n this._title = title;\n }\n /**\n * Position of the marker. See:\n * developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.position\n */\n set position(position) {\n this._position = position;\n }\n /**\n * Label for the marker.\n * See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.label\n */\n set label(label) {\n this._label = label;\n }\n /**\n * Whether the marker is clickable. See:\n * developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.clickable\n */\n set clickable(clickable) {\n this._clickable = clickable;\n }\n /**\n * Options used to configure the marker.\n * See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions\n */\n set options(options) {\n this._options = options;\n }\n /**\n * Icon to be used for the marker.\n * See: https://developers.google.com/maps/documentation/javascript/reference/marker#Icon\n */\n set icon(icon) {\n this._icon = icon;\n }\n /**\n * Whether the marker is visible.\n * See: developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.visible\n */\n set visible(value) {\n this._visible = value;\n }\n constructor(_googleMap, _ngZone) {\n this._googleMap = _googleMap;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.animation_changed\n */\n this.animationChanged = this._eventManager.getLazyEmitter('animation_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.click\n */\n this.mapClick = this._eventManager.getLazyEmitter('click');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.clickable_changed\n */\n this.clickableChanged = this._eventManager.getLazyEmitter('clickable_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.cursor_changed\n */\n this.cursorChanged = this._eventManager.getLazyEmitter('cursor_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.dblclick\n */\n this.mapDblclick = this._eventManager.getLazyEmitter('dblclick');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.drag\n */\n this.mapDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.dragend\n */\n this.mapDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.draggable_changed\n */\n this.draggableChanged = this._eventManager.getLazyEmitter('draggable_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.dragstart\n */\n this.mapDragstart = this._eventManager.getLazyEmitter('dragstart');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.flat_changed\n */\n this.flatChanged = this._eventManager.getLazyEmitter('flat_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.icon_changed\n */\n this.iconChanged = this._eventManager.getLazyEmitter('icon_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.mousedown\n */\n this.mapMousedown = this._eventManager.getLazyEmitter('mousedown');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.mouseout\n */\n this.mapMouseout = this._eventManager.getLazyEmitter('mouseout');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.mouseover\n */\n this.mapMouseover = this._eventManager.getLazyEmitter('mouseover');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.mouseup\n */\n this.mapMouseup = this._eventManager.getLazyEmitter('mouseup');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.position_changed\n */\n this.positionChanged = this._eventManager.getLazyEmitter('position_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.rightclick\n */\n this.mapRightclick = this._eventManager.getLazyEmitter('rightclick');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.shape_changed\n */\n this.shapeChanged = this._eventManager.getLazyEmitter('shape_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.title_changed\n */\n this.titleChanged = this._eventManager.getLazyEmitter('title_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.visible_changed\n */\n this.visibleChanged = this._eventManager.getLazyEmitter('visible_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.zindex_changed\n */\n this.zindexChanged = this._eventManager.getLazyEmitter('zindex_changed');\n /** Event emitted when the marker is initialized. */\n this.markerInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (!this._googleMap._isBrowser) {\n return;\n }\n if (google.maps.Marker && this._googleMap.googleMap) {\n this._initialize(this._googleMap.googleMap, google.maps.Marker);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._googleMap._resolveMap(), google.maps.importLibrary('marker')]).then(([map, lib]) => {\n this._initialize(map, lib.Marker);\n });\n });\n }\n }\n _initialize(map, markerConstructor) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.marker = new markerConstructor(this._combineOptions());\n this._assertInitialized();\n this.marker.setMap(map);\n this._eventManager.setTarget(this.marker);\n this.markerInitialized.next(this.marker);\n });\n }\n ngOnChanges(changes) {\n const { marker, _title, _position, _label, _clickable, _icon, _visible } = this;\n if (marker) {\n if (changes['options']) {\n marker.setOptions(this._combineOptions());\n }\n if (changes['title'] && _title !== undefined) {\n marker.setTitle(_title);\n }\n if (changes['position'] && _position) {\n marker.setPosition(_position);\n }\n if (changes['label'] && _label !== undefined) {\n marker.setLabel(_label);\n }\n if (changes['clickable'] && _clickable !== undefined) {\n marker.setClickable(_clickable);\n }\n if (changes['icon'] && _icon) {\n marker.setIcon(_icon);\n }\n if (changes['visible'] && _visible !== undefined) {\n marker.setVisible(_visible);\n }\n }\n }\n ngOnDestroy() {\n this.markerInitialized.complete();\n this._eventManager.destroy();\n this.marker?.setMap(null);\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getAnimation\n */\n getAnimation() {\n this._assertInitialized();\n return this.marker.getAnimation() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getClickable\n */\n getClickable() {\n this._assertInitialized();\n return this.marker.getClickable();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getCursor\n */\n getCursor() {\n this._assertInitialized();\n return this.marker.getCursor() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getDraggable\n */\n getDraggable() {\n this._assertInitialized();\n return !!this.marker.getDraggable();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getIcon\n */\n getIcon() {\n this._assertInitialized();\n return this.marker.getIcon() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getLabel\n */\n getLabel() {\n this._assertInitialized();\n return this.marker.getLabel() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getOpacity\n */\n getOpacity() {\n this._assertInitialized();\n return this.marker.getOpacity() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getPosition\n */\n getPosition() {\n this._assertInitialized();\n return this.marker.getPosition() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getShape\n */\n getShape() {\n this._assertInitialized();\n return this.marker.getShape() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getTitle\n */\n getTitle() {\n this._assertInitialized();\n return this.marker.getTitle() || null;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getVisible\n */\n getVisible() {\n this._assertInitialized();\n return this.marker.getVisible();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/marker#Marker.getZIndex\n */\n getZIndex() {\n this._assertInitialized();\n return this.marker.getZIndex() || null;\n }\n /** Gets the anchor point that can be used to attach other Google Maps objects. */\n getAnchor() {\n this._assertInitialized();\n return this.marker;\n }\n /** Returns a promise that resolves when the marker has been initialized. */\n _resolveMarker() {\n return this.marker\n ? Promise.resolve(this.marker)\n : this.markerInitialized.pipe(take(1)).toPromise();\n }\n /** Creates a combined options object using the passed-in options and the individual inputs. */\n _combineOptions() {\n const options = this._options || DEFAULT_MARKER_OPTIONS$1;\n return {\n ...options,\n title: this._title || options.title,\n position: this._position || options.position,\n label: this._label || options.label,\n clickable: this._clickable ?? options.clickable,\n map: this._googleMap.googleMap,\n icon: this._icon || options.icon,\n visible: this._visible ?? options.visible,\n };\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.marker) {\n throw Error('Cannot interact with a Google Map Marker before it has been ' +\n 'initialized. Please wait for the Marker to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapMarker, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapMarker, isStandalone: true, selector: \"map-marker\", inputs: { title: \"title\", position: \"position\", label: \"label\", clickable: \"clickable\", options: \"options\", icon: \"icon\", visible: \"visible\" }, outputs: { animationChanged: \"animationChanged\", mapClick: \"mapClick\", clickableChanged: \"clickableChanged\", cursorChanged: \"cursorChanged\", mapDblclick: \"mapDblclick\", mapDrag: \"mapDrag\", mapDragend: \"mapDragend\", draggableChanged: \"draggableChanged\", mapDragstart: \"mapDragstart\", flatChanged: \"flatChanged\", iconChanged: \"iconChanged\", mapMousedown: \"mapMousedown\", mapMouseout: \"mapMouseout\", mapMouseover: \"mapMouseover\", mapMouseup: \"mapMouseup\", positionChanged: \"positionChanged\", mapRightclick: \"mapRightclick\", shapeChanged: \"shapeChanged\", titleChanged: \"titleChanged\", visibleChanged: \"visibleChanged\", zindexChanged: \"zindexChanged\", markerInitialized: \"markerInitialized\" }, exportAs: [\"mapMarker\"], usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapMarker, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-marker',\n exportAs: 'mapMarker',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { title: [{\n type: Input\n }], position: [{\n type: Input\n }], label: [{\n type: Input\n }], clickable: [{\n type: Input\n }], options: [{\n type: Input\n }], icon: [{\n type: Input\n }], visible: [{\n type: Input\n }], animationChanged: [{\n type: Output\n }], mapClick: [{\n type: Output\n }], clickableChanged: [{\n type: Output\n }], cursorChanged: [{\n type: Output\n }], mapDblclick: [{\n type: Output\n }], mapDrag: [{\n type: Output\n }], mapDragend: [{\n type: Output\n }], draggableChanged: [{\n type: Output\n }], mapDragstart: [{\n type: Output\n }], flatChanged: [{\n type: Output\n }], iconChanged: [{\n type: Output\n }], mapMousedown: [{\n type: Output\n }], mapMouseout: [{\n type: Output\n }], mapMouseover: [{\n type: Output\n }], mapMouseup: [{\n type: Output\n }], positionChanged: [{\n type: Output\n }], mapRightclick: [{\n type: Output\n }], shapeChanged: [{\n type: Output\n }], titleChanged: [{\n type: Output\n }], visibleChanged: [{\n type: Output\n }], zindexChanged: [{\n type: Output\n }], markerInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/** Default options for a clusterer. */\nconst DEFAULT_CLUSTERER_OPTIONS = {};\n/**\n * Angular component for implementing a Google Maps Marker Clusterer.\n *\n * See https://developers.google.com/maps/documentation/javascript/marker-clustering\n */\nclass MapMarkerClusterer {\n set averageCenter(averageCenter) {\n this._averageCenter = averageCenter;\n }\n set batchSizeIE(batchSizeIE) {\n this._batchSizeIE = batchSizeIE;\n }\n set calculator(calculator) {\n this._calculator = calculator;\n }\n set clusterClass(clusterClass) {\n this._clusterClass = clusterClass;\n }\n set enableRetinaIcons(enableRetinaIcons) {\n this._enableRetinaIcons = enableRetinaIcons;\n }\n set gridSize(gridSize) {\n this._gridSize = gridSize;\n }\n set ignoreHidden(ignoreHidden) {\n this._ignoreHidden = ignoreHidden;\n }\n set imageExtension(imageExtension) {\n this._imageExtension = imageExtension;\n }\n set imagePath(imagePath) {\n this._imagePath = imagePath;\n }\n set imageSizes(imageSizes) {\n this._imageSizes = imageSizes;\n }\n set maxZoom(maxZoom) {\n this._maxZoom = maxZoom;\n }\n set minimumClusterSize(minimumClusterSize) {\n this._minimumClusterSize = minimumClusterSize;\n }\n set styles(styles) {\n this._styles = styles;\n }\n set title(title) {\n this._title = title;\n }\n set zIndex(zIndex) {\n this._zIndex = zIndex;\n }\n set zoomOnClick(zoomOnClick) {\n this._zoomOnClick = zoomOnClick;\n }\n set options(options) {\n this._options = options;\n }\n constructor(_googleMap, _ngZone) {\n this._googleMap = _googleMap;\n this._ngZone = _ngZone;\n this._currentMarkers = new Set();\n this._eventManager = new MapEventManager(inject(NgZone));\n this._destroy = new Subject();\n this.ariaLabelFn = () => '';\n /**\n * See\n * googlemaps.github.io/v3-utility-library/modules/\n * _google_markerclustererplus.html#clusteringbegin\n */\n this.clusteringbegin = this._eventManager.getLazyEmitter('clusteringbegin');\n /**\n * See\n * googlemaps.github.io/v3-utility-library/modules/_google_markerclustererplus.html#clusteringend\n */\n this.clusteringend = this._eventManager.getLazyEmitter('clusteringend');\n /** Emits when a cluster has been clicked. */\n this.clusterClick = this._eventManager.getLazyEmitter('click');\n /** Event emitted when the clusterer is initialized. */\n this.markerClustererInitialized = new EventEmitter();\n this._canInitialize = _googleMap._isBrowser;\n }\n ngOnInit() {\n if (this._canInitialize) {\n this._ngZone.runOutsideAngular(() => {\n this._googleMap._resolveMap().then(map => {\n if (typeof MarkerClusterer !== 'function' &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('MarkerClusterer class not found, cannot construct a marker cluster. ' +\n 'Please install the MarkerClustererPlus library: ' +\n 'https://github.com/googlemaps/js-markerclustererplus');\n }\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this.markerClusterer = this._ngZone.runOutsideAngular(() => {\n return new MarkerClusterer(map, [], this._combineOptions());\n });\n this._assertInitialized();\n this._eventManager.setTarget(this.markerClusterer);\n this.markerClustererInitialized.emit(this.markerClusterer);\n });\n });\n }\n }\n ngAfterContentInit() {\n if (this._canInitialize) {\n if (this.markerClusterer) {\n this._watchForMarkerChanges();\n }\n else {\n this.markerClustererInitialized\n .pipe(take(1), takeUntil(this._destroy))\n .subscribe(() => this._watchForMarkerChanges());\n }\n }\n }\n ngOnChanges(changes) {\n const { markerClusterer: clusterer, ariaLabelFn, _averageCenter, _batchSizeIE, _calculator, _styles, _clusterClass, _enableRetinaIcons, _gridSize, _ignoreHidden, _imageExtension, _imagePath, _imageSizes, _maxZoom, _minimumClusterSize, _title, _zIndex, _zoomOnClick, } = this;\n if (clusterer) {\n if (changes['options']) {\n clusterer.setOptions(this._combineOptions());\n }\n if (changes['ariaLabelFn']) {\n clusterer.ariaLabelFn = ariaLabelFn;\n }\n if (changes['averageCenter'] && _averageCenter !== undefined) {\n clusterer.setAverageCenter(_averageCenter);\n }\n if (changes['batchSizeIE'] && _batchSizeIE !== undefined) {\n clusterer.setBatchSizeIE(_batchSizeIE);\n }\n if (changes['calculator'] && !!_calculator) {\n clusterer.setCalculator(_calculator);\n }\n if (changes['clusterClass'] && _clusterClass !== undefined) {\n clusterer.setClusterClass(_clusterClass);\n }\n if (changes['enableRetinaIcons'] && _enableRetinaIcons !== undefined) {\n clusterer.setEnableRetinaIcons(_enableRetinaIcons);\n }\n if (changes['gridSize'] && _gridSize !== undefined) {\n clusterer.setGridSize(_gridSize);\n }\n if (changes['ignoreHidden'] && _ignoreHidden !== undefined) {\n clusterer.setIgnoreHidden(_ignoreHidden);\n }\n if (changes['imageExtension'] && _imageExtension !== undefined) {\n clusterer.setImageExtension(_imageExtension);\n }\n if (changes['imagePath'] && _imagePath !== undefined) {\n clusterer.setImagePath(_imagePath);\n }\n if (changes['imageSizes'] && _imageSizes) {\n clusterer.setImageSizes(_imageSizes);\n }\n if (changes['maxZoom'] && _maxZoom !== undefined) {\n clusterer.setMaxZoom(_maxZoom);\n }\n if (changes['minimumClusterSize'] && _minimumClusterSize !== undefined) {\n clusterer.setMinimumClusterSize(_minimumClusterSize);\n }\n if (changes['styles'] && _styles) {\n clusterer.setStyles(_styles);\n }\n if (changes['title'] && _title !== undefined) {\n clusterer.setTitle(_title);\n }\n if (changes['zIndex'] && _zIndex !== undefined) {\n clusterer.setZIndex(_zIndex);\n }\n if (changes['zoomOnClick'] && _zoomOnClick !== undefined) {\n clusterer.setZoomOnClick(_zoomOnClick);\n }\n }\n }\n ngOnDestroy() {\n this._destroy.next();\n this._destroy.complete();\n this._eventManager.destroy();\n this.markerClusterer?.setMap(null);\n }\n fitMapToMarkers(padding) {\n this._assertInitialized();\n this.markerClusterer.fitMapToMarkers(padding);\n }\n getAverageCenter() {\n this._assertInitialized();\n return this.markerClusterer.getAverageCenter();\n }\n getBatchSizeIE() {\n this._assertInitialized();\n return this.markerClusterer.getBatchSizeIE();\n }\n getCalculator() {\n this._assertInitialized();\n return this.markerClusterer.getCalculator();\n }\n getClusterClass() {\n this._assertInitialized();\n return this.markerClusterer.getClusterClass();\n }\n getClusters() {\n this._assertInitialized();\n return this.markerClusterer.getClusters();\n }\n getEnableRetinaIcons() {\n this._assertInitialized();\n return this.markerClusterer.getEnableRetinaIcons();\n }\n getGridSize() {\n this._assertInitialized();\n return this.markerClusterer.getGridSize();\n }\n getIgnoreHidden() {\n this._assertInitialized();\n return this.markerClusterer.getIgnoreHidden();\n }\n getImageExtension() {\n this._assertInitialized();\n return this.markerClusterer.getImageExtension();\n }\n getImagePath() {\n this._assertInitialized();\n return this.markerClusterer.getImagePath();\n }\n getImageSizes() {\n this._assertInitialized();\n return this.markerClusterer.getImageSizes();\n }\n getMaxZoom() {\n this._assertInitialized();\n return this.markerClusterer.getMaxZoom();\n }\n getMinimumClusterSize() {\n this._assertInitialized();\n return this.markerClusterer.getMinimumClusterSize();\n }\n getStyles() {\n this._assertInitialized();\n return this.markerClusterer.getStyles();\n }\n getTitle() {\n this._assertInitialized();\n return this.markerClusterer.getTitle();\n }\n getTotalClusters() {\n this._assertInitialized();\n return this.markerClusterer.getTotalClusters();\n }\n getTotalMarkers() {\n this._assertInitialized();\n return this.markerClusterer.getTotalMarkers();\n }\n getZIndex() {\n this._assertInitialized();\n return this.markerClusterer.getZIndex();\n }\n getZoomOnClick() {\n this._assertInitialized();\n return this.markerClusterer.getZoomOnClick();\n }\n _combineOptions() {\n const options = this._options || DEFAULT_CLUSTERER_OPTIONS;\n return {\n ...options,\n ariaLabelFn: this.ariaLabelFn ?? options.ariaLabelFn,\n averageCenter: this._averageCenter ?? options.averageCenter,\n batchSize: this.batchSize ?? options.batchSize,\n batchSizeIE: this._batchSizeIE ?? options.batchSizeIE,\n calculator: this._calculator ?? options.calculator,\n clusterClass: this._clusterClass ?? options.clusterClass,\n enableRetinaIcons: this._enableRetinaIcons ?? options.enableRetinaIcons,\n gridSize: this._gridSize ?? options.gridSize,\n ignoreHidden: this._ignoreHidden ?? options.ignoreHidden,\n imageExtension: this._imageExtension ?? options.imageExtension,\n imagePath: this._imagePath ?? options.imagePath,\n imageSizes: this._imageSizes ?? options.imageSizes,\n maxZoom: this._maxZoom ?? options.maxZoom,\n minimumClusterSize: this._minimumClusterSize ?? options.minimumClusterSize,\n styles: this._styles ?? options.styles,\n title: this._title ?? options.title,\n zIndex: this._zIndex ?? options.zIndex,\n zoomOnClick: this._zoomOnClick ?? options.zoomOnClick,\n };\n }\n _watchForMarkerChanges() {\n this._assertInitialized();\n this._ngZone.runOutsideAngular(() => {\n this._getInternalMarkers(this._markers).then(markers => {\n const initialMarkers = [];\n for (const marker of markers) {\n this._currentMarkers.add(marker);\n initialMarkers.push(marker);\n }\n this.markerClusterer.addMarkers(initialMarkers);\n });\n });\n this._markers.changes\n .pipe(takeUntil(this._destroy))\n .subscribe((markerComponents) => {\n this._assertInitialized();\n this._ngZone.runOutsideAngular(() => {\n this._getInternalMarkers(markerComponents).then(markers => {\n const newMarkers = new Set(markers);\n const markersToAdd = [];\n const markersToRemove = [];\n for (const marker of Array.from(newMarkers)) {\n if (!this._currentMarkers.has(marker)) {\n this._currentMarkers.add(marker);\n markersToAdd.push(marker);\n }\n }\n for (const marker of Array.from(this._currentMarkers)) {\n if (!newMarkers.has(marker)) {\n markersToRemove.push(marker);\n }\n }\n this.markerClusterer.addMarkers(markersToAdd, true);\n this.markerClusterer.removeMarkers(markersToRemove, true);\n this.markerClusterer.repaint();\n for (const marker of markersToRemove) {\n this._currentMarkers.delete(marker);\n }\n });\n });\n });\n }\n _getInternalMarkers(markers) {\n return Promise.all(markers.map(markerComponent => markerComponent._resolveMarker()));\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.markerClusterer) {\n throw Error('Cannot interact with a MarkerClusterer before it has been initialized. ' +\n 'Please wait for the MarkerClusterer to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapMarkerClusterer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapMarkerClusterer, isStandalone: true, selector: \"map-marker-clusterer\", inputs: { ariaLabelFn: \"ariaLabelFn\", averageCenter: \"averageCenter\", batchSize: \"batchSize\", batchSizeIE: \"batchSizeIE\", calculator: \"calculator\", clusterClass: \"clusterClass\", enableRetinaIcons: \"enableRetinaIcons\", gridSize: \"gridSize\", ignoreHidden: \"ignoreHidden\", imageExtension: \"imageExtension\", imagePath: \"imagePath\", imageSizes: \"imageSizes\", maxZoom: \"maxZoom\", minimumClusterSize: \"minimumClusterSize\", styles: \"styles\", title: \"title\", zIndex: \"zIndex\", zoomOnClick: \"zoomOnClick\", options: \"options\" }, outputs: { clusteringbegin: \"clusteringbegin\", clusteringend: \"clusteringend\", clusterClick: \"clusterClick\", markerClustererInitialized: \"markerClustererInitialized\" }, queries: [{ propertyName: \"_markers\", predicate: MapMarker, descendants: true }], exportAs: [\"mapMarkerClusterer\"], usesOnChanges: true, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapMarkerClusterer, decorators: [{\n type: Component,\n args: [{\n selector: 'map-marker-clusterer',\n exportAs: 'mapMarkerClusterer',\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { ariaLabelFn: [{\n type: Input\n }], averageCenter: [{\n type: Input\n }], batchSize: [{\n type: Input\n }], batchSizeIE: [{\n type: Input\n }], calculator: [{\n type: Input\n }], clusterClass: [{\n type: Input\n }], enableRetinaIcons: [{\n type: Input\n }], gridSize: [{\n type: Input\n }], ignoreHidden: [{\n type: Input\n }], imageExtension: [{\n type: Input\n }], imagePath: [{\n type: Input\n }], imageSizes: [{\n type: Input\n }], maxZoom: [{\n type: Input\n }], minimumClusterSize: [{\n type: Input\n }], styles: [{\n type: Input\n }], title: [{\n type: Input\n }], zIndex: [{\n type: Input\n }], zoomOnClick: [{\n type: Input\n }], options: [{\n type: Input\n }], clusteringbegin: [{\n type: Output\n }], clusteringend: [{\n type: Output\n }], clusterClick: [{\n type: Output\n }], _markers: [{\n type: ContentChildren,\n args: [MapMarker, { descendants: true }]\n }], markerClustererInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Polygon via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon\n */\nclass MapPolygon {\n set options(options) {\n this._options.next(options || {});\n }\n set paths(paths) {\n this._paths.next(paths);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._options = new BehaviorSubject({});\n this._paths = new BehaviorSubject(undefined);\n this._destroyed = new Subject();\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.click\n */\n this.polygonClick = this._eventManager.getLazyEmitter('click');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.dblclick\n */\n this.polygonDblclick = this._eventManager.getLazyEmitter('dblclick');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.drag\n */\n this.polygonDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.dragend\n */\n this.polygonDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.dragstart\n */\n this.polygonDragstart = this._eventManager.getLazyEmitter('dragstart');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mousedown\n */\n this.polygonMousedown = this._eventManager.getLazyEmitter('mousedown');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mousemove\n */\n this.polygonMousemove = this._eventManager.getLazyEmitter('mousemove');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mouseout\n */\n this.polygonMouseout = this._eventManager.getLazyEmitter('mouseout');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mouseover\n */\n this.polygonMouseover = this._eventManager.getLazyEmitter('mouseover');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.mouseup\n */\n this.polygonMouseup = this._eventManager.getLazyEmitter('mouseup');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.rightclick\n */\n this.polygonRightclick = this._eventManager.getLazyEmitter('rightclick');\n /** Event emitted when the polygon is initialized. */\n this.polygonInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.Polygon && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.Polygon, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.Polygon, options);\n });\n });\n }\n });\n }\n }\n _initialize(map, polygonConstructor, options) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.polygon = new polygonConstructor(options);\n this._assertInitialized();\n this.polygon.setMap(map);\n this._eventManager.setTarget(this.polygon);\n this.polygonInitialized.emit(this.polygon);\n this._watchForOptionsChanges();\n this._watchForPathChanges();\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n this.polygon?.setMap(null);\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.getDraggable\n */\n getDraggable() {\n this._assertInitialized();\n return this.polygon.getDraggable();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.getEditable\n */\n getEditable() {\n this._assertInitialized();\n return this.polygon.getEditable();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.getPath\n */\n getPath() {\n this._assertInitialized();\n return this.polygon.getPath();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.getPaths\n */\n getPaths() {\n this._assertInitialized();\n return this.polygon.getPaths();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polygon.getVisible\n */\n getVisible() {\n this._assertInitialized();\n return this.polygon.getVisible();\n }\n _combineOptions() {\n return combineLatest([this._options, this._paths]).pipe(map(([options, paths]) => {\n const combinedOptions = {\n ...options,\n paths: paths || options.paths,\n };\n return combinedOptions;\n }));\n }\n _watchForOptionsChanges() {\n this._options.pipe(takeUntil(this._destroyed)).subscribe(options => {\n this._assertInitialized();\n this.polygon.setOptions(options);\n });\n }\n _watchForPathChanges() {\n this._paths.pipe(takeUntil(this._destroyed)).subscribe(paths => {\n if (paths) {\n this._assertInitialized();\n this.polygon.setPaths(paths);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.polygon) {\n throw Error('Cannot interact with a Google Map Polygon before it has been ' +\n 'initialized. Please wait for the Polygon to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapPolygon, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapPolygon, isStandalone: true, selector: \"map-polygon\", inputs: { options: \"options\", paths: \"paths\" }, outputs: { polygonClick: \"polygonClick\", polygonDblclick: \"polygonDblclick\", polygonDrag: \"polygonDrag\", polygonDragend: \"polygonDragend\", polygonDragstart: \"polygonDragstart\", polygonMousedown: \"polygonMousedown\", polygonMousemove: \"polygonMousemove\", polygonMouseout: \"polygonMouseout\", polygonMouseover: \"polygonMouseover\", polygonMouseup: \"polygonMouseup\", polygonRightclick: \"polygonRightclick\", polygonInitialized: \"polygonInitialized\" }, exportAs: [\"mapPolygon\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapPolygon, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-polygon',\n exportAs: 'mapPolygon',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { options: [{\n type: Input\n }], paths: [{\n type: Input\n }], polygonClick: [{\n type: Output\n }], polygonDblclick: [{\n type: Output\n }], polygonDrag: [{\n type: Output\n }], polygonDragend: [{\n type: Output\n }], polygonDragstart: [{\n type: Output\n }], polygonMousedown: [{\n type: Output\n }], polygonMousemove: [{\n type: Output\n }], polygonMouseout: [{\n type: Output\n }], polygonMouseover: [{\n type: Output\n }], polygonMouseup: [{\n type: Output\n }], polygonRightclick: [{\n type: Output\n }], polygonInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Polyline via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline\n */\nclass MapPolyline {\n set options(options) {\n this._options.next(options || {});\n }\n set path(path) {\n this._path.next(path);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._options = new BehaviorSubject({});\n this._path = new BehaviorSubject(undefined);\n this._destroyed = new Subject();\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.click\n */\n this.polylineClick = this._eventManager.getLazyEmitter('click');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.dblclick\n */\n this.polylineDblclick = this._eventManager.getLazyEmitter('dblclick');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.drag\n */\n this.polylineDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.dragend\n */\n this.polylineDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.dragstart\n */\n this.polylineDragstart = this._eventManager.getLazyEmitter('dragstart');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mousedown\n */\n this.polylineMousedown = this._eventManager.getLazyEmitter('mousedown');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mousemove\n */\n this.polylineMousemove = this._eventManager.getLazyEmitter('mousemove');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mouseout\n */\n this.polylineMouseout = this._eventManager.getLazyEmitter('mouseout');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mouseover\n */\n this.polylineMouseover = this._eventManager.getLazyEmitter('mouseover');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.mouseup\n */\n this.polylineMouseup = this._eventManager.getLazyEmitter('mouseup');\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.rightclick\n */\n this.polylineRightclick = this._eventManager.getLazyEmitter('rightclick');\n /** Event emitted when the polyline is initialized. */\n this.polylineInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.Polyline && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.Polyline, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.Polyline, options);\n });\n });\n }\n });\n }\n }\n _initialize(map, polylineConstructor, options) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.polyline = new polylineConstructor(options);\n this._assertInitialized();\n this.polyline.setMap(map);\n this._eventManager.setTarget(this.polyline);\n this.polylineInitialized.emit(this.polyline);\n this._watchForOptionsChanges();\n this._watchForPathChanges();\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n this.polyline?.setMap(null);\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.getDraggable\n */\n getDraggable() {\n this._assertInitialized();\n return this.polyline.getDraggable();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.getEditable\n */\n getEditable() {\n this._assertInitialized();\n return this.polyline.getEditable();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.getPath\n */\n getPath() {\n this._assertInitialized();\n return this.polyline.getPath();\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Polyline.getVisible\n */\n getVisible() {\n this._assertInitialized();\n return this.polyline.getVisible();\n }\n _combineOptions() {\n return combineLatest([this._options, this._path]).pipe(map(([options, path]) => {\n const combinedOptions = {\n ...options,\n path: path || options.path,\n };\n return combinedOptions;\n }));\n }\n _watchForOptionsChanges() {\n this._options.pipe(takeUntil(this._destroyed)).subscribe(options => {\n this._assertInitialized();\n this.polyline.setOptions(options);\n });\n }\n _watchForPathChanges() {\n this._path.pipe(takeUntil(this._destroyed)).subscribe(path => {\n if (path) {\n this._assertInitialized();\n this.polyline.setPath(path);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.polyline) {\n throw Error('Cannot interact with a Google Map Polyline before it has been ' +\n 'initialized. Please wait for the Polyline to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapPolyline, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapPolyline, isStandalone: true, selector: \"map-polyline\", inputs: { options: \"options\", path: \"path\" }, outputs: { polylineClick: \"polylineClick\", polylineDblclick: \"polylineDblclick\", polylineDrag: \"polylineDrag\", polylineDragend: \"polylineDragend\", polylineDragstart: \"polylineDragstart\", polylineMousedown: \"polylineMousedown\", polylineMousemove: \"polylineMousemove\", polylineMouseout: \"polylineMouseout\", polylineMouseover: \"polylineMouseover\", polylineMouseup: \"polylineMouseup\", polylineRightclick: \"polylineRightclick\", polylineInitialized: \"polylineInitialized\" }, exportAs: [\"mapPolyline\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapPolyline, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-polyline',\n exportAs: 'mapPolyline',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { options: [{\n type: Input\n }], path: [{\n type: Input\n }], polylineClick: [{\n type: Output\n }], polylineDblclick: [{\n type: Output\n }], polylineDrag: [{\n type: Output\n }], polylineDragend: [{\n type: Output\n }], polylineDragstart: [{\n type: Output\n }], polylineMousedown: [{\n type: Output\n }], polylineMousemove: [{\n type: Output\n }], polylineMouseout: [{\n type: Output\n }], polylineMouseover: [{\n type: Output\n }], polylineMouseup: [{\n type: Output\n }], polylineRightclick: [{\n type: Output\n }], polylineInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Rectangle via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle\n */\nclass MapRectangle {\n set options(options) {\n this._options.next(options || {});\n }\n set bounds(bounds) {\n this._bounds.next(bounds);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n this._options = new BehaviorSubject({});\n this._bounds = new BehaviorSubject(undefined);\n this._destroyed = new Subject();\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.boundsChanged\n */ this.boundsChanged = this._eventManager.getLazyEmitter('bounds_changed');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.click\n */\n this.rectangleClick = this._eventManager.getLazyEmitter('click');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.dblclick\n */\n this.rectangleDblclick = this._eventManager.getLazyEmitter('dblclick');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.drag\n */\n this.rectangleDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.dragend\n */\n this.rectangleDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.dragstart\n */\n this.rectangleDragstart = this._eventManager.getLazyEmitter('dragstart');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mousedown\n */\n this.rectangleMousedown = this._eventManager.getLazyEmitter('mousedown');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mousemove\n */\n this.rectangleMousemove = this._eventManager.getLazyEmitter('mousemove');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mouseout\n */\n this.rectangleMouseout = this._eventManager.getLazyEmitter('mouseout');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mouseover\n */\n this.rectangleMouseover = this._eventManager.getLazyEmitter('mouseover');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.mouseup\n */\n this.rectangleMouseup = this._eventManager.getLazyEmitter('mouseup');\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.rightclick\n */\n this.rectangleRightclick = this._eventManager.getLazyEmitter('rightclick');\n /** Event emitted when the rectangle is initialized. */\n this.rectangleInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.Rectangle && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.Rectangle, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.Rectangle, options);\n });\n });\n }\n });\n }\n }\n _initialize(map, rectangleConstructor, options) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.rectangle = new rectangleConstructor(options);\n this._assertInitialized();\n this.rectangle.setMap(map);\n this._eventManager.setTarget(this.rectangle);\n this.rectangleInitialized.emit(this.rectangle);\n this._watchForOptionsChanges();\n this._watchForBoundsChanges();\n });\n }\n ngOnDestroy() {\n this._eventManager.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n this.rectangle?.setMap(null);\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.getBounds\n */\n getBounds() {\n this._assertInitialized();\n return this.rectangle.getBounds();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.getDraggable\n */\n getDraggable() {\n this._assertInitialized();\n return this.rectangle.getDraggable();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.getEditable\n */\n getEditable() {\n this._assertInitialized();\n return this.rectangle.getEditable();\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/polygon#Rectangle.getVisible\n */\n getVisible() {\n this._assertInitialized();\n return this.rectangle.getVisible();\n }\n _combineOptions() {\n return combineLatest([this._options, this._bounds]).pipe(map(([options, bounds]) => {\n const combinedOptions = {\n ...options,\n bounds: bounds || options.bounds,\n };\n return combinedOptions;\n }));\n }\n _watchForOptionsChanges() {\n this._options.pipe(takeUntil(this._destroyed)).subscribe(options => {\n this._assertInitialized();\n this.rectangle.setOptions(options);\n });\n }\n _watchForBoundsChanges() {\n this._bounds.pipe(takeUntil(this._destroyed)).subscribe(bounds => {\n if (bounds) {\n this._assertInitialized();\n this.rectangle.setBounds(bounds);\n }\n });\n }\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.rectangle) {\n throw Error('Cannot interact with a Google Map Rectangle before it has been initialized. ' +\n 'Please wait for the Rectangle to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapRectangle, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapRectangle, isStandalone: true, selector: \"map-rectangle\", inputs: { options: \"options\", bounds: \"bounds\" }, outputs: { boundsChanged: \"boundsChanged\", rectangleClick: \"rectangleClick\", rectangleDblclick: \"rectangleDblclick\", rectangleDrag: \"rectangleDrag\", rectangleDragend: \"rectangleDragend\", rectangleDragstart: \"rectangleDragstart\", rectangleMousedown: \"rectangleMousedown\", rectangleMousemove: \"rectangleMousemove\", rectangleMouseout: \"rectangleMouseout\", rectangleMouseover: \"rectangleMouseover\", rectangleMouseup: \"rectangleMouseup\", rectangleRightclick: \"rectangleRightclick\", rectangleInitialized: \"rectangleInitialized\" }, exportAs: [\"mapRectangle\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapRectangle, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-rectangle',\n exportAs: 'mapRectangle',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { options: [{\n type: Input\n }], bounds: [{\n type: Input\n }], boundsChanged: [{\n type: Output\n }], rectangleClick: [{\n type: Output\n }], rectangleDblclick: [{\n type: Output\n }], rectangleDrag: [{\n type: Output\n }], rectangleDragend: [{\n type: Output\n }], rectangleDragstart: [{\n type: Output\n }], rectangleMousedown: [{\n type: Output\n }], rectangleMousemove: [{\n type: Output\n }], rectangleMouseout: [{\n type: Output\n }], rectangleMouseover: [{\n type: Output\n }], rectangleMouseup: [{\n type: Output\n }], rectangleRightclick: [{\n type: Output\n }], rectangleInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Traffic Layer via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/map#TrafficLayer\n */\nclass MapTrafficLayer {\n /**\n * Whether the traffic layer refreshes with updated information automatically.\n */\n set autoRefresh(autoRefresh) {\n this._autoRefresh.next(autoRefresh);\n }\n constructor(_map, _ngZone) {\n this._map = _map;\n this._ngZone = _ngZone;\n this._autoRefresh = new BehaviorSubject(true);\n this._destroyed = new Subject();\n /** Event emitted when the traffic layer is initialized. */\n this.trafficLayerInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n this._combineOptions()\n .pipe(take(1))\n .subscribe(options => {\n if (google.maps.TrafficLayer && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.TrafficLayer, options);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.TrafficLayer, options);\n });\n });\n }\n });\n }\n }\n _initialize(map, layerConstructor, options) {\n this._ngZone.runOutsideAngular(() => {\n this.trafficLayer = new layerConstructor(options);\n this._assertInitialized();\n this.trafficLayer.setMap(map);\n this.trafficLayerInitialized.emit(this.trafficLayer);\n this._watchForAutoRefreshChanges();\n });\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this.trafficLayer?.setMap(null);\n }\n _combineOptions() {\n return this._autoRefresh.pipe(map(autoRefresh => {\n const combinedOptions = { autoRefresh };\n return combinedOptions;\n }));\n }\n _watchForAutoRefreshChanges() {\n this._combineOptions()\n .pipe(takeUntil(this._destroyed))\n .subscribe(options => {\n this._assertInitialized();\n this.trafficLayer.setOptions(options);\n });\n }\n _assertInitialized() {\n if (!this.trafficLayer) {\n throw Error('Cannot interact with a Google Map Traffic Layer before it has been initialized. ' +\n 'Please wait for the Traffic Layer to load before trying to interact with it.');\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapTrafficLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapTrafficLayer, isStandalone: true, selector: \"map-traffic-layer\", inputs: { autoRefresh: \"autoRefresh\" }, outputs: { trafficLayerInitialized: \"trafficLayerInitialized\" }, exportAs: [\"mapTrafficLayer\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapTrafficLayer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-traffic-layer',\n exportAs: 'mapTrafficLayer',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { autoRefresh: [{\n type: Input\n }], trafficLayerInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular component that renders a Google Maps Transit Layer via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/map#TransitLayer\n */\nclass MapTransitLayer {\n constructor() {\n this._map = inject(GoogleMap);\n this._zone = inject(NgZone);\n /** Event emitted when the transit layer is initialized. */\n this.transitLayerInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._map._isBrowser) {\n if (google.maps.TransitLayer && this._map.googleMap) {\n this._initialize(this._map.googleMap, google.maps.TransitLayer);\n }\n else {\n this._zone.runOutsideAngular(() => {\n Promise.all([this._map._resolveMap(), google.maps.importLibrary('maps')]).then(([map, lib]) => {\n this._initialize(map, lib.TransitLayer);\n });\n });\n }\n }\n }\n _initialize(map, layerConstructor) {\n this._zone.runOutsideAngular(() => {\n this.transitLayer = new layerConstructor();\n this.transitLayerInitialized.emit(this.transitLayer);\n this._assertLayerInitialized();\n this.transitLayer.setMap(map);\n });\n }\n ngOnDestroy() {\n this.transitLayer?.setMap(null);\n }\n _assertLayerInitialized() {\n if (!this.transitLayer) {\n throw Error('Cannot interact with a Google Map Transit Layer before it has been initialized. ' +\n 'Please wait for the Transit Layer to load before trying to interact with it.');\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapTransitLayer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapTransitLayer, isStandalone: true, selector: \"map-transit-layer\", outputs: { transitLayerInitialized: \"transitLayerInitialized\" }, exportAs: [\"mapTransitLayer\"], ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapTransitLayer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-transit-layer',\n exportAs: 'mapTransitLayer',\n standalone: true,\n }]\n }], propDecorators: { transitLayerInitialized: [{\n type: Output\n }] } });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular directive that renders a Google Maps heatmap via the Google Maps JavaScript API.\n *\n * See: https://developers.google.com/maps/documentation/javascript/reference/visualization\n */\nclass MapHeatmapLayer {\n /**\n * Data shown on the heatmap.\n * See: https://developers.google.com/maps/documentation/javascript/reference/visualization\n */\n set data(data) {\n this._data = data;\n }\n /**\n * Options used to configure the heatmap. See:\n * developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions\n */\n set options(options) {\n this._options = options;\n }\n constructor(_googleMap, _ngZone) {\n this._googleMap = _googleMap;\n this._ngZone = _ngZone;\n /** Event emitted when the heatmap is initialized. */\n this.heatmapInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (this._googleMap._isBrowser) {\n if (!window.google?.maps?.visualization &&\n !window.google?.maps.importLibrary &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Namespace `google.maps.visualization` not found, cannot construct heatmap. ' +\n 'Please install the Google Maps JavaScript API with the \"visualization\" library: ' +\n 'https://developers.google.com/maps/documentation/javascript/visualization');\n }\n if (google.maps.visualization?.HeatmapLayer && this._googleMap.googleMap) {\n this._initialize(this._googleMap.googleMap, google.maps.visualization.HeatmapLayer);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([\n this._googleMap._resolveMap(),\n google.maps.importLibrary('visualization'),\n ]).then(([map, lib]) => {\n this._initialize(map, lib.HeatmapLayer);\n });\n });\n }\n }\n }\n _initialize(map, heatmapConstructor) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.heatmap = new heatmapConstructor(this._combineOptions());\n this._assertInitialized();\n this.heatmap.setMap(map);\n this.heatmapInitialized.emit(this.heatmap);\n });\n }\n ngOnChanges(changes) {\n const { _data, heatmap } = this;\n if (heatmap) {\n if (changes['options']) {\n heatmap.setOptions(this._combineOptions());\n }\n if (changes['data'] && _data !== undefined) {\n heatmap.setData(this._normalizeData(_data));\n }\n }\n }\n ngOnDestroy() {\n this.heatmap?.setMap(null);\n }\n /**\n * Gets the data that is currently shown on the heatmap.\n * See: developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayer\n */\n getData() {\n this._assertInitialized();\n return this.heatmap.getData();\n }\n /** Creates a combined options object using the passed-in options and the individual inputs. */\n _combineOptions() {\n const options = this._options || {};\n return {\n ...options,\n data: this._normalizeData(this._data || options.data || []),\n map: this._googleMap.googleMap,\n };\n }\n /**\n * Most Google Maps APIs support both `LatLng` objects and `LatLngLiteral`. The latter is more\n * convenient to write out, because the Google Maps API doesn't have to have been loaded in order\n * to construct them. The `HeatmapLayer` appears to be an exception that only allows a `LatLng`\n * object, or it throws a runtime error. Since it's more convenient and we expect that Angular\n * users will load the API asynchronously, we allow them to pass in a `LatLngLiteral` and we\n * convert it to a `LatLng` object before passing it off to Google Maps.\n */\n _normalizeData(data) {\n const result = [];\n data.forEach(item => {\n result.push(isLatLngLiteral(item) ? new google.maps.LatLng(item.lat, item.lng) : item);\n });\n return result;\n }\n /** Asserts that the heatmap object has been initialized. */\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.heatmap) {\n throw Error('Cannot interact with a Google Map HeatmapLayer before it has been ' +\n 'initialized. Please wait for the heatmap to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapHeatmapLayer, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapHeatmapLayer, isStandalone: true, selector: \"map-heatmap-layer\", inputs: { data: \"data\", options: \"options\" }, outputs: { heatmapInitialized: \"heatmapInitialized\" }, exportAs: [\"mapHeatmapLayer\"], usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapHeatmapLayer, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-heatmap-layer',\n exportAs: 'mapHeatmapLayer',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { data: [{\n type: Input\n }], options: [{\n type: Input\n }], heatmapInitialized: [{\n type: Output\n }] } });\n/** Asserts that an object is a `LatLngLiteral`. */\nfunction isLatLngLiteral(value) {\n return value && typeof value.lat === 'number' && typeof value.lng === 'number';\n}\n\n/// <reference types=\"google.maps\" />\n/**\n * Default options for the Google Maps marker component. Displays a marker\n * at the Googleplex.\n */\nconst DEFAULT_MARKER_OPTIONS = {\n position: { lat: 37.221995, lng: -122.184092 },\n};\n/**\n * Angular component that renders a Google Maps marker via the Google Maps JavaScript API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/marker\n */\nclass MapAdvancedMarker {\n /**\n * Rollover text. If provided, an accessibility text (e.g. for use with screen readers) will be added to the AdvancedMarkerElement with the provided value.\n * See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.title\n */\n set title(title) {\n this._title = title;\n }\n /**\n * Sets the AdvancedMarkerElement's position. An AdvancedMarkerElement may be constructed without a position, but will not be displayed until its position is provided - for example, by a user's actions or choices. An AdvancedMarkerElement's position can be provided by setting AdvancedMarkerElement.position if not provided at the construction.\n * Note: AdvancedMarkerElement with altitude is only supported on vector maps.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.position\n */\n set position(position) {\n this._position = position;\n }\n /**\n * The DOM Element backing the visual of an AdvancedMarkerElement.\n * Note: AdvancedMarkerElement does not clone the passed-in DOM element. Once the DOM element is passed to an AdvancedMarkerElement, passing the same DOM element to another AdvancedMarkerElement will move the DOM element and cause the previous AdvancedMarkerElement to look empty.\n * See: https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.content\n */\n set content(content) {\n this._content = content;\n }\n /**\n * If true, the AdvancedMarkerElement can be dragged.\n * Note: AdvancedMarkerElement with altitude is not draggable.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.gmpDraggable\n */\n set gmpDraggable(draggable) {\n this._draggable = draggable;\n }\n /**\n * Options for constructing an AdvancedMarkerElement.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions\n */\n set options(options) {\n this._options = options;\n }\n /**\n * AdvancedMarkerElements on the map are prioritized by zIndex, with higher values indicating higher display.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.zIndex\n */\n set zIndex(zIndex) {\n this._zIndex = zIndex;\n }\n constructor(_googleMap, _ngZone) {\n this._googleMap = _googleMap;\n this._ngZone = _ngZone;\n this._eventManager = new MapEventManager(inject(NgZone));\n /**\n * This event is fired when the AdvancedMarkerElement element is clicked.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.click\n */\n this.mapClick = this._eventManager.getLazyEmitter('click');\n /**\n * This event is repeatedly fired while the user drags the AdvancedMarkerElement.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.drag\n */\n this.mapDrag = this._eventManager.getLazyEmitter('drag');\n /**\n * This event is fired when the user stops dragging the AdvancedMarkerElement.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.dragend\n */\n this.mapDragend = this._eventManager.getLazyEmitter('dragend');\n /**\n * This event is fired when the user starts dragging the AdvancedMarkerElement.\n * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.dragstart\n */\n this.mapDragstart = this._eventManager.getLazyEmitter('dragstart');\n /** Event emitted when the marker is initialized. */\n this.markerInitialized = new EventEmitter();\n }\n ngOnInit() {\n if (!this._googleMap._isBrowser) {\n return;\n }\n if (google.maps.marker?.AdvancedMarkerElement && this._googleMap.googleMap) {\n this._initialize(this._googleMap.googleMap, google.maps.marker.AdvancedMarkerElement);\n }\n else {\n this._ngZone.runOutsideAngular(() => {\n Promise.all([this._googleMap._resolveMap(), google.maps.importLibrary('marker')]).then(([map, lib]) => {\n this._initialize(map, lib.AdvancedMarkerElement);\n });\n });\n }\n }\n _initialize(map, advancedMarkerConstructor) {\n // Create the object outside the zone so its events don't trigger change detection.\n // We'll bring it back in inside the `MapEventManager` only for the events that the\n // user has subscribed to.\n this._ngZone.runOutsideAngular(() => {\n this.advancedMarker = new advancedMarkerConstructor(this._combineOptions());\n this._assertInitialized();\n this.advancedMarker.map = map;\n this._eventManager.setTarget(this.advancedMarker);\n this.markerInitialized.next(this.advancedMarker);\n });\n }\n ngOnChanges(changes) {\n const { advancedMarker, _content, _position, _title, _draggable, _zIndex } = this;\n if (advancedMarker) {\n if (changes['title']) {\n advancedMarker.title = _title;\n }\n if (changes['content']) {\n advancedMarker.content = _content;\n }\n if (changes['gmpDraggable']) {\n advancedMarker.gmpDraggable = _draggable;\n }\n if (changes['content']) {\n advancedMarker.content = _content;\n }\n if (changes['position']) {\n advancedMarker.position = _position;\n }\n if (changes['zIndex']) {\n advancedMarker.zIndex = _zIndex;\n }\n }\n }\n ngOnDestroy() {\n this.markerInitialized.complete();\n this._eventManager.destroy();\n if (this.advancedMarker) {\n this.advancedMarker.map = null;\n }\n }\n getAnchor() {\n this._assertInitialized();\n return this.advancedMarker;\n }\n /** Creates a combined options object using the passed-in options and the individual inputs. */\n _combineOptions() {\n const options = this._options || DEFAULT_MARKER_OPTIONS;\n return {\n ...options,\n title: this._title || options.title,\n position: this._position || options.position,\n content: this._content || options.content,\n zIndex: this._zIndex ?? options.zIndex,\n gmpDraggable: this._draggable ?? options.gmpDraggable,\n map: this._googleMap.googleMap,\n };\n }\n /** Asserts that the map has been initialized. */\n _assertInitialized() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this.advancedMarker) {\n throw Error('Cannot interact with a Google Map Marker before it has been ' +\n 'initialized. Please wait for the Marker to load before trying to interact with it.');\n }\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapAdvancedMarker, deps: [{ token: GoogleMap }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.2.0\", type: MapAdvancedMarker, isStandalone: true, selector: \"map-advanced-marker\", inputs: { title: \"title\", position: \"position\", content: \"content\", gmpDraggable: \"gmpDraggable\", options: \"options\", zIndex: \"zIndex\" }, outputs: { mapClick: \"mapClick\", mapDrag: \"mapDrag\", mapDragend: \"mapDragend\", mapDragstart: \"mapDragstart\", markerInitialized: \"markerInitialized\" }, exportAs: [\"mapAdvancedMarker\"], usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapAdvancedMarker, decorators: [{\n type: Directive,\n args: [{\n selector: 'map-advanced-marker',\n exportAs: 'mapAdvancedMarker',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: GoogleMap }, { type: i0.NgZone }], propDecorators: { title: [{\n type: Input\n }], position: [{\n type: Input\n }], content: [{\n type: Input\n }], gmpDraggable: [{\n type: Input\n }], options: [{\n type: Input\n }], zIndex: [{\n type: Input\n }], mapClick: [{\n type: Output\n }], mapDrag: [{\n type: Output\n }], mapDragend: [{\n type: Output\n }], mapDragstart: [{\n type: Output\n }], markerInitialized: [{\n type: Output\n }] } });\n\nconst COMPONENTS = [\n GoogleMap,\n MapBaseLayer,\n MapBicyclingLayer,\n MapCircle,\n MapDirectionsRenderer,\n MapGroundOverlay,\n MapHeatmapLayer,\n MapInfoWindow,\n MapKmlLayer,\n MapMarker,\n MapAdvancedMarker,\n MapMarkerClusterer,\n MapPolygon,\n MapPolyline,\n MapRectangle,\n MapTrafficLayer,\n MapTransitLayer,\n];\nclass GoogleMapsModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: GoogleMapsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.2.0\", ngImport: i0, type: GoogleMapsModule, imports: [GoogleMap,\n MapBaseLayer,\n MapBicyclingLayer,\n MapCircle,\n MapDirectionsRenderer,\n MapGroundOverlay,\n MapHeatmapLayer,\n MapInfoWindow,\n MapKmlLayer,\n MapMarker,\n MapAdvancedMarker,\n MapMarkerClusterer,\n MapPolygon,\n MapPolyline,\n MapRectangle,\n MapTrafficLayer,\n MapTransitLayer], exports: [GoogleMap,\n MapBaseLayer,\n MapBicyclingLayer,\n MapCircle,\n MapDirectionsRenderer,\n MapGroundOverlay,\n MapHeatmapLayer,\n MapInfoWindow,\n MapKmlLayer,\n MapMarker,\n MapAdvancedMarker,\n MapMarkerClusterer,\n MapPolygon,\n MapPolyline,\n MapRectangle,\n MapTrafficLayer,\n MapTransitLayer] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: GoogleMapsModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: GoogleMapsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: COMPONENTS,\n exports: COMPONENTS,\n }]\n }] });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular service that wraps the Google Maps DirectionsService from the Google Maps JavaScript\n * API.\n *\n * See developers.google.com/maps/documentation/javascript/reference/directions#DirectionsService\n */\nclass MapDirectionsService {\n constructor(_ngZone) {\n this._ngZone = _ngZone;\n }\n /**\n * See\n * developers.google.com/maps/documentation/javascript/reference/directions\n * #DirectionsService.route\n */\n route(request) {\n return new Observable(observer => {\n this._getService().then(service => {\n service.route(request, (result, status) => {\n this._ngZone.run(() => {\n observer.next({ result: result || undefined, status });\n observer.complete();\n });\n });\n });\n });\n }\n _getService() {\n if (!this._directionsService) {\n if (google.maps.DirectionsService) {\n this._directionsService = new google.maps.DirectionsService();\n }\n else {\n return google.maps.importLibrary('routes').then(lib => {\n this._directionsService = new lib.DirectionsService();\n return this._directionsService;\n });\n }\n }\n return Promise.resolve(this._directionsService);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapDirectionsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapDirectionsService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapDirectionsService, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i0.NgZone }] });\n\n/// <reference types=\"google.maps\" />\n/**\n * Angular service that wraps the Google Maps Geocoder from the Google Maps JavaScript API.\n * See developers.google.com/maps/documentation/javascript/reference/geocoder#Geocoder\n */\nclass MapGeocoder {\n constructor(_ngZone) {\n this._ngZone = _ngZone;\n }\n /**\n * See developers.google.com/maps/documentation/javascript/reference/geocoder#Geocoder.geocode\n */\n geocode(request) {\n return new Observable(observer => {\n this._getGeocoder().then(geocoder => {\n geocoder.geocode(request, (results, status) => {\n this._ngZone.run(() => {\n observer.next({ results: results || [], status });\n observer.complete();\n });\n });\n });\n });\n }\n _getGeocoder() {\n if (!this._geocoder) {\n if (google.maps.Geocoder) {\n this._geocoder = new google.maps.Geocoder();\n }\n else {\n return google.maps.importLibrary('geocoding').then(lib => {\n this._geocoder = new lib.Geocoder();\n return this._geocoder;\n });\n }\n }\n return Promise.resolve(this._geocoder);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapGeocoder, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapGeocoder, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.2.0\", ngImport: i0, type: MapGeocoder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i0.NgZone }] });\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { GoogleMap, GoogleMapsModule, MapAdvancedMarker, MapBaseLayer, MapBicyclingLayer, MapCircle, MapDirectionsRenderer, MapDirectionsService, MapEventManager, MapGeocoder, MapGroundOverlay, MapHeatmapLayer, MapInfoWindow, MapKmlLayer, MapMarker, MapMarkerClusterer, MapPolygon, MapPolyline, MapRectangle, MapTrafficLayer, MapTransitLayer };\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵglobal, ɵRuntimeError, Injectable, InjectionToken, Inject, APP_ID, CSP_NONCE, PLATFORM_ID, Optional, ViewEncapsulation, RendererStyleFlags2, ɵinternalCreateApplication, ErrorHandler, ɵsetDocument, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵTESTABILITY_GETTER, ɵTESTABILITY, Testability, NgZone, TestabilityRegistry, ɵINJECTOR_SCOPE, RendererFactory2, ApplicationModule, NgModule, SkipSelf, ApplicationRef, ɵConsole, forwardRef, ɵXSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, ENVIRONMENT_INITIALIZER, inject, ɵformatRuntimeError, makeEnvironmentProviders, ɵwithDomHydration, Version, makeStateKey as makeStateKey$1, TransferState as TransferState$1 } from '@angular/core';\nimport { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, isPlatformServer, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';\nexport { ɵgetDOM } from '@angular/common';\nimport { ɵwithHttpTransferCache } from '@angular/common/http';\n\n/**\n * Provides DOM operations in any browser environment.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass GenericBrowserDomAdapter extends ɵDomAdapter {\n constructor() {\n super(...arguments);\n this.supportsDOMEvents = true;\n }\n}\n\n/**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\n/* tslint:disable:requireParameterType no-console */\nclass BrowserDomAdapter extends GenericBrowserDomAdapter {\n static makeCurrent() {\n ɵsetRootDomAdapter(new BrowserDomAdapter());\n }\n onAndCancel(el, evt, listener) {\n el.addEventListener(evt, listener);\n return () => {\n el.removeEventListener(evt, listener);\n };\n }\n dispatchEvent(el, evt) {\n el.dispatchEvent(evt);\n }\n remove(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n }\n createElement(tagName, doc) {\n doc = doc || this.getDefaultDocument();\n return doc.createElement(tagName);\n }\n createHtmlDocument() {\n return document.implementation.createHTMLDocument('fakeTitle');\n }\n getDefaultDocument() {\n return document;\n }\n isElementNode(node) {\n return node.nodeType === Node.ELEMENT_NODE;\n }\n isShadowRoot(node) {\n return node instanceof DocumentFragment;\n }\n /** @deprecated No longer being used in Ivy code. To be removed in version 14. */\n getGlobalEventTarget(doc, target) {\n if (target === 'window') {\n return window;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n }\n getBaseHref(doc) {\n const href = getBaseElementHref();\n return href == null ? null : relativePath(href);\n }\n resetBaseElement() {\n baseElement = null;\n }\n getUserAgent() {\n return window.navigator.userAgent;\n }\n getCookie(name) {\n return ɵparseCookieValue(document.cookie, name);\n }\n}\nlet baseElement = null;\nfunction getBaseElementHref() {\n baseElement = baseElement || document.querySelector('base');\n return baseElement ? baseElement.getAttribute('href') : null;\n}\nfunction relativePath(url) {\n // The base URL doesn't really matter, we just need it so relative paths have something\n // to resolve against. In the browser `HTMLBaseElement.href` is always absolute.\n return new URL(url, document.baseURI).pathname;\n}\n\nclass BrowserGetTestability {\n addToWindow(registry) {\n ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {\n const testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new ɵRuntimeError(5103 /* RuntimeErrorCode.TESTABILITY_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Could not find testability for element.');\n }\n return testability;\n };\n ɵglobal['getAllAngularTestabilities'] = () => registry.getAllTestabilities();\n ɵglobal['getAllAngularRootElements'] = () => registry.getAllRootElements();\n const whenAllStable = (callback) => {\n const testabilities = ɵglobal['getAllAngularTestabilities']();\n let count = testabilities.length;\n const decrement = function () {\n count--;\n if (count == 0) {\n callback();\n }\n };\n testabilities.forEach((testability) => {\n testability.whenStable(decrement);\n });\n };\n if (!ɵglobal['frameworkStabilizers']) {\n ɵglobal['frameworkStabilizers'] = [];\n }\n ɵglobal['frameworkStabilizers'].push(whenAllStable);\n }\n findTestabilityInTree(registry, elem, findInAncestors) {\n if (elem == null) {\n return null;\n }\n const t = registry.getTestability(elem);\n if (t != null) {\n return t;\n }\n else if (!findInAncestors) {\n return null;\n }\n if (ɵgetDOM().isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, elem.host, true);\n }\n return this.findTestabilityInTree(registry, elem.parentElement, true);\n }\n}\n\n/**\n * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.\n */\nclass BrowserXhr {\n build() {\n return new XMLHttpRequest();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserXhr }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserXhr, decorators: [{\n type: Injectable\n }] });\n\n/**\n * The injection token for plugins of the `EventManager` service.\n *\n * @publicApi\n */\nconst EVENT_MANAGER_PLUGINS = new InjectionToken(ngDevMode ? 'EventManagerPlugins' : '');\n/**\n * An injectable service that provides event management for Angular\n * through a browser plug-in.\n *\n * @publicApi\n */\nclass EventManager {\n /**\n * Initializes an instance of the event-manager service.\n */\n constructor(plugins, _zone) {\n this._zone = _zone;\n this._eventNameToPlugin = new Map();\n plugins.forEach((plugin) => {\n plugin.manager = this;\n });\n this._plugins = plugins.slice().reverse();\n }\n /**\n * Registers a handler for a specific element and event.\n *\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns A callback function that can be used to remove the handler.\n */\n addEventListener(element, eventName, handler) {\n const plugin = this._findPluginFor(eventName);\n return plugin.addEventListener(element, eventName, handler);\n }\n /**\n * Retrieves the compilation zone in which event listeners are registered.\n */\n getZone() {\n return this._zone;\n }\n /** @internal */\n _findPluginFor(eventName) {\n let plugin = this._eventNameToPlugin.get(eventName);\n if (plugin) {\n return plugin;\n }\n const plugins = this._plugins;\n plugin = plugins.find((plugin) => plugin.supports(eventName));\n if (!plugin) {\n throw new ɵRuntimeError(5101 /* RuntimeErrorCode.NO_PLUGIN_FOR_EVENT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `No event manager plugin found for event ${eventName}`);\n }\n this._eventNameToPlugin.set(eventName, plugin);\n return plugin;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EventManager }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EventManager, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [EVENT_MANAGER_PLUGINS]\n }] }, { type: i0.NgZone }] });\n/**\n * The plugin definition for the `EventManager` class\n *\n * It can be used as a base class to create custom manager plugins, i.e. you can create your own\n * class that extends the `EventManagerPlugin` one.\n *\n * @publicApi\n */\nclass EventManagerPlugin {\n // TODO: remove (has some usage in G3)\n constructor(_doc) {\n this._doc = _doc;\n }\n}\n\n/** The style elements attribute name used to set value of `APP_ID` token. */\nconst APP_ID_ATTRIBUTE_NAME = 'ng-app-id';\nclass SharedStylesHost {\n constructor(doc, appId, nonce, platformId = {}) {\n this.doc = doc;\n this.appId = appId;\n this.nonce = nonce;\n this.platformId = platformId;\n // Maps all registered host nodes to a list of style nodes that have been added to the host node.\n this.styleRef = new Map();\n this.hostNodes = new Set();\n this.styleNodesInDOM = this.collectServerRenderedStyles();\n this.platformIsServer = isPlatformServer(platformId);\n this.resetHostNodes();\n }\n addStyles(styles) {\n for (const style of styles) {\n const usageCount = this.changeUsageCount(style, 1);\n if (usageCount === 1) {\n this.onStyleAdded(style);\n }\n }\n }\n removeStyles(styles) {\n for (const style of styles) {\n const usageCount = this.changeUsageCount(style, -1);\n if (usageCount <= 0) {\n this.onStyleRemoved(style);\n }\n }\n }\n ngOnDestroy() {\n const styleNodesInDOM = this.styleNodesInDOM;\n if (styleNodesInDOM) {\n styleNodesInDOM.forEach((node) => node.remove());\n styleNodesInDOM.clear();\n }\n for (const style of this.getAllStyles()) {\n this.onStyleRemoved(style);\n }\n this.resetHostNodes();\n }\n addHost(hostNode) {\n this.hostNodes.add(hostNode);\n for (const style of this.getAllStyles()) {\n this.addStyleToHost(hostNode, style);\n }\n }\n removeHost(hostNode) {\n this.hostNodes.delete(hostNode);\n }\n getAllStyles() {\n return this.styleRef.keys();\n }\n onStyleAdded(style) {\n for (const host of this.hostNodes) {\n this.addStyleToHost(host, style);\n }\n }\n onStyleRemoved(style) {\n const styleRef = this.styleRef;\n styleRef.get(style)?.elements?.forEach((node) => node.remove());\n styleRef.delete(style);\n }\n collectServerRenderedStyles() {\n const styles = this.doc.head?.querySelectorAll(`style[${APP_ID_ATTRIBUTE_NAME}=\"${this.appId}\"]`);\n if (styles?.length) {\n const styleMap = new Map();\n styles.forEach((style) => {\n if (style.textContent != null) {\n styleMap.set(style.textContent, style);\n }\n });\n return styleMap;\n }\n return null;\n }\n changeUsageCount(style, delta) {\n const map = this.styleRef;\n if (map.has(style)) {\n const styleRefValue = map.get(style);\n styleRefValue.usage += delta;\n return styleRefValue.usage;\n }\n map.set(style, { usage: delta, elements: [] });\n return delta;\n }\n getStyleElement(host, style) {\n const styleNodesInDOM = this.styleNodesInDOM;\n const styleEl = styleNodesInDOM?.get(style);\n if (styleEl?.parentNode === host) {\n // `styleNodesInDOM` cannot be undefined due to the above `styleNodesInDOM?.get`.\n styleNodesInDOM.delete(style);\n styleEl.removeAttribute(APP_ID_ATTRIBUTE_NAME);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // This attribute is solely used for debugging purposes.\n styleEl.setAttribute('ng-style-reused', '');\n }\n return styleEl;\n }\n else {\n const styleEl = this.doc.createElement('style');\n if (this.nonce) {\n styleEl.setAttribute('nonce', this.nonce);\n }\n styleEl.textContent = style;\n if (this.platformIsServer) {\n styleEl.setAttribute(APP_ID_ATTRIBUTE_NAME, this.appId);\n }\n host.appendChild(styleEl);\n return styleEl;\n }\n }\n addStyleToHost(host, style) {\n const styleEl = this.getStyleElement(host, style);\n const styleRef = this.styleRef;\n const styleElRef = styleRef.get(style)?.elements;\n if (styleElRef) {\n styleElRef.push(styleEl);\n }\n else {\n styleRef.set(style, { elements: [styleEl], usage: 1 });\n }\n }\n resetHostNodes() {\n const hostNodes = this.hostNodes;\n hostNodes.clear();\n // Re-add the head element back since this is the default host.\n hostNodes.add(this.doc.head);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SharedStylesHost }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SharedStylesHost, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [APP_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [CSP_NONCE]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }] });\n\nconst NAMESPACE_URIS = {\n 'svg': 'http://www.w3.org/2000/svg',\n 'xhtml': 'http://www.w3.org/1999/xhtml',\n 'xlink': 'http://www.w3.org/1999/xlink',\n 'xml': 'http://www.w3.org/XML/1998/namespace',\n 'xmlns': 'http://www.w3.org/2000/xmlns/',\n 'math': 'http://www.w3.org/1998/MathML/',\n};\nconst COMPONENT_REGEX = /%COMP%/g;\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\n/**\n * The default value for the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token.\n */\nconst REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = true;\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates whether styles\n * of destroyed components should be removed from DOM.\n *\n * By default, the value is set to `true`.\n * @publicApi\n */\nconst REMOVE_STYLES_ON_COMPONENT_DESTROY = new InjectionToken(ngDevMode ? 'RemoveStylesOnCompDestroy' : '', {\n providedIn: 'root',\n factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT,\n});\nfunction shimContentAttribute(componentShortId) {\n return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimHostAttribute(componentShortId) {\n return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimStylesContent(compId, styles) {\n return styles.map(s => s.replace(COMPONENT_REGEX, compId));\n}\nclass DomRendererFactory2 {\n constructor(eventManager, sharedStylesHost, appId, removeStylesOnCompDestroy, doc, platformId, ngZone, nonce = null) {\n this.eventManager = eventManager;\n this.sharedStylesHost = sharedStylesHost;\n this.appId = appId;\n this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;\n this.doc = doc;\n this.platformId = platformId;\n this.ngZone = ngZone;\n this.nonce = nonce;\n this.rendererByCompId = new Map();\n this.platformIsServer = isPlatformServer(platformId);\n this.defaultRenderer =\n new DefaultDomRenderer2(eventManager, doc, ngZone, this.platformIsServer);\n }\n createRenderer(element, type) {\n if (!element || !type) {\n return this.defaultRenderer;\n }\n if (this.platformIsServer && type.encapsulation === ViewEncapsulation.ShadowDom) {\n // Domino does not support shadow DOM.\n type = { ...type, encapsulation: ViewEncapsulation.Emulated };\n }\n const renderer = this.getOrCreateRenderer(element, type);\n // Renderers have different logic due to different encapsulation behaviours.\n // Ex: for emulated, an attribute is added to the element.\n if (renderer instanceof EmulatedEncapsulationDomRenderer2) {\n renderer.applyToHost(element);\n }\n else if (renderer instanceof NoneEncapsulationDomRenderer) {\n renderer.applyStyles();\n }\n return renderer;\n }\n getOrCreateRenderer(element, type) {\n const rendererByCompId = this.rendererByCompId;\n let renderer = rendererByCompId.get(type.id);\n if (!renderer) {\n const doc = this.doc;\n const ngZone = this.ngZone;\n const eventManager = this.eventManager;\n const sharedStylesHost = this.sharedStylesHost;\n const removeStylesOnCompDestroy = this.removeStylesOnCompDestroy;\n const platformIsServer = this.platformIsServer;\n switch (type.encapsulation) {\n case ViewEncapsulation.Emulated:\n renderer = new EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer);\n break;\n case ViewEncapsulation.ShadowDom:\n return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type, doc, ngZone, this.nonce, platformIsServer);\n default:\n renderer = new NoneEncapsulationDomRenderer(eventManager, sharedStylesHost, type, removeStylesOnCompDestroy, doc, ngZone, platformIsServer);\n break;\n }\n rendererByCompId.set(type.id, renderer);\n }\n return renderer;\n }\n ngOnDestroy() {\n this.rendererByCompId.clear();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomRendererFactory2 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomRendererFactory2, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{\n type: Inject,\n args: [APP_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [REMOVE_STYLES_ON_COMPONENT_DESTROY]\n }] }, { type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [CSP_NONCE]\n }] }] });\nclass DefaultDomRenderer2 {\n constructor(eventManager, doc, ngZone, platformIsServer) {\n this.eventManager = eventManager;\n this.doc = doc;\n this.ngZone = ngZone;\n this.platformIsServer = platformIsServer;\n this.data = Object.create(null);\n /**\n * By default this renderer throws when encountering synthetic properties\n * This can be disabled for example by the AsyncAnimationRendererFactory\n */\n this.throwOnSyntheticProps = true;\n this.destroyNode = null;\n }\n destroy() { }\n createElement(name, namespace) {\n if (namespace) {\n // TODO: `|| namespace` was added in\n // https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to\n // support how Ivy passed around the namespace URI rather than short name at the time. It did\n // not, however extend the support to other parts of the system (setAttribute, setAttribute,\n // and the ServerRenderer). We should decide what exactly the semantics for dealing with\n // namespaces should be and make it consistent.\n // Related issues:\n // https://github.com/angular/angular/issues/44028\n // https://github.com/angular/angular/issues/44883\n return this.doc.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);\n }\n return this.doc.createElement(name);\n }\n createComment(value) {\n return this.doc.createComment(value);\n }\n createText(value) {\n return this.doc.createTextNode(value);\n }\n appendChild(parent, newChild) {\n const targetParent = isTemplateNode(parent) ? parent.content : parent;\n targetParent.appendChild(newChild);\n }\n insertBefore(parent, newChild, refChild) {\n if (parent) {\n const targetParent = isTemplateNode(parent) ? parent.content : parent;\n targetParent.insertBefore(newChild, refChild);\n }\n }\n removeChild(parent, oldChild) {\n if (parent) {\n parent.removeChild(oldChild);\n }\n }\n selectRootElement(selectorOrNode, preserveContent) {\n let el = typeof selectorOrNode === 'string' ? this.doc.querySelector(selectorOrNode) :\n selectorOrNode;\n if (!el) {\n throw new ɵRuntimeError(-5104 /* RuntimeErrorCode.ROOT_NODE_NOT_FOUND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `The selector \"${selectorOrNode}\" did not match any elements`);\n }\n if (!preserveContent) {\n el.textContent = '';\n }\n return el;\n }\n parentNode(node) {\n return node.parentNode;\n }\n nextSibling(node) {\n return node.nextSibling;\n }\n setAttribute(el, name, value, namespace) {\n if (namespace) {\n name = namespace + ':' + name;\n const namespaceUri = NAMESPACE_URIS[namespace];\n if (namespaceUri) {\n el.setAttributeNS(namespaceUri, name, value);\n }\n else {\n el.setAttribute(name, value);\n }\n }\n else {\n el.setAttribute(name, value);\n }\n }\n removeAttribute(el, name, namespace) {\n if (namespace) {\n const namespaceUri = NAMESPACE_URIS[namespace];\n if (namespaceUri) {\n el.removeAttributeNS(namespaceUri, name);\n }\n else {\n el.removeAttribute(`${namespace}:${name}`);\n }\n }\n else {\n el.removeAttribute(name);\n }\n }\n addClass(el, name) {\n el.classList.add(name);\n }\n removeClass(el, name) {\n el.classList.remove(name);\n }\n setStyle(el, style, value, flags) {\n if (flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {\n el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');\n }\n else {\n el.style[style] = value;\n }\n }\n removeStyle(el, style, flags) {\n if (flags & RendererStyleFlags2.DashCase) {\n // removeProperty has no effect when used on camelCased properties.\n el.style.removeProperty(style);\n }\n else {\n el.style[style] = '';\n }\n }\n setProperty(el, name, value) {\n if (el == null) {\n return;\n }\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.throwOnSyntheticProps &&\n checkNoSyntheticProp(name, 'property');\n el[name] = value;\n }\n setValue(node, value) {\n node.nodeValue = value;\n }\n listen(target, event, callback) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && this.throwOnSyntheticProps &&\n checkNoSyntheticProp(event, 'listener');\n if (typeof target === 'string') {\n target = ɵgetDOM().getGlobalEventTarget(this.doc, target);\n if (!target) {\n throw new Error(`Unsupported event target ${target} for event ${event}`);\n }\n }\n return this.eventManager.addEventListener(target, event, this.decoratePreventDefault(callback));\n }\n decoratePreventDefault(eventHandler) {\n // `DebugNode.triggerEventHandler` needs to know if the listener was created with\n // decoratePreventDefault or is a listener added outside the Angular context so it can handle\n // the two differently. In the first case, the special '__ngUnwrap__' token is passed to the\n // unwrap the listener (see below).\n return (event) => {\n // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The\n // debug_node can inspect the listener toString contents for the existence of this special\n // token. Because the token is a string literal, it is ensured to not be modified by compiled\n // code.\n if (event === '__ngUnwrap__') {\n return eventHandler;\n }\n // Run the event handler inside the ngZone because event handlers are not patched\n // by Zone on the server. This is required only for tests.\n const allowDefaultBehavior = this.platformIsServer ?\n this.ngZone.runGuarded(() => eventHandler(event)) :\n eventHandler(event);\n if (allowDefaultBehavior === false) {\n event.preventDefault();\n }\n return undefined;\n };\n }\n}\nconst AT_CHARCODE = (() => '@'.charCodeAt(0))();\nfunction checkNoSyntheticProp(name, nameKind) {\n if (name.charCodeAt(0) === AT_CHARCODE) {\n throw new ɵRuntimeError(5105 /* RuntimeErrorCode.UNEXPECTED_SYNTHETIC_PROPERTY */, `Unexpected synthetic ${nameKind} ${name} found. Please make sure that:\n - Either \\`BrowserAnimationsModule\\` or \\`NoopAnimationsModule\\` are imported in your application.\n - There is corresponding configuration for the animation named \\`${name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.io/api/core/Component#animations).`);\n }\n}\nfunction isTemplateNode(node) {\n return node.tagName === 'TEMPLATE' && node.content !== undefined;\n}\nclass ShadowDomRenderer extends DefaultDomRenderer2 {\n constructor(eventManager, sharedStylesHost, hostEl, component, doc, ngZone, nonce, platformIsServer) {\n super(eventManager, doc, ngZone, platformIsServer);\n this.sharedStylesHost = sharedStylesHost;\n this.hostEl = hostEl;\n this.shadowRoot = hostEl.attachShadow({ mode: 'open' });\n this.sharedStylesHost.addHost(this.shadowRoot);\n const styles = shimStylesContent(component.id, component.styles);\n for (const style of styles) {\n const styleEl = document.createElement('style');\n if (nonce) {\n styleEl.setAttribute('nonce', nonce);\n }\n styleEl.textContent = style;\n this.shadowRoot.appendChild(styleEl);\n }\n }\n nodeOrShadowRoot(node) {\n return node === this.hostEl ? this.shadowRoot : node;\n }\n appendChild(parent, newChild) {\n return super.appendChild(this.nodeOrShadowRoot(parent), newChild);\n }\n insertBefore(parent, newChild, refChild) {\n return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);\n }\n removeChild(parent, oldChild) {\n return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);\n }\n parentNode(node) {\n return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));\n }\n destroy() {\n this.sharedStylesHost.removeHost(this.shadowRoot);\n }\n}\nclass NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {\n constructor(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId) {\n super(eventManager, doc, ngZone, platformIsServer);\n this.sharedStylesHost = sharedStylesHost;\n this.removeStylesOnCompDestroy = removeStylesOnCompDestroy;\n this.styles = compId ? shimStylesContent(compId, component.styles) : component.styles;\n }\n applyStyles() {\n this.sharedStylesHost.addStyles(this.styles);\n }\n destroy() {\n if (!this.removeStylesOnCompDestroy) {\n return;\n }\n this.sharedStylesHost.removeStyles(this.styles);\n }\n}\nclass EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {\n constructor(eventManager, sharedStylesHost, component, appId, removeStylesOnCompDestroy, doc, ngZone, platformIsServer) {\n const compId = appId + '-' + component.id;\n super(eventManager, sharedStylesHost, component, removeStylesOnCompDestroy, doc, ngZone, platformIsServer, compId);\n this.contentAttr = shimContentAttribute(compId);\n this.hostAttr = shimHostAttribute(compId);\n }\n applyToHost(element) {\n this.applyStyles();\n this.setAttribute(element, this.hostAttr, '');\n }\n createElement(parent, name) {\n const el = super.createElement(parent, name);\n super.setAttribute(el, this.contentAttr, '');\n return el;\n }\n}\n\nclass DomEventsPlugin extends EventManagerPlugin {\n constructor(doc) {\n super(doc);\n }\n // This plugin should come last in the list of plugins, because it accepts all\n // events.\n supports(eventName) {\n return true;\n }\n addEventListener(element, eventName, handler) {\n element.addEventListener(eventName, handler, false);\n return () => this.removeEventListener(element, eventName, handler);\n }\n removeEventListener(target, eventName, callback) {\n return target.removeEventListener(eventName, callback);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomEventsPlugin }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomEventsPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * Defines supported modifiers for key events.\n */\nconst MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\n// The following values are here for cross-browser compatibility and to match the W3C standard\n// cf https://www.w3.org/TR/DOM-Level-3-Events-key/\nconst _keyMap = {\n '\\b': 'Backspace',\n '\\t': 'Tab',\n '\\x7F': 'Delete',\n '\\x1B': 'Escape',\n 'Del': 'Delete',\n 'Esc': 'Escape',\n 'Left': 'ArrowLeft',\n 'Right': 'ArrowRight',\n 'Up': 'ArrowUp',\n 'Down': 'ArrowDown',\n 'Menu': 'ContextMenu',\n 'Scroll': 'ScrollLock',\n 'Win': 'OS'\n};\n/**\n * Retrieves modifiers from key-event objects.\n */\nconst MODIFIER_KEY_GETTERS = {\n 'alt': (event) => event.altKey,\n 'control': (event) => event.ctrlKey,\n 'meta': (event) => event.metaKey,\n 'shift': (event) => event.shiftKey\n};\n/**\n * A browser plug-in that provides support for handling of key events in Angular.\n */\nclass KeyEventsPlugin extends EventManagerPlugin {\n /**\n * Initializes an instance of the browser plug-in.\n * @param doc The document in which key events will be detected.\n */\n constructor(doc) {\n super(doc);\n }\n /**\n * Reports whether a named key event is supported.\n * @param eventName The event name to query.\n * @return True if the named key event is supported.\n */\n supports(eventName) {\n return KeyEventsPlugin.parseEventName(eventName) != null;\n }\n /**\n * Registers a handler for a specific element and key event.\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the key event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns The key event that was registered.\n */\n addEventListener(element, eventName, handler) {\n const parsedEvent = KeyEventsPlugin.parseEventName(eventName);\n const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());\n return this.manager.getZone().runOutsideAngular(() => {\n return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);\n });\n }\n /**\n * Parses the user provided full keyboard event definition and normalizes it for\n * later internal use. It ensures the string is all lowercase, converts special\n * characters to a standard spelling, and orders all the values consistently.\n *\n * @param eventName The name of the key event to listen for.\n * @returns an object with the full, normalized string, and the dom event name\n * or null in the case when the event doesn't match a keyboard event.\n */\n static parseEventName(eventName) {\n const parts = eventName.toLowerCase().split('.');\n const domEventName = parts.shift();\n if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {\n return null;\n }\n const key = KeyEventsPlugin._normalizeKey(parts.pop());\n let fullKey = '';\n let codeIX = parts.indexOf('code');\n if (codeIX > -1) {\n parts.splice(codeIX, 1);\n fullKey = 'code.';\n }\n MODIFIER_KEYS.forEach(modifierName => {\n const index = parts.indexOf(modifierName);\n if (index > -1) {\n parts.splice(index, 1);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n if (parts.length != 0 || key.length === 0) {\n // returning null instead of throwing to let another plugin process the event\n return null;\n }\n // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.\n // The code must remain in the `result['domEventName']` form.\n // return {domEventName, fullKey};\n const result = {};\n result['domEventName'] = domEventName;\n result['fullKey'] = fullKey;\n return result;\n }\n /**\n * Determines whether the actual keys pressed match the configured key code string.\n * The `fullKeyCode` event is normalized in the `parseEventName` method when the\n * event is attached to the DOM during the `addEventListener` call. This is unseen\n * by the end user and is normalized for internal consistency and parsing.\n *\n * @param event The keyboard event.\n * @param fullKeyCode The normalized user defined expected key event string\n * @returns boolean.\n */\n static matchEventFullKeyCode(event, fullKeyCode) {\n let keycode = _keyMap[event.key] || event.key;\n let key = '';\n if (fullKeyCode.indexOf('code.') > -1) {\n keycode = event.code;\n key = 'code.';\n }\n // the keycode could be unidentified so we have to check here\n if (keycode == null || !keycode)\n return false;\n keycode = keycode.toLowerCase();\n if (keycode === ' ') {\n keycode = 'space'; // for readability\n }\n else if (keycode === '.') {\n keycode = 'dot'; // because '.' is used as a separator in event names\n }\n MODIFIER_KEYS.forEach(modifierName => {\n if (modifierName !== keycode) {\n const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\n if (modifierGetter(event)) {\n key += modifierName + '.';\n }\n }\n });\n key += keycode;\n return key === fullKeyCode;\n }\n /**\n * Configures a handler callback for a key event.\n * @param fullKey The event name that combines all simultaneous keystrokes.\n * @param handler The function that responds to the key event.\n * @param zone The zone in which the event occurred.\n * @returns A callback function.\n */\n static eventCallback(fullKey, handler, zone) {\n return (event) => {\n if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {\n zone.runGuarded(() => handler(event));\n }\n };\n }\n /** @internal */\n static _normalizeKey(keyName) {\n return keyName === 'esc' ? 'escape' : keyName;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: KeyEventsPlugin }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: KeyEventsPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * Bootstraps an instance of an Angular application and renders a standalone component as the\n * application's root component. More information about standalone components can be found in [this\n * guide](guide/standalone-components).\n *\n * @usageNotes\n * The root component passed into this function *must* be a standalone one (should have the\n * `standalone: true` flag in the `@Component` decorator config).\n *\n * ```typescript\n * @Component({\n * standalone: true,\n * template: 'Hello world!'\n * })\n * class RootComponent {}\n *\n * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);\n * ```\n *\n * You can add the list of providers that should be available in the application injector by\n * specifying the `providers` field in an object passed as the second argument:\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}\n * ]\n * });\n * ```\n *\n * The `importProvidersFrom` helper method can be used to collect all providers from any\n * existing NgModule (and transitively from all NgModules that it imports):\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * importProvidersFrom(SomeNgModule)\n * ]\n * });\n * ```\n *\n * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by\n * default. You can add [Testability](api/core/Testability) by getting the list of necessary\n * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`\n * array, for example:\n *\n * ```typescript\n * import {provideProtractorTestingSupport} from '@angular/platform-browser';\n *\n * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});\n * ```\n *\n * @param rootComponent A reference to a standalone component that should be rendered.\n * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for\n * additional info.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nfunction bootstrapApplication(rootComponent, options) {\n return ɵinternalCreateApplication({ rootComponent, ...createProvidersConfig(options) });\n}\n/**\n * Create an instance of an Angular application without bootstrapping any components. This is useful\n * for the situation where one wants to decouple application environment creation (a platform and\n * associated injectors) from rendering components on a screen. Components can be subsequently\n * bootstrapped on the returned `ApplicationRef`.\n *\n * @param options Extra configuration for the application environment, see `ApplicationConfig` for\n * additional info.\n * @returns A promise that returns an `ApplicationRef` instance once resolved.\n *\n * @publicApi\n */\nfunction createApplication(options) {\n return ɵinternalCreateApplication(createProvidersConfig(options));\n}\nfunction createProvidersConfig(options) {\n return {\n appProviders: [\n ...BROWSER_MODULE_PROVIDERS,\n ...(options?.providers ?? []),\n ],\n platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS\n };\n}\n/**\n * Returns a set of providers required to setup [Testability](api/core/Testability) for an\n * application bootstrapped using the `bootstrapApplication` function. The set of providers is\n * needed to support testing an application with Protractor (which relies on the Testability APIs\n * to be present).\n *\n * @returns An array of providers required to setup Testability for an application and make it\n * available for testing using Protractor.\n *\n * @publicApi\n */\nfunction provideProtractorTestingSupport() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideProtractorTestingSupport` call results in app\n // code.\n return [...TESTABILITY_PROVIDERS];\n}\nfunction initDomAdapter() {\n BrowserDomAdapter.makeCurrent();\n}\nfunction errorHandler() {\n return new ErrorHandler();\n}\nfunction _document() {\n // Tell ivy about the global document\n ɵsetDocument(document);\n return document;\n}\nconst INTERNAL_BROWSER_PLATFORM_PROVIDERS = [\n { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },\n { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },\n { provide: DOCUMENT, useFactory: _document, deps: [] },\n];\n/**\n * A factory function that returns a `PlatformRef` instance associated with browser service\n * providers.\n *\n * @publicApi\n */\nconst platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\n/**\n * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.\n * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the\n * `BrowserModule` presence itself, since the standalone-based bootstrap just imports\n * `BrowserModule` providers without referencing the module itself.\n */\nconst BROWSER_MODULE_PROVIDERS_MARKER = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'BrowserModule Providers Marker' : '');\nconst TESTABILITY_PROVIDERS = [\n {\n provide: ɵTESTABILITY_GETTER,\n useClass: BrowserGetTestability,\n deps: [],\n },\n {\n provide: ɵTESTABILITY,\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]\n },\n {\n provide: Testability, // Also provide as `Testability` for backwards-compatibility.\n useClass: Testability,\n deps: [NgZone, TestabilityRegistry, ɵTESTABILITY_GETTER]\n }\n];\nconst BROWSER_MODULE_PROVIDERS = [\n { provide: ɵINJECTOR_SCOPE, useValue: 'root' },\n { provide: ErrorHandler, useFactory: errorHandler, deps: [] }, {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: DomEventsPlugin,\n multi: true,\n deps: [DOCUMENT, NgZone, PLATFORM_ID]\n },\n { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },\n DomRendererFactory2, SharedStylesHost, EventManager,\n { provide: RendererFactory2, useExisting: DomRendererFactory2 },\n { provide: XhrFactory, useClass: BrowserXhr, deps: [] },\n (typeof ngDevMode === 'undefined' || ngDevMode) ?\n { provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true } :\n []\n];\n/**\n * Exports required infrastructure for all Angular apps.\n * Included by default in all Angular apps created with the CLI\n * `new` command.\n * Re-exports `CommonModule` and `ApplicationModule`, making their\n * exports and providers available to all apps.\n *\n * @publicApi\n */\nclass BrowserModule {\n constructor(providersAlreadyPresent) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && providersAlreadyPresent) {\n throw new ɵRuntimeError(5100 /* RuntimeErrorCode.BROWSER_MODULE_ALREADY_LOADED */, `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` +\n `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`);\n }\n }\n /**\n * Configures a browser-based app to transition from a server-rendered app, if\n * one is present on the page.\n *\n * @param params An object containing an identifier for the app to transition.\n * The ID must match between the client and server versions of the app.\n * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.\n *\n * @deprecated Use {@link APP_ID} instead to set the application ID.\n */\n static withServerTransition(params) {\n return {\n ngModule: BrowserModule,\n providers: [\n { provide: APP_ID, useValue: params.appId },\n ],\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BrowserModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],\n exports: [CommonModule, ApplicationModule],\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }, {\n type: Inject,\n args: [BROWSER_MODULE_PROVIDERS_MARKER]\n }] }] });\n\n/**\n * A service for managing HTML `<meta>` tags.\n *\n * Properties of the `MetaDefinition` object match the attributes of the\n * HTML `<meta>` tag. These tags define document metadata that is important for\n * things like configuring a Content Security Policy, defining browser compatibility\n * and security settings, setting HTTP Headers, defining rich content for social sharing,\n * and Search Engine Optimization (SEO).\n *\n * To identify specific `<meta>` tags in a document, use an attribute selection\n * string in the format `\"tag_attribute='value string'\"`.\n * For example, an `attrSelector` value of `\"name='description'\"` matches a tag\n * whose `name` attribute has the value `\"description\"`.\n * Selectors are used with the `querySelector()` Document method,\n * in the format `meta[{attrSelector}]`.\n *\n * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)\n * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)\n *\n *\n * @publicApi\n */\nclass Meta {\n constructor(_doc) {\n this._doc = _doc;\n this._dom = ɵgetDOM();\n }\n /**\n * Retrieves or creates a specific `<meta>` tag element in the current HTML document.\n * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n * values in the provided tag definition, and verifies that all other attribute values are equal.\n * If an existing element is found, it is returned and is not modified in any way.\n * @param tag The definition of a `<meta>` element to match or create.\n * @param forceCreation True to create a new element without checking whether one already exists.\n * @returns The existing element with the same attributes and values if found,\n * the new element if no match is found, or `null` if the tag parameter is not defined.\n */\n addTag(tag, forceCreation = false) {\n if (!tag)\n return null;\n return this._getOrCreateElement(tag, forceCreation);\n }\n /**\n * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.\n * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n * values in the provided tag definition, and verifies that all other attribute values are equal.\n * @param tags An array of tag definitions to match or create.\n * @param forceCreation True to create new elements without checking whether they already exist.\n * @returns The matching elements if found, or the new elements.\n */\n addTags(tags, forceCreation = false) {\n if (!tags)\n return [];\n return tags.reduce((result, tag) => {\n if (tag) {\n result.push(this._getOrCreateElement(tag, forceCreation));\n }\n return result;\n }, []);\n }\n /**\n * Retrieves a `<meta>` tag element in the current HTML document.\n * @param attrSelector The tag attribute and value to match against, in the format\n * `\"tag_attribute='value string'\"`.\n * @returns The matching element, if any.\n */\n getTag(attrSelector) {\n if (!attrSelector)\n return null;\n return this._doc.querySelector(`meta[${attrSelector}]`) || null;\n }\n /**\n * Retrieves a set of `<meta>` tag elements in the current HTML document.\n * @param attrSelector The tag attribute and value to match against, in the format\n * `\"tag_attribute='value string'\"`.\n * @returns The matching elements, if any.\n */\n getTags(attrSelector) {\n if (!attrSelector)\n return [];\n const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);\n return list ? [].slice.call(list) : [];\n }\n /**\n * Modifies an existing `<meta>` tag element in the current HTML document.\n * @param tag The tag description with which to replace the existing tag content.\n * @param selector A tag attribute and value to match against, to identify\n * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n * If not supplied, matches a tag with the same `name` or `property` attribute value as the\n * replacement tag.\n * @return The modified element.\n */\n updateTag(tag, selector) {\n if (!tag)\n return null;\n selector = selector || this._parseSelector(tag);\n const meta = this.getTag(selector);\n if (meta) {\n return this._setMetaElementAttributes(tag, meta);\n }\n return this._getOrCreateElement(tag, true);\n }\n /**\n * Removes an existing `<meta>` tag element from the current HTML document.\n * @param attrSelector A tag attribute and value to match against, to identify\n * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n */\n removeTag(attrSelector) {\n this.removeTagElement(this.getTag(attrSelector));\n }\n /**\n * Removes an existing `<meta>` tag element from the current HTML document.\n * @param meta The tag definition to match against to identify an existing tag.\n */\n removeTagElement(meta) {\n if (meta) {\n this._dom.remove(meta);\n }\n }\n _getOrCreateElement(meta, forceCreation = false) {\n if (!forceCreation) {\n const selector = this._parseSelector(meta);\n // It's allowed to have multiple elements with the same name so it's not enough to\n // just check that element with the same name already present on the page. We also need to\n // check if element has tag attributes\n const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];\n if (elem !== undefined)\n return elem;\n }\n const element = this._dom.createElement('meta');\n this._setMetaElementAttributes(meta, element);\n const head = this._doc.getElementsByTagName('head')[0];\n head.appendChild(element);\n return element;\n }\n _setMetaElementAttributes(tag, el) {\n Object.keys(tag).forEach((prop) => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));\n return el;\n }\n _parseSelector(tag) {\n const attr = tag.name ? 'name' : 'property';\n return `${attr}=\"${tag[attr]}\"`;\n }\n _containsAttributes(tag, elem) {\n return Object.keys(tag).every((key) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);\n }\n _getMetaKeyMap(prop) {\n return META_KEYS_MAP[prop] || prop;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Meta, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Meta, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n/**\n * Mapping for MetaDefinition properties with their correct meta attribute names\n */\nconst META_KEYS_MAP = {\n httpEquiv: 'http-equiv'\n};\n\n/**\n * A service that can be used to get and set the title of a current HTML document.\n *\n * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\n * (representing the `<title>` tag). Instead, this service can be used to set and get the current\n * title value.\n *\n * @publicApi\n */\nclass Title {\n constructor(_doc) {\n this._doc = _doc;\n }\n /**\n * Get the title of the current HTML document.\n */\n getTitle() {\n return this._doc.title;\n }\n /**\n * Set the title of the current HTML document.\n * @param newTitle\n */\n setTitle(newTitle) {\n this._doc.title = newTitle || '';\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Title, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Title, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if\n * `name` is `'probe'`.\n * @param name Name under which it will be exported. Keep in mind this will be a property of the\n * global `ng` object.\n * @param value The value to export.\n */\nfunction exportNgVar(name, value) {\n if (typeof COMPILED === 'undefined' || !COMPILED) {\n // Note: we can't export `ng` when using closure enhanced optimization as:\n // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n // - we can't declare a closure extern as the namespace `ng` is already used within Google\n // for typings for angularJS (via `goog.provide('ng....')`).\n const ng = ɵglobal['ng'] = ɵglobal['ng'] || {};\n ng[name] = value;\n }\n}\n\nclass ChangeDetectionPerfRecord {\n constructor(msPerTick, numTicks) {\n this.msPerTick = msPerTick;\n this.numTicks = numTicks;\n }\n}\n/**\n * Entry point for all Angular profiling-related debug tools. This object\n * corresponds to the `ng.profiler` in the dev console.\n */\nclass AngularProfiler {\n constructor(ref) {\n this.appRef = ref.injector.get(ApplicationRef);\n }\n // tslint:disable:no-console\n /**\n * Exercises change detection in a loop and then prints the average amount of\n * time in milliseconds how long a single round of change detection takes for\n * the current state of the UI. It runs a minimum of 5 rounds for a minimum\n * of 500 milliseconds.\n *\n * Optionally, a user may pass a `config` parameter containing a map of\n * options. Supported options are:\n *\n * `record` (boolean) - causes the profiler to record a CPU profile while\n * it exercises the change detector. Example:\n *\n * ```\n * ng.profiler.timeChangeDetection({record: true})\n * ```\n */\n timeChangeDetection(config) {\n const record = config && config['record'];\n const profileName = 'Change Detection';\n // Profiler is not available in Android browsers without dev tools opened\n if (record && 'profile' in console && typeof console.profile === 'function') {\n console.profile(profileName);\n }\n const start = performance.now();\n let numTicks = 0;\n while (numTicks < 5 || (performance.now() - start) < 500) {\n this.appRef.tick();\n numTicks++;\n }\n const end = performance.now();\n if (record && 'profileEnd' in console && typeof console.profileEnd === 'function') {\n console.profileEnd(profileName);\n }\n const msPerTick = (end - start) / numTicks;\n console.log(`ran ${numTicks} change detection cycles`);\n console.log(`${msPerTick.toFixed(2)} ms per check`);\n return new ChangeDetectionPerfRecord(msPerTick, numTicks);\n }\n}\n\nconst PROFILER_GLOBAL_NAME = 'profiler';\n/**\n * Enabled Angular debug tools that are accessible via your browser's\n * developer console.\n *\n * Usage:\n *\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\n * then hit Enter.\n *\n * @publicApi\n */\nfunction enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}\n/**\n * Disables Angular tools.\n *\n * @publicApi\n */\nfunction disableDebugTools() {\n exportNgVar(PROFILER_GLOBAL_NAME, null);\n}\n\n/**\n * Predicates for use with {@link DebugElement}'s query functions.\n *\n * @publicApi\n */\nclass By {\n /**\n * Match all nodes.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}\n */\n static all() {\n return () => true;\n }\n /**\n * Match elements by the given CSS selector.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}\n */\n static css(selector) {\n return (debugElement) => {\n return debugElement.nativeElement != null ?\n elementMatches(debugElement.nativeElement, selector) :\n false;\n };\n }\n /**\n * Match nodes that have the given directive present.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}\n */\n static directive(type) {\n return (debugNode) => debugNode.providerTokens.indexOf(type) !== -1;\n }\n}\nfunction elementMatches(n, selector) {\n if (ɵgetDOM().isElementNode(n)) {\n return n.matches && n.matches(selector) ||\n n.msMatchesSelector && n.msMatchesSelector(selector) ||\n n.webkitMatchesSelector && n.webkitMatchesSelector(selector);\n }\n return false;\n}\n\n/**\n * Supported HammerJS recognizer event names.\n */\nconst EVENT_NAMES = {\n // pan\n 'pan': true,\n 'panstart': true,\n 'panmove': true,\n 'panend': true,\n 'pancancel': true,\n 'panleft': true,\n 'panright': true,\n 'panup': true,\n 'pandown': true,\n // pinch\n 'pinch': true,\n 'pinchstart': true,\n 'pinchmove': true,\n 'pinchend': true,\n 'pinchcancel': true,\n 'pinchin': true,\n 'pinchout': true,\n // press\n 'press': true,\n 'pressup': true,\n // rotate\n 'rotate': true,\n 'rotatestart': true,\n 'rotatemove': true,\n 'rotateend': true,\n 'rotatecancel': true,\n // swipe\n 'swipe': true,\n 'swipeleft': true,\n 'swiperight': true,\n 'swipeup': true,\n 'swipedown': true,\n // tap\n 'tap': true,\n 'doubletap': true\n};\n/**\n * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.\n * @see {@link HammerGestureConfig}\n *\n * @ngModule HammerModule\n * @publicApi\n */\nconst HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');\n/**\n * Injection token used to provide a {@link HammerLoader} to Angular.\n *\n * @publicApi\n */\nconst HAMMER_LOADER = new InjectionToken('HammerLoader');\n/**\n * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * for gesture recognition. Configures specific event recognition.\n * @publicApi\n */\nclass HammerGestureConfig {\n constructor() {\n /**\n * A set of supported event names for gestures to be used in Angular.\n * Angular supports all built-in recognizers, as listed in\n * [HammerJS documentation](https://hammerjs.github.io/).\n */\n this.events = [];\n /**\n * Maps gesture event names to a set of configuration options\n * that specify overrides to the default values for specific properties.\n *\n * The key is a supported event name to be configured,\n * and the options object contains a set of properties, with override values\n * to be applied to the named recognizer event.\n * For example, to disable recognition of the rotate event, specify\n * `{\"rotate\": {\"enable\": false}}`.\n *\n * Properties that are not present take the HammerJS default values.\n * For information about which properties are supported for which events,\n * and their allowed and default values, see\n * [HammerJS documentation](https://hammerjs.github.io/).\n *\n */\n this.overrides = {};\n }\n /**\n * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * and attaches it to a given HTML element.\n * @param element The element that will recognize gestures.\n * @returns A HammerJS event-manager object.\n */\n buildHammer(element) {\n const mc = new Hammer(element, this.options);\n mc.get('pinch').set({ enable: true });\n mc.get('rotate').set({ enable: true });\n for (const eventName in this.overrides) {\n mc.get(eventName).set(this.overrides[eventName]);\n }\n return mc;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerGestureConfig }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerGestureConfig, decorators: [{\n type: Injectable\n }] });\n/**\n * Event plugin that adds Hammer support to an application.\n *\n * @ngModule HammerModule\n */\nclass HammerGesturesPlugin extends EventManagerPlugin {\n constructor(doc, _config, console, loader) {\n super(doc);\n this._config = _config;\n this.console = console;\n this.loader = loader;\n this._loaderPromise = null;\n }\n supports(eventName) {\n if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {\n return false;\n }\n if (!window.Hammer && !this.loader) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this.console.warn(`The \"${eventName}\" event cannot be bound because Hammer.JS is not ` +\n `loaded and no custom loader has been specified.`);\n }\n return false;\n }\n return true;\n }\n addEventListener(element, eventName, handler) {\n const zone = this.manager.getZone();\n eventName = eventName.toLowerCase();\n // If Hammer is not present but a loader is specified, we defer adding the event listener\n // until Hammer is loaded.\n if (!window.Hammer && this.loader) {\n this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());\n // This `addEventListener` method returns a function to remove the added listener.\n // Until Hammer is loaded, the returned function needs to *cancel* the registration rather\n // than remove anything.\n let cancelRegistration = false;\n let deregister = () => {\n cancelRegistration = true;\n };\n zone.runOutsideAngular(() => this._loaderPromise\n .then(() => {\n // If Hammer isn't actually loaded when the custom loader resolves, give up.\n if (!window.Hammer) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this.console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);\n }\n deregister = () => { };\n return;\n }\n if (!cancelRegistration) {\n // Now that Hammer is loaded and the listener is being loaded for real,\n // the deregistration function changes from canceling registration to\n // removal.\n deregister = this.addEventListener(element, eventName, handler);\n }\n })\n .catch(() => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this.console.warn(`The \"${eventName}\" event cannot be bound because the custom ` +\n `Hammer.JS loader failed.`);\n }\n deregister = () => { };\n }));\n // Return a function that *executes* `deregister` (and not `deregister` itself) so that we\n // can change the behavior of `deregister` once the listener is added. Using a closure in\n // this way allows us to avoid any additional data structures to track listener removal.\n return () => {\n deregister();\n };\n }\n return zone.runOutsideAngular(() => {\n // Creating the manager bind events, must be done outside of angular\n const mc = this._config.buildHammer(element);\n const callback = function (eventObj) {\n zone.runGuarded(function () {\n handler(eventObj);\n });\n };\n mc.on(eventName, callback);\n return () => {\n mc.off(eventName, callback);\n // destroy mc to prevent memory leak\n if (typeof mc.destroy === 'function') {\n mc.destroy();\n }\n };\n });\n }\n isCustomEvent(eventName) {\n return this._config.events.indexOf(eventName) > -1;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerGesturesPlugin }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerGesturesPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: HammerGestureConfig, decorators: [{\n type: Inject,\n args: [HAMMER_GESTURE_CONFIG]\n }] }, { type: i0.ɵConsole }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [HAMMER_LOADER]\n }] }] });\n/**\n * Adds support for HammerJS.\n *\n * Import this module at the root of your application so that Angular can work with\n * HammerJS to detect gesture events.\n *\n * Note that applications still need to include the HammerJS script itself. This module\n * simply sets up the coordination layer between HammerJS and Angular's `EventManager`.\n *\n * @publicApi\n */\nclass HammerModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerModule }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerModule, providers: [\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: HammerGesturesPlugin,\n multi: true,\n deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]\n },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n ] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HammerModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: HammerGesturesPlugin,\n multi: true,\n deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]\n },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n ]\n }]\n }] });\n\n/**\n * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing\n * values to be safe to use in the different DOM contexts.\n *\n * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be\n * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on\n * the website.\n *\n * In specific situations, it might be necessary to disable sanitization, for example if the\n * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.\n * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`\n * methods, and then binding to that value from the template.\n *\n * These situations should be very rare, and extraordinary care must be taken to avoid creating a\n * Cross Site Scripting (XSS) security bug!\n *\n * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as\n * close as possible to the source of the value, to make it easy to verify no security bug is\n * created by its use.\n *\n * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that\n * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous\n * code. The sanitizer leaves safe values intact.\n *\n * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in\n * sanitization for the value passed in. Carefully check and audit all values and code paths going\n * into this call. Make sure any user data is appropriately escaped for this security context.\n * For more detail, see the [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\nclass DomSanitizer {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(() => DomSanitizerImpl) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomSanitizer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]\n }] });\nclass DomSanitizerImpl extends DomSanitizer {\n constructor(_doc) {\n super();\n this._doc = _doc;\n }\n sanitize(ctx, value) {\n if (value == null)\n return null;\n switch (ctx) {\n case SecurityContext.NONE:\n return value;\n case SecurityContext.HTML:\n if (ɵallowSanitizationBypassAndThrow(value, \"HTML\" /* BypassType.Html */)) {\n return ɵunwrapSafeValue(value);\n }\n return ɵ_sanitizeHtml(this._doc, String(value)).toString();\n case SecurityContext.STYLE:\n if (ɵallowSanitizationBypassAndThrow(value, \"Style\" /* BypassType.Style */)) {\n return ɵunwrapSafeValue(value);\n }\n return value;\n case SecurityContext.SCRIPT:\n if (ɵallowSanitizationBypassAndThrow(value, \"Script\" /* BypassType.Script */)) {\n return ɵunwrapSafeValue(value);\n }\n throw new ɵRuntimeError(5200 /* RuntimeErrorCode.SANITIZATION_UNSAFE_SCRIPT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'unsafe value used in a script context');\n case SecurityContext.URL:\n if (ɵallowSanitizationBypassAndThrow(value, \"URL\" /* BypassType.Url */)) {\n return ɵunwrapSafeValue(value);\n }\n return ɵ_sanitizeUrl(String(value));\n case SecurityContext.RESOURCE_URL:\n if (ɵallowSanitizationBypassAndThrow(value, \"ResourceURL\" /* BypassType.ResourceUrl */)) {\n return ɵunwrapSafeValue(value);\n }\n throw new ɵRuntimeError(5201 /* RuntimeErrorCode.SANITIZATION_UNSAFE_RESOURCE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `unsafe value used in a resource URL context (see ${ɵXSS_SECURITY_URL})`);\n default:\n throw new ɵRuntimeError(5202 /* RuntimeErrorCode.SANITIZATION_UNEXPECTED_CTX */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Unexpected SecurityContext ${ctx} (see ${ɵXSS_SECURITY_URL})`);\n }\n }\n bypassSecurityTrustHtml(value) {\n return ɵbypassSanitizationTrustHtml(value);\n }\n bypassSecurityTrustStyle(value) {\n return ɵbypassSanitizationTrustStyle(value);\n }\n bypassSecurityTrustScript(value) {\n return ɵbypassSanitizationTrustScript(value);\n }\n bypassSecurityTrustUrl(value) {\n return ɵbypassSanitizationTrustUrl(value);\n }\n bypassSecurityTrustResourceUrl(value) {\n return ɵbypassSanitizationTrustResourceUrl(value);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DomSanitizerImpl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }] });\n\n/**\n * The list of features as an enum to uniquely type each `HydrationFeature`.\n * @see {@link HydrationFeature}\n *\n * @publicApi\n */\nvar HydrationFeatureKind;\n(function (HydrationFeatureKind) {\n HydrationFeatureKind[HydrationFeatureKind[\"NoHttpTransferCache\"] = 0] = \"NoHttpTransferCache\";\n HydrationFeatureKind[HydrationFeatureKind[\"HttpTransferCacheOptions\"] = 1] = \"HttpTransferCacheOptions\";\n})(HydrationFeatureKind || (HydrationFeatureKind = {}));\n/**\n * Helper function to create an object that represents a Hydration feature.\n */\nfunction hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {\n return { ɵkind, ɵproviders };\n}\n/**\n * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the\n * server and other one on the browser.\n *\n * @publicApi\n */\nfunction withNoHttpTransferCache() {\n // This feature has no providers and acts as a flag that turns off\n // HTTP transfer cache (which otherwise is turned on by default).\n return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);\n}\n/**\n * The function accepts a an object, which allows to configure cache parameters,\n * such as which headers should be included (no headers are included by default),\n * wether POST requests should be cached or a callback function to determine if a\n * particular request should be cached.\n *\n * @publicApi\n */\nfunction withHttpTransferCacheOptions(options) {\n // This feature has no providers and acts as a flag to pass options to the HTTP transfer cache.\n return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, ɵwithHttpTransferCache(options));\n}\n/**\n * Returns an `ENVIRONMENT_INITIALIZER` token setup with a function\n * that verifies whether compatible ZoneJS was used in an application\n * and logs a warning in a console if it's not the case.\n */\nfunction provideZoneJsCompatibilityDetector() {\n return [{\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => {\n const ngZone = inject(NgZone);\n // Checking `ngZone instanceof NgZone` would be insufficient here,\n // because custom implementations might use NgZone as a base class.\n if (ngZone.constructor !== NgZone) {\n const console = inject(ɵConsole);\n const message = ɵformatRuntimeError(-5000 /* RuntimeErrorCode.UNSUPPORTED_ZONEJS_INSTANCE */, 'Angular detected that hydration was enabled for an application ' +\n 'that uses a custom or a noop Zone.js implementation. ' +\n 'This is not yet a fully supported configuration.');\n // tslint:disable-next-line:no-console\n console.warn(message);\n }\n },\n multi: true,\n }];\n}\n/**\n * Sets up providers necessary to enable hydration functionality for the application.\n *\n * By default, the function enables the recommended set of features for the optimal\n * performance for most of the applications. It includes the following features:\n *\n * * Reconciling DOM hydration. Learn more about it [here](guide/hydration).\n * * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and\n * transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching\n * [here](/guide/ssr#caching-data-when-using-httpclient).\n *\n * These functions allow you to disable some of the default features or configure features\n * * {@link withNoHttpTransferCache} to disable HTTP transfer cache\n * * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options\n *\n * @usageNotes\n *\n * Basic example of how you can enable hydration in your application when\n * `bootstrapApplication` function is used:\n * ```\n * bootstrapApplication(AppComponent, {\n * providers: [provideClientHydration()]\n * });\n * ```\n *\n * Alternatively if you are using NgModules, you would add `provideClientHydration`\n * to your root app module's provider list.\n * ```\n * @NgModule({\n * declarations: [RootCmp],\n * bootstrap: [RootCmp],\n * providers: [provideClientHydration()],\n * })\n * export class AppModule {}\n * ```\n *\n * @see {@link withNoHttpTransferCache}\n * @see {@link withHttpTransferCacheOptions}\n *\n * @param features Optional features to configure additional router behaviors.\n * @returns A set of providers to enable hydration.\n *\n * @publicApi\n */\nfunction provideClientHydration(...features) {\n const providers = [];\n const featuresKind = new Set();\n const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);\n for (const { ɵproviders, ɵkind } of features) {\n featuresKind.add(ɵkind);\n if (ɵproviders.length) {\n providers.push(ɵproviders);\n }\n }\n if (typeof ngDevMode !== 'undefined' && ngDevMode &&\n featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {\n // TODO: Make this a runtime error\n throw new Error('Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');\n }\n return makeEnvironmentProviders([\n (typeof ngDevMode !== 'undefined' && ngDevMode) ? provideZoneJsCompatibilityDetector() : [],\n ɵwithDomHydration(),\n ((featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions) ?\n [] :\n ɵwithHttpTransferCache({})),\n providers,\n ]);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('17.3.12');\n\n// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\n * const COUNTER_KEY = makeStateKey<number>('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n * @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead.\n */\n// The below is a workaround to add a deprecated message.\nconst makeStateKey = makeStateKey$1;\n// The below type is needed for G3 due to JSC_CONFORMANCE_VIOLATION.\nconst TransferState = TransferState$1;\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, REMOVE_STYLES_ON_COMPONENT_DESTROY, Title, TransferState, VERSION, bootstrapApplication, createApplication, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, provideClientHydration, provideProtractorTestingSupport, withHttpTransferCacheOptions, withNoHttpTransferCache, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, SharedStylesHost as ɵSharedStylesHost, initDomAdapter as ɵinitDomAdapter };\n","import { Observable } from '../Observable';\nimport { from } from './from';\nimport { empty } from './empty';\nexport function defer(observableFactory) {\n return new Observable(subscriber => {\n let input;\n try {\n input = observableFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n const source = input ? from(input) : empty();\n return source.subscribe(subscriber);\n });\n}\n","import { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function takeLast(count) {\n return function takeLastOperatorFunction(source) {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeLastOperator(count));\n }\n };\n}\nclass TakeLastOperator {\n constructor(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n call(subscriber, source) {\n return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n }\n}\nclass TakeLastSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.ring = new Array();\n this.count = 0;\n }\n _next(value) {\n const ring = this.ring;\n const total = this.total;\n const count = this.count++;\n if (ring.length < total) {\n ring.push(value);\n }\n else {\n const index = count % total;\n ring[index] = value;\n }\n }\n _complete() {\n const destination = this.destination;\n let count = this.count;\n if (count > 0) {\n const total = this.count >= this.total ? this.total : this.count;\n const ring = this.ring;\n for (let i = 0; i < total; i++) {\n const idx = (count++) % total;\n destination.next(ring[idx]);\n }\n }\n destination.complete();\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function mapTo(value) {\n return (source) => source.lift(new MapToOperator(value));\n}\nclass MapToOperator {\n constructor(value) {\n this.value = value;\n }\n call(subscriber, source) {\n return source.subscribe(new MapToSubscriber(subscriber, this.value));\n }\n}\nclass MapToSubscriber extends Subscriber {\n constructor(destination, value) {\n super(destination);\n this.value = value;\n }\n _next(x) {\n this.destination.next(this.value);\n }\n}\n","/**\n * @license Angular v17.3.12\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, InjectionToken, reflectComponentType, Component, createEnvironmentInjector, ɵisNgModule, isStandalone, ɵisInjectable, runInInjectionContext, Compiler, NgModuleFactory, NgZone, afterNextRender, ɵConsole, ɵPendingTasks, ɵɵsanitizeUrlOrResourceUrl, booleanAttribute, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, InjectFlags, APP_INITIALIZER, SkipSelf, NgModule, Inject, Version } from '@angular/core';\nimport { isObservable, from, of, BehaviorSubject, combineLatest, EmptyError, concat, defer, pipe, throwError, EMPTY, ConnectableObservable, Subject, Subscription } from 'rxjs';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';\nimport { map, switchMap, take, startWith, filter, mergeMap, first, concatMap, tap, catchError, scan, defaultIfEmpty, last as last$1, takeLast, mapTo, finalize, refCount, takeUntil, mergeAll } from 'rxjs/operators';\nimport * as i1 from '@angular/platform-browser';\n\n/**\n * The primary routing outlet.\n *\n * @publicApi\n */\nconst PRIMARY_OUTLET = 'primary';\n/**\n * A private symbol used to store the value of `Route.title` inside the `Route.data` if it is a\n * static string or `Route.resolve` if anything else. This allows us to reuse the existing route\n * data/resolvers to support the title feature without new instrumentation in the `Router` pipeline.\n */\nconst RouteTitleKey = /* @__PURE__ */ Symbol('RouteTitle');\nclass ParamsAsMap {\n constructor(params) {\n this.params = params || {};\n }\n has(name) {\n return Object.prototype.hasOwnProperty.call(this.params, name);\n }\n get(name) {\n if (this.has(name)) {\n const v = this.params[name];\n return Array.isArray(v) ? v[0] : v;\n }\n return null;\n }\n getAll(name) {\n if (this.has(name)) {\n const v = this.params[name];\n return Array.isArray(v) ? v : [v];\n }\n return [];\n }\n get keys() {\n return Object.keys(this.params);\n }\n}\n/**\n * Converts a `Params` instance to a `ParamMap`.\n * @param params The instance to convert.\n * @returns The new map instance.\n *\n * @publicApi\n */\nfunction convertToParamMap(params) {\n return new ParamsAsMap(params);\n}\n/**\n * Matches the route configuration (`route`) against the actual URL (`segments`).\n *\n * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.\n *\n * @param segments The remaining unmatched segments in the current navigation\n * @param segmentGroup The current segment group being matched\n * @param route The `Route` to match against.\n *\n * @see {@link UrlMatchResult}\n * @see {@link Route}\n *\n * @returns The resulting match information or `null` if the `route` should not match.\n * @publicApi\n */\nfunction defaultUrlMatcher(segments, segmentGroup, route) {\n const parts = route.path.split('/');\n if (parts.length > segments.length) {\n // The actual URL is shorter than the config, no match\n return null;\n }\n if (route.pathMatch === 'full' &&\n (segmentGroup.hasChildren() || parts.length < segments.length)) {\n // The config is longer than the actual URL but we are looking for a full match, return null\n return null;\n }\n const posParams = {};\n // Check each config part against the actual URL\n for (let index = 0; index < parts.length; index++) {\n const part = parts[index];\n const segment = segments[index];\n const isParameter = part.startsWith(':');\n if (isParameter) {\n posParams[part.substring(1)] = segment;\n }\n else if (part !== segment.path) {\n // The actual URL part does not match the config, no match\n return null;\n }\n }\n return { consumed: segments.slice(0, parts.length), posParams };\n}\n\nfunction shallowEqualArrays(a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; ++i) {\n if (!shallowEqual(a[i], b[i]))\n return false;\n }\n return true;\n}\nfunction shallowEqual(a, b) {\n // While `undefined` should never be possible, it would sometimes be the case in IE 11\n // and pre-chromium Edge. The check below accounts for this edge case.\n const k1 = a ? getDataKeys(a) : undefined;\n const k2 = b ? getDataKeys(b) : undefined;\n if (!k1 || !k2 || k1.length != k2.length) {\n return false;\n }\n let key;\n for (let i = 0; i < k1.length; i++) {\n key = k1[i];\n if (!equalArraysOrString(a[key], b[key])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Gets the keys of an object, including `symbol` keys.\n */\nfunction getDataKeys(obj) {\n return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)];\n}\n/**\n * Test equality for arrays of strings or a string.\n */\nfunction equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}\n/**\n * Return the last element of an array.\n */\nfunction last(a) {\n return a.length > 0 ? a[a.length - 1] : null;\n}\nfunction wrapIntoObservable(value) {\n if (isObservable(value)) {\n return value;\n }\n if (ɵisPromise(value)) {\n // Use `Promise.resolve()` to wrap promise-like instances.\n // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the\n // change detection.\n return from(Promise.resolve(value));\n }\n return of(value);\n}\n\nconst pathCompareMap = {\n 'exact': equalSegmentGroups,\n 'subset': containsSegmentGroup,\n};\nconst paramCompareMap = {\n 'exact': equalParams,\n 'subset': containsParams,\n 'ignored': () => true,\n};\nfunction containsTree(container, containee, options) {\n return (pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) &&\n paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) &&\n !(options.fragment === 'exact' && container.fragment !== containee.fragment));\n}\nfunction equalParams(container, containee) {\n // TODO: This does not handle array params correctly.\n return shallowEqual(container, containee);\n}\nfunction equalSegmentGroups(container, containee, matrixParams) {\n if (!equalPath(container.segments, containee.segments))\n return false;\n if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {\n return false;\n }\n if (container.numberOfChildren !== containee.numberOfChildren)\n return false;\n for (const c in containee.children) {\n if (!container.children[c])\n return false;\n if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams))\n return false;\n }\n return true;\n}\nfunction containsParams(container, containee) {\n return (Object.keys(containee).length <= Object.keys(container).length &&\n Object.keys(containee).every((key) => equalArraysOrString(container[key], containee[key])));\n}\nfunction containsSegmentGroup(container, containee, matrixParams) {\n return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams);\n}\nfunction containsSegmentGroupHelper(container, containee, containeePaths, matrixParams) {\n if (container.segments.length > containeePaths.length) {\n const current = container.segments.slice(0, containeePaths.length);\n if (!equalPath(current, containeePaths))\n return false;\n if (containee.hasChildren())\n return false;\n if (!matrixParamsMatch(current, containeePaths, matrixParams))\n return false;\n return true;\n }\n else if (container.segments.length === containeePaths.length) {\n if (!equalPath(container.segments, containeePaths))\n return false;\n if (!matrixParamsMatch(container.segments, containeePaths, matrixParams))\n return false;\n for (const c in containee.children) {\n if (!container.children[c])\n return false;\n if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {\n return false;\n }\n }\n return true;\n }\n else {\n const current = containeePaths.slice(0, container.segments.length);\n const next = containeePaths.slice(container.segments.length);\n if (!equalPath(container.segments, current))\n return false;\n if (!matrixParamsMatch(container.segments, current, matrixParams))\n return false;\n if (!container.children[PRIMARY_OUTLET])\n return false;\n return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next, matrixParams);\n }\n}\nfunction matrixParamsMatch(containerPaths, containeePaths, options) {\n return containeePaths.every((containeeSegment, i) => {\n return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);\n });\n}\n/**\n * @description\n *\n * Represents the parsed URL.\n *\n * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a\n * serialized tree.\n * UrlTree is a data structure that provides a lot of affordances in dealing with URLs\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const tree: UrlTree =\n * router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');\n * const f = tree.fragment; // return 'fragment'\n * const q = tree.queryParams; // returns {debug: 'true'}\n * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n * const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'\n * g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'\n * g.children['support'].segments; // return 1 segment 'help'\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlTree {\n constructor(\n /** The root segment group of the URL tree */\n root = new UrlSegmentGroup([], {}), \n /** The query params of the URL */\n queryParams = {}, \n /** The fragment of the URL */\n fragment = null) {\n this.root = root;\n this.queryParams = queryParams;\n this.fragment = fragment;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (root.segments.length > 0) {\n throw new ɵRuntimeError(4015 /* RuntimeErrorCode.INVALID_ROOT_URL_SEGMENT */, 'The root `UrlSegmentGroup` should not contain `segments`. ' +\n 'Instead, these segments belong in the `children` so they can be associated with a named outlet.');\n }\n }\n }\n get queryParamMap() {\n this._queryParamMap ??= convertToParamMap(this.queryParams);\n return this._queryParamMap;\n }\n /** @docsNotRequired */\n toString() {\n return DEFAULT_SERIALIZER.serialize(this);\n }\n}\n/**\n * @description\n *\n * Represents the parsed URL segment group.\n *\n * See `UrlTree` for more information.\n *\n * @publicApi\n */\nclass UrlSegmentGroup {\n constructor(\n /** The URL segments of this group. See `UrlSegment` for more information */\n segments, \n /** The list of children of this group */\n children) {\n this.segments = segments;\n this.children = children;\n /** The parent node in the url tree */\n this.parent = null;\n Object.values(children).forEach((v) => (v.parent = this));\n }\n /** Whether the segment has child segments */\n hasChildren() {\n return this.numberOfChildren > 0;\n }\n /** Number of child segments */\n get numberOfChildren() {\n return Object.keys(this.children).length;\n }\n /** @docsNotRequired */\n toString() {\n return serializePaths(this);\n }\n}\n/**\n * @description\n *\n * Represents a single URL segment.\n *\n * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix\n * parameters associated with the segment.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const tree: UrlTree = router.parseUrl('/team;id=33');\n * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n * const s: UrlSegment[] = g.segments;\n * s[0].path; // returns 'team'\n * s[0].parameters; // returns {id: 33}\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlSegment {\n constructor(\n /** The path part of a URL segment */\n path, \n /** The matrix parameters associated with a segment */\n parameters) {\n this.path = path;\n this.parameters = parameters;\n }\n get parameterMap() {\n this._parameterMap ??= convertToParamMap(this.parameters);\n return this._parameterMap;\n }\n /** @docsNotRequired */\n toString() {\n return serializePath(this);\n }\n}\nfunction equalSegments(as, bs) {\n return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters));\n}\nfunction equalPath(as, bs) {\n if (as.length !== bs.length)\n return false;\n return as.every((a, i) => a.path === bs[i].path);\n}\nfunction mapChildrenIntoArray(segment, fn) {\n let res = [];\n Object.entries(segment.children).forEach(([childOutlet, child]) => {\n if (childOutlet === PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n Object.entries(segment.children).forEach(([childOutlet, child]) => {\n if (childOutlet !== PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n return res;\n}\n/**\n * @description\n *\n * Serializes and deserializes a URL string into a URL tree.\n *\n * The url serialization strategy is customizable. You can\n * make all URLs case insensitive by providing a custom UrlSerializer.\n *\n * See `DefaultUrlSerializer` for an example of a URL serializer.\n *\n * @publicApi\n */\nclass UrlSerializer {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UrlSerializer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]\n }] });\n/**\n * @description\n *\n * A default implementation of the `UrlSerializer`.\n *\n * Example URLs:\n *\n * ```\n * /inbox/33(popup:compose)\n * /inbox/33;open=true/messages/44\n * ```\n *\n * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the\n * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to\n * specify route specific parameters.\n *\n * @publicApi\n */\nclass DefaultUrlSerializer {\n /** Parses a url into a `UrlTree` */\n parse(url) {\n const p = new UrlParser(url);\n return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());\n }\n /** Converts a `UrlTree` into a url */\n serialize(tree) {\n const segment = `/${serializeSegment(tree.root, true)}`;\n const query = serializeQueryParams(tree.queryParams);\n const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';\n return `${segment}${query}${fragment}`;\n }\n}\nconst DEFAULT_SERIALIZER = new DefaultUrlSerializer();\nfunction serializePaths(segment) {\n return segment.segments.map((p) => serializePath(p)).join('/');\n}\nfunction serializeSegment(segment, root) {\n if (!segment.hasChildren()) {\n return serializePaths(segment);\n }\n if (root) {\n const primary = segment.children[PRIMARY_OUTLET]\n ? serializeSegment(segment.children[PRIMARY_OUTLET], false)\n : '';\n const children = [];\n Object.entries(segment.children).forEach(([k, v]) => {\n if (k !== PRIMARY_OUTLET) {\n children.push(`${k}:${serializeSegment(v, false)}`);\n }\n });\n return children.length > 0 ? `${primary}(${children.join('//')})` : primary;\n }\n else {\n const children = mapChildrenIntoArray(segment, (v, k) => {\n if (k === PRIMARY_OUTLET) {\n return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];\n }\n return [`${k}:${serializeSegment(v, false)}`];\n });\n // use no parenthesis if the only child is a primary outlet route\n if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {\n return `${serializePaths(segment)}/${children[0]}`;\n }\n return `${serializePaths(segment)}/(${children.join('//')})`;\n }\n}\n/**\n * Encodes a URI string with the default encoding. This function will only ever be called from\n * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need\n * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't\n * have to be encoded per https://url.spec.whatwg.org.\n */\nfunction encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}\n/**\n * This function should be used to encode both keys and values in a query string key/value. In\n * the following URL, you need to call encodeUriQuery on \"k\" and \"v\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriQuery(s) {\n return encodeUriString(s).replace(/%3B/gi, ';');\n}\n/**\n * This function should be used to encode a URL fragment. In the following URL, you need to call\n * encodeUriFragment on \"f\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriFragment(s) {\n return encodeURI(s);\n}\n/**\n * This function should be run on any URI segment as well as the key and value in a key/value\n * pair for matrix params. In the following URL, you need to call encodeUriSegment on \"html\",\n * \"mk\", and \"mv\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriSegment(s) {\n return encodeUriString(s).replace(/\\(/g, '%28').replace(/\\)/g, '%29').replace(/%26/gi, '&');\n}\nfunction decode(s) {\n return decodeURIComponent(s);\n}\n// Query keys/values should have the \"+\" replaced first, as \"+\" in a query string is \" \".\n// decodeURIComponent function will not decode \"+\" as a space.\nfunction decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}\nfunction serializePath(path) {\n return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;\n}\nfunction serializeMatrixParams(params) {\n return Object.entries(params)\n .map(([key, value]) => `;${encodeUriSegment(key)}=${encodeUriSegment(value)}`)\n .join('');\n}\nfunction serializeQueryParams(params) {\n const strParams = Object.entries(params)\n .map(([name, value]) => {\n return Array.isArray(value)\n ? value.map((v) => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&')\n : `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;\n })\n .filter((s) => s);\n return strParams.length ? `?${strParams.join('&')}` : '';\n}\nconst SEGMENT_RE = /^[^\\/()?;#]+/;\nfunction matchSegments(str) {\n const match = str.match(SEGMENT_RE);\n return match ? match[0] : '';\n}\nconst MATRIX_PARAM_SEGMENT_RE = /^[^\\/()?;=#]+/;\nfunction matchMatrixKeySegments(str) {\n const match = str.match(MATRIX_PARAM_SEGMENT_RE);\n return match ? match[0] : '';\n}\nconst QUERY_PARAM_RE = /^[^=?&#]+/;\n// Return the name of the query param at the start of the string or an empty string\nfunction matchQueryParams(str) {\n const match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}\nconst QUERY_PARAM_VALUE_RE = /^[^&#]+/;\n// Return the value of the query param at the start of the string or an empty string\nfunction matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}\nclass UrlParser {\n constructor(url) {\n this.url = url;\n this.remaining = url;\n }\n parseRootSegment() {\n this.consumeOptional('/');\n if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {\n return new UrlSegmentGroup([], {});\n }\n // The root segment group never has segments\n return new UrlSegmentGroup([], this.parseChildren());\n }\n parseQueryParams() {\n const params = {};\n if (this.consumeOptional('?')) {\n do {\n this.parseQueryParam(params);\n } while (this.consumeOptional('&'));\n }\n return params;\n }\n parseFragment() {\n return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;\n }\n parseChildren() {\n if (this.remaining === '') {\n return {};\n }\n this.consumeOptional('/');\n const segments = [];\n if (!this.peekStartsWith('(')) {\n segments.push(this.parseSegment());\n }\n while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {\n this.capture('/');\n segments.push(this.parseSegment());\n }\n let children = {};\n if (this.peekStartsWith('/(')) {\n this.capture('/');\n children = this.parseParens(true);\n }\n let res = {};\n if (this.peekStartsWith('(')) {\n res = this.parseParens(false);\n }\n if (segments.length > 0 || Object.keys(children).length > 0) {\n res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);\n }\n return res;\n }\n // parse a segment with its matrix parameters\n // ie `name;k1=v1;k2`\n parseSegment() {\n const path = matchSegments(this.remaining);\n if (path === '' && this.peekStartsWith(';')) {\n throw new ɵRuntimeError(4009 /* RuntimeErrorCode.EMPTY_PATH_WITH_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Empty path url segment cannot have parameters: '${this.remaining}'.`);\n }\n this.capture(path);\n return new UrlSegment(decode(path), this.parseMatrixParams());\n }\n parseMatrixParams() {\n const params = {};\n while (this.consumeOptional(';')) {\n this.parseParam(params);\n }\n return params;\n }\n parseParam(params) {\n const key = matchMatrixKeySegments(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchSegments(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n params[decode(key)] = decode(value);\n }\n // Parse a single query parameter `name[=value]`\n parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }\n // parse `(a/b//outlet_name:c/d)`\n parseParens(allowPrimary) {\n const segments = {};\n this.capture('(');\n while (!this.consumeOptional(')') && this.remaining.length > 0) {\n const path = matchSegments(this.remaining);\n const next = this.remaining[path.length];\n // if is is not one of these characters, then the segment was unescaped\n // or the group was not closed\n if (next !== '/' && next !== ')' && next !== ';') {\n throw new ɵRuntimeError(4010 /* RuntimeErrorCode.UNPARSABLE_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot parse url '${this.url}'`);\n }\n let outletName = undefined;\n if (path.indexOf(':') > -1) {\n outletName = path.slice(0, path.indexOf(':'));\n this.capture(outletName);\n this.capture(':');\n }\n else if (allowPrimary) {\n outletName = PRIMARY_OUTLET;\n }\n const children = this.parseChildren();\n segments[outletName] =\n Object.keys(children).length === 1\n ? children[PRIMARY_OUTLET]\n : new UrlSegmentGroup([], children);\n this.consumeOptional('//');\n }\n return segments;\n }\n peekStartsWith(str) {\n return this.remaining.startsWith(str);\n }\n // Consumes the prefix when it is present and returns whether it has been consumed\n consumeOptional(str) {\n if (this.peekStartsWith(str)) {\n this.remaining = this.remaining.substring(str.length);\n return true;\n }\n return false;\n }\n capture(str) {\n if (!this.consumeOptional(str)) {\n throw new ɵRuntimeError(4011 /* RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL */, (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected \"${str}\".`);\n }\n }\n}\nfunction createRoot(rootCandidate) {\n return rootCandidate.segments.length > 0\n ? new UrlSegmentGroup([], { [PRIMARY_OUTLET]: rootCandidate })\n : rootCandidate;\n}\n/**\n * Recursively\n * - merges primary segment children into their parents\n * - drops empty children (those which have no segments and no children themselves). This latter\n * prevents serializing a group into something like `/a(aux:)`, where `aux` is an empty child\n * segment.\n * - merges named outlets without a primary segment sibling into the children. This prevents\n * serializing a URL like `//(a:a)(b:b) instead of `/(a:a//b:b)` when the aux b route lives on the\n * root but the `a` route lives under an empty path primary route.\n */\nfunction squashSegmentGroup(segmentGroup) {\n const newChildren = {};\n for (const [childOutlet, child] of Object.entries(segmentGroup.children)) {\n const childCandidate = squashSegmentGroup(child);\n // moves named children in an empty path primary child into this group\n if (childOutlet === PRIMARY_OUTLET &&\n childCandidate.segments.length === 0 &&\n childCandidate.hasChildren()) {\n for (const [grandChildOutlet, grandChild] of Object.entries(childCandidate.children)) {\n newChildren[grandChildOutlet] = grandChild;\n }\n } // don't add empty children\n else if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {\n newChildren[childOutlet] = childCandidate;\n }\n }\n const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);\n return mergeTrivialChildren(s);\n}\n/**\n * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.\n *\n * When a segment group has only one child which is a primary outlet, merges that child into the\n * parent. That is, the child segment group's segments are merged into the `s` and the child's\n * children become the children of `s`. Think of this like a 'squash', merging the child segment\n * group into the parent.\n */\nfunction mergeTrivialChildren(s) {\n if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {\n const c = s.children[PRIMARY_OUTLET];\n return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);\n }\n return s;\n}\nfunction isUrlTree(v) {\n return v instanceof UrlTree;\n}\n\n/**\n * Creates a `UrlTree` relative to an `ActivatedRouteSnapshot`.\n *\n * @publicApi\n *\n *\n * @param relativeTo The `ActivatedRouteSnapshot` to apply the commands to\n * @param commands An array of URL fragments with which to construct the new URL tree.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the one provided in the `relativeTo` parameter.\n * @param queryParams The query parameters for the `UrlTree`. `null` if the `UrlTree` does not have\n * any query parameters.\n * @param fragment The fragment for the `UrlTree`. `null` if the `UrlTree` does not have a fragment.\n *\n * @usageNotes\n *\n * ```\n * // create /team/33/user/11\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * createUrlTreeFromSnapshot(snapshot, ['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it,\n * // you can do the following:\n * createUrlTreeFromSnapshot(snapshot, [{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right:\n * 'chat'}}], null, null);\n *\n * // remove the right secondary node\n * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // For the examples below, assume the current URL is for the `/team/33/user/11` and the\n * `ActivatedRouteSnapshot` points to `user/11`:\n *\n * // navigate to /team/33/user/11/details\n * createUrlTreeFromSnapshot(snapshot, ['details']);\n *\n * // navigate to /team/33/user/22\n * createUrlTreeFromSnapshot(snapshot, ['../22']);\n *\n * // navigate to /team/44/user/22\n * createUrlTreeFromSnapshot(snapshot, ['../../team/44/user/22']);\n * ```\n */\nfunction createUrlTreeFromSnapshot(relativeTo, commands, queryParams = null, fragment = null) {\n const relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeTo);\n return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment);\n}\nfunction createSegmentGroupFromRoute(route) {\n let targetGroup;\n function createSegmentGroupFromRouteRecursive(currentRoute) {\n const childOutlets = {};\n for (const childSnapshot of currentRoute.children) {\n const root = createSegmentGroupFromRouteRecursive(childSnapshot);\n childOutlets[childSnapshot.outlet] = root;\n }\n const segmentGroup = new UrlSegmentGroup(currentRoute.url, childOutlets);\n if (currentRoute === route) {\n targetGroup = segmentGroup;\n }\n return segmentGroup;\n }\n const rootCandidate = createSegmentGroupFromRouteRecursive(route.root);\n const rootSegmentGroup = createRoot(rootCandidate);\n return targetGroup ?? rootSegmentGroup;\n}\nfunction createUrlTreeFromSegmentGroup(relativeTo, commands, queryParams, fragment) {\n let root = relativeTo;\n while (root.parent) {\n root = root.parent;\n }\n // There are no commands so the `UrlTree` goes to the same path as the one created from the\n // `UrlSegmentGroup`. All we need to do is update the `queryParams` and `fragment` without\n // applying any other logic.\n if (commands.length === 0) {\n return tree(root, root, root, queryParams, fragment);\n }\n const nav = computeNavigation(commands);\n if (nav.toRoot()) {\n return tree(root, root, new UrlSegmentGroup([], {}), queryParams, fragment);\n }\n const position = findStartingPositionForTargetGroup(nav, root, relativeTo);\n const newSegmentGroup = position.processChildren\n ? updateSegmentGroupChildren(position.segmentGroup, position.index, nav.commands)\n : updateSegmentGroup(position.segmentGroup, position.index, nav.commands);\n return tree(root, position.segmentGroup, newSegmentGroup, queryParams, fragment);\n}\nfunction isMatrixParams(command) {\n return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;\n}\n/**\n * Determines if a given command has an `outlets` map. When we encounter a command\n * with an outlets k/v map, we need to apply each outlet individually to the existing segment.\n */\nfunction isCommandWithOutlets(command) {\n return typeof command === 'object' && command != null && command.outlets;\n}\nfunction tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment) {\n let qp = {};\n if (queryParams) {\n Object.entries(queryParams).forEach(([name, value]) => {\n qp[name] = Array.isArray(value) ? value.map((v) => `${v}`) : `${value}`;\n });\n }\n let rootCandidate;\n if (oldRoot === oldSegmentGroup) {\n rootCandidate = newSegmentGroup;\n }\n else {\n rootCandidate = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);\n }\n const newRoot = createRoot(squashSegmentGroup(rootCandidate));\n return new UrlTree(newRoot, qp, fragment);\n}\n/**\n * Replaces the `oldSegment` which is located in some child of the `current` with the `newSegment`.\n * This also has the effect of creating new `UrlSegmentGroup` copies to update references. This\n * shouldn't be necessary but the fallback logic for an invalid ActivatedRoute in the creation uses\n * the Router's current url tree. If we don't create new segment groups, we end up modifying that\n * value.\n */\nfunction replaceSegment(current, oldSegment, newSegment) {\n const children = {};\n Object.entries(current.children).forEach(([outletName, c]) => {\n if (c === oldSegment) {\n children[outletName] = newSegment;\n }\n else {\n children[outletName] = replaceSegment(c, oldSegment, newSegment);\n }\n });\n return new UrlSegmentGroup(current.segments, children);\n}\nclass Navigation {\n constructor(isAbsolute, numberOfDoubleDots, commands) {\n this.isAbsolute = isAbsolute;\n this.numberOfDoubleDots = numberOfDoubleDots;\n this.commands = commands;\n if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {\n throw new ɵRuntimeError(4003 /* RuntimeErrorCode.ROOT_SEGMENT_MATRIX_PARAMS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Root segment cannot have matrix parameters');\n }\n const cmdWithOutlet = commands.find(isCommandWithOutlets);\n if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {\n throw new ɵRuntimeError(4004 /* RuntimeErrorCode.MISPLACED_OUTLETS_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n '{outlets:{}} has to be the last command');\n }\n }\n toRoot() {\n return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';\n }\n}\n/** Transforms commands to a normalized `Navigation` */\nfunction computeNavigation(commands) {\n if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {\n return new Navigation(true, 0, commands);\n }\n let numberOfDoubleDots = 0;\n let isAbsolute = false;\n const res = commands.reduce((res, cmd, cmdIdx) => {\n if (typeof cmd === 'object' && cmd != null) {\n if (cmd.outlets) {\n const outlets = {};\n Object.entries(cmd.outlets).forEach(([name, commands]) => {\n outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;\n });\n return [...res, { outlets }];\n }\n if (cmd.segmentPath) {\n return [...res, cmd.segmentPath];\n }\n }\n if (!(typeof cmd === 'string')) {\n return [...res, cmd];\n }\n if (cmdIdx === 0) {\n cmd.split('/').forEach((urlPart, partIndex) => {\n if (partIndex == 0 && urlPart === '.') {\n // skip './a'\n }\n else if (partIndex == 0 && urlPart === '') {\n // '/a'\n isAbsolute = true;\n }\n else if (urlPart === '..') {\n // '../a'\n numberOfDoubleDots++;\n }\n else if (urlPart != '') {\n res.push(urlPart);\n }\n });\n return res;\n }\n return [...res, cmd];\n }, []);\n return new Navigation(isAbsolute, numberOfDoubleDots, res);\n}\nclass Position {\n constructor(segmentGroup, processChildren, index) {\n this.segmentGroup = segmentGroup;\n this.processChildren = processChildren;\n this.index = index;\n }\n}\nfunction findStartingPositionForTargetGroup(nav, root, target) {\n if (nav.isAbsolute) {\n return new Position(root, true, 0);\n }\n if (!target) {\n // `NaN` is used only to maintain backwards compatibility with incorrectly mocked\n // `ActivatedRouteSnapshot` in tests. In prior versions of this code, the position here was\n // determined based on an internal property that was rarely mocked, resulting in `NaN`. In\n // reality, this code path should _never_ be touched since `target` is not allowed to be falsey.\n return new Position(root, false, NaN);\n }\n if (target.parent === null) {\n return new Position(target, true, 0);\n }\n const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;\n const index = target.segments.length - 1 + modifier;\n return createPositionApplyingDoubleDots(target, index, nav.numberOfDoubleDots);\n}\nfunction createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {\n let g = group;\n let ci = index;\n let dd = numberOfDoubleDots;\n while (dd > ci) {\n dd -= ci;\n g = g.parent;\n if (!g) {\n throw new ɵRuntimeError(4005 /* RuntimeErrorCode.INVALID_DOUBLE_DOTS */, (typeof ngDevMode === 'undefined' || ngDevMode) && \"Invalid number of '../'\");\n }\n ci = g.segments.length;\n }\n return new Position(g, false, ci - dd);\n}\nfunction getOutlets(commands) {\n if (isCommandWithOutlets(commands[0])) {\n return commands[0].outlets;\n }\n return { [PRIMARY_OUTLET]: commands };\n}\nfunction updateSegmentGroup(segmentGroup, startIndex, commands) {\n segmentGroup ??= new UrlSegmentGroup([], {});\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return updateSegmentGroupChildren(segmentGroup, startIndex, commands);\n }\n const m = prefixedWith(segmentGroup, startIndex, commands);\n const slicedCommands = commands.slice(m.commandIndex);\n if (m.match && m.pathIndex < segmentGroup.segments.length) {\n const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});\n g.children[PRIMARY_OUTLET] = new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);\n return updateSegmentGroupChildren(g, 0, slicedCommands);\n }\n else if (m.match && slicedCommands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else if (m.match && !segmentGroup.hasChildren()) {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n else if (m.match) {\n return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);\n }\n else {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n}\nfunction updateSegmentGroupChildren(segmentGroup, startIndex, commands) {\n if (commands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else {\n const outlets = getOutlets(commands);\n const children = {};\n // If the set of commands applies to anything other than the primary outlet and the child\n // segment is an empty path primary segment on its own, we want to apply the commands to the\n // empty child path rather than here. The outcome is that the empty primary child is effectively\n // removed from the final output UrlTree. Imagine the following config:\n //\n // {path: '', children: [{path: '**', outlet: 'popup'}]}.\n //\n // Navigation to /(popup:a) will activate the child outlet correctly Given a follow-up\n // navigation with commands\n // ['/', {outlets: {'popup': 'b'}}], we _would not_ want to apply the outlet commands to the\n // root segment because that would result in\n // //(popup:a)(popup:b) since the outlet command got applied one level above where it appears in\n // the `ActivatedRoute` rather than updating the existing one.\n //\n // Because empty paths do not appear in the URL segments and the fact that the segments used in\n // the output `UrlTree` are squashed to eliminate these empty paths where possible\n // https://github.com/angular/angular/blob/13f10de40e25c6900ca55bd83b36bd533dacfa9e/packages/router/src/url_tree.ts#L755\n // it can be hard to determine what is the right thing to do when applying commands to a\n // `UrlSegmentGroup` that is created from an \"unsquashed\"/expanded `ActivatedRoute` tree.\n // This code effectively \"squashes\" empty path primary routes when they have no siblings on\n // the same level of the tree.\n if (Object.keys(outlets).some((o) => o !== PRIMARY_OUTLET) &&\n segmentGroup.children[PRIMARY_OUTLET] &&\n segmentGroup.numberOfChildren === 1 &&\n segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {\n const childrenOfEmptyChild = updateSegmentGroupChildren(segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);\n return new UrlSegmentGroup(segmentGroup.segments, childrenOfEmptyChild.children);\n }\n Object.entries(outlets).forEach(([outlet, commands]) => {\n if (typeof commands === 'string') {\n commands = [commands];\n }\n if (commands !== null) {\n children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);\n }\n });\n Object.entries(segmentGroup.children).forEach(([childOutlet, child]) => {\n if (outlets[childOutlet] === undefined) {\n children[childOutlet] = child;\n }\n });\n return new UrlSegmentGroup(segmentGroup.segments, children);\n }\n}\nfunction prefixedWith(segmentGroup, startIndex, commands) {\n let currentCommandIndex = 0;\n let currentPathIndex = startIndex;\n const noMatch = { match: false, pathIndex: 0, commandIndex: 0 };\n while (currentPathIndex < segmentGroup.segments.length) {\n if (currentCommandIndex >= commands.length)\n return noMatch;\n const path = segmentGroup.segments[currentPathIndex];\n const command = commands[currentCommandIndex];\n // Do not try to consume command as part of the prefixing if it has outlets because it can\n // contain outlets other than the one being processed. Consuming the outlets command would\n // result in other outlets being ignored.\n if (isCommandWithOutlets(command)) {\n break;\n }\n const curr = `${command}`;\n const next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;\n if (currentPathIndex > 0 && curr === undefined)\n break;\n if (curr && next && typeof next === 'object' && next.outlets === undefined) {\n if (!compare(curr, next, path))\n return noMatch;\n currentCommandIndex += 2;\n }\n else {\n if (!compare(curr, {}, path))\n return noMatch;\n currentCommandIndex++;\n }\n currentPathIndex++;\n }\n return { match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex };\n}\nfunction createNewSegmentGroup(segmentGroup, startIndex, commands) {\n const paths = segmentGroup.segments.slice(0, startIndex);\n let i = 0;\n while (i < commands.length) {\n const command = commands[i];\n if (isCommandWithOutlets(command)) {\n const children = createNewSegmentChildren(command.outlets);\n return new UrlSegmentGroup(paths, children);\n }\n // if we start with an object literal, we need to reuse the path part from the segment\n if (i === 0 && isMatrixParams(commands[0])) {\n const p = segmentGroup.segments[startIndex];\n paths.push(new UrlSegment(p.path, stringify(commands[0])));\n i++;\n continue;\n }\n const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;\n const next = i < commands.length - 1 ? commands[i + 1] : null;\n if (curr && next && isMatrixParams(next)) {\n paths.push(new UrlSegment(curr, stringify(next)));\n i += 2;\n }\n else {\n paths.push(new UrlSegment(curr, {}));\n i++;\n }\n }\n return new UrlSegmentGroup(paths, {});\n}\nfunction createNewSegmentChildren(outlets) {\n const children = {};\n Object.entries(outlets).forEach(([outlet, commands]) => {\n if (typeof commands === 'string') {\n commands = [commands];\n }\n if (commands !== null) {\n children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);\n }\n });\n return children;\n}\nfunction stringify(params) {\n const res = {};\n Object.entries(params).forEach(([k, v]) => (res[k] = `${v}`));\n return res;\n}\nfunction compare(path, params, segment) {\n return path == segment.path && shallowEqual(params, segment.parameters);\n}\n\nconst IMPERATIVE_NAVIGATION = 'imperative';\n/**\n * Identifies the type of a router event.\n *\n * @publicApi\n */\nvar EventType;\n(function (EventType) {\n EventType[EventType[\"NavigationStart\"] = 0] = \"NavigationStart\";\n EventType[EventType[\"NavigationEnd\"] = 1] = \"NavigationEnd\";\n EventType[EventType[\"NavigationCancel\"] = 2] = \"NavigationCancel\";\n EventType[EventType[\"NavigationError\"] = 3] = \"NavigationError\";\n EventType[EventType[\"RoutesRecognized\"] = 4] = \"RoutesRecognized\";\n EventType[EventType[\"ResolveStart\"] = 5] = \"ResolveStart\";\n EventType[EventType[\"ResolveEnd\"] = 6] = \"ResolveEnd\";\n EventType[EventType[\"GuardsCheckStart\"] = 7] = \"GuardsCheckStart\";\n EventType[EventType[\"GuardsCheckEnd\"] = 8] = \"GuardsCheckEnd\";\n EventType[EventType[\"RouteConfigLoadStart\"] = 9] = \"RouteConfigLoadStart\";\n EventType[EventType[\"RouteConfigLoadEnd\"] = 10] = \"RouteConfigLoadEnd\";\n EventType[EventType[\"ChildActivationStart\"] = 11] = \"ChildActivationStart\";\n EventType[EventType[\"ChildActivationEnd\"] = 12] = \"ChildActivationEnd\";\n EventType[EventType[\"ActivationStart\"] = 13] = \"ActivationStart\";\n EventType[EventType[\"ActivationEnd\"] = 14] = \"ActivationEnd\";\n EventType[EventType[\"Scroll\"] = 15] = \"Scroll\";\n EventType[EventType[\"NavigationSkipped\"] = 16] = \"NavigationSkipped\";\n})(EventType || (EventType = {}));\n/**\n * Base for events the router goes through, as opposed to events tied to a specific\n * route. Fired one time for any given navigation.\n *\n * The following code shows how a class subscribes to router events.\n *\n * ```ts\n * import {Event, RouterEvent, Router} from '@angular/router';\n *\n * class MyService {\n * constructor(public router: Router) {\n * router.events.pipe(\n * filter((e: Event | RouterEvent): e is RouterEvent => e instanceof RouterEvent)\n * ).subscribe((e: RouterEvent) => {\n * // Do something\n * });\n * }\n * }\n * ```\n *\n * @see {@link Event}\n * @see [Router events summary](guide/router-reference#router-events)\n * @publicApi\n */\nclass RouterEvent {\n constructor(\n /** A unique ID that the router assigns to every router navigation. */\n id, \n /** The URL that is the destination for this navigation. */\n url) {\n this.id = id;\n this.url = url;\n }\n}\n/**\n * An event triggered when a navigation starts.\n *\n * @publicApi\n */\nclass NavigationStart extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n navigationTrigger = 'imperative', \n /** @docsNotRequired */\n restoredState = null) {\n super(id, url);\n this.type = EventType.NavigationStart;\n this.navigationTrigger = navigationTrigger;\n this.restoredState = restoredState;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationStart(id: ${this.id}, url: '${this.url}')`;\n }\n}\n/**\n * An event triggered when a navigation ends successfully.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationCancel}\n * @see {@link NavigationError}\n *\n * @publicApi\n */\nclass NavigationEnd extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.type = EventType.NavigationEnd;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;\n }\n}\n/**\n * A code for the `NavigationCancel` event of the `Router` to indicate the\n * reason a navigation failed.\n *\n * @publicApi\n */\nvar NavigationCancellationCode;\n(function (NavigationCancellationCode) {\n /**\n * A navigation failed because a guard returned a `UrlTree` to redirect.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"Redirect\"] = 0] = \"Redirect\";\n /**\n * A navigation failed because a more recent navigation started.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"SupersededByNewNavigation\"] = 1] = \"SupersededByNewNavigation\";\n /**\n * A navigation failed because one of the resolvers completed without emitting a value.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"NoDataFromResolver\"] = 2] = \"NoDataFromResolver\";\n /**\n * A navigation failed because a guard returned `false`.\n */\n NavigationCancellationCode[NavigationCancellationCode[\"GuardRejected\"] = 3] = \"GuardRejected\";\n})(NavigationCancellationCode || (NavigationCancellationCode = {}));\n/**\n * A code for the `NavigationSkipped` event of the `Router` to indicate the\n * reason a navigation was skipped.\n *\n * @publicApi\n */\nvar NavigationSkippedCode;\n(function (NavigationSkippedCode) {\n /**\n * A navigation was skipped because the navigation URL was the same as the current Router URL.\n */\n NavigationSkippedCode[NavigationSkippedCode[\"IgnoredSameUrlNavigation\"] = 0] = \"IgnoredSameUrlNavigation\";\n /**\n * A navigation was skipped because the configured `UrlHandlingStrategy` return `false` for both\n * the current Router URL and the target of the navigation.\n *\n * @see {@link UrlHandlingStrategy}\n */\n NavigationSkippedCode[NavigationSkippedCode[\"IgnoredByUrlHandlingStrategy\"] = 1] = \"IgnoredByUrlHandlingStrategy\";\n})(NavigationSkippedCode || (NavigationSkippedCode = {}));\n/**\n * An event triggered when a navigation is canceled, directly or indirectly.\n * This can happen for several reasons including when a route guard\n * returns `false` or initiates a redirect by returning a `UrlTree`.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationEnd}\n * @see {@link NavigationError}\n *\n * @publicApi\n */\nclass NavigationCancel extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /**\n * A description of why the navigation was cancelled. For debug purposes only. Use `code`\n * instead for a stable cancellation reason that can be used in production.\n */\n reason, \n /**\n * A code to indicate why the navigation was canceled. This cancellation code is stable for\n * the reason and can be relied on whereas the `reason` string could change and should not be\n * used in production.\n */\n code) {\n super(id, url);\n this.reason = reason;\n this.code = code;\n this.type = EventType.NavigationCancel;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;\n }\n}\n/**\n * An event triggered when a navigation is skipped.\n * This can happen for a couple reasons including onSameUrlHandling\n * is set to `ignore` and the navigation URL is not different than the\n * current state.\n *\n * @publicApi\n */\nclass NavigationSkipped extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /**\n * A description of why the navigation was skipped. For debug purposes only. Use `code`\n * instead for a stable skipped reason that can be used in production.\n */\n reason, \n /**\n * A code to indicate why the navigation was skipped. This code is stable for\n * the reason and can be relied on whereas the `reason` string could change and should not be\n * used in production.\n */\n code) {\n super(id, url);\n this.reason = reason;\n this.code = code;\n this.type = EventType.NavigationSkipped;\n }\n}\n/**\n * An event triggered when a navigation fails due to an unexpected error.\n *\n * @see {@link NavigationStart}\n * @see {@link NavigationEnd}\n * @see {@link NavigationCancel}\n *\n * @publicApi\n */\nclass NavigationError extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n error, \n /**\n * The target of the navigation when the error occurred.\n *\n * Note that this can be `undefined` because an error could have occurred before the\n * `RouterStateSnapshot` was created for the navigation.\n */\n target) {\n super(id, url);\n this.error = error;\n this.target = target;\n this.type = EventType.NavigationError;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;\n }\n}\n/**\n * An event triggered when routes are recognized.\n *\n * @publicApi\n */\nclass RoutesRecognized extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.type = EventType.RoutesRecognized;\n }\n /** @docsNotRequired */\n toString() {\n return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the start of the Guard phase of routing.\n *\n * @see {@link GuardsCheckEnd}\n *\n * @publicApi\n */\nclass GuardsCheckStart extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.type = EventType.GuardsCheckStart;\n }\n toString() {\n return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the end of the Guard phase of routing.\n *\n * @see {@link GuardsCheckStart}\n *\n * @publicApi\n */\nclass GuardsCheckEnd extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state, \n /** @docsNotRequired */\n shouldActivate) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.shouldActivate = shouldActivate;\n this.type = EventType.GuardsCheckEnd;\n }\n toString() {\n return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;\n }\n}\n/**\n * An event triggered at the start of the Resolve phase of routing.\n *\n * Runs in the \"resolve\" phase whether or not there is anything to resolve.\n * In future, may change to only run when there are things to be resolved.\n *\n * @see {@link ResolveEnd}\n *\n * @publicApi\n */\nclass ResolveStart extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.type = EventType.ResolveStart;\n }\n toString() {\n return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the end of the Resolve phase of routing.\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ResolveEnd extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.type = EventType.ResolveEnd;\n }\n toString() {\n return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered before lazy loading a route configuration.\n *\n * @see {@link RouteConfigLoadEnd}\n *\n * @publicApi\n */\nclass RouteConfigLoadStart {\n constructor(\n /** @docsNotRequired */\n route) {\n this.route = route;\n this.type = EventType.RouteConfigLoadStart;\n }\n toString() {\n return `RouteConfigLoadStart(path: ${this.route.path})`;\n }\n}\n/**\n * An event triggered when a route has been lazy loaded.\n *\n * @see {@link RouteConfigLoadStart}\n *\n * @publicApi\n */\nclass RouteConfigLoadEnd {\n constructor(\n /** @docsNotRequired */\n route) {\n this.route = route;\n this.type = EventType.RouteConfigLoadEnd;\n }\n toString() {\n return `RouteConfigLoadEnd(path: ${this.route.path})`;\n }\n}\n/**\n * An event triggered at the start of the child-activation\n * part of the Resolve phase of routing.\n * @see {@link ChildActivationEnd}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ChildActivationStart {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n this.type = EventType.ChildActivationStart;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ChildActivationStart(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the end of the child-activation part\n * of the Resolve phase of routing.\n * @see {@link ChildActivationStart}\n * @see {@link ResolveStart}\n * @publicApi\n */\nclass ChildActivationEnd {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n this.type = EventType.ChildActivationEnd;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ChildActivationEnd(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the start of the activation part\n * of the Resolve phase of routing.\n * @see {@link ActivationEnd}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ActivationStart {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n this.type = EventType.ActivationStart;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ActivationStart(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the end of the activation part\n * of the Resolve phase of routing.\n * @see {@link ActivationStart}\n * @see {@link ResolveStart}\n *\n * @publicApi\n */\nclass ActivationEnd {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n this.type = EventType.ActivationEnd;\n }\n toString() {\n const path = (this.snapshot.routeConfig && this.snapshot.routeConfig.path) || '';\n return `ActivationEnd(path: '${path}')`;\n }\n}\n/**\n * An event triggered by scrolling.\n *\n * @publicApi\n */\nclass Scroll {\n constructor(\n /** @docsNotRequired */\n routerEvent, \n /** @docsNotRequired */\n position, \n /** @docsNotRequired */\n anchor) {\n this.routerEvent = routerEvent;\n this.position = position;\n this.anchor = anchor;\n this.type = EventType.Scroll;\n }\n toString() {\n const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;\n return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;\n }\n}\nclass BeforeActivateRoutes {\n}\nclass RedirectRequest {\n constructor(url) {\n this.url = url;\n }\n}\nfunction stringifyEvent(routerEvent) {\n switch (routerEvent.type) {\n case EventType.ActivationEnd:\n return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.ActivationStart:\n return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.ChildActivationEnd:\n return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.ChildActivationStart:\n return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;\n case EventType.GuardsCheckEnd:\n return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;\n case EventType.GuardsCheckStart:\n return `GuardsCheckStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.NavigationCancel:\n return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n case EventType.NavigationSkipped:\n return `NavigationSkipped(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n case EventType.NavigationEnd:\n return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}')`;\n case EventType.NavigationError:\n return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${routerEvent.error})`;\n case EventType.NavigationStart:\n return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;\n case EventType.ResolveEnd:\n return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.ResolveStart:\n return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.RouteConfigLoadEnd:\n return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;\n case EventType.RouteConfigLoadStart:\n return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;\n case EventType.RoutesRecognized:\n return `RoutesRecognized(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;\n case EventType.Scroll:\n const pos = routerEvent.position\n ? `${routerEvent.position[0]}, ${routerEvent.position[1]}`\n : null;\n return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;\n }\n}\n\n/**\n * Store contextual information about a `RouterOutlet`\n *\n * @publicApi\n */\nclass OutletContext {\n constructor() {\n this.outlet = null;\n this.route = null;\n this.injector = null;\n this.children = new ChildrenOutletContexts();\n this.attachRef = null;\n }\n}\n/**\n * Store contextual information about the children (= nested) `RouterOutlet`\n *\n * @publicApi\n */\nclass ChildrenOutletContexts {\n constructor() {\n // contexts for child outlets, by name.\n this.contexts = new Map();\n }\n /** Called when a `RouterOutlet` directive is instantiated */\n onChildOutletCreated(childName, outlet) {\n const context = this.getOrCreateContext(childName);\n context.outlet = outlet;\n this.contexts.set(childName, context);\n }\n /**\n * Called when a `RouterOutlet` directive is destroyed.\n * We need to keep the context as the outlet could be destroyed inside a NgIf and might be\n * re-created later.\n */\n onChildOutletDestroyed(childName) {\n const context = this.getContext(childName);\n if (context) {\n context.outlet = null;\n context.attachRef = null;\n }\n }\n /**\n * Called when the corresponding route is deactivated during navigation.\n * Because the component get destroyed, all children outlet are destroyed.\n */\n onOutletDeactivated() {\n const contexts = this.contexts;\n this.contexts = new Map();\n return contexts;\n }\n onOutletReAttached(contexts) {\n this.contexts = contexts;\n }\n getOrCreateContext(childName) {\n let context = this.getContext(childName);\n if (!context) {\n context = new OutletContext();\n this.contexts.set(childName, context);\n }\n return context;\n }\n getContext(childName) {\n return this.contexts.get(childName) || null;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ChildrenOutletContexts, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\nclass Tree {\n constructor(root) {\n this._root = root;\n }\n get root() {\n return this._root.value;\n }\n /**\n * @internal\n */\n parent(t) {\n const p = this.pathFromRoot(t);\n return p.length > 1 ? p[p.length - 2] : null;\n }\n /**\n * @internal\n */\n children(t) {\n const n = findNode(t, this._root);\n return n ? n.children.map((t) => t.value) : [];\n }\n /**\n * @internal\n */\n firstChild(t) {\n const n = findNode(t, this._root);\n return n && n.children.length > 0 ? n.children[0].value : null;\n }\n /**\n * @internal\n */\n siblings(t) {\n const p = findPath(t, this._root);\n if (p.length < 2)\n return [];\n const c = p[p.length - 2].children.map((c) => c.value);\n return c.filter((cc) => cc !== t);\n }\n /**\n * @internal\n */\n pathFromRoot(t) {\n return findPath(t, this._root).map((s) => s.value);\n }\n}\n// DFS for the node matching the value\nfunction findNode(value, node) {\n if (value === node.value)\n return node;\n for (const child of node.children) {\n const node = findNode(value, child);\n if (node)\n return node;\n }\n return null;\n}\n// Return the path to the node with the given value using DFS\nfunction findPath(value, node) {\n if (value === node.value)\n return [node];\n for (const child of node.children) {\n const path = findPath(value, child);\n if (path.length) {\n path.unshift(node);\n return path;\n }\n }\n return [];\n}\nclass TreeNode {\n constructor(value, children) {\n this.value = value;\n this.children = children;\n }\n toString() {\n return `TreeNode(${this.value})`;\n }\n}\n// Return the list of T indexed by outlet name\nfunction nodeChildrenAsMap(node) {\n const map = {};\n if (node) {\n node.children.forEach((child) => (map[child.value.outlet] = child));\n }\n return map;\n}\n\n/**\n * Represents the state of the router as a tree of activated routes.\n *\n * @usageNotes\n *\n * Every node in the route tree is an `ActivatedRoute` instance\n * that knows about the \"consumed\" URL segments, the extracted parameters,\n * and the resolved data.\n * Use the `ActivatedRoute` properties to traverse the tree from any node.\n *\n * The following fragment shows how a component gets the root node\n * of the current state to establish its own route tree:\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const state: RouterState = router.routerState;\n * const root: ActivatedRoute = state.root;\n * const child = root.firstChild;\n * const id: Observable<string> = child.params.map(p => p.id);\n * //...\n * }\n * }\n * ```\n *\n * @see {@link ActivatedRoute}\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass RouterState extends Tree {\n /** @internal */\n constructor(root, \n /** The current snapshot of the router state */\n snapshot) {\n super(root);\n this.snapshot = snapshot;\n setRouterState(this, root);\n }\n toString() {\n return this.snapshot.toString();\n }\n}\nfunction createEmptyState(rootComponent) {\n const snapshot = createEmptyStateSnapshot(rootComponent);\n const emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);\n const emptyParams = new BehaviorSubject({});\n const emptyData = new BehaviorSubject({});\n const emptyQueryParams = new BehaviorSubject({});\n const fragment = new BehaviorSubject('');\n const activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);\n activated.snapshot = snapshot.root;\n return new RouterState(new TreeNode(activated, []), snapshot);\n}\nfunction createEmptyStateSnapshot(rootComponent) {\n const emptyParams = {};\n const emptyData = {};\n const emptyQueryParams = {};\n const fragment = '';\n const activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, {});\n return new RouterStateSnapshot('', new TreeNode(activated, []));\n}\n/**\n * Provides access to information about a route associated with a component\n * that is loaded in an outlet.\n * Use to traverse the `RouterState` tree and extract information from nodes.\n *\n * The following example shows how to construct a component using information from a\n * currently activated route.\n *\n * Note: the observables in this class only emit when the current and previous values differ based\n * on shallow equality. For example, changing deeply nested properties in resolved `data` will not\n * cause the `ActivatedRoute.data` `Observable` to emit a new value.\n *\n * {@example router/activated-route/module.ts region=\"activated-route\"\n * header=\"activated-route.component.ts\"}\n *\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass ActivatedRoute {\n /** @internal */\n constructor(\n /** @internal */\n urlSubject, \n /** @internal */\n paramsSubject, \n /** @internal */\n queryParamsSubject, \n /** @internal */\n fragmentSubject, \n /** @internal */\n dataSubject, \n /** The outlet name of the route, a constant. */\n outlet, \n /** The component of the route, a constant. */\n component, futureSnapshot) {\n this.urlSubject = urlSubject;\n this.paramsSubject = paramsSubject;\n this.queryParamsSubject = queryParamsSubject;\n this.fragmentSubject = fragmentSubject;\n this.dataSubject = dataSubject;\n this.outlet = outlet;\n this.component = component;\n this._futureSnapshot = futureSnapshot;\n this.title = this.dataSubject?.pipe(map((d) => d[RouteTitleKey])) ?? of(undefined);\n // TODO(atscott): Verify that these can be changed to `.asObservable()` with TGP.\n this.url = urlSubject;\n this.params = paramsSubject;\n this.queryParams = queryParamsSubject;\n this.fragment = fragmentSubject;\n this.data = dataSubject;\n }\n /** The configuration used to match this route. */\n get routeConfig() {\n return this._futureSnapshot.routeConfig;\n }\n /** The root of the router state. */\n get root() {\n return this._routerState.root;\n }\n /** The parent of this route in the router state tree. */\n get parent() {\n return this._routerState.parent(this);\n }\n /** The first child of this route in the router state tree. */\n get firstChild() {\n return this._routerState.firstChild(this);\n }\n /** The children of this route in the router state tree. */\n get children() {\n return this._routerState.children(this);\n }\n /** The path from the root of the router state tree to this route. */\n get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }\n /**\n * An Observable that contains a map of the required and optional parameters\n * specific to the route.\n * The map supports retrieving single and multiple values from the same parameter.\n */\n get paramMap() {\n this._paramMap ??= this.params.pipe(map((p) => convertToParamMap(p)));\n return this._paramMap;\n }\n /**\n * An Observable that contains a map of the query parameters available to all routes.\n * The map supports retrieving single and multiple values from the query parameter.\n */\n get queryParamMap() {\n this._queryParamMap ??= this.queryParams.pipe(map((p) => convertToParamMap(p)));\n return this._queryParamMap;\n }\n toString() {\n return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;\n }\n}\n/**\n * Returns the inherited params, data, and resolve for a given route.\n *\n * By default, we do not inherit parent data unless the current route is path-less or the parent\n * route is component-less.\n */\nfunction getInherited(route, parent, paramsInheritanceStrategy = 'emptyOnly') {\n let inherited;\n const { routeConfig } = route;\n if (parent !== null &&\n (paramsInheritanceStrategy === 'always' ||\n // inherit parent data if route is empty path\n routeConfig?.path === '' ||\n // inherit parent data if parent was componentless\n (!parent.component && !parent.routeConfig?.loadComponent))) {\n inherited = {\n params: { ...parent.params, ...route.params },\n data: { ...parent.data, ...route.data },\n resolve: {\n // Snapshots are created with data inherited from parent and guards (i.e. canActivate) can\n // change data because it's not frozen...\n // This first line could be deleted chose to break/disallow mutating the `data` object in\n // guards.\n // Note that data from parents still override this mutated data so anyone relying on this\n // might be surprised that it doesn't work if parent data is inherited but otherwise does.\n ...route.data,\n // Ensure inherited resolved data overrides inherited static data\n ...parent.data,\n // static data from the current route overrides any inherited data\n ...routeConfig?.data,\n // resolved data from current route overrides everything\n ...route._resolvedData,\n },\n };\n }\n else {\n inherited = {\n params: { ...route.params },\n data: { ...route.data },\n resolve: { ...route.data, ...(route._resolvedData ?? {}) },\n };\n }\n if (routeConfig && hasStaticTitle(routeConfig)) {\n inherited.resolve[RouteTitleKey] = routeConfig.title;\n }\n return inherited;\n}\n/**\n * @description\n *\n * Contains the information about a route associated with a component loaded in an\n * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to\n * traverse the router state tree.\n *\n * The following example initializes a component with route information extracted\n * from the snapshot of the root node at the time of creation.\n *\n * ```\n * @Component({templateUrl:'./my-component.html'})\n * class MyComponent {\n * constructor(route: ActivatedRoute) {\n * const id: string = route.snapshot.params.id;\n * const url: string = route.snapshot.url.join('');\n * const user = route.snapshot.data.user;\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass ActivatedRouteSnapshot {\n /** The resolved route title */\n get title() {\n // Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be\n // available at the time of class instantiation.\n return this.data?.[RouteTitleKey];\n }\n /** @internal */\n constructor(\n /** The URL segments matched by this route */\n url, \n /**\n * The matrix parameters scoped to this route.\n *\n * You can compute all params (or data) in the router state or to get params outside\n * of an activated component by traversing the `RouterState` tree as in the following\n * example:\n * ```\n * collectRouteParams(router: Router) {\n * let params = {};\n * let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];\n * while (stack.length > 0) {\n * const route = stack.pop()!;\n * params = {...params, ...route.params};\n * stack.push(...route.children);\n * }\n * return params;\n * }\n * ```\n */\n params, \n /** The query parameters shared by all the routes */\n queryParams, \n /** The URL fragment shared by all the routes */\n fragment, \n /** The static and resolved data of this route */\n data, \n /** The outlet name of the route */\n outlet, \n /** The component of the route */\n component, routeConfig, resolve) {\n this.url = url;\n this.params = params;\n this.queryParams = queryParams;\n this.fragment = fragment;\n this.data = data;\n this.outlet = outlet;\n this.component = component;\n this.routeConfig = routeConfig;\n this._resolve = resolve;\n }\n /** The root of the router state */\n get root() {\n return this._routerState.root;\n }\n /** The parent of this route in the router state tree */\n get parent() {\n return this._routerState.parent(this);\n }\n /** The first child of this route in the router state tree */\n get firstChild() {\n return this._routerState.firstChild(this);\n }\n /** The children of this route in the router state tree */\n get children() {\n return this._routerState.children(this);\n }\n /** The path from the root of the router state tree to this route */\n get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }\n get paramMap() {\n this._paramMap ??= convertToParamMap(this.params);\n return this._paramMap;\n }\n get queryParamMap() {\n this._queryParamMap ??= convertToParamMap(this.queryParams);\n return this._queryParamMap;\n }\n toString() {\n const url = this.url.map((segment) => segment.toString()).join('/');\n const matched = this.routeConfig ? this.routeConfig.path : '';\n return `Route(url:'${url}', path:'${matched}')`;\n }\n}\n/**\n * @description\n *\n * Represents the state of the router at a moment in time.\n *\n * This is a tree of activated route snapshots. Every node in this tree knows about\n * the \"consumed\" URL segments, the extracted parameters, and the resolved data.\n *\n * The following example shows how a component is initialized with information\n * from the snapshot of the root node's state at the time of creation.\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const state: RouterState = router.routerState;\n * const snapshot: RouterStateSnapshot = state.snapshot;\n * const root: ActivatedRouteSnapshot = snapshot.root;\n * const child = root.firstChild;\n * const id: Observable<string> = child.params.map(p => p.id);\n * //...\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass RouterStateSnapshot extends Tree {\n /** @internal */\n constructor(\n /** The url from which this snapshot was created */\n url, root) {\n super(root);\n this.url = url;\n setRouterState(this, root);\n }\n toString() {\n return serializeNode(this._root);\n }\n}\nfunction setRouterState(state, node) {\n node.value._routerState = state;\n node.children.forEach((c) => setRouterState(state, c));\n}\nfunction serializeNode(node) {\n const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';\n return `${node.value}${c}`;\n}\n/**\n * The expectation is that the activate route is created with the right set of parameters.\n * So we push new values into the observables only when they are not the initial values.\n * And we detect that by checking if the snapshot field is set.\n */\nfunction advanceActivatedRoute(route) {\n if (route.snapshot) {\n const currentSnapshot = route.snapshot;\n const nextSnapshot = route._futureSnapshot;\n route.snapshot = nextSnapshot;\n if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {\n route.queryParamsSubject.next(nextSnapshot.queryParams);\n }\n if (currentSnapshot.fragment !== nextSnapshot.fragment) {\n route.fragmentSubject.next(nextSnapshot.fragment);\n }\n if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {\n route.paramsSubject.next(nextSnapshot.params);\n }\n if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {\n route.urlSubject.next(nextSnapshot.url);\n }\n if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {\n route.dataSubject.next(nextSnapshot.data);\n }\n }\n else {\n route.snapshot = route._futureSnapshot;\n // this is for resolved data\n route.dataSubject.next(route._futureSnapshot.data);\n }\n}\nfunction equalParamsAndUrlSegments(a, b) {\n const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);\n const parentsMismatch = !a.parent !== !b.parent;\n return (equalUrlParams &&\n !parentsMismatch &&\n (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent)));\n}\nfunction hasStaticTitle(config) {\n return typeof config.title === 'string' || config.title === null;\n}\n\n/**\n * @description\n *\n * Acts as a placeholder that Angular dynamically fills based on the current router state.\n *\n * Each outlet can have a unique name, determined by the optional `name` attribute.\n * The name cannot be set or changed dynamically. If not set, default value is \"primary\".\n *\n * ```\n * <router-outlet></router-outlet>\n * <router-outlet name='left'></router-outlet>\n * <router-outlet name='right'></router-outlet>\n * ```\n *\n * Named outlets can be the targets of secondary routes.\n * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:\n *\n * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`\n *\n * Using named outlets and secondary routes, you can target multiple outlets in\n * the same `RouterLink` directive.\n *\n * The router keeps track of separate branches in a navigation tree for each named outlet and\n * generates a representation of that tree in the URL.\n * The URL for a secondary route uses the following syntax to specify both the primary and secondary\n * routes at the same time:\n *\n * `http://base-path/primary-route-path(outlet-name:route-path)`\n *\n * A router outlet emits an activate event when a new component is instantiated,\n * deactivate event when a component is destroyed.\n * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the\n * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to\n * detach the subtree.\n *\n * ```\n * <router-outlet\n * (activate)='onActivate($event)'\n * (deactivate)='onDeactivate($event)'\n * (attach)='onAttach($event)'\n * (detach)='onDetach($event)'></router-outlet>\n * ```\n *\n * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets \"Example of a named\n * outlet and secondary route configuration\").\n * @see {@link RouterLink}\n * @see {@link Route}\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterOutlet {\n constructor() {\n this.activated = null;\n this._activatedRoute = null;\n /**\n * The name of the outlet\n *\n * @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)\n */\n this.name = PRIMARY_OUTLET;\n this.activateEvents = new EventEmitter();\n this.deactivateEvents = new EventEmitter();\n /**\n * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a\n * previously detached subtree.\n **/\n this.attachEvents = new EventEmitter();\n /**\n * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the\n * subtree.\n */\n this.detachEvents = new EventEmitter();\n this.parentContexts = inject(ChildrenOutletContexts);\n this.location = inject(ViewContainerRef);\n this.changeDetector = inject(ChangeDetectorRef);\n this.environmentInjector = inject(EnvironmentInjector);\n this.inputBinder = inject(INPUT_BINDER, { optional: true });\n /** @nodoc */\n this.supportsBindingToComponentInputs = true;\n }\n /** @internal */\n get activatedComponentRef() {\n return this.activated;\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (changes['name']) {\n const { firstChange, previousValue } = changes['name'];\n if (firstChange) {\n // The first change is handled by ngOnInit. Because ngOnChanges doesn't get called when no\n // input is set at all, we need to centrally handle the first change there.\n return;\n }\n // unregister with the old name\n if (this.isTrackedInParentContexts(previousValue)) {\n this.deactivate();\n this.parentContexts.onChildOutletDestroyed(previousValue);\n }\n // register the new name\n this.initializeOutletWithName();\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n // Ensure that the registered outlet is this one before removing it on the context.\n if (this.isTrackedInParentContexts(this.name)) {\n this.parentContexts.onChildOutletDestroyed(this.name);\n }\n this.inputBinder?.unsubscribeFromRouteData(this);\n }\n isTrackedInParentContexts(outletName) {\n return this.parentContexts.getContext(outletName)?.outlet === this;\n }\n /** @nodoc */\n ngOnInit() {\n this.initializeOutletWithName();\n }\n initializeOutletWithName() {\n this.parentContexts.onChildOutletCreated(this.name, this);\n if (this.activated) {\n return;\n }\n // If the outlet was not instantiated at the time the route got activated we need to populate\n // the outlet when it is initialized (ie inside a NgIf)\n const context = this.parentContexts.getContext(this.name);\n if (context?.route) {\n if (context.attachRef) {\n // `attachRef` is populated when there is an existing component to mount\n this.attach(context.attachRef, context.route);\n }\n else {\n // otherwise the component defined in the configuration is created\n this.activateWith(context.route, context.injector);\n }\n }\n }\n get isActivated() {\n return !!this.activated;\n }\n /**\n * @returns The currently activated component instance.\n * @throws An error if the outlet is not activated.\n */\n get component() {\n if (!this.activated)\n throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n return this.activated.instance;\n }\n get activatedRoute() {\n if (!this.activated)\n throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n return this._activatedRoute;\n }\n get activatedRouteData() {\n if (this._activatedRoute) {\n return this._activatedRoute.snapshot.data;\n }\n return {};\n }\n /**\n * Called when the `RouteReuseStrategy` instructs to detach the subtree\n */\n detach() {\n if (!this.activated)\n throw new ɵRuntimeError(4012 /* RuntimeErrorCode.OUTLET_NOT_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated');\n this.location.detach();\n const cmp = this.activated;\n this.activated = null;\n this._activatedRoute = null;\n this.detachEvents.emit(cmp.instance);\n return cmp;\n }\n /**\n * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree\n */\n attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n this.attachEvents.emit(ref.instance);\n }\n deactivate() {\n if (this.activated) {\n const c = this.component;\n this.activated.destroy();\n this.activated = null;\n this._activatedRoute = null;\n this.deactivateEvents.emit(c);\n }\n }\n activateWith(activatedRoute, environmentInjector) {\n if (this.isActivated) {\n throw new ɵRuntimeError(4013 /* RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n 'Cannot activate an already activated outlet');\n }\n this._activatedRoute = activatedRoute;\n const location = this.location;\n const snapshot = activatedRoute.snapshot;\n const component = snapshot.component;\n const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n const injector = new OutletInjector(activatedRoute, childContexts, location.injector);\n this.activated = location.createComponent(component, {\n index: location.length,\n injector,\n environmentInjector: environmentInjector ?? this.environmentInjector,\n });\n // Calling `markForCheck` to make sure we will run the change detection when the\n // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.\n this.changeDetector.markForCheck();\n this.inputBinder?.bindActivatedRouteToOutletComponent(this);\n this.activateEvents.emit(this.activated.instance);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RouterOutlet, isStandalone: true, selector: \"router-outlet\", inputs: { name: \"name\" }, outputs: { activateEvents: \"activate\", deactivateEvents: \"deactivate\", attachEvents: \"attach\", detachEvents: \"detach\" }, exportAs: [\"outlet\"], usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: 'router-outlet',\n exportAs: 'outlet',\n standalone: true,\n }]\n }], propDecorators: { name: [{\n type: Input\n }], activateEvents: [{\n type: Output,\n args: ['activate']\n }], deactivateEvents: [{\n type: Output,\n args: ['deactivate']\n }], attachEvents: [{\n type: Output,\n args: ['attach']\n }], detachEvents: [{\n type: Output,\n args: ['detach']\n }] } });\nclass OutletInjector {\n /**\n * This injector has a special handing for the `ActivatedRoute` and\n * `ChildrenOutletContexts` tokens: it returns corresponding values for those\n * tokens dynamically. This behavior is different from the regular injector logic,\n * when we initialize and store a value, which is later returned for all inject\n * requests.\n *\n * In some cases (e.g. when using `@defer`), this dynamic behavior requires special\n * handling. This function allows to identify an instance of the `OutletInjector` and\n * create an instance of it without referring to the class itself (so this logic can\n * be invoked from the `core` package). This helps to retain dynamic behavior for the\n * mentioned tokens.\n *\n * Note: it's a temporary solution and we should explore how to support this case better.\n */\n __ngOutletInjector(parentInjector) {\n return new OutletInjector(this.route, this.childContexts, parentInjector);\n }\n constructor(route, childContexts, parent) {\n this.route = route;\n this.childContexts = childContexts;\n this.parent = parent;\n }\n get(token, notFoundValue) {\n if (token === ActivatedRoute) {\n return this.route;\n }\n if (token === ChildrenOutletContexts) {\n return this.childContexts;\n }\n return this.parent.get(token, notFoundValue);\n }\n}\nconst INPUT_BINDER = new InjectionToken('');\n/**\n * Injectable used as a tree-shakable provider for opting in to binding router data to component\n * inputs.\n *\n * The RouterOutlet registers itself with this service when an `ActivatedRoute` is attached or\n * activated. When this happens, the service subscribes to the `ActivatedRoute` observables (params,\n * queryParams, data) and sets the inputs of the component using `ComponentRef.setInput`.\n * Importantly, when an input does not have an item in the route data with a matching key, this\n * input is set to `undefined`. If it were not done this way, the previous information would be\n * retained if the data got removed from the route (i.e. if a query parameter is removed).\n *\n * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that\n * the subscriptions are cleaned up.\n */\nclass RoutedComponentInputBinder {\n constructor() {\n this.outletDataSubscriptions = new Map();\n }\n bindActivatedRouteToOutletComponent(outlet) {\n this.unsubscribeFromRouteData(outlet);\n this.subscribeToRouteData(outlet);\n }\n unsubscribeFromRouteData(outlet) {\n this.outletDataSubscriptions.get(outlet)?.unsubscribe();\n this.outletDataSubscriptions.delete(outlet);\n }\n subscribeToRouteData(outlet) {\n const { activatedRoute } = outlet;\n const dataSubscription = combineLatest([\n activatedRoute.queryParams,\n activatedRoute.params,\n activatedRoute.data,\n ])\n .pipe(switchMap(([queryParams, params, data], index) => {\n data = { ...queryParams, ...params, ...data };\n // Get the first result from the data subscription synchronously so it's available to\n // the component as soon as possible (and doesn't require a second change detection).\n if (index === 0) {\n return of(data);\n }\n // Promise.resolve is used to avoid synchronously writing the wrong data when\n // two of the Observables in the `combineLatest` stream emit one after\n // another.\n return Promise.resolve(data);\n }))\n .subscribe((data) => {\n // Outlet may have been deactivated or changed names to be associated with a different\n // route\n if (!outlet.isActivated ||\n !outlet.activatedComponentRef ||\n outlet.activatedRoute !== activatedRoute ||\n activatedRoute.component === null) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n const mirror = reflectComponentType(activatedRoute.component);\n if (!mirror) {\n this.unsubscribeFromRouteData(outlet);\n return;\n }\n for (const { templateName } of mirror.inputs) {\n outlet.activatedComponentRef.setInput(templateName, data[templateName]);\n }\n });\n this.outletDataSubscriptions.set(outlet, dataSubscription);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RoutedComponentInputBinder }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{\n type: Injectable\n }] });\n\nfunction createRouterState(routeReuseStrategy, curr, prevState) {\n const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);\n return new RouterState(root, curr);\n}\nfunction createNode(routeReuseStrategy, curr, prevState) {\n // reuse an activated route that is currently displayed on the screen\n if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {\n const value = prevState.value;\n value._futureSnapshot = curr.value;\n const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);\n return new TreeNode(value, children);\n }\n else {\n if (routeReuseStrategy.shouldAttach(curr.value)) {\n // retrieve an activated route that is used to be displayed, but is not currently displayed\n const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);\n if (detachedRouteHandle !== null) {\n const tree = detachedRouteHandle.route;\n tree.value._futureSnapshot = curr.value;\n tree.children = curr.children.map((c) => createNode(routeReuseStrategy, c));\n return tree;\n }\n }\n const value = createActivatedRoute(curr.value);\n const children = curr.children.map((c) => createNode(routeReuseStrategy, c));\n return new TreeNode(value, children);\n }\n}\nfunction createOrReuseChildren(routeReuseStrategy, curr, prevState) {\n return curr.children.map((child) => {\n for (const p of prevState.children) {\n if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {\n return createNode(routeReuseStrategy, child, p);\n }\n }\n return createNode(routeReuseStrategy, child);\n });\n}\nfunction createActivatedRoute(c) {\n return new ActivatedRoute(new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams), new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c);\n}\n\nconst NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';\nfunction redirectingNavigationError(urlSerializer, redirect) {\n const { redirectTo, navigationBehaviorOptions } = isUrlTree(redirect)\n ? { redirectTo: redirect, navigationBehaviorOptions: undefined }\n : redirect;\n const error = navigationCancelingError(ngDevMode && `Redirecting to \"${urlSerializer.serialize(redirectTo)}\"`, NavigationCancellationCode.Redirect);\n error.url = redirectTo;\n error.navigationBehaviorOptions = navigationBehaviorOptions;\n return error;\n}\nfunction navigationCancelingError(message, code) {\n const error = new Error(`NavigationCancelingError: ${message || ''}`);\n error[NAVIGATION_CANCELING_ERROR] = true;\n error.cancellationCode = code;\n return error;\n}\nfunction isRedirectingNavigationCancelingError(error) {\n return (isNavigationCancelingError(error) &&\n isUrlTree(error.url));\n}\nfunction isNavigationCancelingError(error) {\n return !!error && error[NAVIGATION_CANCELING_ERROR];\n}\n\n/**\n * This component is used internally within the router to be a placeholder when an empty\n * router-outlet is needed. For example, with a config such as:\n *\n * `{path: 'parent', outlet: 'nav', children: [...]}`\n *\n * In order to render, there needs to be a component on this config, which will default\n * to this `EmptyOutletComponent`.\n */\nclass ɵEmptyOutletComponent {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ɵEmptyOutletComponent, isStandalone: true, selector: \"ng-component\", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, dependencies: [{ kind: \"directive\", type: RouterOutlet, selector: \"router-outlet\", inputs: [\"name\"], outputs: [\"activate\", \"deactivate\", \"attach\", \"detach\"], exportAs: [\"outlet\"] }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{\n type: Component,\n args: [{\n template: `<router-outlet></router-outlet>`,\n imports: [RouterOutlet],\n standalone: true,\n }]\n }] });\n\n/**\n * Creates an `EnvironmentInjector` if the `Route` has providers and one does not already exist\n * and returns the injector. Otherwise, if the `Route` does not have `providers`, returns the\n * `currentInjector`.\n *\n * @param route The route that might have providers\n * @param currentInjector The parent injector of the `Route`\n */\nfunction getOrCreateRouteInjectorIfNeeded(route, currentInjector) {\n if (route.providers && !route._injector) {\n route._injector = createEnvironmentInjector(route.providers, currentInjector, `Route: ${route.path}`);\n }\n return route._injector ?? currentInjector;\n}\nfunction getLoadedRoutes(route) {\n return route._loadedRoutes;\n}\nfunction getLoadedInjector(route) {\n return route._loadedInjector;\n}\nfunction getLoadedComponent(route) {\n return route._loadedComponent;\n}\nfunction getProvidersInjector(route) {\n return route._injector;\n}\nfunction validateConfig(config, parentPath = '', requireStandaloneComponents = false) {\n // forEach doesn't iterate undefined values\n for (let i = 0; i < config.length; i++) {\n const route = config[i];\n const fullPath = getFullPath(parentPath, route);\n validateNode(route, fullPath, requireStandaloneComponents);\n }\n}\nfunction assertStandalone(fullPath, component) {\n if (component && ɵisNgModule(component)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. You are using 'loadComponent' with a module, ` +\n `but it must be used with standalone components. Use 'loadChildren' instead.`);\n }\n else if (component && !isStandalone(component)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. The component must be standalone.`);\n }\n}\nfunction validateNode(route, fullPath, requireStandaloneComponents) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!route) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `\n Invalid configuration of route '${fullPath}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);\n }\n if (Array.isArray(route)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': Array cannot be specified`);\n }\n if (!route.redirectTo &&\n !route.component &&\n !route.loadComponent &&\n !route.children &&\n !route.loadChildren &&\n route.outlet &&\n route.outlet !== PRIMARY_OUTLET) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);\n }\n if (route.redirectTo && route.children) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and children cannot be used together`);\n }\n if (route.redirectTo && route.loadChildren) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and loadChildren cannot be used together`);\n }\n if (route.children && route.loadChildren) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': children and loadChildren cannot be used together`);\n }\n if (route.redirectTo && (route.component || route.loadComponent)) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and component/loadComponent cannot be used together`);\n }\n if (route.component && route.loadComponent) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': component and loadComponent cannot be used together`);\n }\n if (route.redirectTo && route.canActivate) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` +\n `so canActivate will never be executed.`);\n }\n if (route.path && route.matcher) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);\n }\n if (route.redirectTo === void 0 &&\n !route.component &&\n !route.loadComponent &&\n !route.children &&\n !route.loadChildren) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);\n }\n if (route.path === void 0 && route.matcher === void 0) {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': routes must have either a path or a matcher specified`);\n }\n if (typeof route.path === 'string' && route.path.charAt(0) === '/') {\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}': path cannot start with a slash`);\n }\n if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {\n const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;\n throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '{path: \"${fullPath}\", redirectTo: \"${route.redirectTo}\"}': please provide 'pathMatch'. ${exp}`);\n }\n if (requireStandaloneComponents) {\n assertStandalone(fullPath, route.component);\n }\n }\n if (route.children) {\n validateConfig(route.children, fullPath, requireStandaloneComponents);\n }\n}\nfunction getFullPath(parentPath, currentRoute) {\n if (!currentRoute) {\n return parentPath;\n }\n if (!parentPath && !currentRoute.path) {\n return '';\n }\n else if (parentPath && !currentRoute.path) {\n return `${parentPath}/`;\n }\n else if (!parentPath && currentRoute.path) {\n return currentRoute.path;\n }\n else {\n return `${parentPath}/${currentRoute.path}`;\n }\n}\n/**\n * Makes a copy of the config and adds any default required properties.\n */\nfunction standardizeConfig(r) {\n const children = r.children && r.children.map(standardizeConfig);\n const c = children ? { ...r, children } : { ...r };\n if (!c.component &&\n !c.loadComponent &&\n (children || c.loadChildren) &&\n c.outlet &&\n c.outlet !== PRIMARY_OUTLET) {\n c.component = ɵEmptyOutletComponent;\n }\n return c;\n}\n/** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */\nfunction getOutlet(route) {\n return route.outlet || PRIMARY_OUTLET;\n}\n/**\n * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.\n * The order of the configs is otherwise preserved.\n */\nfunction sortByMatchingOutlets(routes, outletName) {\n const sortedConfig = routes.filter((r) => getOutlet(r) === outletName);\n sortedConfig.push(...routes.filter((r) => getOutlet(r) !== outletName));\n return sortedConfig;\n}\n/**\n * Gets the first injector in the snapshot's parent tree.\n *\n * If the `Route` has a static list of providers, the returned injector will be the one created from\n * those. If it does not exist, the returned injector may come from the parents, which may be from a\n * loaded config or their static providers.\n *\n * Returns `null` if there is neither this nor any parents have a stored injector.\n *\n * Generally used for retrieving the injector to use for getting tokens for guards/resolvers and\n * also used for getting the correct injector to use for creating components.\n */\nfunction getClosestRouteInjector(snapshot) {\n if (!snapshot)\n return null;\n // If the current route has its own injector, which is created from the static providers on the\n // route itself, we should use that. Otherwise, we start at the parent since we do not want to\n // include the lazy loaded injector from this route.\n if (snapshot.routeConfig?._injector) {\n return snapshot.routeConfig._injector;\n }\n for (let s = snapshot.parent; s; s = s.parent) {\n const route = s.routeConfig;\n // Note that the order here is important. `_loadedInjector` stored on the route with\n // `loadChildren: () => NgModule` so it applies to child routes with priority. The `_injector`\n // is created from the static providers on that parent route, so it applies to the children as\n // well, but only if there is no lazy loaded NgModuleRef injector.\n if (route?._loadedInjector)\n return route._loadedInjector;\n if (route?._injector)\n return route._injector;\n }\n return null;\n}\n\nlet warnedAboutUnsupportedInputBinding = false;\nconst activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent, inputBindingEnabled) => map((t) => {\n new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent, inputBindingEnabled).activate(rootContexts);\n return t;\n});\nclass ActivateRoutes {\n constructor(routeReuseStrategy, futureState, currState, forwardEvent, inputBindingEnabled) {\n this.routeReuseStrategy = routeReuseStrategy;\n this.futureState = futureState;\n this.currState = currState;\n this.forwardEvent = forwardEvent;\n this.inputBindingEnabled = inputBindingEnabled;\n }\n activate(parentContexts) {\n const futureRoot = this.futureState._root;\n const currRoot = this.currState ? this.currState._root : null;\n this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);\n advanceActivatedRoute(this.futureState.root);\n this.activateChildRoutes(futureRoot, currRoot, parentContexts);\n }\n // De-activate the child route that are not re-used for the future state\n deactivateChildRoutes(futureNode, currNode, contexts) {\n const children = nodeChildrenAsMap(currNode);\n // Recurse on the routes active in the future state to de-activate deeper children\n futureNode.children.forEach((futureChild) => {\n const childOutletName = futureChild.value.outlet;\n this.deactivateRoutes(futureChild, children[childOutletName], contexts);\n delete children[childOutletName];\n });\n // De-activate the routes that will not be re-used\n Object.values(children).forEach((v) => {\n this.deactivateRouteAndItsChildren(v, contexts);\n });\n }\n deactivateRoutes(futureNode, currNode, parentContext) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n if (future === curr) {\n // Reusing the node, check to see if the children need to be de-activated\n if (future.component) {\n // If we have a normal route, we need to go through an outlet.\n const context = parentContext.getContext(future.outlet);\n if (context) {\n this.deactivateChildRoutes(futureNode, currNode, context.children);\n }\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.deactivateChildRoutes(futureNode, currNode, parentContext);\n }\n }\n else {\n if (curr) {\n // Deactivate the current route which will not be re-used\n this.deactivateRouteAndItsChildren(currNode, parentContext);\n }\n }\n }\n deactivateRouteAndItsChildren(route, parentContexts) {\n // If there is no component, the Route is never attached to an outlet (because there is no\n // component to attach).\n if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {\n this.detachAndStoreRouteSubtree(route, parentContexts);\n }\n else {\n this.deactivateRouteAndOutlet(route, parentContexts);\n }\n }\n detachAndStoreRouteSubtree(route, parentContexts) {\n const context = parentContexts.getContext(route.value.outlet);\n const contexts = context && route.value.component ? context.children : parentContexts;\n const children = nodeChildrenAsMap(route);\n for (const treeNode of Object.values(children)) {\n this.deactivateRouteAndItsChildren(treeNode, contexts);\n }\n if (context && context.outlet) {\n const componentRef = context.outlet.detach();\n const contexts = context.children.onOutletDeactivated();\n this.routeReuseStrategy.store(route.value.snapshot, { componentRef, route, contexts });\n }\n }\n deactivateRouteAndOutlet(route, parentContexts) {\n const context = parentContexts.getContext(route.value.outlet);\n // The context could be `null` if we are on a componentless route but there may still be\n // children that need deactivating.\n const contexts = context && route.value.component ? context.children : parentContexts;\n const children = nodeChildrenAsMap(route);\n for (const treeNode of Object.values(children)) {\n this.deactivateRouteAndItsChildren(treeNode, contexts);\n }\n if (context) {\n if (context.outlet) {\n // Destroy the component\n context.outlet.deactivate();\n // Destroy the contexts for all the outlets that were in the component\n context.children.onOutletDeactivated();\n }\n // Clear the information about the attached component on the context but keep the reference to\n // the outlet. Clear even if outlet was not yet activated to avoid activating later with old\n // info\n context.attachRef = null;\n context.route = null;\n }\n }\n activateChildRoutes(futureNode, currNode, contexts) {\n const children = nodeChildrenAsMap(currNode);\n futureNode.children.forEach((c) => {\n this.activateRoutes(c, children[c.value.outlet], contexts);\n this.forwardEvent(new ActivationEnd(c.value.snapshot));\n });\n if (futureNode.children.length) {\n this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));\n }\n }\n activateRoutes(futureNode, currNode, parentContexts) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n advanceActivatedRoute(future);\n // reusing the node\n if (future === curr) {\n if (future.component) {\n // If we have a normal route, we need to go through an outlet.\n const context = parentContexts.getOrCreateContext(future.outlet);\n this.activateChildRoutes(futureNode, currNode, context.children);\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.activateChildRoutes(futureNode, currNode, parentContexts);\n }\n }\n else {\n if (future.component) {\n // if we have a normal route, we need to place the component into the outlet and recurse.\n const context = parentContexts.getOrCreateContext(future.outlet);\n if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {\n const stored = (this.routeReuseStrategy.retrieve(future.snapshot));\n this.routeReuseStrategy.store(future.snapshot, null);\n context.children.onOutletReAttached(stored.contexts);\n context.attachRef = stored.componentRef;\n context.route = stored.route.value;\n if (context.outlet) {\n // Attach right away when the outlet has already been instantiated\n // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated\n context.outlet.attach(stored.componentRef, stored.route.value);\n }\n advanceActivatedRoute(stored.route.value);\n this.activateChildRoutes(futureNode, null, context.children);\n }\n else {\n const injector = getClosestRouteInjector(future.snapshot);\n context.attachRef = null;\n context.route = future;\n context.injector = injector;\n if (context.outlet) {\n // Activate the outlet when it has already been instantiated\n // Otherwise it will get activated from its `ngOnInit` when instantiated\n context.outlet.activateWith(future, context.injector);\n }\n this.activateChildRoutes(futureNode, null, context.children);\n }\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.activateChildRoutes(futureNode, null, parentContexts);\n }\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const context = parentContexts.getOrCreateContext(future.outlet);\n const outlet = context.outlet;\n if (outlet &&\n this.inputBindingEnabled &&\n !outlet.supportsBindingToComponentInputs &&\n !warnedAboutUnsupportedInputBinding) {\n console.warn(`'withComponentInputBinding' feature is enabled but ` +\n `this application is using an outlet that may not support binding to component inputs.`);\n warnedAboutUnsupportedInputBinding = true;\n }\n }\n }\n}\n\nclass CanActivate {\n constructor(path) {\n this.path = path;\n this.route = this.path[this.path.length - 1];\n }\n}\nclass CanDeactivate {\n constructor(component, route) {\n this.component = component;\n this.route = route;\n }\n}\nfunction getAllRouteGuards(future, curr, parentContexts) {\n const futureRoot = future._root;\n const currRoot = curr ? curr._root : null;\n return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);\n}\nfunction getCanActivateChild(p) {\n const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;\n if (!canActivateChild || canActivateChild.length === 0)\n return null;\n return { node: p, guards: canActivateChild };\n}\nfunction getTokenOrFunctionIdentity(tokenOrFunction, injector) {\n const NOT_FOUND = Symbol();\n const result = injector.get(tokenOrFunction, NOT_FOUND);\n if (result === NOT_FOUND) {\n if (typeof tokenOrFunction === 'function' && !ɵisInjectable(tokenOrFunction)) {\n // We think the token is just a function so return it as-is\n return tokenOrFunction;\n }\n else {\n // This will throw the not found error\n return injector.get(tokenOrFunction);\n }\n }\n return result;\n}\nfunction getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks = {\n canDeactivateChecks: [],\n canActivateChecks: [],\n}) {\n const prevChildren = nodeChildrenAsMap(currNode);\n // Process the children of the future route\n futureNode.children.forEach((c) => {\n getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);\n delete prevChildren[c.value.outlet];\n });\n // Process any children left from the current route (not active for the future route)\n Object.entries(prevChildren).forEach(([k, v]) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));\n return checks;\n}\nfunction getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {\n canDeactivateChecks: [],\n canActivateChecks: [],\n}) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;\n // reusing the node\n if (curr && future.routeConfig === curr.routeConfig) {\n const shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);\n if (shouldRun) {\n checks.canActivateChecks.push(new CanActivate(futurePath));\n }\n else {\n // we need to set the data\n future.data = curr.data;\n future._resolvedData = curr._resolvedData;\n }\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks);\n // if we have a componentless route, we recurse but keep the same outlet map.\n }\n else {\n getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);\n }\n if (shouldRun && context && context.outlet && context.outlet.isActivated) {\n checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));\n }\n }\n else {\n if (curr) {\n deactivateRouteAndItsChildren(currNode, context, checks);\n }\n checks.canActivateChecks.push(new CanActivate(futurePath));\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);\n // if we have a componentless route, we recurse but keep the same outlet map.\n }\n else {\n getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);\n }\n }\n return checks;\n}\nfunction shouldRunGuardsAndResolvers(curr, future, mode) {\n if (typeof mode === 'function') {\n return mode(curr, future);\n }\n switch (mode) {\n case 'pathParamsChange':\n return !equalPath(curr.url, future.url);\n case 'pathParamsOrQueryParamsChange':\n return (!equalPath(curr.url, future.url) || !shallowEqual(curr.queryParams, future.queryParams));\n case 'always':\n return true;\n case 'paramsOrQueryParamsChange':\n return (!equalParamsAndUrlSegments(curr, future) ||\n !shallowEqual(curr.queryParams, future.queryParams));\n case 'paramsChange':\n default:\n return !equalParamsAndUrlSegments(curr, future);\n }\n}\nfunction deactivateRouteAndItsChildren(route, context, checks) {\n const children = nodeChildrenAsMap(route);\n const r = route.value;\n Object.entries(children).forEach(([childName, node]) => {\n if (!r.component) {\n deactivateRouteAndItsChildren(node, context, checks);\n }\n else if (context) {\n deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);\n }\n else {\n deactivateRouteAndItsChildren(node, null, checks);\n }\n });\n if (!r.component) {\n checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n }\n else if (context && context.outlet && context.outlet.isActivated) {\n checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));\n }\n else {\n checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n }\n}\n\n/**\n * Simple function check, but generic so type inference will flow. Example:\n *\n * function product(a: number, b: number) {\n * return a * b;\n * }\n *\n * if (isFunction<product>(fn)) {\n * return fn(1, 2);\n * } else {\n * throw \"Must provide the `product` function\";\n * }\n */\nfunction isFunction(v) {\n return typeof v === 'function';\n}\nfunction isBoolean(v) {\n return typeof v === 'boolean';\n}\nfunction isCanLoad(guard) {\n return guard && isFunction(guard.canLoad);\n}\nfunction isCanActivate(guard) {\n return guard && isFunction(guard.canActivate);\n}\nfunction isCanActivateChild(guard) {\n return guard && isFunction(guard.canActivateChild);\n}\nfunction isCanDeactivate(guard) {\n return guard && isFunction(guard.canDeactivate);\n}\nfunction isCanMatch(guard) {\n return guard && isFunction(guard.canMatch);\n}\nfunction isEmptyError(e) {\n return e instanceof EmptyError || e?.name === 'EmptyError';\n}\n\nconst INITIAL_VALUE = /* @__PURE__ */ Symbol('INITIAL_VALUE');\nfunction prioritizedGuardValue() {\n return switchMap((obs) => {\n return combineLatest(obs.map((o) => o.pipe(take(1), startWith(INITIAL_VALUE)))).pipe(map((results) => {\n for (const result of results) {\n if (result === true) {\n // If result is true, check the next one\n continue;\n }\n else if (result === INITIAL_VALUE) {\n // If guard has not finished, we need to stop processing.\n return INITIAL_VALUE;\n }\n else if (result === false || result instanceof UrlTree) {\n // Result finished and was not true. Return the result.\n // Note that we only allow false/UrlTree. Other values are considered invalid and\n // ignored.\n return result;\n }\n }\n // Everything resolved to true. Return true.\n return true;\n }), filter((item) => item !== INITIAL_VALUE), take(1));\n });\n}\n\nfunction checkGuards(injector, forwardEvent) {\n return mergeMap((t) => {\n const { targetSnapshot, currentSnapshot, guards: { canActivateChecks, canDeactivateChecks }, } = t;\n if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {\n return of({ ...t, guardsResult: true });\n }\n return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, injector).pipe(mergeMap((canDeactivate) => {\n return canDeactivate && isBoolean(canDeactivate)\n ? runCanActivateChecks(targetSnapshot, canActivateChecks, injector, forwardEvent)\n : of(canDeactivate);\n }), map((guardsResult) => ({ ...t, guardsResult })));\n });\n}\nfunction runCanDeactivateChecks(checks, futureRSS, currRSS, injector) {\n return from(checks).pipe(mergeMap((check) => runCanDeactivate(check.component, check.route, currRSS, futureRSS, injector)), first((result) => {\n return result !== true;\n }, true));\n}\nfunction runCanActivateChecks(futureSnapshot, checks, injector, forwardEvent) {\n return from(checks).pipe(concatMap((check) => {\n return concat(fireChildActivationStart(check.route.parent, forwardEvent), fireActivationStart(check.route, forwardEvent), runCanActivateChild(futureSnapshot, check.path, injector), runCanActivate(futureSnapshot, check.route, injector));\n }), first((result) => {\n return result !== true;\n }, true));\n}\n/**\n * This should fire off `ActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireActivationStart(snapshot, forwardEvent) {\n if (snapshot !== null && forwardEvent) {\n forwardEvent(new ActivationStart(snapshot));\n }\n return of(true);\n}\n/**\n * This should fire off `ChildActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireChildActivationStart(snapshot, forwardEvent) {\n if (snapshot !== null && forwardEvent) {\n forwardEvent(new ChildActivationStart(snapshot));\n }\n return of(true);\n}\nfunction runCanActivate(futureRSS, futureARS, injector) {\n const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;\n if (!canActivate || canActivate.length === 0)\n return of(true);\n const canActivateObservables = canActivate.map((canActivate) => {\n return defer(() => {\n const closestInjector = getClosestRouteInjector(futureARS) ?? injector;\n const guard = getTokenOrFunctionIdentity(canActivate, closestInjector);\n const guardVal = isCanActivate(guard)\n ? guard.canActivate(futureARS, futureRSS)\n : runInInjectionContext(closestInjector, () => guard(futureARS, futureRSS));\n return wrapIntoObservable(guardVal).pipe(first());\n });\n });\n return of(canActivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanActivateChild(futureRSS, path, injector) {\n const futureARS = path[path.length - 1];\n const canActivateChildGuards = path\n .slice(0, path.length - 1)\n .reverse()\n .map((p) => getCanActivateChild(p))\n .filter((_) => _ !== null);\n const canActivateChildGuardsMapped = canActivateChildGuards.map((d) => {\n return defer(() => {\n const guardsMapped = d.guards.map((canActivateChild) => {\n const closestInjector = getClosestRouteInjector(d.node) ?? injector;\n const guard = getTokenOrFunctionIdentity(canActivateChild, closestInjector);\n const guardVal = isCanActivateChild(guard)\n ? guard.canActivateChild(futureARS, futureRSS)\n : runInInjectionContext(closestInjector, () => guard(futureARS, futureRSS));\n return wrapIntoObservable(guardVal).pipe(first());\n });\n return of(guardsMapped).pipe(prioritizedGuardValue());\n });\n });\n return of(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());\n}\nfunction runCanDeactivate(component, currARS, currRSS, futureRSS, injector) {\n const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;\n if (!canDeactivate || canDeactivate.length === 0)\n return of(true);\n const canDeactivateObservables = canDeactivate.map((c) => {\n const closestInjector = getClosestRouteInjector(currARS) ?? injector;\n const guard = getTokenOrFunctionIdentity(c, closestInjector);\n const guardVal = isCanDeactivate(guard)\n ? guard.canDeactivate(component, currARS, currRSS, futureRSS)\n : runInInjectionContext(closestInjector, () => guard(component, currARS, currRSS, futureRSS));\n return wrapIntoObservable(guardVal).pipe(first());\n });\n return of(canDeactivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanLoadGuards(injector, route, segments, urlSerializer) {\n const canLoad = route.canLoad;\n if (canLoad === undefined || canLoad.length === 0) {\n return of(true);\n }\n const canLoadObservables = canLoad.map((injectionToken) => {\n const guard = getTokenOrFunctionIdentity(injectionToken, injector);\n const guardVal = isCanLoad(guard)\n ? guard.canLoad(route, segments)\n : runInInjectionContext(injector, () => guard(route, segments));\n return wrapIntoObservable(guardVal);\n });\n return of(canLoadObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\nfunction redirectIfUrlTree(urlSerializer) {\n return pipe(tap((result) => {\n if (!isUrlTree(result))\n return;\n throw redirectingNavigationError(urlSerializer, result);\n }), map((result) => result === true));\n}\nfunction runCanMatchGuards(injector, route, segments, urlSerializer) {\n const canMatch = route.canMatch;\n if (!canMatch || canMatch.length === 0)\n return of(true);\n const canMatchObservables = canMatch.map((injectionToken) => {\n const guard = getTokenOrFunctionIdentity(injectionToken, injector);\n const guardVal = isCanMatch(guard)\n ? guard.canMatch(route, segments)\n : runInInjectionContext(injector, () => guard(route, segments));\n return wrapIntoObservable(guardVal);\n });\n return of(canMatchObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer));\n}\n\nclass NoMatch {\n constructor(segmentGroup) {\n this.segmentGroup = segmentGroup || null;\n }\n}\nclass AbsoluteRedirect extends Error {\n constructor(urlTree) {\n super();\n this.urlTree = urlTree;\n }\n}\nfunction noMatch$1(segmentGroup) {\n return throwError(new NoMatch(segmentGroup));\n}\nfunction absoluteRedirect(newTree) {\n return throwError(new AbsoluteRedirect(newTree));\n}\nfunction namedOutletsRedirect(redirectTo) {\n return throwError(new ɵRuntimeError(4000 /* RuntimeErrorCode.NAMED_OUTLET_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));\n}\nfunction canLoadFails(route) {\n return throwError(navigationCancelingError((typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Cannot load children because the guard of the route \"path: '${route.path}'\" returned false`, NavigationCancellationCode.GuardRejected));\n}\nclass ApplyRedirects {\n constructor(urlSerializer, urlTree) {\n this.urlSerializer = urlSerializer;\n this.urlTree = urlTree;\n }\n lineralizeSegments(route, urlTree) {\n let res = [];\n let c = urlTree.root;\n while (true) {\n res = res.concat(c.segments);\n if (c.numberOfChildren === 0) {\n return of(res);\n }\n if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {\n return namedOutletsRedirect(route.redirectTo);\n }\n c = c.children[PRIMARY_OUTLET];\n }\n }\n applyRedirectCommands(segments, redirectTo, posParams) {\n const newTree = this.applyRedirectCreateUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);\n if (redirectTo.startsWith('/')) {\n throw new AbsoluteRedirect(newTree);\n }\n return newTree;\n }\n applyRedirectCreateUrlTree(redirectTo, urlTree, segments, posParams) {\n const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);\n return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);\n }\n createQueryParams(redirectToParams, actualParams) {\n const res = {};\n Object.entries(redirectToParams).forEach(([k, v]) => {\n const copySourceValue = typeof v === 'string' && v.startsWith(':');\n if (copySourceValue) {\n const sourceName = v.substring(1);\n res[k] = actualParams[sourceName];\n }\n else {\n res[k] = v;\n }\n });\n return res;\n }\n createSegmentGroup(redirectTo, group, segments, posParams) {\n const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);\n let children = {};\n Object.entries(group.children).forEach(([name, child]) => {\n children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);\n });\n return new UrlSegmentGroup(updatedSegments, children);\n }\n createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {\n return redirectToSegments.map((s) => s.path.startsWith(':')\n ? this.findPosParam(redirectTo, s, posParams)\n : this.findOrReturn(s, actualSegments));\n }\n findPosParam(redirectTo, redirectToUrlSegment, posParams) {\n const pos = posParams[redirectToUrlSegment.path.substring(1)];\n if (!pos)\n throw new ɵRuntimeError(4001 /* RuntimeErrorCode.MISSING_REDIRECT */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);\n return pos;\n }\n findOrReturn(redirectToUrlSegment, actualSegments) {\n let idx = 0;\n for (const s of actualSegments) {\n if (s.path === redirectToUrlSegment.path) {\n actualSegments.splice(idx);\n return s;\n }\n idx++;\n }\n return redirectToUrlSegment;\n }\n}\n\nconst noMatch = {\n matched: false,\n consumedSegments: [],\n remainingSegments: [],\n parameters: {},\n positionalParamSegments: {},\n};\nfunction matchWithChecks(segmentGroup, route, segments, injector, urlSerializer) {\n const result = match(segmentGroup, route, segments);\n if (!result.matched) {\n return of(result);\n }\n // Only create the Route's `EnvironmentInjector` if it matches the attempted\n // navigation\n injector = getOrCreateRouteInjectorIfNeeded(route, injector);\n return runCanMatchGuards(injector, route, segments, urlSerializer).pipe(map((v) => (v === true ? result : { ...noMatch })));\n}\nfunction match(segmentGroup, route, segments) {\n if (route.path === '**') {\n return createWildcardMatchResult(segments);\n }\n if (route.path === '') {\n if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\n return { ...noMatch };\n }\n return {\n matched: true,\n consumedSegments: [],\n remainingSegments: segments,\n parameters: {},\n positionalParamSegments: {},\n };\n }\n const matcher = route.matcher || defaultUrlMatcher;\n const res = matcher(segments, segmentGroup, route);\n if (!res)\n return { ...noMatch };\n const posParams = {};\n Object.entries(res.posParams ?? {}).forEach(([k, v]) => {\n posParams[k] = v.path;\n });\n const parameters = res.consumed.length > 0\n ? { ...posParams, ...res.consumed[res.consumed.length - 1].parameters }\n : posParams;\n return {\n matched: true,\n consumedSegments: res.consumed,\n remainingSegments: segments.slice(res.consumed.length),\n // TODO(atscott): investigate combining parameters and positionalParamSegments\n parameters,\n positionalParamSegments: res.posParams ?? {},\n };\n}\nfunction createWildcardMatchResult(segments) {\n return {\n matched: true,\n parameters: segments.length > 0 ? last(segments).parameters : {},\n consumedSegments: segments,\n remainingSegments: [],\n positionalParamSegments: {},\n };\n}\nfunction split(segmentGroup, consumedSegments, slicedSegments, config) {\n if (slicedSegments.length > 0 &&\n containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n return { segmentGroup: s, slicedSegments: [] };\n }\n if (slicedSegments.length === 0 &&\n containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {\n const s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\n return { segmentGroup: s, slicedSegments };\n }\n const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\n return { segmentGroup: s, slicedSegments };\n}\nfunction addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\n const res = {};\n for (const r of routes) {\n if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {\n const s = new UrlSegmentGroup([], {});\n res[getOutlet(r)] = s;\n }\n }\n return { ...children, ...res };\n}\nfunction createChildrenForEmptyPaths(routes, primarySegment) {\n const res = {};\n res[PRIMARY_OUTLET] = primarySegment;\n for (const r of routes) {\n if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {\n const s = new UrlSegmentGroup([], {});\n res[getOutlet(r)] = s;\n }\n }\n return res;\n}\nfunction containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {\n return routes.some((r) => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);\n}\nfunction containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {\n return routes.some((r) => emptyPathMatch(segmentGroup, slicedSegments, r));\n}\nfunction emptyPathMatch(segmentGroup, slicedSegments, r) {\n if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {\n return false;\n }\n return r.path === '';\n}\n/**\n * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without\n * verifying that its children are a full match for the remainder of the `rawSegment` children as\n * well.\n */\nfunction isImmediateMatch(route, rawSegment, segments, outlet) {\n // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to\n // a config like\n // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`\n // or even\n // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`\n //\n // The exception here is when the segment outlet is for the primary outlet. This would\n // result in a match inside the named outlet because all children there are written as primary\n // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like\n // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`\n // This should only match if the url is `/(x:b)`.\n if (getOutlet(route) !== outlet &&\n (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {\n return false;\n }\n return match(rawSegment, route, segments).matched;\n}\nfunction noLeftoversInUrl(segmentGroup, segments, outlet) {\n return segments.length === 0 && !segmentGroup.children[outlet];\n}\n\n/**\n * Class used to indicate there were no additional route config matches but that all segments of\n * the URL were consumed during matching so the route was URL matched. When this happens, we still\n * try to match child configs in case there are empty path children.\n */\nclass NoLeftoversInUrl {\n}\nfunction recognize$1(injector, configLoader, rootComponentType, config, urlTree, urlSerializer, paramsInheritanceStrategy = 'emptyOnly') {\n return new Recognizer(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer).recognize();\n}\nconst MAX_ALLOWED_REDIRECTS = 31;\nclass Recognizer {\n constructor(injector, configLoader, rootComponentType, config, urlTree, paramsInheritanceStrategy, urlSerializer) {\n this.injector = injector;\n this.configLoader = configLoader;\n this.rootComponentType = rootComponentType;\n this.config = config;\n this.urlTree = urlTree;\n this.paramsInheritanceStrategy = paramsInheritanceStrategy;\n this.urlSerializer = urlSerializer;\n this.applyRedirects = new ApplyRedirects(this.urlSerializer, this.urlTree);\n this.absoluteRedirectCount = 0;\n this.allowRedirects = true;\n }\n noMatchError(e) {\n return new ɵRuntimeError(4002 /* RuntimeErrorCode.NO_MATCH */, typeof ngDevMode === 'undefined' || ngDevMode\n ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'`\n : `'${e.segmentGroup}'`);\n }\n recognize() {\n const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;\n return this.match(rootSegmentGroup).pipe(map((children) => {\n // Use Object.freeze to prevent readers of the Router state from modifying it outside\n // of a navigation, resulting in the router being out of sync with the browser.\n const root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, {});\n const rootNode = new TreeNode(root, children);\n const routeState = new RouterStateSnapshot('', rootNode);\n const tree = createUrlTreeFromSnapshot(root, [], this.urlTree.queryParams, this.urlTree.fragment);\n // https://github.com/angular/angular/issues/47307\n // Creating the tree stringifies the query params\n // We don't want to do this here so reassign them to the original.\n tree.queryParams = this.urlTree.queryParams;\n routeState.url = this.urlSerializer.serialize(tree);\n this.inheritParamsAndData(routeState._root, null);\n return { state: routeState, tree };\n }));\n }\n match(rootSegmentGroup) {\n const expanded$ = this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET);\n return expanded$.pipe(catchError((e) => {\n if (e instanceof AbsoluteRedirect) {\n this.urlTree = e.urlTree;\n return this.match(e.urlTree.root);\n }\n if (e instanceof NoMatch) {\n throw this.noMatchError(e);\n }\n throw e;\n }));\n }\n inheritParamsAndData(routeNode, parent) {\n const route = routeNode.value;\n const i = getInherited(route, parent, this.paramsInheritanceStrategy);\n route.params = Object.freeze(i.params);\n route.data = Object.freeze(i.data);\n routeNode.children.forEach((n) => this.inheritParamsAndData(n, route));\n }\n processSegmentGroup(injector, config, segmentGroup, outlet) {\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return this.processChildren(injector, config, segmentGroup);\n }\n return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet, true).pipe(map((child) => (child instanceof TreeNode ? [child] : [])));\n }\n /**\n * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if\n * we cannot find a match for _any_ of the children.\n *\n * @param config - The `Routes` to match against\n * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the\n * config.\n */\n processChildren(injector, config, segmentGroup) {\n // Expand outlets one at a time, starting with the primary outlet. We need to do it this way\n // because an absolute redirect from the primary outlet takes precedence.\n const childOutlets = [];\n for (const child of Object.keys(segmentGroup.children)) {\n if (child === 'primary') {\n childOutlets.unshift(child);\n }\n else {\n childOutlets.push(child);\n }\n }\n return from(childOutlets).pipe(concatMap((childOutlet) => {\n const child = segmentGroup.children[childOutlet];\n // Sort the config so that routes with outlets that match the one being activated\n // appear first, followed by routes for other outlets, which might match if they have\n // an empty path.\n const sortedConfig = sortByMatchingOutlets(config, childOutlet);\n return this.processSegmentGroup(injector, sortedConfig, child, childOutlet);\n }), scan((children, outletChildren) => {\n children.push(...outletChildren);\n return children;\n }), defaultIfEmpty(null), last$1(), mergeMap((children) => {\n if (children === null)\n return noMatch$1(segmentGroup);\n // Because we may have matched two outlets to the same empty path segment, we can have\n // multiple activated results for the same outlet. We should merge the children of\n // these results so the final return value is only one `TreeNode` per outlet.\n const mergedChildren = mergeEmptyPathMatches(children);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // This should really never happen - we are only taking the first match for each\n // outlet and merge the empty path matches.\n checkOutletNameUniqueness(mergedChildren);\n }\n sortActivatedRouteSnapshots(mergedChildren);\n return of(mergedChildren);\n }));\n }\n processSegment(injector, routes, segmentGroup, segments, outlet, allowRedirects) {\n return from(routes).pipe(concatMap((r) => {\n return this.processSegmentAgainstRoute(r._injector ?? injector, routes, r, segmentGroup, segments, outlet, allowRedirects).pipe(catchError((e) => {\n if (e instanceof NoMatch) {\n return of(null);\n }\n throw e;\n }));\n }), first((x) => !!x), catchError((e) => {\n if (isEmptyError(e)) {\n if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n return of(new NoLeftoversInUrl());\n }\n return noMatch$1(segmentGroup);\n }\n throw e;\n }));\n }\n processSegmentAgainstRoute(injector, routes, route, rawSegment, segments, outlet, allowRedirects) {\n if (!isImmediateMatch(route, rawSegment, segments, outlet))\n return noMatch$1(rawSegment);\n if (route.redirectTo === undefined) {\n return this.matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet);\n }\n if (this.allowRedirects && allowRedirects) {\n return this.expandSegmentAgainstRouteUsingRedirect(injector, rawSegment, routes, route, segments, outlet);\n }\n return noMatch$1(rawSegment);\n }\n expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet) {\n const { matched, consumedSegments, positionalParamSegments, remainingSegments } = match(segmentGroup, route, segments);\n if (!matched)\n return noMatch$1(segmentGroup);\n // TODO(atscott): Move all of this under an if(ngDevMode) as a breaking change and allow stack\n // size exceeded in production\n if (route.redirectTo.startsWith('/')) {\n this.absoluteRedirectCount++;\n if (this.absoluteRedirectCount > MAX_ALLOWED_REDIRECTS) {\n if (ngDevMode) {\n throw new ɵRuntimeError(4016 /* RuntimeErrorCode.INFINITE_REDIRECT */, `Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${route.redirectTo}'.\\n` +\n `This is currently a dev mode only error but will become a` +\n ` call stack size exceeded error in production in a future major version.`);\n }\n this.allowRedirects = false;\n }\n }\n const newTree = this.applyRedirects.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);\n return this.applyRedirects.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {\n return this.processSegment(injector, routes, segmentGroup, newSegments.concat(remainingSegments), outlet, false);\n }));\n }\n matchSegmentAgainstRoute(injector, rawSegment, route, segments, outlet) {\n const matchResult = matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer);\n if (route.path === '**') {\n // Prior versions of the route matching algorithm would stop matching at the wildcard route.\n // We should investigate a better strategy for any existing children. Otherwise, these\n // child segments are silently dropped from the navigation.\n // https://github.com/angular/angular/issues/40089\n rawSegment.children = {};\n }\n return matchResult.pipe(switchMap((result) => {\n if (!result.matched) {\n return noMatch$1(rawSegment);\n }\n // If the route has an injector created from providers, we should start using that.\n injector = route._injector ?? injector;\n return this.getChildConfig(injector, route, segments).pipe(switchMap(({ routes: childConfig }) => {\n const childInjector = route._loadedInjector ?? injector;\n const { consumedSegments, remainingSegments, parameters } = result;\n const snapshot = new ActivatedRouteSnapshot(consumedSegments, parameters, Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null, route, getResolve(route));\n const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, remainingSegments, childConfig);\n if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n return this.processChildren(childInjector, childConfig, segmentGroup).pipe(map((children) => {\n if (children === null) {\n return null;\n }\n return new TreeNode(snapshot, children);\n }));\n }\n if (childConfig.length === 0 && slicedSegments.length === 0) {\n return of(new TreeNode(snapshot, []));\n }\n const matchedOnOutlet = getOutlet(route) === outlet;\n // If we matched a config due to empty path match on a different outlet, we need to\n // continue passing the current outlet for the segment rather than switch to PRIMARY.\n // Note that we switch to primary when we have a match because outlet configs look like\n // this: {path: 'a', outlet: 'a', children: [\n // {path: 'b', component: B},\n // {path: 'c', component: C},\n // ]}\n // Notice that the children of the named outlet are configured with the primary outlet\n return this.processSegment(childInjector, childConfig, segmentGroup, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet, true).pipe(map((child) => {\n return new TreeNode(snapshot, child instanceof TreeNode ? [child] : []);\n }));\n }));\n }));\n }\n getChildConfig(injector, route, segments) {\n if (route.children) {\n // The children belong to the same module\n return of({ routes: route.children, injector });\n }\n if (route.loadChildren) {\n // lazy children belong to the loaded module\n if (route._loadedRoutes !== undefined) {\n return of({ routes: route._loadedRoutes, injector: route._loadedInjector });\n }\n return runCanLoadGuards(injector, route, segments, this.urlSerializer).pipe(mergeMap((shouldLoadResult) => {\n if (shouldLoadResult) {\n return this.configLoader.loadChildren(injector, route).pipe(tap((cfg) => {\n route._loadedRoutes = cfg.routes;\n route._loadedInjector = cfg.injector;\n }));\n }\n return canLoadFails(route);\n }));\n }\n return of({ routes: [], injector });\n }\n}\nfunction sortActivatedRouteSnapshots(nodes) {\n nodes.sort((a, b) => {\n if (a.value.outlet === PRIMARY_OUTLET)\n return -1;\n if (b.value.outlet === PRIMARY_OUTLET)\n return 1;\n return a.value.outlet.localeCompare(b.value.outlet);\n });\n}\nfunction hasEmptyPathConfig(node) {\n const config = node.value.routeConfig;\n return config && config.path === '';\n}\n/**\n * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with\n * the children from each duplicate. This is necessary because different outlets can match a\n * single empty path route config and the results need to then be merged.\n */\nfunction mergeEmptyPathMatches(nodes) {\n const result = [];\n // The set of nodes which contain children that were merged from two duplicate empty path nodes.\n const mergedNodes = new Set();\n for (const node of nodes) {\n if (!hasEmptyPathConfig(node)) {\n result.push(node);\n continue;\n }\n const duplicateEmptyPathNode = result.find((resultNode) => node.value.routeConfig === resultNode.value.routeConfig);\n if (duplicateEmptyPathNode !== undefined) {\n duplicateEmptyPathNode.children.push(...node.children);\n mergedNodes.add(duplicateEmptyPathNode);\n }\n else {\n result.push(node);\n }\n }\n // For each node which has children from multiple sources, we need to recompute a new `TreeNode`\n // by also merging those children. This is necessary when there are multiple empty path configs\n // in a row. Put another way: whenever we combine children of two nodes, we need to also check\n // if any of those children can be combined into a single node as well.\n for (const mergedNode of mergedNodes) {\n const mergedChildren = mergeEmptyPathMatches(mergedNode.children);\n result.push(new TreeNode(mergedNode.value, mergedChildren));\n }\n return result.filter((n) => !mergedNodes.has(n));\n}\nfunction checkOutletNameUniqueness(nodes) {\n const names = {};\n nodes.forEach((n) => {\n const routeWithSameOutletName = names[n.value.outlet];\n if (routeWithSameOutletName) {\n const p = routeWithSameOutletName.url.map((s) => s.toString()).join('/');\n const c = n.value.url.map((s) => s.toString()).join('/');\n throw new ɵRuntimeError(4006 /* RuntimeErrorCode.TWO_SEGMENTS_WITH_SAME_OUTLET */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);\n }\n names[n.value.outlet] = n.value;\n });\n}\nfunction getData(route) {\n return route.data || {};\n}\nfunction getResolve(route) {\n return route.resolve || {};\n}\n\nfunction recognize(injector, configLoader, rootComponentType, config, serializer, paramsInheritanceStrategy) {\n return mergeMap((t) => recognize$1(injector, configLoader, rootComponentType, config, t.extractedUrl, serializer, paramsInheritanceStrategy).pipe(map(({ state: targetSnapshot, tree: urlAfterRedirects }) => {\n return { ...t, targetSnapshot, urlAfterRedirects };\n })));\n}\n\nfunction resolveData(paramsInheritanceStrategy, injector) {\n return mergeMap((t) => {\n const { targetSnapshot, guards: { canActivateChecks }, } = t;\n if (!canActivateChecks.length) {\n return of(t);\n }\n // Iterating a Set in javascript happens in insertion order so it is safe to use a `Set` to\n // preserve the correct order that the resolvers should run in.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set#description\n const routesWithResolversToRun = new Set(canActivateChecks.map((check) => check.route));\n const routesNeedingDataUpdates = new Set();\n for (const route of routesWithResolversToRun) {\n if (routesNeedingDataUpdates.has(route)) {\n continue;\n }\n // All children under the route with a resolver to run need to recompute inherited data.\n for (const newRoute of flattenRouteTree(route)) {\n routesNeedingDataUpdates.add(newRoute);\n }\n }\n let routesProcessed = 0;\n return from(routesNeedingDataUpdates).pipe(concatMap((route) => {\n if (routesWithResolversToRun.has(route)) {\n return runResolve(route, targetSnapshot, paramsInheritanceStrategy, injector);\n }\n else {\n route.data = getInherited(route, route.parent, paramsInheritanceStrategy).resolve;\n return of(void 0);\n }\n }), tap(() => routesProcessed++), takeLast(1), mergeMap((_) => (routesProcessed === routesNeedingDataUpdates.size ? of(t) : EMPTY)));\n });\n}\n/**\n * Returns the `ActivatedRouteSnapshot` tree as an array, using DFS to traverse the route tree.\n */\nfunction flattenRouteTree(route) {\n const descendants = route.children.map((child) => flattenRouteTree(child)).flat();\n return [route, ...descendants];\n}\nfunction runResolve(futureARS, futureRSS, paramsInheritanceStrategy, injector) {\n const config = futureARS.routeConfig;\n const resolve = futureARS._resolve;\n if (config?.title !== undefined && !hasStaticTitle(config)) {\n resolve[RouteTitleKey] = config.title;\n }\n return resolveNode(resolve, futureARS, futureRSS, injector).pipe(map((resolvedData) => {\n futureARS._resolvedData = resolvedData;\n futureARS.data = getInherited(futureARS, futureARS.parent, paramsInheritanceStrategy).resolve;\n return null;\n }));\n}\nfunction resolveNode(resolve, futureARS, futureRSS, injector) {\n const keys = getDataKeys(resolve);\n if (keys.length === 0) {\n return of({});\n }\n const data = {};\n return from(keys).pipe(mergeMap((key) => getResolver(resolve[key], futureARS, futureRSS, injector).pipe(first(), tap((value) => {\n data[key] = value;\n }))), takeLast(1), mapTo(data), catchError((e) => (isEmptyError(e) ? EMPTY : throwError(e))));\n}\nfunction getResolver(injectionToken, futureARS, futureRSS, injector) {\n const closestInjector = getClosestRouteInjector(futureARS) ?? injector;\n const resolver = getTokenOrFunctionIdentity(injectionToken, closestInjector);\n const resolverValue = resolver.resolve\n ? resolver.resolve(futureARS, futureRSS)\n : runInInjectionContext(closestInjector, () => resolver(futureARS, futureRSS));\n return wrapIntoObservable(resolverValue);\n}\n\n/**\n * Perform a side effect through a switchMap for every emission on the source Observable,\n * but return an Observable that is identical to the source. It's essentially the same as\n * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,\n * it will wait before continuing with the original value.\n */\nfunction switchTap(next) {\n return switchMap((v) => {\n const nextResult = next(v);\n if (nextResult) {\n return from(nextResult).pipe(map(() => v));\n }\n return of(v);\n });\n}\n\n/**\n * Provides a strategy for setting the page title after a router navigation.\n *\n * The built-in implementation traverses the router state snapshot and finds the deepest primary\n * outlet with `title` property. Given the `Routes` below, navigating to\n * `/base/child(popup:aux)` would result in the document title being set to \"child\".\n * ```\n * [\n * {path: 'base', title: 'base', children: [\n * {path: 'child', title: 'child'},\n * ],\n * {path: 'aux', outlet: 'popup', title: 'popupTitle'}\n * ]\n * ```\n *\n * This class can be used as a base class for custom title strategies. That is, you can create your\n * own class that extends the `TitleStrategy`. Note that in the above example, the `title`\n * from the named outlet is never used. However, a custom strategy might be implemented to\n * incorporate titles in named outlets.\n *\n * @publicApi\n * @see [Page title guide](guide/router#setting-the-page-title)\n */\nclass TitleStrategy {\n /**\n * @returns The `title` of the deepest primary route.\n */\n buildTitle(snapshot) {\n let pageTitle;\n let route = snapshot.root;\n while (route !== undefined) {\n pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;\n route = route.children.find((child) => child.outlet === PRIMARY_OUTLET);\n }\n return pageTitle;\n }\n /**\n * Given an `ActivatedRouteSnapshot`, returns the final value of the\n * `Route.title` property, which can either be a static string or a resolved value.\n */\n getResolvedTitleForRoute(snapshot) {\n return snapshot.data[RouteTitleKey];\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TitleStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]\n }] });\n/**\n * The default `TitleStrategy` used by the router that updates the title using the `Title` service.\n */\nclass DefaultTitleStrategy extends TitleStrategy {\n constructor(title) {\n super();\n this.title = title;\n }\n /**\n * Sets the title of the browser to the given value.\n *\n * @param title The `pageTitle` from the deepest primary route.\n */\n updateTitle(snapshot) {\n const title = this.buildTitle(snapshot);\n if (title !== undefined) {\n this.title.setTitle(title);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultTitleStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: i1.Title }] });\n\n/**\n * A [DI token](guide/glossary/#di-token) for the router service.\n *\n * @publicApi\n */\nconst ROUTER_CONFIGURATION = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router config' : '', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n/**\n * The [DI token](guide/glossary/#di-token) for a router configuration.\n *\n * `ROUTES` is a low level API for router configuration via dependency injection.\n *\n * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,\n * `provideRouter`, or `Router.resetConfig()`.\n *\n * @publicApi\n */\nconst ROUTES = new InjectionToken(ngDevMode ? 'ROUTES' : '');\nclass RouterConfigLoader {\n constructor() {\n this.componentLoaders = new WeakMap();\n this.childrenLoaders = new WeakMap();\n this.compiler = inject(Compiler);\n }\n loadComponent(route) {\n if (this.componentLoaders.get(route)) {\n return this.componentLoaders.get(route);\n }\n else if (route._loadedComponent) {\n return of(route._loadedComponent);\n }\n if (this.onLoadStartListener) {\n this.onLoadStartListener(route);\n }\n const loadRunner = wrapIntoObservable(route.loadComponent()).pipe(map(maybeUnwrapDefaultExport), tap((component) => {\n if (this.onLoadEndListener) {\n this.onLoadEndListener(route);\n }\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n assertStandalone(route.path ?? '', component);\n route._loadedComponent = component;\n }), finalize(() => {\n this.componentLoaders.delete(route);\n }));\n // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n const loader = new ConnectableObservable(loadRunner, () => new Subject()).pipe(refCount());\n this.componentLoaders.set(route, loader);\n return loader;\n }\n loadChildren(parentInjector, route) {\n if (this.childrenLoaders.get(route)) {\n return this.childrenLoaders.get(route);\n }\n else if (route._loadedRoutes) {\n return of({ routes: route._loadedRoutes, injector: route._loadedInjector });\n }\n if (this.onLoadStartListener) {\n this.onLoadStartListener(route);\n }\n const moduleFactoryOrRoutes$ = loadChildren(route, this.compiler, parentInjector, this.onLoadEndListener);\n const loadRunner = moduleFactoryOrRoutes$.pipe(finalize(() => {\n this.childrenLoaders.delete(route);\n }));\n // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n const loader = new ConnectableObservable(loadRunner, () => new Subject()).pipe(refCount());\n this.childrenLoaders.set(route, loader);\n return loader;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterConfigLoader, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * Executes a `route.loadChildren` callback and converts the result to an array of child routes and\n * an injector if that callback returned a module.\n *\n * This function is used for the route discovery during prerendering\n * in @angular-devkit/build-angular. If there are any updates to the contract here, it will require\n * an update to the extractor.\n */\nfunction loadChildren(route, compiler, parentInjector, onLoadEndListener) {\n return wrapIntoObservable(route.loadChildren()).pipe(map(maybeUnwrapDefaultExport), mergeMap((t) => {\n if (t instanceof NgModuleFactory || Array.isArray(t)) {\n return of(t);\n }\n else {\n return from(compiler.compileModuleAsync(t));\n }\n }), map((factoryOrRoutes) => {\n if (onLoadEndListener) {\n onLoadEndListener(route);\n }\n // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is\n // no injector associated with lazy loading a `Route` array.\n let injector;\n let rawRoutes;\n let requireStandaloneComponents = false;\n if (Array.isArray(factoryOrRoutes)) {\n rawRoutes = factoryOrRoutes;\n requireStandaloneComponents = true;\n }\n else {\n injector = factoryOrRoutes.create(parentInjector).injector;\n // When loading a module that doesn't provide `RouterModule.forChild()` preloader\n // will get stuck in an infinite loop. The child module's Injector will look to\n // its parent `Injector` when it doesn't find any ROUTES so it will return routes\n // for it's parent module instead.\n rawRoutes = injector.get(ROUTES, [], { optional: true, self: true }).flat();\n }\n const routes = rawRoutes.map(standardizeConfig);\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n validateConfig(routes, route.path, requireStandaloneComponents);\n return { routes, injector };\n }));\n}\nfunction isWrappedDefaultExport(value) {\n // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be\n // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that\n // `default` will be a renamed property.\n return value && typeof value === 'object' && 'default' in value;\n}\nfunction maybeUnwrapDefaultExport(input) {\n // As per `isWrappedDefaultExport`, the `default` key here is generated by the browser and not\n // subject to property renaming, so we reference it with bracket access.\n return isWrappedDefaultExport(input) ? input['default'] : input;\n}\n\n/**\n * @description\n *\n * Provides a way to migrate AngularJS applications to Angular.\n *\n * @publicApi\n */\nclass UrlHandlingStrategy {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: UrlHandlingStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]\n }] });\n/**\n * @publicApi\n */\nclass DefaultUrlHandlingStrategy {\n shouldProcessUrl(url) {\n return true;\n }\n extract(url) {\n return url;\n }\n merge(newUrlPart, wholeUrl) {\n return newUrlPart;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/// <reference types=\"dom-view-transitions\" />\nconst CREATE_VIEW_TRANSITION = new InjectionToken(ngDevMode ? 'view transition helper' : '');\nconst VIEW_TRANSITION_OPTIONS = new InjectionToken(ngDevMode ? 'view transition options' : '');\n/**\n * A helper function for using browser view transitions. This function skips the call to\n * `startViewTransition` if the browser does not support it.\n *\n * @returns A Promise that resolves when the view transition callback begins.\n */\nfunction createViewTransition(injector, from, to) {\n const transitionOptions = injector.get(VIEW_TRANSITION_OPTIONS);\n const document = injector.get(DOCUMENT);\n // Create promises outside the Angular zone to avoid causing extra change detections\n return injector.get(NgZone).runOutsideAngular(() => {\n if (!document.startViewTransition || transitionOptions.skipNextTransition) {\n transitionOptions.skipNextTransition = false;\n // The timing of `startViewTransition` is closer to a macrotask. It won't be called\n // until the current event loop exits so we use a promise resolved in a timeout instead\n // of Promise.resolve().\n return new Promise((resolve) => setTimeout(resolve));\n }\n let resolveViewTransitionStarted;\n const viewTransitionStarted = new Promise((resolve) => {\n resolveViewTransitionStarted = resolve;\n });\n const transition = document.startViewTransition(() => {\n resolveViewTransitionStarted();\n // We don't actually update dom within the transition callback. The resolving of the above\n // promise unblocks the Router navigation, which synchronously activates and deactivates\n // routes (the DOM update). This view transition waits for the next change detection to\n // complete (below), which includes the update phase of the routed components.\n return createRenderPromise(injector);\n });\n const { onViewTransitionCreated } = transitionOptions;\n if (onViewTransitionCreated) {\n runInInjectionContext(injector, () => onViewTransitionCreated({ transition, from, to }));\n }\n return viewTransitionStarted;\n });\n}\n/**\n * Creates a promise that resolves after next render.\n */\nfunction createRenderPromise(injector) {\n return new Promise((resolve) => {\n afterNextRender(resolve, { injector });\n });\n}\n\nclass NavigationTransitions {\n get hasRequestedNavigation() {\n return this.navigationId !== 0;\n }\n constructor() {\n this.currentNavigation = null;\n this.currentTransition = null;\n this.lastSuccessfulNavigation = null;\n /**\n * These events are used to communicate back to the Router about the state of the transition. The\n * Router wants to respond to these events in various ways. Because the `NavigationTransition`\n * class is not public, this event subject is not publicly exposed.\n */\n this.events = new Subject();\n /**\n * Used to abort the current transition with an error.\n */\n this.transitionAbortSubject = new Subject();\n this.configLoader = inject(RouterConfigLoader);\n this.environmentInjector = inject(EnvironmentInjector);\n this.urlSerializer = inject(UrlSerializer);\n this.rootContexts = inject(ChildrenOutletContexts);\n this.location = inject(Location);\n this.inputBindingEnabled = inject(INPUT_BINDER, { optional: true }) !== null;\n this.titleStrategy = inject(TitleStrategy);\n this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};\n this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';\n this.urlHandlingStrategy = inject(UrlHandlingStrategy);\n this.createViewTransition = inject(CREATE_VIEW_TRANSITION, { optional: true });\n this.navigationId = 0;\n /**\n * Hook that enables you to pause navigation after the preactivation phase.\n * Used by `RouterModule`.\n *\n * @internal\n */\n this.afterPreactivation = () => of(void 0);\n /** @internal */\n this.rootComponentType = null;\n const onLoadStart = (r) => this.events.next(new RouteConfigLoadStart(r));\n const onLoadEnd = (r) => this.events.next(new RouteConfigLoadEnd(r));\n this.configLoader.onLoadEndListener = onLoadEnd;\n this.configLoader.onLoadStartListener = onLoadStart;\n }\n complete() {\n this.transitions?.complete();\n }\n handleNavigationRequest(request) {\n const id = ++this.navigationId;\n this.transitions?.next({ ...this.transitions.value, ...request, id });\n }\n setupNavigations(router, initialUrlTree, initialRouterState) {\n this.transitions = new BehaviorSubject({\n id: 0,\n currentUrlTree: initialUrlTree,\n currentRawUrl: initialUrlTree,\n extractedUrl: this.urlHandlingStrategy.extract(initialUrlTree),\n urlAfterRedirects: this.urlHandlingStrategy.extract(initialUrlTree),\n rawUrl: initialUrlTree,\n extras: {},\n resolve: null,\n reject: null,\n promise: Promise.resolve(true),\n source: IMPERATIVE_NAVIGATION,\n restoredState: null,\n currentSnapshot: initialRouterState.snapshot,\n targetSnapshot: null,\n currentRouterState: initialRouterState,\n targetRouterState: null,\n guards: { canActivateChecks: [], canDeactivateChecks: [] },\n guardsResult: null,\n });\n return this.transitions.pipe(filter((t) => t.id !== 0), \n // Extract URL\n map((t) => ({\n ...t,\n extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl),\n })), \n // Using switchMap so we cancel executing navigations when a new one comes in\n switchMap((overallTransitionState) => {\n let completed = false;\n let errored = false;\n return of(overallTransitionState).pipe(switchMap((t) => {\n // It is possible that `switchMap` fails to cancel previous navigations if a new one happens synchronously while the operator\n // is processing the `next` notification of that previous navigation. This can happen when a new navigation (say 2) cancels a\n // previous one (1) and yet another navigation (3) happens synchronously in response to the `NavigationCancel` event for (1).\n // https://github.com/ReactiveX/rxjs/issues/7455\n if (this.navigationId > overallTransitionState.id) {\n const cancellationReason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}`\n : '';\n this.cancelNavigationTransition(overallTransitionState, cancellationReason, NavigationCancellationCode.SupersededByNewNavigation);\n return EMPTY;\n }\n this.currentTransition = overallTransitionState;\n // Store the Navigation object\n this.currentNavigation = {\n id: t.id,\n initialUrl: t.rawUrl,\n extractedUrl: t.extractedUrl,\n trigger: t.source,\n extras: t.extras,\n previousNavigation: !this.lastSuccessfulNavigation\n ? null\n : {\n ...this.lastSuccessfulNavigation,\n previousNavigation: null,\n },\n };\n const urlTransition = !router.navigated || this.isUpdatingInternalState() || this.isUpdatedBrowserUrl();\n const onSameUrlNavigation = t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;\n if (!urlTransition && onSameUrlNavigation !== 'reload') {\n const reason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation to ${t.rawUrl} was ignored because it is the same as the current Router URL.`\n : '';\n this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.rawUrl), reason, NavigationSkippedCode.IgnoredSameUrlNavigation));\n t.resolve(null);\n return EMPTY;\n }\n if (this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl)) {\n return of(t).pipe(\n // Fire NavigationStart event\n switchMap((t) => {\n const transition = this.transitions?.getValue();\n this.events.next(new NavigationStart(t.id, this.urlSerializer.serialize(t.extractedUrl), t.source, t.restoredState));\n if (transition !== this.transitions?.getValue()) {\n return EMPTY;\n }\n // This delay is required to match old behavior that forced\n // navigation to always be async\n return Promise.resolve(t);\n }), \n // Recognize\n recognize(this.environmentInjector, this.configLoader, this.rootComponentType, router.config, this.urlSerializer, this.paramsInheritanceStrategy), \n // Update URL if in `eager` update mode\n tap((t) => {\n overallTransitionState.targetSnapshot = t.targetSnapshot;\n overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;\n this.currentNavigation = {\n ...this.currentNavigation,\n finalUrl: t.urlAfterRedirects,\n };\n // Fire RoutesRecognized\n const routesRecognized = new RoutesRecognized(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(routesRecognized);\n }));\n }\n else if (urlTransition &&\n this.urlHandlingStrategy.shouldProcessUrl(t.currentRawUrl)) {\n /* When the current URL shouldn't be processed, but the previous one\n * was, we handle this \"error condition\" by navigating to the\n * previously successful URL, but leaving the URL intact.*/\n const { id, extractedUrl, source, restoredState, extras } = t;\n const navStart = new NavigationStart(id, this.urlSerializer.serialize(extractedUrl), source, restoredState);\n this.events.next(navStart);\n const targetSnapshot = createEmptyState(this.rootComponentType).snapshot;\n this.currentTransition = overallTransitionState = {\n ...t,\n targetSnapshot,\n urlAfterRedirects: extractedUrl,\n extras: { ...extras, skipLocationChange: false, replaceUrl: false },\n };\n this.currentNavigation.finalUrl = extractedUrl;\n return of(overallTransitionState);\n }\n else {\n /* When neither the current or previous URL can be processed, do\n * nothing other than update router's internal reference to the\n * current \"settled\" URL. This way the next navigation will be coming\n * from the current URL in the browser.\n */\n const reason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation was ignored because the UrlHandlingStrategy` +\n ` indicated neither the current URL ${t.currentRawUrl} nor target URL ${t.rawUrl} should be processed.`\n : '';\n this.events.next(new NavigationSkipped(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, NavigationSkippedCode.IgnoredByUrlHandlingStrategy));\n t.resolve(null);\n return EMPTY;\n }\n }), \n // --- GUARDS ---\n tap((t) => {\n const guardsStart = new GuardsCheckStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(guardsStart);\n }), map((t) => {\n this.currentTransition = overallTransitionState = {\n ...t,\n guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts),\n };\n return overallTransitionState;\n }), checkGuards(this.environmentInjector, (evt) => this.events.next(evt)), tap((t) => {\n overallTransitionState.guardsResult = t.guardsResult;\n if (isUrlTree(t.guardsResult)) {\n throw redirectingNavigationError(this.urlSerializer, t.guardsResult);\n }\n const guardsEnd = new GuardsCheckEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);\n this.events.next(guardsEnd);\n }), filter((t) => {\n if (!t.guardsResult) {\n this.cancelNavigationTransition(t, '', NavigationCancellationCode.GuardRejected);\n return false;\n }\n return true;\n }), \n // --- RESOLVE ---\n switchTap((t) => {\n if (t.guards.canActivateChecks.length) {\n return of(t).pipe(tap((t) => {\n const resolveStart = new ResolveStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(resolveStart);\n }), switchMap((t) => {\n let dataResolved = false;\n return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.environmentInjector), tap({\n next: () => (dataResolved = true),\n complete: () => {\n if (!dataResolved) {\n this.cancelNavigationTransition(t, typeof ngDevMode === 'undefined' || ngDevMode\n ? `At least one route resolver didn't emit any value.`\n : '', NavigationCancellationCode.NoDataFromResolver);\n }\n },\n }));\n }), tap((t) => {\n const resolveEnd = new ResolveEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);\n this.events.next(resolveEnd);\n }));\n }\n return undefined;\n }), \n // --- LOAD COMPONENTS ---\n switchTap((t) => {\n const loadComponents = (route) => {\n const loaders = [];\n if (route.routeConfig?.loadComponent && !route.routeConfig._loadedComponent) {\n loaders.push(this.configLoader.loadComponent(route.routeConfig).pipe(tap((loadedComponent) => {\n route.component = loadedComponent;\n }), map(() => void 0)));\n }\n for (const child of route.children) {\n loaders.push(...loadComponents(child));\n }\n return loaders;\n };\n return combineLatest(loadComponents(t.targetSnapshot.root)).pipe(defaultIfEmpty(null), take(1));\n }), switchTap(() => this.afterPreactivation()), switchMap(() => {\n const { currentSnapshot, targetSnapshot } = overallTransitionState;\n const viewTransitionStarted = this.createViewTransition?.(this.environmentInjector, currentSnapshot.root, targetSnapshot.root);\n // If view transitions are enabled, block the navigation until the view\n // transition callback starts. Otherwise, continue immediately.\n return viewTransitionStarted\n ? from(viewTransitionStarted).pipe(map(() => overallTransitionState))\n : of(overallTransitionState);\n }), map((t) => {\n const targetRouterState = createRouterState(router.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);\n this.currentTransition = overallTransitionState = { ...t, targetRouterState };\n this.currentNavigation.targetRouterState = targetRouterState;\n return overallTransitionState;\n }), tap(() => {\n this.events.next(new BeforeActivateRoutes());\n }), activateRoutes(this.rootContexts, router.routeReuseStrategy, (evt) => this.events.next(evt), this.inputBindingEnabled), \n // Ensure that if some observable used to drive the transition doesn't\n // complete, the navigation still finalizes This should never happen, but\n // this is done as a safety measure to avoid surfacing this error (#49567).\n take(1), tap({\n next: (t) => {\n completed = true;\n this.lastSuccessfulNavigation = this.currentNavigation;\n this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));\n this.titleStrategy?.updateTitle(t.targetRouterState.snapshot);\n t.resolve(true);\n },\n complete: () => {\n completed = true;\n },\n }), \n // There used to be a lot more logic happening directly within the\n // transition Observable. Some of this logic has been refactored out to\n // other places but there may still be errors that happen there. This gives\n // us a way to cancel the transition from the outside. This may also be\n // required in the future to support something like the abort signal of the\n // Navigation API where the navigation gets aborted from outside the\n // transition.\n takeUntil(this.transitionAbortSubject.pipe(tap((err) => {\n throw err;\n }))), finalize(() => {\n /* When the navigation stream finishes either through error or success,\n * we set the `completed` or `errored` flag. However, there are some\n * situations where we could get here without either of those being set.\n * For instance, a redirect during NavigationStart. Therefore, this is a\n * catch-all to make sure the NavigationCancel event is fired when a\n * navigation gets cancelled but not caught by other means. */\n if (!completed && !errored) {\n const cancelationReason = typeof ngDevMode === 'undefined' || ngDevMode\n ? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}`\n : '';\n this.cancelNavigationTransition(overallTransitionState, cancelationReason, NavigationCancellationCode.SupersededByNewNavigation);\n }\n // Only clear current navigation if it is still set to the one that\n // finalized.\n if (this.currentTransition?.id === overallTransitionState.id) {\n this.currentNavigation = null;\n this.currentTransition = null;\n }\n }), catchError((e) => {\n errored = true;\n /* This error type is issued during Redirect, and is handled as a\n * cancellation rather than an error. */\n if (isNavigationCancelingError(e)) {\n this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e.message, e.cancellationCode));\n // When redirecting, we need to delay resolving the navigation\n // promise and push it to the redirect navigation\n if (!isRedirectingNavigationCancelingError(e)) {\n overallTransitionState.resolve(false);\n }\n else {\n this.events.next(new RedirectRequest(e.url));\n }\n /* All other errors should reset to the router's internal URL reference\n * to the pre-error state. */\n }\n else {\n this.events.next(new NavigationError(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e, overallTransitionState.targetSnapshot ?? undefined));\n try {\n overallTransitionState.resolve(router.errorHandler(e));\n }\n catch (ee) {\n // TODO(atscott): consider flipping the default behavior of\n // resolveNavigationPromiseOnError to be `resolve(false)` when\n // undefined. This is the most sane thing to do given that\n // applications very rarely handle the promise rejection and, as a\n // result, would get \"unhandled promise rejection\" console logs.\n // The vast majority of applications would not be affected by this\n // change so omitting a migration seems reasonable. Instead,\n // applications that rely on rejection can specifically opt-in to the\n // old behavior.\n if (this.options.resolveNavigationPromiseOnError) {\n overallTransitionState.resolve(false);\n }\n else {\n overallTransitionState.reject(ee);\n }\n }\n }\n return EMPTY;\n }));\n // casting because `pipe` returns observable({}) when called with 8+ arguments\n }));\n }\n cancelNavigationTransition(t, reason, code) {\n const navCancel = new NavigationCancel(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, code);\n this.events.next(navCancel);\n t.resolve(false);\n }\n /**\n * @returns Whether we're navigating to somewhere that is not what the Router is\n * currently set to.\n */\n isUpdatingInternalState() {\n // TODO(atscott): The serializer should likely be used instead of\n // `UrlTree.toString()`. Custom serializers are often written to handle\n // things better than the default one (objects, for example will be\n // [Object object] with the custom serializer and be \"the same\" when they\n // aren't).\n // (Same for isUpdatedBrowserUrl)\n return (this.currentTransition?.extractedUrl.toString() !==\n this.currentTransition?.currentUrlTree.toString());\n }\n /**\n * @returns Whether we're updating the browser URL to something new (navigation is going\n * to somewhere not displayed in the URL bar and we will update the URL\n * bar if navigation succeeds).\n */\n isUpdatedBrowserUrl() {\n // The extracted URL is the part of the URL that this application cares about. `extract` may\n // return only part of the browser URL and that part may have not changed even if some other\n // portion of the URL did.\n const extractedBrowserUrl = this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true)));\n return (extractedBrowserUrl.toString() !== this.currentTransition?.extractedUrl.toString() &&\n !this.currentTransition?.extras.skipLocationChange);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NavigationTransitions, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\nfunction isBrowserTriggeredNavigation(source) {\n return source !== IMPERATIVE_NAVIGATION;\n}\n\n/**\n * @description\n *\n * Provides a way to customize when activated routes get reused.\n *\n * @publicApi\n */\nclass RouteReuseStrategy {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouteReuseStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]\n }] });\n/**\n * @description\n *\n * This base route reuse strategy only reuses routes when the matched router configs are\n * identical. This prevents components from being destroyed and recreated\n * when just the route parameters, query parameters or fragment change\n * (that is, the existing component is _reused_).\n *\n * This strategy does not store any routes for later reuse.\n *\n * Angular uses this strategy by default.\n *\n *\n * It can be used as a base class for custom route reuse strategies, i.e. you can create your own\n * class that extends the `BaseRouteReuseStrategy` one.\n * @publicApi\n */\nclass BaseRouteReuseStrategy {\n /**\n * Whether the given route should detach for later reuse.\n * Always returns false for `BaseRouteReuseStrategy`.\n * */\n shouldDetach(route) {\n return false;\n }\n /**\n * A no-op; the route is never stored since this strategy never detaches routes for later re-use.\n */\n store(route, detachedTree) { }\n /** Returns `false`, meaning the route (and its subtree) is never reattached */\n shouldAttach(route) {\n return false;\n }\n /** Returns `null` because this strategy does not store routes for later re-use. */\n retrieve(route) {\n return null;\n }\n /**\n * Determines if a route should be reused.\n * This strategy returns `true` when the future route config and current route config are\n * identical.\n */\n shouldReuseRoute(future, curr) {\n return future.routeConfig === curr.routeConfig;\n }\n}\nclass DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\nclass StateManager {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StateManager, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]\n }] });\nclass HistoryStateManager extends StateManager {\n constructor() {\n super(...arguments);\n this.location = inject(Location);\n this.urlSerializer = inject(UrlSerializer);\n this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};\n this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';\n this.urlHandlingStrategy = inject(UrlHandlingStrategy);\n this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';\n this.currentUrlTree = new UrlTree();\n this.rawUrlTree = this.currentUrlTree;\n /**\n * The id of the currently active page in the router.\n * Updated to the transition's target id on a successful navigation.\n *\n * This is used to track what page the router last activated. When an attempted navigation fails,\n * the router can then use this to compute how to restore the state back to the previously active\n * page.\n */\n this.currentPageId = 0;\n this.lastSuccessfulId = -1;\n this.routerState = createEmptyState(null);\n this.stateMemento = this.createStateMemento();\n }\n getCurrentUrlTree() {\n return this.currentUrlTree;\n }\n getRawUrlTree() {\n return this.rawUrlTree;\n }\n restoredState() {\n return this.location.getState();\n }\n /**\n * The ɵrouterPageId of whatever page is currently active in the browser history. This is\n * important for computing the target page id for new navigations because we need to ensure each\n * page id in the browser history is 1 more than the previous entry.\n */\n get browserPageId() {\n if (this.canceledNavigationResolution !== 'computed') {\n return this.currentPageId;\n }\n return this.restoredState()?.ɵrouterPageId ?? this.currentPageId;\n }\n getRouterState() {\n return this.routerState;\n }\n createStateMemento() {\n return {\n rawUrlTree: this.rawUrlTree,\n currentUrlTree: this.currentUrlTree,\n routerState: this.routerState,\n };\n }\n registerNonRouterCurrentEntryChangeListener(listener) {\n return this.location.subscribe((event) => {\n if (event['type'] === 'popstate') {\n listener(event['url'], event.state);\n }\n });\n }\n handleRouterEvent(e, currentTransition) {\n if (e instanceof NavigationStart) {\n this.stateMemento = this.createStateMemento();\n }\n else if (e instanceof NavigationSkipped) {\n this.rawUrlTree = currentTransition.initialUrl;\n }\n else if (e instanceof RoutesRecognized) {\n if (this.urlUpdateStrategy === 'eager') {\n if (!currentTransition.extras.skipLocationChange) {\n const rawUrl = this.urlHandlingStrategy.merge(currentTransition.finalUrl, currentTransition.initialUrl);\n this.setBrowserUrl(rawUrl, currentTransition);\n }\n }\n }\n else if (e instanceof BeforeActivateRoutes) {\n this.currentUrlTree = currentTransition.finalUrl;\n this.rawUrlTree = this.urlHandlingStrategy.merge(currentTransition.finalUrl, currentTransition.initialUrl);\n this.routerState = currentTransition.targetRouterState;\n if (this.urlUpdateStrategy === 'deferred') {\n if (!currentTransition.extras.skipLocationChange) {\n this.setBrowserUrl(this.rawUrlTree, currentTransition);\n }\n }\n }\n else if (e instanceof NavigationCancel &&\n (e.code === NavigationCancellationCode.GuardRejected ||\n e.code === NavigationCancellationCode.NoDataFromResolver)) {\n this.restoreHistory(currentTransition);\n }\n else if (e instanceof NavigationError) {\n this.restoreHistory(currentTransition, true);\n }\n else if (e instanceof NavigationEnd) {\n this.lastSuccessfulId = e.id;\n this.currentPageId = this.browserPageId;\n }\n }\n setBrowserUrl(url, transition) {\n const path = this.urlSerializer.serialize(url);\n if (this.location.isCurrentPathEqualTo(path) || !!transition.extras.replaceUrl) {\n // replacements do not update the target page\n const currentBrowserPageId = this.browserPageId;\n const state = {\n ...transition.extras.state,\n ...this.generateNgRouterState(transition.id, currentBrowserPageId),\n };\n this.location.replaceState(path, '', state);\n }\n else {\n const state = {\n ...transition.extras.state,\n ...this.generateNgRouterState(transition.id, this.browserPageId + 1),\n };\n this.location.go(path, '', state);\n }\n }\n /**\n * Performs the necessary rollback action to restore the browser URL to the\n * state before the transition.\n */\n restoreHistory(navigation, restoringFromCaughtError = false) {\n if (this.canceledNavigationResolution === 'computed') {\n const currentBrowserPageId = this.browserPageId;\n const targetPagePosition = this.currentPageId - currentBrowserPageId;\n if (targetPagePosition !== 0) {\n this.location.historyGo(targetPagePosition);\n }\n else if (this.currentUrlTree === navigation.finalUrl && targetPagePosition === 0) {\n // We got to the activation stage (where currentUrlTree is set to the navigation's\n // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).\n // We still need to reset the router state back to what it was when the navigation started.\n this.resetState(navigation);\n this.resetUrlToCurrentUrlTree();\n }\n else {\n // The browser URL and router state was not updated before the navigation cancelled so\n // there's no restoration needed.\n }\n }\n else if (this.canceledNavigationResolution === 'replace') {\n // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op\n // for `deferred` navigations that haven't change the internal state yet because guards\n // reject. For 'eager' navigations, it seems like we also really should reset the state\n // because the navigation was cancelled. Investigate if this can be done by running TGP.\n if (restoringFromCaughtError) {\n this.resetState(navigation);\n }\n this.resetUrlToCurrentUrlTree();\n }\n }\n resetState(navigation) {\n this.routerState = this.stateMemento.routerState;\n this.currentUrlTree = this.stateMemento.currentUrlTree;\n // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be\n // configured to handle only part of the navigation URL. This means we would only want to reset\n // the part of the navigation handled by the Angular router rather than the whole URL. In\n // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL\n // when merging, such as the query params so they are not lost on a refresh.\n this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, navigation.finalUrl ?? this.rawUrlTree);\n }\n resetUrlToCurrentUrlTree() {\n this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));\n }\n generateNgRouterState(navigationId, routerPageId) {\n if (this.canceledNavigationResolution === 'computed') {\n return { navigationId, ɵrouterPageId: routerPageId };\n }\n return { navigationId };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HistoryStateManager, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: HistoryStateManager, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\nvar NavigationResult;\n(function (NavigationResult) {\n NavigationResult[NavigationResult[\"COMPLETE\"] = 0] = \"COMPLETE\";\n NavigationResult[NavigationResult[\"FAILED\"] = 1] = \"FAILED\";\n NavigationResult[NavigationResult[\"REDIRECTING\"] = 2] = \"REDIRECTING\";\n})(NavigationResult || (NavigationResult = {}));\n/**\n * Performs the given action once the router finishes its next/current navigation.\n *\n * The navigation is considered complete under the following conditions:\n * - `NavigationCancel` event emits and the code is not `NavigationCancellationCode.Redirect` or\n * `NavigationCancellationCode.SupersededByNewNavigation`. In these cases, the\n * redirecting/superseding navigation must finish.\n * - `NavigationError`, `NavigationEnd`, or `NavigationSkipped` event emits\n */\nfunction afterNextNavigation(router, action) {\n router.events\n .pipe(filter((e) => e instanceof NavigationEnd ||\n e instanceof NavigationCancel ||\n e instanceof NavigationError ||\n e instanceof NavigationSkipped), map((e) => {\n if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {\n return NavigationResult.COMPLETE;\n }\n const redirecting = e instanceof NavigationCancel\n ? e.code === NavigationCancellationCode.Redirect ||\n e.code === NavigationCancellationCode.SupersededByNewNavigation\n : false;\n return redirecting ? NavigationResult.REDIRECTING : NavigationResult.FAILED;\n }), filter((result) => result !== NavigationResult.REDIRECTING), take(1))\n .subscribe(() => {\n action();\n });\n}\n\nfunction defaultErrorHandler(error) {\n throw error;\n}\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`\n * (exact = true).\n */\nconst exactMatchOptions = {\n paths: 'exact',\n fragment: 'ignored',\n matrixParams: 'ignored',\n queryParams: 'exact',\n};\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`\n * (exact = false).\n */\nconst subsetMatchOptions = {\n paths: 'subset',\n fragment: 'ignored',\n matrixParams: 'ignored',\n queryParams: 'subset',\n};\n/**\n * @description\n *\n * A service that provides navigation among views and URL manipulation capabilities.\n *\n * @see {@link Route}\n * @see [Routing and Navigation Guide](guide/router).\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass Router {\n get currentUrlTree() {\n return this.stateManager.getCurrentUrlTree();\n }\n get rawUrlTree() {\n return this.stateManager.getRawUrlTree();\n }\n /**\n * An event stream for routing events.\n */\n get events() {\n // TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal\n // cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't\n // allowed/supported but we still have to fix these or file bugs against the teams before making\n // the change.\n return this._events;\n }\n /**\n * The current state of routing in this NgModule.\n */\n get routerState() {\n return this.stateManager.getRouterState();\n }\n constructor() {\n this.disposed = false;\n this.isNgZoneEnabled = false;\n this.console = inject(ɵConsole);\n this.stateManager = inject(StateManager);\n this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};\n this.pendingTasks = inject(ɵPendingTasks);\n this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';\n this.navigationTransitions = inject(NavigationTransitions);\n this.urlSerializer = inject(UrlSerializer);\n this.location = inject(Location);\n this.urlHandlingStrategy = inject(UrlHandlingStrategy);\n /**\n * The private `Subject` type for the public events exposed in the getter. This is used internally\n * to push events to. The separate field allows us to expose separate types in the public API\n * (i.e., an Observable rather than the Subject).\n */\n this._events = new Subject();\n /**\n * A handler for navigation errors in this NgModule.\n *\n * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.\n * `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.\n * @see {@link withNavigationErrorHandler}\n */\n this.errorHandler = this.options.errorHandler || defaultErrorHandler;\n /**\n * True if at least one navigation event has occurred,\n * false otherwise.\n */\n this.navigated = false;\n /**\n * A strategy for re-using routes.\n *\n * @deprecated Configure using `providers` instead:\n * `{provide: RouteReuseStrategy, useClass: MyStrategy}`.\n */\n this.routeReuseStrategy = inject(RouteReuseStrategy);\n /**\n * How to handle a navigation request to the current URL.\n *\n *\n * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.\n * @see {@link withRouterConfig}\n * @see {@link provideRouter}\n * @see {@link RouterModule}\n */\n this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';\n this.config = inject(ROUTES, { optional: true })?.flat() ?? [];\n /**\n * Indicates whether the application has opted in to binding Router data to component inputs.\n *\n * This option is enabled by the `withComponentInputBinding` feature of `provideRouter` or\n * `bindToComponentInputs` in the `ExtraOptions` of `RouterModule.forRoot`.\n */\n this.componentInputBindingEnabled = !!inject(INPUT_BINDER, { optional: true });\n this.eventsSubscription = new Subscription();\n this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();\n this.resetConfig(this.config);\n this.navigationTransitions\n .setupNavigations(this, this.currentUrlTree, this.routerState)\n .subscribe({\n error: (e) => {\n this.console.warn(ngDevMode ? `Unhandled Navigation Error: ${e}` : e);\n },\n });\n this.subscribeToNavigationEvents();\n }\n subscribeToNavigationEvents() {\n const subscription = this.navigationTransitions.events.subscribe((e) => {\n try {\n const currentTransition = this.navigationTransitions.currentTransition;\n const currentNavigation = this.navigationTransitions.currentNavigation;\n if (currentTransition !== null && currentNavigation !== null) {\n this.stateManager.handleRouterEvent(e, currentNavigation);\n if (e instanceof NavigationCancel &&\n e.code !== NavigationCancellationCode.Redirect &&\n e.code !== NavigationCancellationCode.SupersededByNewNavigation) {\n // It seems weird that `navigated` is set to `true` when the navigation is rejected,\n // however it's how things were written initially. Investigation would need to be done\n // to determine if this can be removed.\n this.navigated = true;\n }\n else if (e instanceof NavigationEnd) {\n this.navigated = true;\n }\n else if (e instanceof RedirectRequest) {\n const mergedTree = this.urlHandlingStrategy.merge(e.url, currentTransition.currentRawUrl);\n const extras = {\n // Persist transient navigation info from the original navigation request.\n info: currentTransition.extras.info,\n skipLocationChange: currentTransition.extras.skipLocationChange,\n // The URL is already updated at this point if we have 'eager' URL\n // updates or if the navigation was triggered by the browser (back\n // button, URL bar, etc). We want to replace that item in history\n // if the navigation is rejected.\n replaceUrl: this.urlUpdateStrategy === 'eager' ||\n isBrowserTriggeredNavigation(currentTransition.source),\n };\n this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras, {\n resolve: currentTransition.resolve,\n reject: currentTransition.reject,\n promise: currentTransition.promise,\n });\n }\n }\n // Note that it's important to have the Router process the events _before_ the event is\n // pushed through the public observable. This ensures the correct router state is in place\n // before applications observe the events.\n if (isPublicRouterEvent(e)) {\n this._events.next(e);\n }\n }\n catch (e) {\n this.navigationTransitions.transitionAbortSubject.next(e);\n }\n });\n this.eventsSubscription.add(subscription);\n }\n /** @internal */\n resetRootComponentType(rootComponentType) {\n // TODO: vsavkin router 4.0 should make the root component set to null\n // this will simplify the lifecycle of the router.\n this.routerState.root.component = rootComponentType;\n this.navigationTransitions.rootComponentType = rootComponentType;\n }\n /**\n * Sets up the location change listener and performs the initial navigation.\n */\n initialNavigation() {\n this.setUpLocationChangeListener();\n if (!this.navigationTransitions.hasRequestedNavigation) {\n this.navigateToSyncWithBrowser(this.location.path(true), IMPERATIVE_NAVIGATION, this.stateManager.restoredState());\n }\n }\n /**\n * Sets up the location change listener. This listener detects navigations triggered from outside\n * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router\n * navigation so that the correct events, guards, etc. are triggered.\n */\n setUpLocationChangeListener() {\n // Don't need to use Zone.wrap any more, because zone.js\n // already patch onPopState, so location change callback will\n // run into ngZone\n this.nonRouterCurrentEntryChangeSubscription ??=\n this.stateManager.registerNonRouterCurrentEntryChangeListener((url, state) => {\n // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS\n // hybrid apps.\n setTimeout(() => {\n this.navigateToSyncWithBrowser(url, 'popstate', state);\n }, 0);\n });\n }\n /**\n * Schedules a router navigation to synchronize Router state with the browser state.\n *\n * This is done as a response to a popstate event and the initial navigation. These\n * two scenarios represent times when the browser URL/state has been updated and\n * the Router needs to respond to ensure its internal state matches.\n */\n navigateToSyncWithBrowser(url, source, state) {\n const extras = { replaceUrl: true };\n // TODO: restoredState should always include the entire state, regardless\n // of navigationId. This requires a breaking change to update the type on\n // NavigationStart’s restoredState, which currently requires navigationId\n // to always be present. The Router used to only restore history state if\n // a navigationId was present.\n // The stored navigationId is used by the RouterScroller to retrieve the scroll\n // position for the page.\n const restoredState = state?.navigationId ? state : null;\n // Separate to NavigationStart.restoredState, we must also restore the state to\n // history.state and generate a new navigationId, since it will be overwritten\n if (state) {\n const stateCopy = { ...state };\n delete stateCopy.navigationId;\n delete stateCopy.ɵrouterPageId;\n if (Object.keys(stateCopy).length !== 0) {\n extras.state = stateCopy;\n }\n }\n const urlTree = this.parseUrl(url);\n this.scheduleNavigation(urlTree, source, restoredState, extras);\n }\n /** The current URL. */\n get url() {\n return this.serializeUrl(this.currentUrlTree);\n }\n /**\n * Returns the current `Navigation` object when the router is navigating,\n * and `null` when idle.\n */\n getCurrentNavigation() {\n return this.navigationTransitions.currentNavigation;\n }\n /**\n * The `Navigation` object of the most recent navigation to succeed and `null` if there\n * has not been a successful navigation yet.\n */\n get lastSuccessfulNavigation() {\n return this.navigationTransitions.lastSuccessfulNavigation;\n }\n /**\n * Resets the route configuration used for navigation and generating links.\n *\n * @param config The route array for the new configuration.\n *\n * @usageNotes\n *\n * ```\n * router.resetConfig([\n * { path: 'team/:id', component: TeamCmp, children: [\n * { path: 'simple', component: SimpleCmp },\n * { path: 'user/:name', component: UserCmp }\n * ]}\n * ]);\n * ```\n */\n resetConfig(config) {\n (typeof ngDevMode === 'undefined' || ngDevMode) && validateConfig(config);\n this.config = config.map(standardizeConfig);\n this.navigated = false;\n }\n /** @nodoc */\n ngOnDestroy() {\n this.dispose();\n }\n /** Disposes of the router. */\n dispose() {\n this.navigationTransitions.complete();\n if (this.nonRouterCurrentEntryChangeSubscription) {\n this.nonRouterCurrentEntryChangeSubscription.unsubscribe();\n this.nonRouterCurrentEntryChangeSubscription = undefined;\n }\n this.disposed = true;\n this.eventsSubscription.unsubscribe();\n }\n /**\n * Appends URL segments to the current URL tree to create a new URL tree.\n *\n * @param commands An array of URL fragments with which to construct the new URL tree.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the current URL tree or the one provided in the `relativeTo`\n * property of the options object, if supplied.\n * @param navigationExtras Options that control the navigation strategy.\n * @returns The new URL tree.\n *\n * @usageNotes\n *\n * ```\n * // create /team/33/user/11\n * router.createUrlTree(['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * router.createUrlTree(['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it,\n * // you can do the following:\n * router.createUrlTree([{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);\n *\n * // remove the right secondary node\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // assuming the current url is `/team/33/user/11` and the route points to `user/11`\n *\n * // navigate to /team/33/user/11/details\n * router.createUrlTree(['details'], {relativeTo: route});\n *\n * // navigate to /team/33/user/22\n * router.createUrlTree(['../22'], {relativeTo: route});\n *\n * // navigate to /team/44/user/22\n * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});\n *\n * Note that a value of `null` or `undefined` for `relativeTo` indicates that the\n * tree should be created relative to the root.\n * ```\n */\n createUrlTree(commands, navigationExtras = {}) {\n const { relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment } = navigationExtras;\n const f = preserveFragment ? this.currentUrlTree.fragment : fragment;\n let q = null;\n switch (queryParamsHandling) {\n case 'merge':\n q = { ...this.currentUrlTree.queryParams, ...queryParams };\n break;\n case 'preserve':\n q = this.currentUrlTree.queryParams;\n break;\n default:\n q = queryParams || null;\n }\n if (q !== null) {\n q = this.removeEmptyProps(q);\n }\n let relativeToUrlSegmentGroup;\n try {\n const relativeToSnapshot = relativeTo ? relativeTo.snapshot : this.routerState.snapshot.root;\n relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeToSnapshot);\n }\n catch (e) {\n // This is strictly for backwards compatibility with tests that create\n // invalid `ActivatedRoute` mocks.\n // Note: the difference between having this fallback for invalid `ActivatedRoute` setups and\n // just throwing is ~500 test failures. Fixing all of those tests by hand is not feasible at\n // the moment.\n if (typeof commands[0] !== 'string' || !commands[0].startsWith('/')) {\n // Navigations that were absolute in the old way of creating UrlTrees\n // would still work because they wouldn't attempt to match the\n // segments in the `ActivatedRoute` to the `currentUrlTree` but\n // instead just replace the root segment with the navigation result.\n // Non-absolute navigations would fail to apply the commands because\n // the logic could not find the segment to replace (so they'd act like there were no\n // commands).\n commands = [];\n }\n relativeToUrlSegmentGroup = this.currentUrlTree.root;\n }\n return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, q, f ?? null);\n }\n /**\n * Navigates to a view using an absolute route path.\n *\n * @param url An absolute path for a defined route. The function does not apply any delta to the\n * current URL.\n * @param extras An object containing properties that modify the navigation strategy.\n *\n * @returns A Promise that resolves to 'true' when navigation succeeds,\n * to 'false' when navigation fails, or is rejected on error.\n *\n * @usageNotes\n *\n * The following calls request navigation to an absolute path.\n *\n * ```\n * router.navigateByUrl(\"/team/33/user/11\");\n *\n * // Navigate without updating the URL\n * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });\n * ```\n *\n * @see [Routing and Navigation guide](guide/router)\n *\n */\n navigateByUrl(url, extras = {\n skipLocationChange: false,\n }) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (this.isNgZoneEnabled && !NgZone.isInAngularZone()) {\n this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);\n }\n }\n const urlTree = isUrlTree(url) ? url : this.parseUrl(url);\n const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);\n return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);\n }\n /**\n * Navigate based on the provided array of commands and a starting point.\n * If no starting route is provided, the navigation is absolute.\n *\n * @param commands An array of URL fragments with which to construct the target URL.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the current URL or the one provided in the `relativeTo` property\n * of the options object, if supplied.\n * @param extras An options object that determines how the URL should be constructed or\n * interpreted.\n *\n * @returns A Promise that resolves to `true` when navigation succeeds, or `false` when navigation\n * fails. The Promise is rejected when an error occurs if `resolveNavigationPromiseOnError` is\n * not `true`.\n *\n * @usageNotes\n *\n * The following calls request navigation to a dynamic route path relative to the current URL.\n *\n * ```\n * router.navigate(['team', 33, 'user', 11], {relativeTo: route});\n *\n * // Navigate without updating the URL, overriding the default behavior\n * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});\n * ```\n *\n * @see [Routing and Navigation guide](guide/router)\n *\n */\n navigate(commands, extras = { skipLocationChange: false }) {\n validateCommands(commands);\n return this.navigateByUrl(this.createUrlTree(commands, extras), extras);\n }\n /** Serializes a `UrlTree` into a string */\n serializeUrl(url) {\n return this.urlSerializer.serialize(url);\n }\n /** Parses a string into a `UrlTree` */\n parseUrl(url) {\n try {\n return this.urlSerializer.parse(url);\n }\n catch {\n return this.urlSerializer.parse('/');\n }\n }\n isActive(url, matchOptions) {\n let options;\n if (matchOptions === true) {\n options = { ...exactMatchOptions };\n }\n else if (matchOptions === false) {\n options = { ...subsetMatchOptions };\n }\n else {\n options = matchOptions;\n }\n if (isUrlTree(url)) {\n return containsTree(this.currentUrlTree, url, options);\n }\n const urlTree = this.parseUrl(url);\n return containsTree(this.currentUrlTree, urlTree, options);\n }\n removeEmptyProps(params) {\n return Object.entries(params).reduce((result, [key, value]) => {\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n return result;\n }, {});\n }\n scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {\n if (this.disposed) {\n return Promise.resolve(false);\n }\n let resolve;\n let reject;\n let promise;\n if (priorPromise) {\n resolve = priorPromise.resolve;\n reject = priorPromise.reject;\n promise = priorPromise.promise;\n }\n else {\n promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n }\n // Indicate that the navigation is happening.\n const taskId = this.pendingTasks.add();\n afterNextNavigation(this, () => {\n // Remove pending task in a microtask to allow for cancelled\n // initial navigations and redirects within the same task.\n queueMicrotask(() => this.pendingTasks.remove(taskId));\n });\n this.navigationTransitions.handleNavigationRequest({\n source,\n restoredState,\n currentUrlTree: this.currentUrlTree,\n currentRawUrl: this.currentUrlTree,\n rawUrl,\n extras,\n resolve,\n reject,\n promise,\n currentSnapshot: this.routerState.snapshot,\n currentRouterState: this.routerState,\n });\n // Make sure that the error is propagated even though `processNavigations` catch\n // handler does not rethrow\n return promise.catch((e) => {\n return Promise.reject(e);\n });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Router, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Router, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [] });\nfunction validateCommands(commands) {\n for (let i = 0; i < commands.length; i++) {\n const cmd = commands[i];\n if (cmd == null) {\n throw new ɵRuntimeError(4008 /* RuntimeErrorCode.NULLISH_COMMAND */, (typeof ngDevMode === 'undefined' || ngDevMode) &&\n `The requested path contains ${cmd} segment at index ${i}`);\n }\n }\n}\nfunction isPublicRouterEvent(e) {\n return !(e instanceof BeforeActivateRoutes) && !(e instanceof RedirectRequest);\n}\n\n/**\n * @description\n *\n * When applied to an element in a template, makes that element a link\n * that initiates navigation to a route. Navigation opens one or more routed components\n * in one or more `<router-outlet>` locations on the page.\n *\n * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,\n * the following creates a static link to the route:\n * `<a routerLink=\"/user/bob\">link to user component</a>`\n *\n * You can use dynamic values to generate the link.\n * For a dynamic link, pass an array of path segments,\n * followed by the params for each segment.\n * For example, `['/team', teamId, 'user', userName, {details: true}]`\n * generates a link to `/team/11/user/bob;details=true`.\n *\n * Multiple static segments can be merged into one term and combined with dynamic segments.\n * For example, `['/team/11/user', userName, {details: true}]`\n *\n * The input that you provide to the link is treated as a delta to the current URL.\n * For instance, suppose the current URL is `/user/(box//aux:team)`.\n * The link `<a [routerLink]=\"['/user/jim']\">Jim</a>` creates the URL\n * `/user/(jim//aux:team)`.\n * See {@link Router#createUrlTree} for more information.\n *\n * @usageNotes\n *\n * You can use absolute or relative paths in a link, set query parameters,\n * control how parameters are handled, and keep a history of navigation states.\n *\n * ### Relative link paths\n *\n * The first segment name can be prepended with `/`, `./`, or `../`.\n * * If the first segment begins with `/`, the router looks up the route from the root of the\n * app.\n * * If the first segment begins with `./`, or doesn't begin with a slash, the router\n * looks in the children of the current activated route.\n * * If the first segment begins with `../`, the router goes up one level in the route tree.\n *\n * ### Setting and handling query params and fragments\n *\n * The following link adds a query parameter and a fragment to the generated URL:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">\n * link to user component\n * </a>\n * ```\n * By default, the directive constructs the new URL using the given query parameters.\n * The example generates the link: `/user/bob?debug=true#education`.\n *\n * You can instruct the directive to handle query parameters differently\n * by specifying the `queryParamsHandling` option in the link.\n * Allowed values are:\n *\n * - `'merge'`: Merge the given `queryParams` into the current query params.\n * - `'preserve'`: Preserve the current query params.\n *\n * For example:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">\n * link to user component\n * </a>\n * ```\n *\n * See {@link UrlCreationOptions#queryParamsHandling}.\n *\n * ### Preserving navigation history\n *\n * You can provide a `state` value to be persisted to the browser's\n * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).\n * For example:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">\n * link to user component\n * </a>\n * ```\n *\n * Use {@link Router#getCurrentNavigation} to retrieve a saved\n * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`\n * event:\n *\n * ```\n * // Get NavigationStart events\n * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {\n * const navigation = router.getCurrentNavigation();\n * tracingService.trace({id: navigation.extras.state.tracingId});\n * });\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLink {\n constructor(router, route, tabIndexAttribute, renderer, el, locationStrategy) {\n this.router = router;\n this.route = route;\n this.tabIndexAttribute = tabIndexAttribute;\n this.renderer = renderer;\n this.el = el;\n this.locationStrategy = locationStrategy;\n /**\n * Represents an `href` attribute value applied to a host element,\n * when a host element is `<a>`. For other tags, the value is `null`.\n */\n this.href = null;\n this.commands = null;\n /** @internal */\n this.onChanges = new Subject();\n /**\n * Passed to {@link Router#createUrlTree} as part of the\n * `UrlCreationOptions`.\n * @see {@link UrlCreationOptions#preserveFragment}\n * @see {@link Router#createUrlTree}\n */\n this.preserveFragment = false;\n /**\n * Passed to {@link Router#navigateByUrl} as part of the\n * `NavigationBehaviorOptions`.\n * @see {@link NavigationBehaviorOptions#skipLocationChange}\n * @see {@link Router#navigateByUrl}\n */\n this.skipLocationChange = false;\n /**\n * Passed to {@link Router#navigateByUrl} as part of the\n * `NavigationBehaviorOptions`.\n * @see {@link NavigationBehaviorOptions#replaceUrl}\n * @see {@link Router#navigateByUrl}\n */\n this.replaceUrl = false;\n const tagName = el.nativeElement.tagName?.toLowerCase();\n this.isAnchorElement = tagName === 'a' || tagName === 'area';\n if (this.isAnchorElement) {\n this.subscription = router.events.subscribe((s) => {\n if (s instanceof NavigationEnd) {\n this.updateHref();\n }\n });\n }\n else {\n this.setTabIndexIfNotOnNativeEl('0');\n }\n }\n /**\n * Modifies the tab index if there was not a tabindex attribute on the element during\n * instantiation.\n */\n setTabIndexIfNotOnNativeEl(newTabIndex) {\n if (this.tabIndexAttribute != null /* both `null` and `undefined` */ || this.isAnchorElement) {\n return;\n }\n this.applyAttributeValue('tabindex', newTabIndex);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this.isAnchorElement) {\n this.updateHref();\n }\n // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes\n // to the RouterLinks it's tracking.\n this.onChanges.next(this);\n }\n /**\n * Commands to pass to {@link Router#createUrlTree}.\n * - **array**: commands to pass to {@link Router#createUrlTree}.\n * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n * - **null|undefined**: effectively disables the `routerLink`\n * @see {@link Router#createUrlTree}\n */\n set routerLink(commands) {\n if (commands != null) {\n this.commands = Array.isArray(commands) ? commands : [commands];\n this.setTabIndexIfNotOnNativeEl('0');\n }\n else {\n this.commands = null;\n this.setTabIndexIfNotOnNativeEl(null);\n }\n }\n /** @nodoc */\n onClick(button, ctrlKey, shiftKey, altKey, metaKey) {\n const urlTree = this.urlTree;\n if (urlTree === null) {\n return true;\n }\n if (this.isAnchorElement) {\n if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {\n return true;\n }\n if (typeof this.target === 'string' && this.target != '_self') {\n return true;\n }\n }\n const extras = {\n skipLocationChange: this.skipLocationChange,\n replaceUrl: this.replaceUrl,\n state: this.state,\n info: this.info,\n };\n this.router.navigateByUrl(urlTree, extras);\n // Return `false` for `<a>` elements to prevent default action\n // and cancel the native behavior, since the navigation is handled\n // by the Router.\n return !this.isAnchorElement;\n }\n /** @nodoc */\n ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n updateHref() {\n const urlTree = this.urlTree;\n this.href =\n urlTree !== null && this.locationStrategy\n ? this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(urlTree))\n : null;\n const sanitizedValue = this.href === null\n ? null\n : // This class represents a directive that can be added to both `<a>` elements,\n // as well as other elements. As a result, we can't define security context at\n // compile time. So the security context is deferred to runtime.\n // The `ɵɵsanitizeUrlOrResourceUrl` selects the necessary sanitizer function\n // based on the tag and property names. The logic mimics the one from\n // `packages/compiler/src/schema/dom_security_schema.ts`, which is used at compile time.\n //\n // Note: we should investigate whether we can switch to using `@HostBinding('attr.href')`\n // instead of applying a value via a renderer, after a final merge of the\n // `RouterLinkWithHref` directive.\n ɵɵsanitizeUrlOrResourceUrl(this.href, this.el.nativeElement.tagName.toLowerCase(), 'href');\n this.applyAttributeValue('href', sanitizedValue);\n }\n applyAttributeValue(attrName, attrValue) {\n const renderer = this.renderer;\n const nativeElement = this.el.nativeElement;\n if (attrValue !== null) {\n renderer.setAttribute(nativeElement, attrName, attrValue);\n }\n else {\n renderer.removeAttribute(nativeElement, attrName);\n }\n }\n get urlTree() {\n if (this.commands === null) {\n return null;\n }\n return this.router.createUrlTree(this.commands, {\n // If the `relativeTo` input is not defined, we want to use `this.route` by default.\n // Otherwise, we should use the value provided by the user in the input.\n relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,\n queryParams: this.queryParams,\n fragment: this.fragment,\n queryParamsHandling: this.queryParamsHandling,\n preserveFragment: this.preserveFragment,\n });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"17.3.12\", type: RouterLink, isStandalone: true, selector: \"[routerLink]\", inputs: { target: \"target\", queryParams: \"queryParams\", fragment: \"fragment\", queryParamsHandling: \"queryParamsHandling\", state: \"state\", info: \"info\", relativeTo: \"relativeTo\", preserveFragment: [\"preserveFragment\", \"preserveFragment\", booleanAttribute], skipLocationChange: [\"skipLocationChange\", \"skipLocationChange\", booleanAttribute], replaceUrl: [\"replaceUrl\", \"replaceUrl\", booleanAttribute], routerLink: \"routerLink\" }, host: { listeners: { \"click\": \"onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)\" }, properties: { \"attr.target\": \"this.target\" } }, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterLink, decorators: [{\n type: Directive,\n args: [{\n selector: '[routerLink]',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: Router }, { type: ActivatedRoute }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i3.LocationStrategy }], propDecorators: { target: [{\n type: HostBinding,\n args: ['attr.target']\n }, {\n type: Input\n }], queryParams: [{\n type: Input\n }], fragment: [{\n type: Input\n }], queryParamsHandling: [{\n type: Input\n }], state: [{\n type: Input\n }], info: [{\n type: Input\n }], relativeTo: [{\n type: Input\n }], preserveFragment: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], skipLocationChange: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], replaceUrl: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], routerLink: [{\n type: Input\n }], onClick: [{\n type: HostListener,\n args: ['click', [\n '$event.button',\n '$event.ctrlKey',\n '$event.shiftKey',\n '$event.altKey',\n '$event.metaKey',\n ]]\n }] } });\n\n/**\n *\n * @description\n *\n * Tracks whether the linked route of an element is currently active, and allows you\n * to specify one or more CSS classes to add to the element when the linked route\n * is active.\n *\n * Use this directive to create a visual distinction for elements associated with an active route.\n * For example, the following code highlights the word \"Bob\" when the router\n * activates the associated route:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\n * ```\n *\n * Whenever the URL is either '/user' or '/user/bob', the \"active-link\" class is\n * added to the anchor tag. If the URL changes, the class is removed.\n *\n * You can set more than one class using a space-separated string or an array.\n * For example:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>\n * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>\n * ```\n *\n * To add the classes only when the URL matches the link exactly, add the option `exact: true`:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:\n * true}\">Bob</a>\n * ```\n *\n * To directly check the `isActive` status of the link, assign the `RouterLinkActive`\n * instance to a template variable.\n * For example, the following checks the status without assigning any CSS classes:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">\n * Bob {{ rla.isActive ? '(already open)' : ''}}\n * </a>\n * ```\n *\n * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.\n * For example, the following sets the active-link class on the `<div>` parent tag\n * when the URL is either '/user/jim' or '/user/bob'.\n *\n * ```\n * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">\n * <a routerLink=\"/user/jim\">Jim</a>\n * <a routerLink=\"/user/bob\">Bob</a>\n * </div>\n * ```\n *\n * The `RouterLinkActive` directive can also be used to set the aria-current attribute\n * to provide an alternative distinction for active elements to visually impaired users.\n *\n * For example, the following code adds the 'active' class to the Home Page link when it is\n * indeed active and in such case also sets its aria-current attribute to 'page':\n *\n * ```\n * <a routerLink=\"/\" routerLinkActive=\"active\" ariaCurrentWhenActive=\"page\">Home Page</a>\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLinkActive {\n get isActive() {\n return this._isActive;\n }\n constructor(router, element, renderer, cdr, link) {\n this.router = router;\n this.element = element;\n this.renderer = renderer;\n this.cdr = cdr;\n this.link = link;\n this.classes = [];\n this._isActive = false;\n /**\n * Options to configure how to determine if the router link is active.\n *\n * These options are passed to the `Router.isActive()` function.\n *\n * @see {@link Router#isActive}\n */\n this.routerLinkActiveOptions = { exact: false };\n /**\n *\n * You can use the output `isActiveChange` to get notified each time the link becomes\n * active or inactive.\n *\n * Emits:\n * true -> Route is active\n * false -> Route is inactive\n *\n * ```\n * <a\n * routerLink=\"/user/bob\"\n * routerLinkActive=\"active-link\"\n * (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>\n * ```\n */\n this.isActiveChange = new EventEmitter();\n this.routerEventsSubscription = router.events.subscribe((s) => {\n if (s instanceof NavigationEnd) {\n this.update();\n }\n });\n }\n /** @nodoc */\n ngAfterContentInit() {\n // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).\n of(this.links.changes, of(null))\n .pipe(mergeAll())\n .subscribe((_) => {\n this.update();\n this.subscribeToEachLinkOnChanges();\n });\n }\n subscribeToEachLinkOnChanges() {\n this.linkInputChangesSubscription?.unsubscribe();\n const allLinkChanges = [...this.links.toArray(), this.link]\n .filter((link) => !!link)\n .map((link) => link.onChanges);\n this.linkInputChangesSubscription = from(allLinkChanges)\n .pipe(mergeAll())\n .subscribe((link) => {\n if (this._isActive !== this.isLinkActive(this.router)(link)) {\n this.update();\n }\n });\n }\n set routerLinkActive(data) {\n const classes = Array.isArray(data) ? data : data.split(' ');\n this.classes = classes.filter((c) => !!c);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this.update();\n }\n /** @nodoc */\n ngOnDestroy() {\n this.routerEventsSubscription.unsubscribe();\n this.linkInputChangesSubscription?.unsubscribe();\n }\n update() {\n if (!this.links || !this.router.navigated)\n return;\n queueMicrotask(() => {\n const hasActiveLinks = this.hasActiveLinks();\n this.classes.forEach((c) => {\n if (hasActiveLinks) {\n this.renderer.addClass(this.element.nativeElement, c);\n }\n else {\n this.renderer.removeClass(this.element.nativeElement, c);\n }\n });\n if (hasActiveLinks && this.ariaCurrentWhenActive !== undefined) {\n this.renderer.setAttribute(this.element.nativeElement, 'aria-current', this.ariaCurrentWhenActive.toString());\n }\n else {\n this.renderer.removeAttribute(this.element.nativeElement, 'aria-current');\n }\n // Only emit change if the active state changed.\n if (this._isActive !== hasActiveLinks) {\n this._isActive = hasActiveLinks;\n this.cdr.markForCheck();\n // Emit on isActiveChange after classes are updated\n this.isActiveChange.emit(hasActiveLinks);\n }\n });\n }\n isLinkActive(router) {\n const options = isActiveMatchOptions(this.routerLinkActiveOptions)\n ? this.routerLinkActiveOptions\n : // While the types should disallow `undefined` here, it's possible without strict inputs\n this.routerLinkActiveOptions.exact || false;\n return (link) => {\n const urlTree = link.urlTree;\n return urlTree ? router.isActive(urlTree, options) : false;\n };\n }\n hasActiveLinks() {\n const isActiveCheckFn = this.isLinkActive(this.router);\n return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RouterLinkActive, isStandalone: true, selector: \"[routerLinkActive]\", inputs: { routerLinkActiveOptions: \"routerLinkActiveOptions\", ariaCurrentWhenActive: \"ariaCurrentWhenActive\", routerLinkActive: \"routerLinkActive\" }, outputs: { isActiveChange: \"isActiveChange\" }, queries: [{ propertyName: \"links\", predicate: RouterLink, descendants: true }], exportAs: [\"routerLinkActive\"], usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterLinkActive, decorators: [{\n type: Directive,\n args: [{\n selector: '[routerLinkActive]',\n exportAs: 'routerLinkActive',\n standalone: true,\n }]\n }], ctorParameters: () => [{ type: Router }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: RouterLink, decorators: [{\n type: Optional\n }] }], propDecorators: { links: [{\n type: ContentChildren,\n args: [RouterLink, { descendants: true }]\n }], routerLinkActiveOptions: [{\n type: Input\n }], ariaCurrentWhenActive: [{\n type: Input\n }], isActiveChange: [{\n type: Output\n }], routerLinkActive: [{\n type: Input\n }] } });\n/**\n * Use instead of `'paths' in options` to be compatible with property renaming\n */\nfunction isActiveMatchOptions(options) {\n return !!options.paths;\n}\n\n/**\n * @description\n *\n * Provides a preloading strategy.\n *\n * @publicApi\n */\nclass PreloadingStrategy {\n}\n/**\n * @description\n *\n * Provides a preloading strategy that preloads all modules as quickly as possible.\n *\n * ```\n * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})\n * ```\n *\n * @publicApi\n */\nclass PreloadAllModules {\n preload(route, fn) {\n return fn().pipe(catchError(() => of(null)));\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PreloadAllModules, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * @description\n *\n * Provides a preloading strategy that does not preload any modules.\n *\n * This strategy is enabled by default.\n *\n * @publicApi\n */\nclass NoPreloading {\n preload(route, fn) {\n return of(null);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NoPreloading, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/**\n * The preloader optimistically loads all router configurations to\n * make navigations into lazily-loaded sections of the application faster.\n *\n * The preloader runs in the background. When the router bootstraps, the preloader\n * starts listening to all navigation events. After every such event, the preloader\n * will check if any configurations can be loaded lazily.\n *\n * If a route is protected by `canLoad` guards, the preloaded will not load it.\n *\n * @publicApi\n */\nclass RouterPreloader {\n constructor(router, compiler, injector, preloadingStrategy, loader) {\n this.router = router;\n this.injector = injector;\n this.preloadingStrategy = preloadingStrategy;\n this.loader = loader;\n }\n setUpPreloading() {\n this.subscription = this.router.events\n .pipe(filter((e) => e instanceof NavigationEnd), concatMap(() => this.preload()))\n .subscribe(() => { });\n }\n preload() {\n return this.processRoutes(this.injector, this.router.config);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n processRoutes(injector, routes) {\n const res = [];\n for (const route of routes) {\n if (route.providers && !route._injector) {\n route._injector = createEnvironmentInjector(route.providers, injector, `Route: ${route.path}`);\n }\n const injectorForCurrentRoute = route._injector ?? injector;\n const injectorForChildren = route._loadedInjector ?? injectorForCurrentRoute;\n // Note that `canLoad` is only checked as a condition that prevents `loadChildren` and not\n // `loadComponent`. `canLoad` guards only block loading of child routes by design. This\n // happens as a consequence of needing to descend into children for route matching immediately\n // while component loading is deferred until route activation. Because `canLoad` guards can\n // have side effects, we cannot execute them here so we instead skip preloading altogether\n // when present. Lastly, it remains to be decided whether `canLoad` should behave this way\n // at all. Code splitting and lazy loading is separate from client-side authorization checks\n // and should not be used as a security measure to prevent loading of code.\n if ((route.loadChildren && !route._loadedRoutes && route.canLoad === undefined) ||\n (route.loadComponent && !route._loadedComponent)) {\n res.push(this.preloadConfig(injectorForCurrentRoute, route));\n }\n if (route.children || route._loadedRoutes) {\n res.push(this.processRoutes(injectorForChildren, (route.children ?? route._loadedRoutes)));\n }\n }\n return from(res).pipe(mergeAll());\n }\n preloadConfig(injector, route) {\n return this.preloadingStrategy.preload(route, () => {\n let loadedChildren$;\n if (route.loadChildren && route.canLoad === undefined) {\n loadedChildren$ = this.loader.loadChildren(injector, route);\n }\n else {\n loadedChildren$ = of(null);\n }\n const recursiveLoadChildren$ = loadedChildren$.pipe(mergeMap((config) => {\n if (config === null) {\n return of(void 0);\n }\n route._loadedRoutes = config.routes;\n route._loadedInjector = config.injector;\n // If the loaded config was a module, use that as the module/module injector going\n // forward. Otherwise, continue using the current module/module injector.\n return this.processRoutes(config.injector ?? injector, config.routes);\n }));\n if (route.loadComponent && !route._loadedComponent) {\n const loadComponent$ = this.loader.loadComponent(route);\n return from([recursiveLoadChildren$, loadComponent$]).pipe(mergeAll());\n }\n else {\n return recursiveLoadChildren$;\n }\n });\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterPreloader, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });\n\nconst ROUTER_SCROLLER = new InjectionToken('');\nclass RouterScroller {\n /** @nodoc */\n constructor(urlSerializer, transitions, viewportScroller, zone, options = {}) {\n this.urlSerializer = urlSerializer;\n this.transitions = transitions;\n this.viewportScroller = viewportScroller;\n this.zone = zone;\n this.options = options;\n this.lastId = 0;\n this.lastSource = 'imperative';\n this.restoredId = 0;\n this.store = {};\n this.environmentInjector = inject(EnvironmentInjector);\n // Default both options to 'disabled'\n options.scrollPositionRestoration ||= 'disabled';\n options.anchorScrolling ||= 'disabled';\n }\n init() {\n // we want to disable the automatic scrolling because having two places\n // responsible for scrolling results race conditions, especially given\n // that browser don't implement this behavior consistently\n if (this.options.scrollPositionRestoration !== 'disabled') {\n this.viewportScroller.setHistoryScrollRestoration('manual');\n }\n this.routerEventsSubscription = this.createScrollEvents();\n this.scrollEventsSubscription = this.consumeScrollEvents();\n }\n createScrollEvents() {\n return this.transitions.events.subscribe((e) => {\n if (e instanceof NavigationStart) {\n // store the scroll position of the current stable navigations.\n this.store[this.lastId] = this.viewportScroller.getScrollPosition();\n this.lastSource = e.navigationTrigger;\n this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;\n }\n else if (e instanceof NavigationEnd) {\n this.lastId = e.id;\n this.scheduleScrollEvent(e, this.urlSerializer.parse(e.urlAfterRedirects).fragment);\n }\n else if (e instanceof NavigationSkipped &&\n e.code === NavigationSkippedCode.IgnoredSameUrlNavigation) {\n this.lastSource = undefined;\n this.restoredId = 0;\n this.scheduleScrollEvent(e, this.urlSerializer.parse(e.url).fragment);\n }\n });\n }\n consumeScrollEvents() {\n return this.transitions.events.subscribe((e) => {\n if (!(e instanceof Scroll))\n return;\n // a popstate event. The pop state event will always ignore anchor scrolling.\n if (e.position) {\n if (this.options.scrollPositionRestoration === 'top') {\n this.viewportScroller.scrollToPosition([0, 0]);\n }\n else if (this.options.scrollPositionRestoration === 'enabled') {\n this.viewportScroller.scrollToPosition(e.position);\n }\n // imperative navigation \"forward\"\n }\n else {\n if (e.anchor && this.options.anchorScrolling === 'enabled') {\n this.viewportScroller.scrollToAnchor(e.anchor);\n }\n else if (this.options.scrollPositionRestoration !== 'disabled') {\n this.viewportScroller.scrollToPosition([0, 0]);\n }\n }\n });\n }\n scheduleScrollEvent(routerEvent, anchor) {\n this.zone.runOutsideAngular(async () => {\n // The scroll event needs to be delayed until after change detection. Otherwise we may\n // attempt to restore the scroll position before the router outlet has fully rendered the\n // component by executing its update block of the template function.\n await new Promise((resolve) => {\n // TODO(atscott): Attempt to remove the setTimeout in a future PR.\n setTimeout(() => {\n resolve();\n });\n afterNextRender(() => {\n resolve();\n }, { injector: this.environmentInjector });\n });\n this.zone.run(() => {\n this.transitions.events.next(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));\n });\n });\n }\n /** @nodoc */\n ngOnDestroy() {\n this.routerEventsSubscription?.unsubscribe();\n this.scrollEventsSubscription?.unsubscribe();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterScroller, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterScroller }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterScroller, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });\n\n/**\n * Sets up providers necessary to enable `Router` functionality for the application.\n * Allows to configure a set of routes as well as extra features that should be enabled.\n *\n * @usageNotes\n *\n * Basic example of how you can add a Router to your application:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent, {\n * providers: [provideRouter(appRoutes)]\n * });\n * ```\n *\n * You can also enable optional features in the Router by adding functions from the `RouterFeatures`\n * type:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes,\n * withDebugTracing(),\n * withRouterConfig({paramsInheritanceStrategy: 'always'}))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link RouterFeatures}\n *\n * @publicApi\n * @param routes A set of `Route`s to use for the application routing table.\n * @param features Optional features to configure additional router behaviors.\n * @returns A set of providers to setup a Router.\n */\nfunction provideRouter(routes, ...features) {\n return makeEnvironmentProviders([\n { provide: ROUTES, multi: true, useValue: routes },\n typeof ngDevMode === 'undefined' || ngDevMode\n ? { provide: ROUTER_IS_PROVIDED, useValue: true }\n : [],\n { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n { provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener },\n features.map((feature) => feature.ɵproviders),\n ]);\n}\nfunction rootRoute(router) {\n return router.routerState.root;\n}\n/**\n * Helper function to create an object that represents a Router feature.\n */\nfunction routerFeature(kind, providers) {\n return { ɵkind: kind, ɵproviders: providers };\n}\n/**\n * An Injection token used to indicate whether `provideRouter` or `RouterModule.forRoot` was ever\n * called.\n */\nconst ROUTER_IS_PROVIDED = new InjectionToken('', {\n providedIn: 'root',\n factory: () => false,\n});\nconst routerIsProvidedDevModeCheck = {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory() {\n return () => {\n if (!inject(ROUTER_IS_PROVIDED)) {\n console.warn('`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. ' +\n 'This is likely a mistake.');\n }\n };\n },\n};\n/**\n * Registers a [DI provider](guide/glossary#provider) for a set of routes.\n * @param routes The route configuration to provide.\n *\n * @usageNotes\n *\n * ```\n * @NgModule({\n * providers: [provideRoutes(ROUTES)]\n * })\n * class LazyLoadedChildModule {}\n * ```\n *\n * @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.\n * @see {@link ROUTES}\n * @publicApi\n */\nfunction provideRoutes(routes) {\n return [\n { provide: ROUTES, multi: true, useValue: routes },\n typeof ngDevMode === 'undefined' || ngDevMode ? routerIsProvidedDevModeCheck : [],\n ];\n}\n/**\n * Enables customizable scrolling behavior for router navigations.\n *\n * @usageNotes\n *\n * Basic example of how you can enable scrolling feature:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withInMemoryScrolling())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n * @see {@link ViewportScroller}\n *\n * @publicApi\n * @param options Set of configuration parameters to customize scrolling behavior, see\n * `InMemoryScrollingOptions` for additional information.\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withInMemoryScrolling(options = {}) {\n const providers = [\n {\n provide: ROUTER_SCROLLER,\n useFactory: () => {\n const viewportScroller = inject(ViewportScroller);\n const zone = inject(NgZone);\n const transitions = inject(NavigationTransitions);\n const urlSerializer = inject(UrlSerializer);\n return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, options);\n },\n },\n ];\n return routerFeature(4 /* RouterFeatureKind.InMemoryScrollingFeature */, providers);\n}\nfunction getBootstrapListener() {\n const injector = inject(Injector);\n return (bootstrappedComponentRef) => {\n const ref = injector.get(ApplicationRef);\n if (bootstrappedComponentRef !== ref.components[0]) {\n return;\n }\n const router = injector.get(Router);\n const bootstrapDone = injector.get(BOOTSTRAP_DONE);\n if (injector.get(INITIAL_NAVIGATION) === 1 /* InitialNavigation.EnabledNonBlocking */) {\n router.initialNavigation();\n }\n injector.get(ROUTER_PRELOADER, null, InjectFlags.Optional)?.setUpPreloading();\n injector.get(ROUTER_SCROLLER, null, InjectFlags.Optional)?.init();\n router.resetRootComponentType(ref.componentTypes[0]);\n if (!bootstrapDone.closed) {\n bootstrapDone.next();\n bootstrapDone.complete();\n bootstrapDone.unsubscribe();\n }\n };\n}\n/**\n * A subject used to indicate that the bootstrapping phase is done. When initial navigation is\n * `enabledBlocking`, the first navigation waits until bootstrapping is finished before continuing\n * to the activation phase.\n */\nconst BOOTSTRAP_DONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'bootstrap done indicator' : '', {\n factory: () => {\n return new Subject();\n },\n});\nconst INITIAL_NAVIGATION = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'initial navigation' : '', { providedIn: 'root', factory: () => 1 /* InitialNavigation.EnabledNonBlocking */ });\n/**\n * Configures initial navigation to start before the root component is created.\n *\n * The bootstrap is blocked until the initial navigation is complete. This value is required for\n * [server-side rendering](guide/ssr) to work.\n *\n * @usageNotes\n *\n * Basic example of how you can enable this navigation behavior:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withEnabledBlockingInitialNavigation())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @publicApi\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withEnabledBlockingInitialNavigation() {\n const providers = [\n { provide: INITIAL_NAVIGATION, useValue: 0 /* InitialNavigation.EnabledBlocking */ },\n {\n provide: APP_INITIALIZER,\n multi: true,\n deps: [Injector],\n useFactory: (injector) => {\n const locationInitialized = injector.get(LOCATION_INITIALIZED, Promise.resolve());\n return () => {\n return locationInitialized.then(() => {\n return new Promise((resolve) => {\n const router = injector.get(Router);\n const bootstrapDone = injector.get(BOOTSTRAP_DONE);\n afterNextNavigation(router, () => {\n // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored\n // without a redirect.\n resolve(true);\n });\n injector.get(NavigationTransitions).afterPreactivation = () => {\n // Unblock APP_INITIALIZER once we get to `afterPreactivation`. At this point, we\n // assume activation will complete successfully (even though this is not\n // guaranteed).\n resolve(true);\n return bootstrapDone.closed ? of(void 0) : bootstrapDone;\n };\n router.initialNavigation();\n });\n });\n };\n },\n },\n ];\n return routerFeature(2 /* RouterFeatureKind.EnabledBlockingInitialNavigationFeature */, providers);\n}\n/**\n * Disables initial navigation.\n *\n * Use if there is a reason to have more control over when the router starts its initial navigation\n * due to some complex initialization logic.\n *\n * @usageNotes\n *\n * Basic example of how you can disable initial navigation:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withDisabledInitialNavigation())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withDisabledInitialNavigation() {\n const providers = [\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: () => {\n const router = inject(Router);\n return () => {\n router.setUpLocationChangeListener();\n };\n },\n },\n { provide: INITIAL_NAVIGATION, useValue: 2 /* InitialNavigation.Disabled */ },\n ];\n return routerFeature(3 /* RouterFeatureKind.DisabledInitialNavigationFeature */, providers);\n}\n/**\n * Enables logging of all internal navigation events to the console.\n * Extra logging might be useful for debugging purposes to inspect Router event sequence.\n *\n * @usageNotes\n *\n * Basic example of how you can enable debug tracing:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withDebugTracing())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withDebugTracing() {\n let providers = [];\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n providers = [\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: () => {\n const router = inject(Router);\n return () => router.events.subscribe((e) => {\n // tslint:disable:no-console\n console.group?.(`Router Event: ${e.constructor.name}`);\n console.log(stringifyEvent(e));\n console.log(e);\n console.groupEnd?.();\n // tslint:enable:no-console\n });\n },\n },\n ];\n }\n else {\n providers = [];\n }\n return routerFeature(1 /* RouterFeatureKind.DebugTracingFeature */, providers);\n}\nconst ROUTER_PRELOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'router preloader' : '');\n/**\n * Allows to configure a preloading strategy to use. The strategy is configured by providing a\n * reference to a class that implements a `PreloadingStrategy`.\n *\n * @usageNotes\n *\n * Basic example of how you can configure preloading:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withPreloading(PreloadAllModules))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that\n * should be used.\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withPreloading(preloadingStrategy) {\n const providers = [\n { provide: ROUTER_PRELOADER, useExisting: RouterPreloader },\n { provide: PreloadingStrategy, useExisting: preloadingStrategy },\n ];\n return routerFeature(0 /* RouterFeatureKind.PreloadingFeature */, providers);\n}\n/**\n * Allows to provide extra parameters to configure Router.\n *\n * @usageNotes\n *\n * Basic example of how you can provide extra configuration options:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withRouterConfig({\n * onSameUrlNavigation: 'reload'\n * }))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n *\n * @param options A set of parameters to configure Router, see `RouterConfigOptions` for\n * additional information.\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withRouterConfig(options) {\n const providers = [{ provide: ROUTER_CONFIGURATION, useValue: options }];\n return routerFeature(5 /* RouterFeatureKind.RouterConfigurationFeature */, providers);\n}\n/**\n * Provides the location strategy that uses the URL fragment instead of the history API.\n *\n * @usageNotes\n *\n * Basic example of how you can use the hash location option:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withHashLocation())\n * ]\n * }\n * );\n * ```\n *\n * @see {@link provideRouter}\n * @see {@link HashLocationStrategy}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withHashLocation() {\n const providers = [{ provide: LocationStrategy, useClass: HashLocationStrategy }];\n return routerFeature(6 /* RouterFeatureKind.RouterHashLocationFeature */, providers);\n}\n/**\n * Subscribes to the Router's navigation events and calls the given function when a\n * `NavigationError` happens.\n *\n * This function is run inside application's [injection context](guide/dependency-injection-context)\n * so you can use the [`inject`](api/core/inject) function.\n *\n * @usageNotes\n *\n * Basic example of how you can use the error handler option:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withNavigationErrorHandler((e: NavigationError) =>\n * inject(MyErrorTracker).trackError(e)))\n * ]\n * }\n * );\n * ```\n *\n * @see {@link NavigationError}\n * @see {@link core/inject}\n * @see {@link runInInjectionContext}\n *\n * @returns A set of providers for use with `provideRouter`.\n *\n * @publicApi\n */\nfunction withNavigationErrorHandler(fn) {\n const providers = [\n {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useValue: () => {\n const injector = inject(EnvironmentInjector);\n inject(Router).events.subscribe((e) => {\n if (e instanceof NavigationError) {\n runInInjectionContext(injector, () => fn(e));\n }\n });\n },\n },\n ];\n return routerFeature(7 /* RouterFeatureKind.NavigationErrorHandlerFeature */, providers);\n}\n/**\n * Enables binding information from the `Router` state directly to the inputs of the component in\n * `Route` configurations.\n *\n * @usageNotes\n *\n * Basic example of how you can enable the feature:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withComponentInputBinding())\n * ]\n * }\n * );\n * ```\n *\n * @returns A set of providers for use with `provideRouter`.\n */\nfunction withComponentInputBinding() {\n const providers = [\n RoutedComponentInputBinder,\n { provide: INPUT_BINDER, useExisting: RoutedComponentInputBinder },\n ];\n return routerFeature(8 /* RouterFeatureKind.ComponentInputBindingFeature */, providers);\n}\n/**\n * Enables view transitions in the Router by running the route activation and deactivation inside of\n * `document.startViewTransition`.\n *\n * Note: The View Transitions API is not available in all browsers. If the browser does not support\n * view transitions, the Router will not attempt to start a view transition and continue processing\n * the navigation as usual.\n *\n * @usageNotes\n *\n * Basic example of how you can enable the feature:\n * ```\n * const appRoutes: Routes = [];\n * bootstrapApplication(AppComponent,\n * {\n * providers: [\n * provideRouter(appRoutes, withViewTransitions())\n * ]\n * }\n * );\n * ```\n *\n * @returns A set of providers for use with `provideRouter`.\n * @see https://developer.chrome.com/docs/web-platform/view-transitions/\n * @see https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API\n * @experimental\n */\nfunction withViewTransitions(options) {\n const providers = [\n { provide: CREATE_VIEW_TRANSITION, useValue: createViewTransition },\n {\n provide: VIEW_TRANSITION_OPTIONS,\n useValue: { skipNextTransition: !!options?.skipInitialTransition, ...options },\n },\n ];\n return routerFeature(9 /* RouterFeatureKind.ViewTransitionsFeature */, providers);\n}\n\n/**\n * The directives defined in the `RouterModule`.\n */\nconst ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent];\n/**\n * @docsNotRequired\n */\nconst ROUTER_FORROOT_GUARD = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode\n ? 'router duplicate forRoot guard'\n : 'ROUTER_FORROOT_GUARD');\n// TODO(atscott): All of these except `ActivatedRoute` are `providedIn: 'root'`. They are only kept\n// here to avoid a breaking change whereby the provider order matters based on where the\n// `RouterModule`/`RouterTestingModule` is imported. These can/should be removed as a \"breaking\"\n// change in a major version.\nconst ROUTER_PROVIDERS = [\n Location,\n { provide: UrlSerializer, useClass: DefaultUrlSerializer },\n Router,\n ChildrenOutletContexts,\n { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n RouterConfigLoader,\n // Only used to warn when `provideRoutes` is used without `RouterModule` or `provideRouter`. Can\n // be removed when `provideRoutes` is removed.\n typeof ngDevMode === 'undefined' || ngDevMode\n ? { provide: ROUTER_IS_PROVIDED, useValue: true }\n : [],\n];\n/**\n * @description\n *\n * Adds directives and providers for in-app navigation among views defined in an application.\n * Use the Angular `Router` service to declaratively specify application states and manage state\n * transitions.\n *\n * You can import this NgModule multiple times, once for each lazy-loaded bundle.\n * However, only one `Router` service can be active.\n * To ensure this, there are two ways to register routes when importing this module:\n *\n * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given\n * routes, and the `Router` service itself.\n * * The `forChild()` method creates an `NgModule` that contains all the directives and the given\n * routes, but does not include the `Router` service.\n *\n * @see [Routing and Navigation guide](guide/router) for an\n * overview of how the `Router` service should be used.\n *\n * @publicApi\n */\nclass RouterModule {\n constructor(guard) { }\n /**\n * Creates and configures a module with all the router providers and directives.\n * Optionally sets up an application listener to perform an initial navigation.\n *\n * When registering the NgModule at the root, import as follows:\n *\n * ```\n * @NgModule({\n * imports: [RouterModule.forRoot(ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @param routes An array of `Route` objects that define the navigation paths for the application.\n * @param config An `ExtraOptions` configuration object that controls how navigation is performed.\n * @return The new `NgModule`.\n *\n */\n static forRoot(routes, config) {\n return {\n ngModule: RouterModule,\n providers: [\n ROUTER_PROVIDERS,\n typeof ngDevMode === 'undefined' || ngDevMode\n ? config?.enableTracing\n ? withDebugTracing().ɵproviders\n : []\n : [],\n { provide: ROUTES, multi: true, useValue: routes },\n {\n provide: ROUTER_FORROOT_GUARD,\n useFactory: provideForRootGuard,\n deps: [[Router, new Optional(), new SkipSelf()]],\n },\n { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },\n config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(),\n provideRouterScroller(),\n config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [],\n config?.initialNavigation ? provideInitialNavigation(config) : [],\n config?.bindToComponentInputs ? withComponentInputBinding().ɵproviders : [],\n config?.enableViewTransitions ? withViewTransitions().ɵproviders : [],\n provideRouterInitializer(),\n ],\n };\n }\n /**\n * Creates a module with all the router directives and a provider registering routes,\n * without creating a new Router service.\n * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:\n *\n * ```\n * @NgModule({\n * imports: [RouterModule.forChild(ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @param routes An array of `Route` objects that define the navigation paths for the submodule.\n * @return The new NgModule.\n *\n */\n static forChild(routes) {\n return {\n ngModule: RouterModule,\n providers: [{ provide: ROUTES, multi: true, useValue: routes }],\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RouterModule, decorators: [{\n type: NgModule,\n args: [{\n imports: ROUTER_DIRECTIVES,\n exports: ROUTER_DIRECTIVES,\n }]\n }], ctorParameters: () => [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ROUTER_FORROOT_GUARD]\n }] }] });\n/**\n * For internal use by `RouterModule` only. Note that this differs from `withInMemoryRouterScroller`\n * because it reads from the `ExtraOptions` which should not be used in the standalone world.\n */\nfunction provideRouterScroller() {\n return {\n provide: ROUTER_SCROLLER,\n useFactory: () => {\n const viewportScroller = inject(ViewportScroller);\n const zone = inject(NgZone);\n const config = inject(ROUTER_CONFIGURATION);\n const transitions = inject(NavigationTransitions);\n const urlSerializer = inject(UrlSerializer);\n if (config.scrollOffset) {\n viewportScroller.setOffset(config.scrollOffset);\n }\n return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, config);\n },\n };\n}\n// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should\n// provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`.\nfunction provideHashLocationStrategy() {\n return { provide: LocationStrategy, useClass: HashLocationStrategy };\n}\n// Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not\n// need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`.\nfunction providePathLocationStrategy() {\n return { provide: LocationStrategy, useClass: PathLocationStrategy };\n}\nfunction provideForRootGuard(router) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && router) {\n throw new ɵRuntimeError(4007 /* RuntimeErrorCode.FOR_ROOT_CALLED_TWICE */, `The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector.` +\n ` Lazy loaded modules should use RouterModule.forChild() instead.`);\n }\n return 'guarded';\n}\n// Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter`\n// users call `withXInitialNavigation` directly.\nfunction provideInitialNavigation(config) {\n return [\n config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [],\n config.initialNavigation === 'enabledBlocking'\n ? withEnabledBlockingInitialNavigation().ɵproviders\n : [],\n ];\n}\n// TODO(atscott): This should not be in the public API\n/**\n * A [DI token](guide/glossary/#di-token) for the router initializer that\n * is called after the app is bootstrapped.\n *\n * @publicApi\n */\nconst ROUTER_INITIALIZER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'Router Initializer' : '');\nfunction provideRouterInitializer() {\n return [\n // ROUTER_INITIALIZER token should be removed. It's public API but shouldn't be. We can just\n // have `getBootstrapListener` directly attached to APP_BOOTSTRAP_LISTENER.\n { provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener },\n { provide: APP_BOOTSTRAP_LISTENER, multi: true, useExisting: ROUTER_INITIALIZER },\n ];\n}\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanMatch(providers) {\n return providers.map((provider) => (...params) => inject(provider).canMatch(...params));\n}\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanActivate(providers) {\n return providers.map((provider) => (...params) => inject(provider).canActivate(...params));\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanActivateChild(providers) {\n return providers.map((provider) => (...params) => inject(provider).canActivateChild(...params));\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToCanDeactivate(providers) {\n return providers.map((provider) => (...params) => inject(provider).canDeactivate(...params));\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nfunction mapToResolve(provider) {\n return (...params) => inject(provider).resolve(...params);\n}\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('17.3.12');\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, mapToCanActivate, mapToCanActivateChild, mapToCanDeactivate, mapToCanMatch, mapToResolve, provideRouter, provideRoutes, withComponentInputBinding, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withHashLocation, withInMemoryScrolling, withNavigationErrorHandler, withPreloading, withRouterConfig, withViewTransitions, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, afterNextNavigation as ɵafterNextNavigation, loadChildren as ɵloadChildren };\n","import { Observable } from '../Observable';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Component, Input, Output, NgModule, ViewChild, HostListener, ViewEncapsulation, Directive, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport { trigger, transition, style, animate } from '@angular/animations';\nimport * as i2 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport { fromEvent } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\nclass AccordionStepperComponent {\n state;\n clicked = new EventEmitter();\n randomId = Math.random()\n .toString(36)\n .substring(2, 15) +\n Math.random()\n .toString(36)\n .substring(2, 15);\n constructor() { }\n ngOnInit() { }\n clickHandler() {\n this.clicked.emit(this.state);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AccordionStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AccordionStepperComponent, selector: \"dhcl-accordion-stepper\", inputs: { state: \"state\" }, outputs: { clicked: \"clicked\" }, ngImport: i0, template: \"<div class=\\\"dhcl-accordion-stepper\\\" *ngIf=\\\"state\\\">\\r\\n <button\\r\\n (click)=\\\"clickHandler()\\\"\\r\\n [attr.aria-controls]=\\\"'dhcl-accordion-stepper-content-' + randomId\\\"\\r\\n class=\\\"dhcl-accordion-stepper-header\\\"\\r\\n [disabled]=\\\"state.disabled\\\"\\r\\n [class.active]=\\\"state.active\\\"\\r\\n >\\r\\n <div class=\\\"dhcl-accordion-icon-container\\\">\\r\\n <div class=\\\"dhcl-accordion-icon-container-number\\\" *ngIf=\\\"!state.complete && !state.incomplete\\\">\\r\\n <span>{{ state.stepNumber }}</span>\\r\\n </div>\\r\\n <div class=\\\"dhcl-accordion-icon-container-icon\\\" *ngIf=\\\"state.complete || state.incomplete\\\">\\r\\n <svg *ngIf=\\\"state.complete\\\" width=\\\"16\\\" height=\\\"12\\\" viewBox=\\\"0 0 16 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <g id=\\\"UI / form / complete/ green\\\">\\r\\n <path id=\\\"Line\\\" d=\\\"M1.5 6.5L5.5 10.5\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path id=\\\"Line 2\\\" d=\\\"M5.55556 10.4444L14.4444 1.55556\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </g>\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"state.incomplete && !state.complete\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n width=\\\"4\\\"\\r\\n height=\\\"12\\\"\\r\\n viewBox=\\\"0 0 4 12\\\"\\r\\n fill=\\\"none\\\"\\r\\n >\\r\\n <path d=\\\"M1.376 8.032L0.912 0.511999H3.296L2.848 8.032H1.376ZM0.992 12V9.712H3.248V12H0.992Z\\\" fill=\\\"#ED711C\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n </div>\\r\\n <span class=\\\"dhcl-accordion-stepper-label\\\" [class.has-edit]=\\\"state.showEdit\\\" [attr.id]=\\\"'dhcl-accordion-stepper-label-' + randomId\\\">{{\\r\\n state.label\\r\\n }}</span>\\r\\n <span class=\\\"edit-label\\\" *ngIf=\\\"state.showEdit\\\">Edit</span>\\r\\n </button>\\r\\n <div\\r\\n class=\\\"dhcl-accordion-stepper-content\\\"\\r\\n [attr.id]=\\\"'dhcl-accordion-stepper-content-' + randomId\\\"\\r\\n [attr.labelledby]=\\\"'dhcl-accordion-stepper-label-' + randomId\\\"\\r\\n >\\r\\n <div [@openClose] *ngIf=\\\"state.show\\\">\\r\\n <ng-content></ng-content>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-accordion-stepper{width:100%;display:block}.dhcl-accordion-stepper-header{display:inline-block;width:100%;border:none;background:var(--dhcl-color-white);text-align:left;height:81px;color:var(--dhcl-color-gray-dark);cursor:pointer;border-top:1px solid var(--dhcl-color-gray-light-medium)}@media (max-width: 420px){.dhcl-accordion-stepper-header{padding-left:0}}.dhcl-accordion-stepper-header .dhcl-accordion-icon-container{float:left;height:41px;width:41px;border:2px solid var(--dhcl-color-gray-light-medium);border-radius:50%;text-align:center;line-height:41px;margin-right:15px;overflow:hidden}.dhcl-accordion-stepper-header .dhcl-accordion-icon-container-number{color:var(--dhcl-color-gray-dark);font-weight:700;font-size:1rem}.dhcl-accordion-stepper-header .dhcl-accordion-icon-container-icon svg path{stroke:var(--dhcl-color-primary-dark);fill:var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header .dhcl-accordion-stepper-label{font-size:1.25rem;line-height:45px;float:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:calc(100% - 60px)}.dhcl-accordion-stepper-header .dhcl-accordion-stepper-label.has-edit{width:calc(100% - 110px);margin-right:15px}@media (max-width: 420px){.dhcl-accordion-stepper-header .dhcl-accordion-stepper-label{font-size:1.125rem;line-height:45px}}.dhcl-accordion-stepper-header .edit-label{float:left;font-size:14px;font-weight:700;color:var(--dhcl-color-secondary);line-height:41px}.dhcl-accordion-stepper-header.active{color:var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header.active .dhcl-accordion-icon-container{border:2px solid var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header.active .dhcl-accordion-icon-container-number{color:var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header:disabled{cursor:no-drop;opacity:1;pointer-events:initial}.dhcl-accordion-stepper .dhcl-accordion-stepper-content{overflow:hidden}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], animations: [\n trigger('openClose', [\n transition('void => *', [style({ marginTop: '-100%' }), animate('.25s ease-in-out')]),\n transition('* => void', [style({ marginTop: '0px' }), animate('.25s ease-in-out')])\n ])\n ] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AccordionStepperComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-accordion-stepper', animations: [\n trigger('openClose', [\n transition('void => *', [style({ marginTop: '-100%' }), animate('.25s ease-in-out')]),\n transition('* => void', [style({ marginTop: '0px' }), animate('.25s ease-in-out')])\n ])\n ], template: \"<div class=\\\"dhcl-accordion-stepper\\\" *ngIf=\\\"state\\\">\\r\\n <button\\r\\n (click)=\\\"clickHandler()\\\"\\r\\n [attr.aria-controls]=\\\"'dhcl-accordion-stepper-content-' + randomId\\\"\\r\\n class=\\\"dhcl-accordion-stepper-header\\\"\\r\\n [disabled]=\\\"state.disabled\\\"\\r\\n [class.active]=\\\"state.active\\\"\\r\\n >\\r\\n <div class=\\\"dhcl-accordion-icon-container\\\">\\r\\n <div class=\\\"dhcl-accordion-icon-container-number\\\" *ngIf=\\\"!state.complete && !state.incomplete\\\">\\r\\n <span>{{ state.stepNumber }}</span>\\r\\n </div>\\r\\n <div class=\\\"dhcl-accordion-icon-container-icon\\\" *ngIf=\\\"state.complete || state.incomplete\\\">\\r\\n <svg *ngIf=\\\"state.complete\\\" width=\\\"16\\\" height=\\\"12\\\" viewBox=\\\"0 0 16 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <g id=\\\"UI / form / complete/ green\\\">\\r\\n <path id=\\\"Line\\\" d=\\\"M1.5 6.5L5.5 10.5\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path id=\\\"Line 2\\\" d=\\\"M5.55556 10.4444L14.4444 1.55556\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </g>\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"state.incomplete && !state.complete\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n width=\\\"4\\\"\\r\\n height=\\\"12\\\"\\r\\n viewBox=\\\"0 0 4 12\\\"\\r\\n fill=\\\"none\\\"\\r\\n >\\r\\n <path d=\\\"M1.376 8.032L0.912 0.511999H3.296L2.848 8.032H1.376ZM0.992 12V9.712H3.248V12H0.992Z\\\" fill=\\\"#ED711C\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n </div>\\r\\n <span class=\\\"dhcl-accordion-stepper-label\\\" [class.has-edit]=\\\"state.showEdit\\\" [attr.id]=\\\"'dhcl-accordion-stepper-label-' + randomId\\\">{{\\r\\n state.label\\r\\n }}</span>\\r\\n <span class=\\\"edit-label\\\" *ngIf=\\\"state.showEdit\\\">Edit</span>\\r\\n </button>\\r\\n <div\\r\\n class=\\\"dhcl-accordion-stepper-content\\\"\\r\\n [attr.id]=\\\"'dhcl-accordion-stepper-content-' + randomId\\\"\\r\\n [attr.labelledby]=\\\"'dhcl-accordion-stepper-label-' + randomId\\\"\\r\\n >\\r\\n <div [@openClose] *ngIf=\\\"state.show\\\">\\r\\n <ng-content></ng-content>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-accordion-stepper{width:100%;display:block}.dhcl-accordion-stepper-header{display:inline-block;width:100%;border:none;background:var(--dhcl-color-white);text-align:left;height:81px;color:var(--dhcl-color-gray-dark);cursor:pointer;border-top:1px solid var(--dhcl-color-gray-light-medium)}@media (max-width: 420px){.dhcl-accordion-stepper-header{padding-left:0}}.dhcl-accordion-stepper-header .dhcl-accordion-icon-container{float:left;height:41px;width:41px;border:2px solid var(--dhcl-color-gray-light-medium);border-radius:50%;text-align:center;line-height:41px;margin-right:15px;overflow:hidden}.dhcl-accordion-stepper-header .dhcl-accordion-icon-container-number{color:var(--dhcl-color-gray-dark);font-weight:700;font-size:1rem}.dhcl-accordion-stepper-header .dhcl-accordion-icon-container-icon svg path{stroke:var(--dhcl-color-primary-dark);fill:var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header .dhcl-accordion-stepper-label{font-size:1.25rem;line-height:45px;float:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:calc(100% - 60px)}.dhcl-accordion-stepper-header .dhcl-accordion-stepper-label.has-edit{width:calc(100% - 110px);margin-right:15px}@media (max-width: 420px){.dhcl-accordion-stepper-header .dhcl-accordion-stepper-label{font-size:1.125rem;line-height:45px}}.dhcl-accordion-stepper-header .edit-label{float:left;font-size:14px;font-weight:700;color:var(--dhcl-color-secondary);line-height:41px}.dhcl-accordion-stepper-header.active{color:var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header.active .dhcl-accordion-icon-container{border:2px solid var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header.active .dhcl-accordion-icon-container-number{color:var(--dhcl-color-primary-dark)}.dhcl-accordion-stepper-header:disabled{cursor:no-drop;opacity:1;pointer-events:initial}.dhcl-accordion-stepper .dhcl-accordion-stepper-content{overflow:hidden}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { state: [{\n type: Input\n }], clicked: [{\n type: Output\n }] } });\n\nclass AccordionStepperModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AccordionStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: AccordionStepperModule, declarations: [AccordionStepperComponent], imports: [CommonModule], exports: [AccordionStepperComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AccordionStepperModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AccordionStepperModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [AccordionStepperComponent],\n imports: [CommonModule],\n exports: [AccordionStepperComponent]\n }]\n }] });\n\nconst MAX_SUGGESTIONS_PER_GROUP_INITIALLY_SHOWN_DEFAULT = 3;\nclass AutocompleteDropdownComponent {\n searchTerm;\n suggestions = [];\n placeholder = '';\n maxLength = 80;\n maxSuggestionsPerGroupInitiallyShown = MAX_SUGGESTIONS_PER_GROUP_INITIALLY_SHOWN_DEFAULT;\n inputChange = new EventEmitter();\n search = new EventEmitter();\n suggestionClicked = new EventEmitter();\n showHideStatus;\n showDropdown = false;\n ariaKey = new Date().getTime();\n ariaIndex = -1;\n ariaActive; // Active Option\n autoCompleteContainer;\n inputField;\n onClick(event) {\n this.windowClickhandler(event);\n }\n constructor() { }\n ngOnInit() {\n this.resetStates();\n }\n ngOnChanges(changes) {\n if (changes.suggestions && !changes.suggestions.firstChange) {\n this.resetStates();\n }\n }\n queryHighlight(highlightString) {\n const reg = new RegExp(this.searchTerm, 'ig');\n return highlightString.replace(reg, (match) => `<i>${match}</i>`);\n }\n getListToShow(list, index) {\n if (this.showHideStatus[index]) {\n return list;\n }\n return [...list].splice(0, this.maxSuggestionsPerGroupInitiallyShown);\n }\n toggleShowHide(index) {\n const status = !Boolean(this.showHideStatus[index]);\n this.resetStates();\n this.showHideStatus[index] = status;\n this.inputField.nativeElement.focus();\n }\n onChangeSearch(val) {\n this.inputChange.emit(val);\n }\n enterHandler() {\n this.showDropdown = false;\n this.search.emit(this.searchTerm);\n this.inputField.nativeElement.blur();\n }\n itemClickedHandler(item) {\n this.showDropdown = false;\n this.searchTerm = item.label;\n this.suggestionClicked.emit(item);\n }\n resetStates() {\n this.ariaIndex = -1;\n this.ariaActive = '';\n this.showHideStatus = new Array(this.suggestions.length);\n }\n keyDownHandler(keyEvent) {\n const keyCode = keyEvent.key.toLowerCase();\n if (keyCode === 'arrowdown') {\n this.arrowHandler(1);\n }\n else if (keyCode === 'arrowup') {\n this.arrowHandler(-1);\n }\n }\n arrowHandler(increment) {\n const shownOptions = this.autoCompleteContainer.nativeElement.querySelectorAll('.dhcl-autocomplete-dropdown-item');\n this.ariaIndex += increment;\n if (this.ariaIndex === -1) {\n this.ariaIndex = 0;\n }\n else if (this.ariaIndex >= shownOptions.length) {\n this.ariaIndex = shownOptions.length - 1;\n }\n this.ariaActive = shownOptions[this.ariaIndex].getAttribute('id');\n this.searchTerm = shownOptions[this.ariaIndex].getAttribute('aria-label');\n this.updateScrollPosition();\n }\n updateScrollPosition() {\n const listContainer = this.autoCompleteContainer.nativeElement.querySelector('.dhcl-autocomplete-dropdown-contents');\n const activeItem = this.autoCompleteContainer.nativeElement.querySelector('ul li.active');\n if (activeItem.getBoundingClientRect().bottom > listContainer.getBoundingClientRect().bottom) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().bottom - listContainer.getBoundingClientRect().bottom);\n }\n else if (activeItem.getBoundingClientRect().top < listContainer.getBoundingClientRect().top) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().top - listContainer.getBoundingClientRect().top);\n }\n }\n windowClickhandler(event) {\n if (!this.autoCompleteContainer.nativeElement.contains(event.target)) {\n this.showDropdown = false;\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AutocompleteDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AutocompleteDropdownComponent, selector: \"dhcl-autocomplete-dropdown\", inputs: { searchTerm: \"searchTerm\", suggestions: \"suggestions\", placeholder: \"placeholder\", maxLength: \"maxLength\", maxSuggestionsPerGroupInitiallyShown: \"maxSuggestionsPerGroupInitiallyShown\" }, outputs: { inputChange: \"inputChange\", search: \"search\", suggestionClicked: \"suggestionClicked\" }, host: { listeners: { \"window:click\": \"onClick($event)\" } }, viewQueries: [{ propertyName: \"autoCompleteContainer\", first: true, predicate: [\"autoCompleteContainer\"], descendants: true }, { propertyName: \"inputField\", first: true, predicate: [\"inputField\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"dhcl-autocomplete-dropdown\\\" [class.expanded]=\\\"showDropdown && suggestions.length > 0\\\" #autoCompleteContainer>\\r\\n <span class=\\\"dhcl-autocomplete-dropdown-icon\\\">\\r\\n <svg viewBox=\\\"0 0 18 19\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31253C2.81252 9.8016 4.82697 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.7981 11.8126 7.31253C11.8126 4.82346 9.79811 2.8125 7.31254 2.8125C4.82347 2.8125 2.81252 4.82696 2.81252 7.31253Z\\\"\\r\\n />\\r\\n </svg>\\r\\n </span>\\r\\n <label>\\r\\n <span class=\\\"dhcl-visually-hidden\\\">{{ placeholder }}</span>\\r\\n <input\\r\\n #inputField\\r\\n [attr.maxlength]=\\\"maxLength\\\"\\r\\n type=\\\"text\\\"\\r\\n autocomplete=\\\"off\\\"\\r\\n [(ngModel)]=\\\"searchTerm\\\"\\r\\n (ngModelChange)=\\\"onChangeSearch($event)\\\"\\r\\n [placeholder]=\\\"placeholder\\\"\\r\\n (focus)=\\\"showDropdown = true\\\"\\r\\n (keyup.enter)=\\\"enterHandler()\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n />\\r\\n </label>\\r\\n <div\\r\\n class=\\\"dhcl-autocomplete-dropdown-contents\\\"\\r\\n *ngIf=\\\"showDropdown && suggestions.length > 0\\\"\\r\\n role=\\\"listbox\\\"\\r\\n [attr.aria-expanded]=\\\"showDropdown && suggestions.length > 0\\\"\\r\\n [attr.id]=\\\"'listbox-' + ariaKey\\\"\\r\\n [attr.aria-describedby]=\\\"'dropdownDesc-' + ariaKey\\\"\\r\\n [attr.owns]=\\\"'listbox-' + ariaKey\\\"\\r\\n [attr.aria-label]=\\\"placeholder\\\"\\r\\n >\\r\\n <div class=\\\"dhcl-autocomplete-dropdown-group\\\" *ngFor=\\\"let autocomplete of suggestions; let i = index\\\">\\r\\n <p class=\\\"dhcl-autocomplete-dropdown-group-heading\\\" *ngIf=\\\"autocomplete.items.length > 0\\\">{{ autocomplete.label }}</p>\\r\\n <ul *ngIf=\\\"autocomplete.items.length > 0\\\">\\r\\n <li\\r\\n role=\\\"option\\\"\\r\\n [attr.aria-selected]=\\\"'option-' + i + '-' + x === ariaActive\\\"\\r\\n *ngFor=\\\"let item of getListToShow(autocomplete.items, i); let x = index\\\"\\r\\n [attr.id]=\\\"'option-' + i + '-' + x\\\"\\r\\n class=\\\"dhcl-autocomplete-dropdown-item\\\"\\r\\n [class.active]=\\\"'option-' + i + '-' + x === ariaActive\\\"\\r\\n (click)=\\\"itemClickedHandler(item)\\\"\\r\\n [innerHTML]=\\\"queryHighlight(item.label)\\\"\\r\\n [attr.aria-label]=\\\"item.label\\\"\\r\\n ></li>\\r\\n </ul>\\r\\n <button\\r\\n class=\\\"more-less-btn\\\"\\r\\n [class.less]=\\\"showHideStatus[i]\\\"\\r\\n *ngIf=\\\"autocomplete.items.length > maxSuggestionsPerGroupInitiallyShown\\\"\\r\\n (click)=\\\"toggleShowHide(i)\\\"\\r\\n [attr.aria-label]=\\\"(showHideStatus[i] ? 'Show Less ' : 'Show More ') + autocomplete.label\\\"\\r\\n >\\r\\n {{ showHideStatus[i] ? 'Less ' : 'More ' }}\\r\\n <svg _ngcontent-omi-c68=\\\"\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" class=\\\"more-arrow\\\" ng-reflect-ng-class=\\\"[object Object]\\\">\\r\\n <path _ngcontent-omi-c68=\\\"\\\" d=\\\"M1 1L6 6L11 1\\\"></path>\\r\\n </svg>\\r\\n </button>\\r\\n <hr *ngIf=\\\"autocomplete.items.length > 0 && i < suggestions.length - 1\\\" />\\r\\n </div>\\r\\n <span [attr.id]=\\\"'dropdownDesc-' + ariaKey\\\" class=\\\"dhcl-visually-hidden\\\">\\r\\n When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or\\r\\n with swipe gestures.\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-autocomplete-dropdown{border:2px solid var(--dhcl-color-secondary);border-radius:4px 0 0 4px;position:relative}.dhcl-autocomplete-dropdown.expanded{border-radius:4px 0 0}.dhcl-autocomplete-dropdown-icon{display:inline-block;padding:21px 10px 21px 20px}.dhcl-autocomplete-dropdown-icon svg{width:18px;height:18px}.dhcl-autocomplete-dropdown-icon svg path{fill:var(--dhcl-color-primary)}.dhcl-autocomplete-dropdown input[type=text]{width:calc(100% - 60px);height:64px;vertical-align:top;padding:0 10px;box-sizing:border-box;border:none;color:var(--dhcl-color-gray-dark);font-size:1rem;font-family:var(--dhcl-font-family);outline:none}.dhcl-autocomplete-dropdown-contents{box-shadow:var(--dhcl-default-box-shadow);max-height:370px;overflow:auto;position:absolute;width:100%;border:2px solid var(--dhcl-color-secondary);left:-2px;z-index:9999;background:var(--dhcl-color-white);border-radius:0 0 4px 4px}.dhcl-autocomplete-dropdown-contents ul{list-style:none;padding:0;margin:0}.dhcl-autocomplete-dropdown-contents ul hr{background:var(--dhcl-color-gray-light-medium);border:none;width:100%;height:1px}.dhcl-autocomplete-dropdown-contents p{padding:10px 0 10px 20px;font-weight:700;font-size:1rem;line-height:1.5rem;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}.dhcl-autocomplete-dropdown-contents .dhcl-autocomplete-dropdown-item{cursor:pointer;padding:5px 0 5px 20px;font-weight:400;font-size:.875rem;line-height:1.375rem;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);transition:var(--dhcl-default-transition)}.dhcl-autocomplete-dropdown-contents .dhcl-autocomplete-dropdown-item.active,.dhcl-autocomplete-dropdown-contents .dhcl-autocomplete-dropdown-item:hover{background:var(--dhcl-color-primary-light)}.dhcl-autocomplete-dropdown-contents .more-less-btn{background:none;border:none;font-weight:700;font-size:.75rem;color:var(--dhcl-color-secondary);margin:10px 20px;padding:0;cursor:pointer}.dhcl-autocomplete-dropdown-contents .more-less-btn svg{height:10px;width:12px;transform:translate(3px,3px);transition:var(--dhcl-default-transition)}.dhcl-autocomplete-dropdown-contents .more-less-btn svg path{stroke:var(--dhcl-color-secondary);fill:transparent}.dhcl-autocomplete-dropdown-contents .more-less-btn.less svg{transform:rotate(180deg) translate(-3px,1px)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i2.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i2.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AutocompleteDropdownComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-autocomplete-dropdown', template: \"<div class=\\\"dhcl-autocomplete-dropdown\\\" [class.expanded]=\\\"showDropdown && suggestions.length > 0\\\" #autoCompleteContainer>\\r\\n <span class=\\\"dhcl-autocomplete-dropdown-icon\\\">\\r\\n <svg viewBox=\\\"0 0 18 19\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M17.7505 16.7591L16.7556 17.754C16.4286 18.0845 15.8942 18.0845 15.5638 17.754L12.0587 14.2489C11.9005 14.0907 11.8126 13.8763 11.8126 13.6512C11.8126 13.4184 11.5418 13.2845 11.3478 13.4132C10.1914 14.1797 8.80489 14.6251 7.31254 14.6251C3.27305 14.6251 0 11.352 0 7.31254C0 3.27305 3.27305 0 7.31254 0C11.352 0 14.6251 3.27305 14.6251 7.31254C14.6251 8.80489 14.1797 10.1914 13.4132 11.3478C13.2845 11.5418 13.4184 11.8126 13.6512 11.8126C13.8763 11.8126 14.0907 11.9005 14.2489 12.0587L17.754 15.5638C18.081 15.8942 18.081 16.4286 17.7505 16.7591ZM2.81252 7.31253C2.81252 9.8016 4.82697 11.8126 7.31254 11.8126C9.80161 11.8126 11.8126 9.7981 11.8126 7.31253C11.8126 4.82346 9.79811 2.8125 7.31254 2.8125C4.82347 2.8125 2.81252 4.82696 2.81252 7.31253Z\\\"\\r\\n />\\r\\n </svg>\\r\\n </span>\\r\\n <label>\\r\\n <span class=\\\"dhcl-visually-hidden\\\">{{ placeholder }}</span>\\r\\n <input\\r\\n #inputField\\r\\n [attr.maxlength]=\\\"maxLength\\\"\\r\\n type=\\\"text\\\"\\r\\n autocomplete=\\\"off\\\"\\r\\n [(ngModel)]=\\\"searchTerm\\\"\\r\\n (ngModelChange)=\\\"onChangeSearch($event)\\\"\\r\\n [placeholder]=\\\"placeholder\\\"\\r\\n (focus)=\\\"showDropdown = true\\\"\\r\\n (keyup.enter)=\\\"enterHandler()\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n />\\r\\n </label>\\r\\n <div\\r\\n class=\\\"dhcl-autocomplete-dropdown-contents\\\"\\r\\n *ngIf=\\\"showDropdown && suggestions.length > 0\\\"\\r\\n role=\\\"listbox\\\"\\r\\n [attr.aria-expanded]=\\\"showDropdown && suggestions.length > 0\\\"\\r\\n [attr.id]=\\\"'listbox-' + ariaKey\\\"\\r\\n [attr.aria-describedby]=\\\"'dropdownDesc-' + ariaKey\\\"\\r\\n [attr.owns]=\\\"'listbox-' + ariaKey\\\"\\r\\n [attr.aria-label]=\\\"placeholder\\\"\\r\\n >\\r\\n <div class=\\\"dhcl-autocomplete-dropdown-group\\\" *ngFor=\\\"let autocomplete of suggestions; let i = index\\\">\\r\\n <p class=\\\"dhcl-autocomplete-dropdown-group-heading\\\" *ngIf=\\\"autocomplete.items.length > 0\\\">{{ autocomplete.label }}</p>\\r\\n <ul *ngIf=\\\"autocomplete.items.length > 0\\\">\\r\\n <li\\r\\n role=\\\"option\\\"\\r\\n [attr.aria-selected]=\\\"'option-' + i + '-' + x === ariaActive\\\"\\r\\n *ngFor=\\\"let item of getListToShow(autocomplete.items, i); let x = index\\\"\\r\\n [attr.id]=\\\"'option-' + i + '-' + x\\\"\\r\\n class=\\\"dhcl-autocomplete-dropdown-item\\\"\\r\\n [class.active]=\\\"'option-' + i + '-' + x === ariaActive\\\"\\r\\n (click)=\\\"itemClickedHandler(item)\\\"\\r\\n [innerHTML]=\\\"queryHighlight(item.label)\\\"\\r\\n [attr.aria-label]=\\\"item.label\\\"\\r\\n ></li>\\r\\n </ul>\\r\\n <button\\r\\n class=\\\"more-less-btn\\\"\\r\\n [class.less]=\\\"showHideStatus[i]\\\"\\r\\n *ngIf=\\\"autocomplete.items.length > maxSuggestionsPerGroupInitiallyShown\\\"\\r\\n (click)=\\\"toggleShowHide(i)\\\"\\r\\n [attr.aria-label]=\\\"(showHideStatus[i] ? 'Show Less ' : 'Show More ') + autocomplete.label\\\"\\r\\n >\\r\\n {{ showHideStatus[i] ? 'Less ' : 'More ' }}\\r\\n <svg _ngcontent-omi-c68=\\\"\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" class=\\\"more-arrow\\\" ng-reflect-ng-class=\\\"[object Object]\\\">\\r\\n <path _ngcontent-omi-c68=\\\"\\\" d=\\\"M1 1L6 6L11 1\\\"></path>\\r\\n </svg>\\r\\n </button>\\r\\n <hr *ngIf=\\\"autocomplete.items.length > 0 && i < suggestions.length - 1\\\" />\\r\\n </div>\\r\\n <span [attr.id]=\\\"'dropdownDesc-' + ariaKey\\\" class=\\\"dhcl-visually-hidden\\\">\\r\\n When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or\\r\\n with swipe gestures.\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-autocomplete-dropdown{border:2px solid var(--dhcl-color-secondary);border-radius:4px 0 0 4px;position:relative}.dhcl-autocomplete-dropdown.expanded{border-radius:4px 0 0}.dhcl-autocomplete-dropdown-icon{display:inline-block;padding:21px 10px 21px 20px}.dhcl-autocomplete-dropdown-icon svg{width:18px;height:18px}.dhcl-autocomplete-dropdown-icon svg path{fill:var(--dhcl-color-primary)}.dhcl-autocomplete-dropdown input[type=text]{width:calc(100% - 60px);height:64px;vertical-align:top;padding:0 10px;box-sizing:border-box;border:none;color:var(--dhcl-color-gray-dark);font-size:1rem;font-family:var(--dhcl-font-family);outline:none}.dhcl-autocomplete-dropdown-contents{box-shadow:var(--dhcl-default-box-shadow);max-height:370px;overflow:auto;position:absolute;width:100%;border:2px solid var(--dhcl-color-secondary);left:-2px;z-index:9999;background:var(--dhcl-color-white);border-radius:0 0 4px 4px}.dhcl-autocomplete-dropdown-contents ul{list-style:none;padding:0;margin:0}.dhcl-autocomplete-dropdown-contents ul hr{background:var(--dhcl-color-gray-light-medium);border:none;width:100%;height:1px}.dhcl-autocomplete-dropdown-contents p{padding:10px 0 10px 20px;font-weight:700;font-size:1rem;line-height:1.5rem;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}.dhcl-autocomplete-dropdown-contents .dhcl-autocomplete-dropdown-item{cursor:pointer;padding:5px 0 5px 20px;font-weight:400;font-size:.875rem;line-height:1.375rem;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);transition:var(--dhcl-default-transition)}.dhcl-autocomplete-dropdown-contents .dhcl-autocomplete-dropdown-item.active,.dhcl-autocomplete-dropdown-contents .dhcl-autocomplete-dropdown-item:hover{background:var(--dhcl-color-primary-light)}.dhcl-autocomplete-dropdown-contents .more-less-btn{background:none;border:none;font-weight:700;font-size:.75rem;color:var(--dhcl-color-secondary);margin:10px 20px;padding:0;cursor:pointer}.dhcl-autocomplete-dropdown-contents .more-less-btn svg{height:10px;width:12px;transform:translate(3px,3px);transition:var(--dhcl-default-transition)}.dhcl-autocomplete-dropdown-contents .more-less-btn svg path{stroke:var(--dhcl-color-secondary);fill:transparent}.dhcl-autocomplete-dropdown-contents .more-less-btn.less svg{transform:rotate(180deg) translate(-3px,1px)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { searchTerm: [{\n type: Input\n }], suggestions: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], maxLength: [{\n type: Input\n }], maxSuggestionsPerGroupInitiallyShown: [{\n type: Input\n }], inputChange: [{\n type: Output\n }], search: [{\n type: Output\n }], suggestionClicked: [{\n type: Output\n }], autoCompleteContainer: [{\n type: ViewChild,\n args: ['autoCompleteContainer']\n }], inputField: [{\n type: ViewChild,\n args: ['inputField']\n }], onClick: [{\n type: HostListener,\n args: ['window:click', ['$event']]\n }] } });\n\nclass AutocompleteDropdownModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AutocompleteDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: AutocompleteDropdownModule, declarations: [AutocompleteDropdownComponent], imports: [CommonModule, FormsModule], exports: [AutocompleteDropdownComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AutocompleteDropdownModule, imports: [CommonModule, FormsModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AutocompleteDropdownModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [AutocompleteDropdownComponent],\n imports: [CommonModule, FormsModule],\n exports: [AutocompleteDropdownComponent]\n }]\n }] });\n\nvar BannerType;\n(function (BannerType) {\n BannerType[\"INFO\"] = \"info\";\n BannerType[\"WARNING\"] = \"warning\";\n BannerType[\"ERROR\"] = \"error\";\n BannerType[\"SUCCESS\"] = \"success\";\n})(BannerType || (BannerType = {}));\n\nclass BannerComponent {\n messages = [];\n bannerType = BannerType.INFO;\n constructor() { }\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: BannerComponent, selector: \"dhcl-banner\", inputs: { messages: \"messages\", bannerType: \"bannerType\" }, ngImport: i0, template: \"<div class=\\\"dhcl-alert-banner {{ 'dhcl-alert-banner-' + bannerType }}\\\">\\r\\n <ul>\\r\\n <li *ngFor=\\\"let message of messages\\\">{{ message }}</li>\\r\\n </ul>\\r\\n</div>\\r\\n\", styles: [\".dhcl-alert-banner{color:var(--dhcl-color-gray-dark);padding:4px 40px}.dhcl-alert-banner ul{padding:0;margin:0}.dhcl-alert-banner ul li{font-size:1rem;line-height:1.625rem}.dhcl-alert-banner-info{background:var(--dhcl-color-info)}.dhcl-alert-banner-error{background:var(--dhcl-color-error)}.dhcl-alert-banner-error li{color:var(--dhcl-color-white)}.dhcl-alert-banner-success{background:var(--dhcl-color-success)}.dhcl-alert-banner-success li{color:var(--dhcl-color-white)}.dhcl-alert-banner-warning{background:var(--dhcl-color-warning)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BannerComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-banner', template: \"<div class=\\\"dhcl-alert-banner {{ 'dhcl-alert-banner-' + bannerType }}\\\">\\r\\n <ul>\\r\\n <li *ngFor=\\\"let message of messages\\\">{{ message }}</li>\\r\\n </ul>\\r\\n</div>\\r\\n\", styles: [\".dhcl-alert-banner{color:var(--dhcl-color-gray-dark);padding:4px 40px}.dhcl-alert-banner ul{padding:0;margin:0}.dhcl-alert-banner ul li{font-size:1rem;line-height:1.625rem}.dhcl-alert-banner-info{background:var(--dhcl-color-info)}.dhcl-alert-banner-error{background:var(--dhcl-color-error)}.dhcl-alert-banner-error li{color:var(--dhcl-color-white)}.dhcl-alert-banner-success{background:var(--dhcl-color-success)}.dhcl-alert-banner-success li{color:var(--dhcl-color-white)}.dhcl-alert-banner-warning{background:var(--dhcl-color-warning)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { messages: [{\n type: Input\n }], bannerType: [{\n type: Input\n }] } });\n\nclass BannerModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BannerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: BannerModule, declarations: [BannerComponent], imports: [CommonModule], exports: [BannerComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BannerModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BannerModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [BannerComponent],\n imports: [CommonModule],\n exports: [BannerComponent]\n }]\n }] });\n\nclass DatetimePickerComponent {\n cdr;\n times;\n selectedDate;\n selectedTime;\n noTimesLabel = 'No Times Available';\n changed = new EventEmitter();\n slotStartIndex = 0;\n slotOffset = 8;\n totalLength = 0;\n dateSlots = [];\n timeSlotCarouselIndex = 0;\n innerWidth;\n onResize(event) {\n this.innerWidth = window.innerWidth;\n if (this.innerWidth <= 1600 && this.innerWidth >= 1200) {\n this.slotOffset = 8;\n }\n else if (this.innerWidth <= 1199 && this.innerWidth >= 768) {\n this.slotOffset = 8;\n }\n else if (this.innerWidth >= 1600) {\n this.slotOffset = 8;\n }\n else if (this.innerWidth <= 280) {\n this.slotOffset = 2;\n }\n else {\n this.slotOffset = 3;\n }\n }\n constructor(cdr) {\n this.cdr = cdr;\n }\n ngOnInit() {\n window.dispatchEvent(new Event('resize'));\n this.loadDateSlots();\n }\n ngOnChanges(changes) {\n if (changes.times && !changes.times.firstChange) {\n this.loadDateSlots();\n }\n else if (changes.selectedDate && !changes.selectedDate.firstChange && !changes.selectedTime) {\n this.goToSelectedDate(this.selectedDate);\n }\n if (changes.selectedDate &&\n changes.selectedDate.previousValue?.getUTCMilliseconds() !== changes.selectedDate.currentValue?.getUTCMilliseconds()) {\n this.slotStartIndex = 0;\n }\n }\n ngAfterViewInit() {\n this.goToSelectedDate(this.selectedDate);\n }\n getIncrementAmount() {\n const slides = document.querySelectorAll('.date-list .time-slide');\n const slidesArray = [].slice.call(slides);\n const amount = slidesArray.filter((element) => {\n return getComputedStyle(element).display !== 'none';\n }).length;\n return amount > 0 ? amount : 1;\n }\n loadDateSlots() {\n this.dateSlots = [];\n this.timeSlotCarouselIndex = 0;\n let sortedTimes = [];\n if (this.times && this.times.length > 0 && this.times[0] instanceof Date) {\n sortedTimes = this.times.map((time) => {\n return { time, data: {} };\n });\n }\n else {\n sortedTimes = this.times;\n }\n sortedTimes.sort((a, b) => {\n return a.time.getTime() < b.time.getTime() ? -1 : 1;\n });\n this.dateSlots = this.initDateRange(sortedTimes[0].time, sortedTimes[sortedTimes.length - 1].time);\n this.dateSlots.forEach((dateSlot) => {\n const dateSlotDate = `${dateSlot.date.getMonth()}-${dateSlot.date.getDate()}-${dateSlot.date.getFullYear()}`;\n dateSlot.times = sortedTimes.filter((time) => {\n const currentDate = `${time.time.getMonth()}-${time.time.getDate()}-${time.time.getFullYear()}`;\n return currentDate === dateSlotDate;\n });\n });\n }\n initDateRange(startDate, endDate) {\n const availableDates = [];\n const firstAvailableDate = this.convertTimeToDate(startDate);\n let lastAvailableDate = this.convertTimeToDate(endDate);\n const dayDiff = (new Date(lastAvailableDate).getTime() - new Date(firstAvailableDate).getTime()) / (1000 * 3600 * 24);\n for (let d = 0; d < dayDiff + 1; d++) {\n const year = new Date(firstAvailableDate).getFullYear();\n const month = new Date(firstAvailableDate).getMonth();\n const day = new Date(firstAvailableDate).getDate() + d;\n const possibleDate = new Date(year, month, day);\n availableDates.push({\n date: possibleDate,\n times: [],\n expanded: false\n });\n }\n if (availableDates.length > 0 && availableDates.length % 4 > 0) {\n lastAvailableDate = availableDates[availableDates.length - 1].date;\n const datesToAppend = 4 - (availableDates.length % 4);\n for (let d = 1; d < datesToAppend + 1; d++) {\n const newDate = this.convertTimeToDate(lastAvailableDate);\n newDate.setDate(newDate.getDate() + d);\n availableDates.push({\n date: newDate,\n times: [],\n expanded: false\n });\n }\n }\n return availableDates;\n }\n goToSelectedDate(selectedDate) {\n let defaultIndex = 0;\n if (!selectedDate && this.selectedTime) {\n selectedDate = this.convertTimeToDate(this.selectedTime);\n }\n if (selectedDate) {\n defaultIndex = this.dateSlots.findIndex((slot) => {\n return slot.date.getTime() === selectedDate.getTime();\n });\n defaultIndex =\n defaultIndex + this.getIncrementAmount() > this.dateSlots.length ? this.dateSlots.length - this.getIncrementAmount() : defaultIndex;\n }\n this.timeSlotCarouselIndex = defaultIndex === -1 ? 0 : defaultIndex;\n if (this.activeDateSlots) {\n this.totalLength = this.activeDateSlots[0]['times'].length;\n }\n this.selectedTime = null;\n this.changed.emit(null);\n this.slotStartIndex = 0;\n this.cdr.detectChanges();\n }\n selectTime(time) {\n this.selectedTime = time.time;\n this.changed.emit(time);\n }\n convertTimeToDate(time) {\n return new Date(time.getFullYear(), time.getMonth(), time.getDate());\n }\n get activeDateSlots() {\n return this.dateSlots.slice(this.timeSlotCarouselIndex, this.timeSlotCarouselIndex + 1);\n }\n nextSlot() {\n this.slotStartIndex = this.slotStartIndex + this.slotOffset;\n }\n previousSlot() {\n this.slotStartIndex = this.slotStartIndex - this.slotOffset;\n this.slotStartIndex = this.slotStartIndex < 0 ? 0 : this.slotStartIndex;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatetimePickerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: DatetimePickerComponent, selector: \"dhcl-datetime-picker\", inputs: { times: \"times\", selectedDate: \"selectedDate\", selectedTime: \"selectedTime\", noTimesLabel: \"noTimesLabel\" }, outputs: { changed: \"changed\" }, host: { listeners: { \"window:resize\": \"onResize($event)\" } }, usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"dhcl-timepicker\\\">\\r\\n <div class=\\\"scheduling-section\\\">\\r\\n <div class=\\\"date-list\\\">\\r\\n <div class=\\\"time-slide\\\" *ngFor=\\\"let dateSlot of activeDateSlots; let i = index\\\" [ngClass]=\\\"{ 'time-slide-hidden-md': i > 0 }\\\">\\r\\n <div class=\\\"time-slide-container\\\">\\r\\n <span class=\\\"week-day\\\">For {{ dateSlot?.date | date: 'EEEE' }}</span>\\r\\n <span class=\\\"month-date\\\">\\r\\n {{ dateSlot?.date | date: 'MMM d, YYYY' }}\\r\\n </span>\\r\\n <p class=\\\"no-appt-time\\\" *ngIf=\\\"dateSlot?.times.length === 0\\\">\\r\\n <span [innerHTML]=\\\"noTimesLabel\\\"></span>\\r\\n </p>\\r\\n\\r\\n <div class=\\\"apt-time-container\\\" *ngIf=\\\"dateSlot?.date\\\">\\r\\n <button\\r\\n *ngFor=\\\"let time of dateSlot?.times | slice: slotStartIndex:slotStartIndex + slotOffset\\\"\\r\\n class=\\\"appt-time\\\"\\r\\n [ngClass]=\\\"{ 'is-selected': time.time === selectedTime }\\\"\\r\\n (click)=\\\"selectTime(time)\\\"\\r\\n attr.aria-label=\\\"Select Appointment: {{ dateSlot?.date | date: 'E' }} {{ dateSlot?.date | date: 'MMM d' }} {{ time.timeDisplay ? time.timeDisplay : (time.time | date: 'h:mm a') }} {{time.time === selectedTime ? 'selected.' : 'not selected.'}}\\\"\\r\\n >\\r\\n {{ time.timeDisplay ? time.timeDisplay : (time.time | date: 'h:mm a') }}\\r\\n </button>\\r\\n </div>\\r\\n\\r\\n <!-- Implementing PNG images as a temporary fix for iOS. Will revert back to SVG's ASAP.-->\\r\\n <button\\r\\n *ngIf=\\\"slotStartIndex != 0\\\"\\r\\n class=\\\"dhcl-timepicker-nav dhcl-timepicker-nav-left\\\"\\r\\n [disabled]=\\\"slotStartIndex == 0\\\"\\r\\n (click)=\\\"previousSlot()\\\"\\r\\n aria-label=\\\"Previous Date Range\\\"\\r\\n >\\r\\n <!--<svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>-->\\r\\n <img src=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAATCAYAAABC3CftAAAAqklEQVQoU9XR0REBMRDG8f/SAB0owbuROSWoAB2EClRwdyqgBB1knAa0oAMqiMnFSM4l3uU1v2T32xVSR5sRMjAgDyq1kJ4JYArcqdSki7rgiR0W1LNbF22bE7ACPsBVCigDAvoBPNLXArGmDSCcKdXyO4wvt2vWWI7+Ug5Ucx3D0FMMhQ2lciHeBeInGdgfZgL2kfs5pHVrGadRG+ayb3dXqjqPol7/Fr0AM99BFGB9YegAAAAASUVORK5CYII=\\r\\n \\\" alt=\\\"<\\\" />\\r\\n </button>\\r\\n <button\\r\\n *ngIf=\\\"slotStartIndex + slotOffset < totalLength\\\"\\r\\n class=\\\"dhcl-timepicker-nav dhcl-timepicker-nav-right\\\"\\r\\n [disabled]=\\\"slotStartIndex + slotOffset >= totalLength\\\"\\r\\n (click)=\\\"nextSlot()\\\"\\r\\n aria-label=\\\"Next Date Range\\\"\\r\\n >\\r\\n <!--<svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\">\\r\\n <path d=\\\"M1 1L6 6.00022L1 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>-->\\r\\n\\r\\n <img src=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAATCAYAAABC3CftAAAAqElEQVQoU9XR3Q2CUAyG4bcT4Aau4AJgmMARlA04TOAEiBPICI5AmnjvCI7gAlgD5wKO4efa3jV58rVNBacNWIR9Uqr0zUQJTl/AFuw5B4X8sUPaBojmoPTpY2jUVEk2nurRChzQAgxRB53egUOfbpJSxU2InNbAsQdCRpl0PQMq9IRx+wUDWgAerQCPnHaviECuXOJ8+i2F5mAbyv15CoSLz4nguj9DX6dGShTFzuLNAAAAAElFTkSuQmCC\\\" alt=\\\">\\\" />\\r\\n </button>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-timepicker{background:var(--dhcl-color-gray-light);display:inline-block;width:100%;position:relative;padding-bottom:3%}.dhcl-timepicker .dhcl-timepicker-nav{display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:nowrap;background:transparent;border:none;cursor:pointer;left:0;padding-top:43px;position:absolute;width:25px;top:28%}.dhcl-timepicker .dhcl-timepicker-nav-right{left:auto;padding-top:43px;top:28%;right:0}.dhcl-timepicker .dhcl-timepicker-nav svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.dhcl-timepicker .dhcl-timepicker-nav:hover svg path,.dhcl-timepicker .dhcl-timepicker-nav:focus svg path{stroke:var(--dhcl-color-secondary-dark)}.dhcl-timepicker .dhcl-timepicker-nav:disabled{cursor:no-drop;stroke-opacity:.5}@media (max-width: 767px){.dhcl-timepicker .dhcl-timepicker-nav{padding-top:64px;top:-5%}.dhcl-timepicker .dhcl-timepicker-nav-right{padding-top:64px}}.dhcl-timepicker .scheduling-section{width:100%;padding:0 25px;box-sizing:border-box}.dhcl-timepicker .scheduling-section .date-list,.dhcl-timepicker .scheduling-section .date-list .time-slide{float:left;width:100%}@media (max-width: 768px){.dhcl-timepicker .scheduling-section .date-list .time-slide{width:100%}}.dhcl-timepicker .scheduling-section .date-list .time-slide-container{box-sizing:border-box;padding:0;margin-top:-10%}.dhcl-timepicker .scheduling-section .date-list .time-slide .week-day{font-size:.875rem;font-family:var(--dhcl-font-family);display:inline-block;line-height:22px;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark);margin:15% auto 5px}.dhcl-timepicker .scheduling-section .date-list .time-slide .month-date{font-size:.875rem;font-family:var(--dhcl-font-family);line-height:22px;margin:0 auto 10px 0;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark)}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-date{font-size:.875rem;font-family:var(--dhcl-font-family);font-weight:700;line-height:22px;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark)}.dhcl-timepicker .scheduling-section .date-list .time-slide .only-date-display{font-size:.875rem;font-family:var(--dhcl-font-family);font-weight:700;line-height:17px;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark)}.dhcl-timepicker .scheduling-section .date-list .time-slide .apt-time-container{box-sizing:border-box;position:relative;display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:wrap}@media (max-width: 768px){.dhcl-timepicker .scheduling-section .date-list .time-slide .apt-time-container{padding-left:15px;padding-right:10px}}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time{background:var(--dhcl-color-white);border:1px solid var(--dhcl-color-secondary);border-radius:2px;color:var(--dhcl-color-secondary);cursor:pointer;display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:wrap;justify-content:center;position:relative;font-size:.875rem;height:40px;line-height:36px;margin:4px;padding:1px;text-align:center;transition:var(--dhcl-default-transition);width:23%}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time:hover,.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time.is-selected{background-color:var(--dhcl-color-secondary);color:var(--dhcl-color-white)}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time:hover svg path,.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time.is-selected svg path{stroke:var(--dhcl-color-white);transition:var(--dhcl-default-transition)}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time .time-slot-arrow{width:12px;height:7px;fill:none;padding:1px}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time .time-slot-arrow path{stroke:var(--dhcl-color-secondary)}@media (max-width: 767px){.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time{width:40%}}@media (max-width: 280px){.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time{width:35%}.dhcl-timepicker .scheduling-section .date-list .time-slide .no-appt-time{margin-top:13px;text-align:center;font-family:var(--dhcl-font-family);font-size:12px;line-height:22px;font-weight:400;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .container{display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:wrap;position:relative}@media (max-width: 768px){.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide.time-slide-hidden-md{display:none}}@media (max-width: 991px){.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide.time-slide-hidden-xl{display:none}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1.SlicePipe, name: \"slice\" }, { kind: \"pipe\", type: i1.DatePipe, name: \"date\" }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatetimePickerComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-datetime-picker', template: \"<div class=\\\"dhcl-timepicker\\\">\\r\\n <div class=\\\"scheduling-section\\\">\\r\\n <div class=\\\"date-list\\\">\\r\\n <div class=\\\"time-slide\\\" *ngFor=\\\"let dateSlot of activeDateSlots; let i = index\\\" [ngClass]=\\\"{ 'time-slide-hidden-md': i > 0 }\\\">\\r\\n <div class=\\\"time-slide-container\\\">\\r\\n <span class=\\\"week-day\\\">For {{ dateSlot?.date | date: 'EEEE' }}</span>\\r\\n <span class=\\\"month-date\\\">\\r\\n {{ dateSlot?.date | date: 'MMM d, YYYY' }}\\r\\n </span>\\r\\n <p class=\\\"no-appt-time\\\" *ngIf=\\\"dateSlot?.times.length === 0\\\">\\r\\n <span [innerHTML]=\\\"noTimesLabel\\\"></span>\\r\\n </p>\\r\\n\\r\\n <div class=\\\"apt-time-container\\\" *ngIf=\\\"dateSlot?.date\\\">\\r\\n <button\\r\\n *ngFor=\\\"let time of dateSlot?.times | slice: slotStartIndex:slotStartIndex + slotOffset\\\"\\r\\n class=\\\"appt-time\\\"\\r\\n [ngClass]=\\\"{ 'is-selected': time.time === selectedTime }\\\"\\r\\n (click)=\\\"selectTime(time)\\\"\\r\\n attr.aria-label=\\\"Select Appointment: {{ dateSlot?.date | date: 'E' }} {{ dateSlot?.date | date: 'MMM d' }} {{ time.timeDisplay ? time.timeDisplay : (time.time | date: 'h:mm a') }} {{time.time === selectedTime ? 'selected.' : 'not selected.'}}\\\"\\r\\n >\\r\\n {{ time.timeDisplay ? time.timeDisplay : (time.time | date: 'h:mm a') }}\\r\\n </button>\\r\\n </div>\\r\\n\\r\\n <!-- Implementing PNG images as a temporary fix for iOS. Will revert back to SVG's ASAP.-->\\r\\n <button\\r\\n *ngIf=\\\"slotStartIndex != 0\\\"\\r\\n class=\\\"dhcl-timepicker-nav dhcl-timepicker-nav-left\\\"\\r\\n [disabled]=\\\"slotStartIndex == 0\\\"\\r\\n (click)=\\\"previousSlot()\\\"\\r\\n aria-label=\\\"Previous Date Range\\\"\\r\\n >\\r\\n <!--<svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>-->\\r\\n <img src=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAATCAYAAABC3CftAAAAqklEQVQoU9XR0REBMRDG8f/SAB0owbuROSWoAB2EClRwdyqgBB1knAa0oAMqiMnFSM4l3uU1v2T32xVSR5sRMjAgDyq1kJ4JYArcqdSki7rgiR0W1LNbF22bE7ACPsBVCigDAvoBPNLXArGmDSCcKdXyO4wvt2vWWI7+Ug5Ucx3D0FMMhQ2lciHeBeInGdgfZgL2kfs5pHVrGadRG+ayb3dXqjqPol7/Fr0AM99BFGB9YegAAAAASUVORK5CYII=\\r\\n \\\" alt=\\\"<\\\" />\\r\\n </button>\\r\\n <button\\r\\n *ngIf=\\\"slotStartIndex + slotOffset < totalLength\\\"\\r\\n class=\\\"dhcl-timepicker-nav dhcl-timepicker-nav-right\\\"\\r\\n [disabled]=\\\"slotStartIndex + slotOffset >= totalLength\\\"\\r\\n (click)=\\\"nextSlot()\\\"\\r\\n aria-label=\\\"Next Date Range\\\"\\r\\n >\\r\\n <!--<svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.1\\\">\\r\\n <path d=\\\"M1 1L6 6.00022L1 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>-->\\r\\n\\r\\n <img src=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAATCAYAAABC3CftAAAAqElEQVQoU9XR3Q2CUAyG4bcT4Aau4AJgmMARlA04TOAEiBPICI5AmnjvCI7gAlgD5wKO4efa3jV58rVNBacNWIR9Uqr0zUQJTl/AFuw5B4X8sUPaBojmoPTpY2jUVEk2nurRChzQAgxRB53egUOfbpJSxU2InNbAsQdCRpl0PQMq9IRx+wUDWgAerQCPnHaviECuXOJ8+i2F5mAbyv15CoSLz4nguj9DX6dGShTFzuLNAAAAAElFTkSuQmCC\\\" alt=\\\">\\\" />\\r\\n </button>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-timepicker{background:var(--dhcl-color-gray-light);display:inline-block;width:100%;position:relative;padding-bottom:3%}.dhcl-timepicker .dhcl-timepicker-nav{display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:nowrap;background:transparent;border:none;cursor:pointer;left:0;padding-top:43px;position:absolute;width:25px;top:28%}.dhcl-timepicker .dhcl-timepicker-nav-right{left:auto;padding-top:43px;top:28%;right:0}.dhcl-timepicker .dhcl-timepicker-nav svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.dhcl-timepicker .dhcl-timepicker-nav:hover svg path,.dhcl-timepicker .dhcl-timepicker-nav:focus svg path{stroke:var(--dhcl-color-secondary-dark)}.dhcl-timepicker .dhcl-timepicker-nav:disabled{cursor:no-drop;stroke-opacity:.5}@media (max-width: 767px){.dhcl-timepicker .dhcl-timepicker-nav{padding-top:64px;top:-5%}.dhcl-timepicker .dhcl-timepicker-nav-right{padding-top:64px}}.dhcl-timepicker .scheduling-section{width:100%;padding:0 25px;box-sizing:border-box}.dhcl-timepicker .scheduling-section .date-list,.dhcl-timepicker .scheduling-section .date-list .time-slide{float:left;width:100%}@media (max-width: 768px){.dhcl-timepicker .scheduling-section .date-list .time-slide{width:100%}}.dhcl-timepicker .scheduling-section .date-list .time-slide-container{box-sizing:border-box;padding:0;margin-top:-10%}.dhcl-timepicker .scheduling-section .date-list .time-slide .week-day{font-size:.875rem;font-family:var(--dhcl-font-family);display:inline-block;line-height:22px;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark);margin:15% auto 5px}.dhcl-timepicker .scheduling-section .date-list .time-slide .month-date{font-size:.875rem;font-family:var(--dhcl-font-family);line-height:22px;margin:0 auto 10px 0;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark)}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-date{font-size:.875rem;font-family:var(--dhcl-font-family);font-weight:700;line-height:22px;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark)}.dhcl-timepicker .scheduling-section .date-list .time-slide .only-date-display{font-size:.875rem;font-family:var(--dhcl-font-family);font-weight:700;line-height:17px;letter-spacing:.1px;text-align:center;color:var(--dhcl-color-gray-dark)}.dhcl-timepicker .scheduling-section .date-list .time-slide .apt-time-container{box-sizing:border-box;position:relative;display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:wrap}@media (max-width: 768px){.dhcl-timepicker .scheduling-section .date-list .time-slide .apt-time-container{padding-left:15px;padding-right:10px}}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time{background:var(--dhcl-color-white);border:1px solid var(--dhcl-color-secondary);border-radius:2px;color:var(--dhcl-color-secondary);cursor:pointer;display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:wrap;justify-content:center;position:relative;font-size:.875rem;height:40px;line-height:36px;margin:4px;padding:1px;text-align:center;transition:var(--dhcl-default-transition);width:23%}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time:hover,.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time.is-selected{background-color:var(--dhcl-color-secondary);color:var(--dhcl-color-white)}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time:hover svg path,.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time.is-selected svg path{stroke:var(--dhcl-color-white);transition:var(--dhcl-default-transition)}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time .time-slot-arrow{width:12px;height:7px;fill:none;padding:1px}.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time .time-slot-arrow path{stroke:var(--dhcl-color-secondary)}@media (max-width: 767px){.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time{width:40%}}@media (max-width: 280px){.dhcl-timepicker .scheduling-section .date-list .time-slide .appt-time{width:35%}.dhcl-timepicker .scheduling-section .date-list .time-slide .no-appt-time{margin-top:13px;text-align:center;font-family:var(--dhcl-font-family);font-size:12px;line-height:22px;font-weight:400;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .container{display:-webkit-flex;-webkit-flex-direction:row;-webkit-flex-wrap:wrap;position:relative}@media (max-width: 768px){.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide.time-slide-hidden-md{display:none}}@media (max-width: 991px){.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide.time-slide-hidden-xl{display:none}}\\n\"] }]\n }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { times: [{\n type: Input\n }], selectedDate: [{\n type: Input\n }], selectedTime: [{\n type: Input\n }], noTimesLabel: [{\n type: Input\n }], changed: [{\n type: Output\n }], onResize: [{\n type: HostListener,\n args: ['window:resize', ['$event']]\n }] } });\n\nclass DatetimePickerModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatetimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DatetimePickerModule, declarations: [DatetimePickerComponent], imports: [CommonModule], exports: [DatetimePickerComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatetimePickerModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatetimePickerModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [DatetimePickerComponent],\n imports: [CommonModule],\n exports: [DatetimePickerComponent]\n }]\n }] });\n\nclass DatePickerComponent {\n label;\n min;\n max;\n value;\n disableDates = [];\n enableDates = [];\n customClass;\n changed = new EventEmitter();\n calendar = [];\n dates = [];\n datePickerCarouselIndex = 0;\n monthRange = 0;\n daysInMonth = 0;\n monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n showDatePickerDialog = true;\n datepickerDialog;\n constructor() { }\n ngOnInit() {\n this.renderCalendar();\n }\n ngOnChanges(changes) {\n this.renderCalendar();\n this.value = this.value ? this.value : new Date();\n }\n toggleDatePicker() {\n this.showDatePickerDialog = this.showDatePickerDialog;\n }\n renderCalendar() {\n const minMonth = this.min.getMonth();\n const minYear = this.min.getFullYear();\n const maxMonth = this.max.getMonth();\n const maxYear = this.max.getFullYear();\n this.calendar = [];\n this.dates = [];\n this.daysInMonth = 0;\n this.datePickerCarouselIndex = 0;\n this.monthRange = maxMonth - minMonth + (maxYear - minYear) * 12 + 1;\n for (let m = 0; m < this.monthRange; m++) {\n this.daysInMonth = new Date(minYear, minMonth + m + 1, 0).getDate();\n for (let d = 0; d < this.daysInMonth; d++) {\n const currentDate = new Date(minYear, minMonth + m, d + 1);\n this.dates[d] = {\n date: currentDate,\n dayOfWeek: currentDate.getDay(),\n dayOfMonth: currentDate.getDate(),\n enabled: this.isDateEnabled(currentDate),\n };\n }\n /*\n Stores the calender month , year and dates on which slot is available\n Added modulus 12 (% 12) if the indexMonth goes beyond December month\n , we can restart from January month. Similarly, we choose year if goes beyond\n December we choose maxYear (next year) instead of minYear( current year).\n */\n this.calendar[m] = {\n indexMonth: minMonth + m,\n monthName: this.monthNames[(minMonth + m) % 12],\n year: minMonth + m > 11 ? maxYear : minYear,\n dates: this.dates,\n };\n this.dates = [];\n for (let dayOfWeek = 0; dayOfWeek < 7; dayOfWeek++) {\n if (Number(this.calendar[m].dates[dayOfWeek].dayOfMonth) < 7 && this.calendar[m].dates[dayOfWeek].dayOfWeek !== dayOfWeek) {\n this.calendar[m].dates.unshift({\n date: null,\n dayOfWeek,\n dayOfMonth: '',\n enabled: false,\n });\n }\n }\n }\n this.pickFirstAvailable();\n }\n isDateEnabled(date) {\n let isEnabled = true;\n if (this.disableDates && this.disableDates.length) {\n isEnabled = true;\n if (this.disableDates.findIndex((disabledDate) => disabledDate.getTime() === date.getTime()) > -1) {\n isEnabled = false;\n }\n }\n else if (this.enableDates && this.enableDates.length) {\n isEnabled = false;\n if (this.enableDates.findIndex((enableDate) => enableDate.getTime() === date.getTime()) > -1) {\n isEnabled = true;\n }\n }\n return isEnabled;\n }\n datesByDayOfWeek(monthView, indexDayOfWeek) {\n return this.calendar[this.calendar.indexOf(monthView)].dates.filter((date) => {\n return date.dayOfWeek === indexDayOfWeek;\n });\n }\n incrementDatepicker() {\n if (this.datePickerCarouselIndex < this.monthRange - 1) {\n this.datePickerCarouselIndex++;\n this.pickFirstAvailable();\n }\n }\n decrementDatepicker() {\n if (this.datePickerCarouselIndex > 0) {\n this.datePickerCarouselIndex--;\n this.pickFirstAvailable();\n }\n }\n pickFirstAvailable() {\n if (this.calendar[this.datePickerCarouselIndex]) {\n for (const d of this.calendar[this.datePickerCarouselIndex].dates) {\n if (d.enabled) {\n this.setTimeSlot(d);\n return;\n }\n }\n }\n }\n setTimeSlot(calendarDay) {\n if (calendarDay.enabled) {\n this.value = calendarDay.date;\n this.changed.emit(calendarDay.date);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: DatePickerComponent, selector: \"dhcl-date-picker\", inputs: { label: \"label\", min: \"min\", max: \"max\", value: \"value\", disableDates: \"disableDates\", enableDates: \"enableDates\", customClass: \"customClass\" }, outputs: { changed: \"changed\" }, viewQueries: [{ propertyName: \"datepickerDialog\", first: true, predicate: [\"datepickerDialog\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"dhcl-datepicker-wrapper {{ customClass }}\\\">\\r\\n <div #datepickerDialog tabindex=\\\"0\\\" aria-label=\\\"Date picker\\\" (load)=\\\"toggleDatePicker()\\\" class=\\\"dhcl-datepicker\\\">\\r\\n\\r\\n\\r\\n <div class=\\\"datepicker-dialog\\\" *ngIf=\\\"showDatePickerDialog\\\">\\r\\n <button class=\\\"datepicker-arrow datepicker-arrow-left\\\" (click)=\\\"decrementDatepicker()\\\"\\r\\n [attr.aria-label]=\\\"'Go to Previous Month' + ' ' + calendar[datePickerCarouselIndex].monthName + ', ' + calendar[datePickerCarouselIndex].year\\\" \\r\\n [disabled]=\\\"datePickerCarouselIndex === 0\\\">\\r\\n <svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n\\r\\n <button (click)=\\\"incrementDatepicker()\\\" class=\\\"datepicker-arrow datepicker-arrow-right\\\"\\r\\n [disabled]=\\\"this.datePickerCarouselIndex >= this.monthRange - 1\\\" \\r\\n [attr.aria-label]=\\\"'Go to Next Month' + ' ' + calendar[datePickerCarouselIndex].monthName + ', ' + calendar[datePickerCarouselIndex].year\\\">\\r\\n <svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1 1L6 6.00022L1 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n\\r\\n <div class=\\\"month-view\\\">\\r\\n <div class=\\\"month-label\\\">\\r\\n <p>{{ calendar[datePickerCarouselIndex].monthName }} {{ calendar[datePickerCarouselIndex].year }}</p>\\r\\n </div>\\r\\n <div class=\\\"days-columns\\\">\\r\\n <div class=\\\"day-column\\\" *ngFor=\\\"let day of ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; let i = index\\\">\\r\\n <div class=\\\"day-heading\\\">\\r\\n <p>{{ day }}</p>\\r\\n </div>\\r\\n <div class=\\\"days\\\">\\r\\n\\r\\n <button *ngFor=\\\"let date of datesByDayOfWeek(calendar[datePickerCarouselIndex], i)\\\"\\r\\n class=\\\"{{date.dayOfMonth==(value|date:'d')?'is-selected':''}}\\\" [disabled]=\\\"!date.enabled\\\"\\r\\n (click)=\\\"setTimeSlot(date)\\\" [attr.aria-label]=\\\"\\r\\n (date.dayOfMonth==(value|date:'d') === true ? 'Selected date is' : 'Please select date') + \\r\\n ', ' +\\r\\n calendar[datePickerCarouselIndex].monthName +\\r\\n ' ' +\\r\\n date.dayOfMonth.toString() +\\r\\n ', ' +\\r\\n calendar[datePickerCarouselIndex].year\\r\\n \\\"\\r\\n attr.aria-pressed=\\\"{{date.dayOfMonth==(value|date:'d')?'true':'false'}}\\\">\\r\\n {{ date.dayOfMonth }}\\r\\n </button>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"clearboth\\\"></div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-datepicker-label{margin-right:10px;width:auto;height:24px;left:20px;top:276px;float:left;font-family:var(--dhcl-font-family);font-weight:700;font-size:1rem;line-height:30px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.dhcl-datepicker{position:relative;overflow:auto;min-height:290px}.dhcl-datepicker button{border:none;background:transparent;padding:0}.dhcl-datepicker .datepicker-icon{float:left;cursor:pointer;background:var(--dhcl-color-secondary);width:30px;height:30px;box-sizing:border-box;border-radius:6px;border:none;padding:1px 0 0;transition:var(--dhcl-default-transition)}.dhcl-datepicker .datepicker-icon:focus,.dhcl-datepicker .datepicker-icon:hover{background:var(--dhcl-color-secondary-dark)}.dhcl-datepicker .datepicker-icon:disabled{cursor:no-drop;fill-opacity:.5}.dhcl-datepicker .datepicker-dialog{position:absolute;top:34px;left:0;z-index:1;background-color:var(--dhcl-color-white);padding:20px 20px 10px;min-width:292px;max-width:100%;width:100%;box-sizing:border-box}.dhcl-datepicker .datepicker-dialog .datepicker-arrow{left:20px;top:20px;position:absolute;width:25px;cursor:pointer;height:25px;margin-top:0}.dhcl-datepicker .datepicker-dialog .datepicker-arrow-right{left:auto;right:20px}.dhcl-datepicker .datepicker-dialog .datepicker-arrow svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.dhcl-datepicker .datepicker-dialog .datepicker-arrow:hover svg path,.dhcl-datepicker .datepicker-dialog .datepicker-arrow:focus svg path{stroke:var(--dhcl-color-secondary-dark)}.dhcl-datepicker .datepicker-dialog .datepicker-arrow:disabled{cursor:no-drop;stroke-opacity:.5}.dhcl-datepicker .datepicker-dialog .month-view{float:left;width:100%}.dhcl-datepicker .datepicker-dialog .month-view .month-label{text-align:center;margin-top:0}.dhcl-datepicker .datepicker-dialog .month-view .month-label p{font-family:var(--dhcl-font-family);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.25px;margin:-7px 0 10px}.dhcl-datepicker .datepicker-dialog .month-view .days-columns{float:left;width:100%}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .day-column{float:left;width:14.2857142857%;text-align:center;font-style:normal;font-size:.875rem;line-height:22px;letter-spacing:.1px}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .day-column .day-heading{font-size:12px;margin-top:0}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .day-column .day-heading p{margin:15%;font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days{margin-top:10%}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button{cursor:pointer;margin:12%;align-items:center;border:2px solid transparent;border-radius:50%;width:36px;height:36px;font-size:20px;letter-spacing:-.5px;line-height:28px;font-weight:700;display:inline-block;transition:var(--dhcl-default-transition)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:not(:disabled):hover,.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:not(:disabled).is-selected{border-color:var(--dhcl-color-secondary)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:not(:disabled).is-selected{border-color:var(--dhcl-color-secondary);background-color:var(--dhcl-color-secondary);color:var(--dhcl-color-white)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:disabled{color:var(--dhcl-color-gray-light-medium);cursor:no-drop;opacity:1}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:disabled:hover{border-color:transparent}@media (max-width: 280px){.dhcl-datepicker .datepicker-dialog{left:-19px;margin-top:-13%;min-width:260px;padding:21px 14px 10px;top:29px}}.clearboth{clear:both}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1.DatePipe, name: \"date\" }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePickerComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-date-picker', template: \"<div class=\\\"dhcl-datepicker-wrapper {{ customClass }}\\\">\\r\\n <div #datepickerDialog tabindex=\\\"0\\\" aria-label=\\\"Date picker\\\" (load)=\\\"toggleDatePicker()\\\" class=\\\"dhcl-datepicker\\\">\\r\\n\\r\\n\\r\\n <div class=\\\"datepicker-dialog\\\" *ngIf=\\\"showDatePickerDialog\\\">\\r\\n <button class=\\\"datepicker-arrow datepicker-arrow-left\\\" (click)=\\\"decrementDatepicker()\\\"\\r\\n [attr.aria-label]=\\\"'Go to Previous Month' + ' ' + calendar[datePickerCarouselIndex].monthName + ', ' + calendar[datePickerCarouselIndex].year\\\" \\r\\n [disabled]=\\\"datePickerCarouselIndex === 0\\\">\\r\\n <svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n\\r\\n <button (click)=\\\"incrementDatepicker()\\\" class=\\\"datepicker-arrow datepicker-arrow-right\\\"\\r\\n [disabled]=\\\"this.datePickerCarouselIndex >= this.monthRange - 1\\\" \\r\\n [attr.aria-label]=\\\"'Go to Next Month' + ' ' + calendar[datePickerCarouselIndex].monthName + ', ' + calendar[datePickerCarouselIndex].year\\\">\\r\\n <svg width=\\\"9.49\\\" height=\\\"18.99\\\" viewBox=\\\"0 0 9 18\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1 1L6 6.00022L1 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n\\r\\n <div class=\\\"month-view\\\">\\r\\n <div class=\\\"month-label\\\">\\r\\n <p>{{ calendar[datePickerCarouselIndex].monthName }} {{ calendar[datePickerCarouselIndex].year }}</p>\\r\\n </div>\\r\\n <div class=\\\"days-columns\\\">\\r\\n <div class=\\\"day-column\\\" *ngFor=\\\"let day of ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; let i = index\\\">\\r\\n <div class=\\\"day-heading\\\">\\r\\n <p>{{ day }}</p>\\r\\n </div>\\r\\n <div class=\\\"days\\\">\\r\\n\\r\\n <button *ngFor=\\\"let date of datesByDayOfWeek(calendar[datePickerCarouselIndex], i)\\\"\\r\\n class=\\\"{{date.dayOfMonth==(value|date:'d')?'is-selected':''}}\\\" [disabled]=\\\"!date.enabled\\\"\\r\\n (click)=\\\"setTimeSlot(date)\\\" [attr.aria-label]=\\\"\\r\\n (date.dayOfMonth==(value|date:'d') === true ? 'Selected date is' : 'Please select date') + \\r\\n ', ' +\\r\\n calendar[datePickerCarouselIndex].monthName +\\r\\n ' ' +\\r\\n date.dayOfMonth.toString() +\\r\\n ', ' +\\r\\n calendar[datePickerCarouselIndex].year\\r\\n \\\"\\r\\n attr.aria-pressed=\\\"{{date.dayOfMonth==(value|date:'d')?'true':'false'}}\\\">\\r\\n {{ date.dayOfMonth }}\\r\\n </button>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"clearboth\\\"></div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-datepicker-label{margin-right:10px;width:auto;height:24px;left:20px;top:276px;float:left;font-family:var(--dhcl-font-family);font-weight:700;font-size:1rem;line-height:30px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.dhcl-datepicker{position:relative;overflow:auto;min-height:290px}.dhcl-datepicker button{border:none;background:transparent;padding:0}.dhcl-datepicker .datepicker-icon{float:left;cursor:pointer;background:var(--dhcl-color-secondary);width:30px;height:30px;box-sizing:border-box;border-radius:6px;border:none;padding:1px 0 0;transition:var(--dhcl-default-transition)}.dhcl-datepicker .datepicker-icon:focus,.dhcl-datepicker .datepicker-icon:hover{background:var(--dhcl-color-secondary-dark)}.dhcl-datepicker .datepicker-icon:disabled{cursor:no-drop;fill-opacity:.5}.dhcl-datepicker .datepicker-dialog{position:absolute;top:34px;left:0;z-index:1;background-color:var(--dhcl-color-white);padding:20px 20px 10px;min-width:292px;max-width:100%;width:100%;box-sizing:border-box}.dhcl-datepicker .datepicker-dialog .datepicker-arrow{left:20px;top:20px;position:absolute;width:25px;cursor:pointer;height:25px;margin-top:0}.dhcl-datepicker .datepicker-dialog .datepicker-arrow-right{left:auto;right:20px}.dhcl-datepicker .datepicker-dialog .datepicker-arrow svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.dhcl-datepicker .datepicker-dialog .datepicker-arrow:hover svg path,.dhcl-datepicker .datepicker-dialog .datepicker-arrow:focus svg path{stroke:var(--dhcl-color-secondary-dark)}.dhcl-datepicker .datepicker-dialog .datepicker-arrow:disabled{cursor:no-drop;stroke-opacity:.5}.dhcl-datepicker .datepicker-dialog .month-view{float:left;width:100%}.dhcl-datepicker .datepicker-dialog .month-view .month-label{text-align:center;margin-top:0}.dhcl-datepicker .datepicker-dialog .month-view .month-label p{font-family:var(--dhcl-font-family);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.25px;margin:-7px 0 10px}.dhcl-datepicker .datepicker-dialog .month-view .days-columns{float:left;width:100%}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .day-column{float:left;width:14.2857142857%;text-align:center;font-style:normal;font-size:.875rem;line-height:22px;letter-spacing:.1px}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .day-column .day-heading{font-size:12px;margin-top:0}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .day-column .day-heading p{margin:15%;font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days{margin-top:10%}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button{cursor:pointer;margin:12%;align-items:center;border:2px solid transparent;border-radius:50%;width:36px;height:36px;font-size:20px;letter-spacing:-.5px;line-height:28px;font-weight:700;display:inline-block;transition:var(--dhcl-default-transition)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:not(:disabled):hover,.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:not(:disabled).is-selected{border-color:var(--dhcl-color-secondary)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:not(:disabled).is-selected{border-color:var(--dhcl-color-secondary);background-color:var(--dhcl-color-secondary);color:var(--dhcl-color-white)}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:disabled{color:var(--dhcl-color-gray-light-medium);cursor:no-drop;opacity:1}.dhcl-datepicker .datepicker-dialog .month-view .days-columns .days button:disabled:hover{border-color:transparent}@media (max-width: 280px){.dhcl-datepicker .datepicker-dialog{left:-19px;margin-top:-13%;min-width:260px;padding:21px 14px 10px;top:29px}}.clearboth{clear:both}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { label: [{\n type: Input\n }], min: [{\n type: Input\n }], max: [{\n type: Input\n }], value: [{\n type: Input\n }], disableDates: [{\n type: Input\n }], enableDates: [{\n type: Input\n }], customClass: [{\n type: Input\n }], changed: [{\n type: Output\n }], datepickerDialog: [{\n type: ViewChild,\n args: ['datepickerDialog']\n }] } });\n\nclass DatePickerModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePickerModule, declarations: [DatePickerComponent], imports: [CommonModule], exports: [DatePickerComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePickerModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DatePickerModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [DatePickerComponent],\n imports: [CommonModule],\n exports: [DatePickerComponent]\n }]\n }] });\n\nclass DropdownComponent {\n dropdowns = [];\n placeholder;\n selectedValue;\n hasError = false;\n isMultiSelect;\n disable = false;\n changed = new EventEmitter();\n multiChanged = new EventEmitter();\n touched = new EventEmitter();\n multiTouched = new EventEmitter();\n dropdownContainer;\n dropdownBtn;\n dropdownId = new Date().getTime();\n showDropdown = false;\n activeDropdownIndex = -1;\n onClick(event) {\n this.windowClickHandler(event);\n }\n constructor() { }\n ngOnInit() {\n if (!this.isMultiSelect) {\n this.initializeDefaultValue();\n }\n }\n ngOnChanges(changes) {\n if (changes.selectedValue && !changes.selectedValue.firstChange) {\n this.initializeDefaultValue();\n }\n }\n initializeDefaultValue() {\n this.activeDropdownIndex = this.dropdowns.findIndex((dropdown) => {\n return dropdown.value === this.selectedValue;\n });\n }\n get displayValue() {\n const existingSelectedValue = this.dropdowns.find((dropdown) => {\n return dropdown.value === this.selectedValue;\n })?.label;\n return this.isMultiSelect ? this.placeholder : existingSelectedValue || this.placeholder;\n }\n keyDownHandler(keyEvent) {\n const keyCode = keyEvent.key.toLowerCase();\n if (keyCode === 'escape') {\n keyEvent.preventDefault();\n this.showDropdown = false;\n }\n else if (keyCode === 'arrowdown') {\n keyEvent.preventDefault();\n this.arrowHandler(1);\n }\n else if (keyCode === 'arrowup') {\n keyEvent.preventDefault();\n this.arrowHandler(-1);\n }\n else if (keyCode === 'tab') {\n this.showDropdown = false;\n }\n else if ((keyCode === 'enter' || keyCode === ' ') && this.isMultiSelect && this.showDropdown) {\n keyEvent.preventDefault();\n if (this.activeDropdownIndex === -1) {\n this.toggleSelectAll();\n }\n else {\n this.itemClickHandler(this.dropdowns[this.activeDropdownIndex], this.activeDropdownIndex);\n }\n }\n }\n arrowHandler(increment) {\n if (this.isMultiSelect && !this.showDropdown) {\n this.openDropdown();\n }\n this.activeDropdownIndex += increment;\n if (this.activeDropdownIndex <= -1) {\n this.activeDropdownIndex = this.isMultiSelect ? -1 : 0;\n }\n else if (this.activeDropdownIndex >= this.dropdowns.length) {\n this.activeDropdownIndex = this.dropdowns.length - 1;\n }\n window.setTimeout(() => {\n this.selectedValue = this.dropdowns[this.activeDropdownIndex]?.value;\n if (!this.isMultiSelect) {\n this.changeEmitter();\n }\n this.updateScrollPosition();\n }, 10);\n }\n blurHandler() {\n if (this.isMultiSelect) {\n this.multiTouched.emit(this.getSelectedDropdowns());\n }\n else {\n this.touched.emit(this.dropdowns[this.activeDropdownIndex]);\n }\n }\n updateScrollPosition() {\n const listContainer = this.dropdownContainer.nativeElement.querySelector('ul');\n const activeItem = this.dropdownContainer.nativeElement.querySelector('ul li.focused');\n if (listContainer && activeItem) {\n if (activeItem.getBoundingClientRect().bottom > listContainer.getBoundingClientRect().bottom) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().bottom - listContainer.getBoundingClientRect().bottom);\n }\n else if (activeItem.getBoundingClientRect().top < listContainer.getBoundingClientRect().top) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().top - listContainer.getBoundingClientRect().top);\n }\n }\n }\n itemClickHandler(dropdown, index) {\n if (dropdown.disable) {\n return;\n }\n this.activeDropdownIndex = index;\n if (this.isMultiSelect) {\n dropdown.isSelected = !dropdown.isSelected;\n this.changeEmitter();\n window.setTimeout(() => {\n this.dropdownBtn.nativeElement.focus();\n }, 10);\n }\n else {\n this.selectedValue = dropdown.value;\n this.changeEmitter();\n window.setTimeout(() => {\n this.showDropdown = false;\n this.dropdownBtn.nativeElement.blur();\n }, 10);\n }\n }\n windowClickHandler(event) {\n if (!this.dropdownContainer.nativeElement.contains(event.target)) {\n this.showDropdown = false;\n }\n }\n openDropdown() {\n this.showDropdown = true;\n window.setTimeout(() => {\n this.updateScrollPosition();\n }, 10);\n }\n toggleDropdown(event) {\n if (this.isMultiSelect && event['detail'] === 0 && this.showDropdown) {\n this.showDropdown = true;\n }\n else {\n this.showDropdown = !this.showDropdown;\n if (this.showDropdown) {\n this.openDropdown();\n }\n }\n }\n toggleSelectAll() {\n const selectAll = this.dropdowns.find((dropdown) => {\n return !dropdown.isSelected;\n });\n this.dropdowns.forEach((dropdown) => {\n dropdown.isSelected = Boolean(selectAll);\n });\n this.changeEmitter();\n }\n changeEmitter() {\n if (this.isMultiSelect) {\n this.multiChanged.emit(this.getSelectedDropdowns());\n }\n else {\n this.changed.emit(this.dropdowns[this.activeDropdownIndex]);\n }\n }\n getSelectedDropdowns() {\n return this.dropdowns.filter((dropdown) => {\n return dropdown.isSelected;\n });\n }\n get selectedCount() {\n return this.getSelectedDropdowns().length;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: DropdownComponent, selector: \"dhcl-dropdown\", inputs: { dropdowns: \"dropdowns\", placeholder: \"placeholder\", selectedValue: \"selectedValue\", hasError: \"hasError\", isMultiSelect: \"isMultiSelect\", disable: \"disable\" }, outputs: { changed: \"changed\", multiChanged: \"multiChanged\", touched: \"touched\", multiTouched: \"multiTouched\" }, host: { listeners: { \"window:click\": \"onClick($event)\" } }, viewQueries: [{ propertyName: \"dropdownContainer\", first: true, predicate: [\"dropdownContainer\"], descendants: true }, { propertyName: \"dropdownBtn\", first: true, predicate: [\"dropdownBtn\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<span class=\\\"dhcl-visually-hidden\\\" [attr.id]=\\\"'dropdown-label-' + dropdownId\\\">{{ placeholder }}</span>\\r\\n<div class=\\\"dhcl-dropdown-wrapper\\\" #dropdownContainer>\\r\\n <button\\r\\n #dropdownBtn\\r\\n (click)=\\\"toggleDropdown($event)\\\"\\r\\n aria-haspopup=\\\"listbox\\\"\\r\\n [class.error]=\\\"hasError\\\"\\r\\n [class.dropdown-shown]=\\\"showDropdown\\\"\\r\\n [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n (blur)=\\\"blurHandler()\\\"\\r\\n [disabled]=\\\"disable\\\" \\r\\n >\\r\\n <span [class.placeholder]=\\\"displayValue === placeholder || isMultiSelect\\\">{{ displayValue }}</span>\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"9\\\" viewBox=\\\"0 0 16 9\\\" fill=\\\"none\\\">\\r\\n <path d=\\\"M1 1L8 8L15 1\\\" stroke=\\\"var(--dhcl-color-secondary)\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <ul [hidden]=\\\"!showDropdown\\\" role=\\\"listbox\\\" [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\" [class.multi-select]=\\\"isMultiSelect\\\">\\r\\n <li\\r\\n *ngIf=\\\"isMultiSelect\\\"\\r\\n role=\\\"option\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '--1'\\\"\\r\\n [class.focused]=\\\"activeDropdownIndex === -1\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === -1\\\"\\r\\n (click)=\\\"toggleSelectAll()\\\"\\r\\n >\\r\\n <div *ngIf=\\\"isMultiSelect\\\" class=\\\"multiselect-checkbox\\\">\\r\\n <svg\\r\\n *ngIf=\\\"selectedCount > 0 && selectedCount < dropdowns.length\\\"\\r\\n class=\\\"partial\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.762695\\\" y=\\\"0.5\\\" width=\\\"19\\\" height=\\\"19\\\" rx=\\\"2.5\\\" fill=\\\"#0071C2\\\" stroke=\\\"#0071C2\\\" />\\r\\n <path d=\\\"M5.2627 10.5H14.7627\\\" stroke=\\\"white\\\" stroke-width=\\\"2\\\" />\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"selectedCount === 0\\\"\\r\\n class=\\\"unselected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.762695\\\" y=\\\"0.5\\\" width=\\\"19\\\" height=\\\"19\\\" rx=\\\"2.5\\\" fill=\\\"white\\\" stroke=\\\"#0071C2\\\" />\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"selectedCount === dropdowns.length\\\"\\r\\n class=\\\"selected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.262695\\\" width=\\\"20\\\" height=\\\"20\\\" rx=\\\"3\\\" fill=\\\"#0071C2\\\" />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10.2625 15.0001L4.4292 9.16675L6.09587 7.50008L10.2625 11.6667L20.2625 1.66675V5.00008L10.2625 15.0001Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <span class=\\\"option-label\\\">Select all</span>\\r\\n </li>\\r\\n\\r\\n <li\\r\\n *ngFor=\\\"let dropdown of dropdowns; let i = index\\\"\\r\\n role=\\\"option\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '-' + i\\\"\\r\\n [class.focused]=\\\"activeDropdownIndex === i\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === i\\\"\\r\\n (click)=\\\"itemClickHandler(dropdown, i)\\\"\\r\\n [class.noClick]=\\\"dropdown.disable\\\"\\r\\n >\\r\\n <div *ngIf=\\\"isMultiSelect\\\" class=\\\"multiselect-checkbox\\\" [class.selected]=\\\"dropdown.isSelected\\\">\\r\\n <svg\\r\\n *ngIf=\\\"!dropdown.isSelected\\\"\\r\\n class=\\\"unselected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.762695\\\" y=\\\"0.5\\\" width=\\\"19\\\" height=\\\"19\\\" rx=\\\"2.5\\\" fill=\\\"white\\\" stroke=\\\"#0071C2\\\" />\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"dropdown.isSelected\\\"\\r\\n class=\\\"selected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.262695\\\" width=\\\"20\\\" height=\\\"20\\\" rx=\\\"3\\\" fill=\\\"#0071C2\\\" />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10.2625 15.0001L4.4292 9.16675L6.09587 7.50008L10.2625 11.6667L20.2625 1.66675V5.00008L10.2625 15.0001Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <span class=\\\"option-label\\\">{{ dropdown.label }}</span>\\r\\n <div *ngIf=\\\"dropdown.tooltip\\\" class=\\\"tooltip\\\">\\r\\n <svg width=\\\"12\\\" height=\\\"12\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M8 0C3.58203 0 0 3.58332 0 8C0 12.4193 3.58203 16 8 16C12.418 16 16 12.4193 16 8C16 3.58332 12.418 0 8 0ZM8 3.54838C8.74824 3.54838 9.3548 4.15497 9.3548 4.90322C9.3548 5.65148 8.74824 6.25806 8 6.25806C7.25174 6.25806 6.64516 5.65148 6.64516 4.90322C6.64516 4.15497 7.25174 3.54838 8 3.54838ZM9.80648 11.7419C9.80648 11.9557 9.63312 12.129 9.41936 12.129H6.58065C6.36687 12.129 6.19355 11.9557 6.19355 11.7419V10.9678C6.19355 10.754 6.36687 10.5806 6.58065 10.5806H6.96774V8.51616H6.58065C6.36687 8.51616 6.19355 8.3428 6.19355 8.12904V7.35484C6.19355 7.14106 6.36687 6.96774 6.58065 6.96774H8.6452C8.85896 6.96774 9.03224 7.14106 9.03224 7.35484V10.5806H9.41936C9.63312 10.5806 9.80648 10.754 9.80648 10.9678V11.7419Z\\\" fill=\\\"#0071C2\\\"/>\\r\\n </svg>\\r\\n <span class=\\\"tooltiptext\\\">{{ dropdown.tooltip }}</span>\\r\\n </div>\\r\\n\\r\\n </li>\\r\\n </ul>\\r\\n</div>\\r\\n\", styles: [\".dhcl-dropdown-wrapper{position:relative}.dhcl-dropdown-wrapper button{border:1px solid var(--dhcl-color-gray-dark-medium);background:var(--dhcl-color-white);border-radius:3px;box-sizing:border-box;width:100%;height:40px;padding:0 35px 0 15px;line-height:40px;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none;margin:0;font-family:var(--dhcl-font-family);font-size:.875rem;cursor:pointer}.dhcl-dropdown-wrapper button.error{border:1px solid var(--dhcl-color-error);color:var(--dhcl-color-error)}.dhcl-dropdown-wrapper button:disabled{background-color:var(--dhcl-color-gray-light)}.dhcl-dropdown-wrapper button:hover,.dhcl-dropdown-wrapper button:active,.dhcl-dropdown-wrapper button:focus{border:1px solid var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper button svg{transition:var(--dhcl-default-transition);position:absolute;right:15px;top:calc(50% - 4.5px)}.dhcl-dropdown-wrapper button.dropdown-shown{border-bottom-left-radius:0;border-bottom-right-radius:0}.dhcl-dropdown-wrapper button.dropdown-shown svg{transform:rotate(180deg)}.dhcl-dropdown-wrapper button span{color:var(--dhcl-color-gray-dark);font-weight:700}.dhcl-dropdown-wrapper button span.placeholder{font-weight:700;color:var(--dhcl-color-gray-dark-medium)}.dhcl-dropdown-wrapper ul{max-height:165px;overflow:auto;list-style:none;padding:0;border:1px solid var(--dhcl-color-secondary);border-top:none;margin:0;position:absolute;width:calc(100% - 2px);background:var(--dhcl-color-white);z-index:9999;border-radius:0 0 4px 4px;box-shadow:var(--dhcl-default-box-shadow)}.dhcl-dropdown-wrapper ul.multi-select span.option-label{transform:translateY(-5px);display:inline-block}.dhcl-dropdown-wrapper ul li{white-space:nowrap;text-overflow:ellipsis;padding:7.5px 14px;transition:var(--dhcl-default-transition);color:var(--dhcl-color-gray-dark);font-size:.875rem;cursor:pointer}.dhcl-dropdown-wrapper ul li:hover,.dhcl-dropdown-wrapper ul li.focused{background:var(--dhcl-color-primary-light)}.dhcl-dropdown-wrapper ul li .multiselect-checkbox{display:inline-block;margin-right:5px}.dhcl-dropdown-wrapper ul li .multiselect-checkbox .partial rect{fill:var(--dhcl-color-secondary);stroke:var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper ul li .multiselect-checkbox .selected rect{fill:var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper ul li .multiselect-checkbox .unselected rect{stroke:var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper li.noClick{cursor:default;color:var(--dhcl-color-gray-light-medium)!important}.dhcl-dropdown-wrapper li.noClick:hover{background-color:var(--dhcl-color-secondary-light)!important}.dhcl-dropdown-wrapper .tooltip{position:relative;display:inline-block;padding-left:5px}.dhcl-dropdown-wrapper .tooltip .tooltiptext{visibility:hidden;background-color:#fff;color:#000;text-align:center;border-radius:6px;padding:5px 20px;position:absolute;z-index:1;bottom:100%;margin-left:-39px;border:1px;border:1px solid #E3E1DC;box-sizing:border-box}.dhcl-dropdown-wrapper .tooltip .tooltiptext:after{content:\\\"\\\";display:block;width:0;height:0;position:absolute;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid #FFFFFF}.dhcl-dropdown-wrapper .tooltip:hover .tooltiptext{pointer-events:initial;visibility:visible}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-dropdown', template: \"<span class=\\\"dhcl-visually-hidden\\\" [attr.id]=\\\"'dropdown-label-' + dropdownId\\\">{{ placeholder }}</span>\\r\\n<div class=\\\"dhcl-dropdown-wrapper\\\" #dropdownContainer>\\r\\n <button\\r\\n #dropdownBtn\\r\\n (click)=\\\"toggleDropdown($event)\\\"\\r\\n aria-haspopup=\\\"listbox\\\"\\r\\n [class.error]=\\\"hasError\\\"\\r\\n [class.dropdown-shown]=\\\"showDropdown\\\"\\r\\n [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n (blur)=\\\"blurHandler()\\\"\\r\\n [disabled]=\\\"disable\\\" \\r\\n >\\r\\n <span [class.placeholder]=\\\"displayValue === placeholder || isMultiSelect\\\">{{ displayValue }}</span>\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"9\\\" viewBox=\\\"0 0 16 9\\\" fill=\\\"none\\\">\\r\\n <path d=\\\"M1 1L8 8L15 1\\\" stroke=\\\"var(--dhcl-color-secondary)\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <ul [hidden]=\\\"!showDropdown\\\" role=\\\"listbox\\\" [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\" [class.multi-select]=\\\"isMultiSelect\\\">\\r\\n <li\\r\\n *ngIf=\\\"isMultiSelect\\\"\\r\\n role=\\\"option\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '--1'\\\"\\r\\n [class.focused]=\\\"activeDropdownIndex === -1\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === -1\\\"\\r\\n (click)=\\\"toggleSelectAll()\\\"\\r\\n >\\r\\n <div *ngIf=\\\"isMultiSelect\\\" class=\\\"multiselect-checkbox\\\">\\r\\n <svg\\r\\n *ngIf=\\\"selectedCount > 0 && selectedCount < dropdowns.length\\\"\\r\\n class=\\\"partial\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.762695\\\" y=\\\"0.5\\\" width=\\\"19\\\" height=\\\"19\\\" rx=\\\"2.5\\\" fill=\\\"#0071C2\\\" stroke=\\\"#0071C2\\\" />\\r\\n <path d=\\\"M5.2627 10.5H14.7627\\\" stroke=\\\"white\\\" stroke-width=\\\"2\\\" />\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"selectedCount === 0\\\"\\r\\n class=\\\"unselected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.762695\\\" y=\\\"0.5\\\" width=\\\"19\\\" height=\\\"19\\\" rx=\\\"2.5\\\" fill=\\\"white\\\" stroke=\\\"#0071C2\\\" />\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"selectedCount === dropdowns.length\\\"\\r\\n class=\\\"selected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.262695\\\" width=\\\"20\\\" height=\\\"20\\\" rx=\\\"3\\\" fill=\\\"#0071C2\\\" />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10.2625 15.0001L4.4292 9.16675L6.09587 7.50008L10.2625 11.6667L20.2625 1.66675V5.00008L10.2625 15.0001Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <span class=\\\"option-label\\\">Select all</span>\\r\\n </li>\\r\\n\\r\\n <li\\r\\n *ngFor=\\\"let dropdown of dropdowns; let i = index\\\"\\r\\n role=\\\"option\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '-' + i\\\"\\r\\n [class.focused]=\\\"activeDropdownIndex === i\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === i\\\"\\r\\n (click)=\\\"itemClickHandler(dropdown, i)\\\"\\r\\n [class.noClick]=\\\"dropdown.disable\\\"\\r\\n >\\r\\n <div *ngIf=\\\"isMultiSelect\\\" class=\\\"multiselect-checkbox\\\" [class.selected]=\\\"dropdown.isSelected\\\">\\r\\n <svg\\r\\n *ngIf=\\\"!dropdown.isSelected\\\"\\r\\n class=\\\"unselected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.762695\\\" y=\\\"0.5\\\" width=\\\"19\\\" height=\\\"19\\\" rx=\\\"2.5\\\" fill=\\\"white\\\" stroke=\\\"#0071C2\\\" />\\r\\n </svg>\\r\\n\\r\\n <svg\\r\\n *ngIf=\\\"dropdown.isSelected\\\"\\r\\n class=\\\"selected\\\"\\r\\n width=\\\"21\\\"\\r\\n height=\\\"20\\\"\\r\\n viewBox=\\\"0 0 21 20\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <rect x=\\\"0.262695\\\" width=\\\"20\\\" height=\\\"20\\\" rx=\\\"3\\\" fill=\\\"#0071C2\\\" />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M10.2625 15.0001L4.4292 9.16675L6.09587 7.50008L10.2625 11.6667L20.2625 1.66675V5.00008L10.2625 15.0001Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <span class=\\\"option-label\\\">{{ dropdown.label }}</span>\\r\\n <div *ngIf=\\\"dropdown.tooltip\\\" class=\\\"tooltip\\\">\\r\\n <svg width=\\\"12\\\" height=\\\"12\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M8 0C3.58203 0 0 3.58332 0 8C0 12.4193 3.58203 16 8 16C12.418 16 16 12.4193 16 8C16 3.58332 12.418 0 8 0ZM8 3.54838C8.74824 3.54838 9.3548 4.15497 9.3548 4.90322C9.3548 5.65148 8.74824 6.25806 8 6.25806C7.25174 6.25806 6.64516 5.65148 6.64516 4.90322C6.64516 4.15497 7.25174 3.54838 8 3.54838ZM9.80648 11.7419C9.80648 11.9557 9.63312 12.129 9.41936 12.129H6.58065C6.36687 12.129 6.19355 11.9557 6.19355 11.7419V10.9678C6.19355 10.754 6.36687 10.5806 6.58065 10.5806H6.96774V8.51616H6.58065C6.36687 8.51616 6.19355 8.3428 6.19355 8.12904V7.35484C6.19355 7.14106 6.36687 6.96774 6.58065 6.96774H8.6452C8.85896 6.96774 9.03224 7.14106 9.03224 7.35484V10.5806H9.41936C9.63312 10.5806 9.80648 10.754 9.80648 10.9678V11.7419Z\\\" fill=\\\"#0071C2\\\"/>\\r\\n </svg>\\r\\n <span class=\\\"tooltiptext\\\">{{ dropdown.tooltip }}</span>\\r\\n </div>\\r\\n\\r\\n </li>\\r\\n </ul>\\r\\n</div>\\r\\n\", styles: [\".dhcl-dropdown-wrapper{position:relative}.dhcl-dropdown-wrapper button{border:1px solid var(--dhcl-color-gray-dark-medium);background:var(--dhcl-color-white);border-radius:3px;box-sizing:border-box;width:100%;height:40px;padding:0 35px 0 15px;line-height:40px;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none;margin:0;font-family:var(--dhcl-font-family);font-size:.875rem;cursor:pointer}.dhcl-dropdown-wrapper button.error{border:1px solid var(--dhcl-color-error);color:var(--dhcl-color-error)}.dhcl-dropdown-wrapper button:disabled{background-color:var(--dhcl-color-gray-light)}.dhcl-dropdown-wrapper button:hover,.dhcl-dropdown-wrapper button:active,.dhcl-dropdown-wrapper button:focus{border:1px solid var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper button svg{transition:var(--dhcl-default-transition);position:absolute;right:15px;top:calc(50% - 4.5px)}.dhcl-dropdown-wrapper button.dropdown-shown{border-bottom-left-radius:0;border-bottom-right-radius:0}.dhcl-dropdown-wrapper button.dropdown-shown svg{transform:rotate(180deg)}.dhcl-dropdown-wrapper button span{color:var(--dhcl-color-gray-dark);font-weight:700}.dhcl-dropdown-wrapper button span.placeholder{font-weight:700;color:var(--dhcl-color-gray-dark-medium)}.dhcl-dropdown-wrapper ul{max-height:165px;overflow:auto;list-style:none;padding:0;border:1px solid var(--dhcl-color-secondary);border-top:none;margin:0;position:absolute;width:calc(100% - 2px);background:var(--dhcl-color-white);z-index:9999;border-radius:0 0 4px 4px;box-shadow:var(--dhcl-default-box-shadow)}.dhcl-dropdown-wrapper ul.multi-select span.option-label{transform:translateY(-5px);display:inline-block}.dhcl-dropdown-wrapper ul li{white-space:nowrap;text-overflow:ellipsis;padding:7.5px 14px;transition:var(--dhcl-default-transition);color:var(--dhcl-color-gray-dark);font-size:.875rem;cursor:pointer}.dhcl-dropdown-wrapper ul li:hover,.dhcl-dropdown-wrapper ul li.focused{background:var(--dhcl-color-primary-light)}.dhcl-dropdown-wrapper ul li .multiselect-checkbox{display:inline-block;margin-right:5px}.dhcl-dropdown-wrapper ul li .multiselect-checkbox .partial rect{fill:var(--dhcl-color-secondary);stroke:var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper ul li .multiselect-checkbox .selected rect{fill:var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper ul li .multiselect-checkbox .unselected rect{stroke:var(--dhcl-color-secondary)}.dhcl-dropdown-wrapper li.noClick{cursor:default;color:var(--dhcl-color-gray-light-medium)!important}.dhcl-dropdown-wrapper li.noClick:hover{background-color:var(--dhcl-color-secondary-light)!important}.dhcl-dropdown-wrapper .tooltip{position:relative;display:inline-block;padding-left:5px}.dhcl-dropdown-wrapper .tooltip .tooltiptext{visibility:hidden;background-color:#fff;color:#000;text-align:center;border-radius:6px;padding:5px 20px;position:absolute;z-index:1;bottom:100%;margin-left:-39px;border:1px;border:1px solid #E3E1DC;box-sizing:border-box}.dhcl-dropdown-wrapper .tooltip .tooltiptext:after{content:\\\"\\\";display:block;width:0;height:0;position:absolute;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid #FFFFFF}.dhcl-dropdown-wrapper .tooltip:hover .tooltiptext{pointer-events:initial;visibility:visible}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { dropdowns: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], selectedValue: [{\n type: Input\n }], hasError: [{\n type: Input\n }], isMultiSelect: [{\n type: Input\n }], disable: [{\n type: Input\n }], changed: [{\n type: Output\n }], multiChanged: [{\n type: Output\n }], touched: [{\n type: Output\n }], multiTouched: [{\n type: Output\n }], dropdownContainer: [{\n type: ViewChild,\n args: ['dropdownContainer']\n }], dropdownBtn: [{\n type: ViewChild,\n args: ['dropdownBtn']\n }], onClick: [{\n type: HostListener,\n args: ['window:click', ['$event']]\n }] } });\n\nclass DropdownModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent], imports: [CommonModule], exports: [DropdownComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [DropdownComponent],\n imports: [CommonModule],\n exports: [DropdownComponent]\n }]\n }] });\n\nclass LoadingSpinnerComponent {\n showSpinner;\n fixed = true;\n disclaimer;\n bgColor = 'rgba(0, 0, 0, 0.8)';\n constructor() { }\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: LoadingSpinnerComponent, selector: \"dhcl-loading-spinner\", inputs: { showSpinner: \"showSpinner\", fixed: \"fixed\", disclaimer: \"disclaimer\", bgColor: \"bgColor\" }, ngImport: i0, template: \"<div *ngIf=\\\"showSpinner\\\" class=\\\"dhcl-loading-spinner-container\\\" [style.background]=\\\"bgColor\\\" [class.fixed]=\\\"fixed\\\">\\r\\n <div class=\\\"dhcl-showbox\\\">\\r\\n <div class=\\\"dhcl-loading-spinner\\\">\\r\\n <svg class=\\\"dhcl-circular\\\" viewBox=\\\"25 25 50 50\\\">\\r\\n <circle class=\\\"path\\\" cx=\\\"50\\\" cy=\\\"50\\\" r=\\\"20\\\" fill=\\\"none\\\" stroke-width=\\\"4\\\" stroke-miterlimit=\\\"10\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"dhcl-loading-spinner-logo\\\">\\r\\n <svg\\r\\n class=\\\"dhcl-loading-spinner-logo-svg\\\"\\r\\n [class.with-disclaimer]=\\\"disclaimer\\\"\\r\\n viewBox=\\\"0 0 50 44\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M38.3312 1.33649C38.0659 0.371346 37.0597 -0.198323 36.0898 0.0637561C35.4817 0.222259 34.4613 0.613023 34.3192 0.664811C34.1817 0.711891 33.0666 1.22977 32.6685 1.45889C28.8302 3.66067 26.3945 7.47886 25.8638 11.6486C26.1434 11.6125 26.4167 11.5654 26.6915 11.4932C28.2015 11.1056 29.669 10.3743 30.3987 8.99798C31.2517 7.16029 32.7759 5.57526 34.5008 4.60541L35.1547 4.29625C35.1674 4.5238 35.1737 4.75607 35.1737 4.9899C35.1737 9.60374 32.0367 13.6307 27.5508 14.7857C26.7215 14.9991 25.8543 15.1074 24.9872 15.1074C24.1231 15.1074 23.2575 14.9991 22.4235 14.7857C17.9344 13.6307 14.8022 9.60374 14.8022 4.9899C14.8022 4.75607 14.8085 4.5238 14.8211 4.29782C15.0249 4.39355 15.3961 4.56147 15.4703 4.60541C17.1952 5.57526 18.7195 7.16029 19.5709 8.99798C20.3022 10.3743 21.768 11.1056 23.2781 11.4932C23.5545 11.5654 23.8293 11.6125 24.1058 11.6486C23.5735 7.47886 21.1409 3.66067 17.3042 1.45889C16.9046 1.22977 15.7957 0.711891 15.6567 0.656964C15.5177 0.602038 14.4942 0.222259 13.886 0.0637561C12.9162 -0.198323 11.9116 0.371346 11.6447 1.33649C11.3145 2.53075 11.1487 3.7564 11.1487 4.9899C11.1487 11.2547 15.4056 16.7301 21.5074 18.2994C22.6399 18.5913 23.8135 18.7435 24.9872 18.7435C26.1655 18.7435 27.3391 18.5913 28.4685 18.2994C34.5703 16.7301 38.8288 11.2547 38.8288 4.9899C38.8288 3.7564 38.6614 2.53075 38.3312 1.33649Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M0.5272 20.4527C-0.18044 21.1636 -0.175702 22.3155 0.541416 23.0185C0.980532 23.4626 1.83033 24.1437 1.94722 24.241C2.05779 24.3352 3.06712 25.0367 3.46517 25.2642C7.30349 27.466 11.8479 27.6512 15.7478 26.0238C15.5803 25.8025 15.4019 25.5922 15.2013 25.3898C14.1082 24.2834 12.7356 23.3889 11.1702 23.4469C9.14209 23.6321 7.00021 23.1127 5.28956 22.1146L4.69564 21.7066C4.88835 21.581 5.08579 21.4602 5.29113 21.344C9.3111 19.0371 14.3909 19.7229 17.6417 23.0028C18.2403 23.6117 18.7679 24.3038 19.2023 25.0492C19.6319 25.7931 19.9715 26.5919 20.2037 27.4158C21.4405 31.8554 19.4976 36.5666 15.4745 38.8719C15.2723 38.9896 15.0686 39.0979 14.8632 39.2015C14.8459 38.9771 14.8064 38.5753 14.8048 38.4906C14.7906 36.5211 15.4098 34.415 16.5849 32.7641C17.419 31.4474 17.3242 29.8184 16.9072 28.3244C16.8314 28.0529 16.7366 27.7924 16.6276 27.5366C13.26 30.079 11.1497 34.0823 11.1465 38.4843C11.1481 38.9426 11.2524 40.1572 11.2729 40.3032C11.295 40.4475 11.4751 41.5194 11.6409 42.1205C11.8968 43.0887 12.8951 43.6678 13.8697 43.4152C15.0749 43.1013 16.2264 42.6289 17.3021 42.0122C22.7642 38.8814 25.4068 32.4816 23.7245 26.4491C23.4149 25.3254 22.9584 24.2426 22.3709 23.232C21.7785 22.2166 21.0646 21.2813 20.2448 20.4574C15.8252 15.9942 8.92411 15.0636 3.46201 18.1975C2.38633 18.8127 1.40227 19.5738 0.5272 20.4527Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M36.1308 43.4121C37.1053 43.6663 38.1036 43.0841 38.3611 42.1174C38.5254 41.5163 38.696 40.4445 38.7228 40.297C38.7497 40.1526 38.8555 38.9348 38.8555 38.4765C38.8555 34.0745 36.7436 30.0712 33.376 27.5289C33.267 27.7862 33.1738 28.0467 33.0964 28.3182C32.6794 29.8122 32.5831 31.4396 33.4171 32.7563C34.5939 34.4088 35.213 36.5102 35.1988 38.4828L35.1388 39.1969C34.9335 39.0948 34.7281 38.985 34.5259 38.8673C30.5028 36.5619 28.5631 31.8492 29.7968 27.4111C30.0258 26.592 30.367 25.79 30.7982 25.0462C31.231 24.3023 31.7586 23.6118 32.3604 22.9998C35.6127 19.7167 40.6894 19.034 44.7109 21.3394C44.9162 21.4571 45.1121 21.5779 45.3032 21.7019C45.1184 21.8306 44.7867 22.0644 44.7141 22.1068C43.0034 23.1049 40.8615 23.6259 38.8334 23.4392C37.2665 23.3795 35.8954 24.2756 34.8039 25.382C34.6018 25.5829 34.4217 25.7963 34.2543 26.016C38.1542 27.6434 42.6985 27.4567 46.5384 25.258C46.9365 25.0289 47.9411 24.3321 48.0596 24.2427C48.1764 24.1501 49.0199 23.458 49.4606 23.0154C50.1746 22.3092 50.1809 21.1621 49.4733 20.4496C48.5982 19.5692 47.611 18.8143 46.5353 18.1992C41.0748 15.0652 34.1753 15.9911 29.7557 20.4543C28.9343 21.2813 28.2188 22.2167 27.6312 23.2289C27.042 24.2427 26.5839 25.3255 26.2759 26.446C24.5953 32.4785 27.2347 38.8814 32.6952 42.0138C33.7709 42.6306 34.9256 43.0998 36.1308 43.4121Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n </svg>\\r\\n\\r\\n <p *ngIf=\\\"disclaimer\\\">{{ disclaimer }}</p>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-loading-spinner-container{width:100%;height:100%;z-index:99999;top:0;left:0;display:flex;align-items:center;justify-content:center;position:absolute}.dhcl-loading-spinner-container.fixed{position:fixed}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner{position:relative;margin:0 auto;width:100px}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner:before{content:\\\"\\\";display:block;padding-top:100%}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner .dhcl-circular{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner .dhcl-circular .path{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite;stroke-linecap:round;stroke-width:4px;stroke-opacity:1}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{background:var(--dhcl-color-white);border-radius:20px;text-align:center;position:relative;box-sizing:border-box;min-height:150px;min-width:160px;padding:30px;max-width:600px;display:flex;align-items:center;justify-content:center}@media (max-width: 768px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{max-width:calc(100% - 50px);margin:0 auto}}@media (max-width: 420px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{padding:15px;min-height:85px;min-width:90px}}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo-svg{position:absolute;left:30px;animation:logo 3s linear infinite;width:100px}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo-svg.with-disclaimer{animation:logo 3.5s linear infinite}@media (max-width: 420px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo-svg{width:50px;left:20px}}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo p{vertical-align:middle;text-align:left;margin-left:120px;font-size:1.25em;font-weight:700;color:var(--dhcl-color-gray-dark)}@media (max-width: 768px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo p{font-size:1.125em}}@media (max-width: 420px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo p{margin-left:65px}}.spinner-bg{opacity:.5;background:#fff;position:fixed;z-index:99998}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes color{to,0%{stroke:var(--dhcl-color-primary)}}@keyframes logo{to{transform:rotate(360deg)}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-loading-spinner', encapsulation: ViewEncapsulation.None, template: \"<div *ngIf=\\\"showSpinner\\\" class=\\\"dhcl-loading-spinner-container\\\" [style.background]=\\\"bgColor\\\" [class.fixed]=\\\"fixed\\\">\\r\\n <div class=\\\"dhcl-showbox\\\">\\r\\n <div class=\\\"dhcl-loading-spinner\\\">\\r\\n <svg class=\\\"dhcl-circular\\\" viewBox=\\\"25 25 50 50\\\">\\r\\n <circle class=\\\"path\\\" cx=\\\"50\\\" cy=\\\"50\\\" r=\\\"20\\\" fill=\\\"none\\\" stroke-width=\\\"4\\\" stroke-miterlimit=\\\"10\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"dhcl-loading-spinner-logo\\\">\\r\\n <svg\\r\\n class=\\\"dhcl-loading-spinner-logo-svg\\\"\\r\\n [class.with-disclaimer]=\\\"disclaimer\\\"\\r\\n viewBox=\\\"0 0 50 44\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M38.3312 1.33649C38.0659 0.371346 37.0597 -0.198323 36.0898 0.0637561C35.4817 0.222259 34.4613 0.613023 34.3192 0.664811C34.1817 0.711891 33.0666 1.22977 32.6685 1.45889C28.8302 3.66067 26.3945 7.47886 25.8638 11.6486C26.1434 11.6125 26.4167 11.5654 26.6915 11.4932C28.2015 11.1056 29.669 10.3743 30.3987 8.99798C31.2517 7.16029 32.7759 5.57526 34.5008 4.60541L35.1547 4.29625C35.1674 4.5238 35.1737 4.75607 35.1737 4.9899C35.1737 9.60374 32.0367 13.6307 27.5508 14.7857C26.7215 14.9991 25.8543 15.1074 24.9872 15.1074C24.1231 15.1074 23.2575 14.9991 22.4235 14.7857C17.9344 13.6307 14.8022 9.60374 14.8022 4.9899C14.8022 4.75607 14.8085 4.5238 14.8211 4.29782C15.0249 4.39355 15.3961 4.56147 15.4703 4.60541C17.1952 5.57526 18.7195 7.16029 19.5709 8.99798C20.3022 10.3743 21.768 11.1056 23.2781 11.4932C23.5545 11.5654 23.8293 11.6125 24.1058 11.6486C23.5735 7.47886 21.1409 3.66067 17.3042 1.45889C16.9046 1.22977 15.7957 0.711891 15.6567 0.656964C15.5177 0.602038 14.4942 0.222259 13.886 0.0637561C12.9162 -0.198323 11.9116 0.371346 11.6447 1.33649C11.3145 2.53075 11.1487 3.7564 11.1487 4.9899C11.1487 11.2547 15.4056 16.7301 21.5074 18.2994C22.6399 18.5913 23.8135 18.7435 24.9872 18.7435C26.1655 18.7435 27.3391 18.5913 28.4685 18.2994C34.5703 16.7301 38.8288 11.2547 38.8288 4.9899C38.8288 3.7564 38.6614 2.53075 38.3312 1.33649Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M0.5272 20.4527C-0.18044 21.1636 -0.175702 22.3155 0.541416 23.0185C0.980532 23.4626 1.83033 24.1437 1.94722 24.241C2.05779 24.3352 3.06712 25.0367 3.46517 25.2642C7.30349 27.466 11.8479 27.6512 15.7478 26.0238C15.5803 25.8025 15.4019 25.5922 15.2013 25.3898C14.1082 24.2834 12.7356 23.3889 11.1702 23.4469C9.14209 23.6321 7.00021 23.1127 5.28956 22.1146L4.69564 21.7066C4.88835 21.581 5.08579 21.4602 5.29113 21.344C9.3111 19.0371 14.3909 19.7229 17.6417 23.0028C18.2403 23.6117 18.7679 24.3038 19.2023 25.0492C19.6319 25.7931 19.9715 26.5919 20.2037 27.4158C21.4405 31.8554 19.4976 36.5666 15.4745 38.8719C15.2723 38.9896 15.0686 39.0979 14.8632 39.2015C14.8459 38.9771 14.8064 38.5753 14.8048 38.4906C14.7906 36.5211 15.4098 34.415 16.5849 32.7641C17.419 31.4474 17.3242 29.8184 16.9072 28.3244C16.8314 28.0529 16.7366 27.7924 16.6276 27.5366C13.26 30.079 11.1497 34.0823 11.1465 38.4843C11.1481 38.9426 11.2524 40.1572 11.2729 40.3032C11.295 40.4475 11.4751 41.5194 11.6409 42.1205C11.8968 43.0887 12.8951 43.6678 13.8697 43.4152C15.0749 43.1013 16.2264 42.6289 17.3021 42.0122C22.7642 38.8814 25.4068 32.4816 23.7245 26.4491C23.4149 25.3254 22.9584 24.2426 22.3709 23.232C21.7785 22.2166 21.0646 21.2813 20.2448 20.4574C15.8252 15.9942 8.92411 15.0636 3.46201 18.1975C2.38633 18.8127 1.40227 19.5738 0.5272 20.4527Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M36.1308 43.4121C37.1053 43.6663 38.1036 43.0841 38.3611 42.1174C38.5254 41.5163 38.696 40.4445 38.7228 40.297C38.7497 40.1526 38.8555 38.9348 38.8555 38.4765C38.8555 34.0745 36.7436 30.0712 33.376 27.5289C33.267 27.7862 33.1738 28.0467 33.0964 28.3182C32.6794 29.8122 32.5831 31.4396 33.4171 32.7563C34.5939 34.4088 35.213 36.5102 35.1988 38.4828L35.1388 39.1969C34.9335 39.0948 34.7281 38.985 34.5259 38.8673C30.5028 36.5619 28.5631 31.8492 29.7968 27.4111C30.0258 26.592 30.367 25.79 30.7982 25.0462C31.231 24.3023 31.7586 23.6118 32.3604 22.9998C35.6127 19.7167 40.6894 19.034 44.7109 21.3394C44.9162 21.4571 45.1121 21.5779 45.3032 21.7019C45.1184 21.8306 44.7867 22.0644 44.7141 22.1068C43.0034 23.1049 40.8615 23.6259 38.8334 23.4392C37.2665 23.3795 35.8954 24.2756 34.8039 25.382C34.6018 25.5829 34.4217 25.7963 34.2543 26.016C38.1542 27.6434 42.6985 27.4567 46.5384 25.258C46.9365 25.0289 47.9411 24.3321 48.0596 24.2427C48.1764 24.1501 49.0199 23.458 49.4606 23.0154C50.1746 22.3092 50.1809 21.1621 49.4733 20.4496C48.5982 19.5692 47.611 18.8143 46.5353 18.1992C41.0748 15.0652 34.1753 15.9911 29.7557 20.4543C28.9343 21.2813 28.2188 22.2167 27.6312 23.2289C27.042 24.2427 26.5839 25.3255 26.2759 26.446C24.5953 32.4785 27.2347 38.8814 32.6952 42.0138C33.7709 42.6306 34.9256 43.0998 36.1308 43.4121Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n </svg>\\r\\n\\r\\n <p *ngIf=\\\"disclaimer\\\">{{ disclaimer }}</p>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-loading-spinner-container{width:100%;height:100%;z-index:99999;top:0;left:0;display:flex;align-items:center;justify-content:center;position:absolute}.dhcl-loading-spinner-container.fixed{position:fixed}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner{position:relative;margin:0 auto;width:100px}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner:before{content:\\\"\\\";display:block;padding-top:100%}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner .dhcl-circular{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner .dhcl-circular .path{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite;stroke-linecap:round;stroke-width:4px;stroke-opacity:1}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{background:var(--dhcl-color-white);border-radius:20px;text-align:center;position:relative;box-sizing:border-box;min-height:150px;min-width:160px;padding:30px;max-width:600px;display:flex;align-items:center;justify-content:center}@media (max-width: 768px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{max-width:calc(100% - 50px);margin:0 auto}}@media (max-width: 420px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{padding:15px;min-height:85px;min-width:90px}}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo-svg{position:absolute;left:30px;animation:logo 3s linear infinite;width:100px}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo-svg.with-disclaimer{animation:logo 3.5s linear infinite}@media (max-width: 420px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo-svg{width:50px;left:20px}}.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo p{vertical-align:middle;text-align:left;margin-left:120px;font-size:1.25em;font-weight:700;color:var(--dhcl-color-gray-dark)}@media (max-width: 768px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo p{font-size:1.125em}}@media (max-width: 420px){.dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo p{margin-left:65px}}.spinner-bg{opacity:.5;background:#fff;position:fixed;z-index:99998}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes color{to,0%{stroke:var(--dhcl-color-primary)}}@keyframes logo{to{transform:rotate(360deg)}}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { showSpinner: [{\n type: Input\n }], fixed: [{\n type: Input\n }], disclaimer: [{\n type: Input\n }], bgColor: [{\n type: Input\n }] } });\n\nclass LoadingSpinnerModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: LoadingSpinnerModule, declarations: [LoadingSpinnerComponent], imports: [CommonModule], exports: [LoadingSpinnerComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LoadingSpinnerModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LoadingSpinnerModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [LoadingSpinnerComponent],\n imports: [CommonModule],\n exports: [LoadingSpinnerComponent]\n }]\n }] });\n\nclass ModalComponent {\n width = 568;\n show;\n hasCloseBtn = true;\n customClass;\n closeOnOverlay = false;\n ariaLabelId;\n alignTop = false;\n closeClicked = new EventEmitter();\n dialog;\n closeBtn;\n previousActiveElement;\n constructor() { }\n ngOnInit() {\n this.showToggleHandler();\n }\n ngOnChanges(changes) {\n if (changes.show && !changes.show.firstChange) {\n this.showToggleHandler();\n }\n }\n ngOnDestroy() {\n this.show = false;\n this.showToggleHandler();\n }\n showToggleHandler() {\n const html = document.querySelector('html');\n const body = document.querySelector('body');\n if (this.show) {\n html.classList.add('dhcl-hide-scroll');\n body.classList.add('dhcl-hide-scroll');\n setTimeout(() => {\n this.previousActiveElement = document.activeElement;\n this.trapFocusHandler(true);\n }, 100);\n }\n else {\n html.classList.remove('dhcl-hide-scroll');\n body.classList.remove('dhcl-hide-scroll');\n }\n }\n modalClicked() {\n if (this.closeOnOverlay) {\n this.closeHandler();\n }\n }\n closeHandler() {\n this.previousActiveElement.focus();\n setTimeout(() => {\n this.closeClicked.emit(true);\n }, 100);\n }\n trapFocusHandler(focusLast = false) {\n const focusableElements = this.getFocusableElements();\n if (focusableElements != undefined) {\n if (focusLast && focusableElements[focusableElements.length - 1]) {\n focusableElements[focusableElements.length - 1].focus();\n }\n else if (focusableElements[0]) {\n focusableElements[0].focus();\n }\n }\n }\n getFocusableElements() {\n return this.dialog?.nativeElement?.querySelectorAll('button, a, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])');\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ModalComponent, selector: \"dhcl-modal\", inputs: { width: \"width\", show: \"show\", hasCloseBtn: \"hasCloseBtn\", customClass: \"customClass\", closeOnOverlay: \"closeOnOverlay\", ariaLabelId: \"ariaLabelId\", alignTop: \"alignTop\" }, outputs: { closeClicked: \"closeClicked\" }, viewQueries: [{ propertyName: \"dialog\", first: true, predicate: [\"dialog\"], descendants: true }, { propertyName: \"closeBtn\", first: true, predicate: [\"closeBtn\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<div *ngIf=\\\"show\\\" [@openClose] class=\\\"dhcl-modal\\\" [class.align-top]=\\\"alignTop\\\" style=\\\"--modal-width: {{ width }}px\\\">\\r\\n <div class=\\\"dhcl-modal-overlay\\\" (click)=\\\"modalClicked()\\\"></div>\\r\\n <div class=\\\"dhcl-modal-scroller\\\">\\r\\n <div *ngIf=\\\"closeOnOverlay\\\" class=\\\"dhcl-modal-scroller-overlay\\\" (click)=\\\"modalClicked()\\\"></div>\\r\\n <div class=\\\"trap-focus\\\" tabindex=\\\"0\\\" (focus)=\\\"trapFocusHandler(true)\\\"></div>\\r\\n <div #dialog class=\\\"dhcl-modal-content {{ customClass }}\\\">\\r\\n <button #closeBtn [class.dhcl-visually-hidden]=\\\"!hasCloseBtn\\\" aria-label=\\\"Close Modal\\\" class=\\\"close-btn\\\" (click)=\\\"closeHandler()\\\">\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1.375 1.375L20.625 20.625\\\" stroke=\\\"#005591\\\" stroke-width=\\\"2\\\" />\\r\\n <path d=\\\"M1.375 20.6223L20.625 1.375\\\" stroke=\\\"#005591\\\" stroke-width=\\\"2\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <div class=\\\"dhcl-modal-container\\\">\\r\\n <ng-content></ng-content>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"trap-focus\\\" tabindex=\\\"0\\\" (focus)=\\\"trapFocusHandler()\\\"></div>\\r\\n </div>\\r\\n</div>\\r\\n\", dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], animations: [\n trigger('openClose', [\n transition('void => *', [style({ opacity: '0' }), animate('.25s ease-in-out')]),\n transition('* => void', [style({ opacity: '1' }), animate('.25s ease-in-out')]),\n ]),\n ] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ModalComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-modal', animations: [\n trigger('openClose', [\n transition('void => *', [style({ opacity: '0' }), animate('.25s ease-in-out')]),\n transition('* => void', [style({ opacity: '1' }), animate('.25s ease-in-out')]),\n ]),\n ], template: \"<div *ngIf=\\\"show\\\" [@openClose] class=\\\"dhcl-modal\\\" [class.align-top]=\\\"alignTop\\\" style=\\\"--modal-width: {{ width }}px\\\">\\r\\n <div class=\\\"dhcl-modal-overlay\\\" (click)=\\\"modalClicked()\\\"></div>\\r\\n <div class=\\\"dhcl-modal-scroller\\\">\\r\\n <div *ngIf=\\\"closeOnOverlay\\\" class=\\\"dhcl-modal-scroller-overlay\\\" (click)=\\\"modalClicked()\\\"></div>\\r\\n <div class=\\\"trap-focus\\\" tabindex=\\\"0\\\" (focus)=\\\"trapFocusHandler(true)\\\"></div>\\r\\n <div #dialog class=\\\"dhcl-modal-content {{ customClass }}\\\">\\r\\n <button #closeBtn [class.dhcl-visually-hidden]=\\\"!hasCloseBtn\\\" aria-label=\\\"Close Modal\\\" class=\\\"close-btn\\\" (click)=\\\"closeHandler()\\\">\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1.375 1.375L20.625 20.625\\\" stroke=\\\"#005591\\\" stroke-width=\\\"2\\\" />\\r\\n <path d=\\\"M1.375 20.6223L20.625 1.375\\\" stroke=\\\"#005591\\\" stroke-width=\\\"2\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <div class=\\\"dhcl-modal-container\\\">\\r\\n <ng-content></ng-content>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"trap-focus\\\" tabindex=\\\"0\\\" (focus)=\\\"trapFocusHandler()\\\"></div>\\r\\n </div>\\r\\n</div>\\r\\n\" }]\n }], ctorParameters: () => [], propDecorators: { width: [{\n type: Input\n }], show: [{\n type: Input\n }], hasCloseBtn: [{\n type: Input\n }], customClass: [{\n type: Input\n }], closeOnOverlay: [{\n type: Input\n }], ariaLabelId: [{\n type: Input\n }], alignTop: [{\n type: Input\n }], closeClicked: [{\n type: Output\n }], dialog: [{\n type: ViewChild,\n args: ['dialog']\n }], closeBtn: [{\n type: ViewChild,\n args: ['closeBtn']\n }] } });\n\nclass ModalModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ModalModule, declarations: [ModalComponent], imports: [CommonModule], exports: [ModalComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ModalModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ModalModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ModalComponent],\n imports: [CommonModule],\n exports: [ModalComponent]\n }]\n }] });\n\nconst MAX_SHOWN$1 = 5; // Minumum 5\nclass MorelessPaginationComponent {\n currentPage;\n totalItems;\n showPageNumbers = true;\n pageSize;\n pagerClicked = new EventEmitter();\n constructor() { }\n ngOnInit() {\n this.currentPage = this.pageSize;\n }\n onMoreClick(pageNumber) {\n this.currentPage = this.pageSize + pageNumber > this.totalItems ? this.totalItems : pageNumber + this.pageSize;\n if (pageNumber >= this.pageSize && pageNumber <= this.totalItems) {\n this.pagerClicked.emit(this.currentPage);\n }\n }\n onLessClick() {\n this.currentPage = this.pageSize;\n this.pagerClicked.emit(this.pageSize);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MorelessPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: MorelessPaginationComponent, selector: \"dhcl-moreless-pagination\", inputs: { totalItems: \"totalItems\", showPageNumbers: \"showPageNumbers\", pageSize: \"pageSize\" }, outputs: { pagerClicked: \"pagerClicked\" }, ngImport: i0, template: \"<div class=\\\"dhcl-moreless-pager-container\\\">\\r\\n <p *ngIf=\\\"showPageNumbers && currentPage <= totalItems && pageSize < totalItems\\\">\\r\\n 1-{{ currentPage > totalItems ? totalItems : currentPage }} of {{ totalItems }}\\r\\n </p>\\r\\n <div class=\\\"dhcl-more-less\\\">\\r\\n <button *ngIf=\\\"currentPage < totalItems\\\" (click)=\\\"onMoreClick(currentPage)\\\">\\r\\n <div>\\r\\n More\\r\\n <svg width=\\\"18.99\\\" height=\\\"9.49\\\" viewBox=\\\"0 0 18.99 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path id=\\\"Page 1\\\" d=\\\"M20 1L10.5067 10.4933L1.01426 1\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n </button>\\r\\n <button *ngIf=\\\"currentPage == totalItems && currentPage > pageSize\\\" (click)=\\\"onLessClick()\\\">\\r\\n <div>\\r\\n Less\\r\\n <svg width=\\\"18.99\\\" height=\\\"9.49\\\" viewBox=\\\"0 0 18.99 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path id=\\\"Page 1\\\" d=\\\"M1 11L10.4933 1.5067L19.9857 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-moreless-pager-container p{font-style:normal;font-weight:400;font-size:.875rem;line-height:22px;text-align:right;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);padding-right:10px}.dhcl-moreless-pager-container .dhcl-more-less{text-align:center}.dhcl-moreless-pager-container button{font-weight:700;font-size:18px;line-height:26px;letter-spacing:-.1px;color:var(--dhcl-color-secondary);background:none;padding:0;border:none;cursor:pointer}.dhcl-moreless-pager-container:hover,.dhcl-moreless-pager-container:focus{color:var(--dhcl-color-secondary-darkest)}.dhcl-moreless-pager-container:hover svg path,.dhcl-moreless-pager-container:focus svg path{stroke:var(--dhcl-color-secondary-darkest)}.dhcl-moreless-pager-container:hover div,.dhcl-moreless-pager-container:focus div{color:var(--dhcl-color-secondary-darkest)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MorelessPaginationComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-moreless-pagination', template: \"<div class=\\\"dhcl-moreless-pager-container\\\">\\r\\n <p *ngIf=\\\"showPageNumbers && currentPage <= totalItems && pageSize < totalItems\\\">\\r\\n 1-{{ currentPage > totalItems ? totalItems : currentPage }} of {{ totalItems }}\\r\\n </p>\\r\\n <div class=\\\"dhcl-more-less\\\">\\r\\n <button *ngIf=\\\"currentPage < totalItems\\\" (click)=\\\"onMoreClick(currentPage)\\\">\\r\\n <div>\\r\\n More\\r\\n <svg width=\\\"18.99\\\" height=\\\"9.49\\\" viewBox=\\\"0 0 18.99 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path id=\\\"Page 1\\\" d=\\\"M20 1L10.5067 10.4933L1.01426 1\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n </button>\\r\\n <button *ngIf=\\\"currentPage == totalItems && currentPage > pageSize\\\" (click)=\\\"onLessClick()\\\">\\r\\n <div>\\r\\n Less\\r\\n <svg width=\\\"18.99\\\" height=\\\"9.49\\\" viewBox=\\\"0 0 18.99 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path id=\\\"Page 1\\\" d=\\\"M1 11L10.4933 1.5067L19.9857 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-moreless-pager-container p{font-style:normal;font-weight:400;font-size:.875rem;line-height:22px;text-align:right;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);padding-right:10px}.dhcl-moreless-pager-container .dhcl-more-less{text-align:center}.dhcl-moreless-pager-container button{font-weight:700;font-size:18px;line-height:26px;letter-spacing:-.1px;color:var(--dhcl-color-secondary);background:none;padding:0;border:none;cursor:pointer}.dhcl-moreless-pager-container:hover,.dhcl-moreless-pager-container:focus{color:var(--dhcl-color-secondary-darkest)}.dhcl-moreless-pager-container:hover svg path,.dhcl-moreless-pager-container:focus svg path{stroke:var(--dhcl-color-secondary-darkest)}.dhcl-moreless-pager-container:hover div,.dhcl-moreless-pager-container:focus div{color:var(--dhcl-color-secondary-darkest)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { totalItems: [{\n type: Input\n }], showPageNumbers: [{\n type: Input\n }], pageSize: [{\n type: Input\n }], pagerClicked: [{\n type: Output\n }] } });\n\nclass MorelessPaginationModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MorelessPaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: MorelessPaginationModule, declarations: [MorelessPaginationComponent], imports: [CommonModule], exports: [MorelessPaginationComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MorelessPaginationModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: MorelessPaginationModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n declarations: [MorelessPaginationComponent],\n exports: [MorelessPaginationComponent]\n }]\n }] });\n\nconst MAX_SHOWN = 5; // Minumum 5\nclass PaginationComponent {\n totalPages = 0;\n activePage = 0;\n maxShown = MAX_SHOWN;\n fill = 'var(--dhcl-color-secondary)';\n fill2 = 'var(--dhcl-color-secondary-dark)';\n pagerClicked = new EventEmitter();\n pagers = [];\n constructor() { }\n ngOnInit() { }\n pagerClickHandler(index) {\n this.pagerClicked.emit(index);\n }\n prevClickHandler() {\n if (this.activePage > 0) {\n this.pagerClickHandler(this.activePage - 1);\n }\n }\n nextClickHandler() {\n if (this.activePage < this.totalPages - 1) {\n this.pagerClickHandler(this.activePage + 1);\n }\n }\n get pagerList() {\n const activePage = this.activePage + 1;\n const maxShown = this.maxShown >= MAX_SHOWN ? this.maxShown : MAX_SHOWN;\n const sideOffset = maxShown < 9 ? 1 : 2;\n const leftOffset = Math.floor((maxShown - sideOffset * 2 - 3) / 2);\n const rightOffset = Math.floor((maxShown - sideOffset * 2 - 2) / 2);\n if (this.totalPages <= maxShown) {\n // no breaks in list\n return this.getPagerRanger(1, this.totalPages);\n }\n if (activePage <= maxShown - sideOffset - 1 - rightOffset) {\n // no break on left of page\n return this.getPagerRanger(1, maxShown - sideOffset - 1).concat(0, this.getPagerRanger(this.totalPages - sideOffset + 1, this.totalPages));\n }\n if (activePage >= this.totalPages - sideOffset - 1 - rightOffset) {\n // no break on right of page\n return this.getPagerRanger(1, sideOffset).concat(0, this.getPagerRanger(this.totalPages - sideOffset - 1 - rightOffset - leftOffset, this.totalPages));\n }\n // Breaks on both sides\n return this.getPagerRanger(1, sideOffset).concat(0, this.getPagerRanger(activePage - leftOffset, activePage + rightOffset), 0, this.getPagerRanger(this.totalPages - sideOffset + 1, this.totalPages));\n }\n getPagerRanger(start, end) {\n return Array.from(Array(end - start + 1), (_, i) => i + start);\n }\n get pagerColors() {\n return `--pager-fill: ${this.fill}; --pager-fill-2: ${this.fill2};`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: PaginationComponent, selector: \"dhcl-pagination\", inputs: { totalPages: \"totalPages\", activePage: \"activePage\", maxShown: \"maxShown\", fill: \"fill\", fill2: \"fill2\" }, outputs: { pagerClicked: \"pagerClicked\" }, ngImport: i0, template: \"<div class=\\\"dhcl-pager-container\\\" [attr.style]=\\\"pagerColors\\\">\\r\\n <button\\r\\n class=\\\"dhcl-pager-nav-button dhcl-pager-nav-button-prev\\\"\\r\\n [disabled]=\\\"activePage === 0\\\"\\r\\n (click)=\\\"prevClickHandler()\\\"\\r\\n [attr.aria-label]=\\\"'Previous Page'\\\"\\r\\n >\\r\\n <svg width=\\\"12\\\" height=\\\"21\\\" viewBox=\\\"0 0 12 21\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M11 1L1.5067 10.4933L11 19.9857\\\" stroke=\\\"#1C94E9\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <button\\r\\n *ngFor=\\\"let page of pagerList; let i = index\\\"\\r\\n [attr.aria-label]=\\\"page === 0 ? null : 'Page ' + page\\\"\\r\\n (click)=\\\"pagerClickHandler(page - 1)\\\"\\r\\n class=\\\"dhcl-pager-index\\\"\\r\\n [class.active]=\\\"page - 1 === activePage\\\"\\r\\n [disabled]=\\\"page === 0\\\"\\r\\n >\\r\\n {{ page === 0 ? '...' : page }}\\r\\n </button>\\r\\n <button\\r\\n class=\\\"dhcl-pager-nav-button dhcl-pager-nav-button-next\\\"\\r\\n [disabled]=\\\"activePage === totalPages - 1\\\"\\r\\n (click)=\\\"nextClickHandler()\\\"\\r\\n [attr.aria-label]=\\\"'Next Page'\\\"\\r\\n >\\r\\n <svg width=\\\"12\\\" height=\\\"21\\\" viewBox=\\\"0 0 12 21\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1 1L10.4933 10.4933L1 19.9857\\\" stroke=\\\"#1C94E9\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n</div>\\r\\n\", styles: [\".dhcl-pager-container button{cursor:pointer}.dhcl-pager-container button.dhcl-pager-index{font-size:1.125rem;border:none;box-shadow:none;background:transparent;margin:0 10px;transition:var(--dhcl-default-transition);transform:translateY(3px);color:var(--dhcl-color-secondary);font-weight:700;height:25px;min-width:25px;text-align:center}.dhcl-pager-container button.dhcl-pager-index:hover,.dhcl-pager-container button.dhcl-pager-index:active,.dhcl-pager-container button.dhcl-pager-index:focus{color:var(--pager-fill-2)}.dhcl-pager-container button.dhcl-pager-index.active{color:var(--dhcl-color-gray-dark);background:var(--dhcl-color-gray-light-medium);border-radius:50%}.dhcl-pager-container button.dhcl-pager-nav-button{background:transparent;border:2px solid var(--pager-fill);border-radius:50%;height:48px;width:48px;text-align:center;vertical-align:middle;margin:0 10px;transition:var(--dhcl-default-transition)}.dhcl-pager-container button.dhcl-pager-nav-button svg{transform:translate(-2px,1px)}.dhcl-pager-container button.dhcl-pager-nav-button svg path{transition:var(--dhcl-default-transition);stroke:var(--pager-fill)}.dhcl-pager-container button.dhcl-pager-nav-button-next svg{transform:translate(2px,1px)}.dhcl-pager-container button.dhcl-pager-nav-button:hover,.dhcl-pager-container button.dhcl-pager-nav-button:active,.dhcl-pager-container button.dhcl-pager-nav-button:focus{border:2px solid var(--pager-fill-2)}.dhcl-pager-container button.dhcl-pager-nav-button:hover svg path,.dhcl-pager-container button.dhcl-pager-nav-button:active svg path,.dhcl-pager-container button.dhcl-pager-nav-button:focus svg path{stroke:var(--pager-fill-2)}.dhcl-pager-container button.dhcl-pager-nav-button:disabled{border:2px solid var(--dhcl-color-gray-light-medium);cursor:no-drop}.dhcl-pager-container button.dhcl-pager-nav-button:disabled svg path{stroke:var(--dhcl-color-gray-light-medium)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PaginationComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-pagination', template: \"<div class=\\\"dhcl-pager-container\\\" [attr.style]=\\\"pagerColors\\\">\\r\\n <button\\r\\n class=\\\"dhcl-pager-nav-button dhcl-pager-nav-button-prev\\\"\\r\\n [disabled]=\\\"activePage === 0\\\"\\r\\n (click)=\\\"prevClickHandler()\\\"\\r\\n [attr.aria-label]=\\\"'Previous Page'\\\"\\r\\n >\\r\\n <svg width=\\\"12\\\" height=\\\"21\\\" viewBox=\\\"0 0 12 21\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M11 1L1.5067 10.4933L11 19.9857\\\" stroke=\\\"#1C94E9\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <button\\r\\n *ngFor=\\\"let page of pagerList; let i = index\\\"\\r\\n [attr.aria-label]=\\\"page === 0 ? null : 'Page ' + page\\\"\\r\\n (click)=\\\"pagerClickHandler(page - 1)\\\"\\r\\n class=\\\"dhcl-pager-index\\\"\\r\\n [class.active]=\\\"page - 1 === activePage\\\"\\r\\n [disabled]=\\\"page === 0\\\"\\r\\n >\\r\\n {{ page === 0 ? '...' : page }}\\r\\n </button>\\r\\n <button\\r\\n class=\\\"dhcl-pager-nav-button dhcl-pager-nav-button-next\\\"\\r\\n [disabled]=\\\"activePage === totalPages - 1\\\"\\r\\n (click)=\\\"nextClickHandler()\\\"\\r\\n [attr.aria-label]=\\\"'Next Page'\\\"\\r\\n >\\r\\n <svg width=\\\"12\\\" height=\\\"21\\\" viewBox=\\\"0 0 12 21\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1 1L10.4933 10.4933L1 19.9857\\\" stroke=\\\"#1C94E9\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n</div>\\r\\n\", styles: [\".dhcl-pager-container button{cursor:pointer}.dhcl-pager-container button.dhcl-pager-index{font-size:1.125rem;border:none;box-shadow:none;background:transparent;margin:0 10px;transition:var(--dhcl-default-transition);transform:translateY(3px);color:var(--dhcl-color-secondary);font-weight:700;height:25px;min-width:25px;text-align:center}.dhcl-pager-container button.dhcl-pager-index:hover,.dhcl-pager-container button.dhcl-pager-index:active,.dhcl-pager-container button.dhcl-pager-index:focus{color:var(--pager-fill-2)}.dhcl-pager-container button.dhcl-pager-index.active{color:var(--dhcl-color-gray-dark);background:var(--dhcl-color-gray-light-medium);border-radius:50%}.dhcl-pager-container button.dhcl-pager-nav-button{background:transparent;border:2px solid var(--pager-fill);border-radius:50%;height:48px;width:48px;text-align:center;vertical-align:middle;margin:0 10px;transition:var(--dhcl-default-transition)}.dhcl-pager-container button.dhcl-pager-nav-button svg{transform:translate(-2px,1px)}.dhcl-pager-container button.dhcl-pager-nav-button svg path{transition:var(--dhcl-default-transition);stroke:var(--pager-fill)}.dhcl-pager-container button.dhcl-pager-nav-button-next svg{transform:translate(2px,1px)}.dhcl-pager-container button.dhcl-pager-nav-button:hover,.dhcl-pager-container button.dhcl-pager-nav-button:active,.dhcl-pager-container button.dhcl-pager-nav-button:focus{border:2px solid var(--pager-fill-2)}.dhcl-pager-container button.dhcl-pager-nav-button:hover svg path,.dhcl-pager-container button.dhcl-pager-nav-button:active svg path,.dhcl-pager-container button.dhcl-pager-nav-button:focus svg path{stroke:var(--pager-fill-2)}.dhcl-pager-container button.dhcl-pager-nav-button:disabled{border:2px solid var(--dhcl-color-gray-light-medium);cursor:no-drop}.dhcl-pager-container button.dhcl-pager-nav-button:disabled svg path{stroke:var(--dhcl-color-gray-light-medium)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { totalPages: [{\n type: Input\n }], activePage: [{\n type: Input\n }], maxShown: [{\n type: Input\n }], fill: [{\n type: Input\n }], fill2: [{\n type: Input\n }], pagerClicked: [{\n type: Output\n }] } });\n\nclass PaginationModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent], imports: [CommonModule], exports: [PaginationComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PaginationModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: PaginationModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [PaginationComponent],\n imports: [CommonModule],\n exports: [PaginationComponent]\n }]\n }] });\n\nclass ProfilePictureComponent {\n verticalOffset;\n imageUrl;\n altText;\n constructor() { }\n ngOnInit() { }\n get offsetPercentage() {\n let verticalOffset = '0%';\n if (this.verticalOffset) {\n verticalOffset = this.verticalOffset + '%';\n }\n else {\n const imageSearchParams = (this.imageUrl || '').split('?');\n if (imageSearchParams[1]) {\n const offset = new URLSearchParams(`?${imageSearchParams[1]}`);\n verticalOffset = offset.get('y') + '%';\n }\n }\n return verticalOffset;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProfilePictureComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ProfilePictureComponent, selector: \"dhcl-profile-picture\", inputs: { verticalOffset: \"verticalOffset\", imageUrl: \"imageUrl\", altText: \"altText\" }, ngImport: i0, template: \"<div class=\\\"profile-picture-container\\\">\\r\\n <img [src]=\\\"imageUrl\\\" [alt]=\\\"altText\\\" [style.marginTop]=\\\"offsetPercentage\\\" />\\r\\n</div>\\r\\n\", styles: [\".profile-picture-container{border-radius:50%;overflow:hidden;height:100%;width:100%}.profile-picture-container img{width:100%;height:auto}\\n\"] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProfilePictureComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-profile-picture', template: \"<div class=\\\"profile-picture-container\\\">\\r\\n <img [src]=\\\"imageUrl\\\" [alt]=\\\"altText\\\" [style.marginTop]=\\\"offsetPercentage\\\" />\\r\\n</div>\\r\\n\", styles: [\".profile-picture-container{border-radius:50%;overflow:hidden;height:100%;width:100%}.profile-picture-container img{width:100%;height:auto}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { verticalOffset: [{\n type: Input\n }], imageUrl: [{\n type: Input\n }], altText: [{\n type: Input\n }] } });\n\nclass ProfilePictureModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProfilePictureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ProfilePictureModule, declarations: [ProfilePictureComponent], imports: [CommonModule], exports: [ProfilePictureComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProfilePictureModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProfilePictureModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ProfilePictureComponent],\n imports: [CommonModule],\n exports: [ProfilePictureComponent]\n }]\n }] });\n\nclass ProgressBarComponent {\n fill = 'var(--dhcl-color-primary)';\n progress = 0;\n valueText;\n constructor() { }\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ProgressBarComponent, selector: \"dhcl-progress-bar\", inputs: { fill: \"fill\", progress: \"progress\", valueText: \"valueText\" }, ngImport: i0, template: \"<div class=\\\"dhcl-progress-bar\\\">\\r\\n <div\\r\\n class=\\\"dhcl-progress-bar-content\\\"\\r\\n [style.background]=\\\"fill\\\"\\r\\n [style.width]=\\\"progress + '%'\\\"\\r\\n role=\\\"progressbar\\\"\\r\\n [attr.aria-valuetext]=\\\"'Step ' + valueText + ' of 4'\\\"\\r\\n [attr.aria-valuenow]=\\\"progress\\\"\\r\\n aria-valuemin=\\\"0\\\"\\r\\n aria-valuemax=\\\"100\\\"\\r\\n ></div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-progress-bar{background:var(--dhcl-color-gray-light);height:6px;overflow:hidden;width:100%}.dhcl-progress-bar-content{transition:var(--dhcl-default-transition);height:100%}\\n\"] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressBarComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-progress-bar', template: \"<div class=\\\"dhcl-progress-bar\\\">\\r\\n <div\\r\\n class=\\\"dhcl-progress-bar-content\\\"\\r\\n [style.background]=\\\"fill\\\"\\r\\n [style.width]=\\\"progress + '%'\\\"\\r\\n role=\\\"progressbar\\\"\\r\\n [attr.aria-valuetext]=\\\"'Step ' + valueText + ' of 4'\\\"\\r\\n [attr.aria-valuenow]=\\\"progress\\\"\\r\\n aria-valuemin=\\\"0\\\"\\r\\n aria-valuemax=\\\"100\\\"\\r\\n ></div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-progress-bar{background:var(--dhcl-color-gray-light);height:6px;overflow:hidden;width:100%}.dhcl-progress-bar-content{transition:var(--dhcl-default-transition);height:100%}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { fill: [{\n type: Input\n }], progress: [{\n type: Input\n }], valueText: [{\n type: Input\n }] } });\n\nclass ProgressBarModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressBarModule, declarations: [ProgressBarComponent], imports: [CommonModule], exports: [ProgressBarComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressBarModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressBarModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ProgressBarComponent],\n imports: [CommonModule],\n exports: [ProgressBarComponent]\n }]\n }] });\n\nclass ProgressStepperComponent {\n cdr;\n steps = [];\n fill = 'var(--dhcl-color-primary-dark)';\n separatorverticalalign = false;\n stepClicked = new EventEmitter();\n progressStepper;\n separatorWidth = '200px';\n constructor(cdr) {\n this.cdr = cdr;\n }\n ngOnInit() {\n this.setSeparatorWidth();\n }\n ngAfterViewInit() {\n this.setSeparatorWidth();\n }\n setSeparatorWidth() {\n if (!this.separatorverticalalign) {\n let stepperWidth = 0;\n let stepsWidth = 0;\n let stepCount = 2;\n let seperatorMargin = 0;\n if (this.progressStepper && this.progressStepper.nativeElement) {\n seperatorMargin = 2 * 10; // css margin of 10px * 2 for left and right.\n stepperWidth = this.progressStepper.nativeElement.getBoundingClientRect().width;\n const steps = this.progressStepper.nativeElement.querySelectorAll('.dhcl-progress-stepper-step-container');\n if (steps.length > 0) {\n stepCount = steps.length;\n steps.forEach((step) => {\n stepsWidth += step.getBoundingClientRect().width;\n });\n }\n }\n this.separatorWidth = `${(stepperWidth - stepsWidth) / (stepCount - 1) - seperatorMargin}px`;\n }\n else {\n this.separatorWidth = `2px;`;\n }\n this.cdr.detectChanges();\n }\n stepClickHandler(step, index) {\n this.stepClicked.emit({ step, index });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressStepperComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ProgressStepperComponent, selector: \"dhcl-progress-stepper\", inputs: { steps: \"steps\", fill: \"fill\", separatorverticalalign: \"separatorverticalalign\" }, outputs: { stepClicked: \"stepClicked\" }, viewQueries: [{ propertyName: \"progressStepper\", first: true, predicate: [\"progressStepper\"], descendants: true }], ngImport: i0, template: \"<div class=\\\"dhcl-progress-stepper\\\" #progressStepper (window:resize)=\\\"setSeparatorWidth()\\\" [attr.style]=\\\"'--dhcl-stepper-fill: ' + fill\\\">\\r\\n <div class=\\\"dhcl-progress-stepper-step\\\" [class.vertical]=\\\"separatorverticalalign\\\" *ngFor=\\\"let step of steps; let i = index\\\" [class.active]=\\\"step.active\\\">\\r\\n <div class=\\\"dhcl-progress-stepper-step-container\\\">\\r\\n <button\\r\\n [attr.aria-label]=\\\"step.label || 'Step ' + (i + 1)\\\"\\r\\n (click)=\\\"stepClickHandler(step, i)\\\"\\r\\n class=\\\"dhcl-progress-stepper-step-index\\\"\\r\\n [disabled]=\\\"step.disabled\\\"\\r\\n *ngIf=\\\"!step.complete && !step.incomplete\\\"\\r\\n >\\r\\n {{ i + 1 }}\\r\\n </button>\\r\\n <button\\r\\n [attr.aria-label]=\\\"step.label || 'Step ' + (i + 1)\\\"\\r\\n (click)=\\\"stepClickHandler(step, i)\\\"\\r\\n class=\\\"dhcl-progress-stepper-step-index icon\\\"\\r\\n *ngIf=\\\"step.complete\\\"\\r\\n [disabled]=\\\"step.disabled\\\"\\r\\n >\\r\\n <svg width=\\\"16\\\" height=\\\"12\\\" viewBox=\\\"0 0 16 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <g id=\\\"UI / form / complete/ green\\\">\\r\\n <path id=\\\"Line\\\" d=\\\"M1.5 6.5L5.5 10.5\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path id=\\\"Line 2\\\" d=\\\"M5.55556 10.4444L14.4444 1.55556\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </g>\\r\\n </svg>\\r\\n </button>\\r\\n <button\\r\\n [attr.aria-label]=\\\"step.label || 'Step ' + (i + 1)\\\"\\r\\n (click)=\\\"stepClickHandler(step, i)\\\"\\r\\n class=\\\"dhcl-progress-stepper-step-index icon\\\"\\r\\n *ngIf=\\\"!step.complete && step.incomplete\\\"\\r\\n [disabled]=\\\"step.disabled\\\"\\r\\n >\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"4\\\" height=\\\"12\\\" viewBox=\\\"0 0 4 12\\\" fill=\\\"none\\\">\\r\\n <path d=\\\"M1.376 8.032L0.912 0.511999H3.296L2.848 8.032H1.376ZM0.992 12V9.712H3.248V12H0.992Z\\\" fill=\\\"#ED711C\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <p class=\\\"dhcl-progress-stepper-step-label\\\">{{ step.label || ' ' }}</p>\\r\\n </div>\\r\\n <div class=\\\"dhcl-progress-stepper-separator\\\" [class.complete]=\\\"step.complete\\\" [class.vertical]=\\\"separatorverticalalign\\\" [style.width]=\\\"separatorWidth\\\"></div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-progress-stepper-step{display:inline-block}.dhcl-progress-stepper-step.vertical{display:block}.dhcl-progress-stepper-step-container{display:inline-block}.dhcl-progress-stepper-step-separator{width:200px}.dhcl-progress-stepper-step-index{font-family:var(--dhcl-font-family);background:var(--dhcl-color-white);cursor:pointer;border:2px solid var(--dhcl-color-gray-light-medium);border-radius:50%;width:40px;height:40px;display:block;text-align:center;line-height:34px;font-size:1rem;font-weight:700;color:var(--dhcl-color-gray-dark);margin:0 auto}.dhcl-progress-stepper-step-index.icon svg path{stroke:var(--dhcl-stepper-fill);fill:var(--dhcl-stepper-fill)}.dhcl-progress-stepper-step-index:disabled{cursor:no-drop}.dhcl-progress-stepper-step-label{font-size:.75rem;line-height:normal;text-align:center;font-weight:700;color:var(--dhcl-color-gray-dark-medium);margin:5px 0}.dhcl-progress-stepper-step.active .dhcl-progress-stepper-step-index{color:var(--dhcl-stepper-fill);border:2px solid var(--dhcl-stepper-fill)}.dhcl-progress-stepper-step.active .dhcl-progress-stepper-step-label{color:var(--dhcl-stepper-fill)}.dhcl-progress-stepper-step:last-child .dhcl-progress-stepper-separator{display:none}.dhcl-progress-stepper-separator{height:2px;background:var(--dhcl-color-gray-light-medium);margin:0 10px;width:200px;display:inline-block;vertical-align:top;transform:translateY(21px)}.dhcl-progress-stepper-separator.complete{background:var(--dhcl-stepper-fill)}.dhcl-progress-stepper-separator.vertical{display:block;transform:translate(8px);width:2px;height:30px;margin-bottom:10px}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressStepperComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-progress-stepper', template: \"<div class=\\\"dhcl-progress-stepper\\\" #progressStepper (window:resize)=\\\"setSeparatorWidth()\\\" [attr.style]=\\\"'--dhcl-stepper-fill: ' + fill\\\">\\r\\n <div class=\\\"dhcl-progress-stepper-step\\\" [class.vertical]=\\\"separatorverticalalign\\\" *ngFor=\\\"let step of steps; let i = index\\\" [class.active]=\\\"step.active\\\">\\r\\n <div class=\\\"dhcl-progress-stepper-step-container\\\">\\r\\n <button\\r\\n [attr.aria-label]=\\\"step.label || 'Step ' + (i + 1)\\\"\\r\\n (click)=\\\"stepClickHandler(step, i)\\\"\\r\\n class=\\\"dhcl-progress-stepper-step-index\\\"\\r\\n [disabled]=\\\"step.disabled\\\"\\r\\n *ngIf=\\\"!step.complete && !step.incomplete\\\"\\r\\n >\\r\\n {{ i + 1 }}\\r\\n </button>\\r\\n <button\\r\\n [attr.aria-label]=\\\"step.label || 'Step ' + (i + 1)\\\"\\r\\n (click)=\\\"stepClickHandler(step, i)\\\"\\r\\n class=\\\"dhcl-progress-stepper-step-index icon\\\"\\r\\n *ngIf=\\\"step.complete\\\"\\r\\n [disabled]=\\\"step.disabled\\\"\\r\\n >\\r\\n <svg width=\\\"16\\\" height=\\\"12\\\" viewBox=\\\"0 0 16 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <g id=\\\"UI / form / complete/ green\\\">\\r\\n <path id=\\\"Line\\\" d=\\\"M1.5 6.5L5.5 10.5\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path id=\\\"Line 2\\\" d=\\\"M5.55556 10.4444L14.4444 1.55556\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </g>\\r\\n </svg>\\r\\n </button>\\r\\n <button\\r\\n [attr.aria-label]=\\\"step.label || 'Step ' + (i + 1)\\\"\\r\\n (click)=\\\"stepClickHandler(step, i)\\\"\\r\\n class=\\\"dhcl-progress-stepper-step-index icon\\\"\\r\\n *ngIf=\\\"!step.complete && step.incomplete\\\"\\r\\n [disabled]=\\\"step.disabled\\\"\\r\\n >\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"4\\\" height=\\\"12\\\" viewBox=\\\"0 0 4 12\\\" fill=\\\"none\\\">\\r\\n <path d=\\\"M1.376 8.032L0.912 0.511999H3.296L2.848 8.032H1.376ZM0.992 12V9.712H3.248V12H0.992Z\\\" fill=\\\"#ED711C\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n <p class=\\\"dhcl-progress-stepper-step-label\\\">{{ step.label || ' ' }}</p>\\r\\n </div>\\r\\n <div class=\\\"dhcl-progress-stepper-separator\\\" [class.complete]=\\\"step.complete\\\" [class.vertical]=\\\"separatorverticalalign\\\" [style.width]=\\\"separatorWidth\\\"></div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-progress-stepper-step{display:inline-block}.dhcl-progress-stepper-step.vertical{display:block}.dhcl-progress-stepper-step-container{display:inline-block}.dhcl-progress-stepper-step-separator{width:200px}.dhcl-progress-stepper-step-index{font-family:var(--dhcl-font-family);background:var(--dhcl-color-white);cursor:pointer;border:2px solid var(--dhcl-color-gray-light-medium);border-radius:50%;width:40px;height:40px;display:block;text-align:center;line-height:34px;font-size:1rem;font-weight:700;color:var(--dhcl-color-gray-dark);margin:0 auto}.dhcl-progress-stepper-step-index.icon svg path{stroke:var(--dhcl-stepper-fill);fill:var(--dhcl-stepper-fill)}.dhcl-progress-stepper-step-index:disabled{cursor:no-drop}.dhcl-progress-stepper-step-label{font-size:.75rem;line-height:normal;text-align:center;font-weight:700;color:var(--dhcl-color-gray-dark-medium);margin:5px 0}.dhcl-progress-stepper-step.active .dhcl-progress-stepper-step-index{color:var(--dhcl-stepper-fill);border:2px solid var(--dhcl-stepper-fill)}.dhcl-progress-stepper-step.active .dhcl-progress-stepper-step-label{color:var(--dhcl-stepper-fill)}.dhcl-progress-stepper-step:last-child .dhcl-progress-stepper-separator{display:none}.dhcl-progress-stepper-separator{height:2px;background:var(--dhcl-color-gray-light-medium);margin:0 10px;width:200px;display:inline-block;vertical-align:top;transform:translateY(21px)}.dhcl-progress-stepper-separator.complete{background:var(--dhcl-stepper-fill)}.dhcl-progress-stepper-separator.vertical{display:block;transform:translate(8px);width:2px;height:30px;margin-bottom:10px}\\n\"] }]\n }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { steps: [{\n type: Input\n }], fill: [{\n type: Input\n }], separatorverticalalign: [{\n type: Input\n }], stepClicked: [{\n type: Output\n }], progressStepper: [{\n type: ViewChild,\n args: ['progressStepper']\n }] } });\n\nclass ProgressStepperModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressStepperModule, declarations: [ProgressStepperComponent], imports: [CommonModule], exports: [ProgressStepperComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressStepperModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProgressStepperModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ProgressStepperComponent],\n imports: [CommonModule],\n exports: [ProgressStepperComponent]\n }]\n }] });\n\nclass ScrollToTopComponent {\n pageOffset = 100;\n isShow = false;\n checkScroll() {\n const scrollPosition = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\n if (scrollPosition >= this.pageOffset) {\n this.isShow = true;\n }\n else {\n this.isShow = false;\n }\n }\n scrollToTop() {\n window.scroll({\n top: 0,\n left: 0,\n behavior: 'smooth'\n });\n }\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ScrollToTopComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ScrollToTopComponent, selector: \"dhcl-scroll-to-top\", inputs: { pageOffset: \"pageOffset\" }, host: { listeners: { \"window:scroll\": \"checkScroll()\" } }, ngImport: i0, template: \"<!--Scroll to top-->\\r\\n<button class=\\\"scroll-to-top\\\" (click)=\\\"scrollToTop()\\\" *ngIf=\\\"isShow\\\" aria-label=\\\"Scroll back to top\\\">\\r\\n <svg width=\\\"21\\\" height=\\\"12\\\" viewBox=\\\"0 0 21 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1 11L10.4933 1.5067L19.9857 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n <div>Back to top</div>\\r\\n</button>\\r\\n\", styles: [\".scroll-to-top{position:fixed;padding:0!important;overflow:hidden;bottom:15px;right:15px;height:50px;width:70px;background-color:var(--dhcl-color-white);text-align:center;border:2px solid var(--dhcl-color-secondary);border-radius:10px;cursor:pointer;transition:var(--dhcl-default-transition);z-index:16777281}.scroll-to-top svg{margin-top:3px}.scroll-to-top svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.scroll-to-top div{width:62px;height:22px;margin-top:-5px;margin-left:2px;text-align:center;font-weight:700;font-size:12px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.scroll-to-top:hover,.scroll-to-top:focus{border:2px solid var(--dhcl-color-secondary-darkest)}.scroll-to-top:hover svg path,.scroll-to-top:focus svg path{stroke:var(--dhcl-color-secondary-darkest)}.scroll-to-top:hover div,.scroll-to-top:focus div{color:var(--dhcl-color-secondary-darkest)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ScrollToTopComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-scroll-to-top', template: \"<!--Scroll to top-->\\r\\n<button class=\\\"scroll-to-top\\\" (click)=\\\"scrollToTop()\\\" *ngIf=\\\"isShow\\\" aria-label=\\\"Scroll back to top\\\">\\r\\n <svg width=\\\"21\\\" height=\\\"12\\\" viewBox=\\\"0 0 21 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M1 11L10.4933 1.5067L19.9857 11\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n <div>Back to top</div>\\r\\n</button>\\r\\n\", styles: [\".scroll-to-top{position:fixed;padding:0!important;overflow:hidden;bottom:15px;right:15px;height:50px;width:70px;background-color:var(--dhcl-color-white);text-align:center;border:2px solid var(--dhcl-color-secondary);border-radius:10px;cursor:pointer;transition:var(--dhcl-default-transition);z-index:16777281}.scroll-to-top svg{margin-top:3px}.scroll-to-top svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.scroll-to-top div{width:62px;height:22px;margin-top:-5px;margin-left:2px;text-align:center;font-weight:700;font-size:12px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.scroll-to-top:hover,.scroll-to-top:focus{border:2px solid var(--dhcl-color-secondary-darkest)}.scroll-to-top:hover svg path,.scroll-to-top:focus svg path{stroke:var(--dhcl-color-secondary-darkest)}.scroll-to-top:hover div,.scroll-to-top:focus div{color:var(--dhcl-color-secondary-darkest)}\\n\"] }]\n }], propDecorators: { pageOffset: [{\n type: Input\n }], checkScroll: [{\n type: HostListener,\n args: ['window:scroll']\n }] } });\n\nclass ScrollToTopModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ScrollToTopModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ScrollToTopModule, declarations: [ScrollToTopComponent], imports: [CommonModule], exports: [ScrollToTopComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ScrollToTopModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ScrollToTopModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ScrollToTopComponent],\n imports: [CommonModule],\n exports: [ScrollToTopComponent]\n }]\n }] });\n\nvar Direction;\n(function (Direction) {\n Direction[\"TOP\"] = \"top\";\n Direction[\"BOTTOM\"] = \"bottom\";\n Direction[\"LEFT\"] = \"left\";\n Direction[\"RIGHT\"] = \"right\";\n})(Direction || (Direction = {}));\n\nclass SortDropdownComponent {\n dropdowns = [];\n placeholder = 'Sort Dropdown';\n selectedValue;\n dropdownAlignment = Direction.LEFT;\n showDropdownOnFocus = true;\n changed = new EventEmitter();\n dropdownContainer;\n Direction = Direction;\n dropdownId = new Date().getTime();\n showDropdown = false;\n activeDropdownIndex = -1;\n lastKeyPressed;\n onClick(event) {\n this.windowClickhandler(event);\n }\n constructor() { }\n ngOnInit() {\n this.activeDropdownIndex = this.dropdowns.findIndex((dropdown) => {\n return dropdown.value === this.selectedValue;\n });\n }\n get displayValue() {\n const existingSelectedValue = this.dropdowns.find((dropdown) => {\n return dropdown.value === this.selectedValue;\n })?.label;\n return existingSelectedValue || this.placeholder;\n }\n keyDownHandler(keyEvent) {\n const keyCode = keyEvent.key.toLowerCase();\n if (keyCode === 'arrowdown') {\n this.lastKeyPressed = 'arrowdown';\n keyEvent.preventDefault();\n this.arrowHandler(1);\n }\n else if (keyCode === 'arrowup') {\n this.lastKeyPressed = 'arrowup';\n keyEvent.preventDefault();\n this.arrowHandler(-1);\n }\n else if (keyCode === 'enter' || keyCode === 'space' || keyCode === ' ') {\n this.activeDropdownIndex = -1;\n if (this.lastKeyPressed == 'tab') {\n //Change activeDropdownIndex value on the basis of Selected Dropdown\n this.activeDropdownIndex = this.dropdowns.findIndex((dropdown) => {\n return dropdown.label === document.activeElement.textContent.trim();\n });\n }\n if (this.activeDropdownIndex <= 0) {\n const sortParentDropdown = document.getElementById(\"sortby-ul-dropdown-id\")?.children;\n if (sortParentDropdown) {\n for (let i = 0; i < sortParentDropdown.length; i++) {\n if (sortParentDropdown[i]?.id == document.querySelector('.focused')?.id) {\n this.activeDropdownIndex = i;\n }\n }\n }\n }\n if (this.activeDropdownIndex >= 0) {\n this.changed.emit(this.dropdowns[this.activeDropdownIndex]);\n this.selectedValue = this.dropdowns[this.activeDropdownIndex].value;\n }\n this.showDropdown = !this.showDropdown;\n if (this.showDropdown) {\n this.openDropdown();\n }\n }\n else if (keyCode === 'tab') {\n this.lastKeyPressed = 'tab';\n const currentActiveElementId = document.activeElement.id;\n const lastElementChildOfSortDropdown = document.getElementById(\"sortby-ul-dropdown-id\")?.lastElementChild.id;\n if (currentActiveElementId === lastElementChildOfSortDropdown) {\n this.hideDropdown();\n }\n }\n }\n arrowHandler(increment) {\n this.activeDropdownIndex += increment;\n if (this.activeDropdownIndex <= -1) {\n this.activeDropdownIndex = 0;\n }\n else if (this.activeDropdownIndex >= this.dropdowns.length) {\n this.activeDropdownIndex = this.dropdowns.length - 1;\n }\n window.setTimeout(() => {\n this.updateScrollPosition();\n }, 10);\n }\n updateScrollPosition() {\n const listContainer = this.dropdownContainer.nativeElement.querySelector('ul');\n const activeItem = this.dropdownContainer.nativeElement.querySelector('ul li.focused');\n if (listContainer && activeItem) {\n if (activeItem.getBoundingClientRect().bottom > listContainer.getBoundingClientRect().bottom) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().bottom - listContainer.getBoundingClientRect().bottom);\n }\n else if (activeItem.getBoundingClientRect().top < listContainer.getBoundingClientRect().top) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().top - listContainer.getBoundingClientRect().top);\n }\n }\n }\n itemClickHandler(dropdown, index) {\n this.selectedValue = dropdown.value;\n this.showDropdown = false;\n this.activeDropdownIndex = index;\n this.changed.emit(dropdown);\n }\n windowClickhandler(event) {\n if (!this.dropdownContainer.nativeElement.contains(event.target)) {\n this.showDropdown = false;\n }\n }\n openDropdown() {\n this.activeDropdownIndex = -1;\n this.showDropdown = true;\n window.setTimeout(() => {\n this.updateScrollPosition();\n }, 10);\n }\n hideDropdown() {\n this.showDropdown = false;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SortDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: SortDropdownComponent, selector: \"dhcl-sort-dropdown\", inputs: { dropdowns: \"dropdowns\", placeholder: \"placeholder\", selectedValue: \"selectedValue\", dropdownAlignment: \"dropdownAlignment\", showDropdownOnFocus: \"showDropdownOnFocus\" }, outputs: { changed: \"changed\" }, host: { listeners: { \"window:click\": \"onClick($event)\" } }, viewQueries: [{ propertyName: \"dropdownContainer\", first: true, predicate: [\"dropdownContainer\"], descendants: true }], ngImport: i0, template: \"<span class=\\\"dhcl-visually-hidden\\\" [attr.id]=\\\"'dropdown-label-' + dropdownId\\\">Sort by {{ placeholder }}</span>\\r\\n<div role=\\\"application\\\" class=\\\"dhcl-sort-dropdown-wrapper\\\" #dropdownContainer>\\r\\n <button\\r\\n tabindex=\\\"0\\\"\\r\\n (focus)=\\\"showDropdownOnFocus ? openDropdown() : hideDropdown()\\\"\\r\\n (click)=\\\"openDropdown()\\\"\\r\\n aria-haspopup=\\\"true\\\"\\r\\n [attr.aria-expanded]=\\\"showDropdown\\\"\\r\\n [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n >\\r\\n Sort by {{ displayValue }}\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"15\\\" viewBox=\\\"0 0 16 15\\\" fill=\\\"none\\\">\\r\\n <path\\r\\n d=\\\"M5.25 9.8125V0.375C5.25 0.1875 5.0625 0 4.875 0H3.125C2.90625 0 2.75 0.1875 2.75 0.375V9.8125H1.28125C0.625 9.8125 0.28125 10.625 0.75 11.0938L3.46875 13.7812C3.75 14.0938 4.21875 14.0938 4.5 13.7812L7.21875 11.0938C7.6875 10.625 7.34375 9.8125 6.6875 9.8125H5.25Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n <path\\r\\n style=\\\"transform: translateX(8px);\\\"\\r\\n d=\\\"M2.75 4.21875V13.625C2.75 13.8438 2.90625 14 3.125 14H4.875C5.0625 14 5.25 13.8438 5.25 13.625V4.21875H6.6875C7.34375 4.21875 7.6875 3.40625 7.21875 2.9375L4.5 0.25C4.21875 -0.0625 3.75 -0.0625 3.46875 0.25L0.75 2.9375C0.28125 3.40625 0.625 4.21875 1.28125 4.21875H2.75Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n </button>\\r\\n <ul\\r\\n *ngIf=\\\"showDropdown\\\"\\r\\n role=\\\"menu\\\"\\r\\n [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n [class.rightAlign]=\\\"dropdownAlignment === Direction.RIGHT\\\"\\r\\n id=\\\"sortby-ul-dropdown-id\\\"\\r\\n >\\r\\n <li\\r\\n *ngFor=\\\"let dropdown of dropdowns; let i = index\\\"\\r\\n role=\\\"menuitem\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '-' + i\\\"\\r\\n [class.focused]=\\\"activeDropdownIndex === i\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === i\\\"\\r\\n (click)=\\\"showDropdown = true; itemClickHandler(dropdown, i)\\\"\\r\\n attr.aria-label=\\\"{{dropdown?.label}}\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n >\\r\\n <svg\\r\\n width=\\\"16\\\"\\r\\n height=\\\"12\\\"\\r\\n viewBox=\\\"0 0 16 12\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n *ngIf=\\\"selectedValue === dropdown.value\\\"\\r\\n >\\r\\n <g id=\\\"UI / form / complete/ green\\\">\\r\\n <path id=\\\"Line\\\" d=\\\"M1.5 6.5L5.5 10.5\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path id=\\\"Line 2\\\" d=\\\"M5.55556 10.4444L14.4444 1.55556\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </g>\\r\\n </svg>\\r\\n <div>\\r\\n {{ dropdown.label }}\\r\\n </div>\\r\\n </li>\\r\\n </ul>\\r\\n</div>\\r\\n\", styles: [\".dhcl-sort-dropdown-wrapper{display:inline-block;position:relative}.dhcl-sort-dropdown-wrapper button{border:none;background:var(--dhcl-color-white);border-radius:3px;box-sizing:border-box;width:auto;height:auto;padding:0 25px 0 0;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:700;font-size:.875rem;line-height:1.375rem;color:var(--dhcl-color-secondary);font-family:var(--dhcl-font-family);cursor:pointer}.dhcl-sort-dropdown-wrapper button svg{transition:var(--dhcl-default-transition);position:absolute;top:5px;right:3px}.dhcl-sort-dropdown-wrapper button svg path{fill:var(--dhcl-color-secondary)}.dhcl-sort-dropdown-wrapper button:focus svg{transform:rotate(180deg)}.dhcl-sort-dropdown-wrapper ul{max-height:165px;overflow:auto;list-style:none;padding:0;border:1px solid var(--dhcl-color-gray-dark-medium);margin:0;position:absolute;width:100%;background:var(--dhcl-color-white);z-index:9999;box-shadow:var(--dhcl-default-box-shadow)}.dhcl-sort-dropdown-wrapper ul.rightAlign{right:0}.dhcl-sort-dropdown-wrapper ul li{position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:7.5px 14px 7.5px 31px;transition:var(--dhcl-default-transition);color:var(--dhcl-color-gray-dark);cursor:pointer}.dhcl-sort-dropdown-wrapper ul li svg{position:absolute;left:8px;top:10px}.dhcl-sort-dropdown-wrapper ul li svg path{stroke:var(--dhcl-color-primary-dark)}.dhcl-sort-dropdown-wrapper ul li:hover,.dhcl-sort-dropdown-wrapper ul li.focused{background:var(--dhcl-color-primary-light);border-left:6px solid var(--dhcl-color-primary-dark)}.dhcl-sort-dropdown-wrapper ul li:hover svg,.dhcl-sort-dropdown-wrapper ul li.focused svg{display:block}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SortDropdownComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-sort-dropdown', template: \"<span class=\\\"dhcl-visually-hidden\\\" [attr.id]=\\\"'dropdown-label-' + dropdownId\\\">Sort by {{ placeholder }}</span>\\r\\n<div role=\\\"application\\\" class=\\\"dhcl-sort-dropdown-wrapper\\\" #dropdownContainer>\\r\\n <button\\r\\n tabindex=\\\"0\\\"\\r\\n (focus)=\\\"showDropdownOnFocus ? openDropdown() : hideDropdown()\\\"\\r\\n (click)=\\\"openDropdown()\\\"\\r\\n aria-haspopup=\\\"true\\\"\\r\\n [attr.aria-expanded]=\\\"showDropdown\\\"\\r\\n [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n >\\r\\n Sort by {{ displayValue }}\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"15\\\" viewBox=\\\"0 0 16 15\\\" fill=\\\"none\\\">\\r\\n <path\\r\\n d=\\\"M5.25 9.8125V0.375C5.25 0.1875 5.0625 0 4.875 0H3.125C2.90625 0 2.75 0.1875 2.75 0.375V9.8125H1.28125C0.625 9.8125 0.28125 10.625 0.75 11.0938L3.46875 13.7812C3.75 14.0938 4.21875 14.0938 4.5 13.7812L7.21875 11.0938C7.6875 10.625 7.34375 9.8125 6.6875 9.8125H5.25Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n <path\\r\\n style=\\\"transform: translateX(8px);\\\"\\r\\n d=\\\"M2.75 4.21875V13.625C2.75 13.8438 2.90625 14 3.125 14H4.875C5.0625 14 5.25 13.8438 5.25 13.625V4.21875H6.6875C7.34375 4.21875 7.6875 3.40625 7.21875 2.9375L4.5 0.25C4.21875 -0.0625 3.75 -0.0625 3.46875 0.25L0.75 2.9375C0.28125 3.40625 0.625 4.21875 1.28125 4.21875H2.75Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n </button>\\r\\n <ul\\r\\n *ngIf=\\\"showDropdown\\\"\\r\\n role=\\\"menu\\\"\\r\\n [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n [class.rightAlign]=\\\"dropdownAlignment === Direction.RIGHT\\\"\\r\\n id=\\\"sortby-ul-dropdown-id\\\"\\r\\n >\\r\\n <li\\r\\n *ngFor=\\\"let dropdown of dropdowns; let i = index\\\"\\r\\n role=\\\"menuitem\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '-' + i\\\"\\r\\n [class.focused]=\\\"activeDropdownIndex === i\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === i\\\"\\r\\n (click)=\\\"showDropdown = true; itemClickHandler(dropdown, i)\\\"\\r\\n attr.aria-label=\\\"{{dropdown?.label}}\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n >\\r\\n <svg\\r\\n width=\\\"16\\\"\\r\\n height=\\\"12\\\"\\r\\n viewBox=\\\"0 0 16 12\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n *ngIf=\\\"selectedValue === dropdown.value\\\"\\r\\n >\\r\\n <g id=\\\"UI / form / complete/ green\\\">\\r\\n <path id=\\\"Line\\\" d=\\\"M1.5 6.5L5.5 10.5\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path id=\\\"Line 2\\\" d=\\\"M5.55556 10.4444L14.4444 1.55556\\\" stroke=\\\"#00A6A1\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </g>\\r\\n </svg>\\r\\n <div>\\r\\n {{ dropdown.label }}\\r\\n </div>\\r\\n </li>\\r\\n </ul>\\r\\n</div>\\r\\n\", styles: [\".dhcl-sort-dropdown-wrapper{display:inline-block;position:relative}.dhcl-sort-dropdown-wrapper button{border:none;background:var(--dhcl-color-white);border-radius:3px;box-sizing:border-box;width:auto;height:auto;padding:0 25px 0 0;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:700;font-size:.875rem;line-height:1.375rem;color:var(--dhcl-color-secondary);font-family:var(--dhcl-font-family);cursor:pointer}.dhcl-sort-dropdown-wrapper button svg{transition:var(--dhcl-default-transition);position:absolute;top:5px;right:3px}.dhcl-sort-dropdown-wrapper button svg path{fill:var(--dhcl-color-secondary)}.dhcl-sort-dropdown-wrapper button:focus svg{transform:rotate(180deg)}.dhcl-sort-dropdown-wrapper ul{max-height:165px;overflow:auto;list-style:none;padding:0;border:1px solid var(--dhcl-color-gray-dark-medium);margin:0;position:absolute;width:100%;background:var(--dhcl-color-white);z-index:9999;box-shadow:var(--dhcl-default-box-shadow)}.dhcl-sort-dropdown-wrapper ul.rightAlign{right:0}.dhcl-sort-dropdown-wrapper ul li{position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:7.5px 14px 7.5px 31px;transition:var(--dhcl-default-transition);color:var(--dhcl-color-gray-dark);cursor:pointer}.dhcl-sort-dropdown-wrapper ul li svg{position:absolute;left:8px;top:10px}.dhcl-sort-dropdown-wrapper ul li svg path{stroke:var(--dhcl-color-primary-dark)}.dhcl-sort-dropdown-wrapper ul li:hover,.dhcl-sort-dropdown-wrapper ul li.focused{background:var(--dhcl-color-primary-light);border-left:6px solid var(--dhcl-color-primary-dark)}.dhcl-sort-dropdown-wrapper ul li:hover svg,.dhcl-sort-dropdown-wrapper ul li.focused svg{display:block}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { dropdowns: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], selectedValue: [{\n type: Input\n }], dropdownAlignment: [{\n type: Input\n }], showDropdownOnFocus: [{\n type: Input\n }], changed: [{\n type: Output\n }], dropdownContainer: [{\n type: ViewChild,\n args: ['dropdownContainer']\n }], onClick: [{\n type: HostListener,\n args: ['window:click', ['$event']]\n }] } });\n\nclass SortDropdownModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SortDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: SortDropdownModule, declarations: [SortDropdownComponent], imports: [CommonModule], exports: [SortDropdownComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SortDropdownModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SortDropdownModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [SortDropdownComponent],\n imports: [CommonModule],\n exports: [SortDropdownComponent]\n }]\n }] });\n\nclass StarRatingComponent {\n rating = 0;\n reviews = 0;\n showRatingText = true;\n showNumReviews = true;\n guid = this.newGuid();\n stars = [{ fill: 0 }, { fill: 0 }, { fill: 0 }, { fill: 0 }, { fill: 0 }];\n constructor() { }\n ngOnInit() {\n this.initStarFill();\n }\n ngOnChanges(changes) {\n if (changes.rating && !changes.rating.firstChange) {\n this.initStarFill();\n }\n }\n newGuid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, x => {\n /* tslint:disable */\n const randomInt = (Math.random() * 16) | 0;\n const value = x === 'x' ? randomInt : (randomInt & 0x3) | 0x8;\n /* tslint:enable */\n return value.toString(16);\n });\n }\n initStarFill() {\n this.rating = this.rating < 0 ? 0 : this.rating > 5 ? 5 : this.rating;\n let rating = 100 * (this.rating / 5);\n this.stars.forEach((star) => {\n star.fill = rating > 20 ? 100 : (rating / 20) * 100;\n rating -= 20;\n rating = rating < 0 ? 0 : rating;\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StarRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: StarRatingComponent, selector: \"dhcl-star-rating\", inputs: { rating: \"rating\", reviews: \"reviews\", showRatingText: \"showRatingText\", showNumReviews: \"showNumReviews\" }, usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"dhcl-stars-container\\\">\\r\\n <div class=\\\"stars\\\">\\r\\n <svg\\r\\n *ngFor=\\\"let star of stars; let i = index\\\"\\r\\n width=\\\"18\\\"\\r\\n height=\\\"16\\\"\\r\\n viewBox=\\\"0 0 18 16\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <defs>\\r\\n <linearGradient\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n id=\\\"grad{{ guid }}-{{ i }}\\\"\\r\\n [attr.x1]=\\\"(star.fill < 1 ? 1 : star.fill) + '%'\\\"\\r\\n y1=\\\"100%\\\"\\r\\n x2=\\\"0\\\"\\r\\n y2=\\\"100%\\\"\\r\\n >\\r\\n <stop stop-color=\\\"#727779\\\" offset=\\\"0%\\\" />\\r\\n <stop stop-color=\\\"var(--dhcl-color-yellow)\\\" offset=\\\"0%\\\" />\\r\\n </linearGradient>\\r\\n </defs>\\r\\n\\r\\n <path\\r\\n d=\\\"M8.67027 0.871503C8.85549 0.376165 9.55613 0.376166 9.74135 0.871502L11.1349 4.59828C11.3558 5.18902 11.9084 5.59051 12.5385 5.61804L16.5135 5.79174C17.0418 5.81482 17.2583 6.48117 16.8444 6.81039L13.7307 9.28736C13.2371 9.67999 13.0261 10.3296 13.1946 10.9374L14.2577 14.7715C14.399 15.2811 13.8322 15.6929 13.3912 15.4011L10.0733 13.2051C9.54734 12.8571 8.86428 12.8571 8.33834 13.2051L5.02041 15.4011C4.57941 15.6929 4.01258 15.2811 4.15389 14.7715L5.21704 10.9374C5.38556 10.3296 5.17448 9.67999 4.68092 9.28736L1.56717 6.81039C1.15331 6.48117 1.36982 5.81482 1.89815 5.79174L5.87315 5.61804C6.50323 5.59051 7.05584 5.18902 7.27674 4.59828L8.67027 0.871503Z\\\"\\r\\n [attr.fill]=\\\"'url(#grad' + guid + '-' + i + ')'\\\"\\r\\n stroke=\\\"#DE7925\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <ng-container *ngIf=\\\"reviews && rating; else noRating\\\">\\r\\n <span *ngIf=\\\"showRatingText === true\\\" class=\\\"rating_text\\\">{{ rating | number: '1.1-1' }} / 5.0</span>\\r\\n <span *ngIf=\\\"showNumReviews === true\\\" class=\\\"review_number_text\\\">({{ reviews }})</span>\\r\\n </ng-container>\\r\\n <ng-template #noRating>\\r\\n <span class=\\\"rating_text\\\">No ratings</span>\\r\\n </ng-template>\\r\\n</div>\\r\\n\", styles: [\".dhcl-stars-container{display:flex;align-items:center}.dhcl-stars-container .stars{display:flex;align-items:center;margin-right:.5rem}.dhcl-stars-container .stars svg{margin-right:4px}.dhcl-stars-container .rating_text{font-weight:600;font-size:.875rem;white-space:nowrap;line-height:23px;letter-spacing:.1px;margin-right:5px;color:var(--dhcl-color-gray-dark)}.dhcl-stars-container .review_number_text{font-weight:400;font-size:.75rem;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-primary-dark)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"pipe\", type: i1.DecimalPipe, name: \"number\" }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StarRatingComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-star-rating', template: \"<div class=\\\"dhcl-stars-container\\\">\\r\\n <div class=\\\"stars\\\">\\r\\n <svg\\r\\n *ngFor=\\\"let star of stars; let i = index\\\"\\r\\n width=\\\"18\\\"\\r\\n height=\\\"16\\\"\\r\\n viewBox=\\\"0 0 18 16\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <defs>\\r\\n <linearGradient\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n id=\\\"grad{{ guid }}-{{ i }}\\\"\\r\\n [attr.x1]=\\\"(star.fill < 1 ? 1 : star.fill) + '%'\\\"\\r\\n y1=\\\"100%\\\"\\r\\n x2=\\\"0\\\"\\r\\n y2=\\\"100%\\\"\\r\\n >\\r\\n <stop stop-color=\\\"#727779\\\" offset=\\\"0%\\\" />\\r\\n <stop stop-color=\\\"var(--dhcl-color-yellow)\\\" offset=\\\"0%\\\" />\\r\\n </linearGradient>\\r\\n </defs>\\r\\n\\r\\n <path\\r\\n d=\\\"M8.67027 0.871503C8.85549 0.376165 9.55613 0.376166 9.74135 0.871502L11.1349 4.59828C11.3558 5.18902 11.9084 5.59051 12.5385 5.61804L16.5135 5.79174C17.0418 5.81482 17.2583 6.48117 16.8444 6.81039L13.7307 9.28736C13.2371 9.67999 13.0261 10.3296 13.1946 10.9374L14.2577 14.7715C14.399 15.2811 13.8322 15.6929 13.3912 15.4011L10.0733 13.2051C9.54734 12.8571 8.86428 12.8571 8.33834 13.2051L5.02041 15.4011C4.57941 15.6929 4.01258 15.2811 4.15389 14.7715L5.21704 10.9374C5.38556 10.3296 5.17448 9.67999 4.68092 9.28736L1.56717 6.81039C1.15331 6.48117 1.36982 5.81482 1.89815 5.79174L5.87315 5.61804C6.50323 5.59051 7.05584 5.18902 7.27674 4.59828L8.67027 0.871503Z\\\"\\r\\n [attr.fill]=\\\"'url(#grad' + guid + '-' + i + ')'\\\"\\r\\n stroke=\\\"#DE7925\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <ng-container *ngIf=\\\"reviews && rating; else noRating\\\">\\r\\n <span *ngIf=\\\"showRatingText === true\\\" class=\\\"rating_text\\\">{{ rating | number: '1.1-1' }} / 5.0</span>\\r\\n <span *ngIf=\\\"showNumReviews === true\\\" class=\\\"review_number_text\\\">({{ reviews }})</span>\\r\\n </ng-container>\\r\\n <ng-template #noRating>\\r\\n <span class=\\\"rating_text\\\">No ratings</span>\\r\\n </ng-template>\\r\\n</div>\\r\\n\", styles: [\".dhcl-stars-container{display:flex;align-items:center}.dhcl-stars-container .stars{display:flex;align-items:center;margin-right:.5rem}.dhcl-stars-container .stars svg{margin-right:4px}.dhcl-stars-container .rating_text{font-weight:600;font-size:.875rem;white-space:nowrap;line-height:23px;letter-spacing:.1px;margin-right:5px;color:var(--dhcl-color-gray-dark)}.dhcl-stars-container .review_number_text{font-weight:400;font-size:.75rem;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-primary-dark)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { rating: [{\n type: Input\n }], reviews: [{\n type: Input\n }], showRatingText: [{\n type: Input\n }], showNumReviews: [{\n type: Input\n }] } });\n\nclass StarRatingModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StarRatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: StarRatingModule, declarations: [StarRatingComponent], imports: [CommonModule], exports: [StarRatingComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StarRatingModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StarRatingModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [StarRatingComponent],\n imports: [CommonModule],\n exports: [StarRatingComponent]\n }]\n }] });\n\nclass TabsComponent {\n tabsOptions;\n annotationFormat = '(__annotation__)';\n selectionChange = new EventEmitter();\n annotationToken = '__annotation__';\n hoverIndex = -1;\n constructor() { }\n ngOnInit() { }\n switchTabs(tabId) {\n this.tabsOptions?.forEach(tab => {\n if (tab.id === tabId) {\n tab.active = true;\n }\n else {\n tab.active = false;\n }\n });\n this.selectionChange.emit(tabId);\n }\n formatAnnotation(annotation = '') {\n if (annotation !== '') {\n return this.annotationFormat.replace(this.annotationToken, annotation);\n }\n return annotation;\n }\n onHover(i) {\n this.hoverIndex = i;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: TabsComponent, selector: \"dhcl-tabs\", inputs: { tabsOptions: \"tabsOptions\", annotationFormat: \"annotationFormat\" }, outputs: { selectionChange: \"selectionChange\" }, ngImport: i0, template: \"<div class=\\\"dhcl-tabs-wrapper\\\">\\r\\n <div *ngFor=\\\"let tab of tabsOptions; let i = index\\\" [ngClass]=\\\"tab.active ? 'active' : ''\\\" (click)=\\\"switchTabs(tab.id)\\\" (keyup.enter)=\\\"switchTabs(tab.id)\\\" tabindex=\\\"0\\\">\\r\\n <div (mouseenter)=\\\"onHover(i)\\\" (mouseleave)=\\\"onHover(-1)\\\">\\r\\n <div [ngClass]=\\\"i == hoverIndex ? 'hoverstate' : ''\\\">\\r\\n {{ tab.title }} <span class=\\\"annotation\\\">{{ formatAnnotation(tab.annotation) }}</span>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\"html{--dhcl-default-box-shadow: 0px 2px 8px rgba(77, 82, 90, .3);--dhcl-default-transition: all .15s ease-in-out}.dhcl-hide-scroll{overflow:hidden}.dhcl-visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;left:-1000%}h2,h3,h4,h5,p,li,label{color:var(--dhcl-color-gray-dark)}html,.dhcl-dignity-health{--dhcl-color-primary-light: #fbe3d2;--dhcl-color-primary: #ed711c;--dhcl-color-primary-dark: #c85200;--dhcl-color-primary-darkest: #c85200;--dhcl-color-secondary-light: #e6f5ff;--dhcl-color-secondary: #0071c2;--dhcl-color-secondary-dark: #005591;--dhcl-color-secondary-darkest: #005591;--dhcl-color-gray-dark: #4d525a;--dhcl-color-gray-dark-medium: #7f736c;--dhcl-color-gray-light-medium: #e3e1dc;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-white: #ffffff;--dhcl-color-black: #000000;--dhcl-color-success: #008000;--dhcl-color-error: #bb0000;--dhcl-color-warning: #ffe6a4;--dhcl-color-info: #e6f5ff;--dhcl-color-yellow: #f2a900;--dhcl-color-suggestion-bar: #C85200}.dhcl-chi-health{--dhcl-color-primary-light: #dde6f8;--dhcl-color-primary: #24509a;--dhcl-color-primary-dark: #1e487a;--dhcl-color-primary-darkest: #1e487a;--dhcl-color-secondary-light: #e8f6f7;--dhcl-color-secondary: #007785;--dhcl-color-secondary-dark: #00606b;--dhcl-color-secondary-darkest: #00606b;--dhcl-color-gray-dark: #53565a;--dhcl-color-gray-dark-medium: #76777a;--dhcl-color-gray-light-medium: #d9d8d6;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #1E487A}.dhcl-common-spirit{--dhcl-color-primary-light: #f3e2ed;--dhcl-color-primary: #83336e;--dhcl-color-primary-dark: #6a2959;--dhcl-color-primary-darkest: #6a2959;--dhcl-color-secondary-light: #ebe3f2;--dhcl-color-secondary: #7060a7;--dhcl-color-secondary-dark: #494372;--dhcl-color-secondary-darkest: #494372;--dhcl-color-gray-dark: #53565a;--dhcl-color-gray-dark-medium: #767a7d;--dhcl-color-gray-light-medium: #cacdce;--dhcl-color-gray-light: #f2f3f7;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #71234F}.dhcl-virginia-mason{--dhcl-color-primary-light: #d9f0cc;--dhcl-color-primary: #55a63a;--dhcl-color-primary-dark: #44842e;--dhcl-color-primary-darkest: #44842e;--dhcl-color-secondary-light: #e6f3f9;--dhcl-color-secondary: #0071c2;--dhcl-color-secondary-dark: #115d7e;--dhcl-color-secondary-darkest: #115d7e;--dhcl-color-gray-dark: #014765;--dhcl-color-gray-dark-medium: #727779;--dhcl-color-gray-light-medium: #d7dada;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #44842E}.dhcl-rainier-health{--dhcl-color-primary-light: #E8F4DC;--dhcl-color-primary: #6FA333;--dhcl-color-primary-dark: #578028;--dhcl-color-primary-darkest: #578028;--dhcl-color-secondary-light: #B8EAFF;--dhcl-color-secondary: #0076A8;--dhcl-color-secondary-dark: #005D85;--dhcl-color-secondary-darkest: #005D85;--dhcl-color-gray-dark: #03374d;--dhcl-color-gray-dark-medium: #707070;--dhcl-color-gray-light-medium: #DEE1E3;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #578028}.dhcl-accordion-stepper-container{border-bottom:1px solid var(--dhcl-color-gray-light-medium)}html{--dhcl-button-color: var(--dhcl-color-secondary);--dhcl-button-color-hover: var(--dhcl-color-secondary-darkest);--dhcl-button-disabled: var(--dhcl-color-gray-light-medium);--dhcl-button-text-color: var(--dhcl-color-white);--dhcl-button-line-height-sm: 36px;--dhcl-button-line-height-md: 46px;--dhcl-button-line-height-lg: 56px}button.dhcl-button{height:60px;line-height:var(--dhcl-button-line-height-lg);padding:0 60px;box-sizing:border-box;font-style:normal;font-weight:700;font-size:1rem;cursor:pointer;outline:none;border-radius:45px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%;transition:var(--dhcl-default-transition)}button.dhcl-button-primary{background:var(--dhcl-button-color);border:2px solid var(--dhcl-button-color);color:var(--dhcl-button-text-color);font-family:var(--dhcl-font-family);line-height:var(--dhcl-button-line-height)}button.dhcl-button-primary:active,button.dhcl-button-primary:focus,button.dhcl-button-primary:hover{background:var(--dhcl-button-color-hover);border:2px solid var(--dhcl-button-color-hover);color:var(--dhcl-button-text-color)}button.dhcl-button-primary:disabled{color:var(--dhcl-button-text-color);background:var(--dhcl-button-disabled);border:var(--dhcl-button-disabled);cursor:no-drop}button.dhcl-button-primary.dhcl-button-arrow{padding:0 100px 0 20px;position:relative}button.dhcl-button-primary.dhcl-button-arrow svg{position:absolute;top:22.5px;right:15px}button.dhcl-button-primary.dhcl-button-arrow svg path{stroke:var(--dhcl-button-text-color)}button.dhcl-button-secondary{background:var(--dhcl-button-text-color);border:2px solid var(--dhcl-button-color);color:var(--dhcl-button-color);font-family:var(--dhcl-font-family);line-height:var(--dhcl-button-line-height)}button.dhcl-button-secondary:active,button.dhcl-button-secondary:focus,button.dhcl-button-secondary:hover{background:var(--dhcl-button-text-color);border:2px solid var(--dhcl-button-color-hover);color:var(--dhcl-button-color-hover)}button.dhcl-button-secondary:disabled{color:var(--dhcl-button-text-color);background:var(--dhcl-button-disabled);border:var(--dhcl-button-disabled);cursor:no-drop}button.dhcl-button-secondary.dhcl-button-arrow{padding:0 100px 0 20px;position:relative}button.dhcl-button-secondary.dhcl-button-arrow svg{position:absolute;top:22.5px;right:15px}button.dhcl-button-secondary.dhcl-button-arrow svg path{stroke:var(--dhcl-button-text-color)}button.dhcl-button-secondary.dhcl-button-arrow svg path{stroke:var(--dhcl-button-color)}button.dhcl-button-secondary.dhcl-button-arrow:active svg path,button.dhcl-button-secondary.dhcl-button-arrow:focus svg path,button.dhcl-button-secondary.dhcl-button-arrow:hover svg path{stroke:var(--dhcl-button-color-hover)}button.dhcl-button-secondary.dhcl-button-arrow:disabled svg path{stroke:var(--dhcl-button-text-color)}button.dhcl-button-medium{height:50px;line-height:var(--dhcl-button-line-height-md);padding:0 50px;font-size:.875rem}button.dhcl-button-medium.dhcl-button-arrow{padding:0 80px 0 20px}button.dhcl-button-medium.dhcl-button-arrow svg{top:17.5px}button.dhcl-button-small{height:40px;line-height:var(--dhcl-button-line-height-sm);padding:0 35px;font-size:.875rem}button.dhcl-button-small.dhcl-button-arrow{padding:0 50px 0 20px;position:relative}button.dhcl-button-small.dhcl-button-arrow svg{top:12.5px}label.dhcl-radio-button{--dhcl-radio-background-color: var(--dhcl-color-white);--dhcl-radio-primary-color: var(--dhcl-color-secondary);--dhcl-radio-hover-color: var(--dhcl-color-secondary-darkest);--dhcl-radio-disabled-color: var(--dhcl-color-gray-light-medium);--dhcl-radio-label-color: var(--dhcl-color-gray-dark);--dhcl-radio-error-color: var(--dhcl-color-error);line-height:22px;font-size:14px;font-weight:700;color:var(--dhcl-radio-label-color)}label.dhcl-radio-button input[type=radio]{position:absolute;opacity:0;cursor:pointer;transform:scale(2);margin:6px}label.dhcl-radio-button input[type=radio]+span.dhcl-radio-content:before{content:\\\"\\\";background-color:var(--dhcl-radio-background-color);box-shadow:inset 0 0 0 4.2px var(--dhcl-radio-background-color);border:2px solid var(--dhcl-radio-primary-color);border-radius:100%;display:inline-table;width:20px;height:20px;margin-right:10px;vertical-align:top;text-align:center;transition:all .25s ease;outline:none}label.dhcl-radio-button input[type=radio]+span.dhcl-radio-content:empty:before{margin-right:0}label.dhcl-radio-button input[type=radio]:checked:not(:disabled)+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-primary-color)}label.dhcl-radio-button input[type=radio]:focus+span.dhcl-radio-content:before,label.dhcl-radio-button input[type=radio]:hover+span.dhcl-radio-content:before{border-color:var(--dhcl-radio-hover-color)}label.dhcl-radio-button input[type=radio]:focus:checked+span.dhcl-radio-content:before,label.dhcl-radio-button input[type=radio]:hover:checked+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-hover-color)}label.dhcl-radio-button input[type=radio]:disabled{cursor:not-allowed}label.dhcl-radio-button input[type=radio]:disabled+span.dhcl-radio-content:before{border-color:var(--dhcl-radio-disabled-color)}label.dhcl-radio-button input[type=radio]:disabled:checked+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-disabled-color)}.dhcl-radio-error label.dhcl-radio-button input:not(:disabled)+span.dhcl-radio-content:before,label.dhcl-radio-button.dhcl-radio-error input:not(:disabled)+span.dhcl-radio-content:before{border-color:var(--dhcl-radio-error-color)}.dhcl-radio-error label.dhcl-radio-button input:checked:not(:disabled)+span.dhcl-radio-content:before,label.dhcl-radio-button.dhcl-radio-error input:checked:not(:disabled)+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-error-color)}.dhcl-radio-content-font-weight-normal label.dhcl-radio-button span.dhcl-radio-content,label.dhcl-radio-button.dhcl-radio-content-font-weight-normal span.dhcl-radio-content{font-weight:400}.dhcl-radio-content-nowrap label.dhcl-radio-button,label.dhcl-radio-button.dhcl-radio-content-nowrap{white-space:nowrap}.dhcl-radio-content-wrap-indent label.dhcl-radio-button,label.dhcl-radio-button.dhcl-radio-content-wrap-indent{white-space:normal}.dhcl-radio-content-wrap-indent label.dhcl-radio-button span.dhcl-radio-content,label.dhcl-radio-button.dhcl-radio-content-wrap-indent span.dhcl-radio-content{display:block;text-indent:-35px;padding-left:35px}.dhcl-radio-layout-vertical label{display:block;margin-bottom:16px}.dhcl-radio-layout-vertical label:last-of-type{margin-bottom:0}.dhcl-radio-layout-horizontal-nowrap-justify-space-between{display:flex;flex-flow:row nowrap;justify-content:space-between}.dhcl-radio-layout-horizontal-nowrap-justify-space-between label{margin-right:40px}.dhcl-radio-layout-horizontal-nowrap-justify-space-between label:last-of-type{margin-right:0}.dhcl-radio-layout-horizontal-nowrap{display:flex;flex-flow:row nowrap;justify-content:flex-start}.dhcl-radio-layout-horizontal-nowrap label{margin-right:40px}.dhcl-radio-layout-horizontal-nowrap label:last-of-type{margin-right:0}.dhcl-radio-layout-horizontal-wrap{display:flex;flex-flow:row wrap;justify-content:flex-start;row-gap:16px}.dhcl-radio-layout-horizontal-wrap label{margin-right:40px}.dhcl-radio-layout-horizontal-wrap label:last-of-type{margin-right:0}label.dhcl-checkbox{--dhcl-checkbox-check-color: var(--dhcl-color-white);--dhcl-checkbox-background-color: var(--dhcl-color-white);--dhcl-checkbox-primary-color: var(--dhcl-color-secondary);--dhcl-checkbox-hover-color: var(--dhcl-color-secondary-darkest);--dhcl-checkbox-disabled-color: var(--dhcl-color-gray-light-medium);--dhcl-checkbox-label-color: var(--dhcl-color-gray-dark);--dhcl-checkbox-error-color: var(--dhcl-color-error)}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper{margin-right:5px;display:inline;position:relative;top:1px}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg{cursor:pointer;width:21px;vertical-align:top}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg rect,label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg path{transition:all .25s ease}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-primary-color);fill:var(--dhcl-checkbox-background-color)}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-primary-color)}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg path.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-check-color)}label.dhcl-checkbox input[type=checkbox]{opacity:0;position:absolute}label.dhcl-checkbox input[type=checkbox]:checked+div.dhcl-checkbox-svg-wrapper svg .dhcl-checkbox-svg-checked{opacity:1}label.dhcl-checkbox input[type=checkbox]:not(:checked)+div.dhcl-checkbox-svg-wrapper svg .dhcl-checkbox-svg-checked{opacity:0}label.dhcl-checkbox input[type=checkbox]:focus+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked,label.dhcl-checkbox input[type=checkbox]:hover+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-hover-color)}label.dhcl-checkbox input[type=checkbox]:focus+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked,label.dhcl-checkbox input[type=checkbox]:hover+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-hover-color)}label.dhcl-checkbox input[type=checkbox]:disabled+div.dhcl-checkbox-svg-wrapper svg{cursor:not-allowed}label.dhcl-checkbox input[type=checkbox]:disabled+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-disabled-color)}label.dhcl-checkbox input[type=checkbox]:disabled+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-disabled-color)}label.dhcl-checkbox span.dhcl-checkbox-content{font-size:14px;line-height:22px}.dhcl-checkbox-error label.dhcl-checkbox input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked,label.dhcl-checkbox.dhcl-checkbox-error input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-error-color)}.dhcl-checkbox-error label.dhcl-checkbox input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked,label.dhcl-checkbox.dhcl-checkbox-error input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-error-color)}.dhcl-checkbox-content-nowrap label.dhcl-checkbox,label.dhcl-checkbox.dhcl-checkbox-content-nowrap{white-space:nowrap}.dhcl-checkbox-content-wrap-indent label.dhcl-checkbox,label.dhcl-checkbox.dhcl-checkbox-content-wrap-indent{white-space:normal;display:flex}.dhcl-checkbox-content-wrap-indent label.dhcl-checkbox span.dhcl-checkbox-content,label.dhcl-checkbox.dhcl-checkbox-content-wrap-indent span.dhcl-checkbox-content{padding-left:5px}.dhcl-checkbox-layout-vertical label{display:block;margin-bottom:16px}.dhcl-checkbox-layout-vertical label:last-of-type{margin-bottom:0}.dhcl-checkbox-layout-horizontal-nowrap-justify-space-between{display:flex;flex-flow:row nowrap;justify-content:space-between}.dhcl-checkbox-layout-horizontal-nowrap-justify-space-between label{margin-right:40px}.dhcl-checkbox-layout-horizontal-nowrap-justify-space-between label:last-of-type{margin-right:0}.dhcl-checkbox-layout-horizontal-nowrap{display:flex;flex-flow:row nowrap;justify-content:flex-start}.dhcl-checkbox-layout-horizontal-nowrap label{margin-right:40px}.dhcl-checkbox-layout-horizontal-nowrap label:last-of-type{margin-right:0}.dhcl-checkbox-layout-horizontal-wrap{display:flex;flex-flow:row wrap;justify-content:flex-start;row-gap:16px}.dhcl-checkbox-layout-horizontal-wrap label{margin-right:40px}.dhcl-checkbox-layout-horizontal-wrap label:last-of-type{margin-right:0}.dhcl-dropdown-input{font-family:var(--dhcl-font-family);position:relative;font-size:.75rem;vertical-align:top;font-weight:400}.dhcl-dropdown-input .dhcl-dropdown{display:block;margin:8px 0}.dhcl-dropdown-input.no-label .dhcl-dropdown{margin-top:24px}.dhcl-dropdown-input .error-message{color:var(--dhcl-color-error);transform:translateY(-5px);display:block}.dhcl-dropdown-input.required:before{content:\\\"*\\\";color:var(--dhcl-color-error)}.dhcl-text-input{font-family:var(--dhcl-font-family);position:relative;font-size:.75rem;vertical-align:top;font-weight:400}.dhcl-text-input input[type=text],.dhcl-text-input input[type=email],.dhcl-text-input input[type=tel],.dhcl-text-input input[type=password],.dhcl-text-input input[type=number]{font-family:var(--dhcl-font-family);letter-spacing:.1px;transition:var(--dhcl-default-transition);border-radius:3px;box-sizing:border-box;border:1px solid var(--dhcl-color-gray-dark-medium);font-size:.875rem;line-height:1.25rem;color:var(--dhcl-color-gray-dark);padding:9px 15px;width:100%;margin:8px 0;outline:0;font-weight:700}.dhcl-text-input input[type=text]:focus,.dhcl-text-input input[type=text]:active,.dhcl-text-input input[type=text]:hover,.dhcl-text-input input[type=email]:focus,.dhcl-text-input input[type=email]:active,.dhcl-text-input input[type=email]:hover,.dhcl-text-input input[type=tel]:focus,.dhcl-text-input input[type=tel]:active,.dhcl-text-input input[type=tel]:hover,.dhcl-text-input input[type=password]:focus,.dhcl-text-input input[type=password]:active,.dhcl-text-input input[type=password]:hover,.dhcl-text-input input[type=number]:focus,.dhcl-text-input input[type=number]:active,.dhcl-text-input input[type=number]:hover{border:1px solid var(--dhcl-color-secondary)}.dhcl-text-input.no-label input[type=text],.dhcl-text-input.no-label input[type=email],.dhcl-text-input.no-label input[type=tel],.dhcl-text-input.no-label input[type=password],.dhcl-text-input.no-label input[type=number]{margin-top:24px}.dhcl-text-input-success input[type=text],.dhcl-text-input-success input[type=email],.dhcl-text-input-success input[type=tel],.dhcl-text-input-success input[type=password],.dhcl-text-input-success input[type=number]{padding-right:30px}.dhcl-text-input-error input[type=text],.dhcl-text-input-error input[type=email],.dhcl-text-input-error input[type=tel],.dhcl-text-input-error input[type=password],.dhcl-text-input-error input[type=number]{border:1px solid var(--dhcl-color-error);color:var(--dhcl-color-error);padding-right:30px}.dhcl-text-input-error input[type=text]:focus,.dhcl-text-input-error input[type=text]:active,.dhcl-text-input-error input[type=text]:hover,.dhcl-text-input-error input[type=email]:focus,.dhcl-text-input-error input[type=email]:active,.dhcl-text-input-error input[type=email]:hover,.dhcl-text-input-error input[type=tel]:focus,.dhcl-text-input-error input[type=tel]:active,.dhcl-text-input-error input[type=tel]:hover,.dhcl-text-input-error input[type=password]:focus,.dhcl-text-input-error input[type=password]:active,.dhcl-text-input-error input[type=password]:hover,.dhcl-text-input-error input[type=number]:focus,.dhcl-text-input-error input[type=number]:active,.dhcl-text-input-error input[type=number]:hover{border:1px solid var(--dhcl-color-error)}.dhcl-text-input-error .dhcl-text-input-icon-container svg path{stroke:var(--dhcl-color-error)}.dhcl-text-input.required:before{content:\\\"*\\\";color:var(--dhcl-color-error)}.dhcl-text-input-icon-container{position:relative;width:100%}.dhcl-text-input-icon-container svg{bottom:23px;position:absolute;right:10px}.dhcl-text-input-icon-container svg path{stroke:var(--dhcl-color-success)}.dhcl-text-input .error-message{color:var(--dhcl-color-error);transform:translateY(-5px);display:block}.dhcl-long-text-input{font-family:var(--dhcl-font-family);position:relative;font-size:.75rem;vertical-align:top;font-weight:400}.dhcl-long-text-input textarea{font-family:var(--dhcl-font-family);letter-spacing:.1px;transition:var(--dhcl-default-transition);border-radius:3px;box-sizing:border-box;border:1px solid var(--dhcl-color-gray-dark-medium);font-size:.875rem;line-height:1.25rem;color:var(--dhcl-color-gray-dark);width:100%;margin:8px 0;outline:0;font-weight:700;overflow:hidden;resize:none;padding:10px 15px;line-height:1.375rem}.dhcl-long-text-input textarea:focus,.dhcl-long-text-input textarea:active,.dhcl-long-text-input textarea:hover{border:1px solid var(--dhcl-color-secondary)}.dhcl-long-text-input.no-label textarea{margin-top:24px}.dhcl-long-text-input.required:before{content:\\\"*\\\";color:var(--dhcl-color-error)}.dhcl-long-text-input .dhcl-long-text-input-status{display:flex;justify-content:space-between}.dhcl-long-text-input .dhcl-long-text-input-status .error-message{color:var(--dhcl-color-error);transform:translateY(-5px);display:block}.dhcl-long-text-input .dhcl-long-text-input-status .dhcl-long-text-input-characters-remaining{font-size:.75rem;line-height:.75rem}.dhcl-modal{position:fixed;top:0;width:100%;height:100%;left:0;display:flex;align-items:center;justify-content:center;z-index:99999999;transition:var(--dhcl-default-transition)}.dhcl-modal.align-top{align-items:flex-start}@media (max-height: 420px){.dhcl-modal.align-top{align-items:center}}.dhcl-modal.align-top .dhcl-modal-scroller .dhcl-modal-content{margin-top:100px}@media (max-width: 420px){.dhcl-modal.align-top .dhcl-modal-scroller .dhcl-modal-content{margin-top:0}}@media (max-height: 420px){.dhcl-modal.align-top .dhcl-modal-scroller .dhcl-modal-content{margin-top:0}}@media (max-width: 420px){.dhcl-modal{display:block}}.dhcl-modal-overlay{background:#00000080;position:absolute;top:0;width:100%;height:100%}.dhcl-modal .dhcl-modal-scroller{max-height:100%;overflow:auto;position:relative;width:100%}.dhcl-modal .dhcl-modal-scroller-overlay{background:transparent;height:100%;width:100%;position:absolute;z-index:1}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content{position:relative;width:var(--modal-width);margin:0 auto;background:var(--dhcl-color-white);border-radius:12px;padding:15px;max-width:100%;box-sizing:border-box;display:block;border:none;box-shadow:var(--dhcl-default-box-shadow);z-index:2}@media (max-width: 420px){.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content{border-radius:0;width:100%;min-height:100vh;height:fit-content}@supports (-webkit-touch-callout: none){.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content{min-height:-webkit-fill-available}}}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn{background:transparent;border:none;cursor:pointer;position:absolute;right:2px;top:7px}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn:hover svg path,.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn:focus svg path{stroke:var(--dhcl-color-secondary-dark)}.dhcl-loading-spinner-container .dhcl-loading-spinner,.dhcl-common-spirit .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-virginia-mason .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-neutral .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-rainier-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-chi-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{display:none}.dhcl-common-spirit .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-virginia-mason .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-neutral .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-rainier-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-chi-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner{display:block}html,.dhcl-dignity-health,.dhcl-common-spirit,.dhcl-chi-health{--dhcl-header-color: var(--dhcl-color-gray-dark);--dhcl-font-family: trade-gothic-next, \\\"Trade Gothic Next LT Pro\\\", \\\"myriad-pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif;--dhcl-base-font-size: 16px;font-family:var(--dhcl-font-family);font-size:var(--dhcl-base-font-size);line-height:var(--dhcl-base-font-size)}html h1,html h2,html h3,html h4,html h5,html a,html p,html li,html label,html button,html span,.dhcl-dignity-health h1,.dhcl-dignity-health h2,.dhcl-dignity-health h3,.dhcl-dignity-health h4,.dhcl-dignity-health h5,.dhcl-dignity-health a,.dhcl-dignity-health p,.dhcl-dignity-health li,.dhcl-dignity-health label,.dhcl-dignity-health button,.dhcl-dignity-health span,.dhcl-common-spirit h1,.dhcl-common-spirit h2,.dhcl-common-spirit h3,.dhcl-common-spirit h4,.dhcl-common-spirit h5,.dhcl-common-spirit a,.dhcl-common-spirit p,.dhcl-common-spirit li,.dhcl-common-spirit label,.dhcl-common-spirit button,.dhcl-common-spirit span,.dhcl-chi-health h1,.dhcl-chi-health h2,.dhcl-chi-health h3,.dhcl-chi-health h4,.dhcl-chi-health h5,.dhcl-chi-health a,.dhcl-chi-health p,.dhcl-chi-health li,.dhcl-chi-health label,.dhcl-chi-health button,.dhcl-chi-health span{font-family:var(--dhcl-font-family)}.no-margin{margin:0}h1,.h1{color:var(--dhcl-header-color);font-style:normal;font-weight:700;font-size:3rem;font-family:var(--dhcl-font-family);--dhcl-header-color: var(--dhcl-color-primary);line-height:3.5rem;letter-spacing:-1.7999999523px;margin:0}h1.regular,.h1.regular{font-weight:400}@media (max-width: 768px){h1,.h1{font-size:1.875rem;line-height:2.125rem;letter-spacing:-.5px}}@media (max-width: 420px){h1,.h1{letter-spacing:-1px}}h1.large,.h1.large{color:var(--dhcl-header-color);font-size:5.625rem;line-height:5.75rem;letter-spacing:-1px}@media (max-width: 768px){h1.large,.h1.large{font-size:4.375rem;line-height:4.5rem;letter-spacing:-3.1px}}@media (max-width: 420px){h1.large,.h1.large{font-size:2.5rem;line-height:2.625rem;letter-spacing:-1px}}h2,.h2{color:var(--dhcl-header-color);font-style:normal;font-weight:700;font-size:1.625rem;font-family:var(--dhcl-font-family);line-height:2rem;letter-spacing:-.25px}h2.regular,.h2.regular{font-weight:400}@media (max-width: 768px){h2,.h2{font-size:1.375rem;line-height:1.75rem;letter-spacing:-.1px}}h3,.h3{color:var(--dhcl-header-color);font-style:normal;font-weight:700;font-size:1.25rem;font-family:var(--dhcl-font-family);line-height:1.75rem;letter-spacing:-.5px}h3.regular,.h3.regular{font-weight:400}@media (max-width: 420px){h3,.h3{font-size:1.125rem;line-height:1.625rem;letter-spacing:-.1px}}p,.p{font-style:normal;font-weight:400;font-size:1rem;line-height:1.5rem;letter-spacing:.1px;font-family:var(--dhcl-font-family)}@media (max-width: 768px){p,.p{letter-spacing:.09px}}p.p2,.p.p2{font-size:.875rem;line-height:1.375rem;letter-spacing:.1px}p.p3,.p.p3{font-size:.75rem;line-height:1.375rem}.dhcl-dignity-health{--dhcl-font-family: trade-gothic-next, \\\"Trade Gothic Next LT Pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif}.dhcl-chi-health{--dhcl-font-family: \\\"myriad-pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif}.dhcl-common-spirit{--dhcl-font-family: trade-gothic-next, \\\"Trade Gothic Next LT Pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif}.dhcl-tabs-wrapper{display:flex;justify-content:center;font-family:var(--dhcl-font-family);font-weight:700}.dhcl-tabs-wrapper>div{background-color:var(--dhcl-color-white);width:25%;margin:10px;text-align:center;line-height:45px;font-size:100%;color:var(--dhcl-color-secondary);cursor:pointer}.dhcl-tabs-wrapper .active{border-bottom:3px solid var(--dhcl-color-primary);color:var(--dhcl-color-gray-dark)}.dhcl-tabs-wrapper .hoverstate{color:var(--dhcl-color-secondary-darkest)}@media (max-width: 768px){.dhcl-tabs-wrapper .annotation{display:none}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TabsComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-tabs', template: \"<div class=\\\"dhcl-tabs-wrapper\\\">\\r\\n <div *ngFor=\\\"let tab of tabsOptions; let i = index\\\" [ngClass]=\\\"tab.active ? 'active' : ''\\\" (click)=\\\"switchTabs(tab.id)\\\" (keyup.enter)=\\\"switchTabs(tab.id)\\\" tabindex=\\\"0\\\">\\r\\n <div (mouseenter)=\\\"onHover(i)\\\" (mouseleave)=\\\"onHover(-1)\\\">\\r\\n <div [ngClass]=\\\"i == hoverIndex ? 'hoverstate' : ''\\\">\\r\\n {{ tab.title }} <span class=\\\"annotation\\\">{{ formatAnnotation(tab.annotation) }}</span>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\"html{--dhcl-default-box-shadow: 0px 2px 8px rgba(77, 82, 90, .3);--dhcl-default-transition: all .15s ease-in-out}.dhcl-hide-scroll{overflow:hidden}.dhcl-visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;left:-1000%}h2,h3,h4,h5,p,li,label{color:var(--dhcl-color-gray-dark)}html,.dhcl-dignity-health{--dhcl-color-primary-light: #fbe3d2;--dhcl-color-primary: #ed711c;--dhcl-color-primary-dark: #c85200;--dhcl-color-primary-darkest: #c85200;--dhcl-color-secondary-light: #e6f5ff;--dhcl-color-secondary: #0071c2;--dhcl-color-secondary-dark: #005591;--dhcl-color-secondary-darkest: #005591;--dhcl-color-gray-dark: #4d525a;--dhcl-color-gray-dark-medium: #7f736c;--dhcl-color-gray-light-medium: #e3e1dc;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-white: #ffffff;--dhcl-color-black: #000000;--dhcl-color-success: #008000;--dhcl-color-error: #bb0000;--dhcl-color-warning: #ffe6a4;--dhcl-color-info: #e6f5ff;--dhcl-color-yellow: #f2a900;--dhcl-color-suggestion-bar: #C85200}.dhcl-chi-health{--dhcl-color-primary-light: #dde6f8;--dhcl-color-primary: #24509a;--dhcl-color-primary-dark: #1e487a;--dhcl-color-primary-darkest: #1e487a;--dhcl-color-secondary-light: #e8f6f7;--dhcl-color-secondary: #007785;--dhcl-color-secondary-dark: #00606b;--dhcl-color-secondary-darkest: #00606b;--dhcl-color-gray-dark: #53565a;--dhcl-color-gray-dark-medium: #76777a;--dhcl-color-gray-light-medium: #d9d8d6;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #1E487A}.dhcl-common-spirit{--dhcl-color-primary-light: #f3e2ed;--dhcl-color-primary: #83336e;--dhcl-color-primary-dark: #6a2959;--dhcl-color-primary-darkest: #6a2959;--dhcl-color-secondary-light: #ebe3f2;--dhcl-color-secondary: #7060a7;--dhcl-color-secondary-dark: #494372;--dhcl-color-secondary-darkest: #494372;--dhcl-color-gray-dark: #53565a;--dhcl-color-gray-dark-medium: #767a7d;--dhcl-color-gray-light-medium: #cacdce;--dhcl-color-gray-light: #f2f3f7;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #71234F}.dhcl-virginia-mason{--dhcl-color-primary-light: #d9f0cc;--dhcl-color-primary: #55a63a;--dhcl-color-primary-dark: #44842e;--dhcl-color-primary-darkest: #44842e;--dhcl-color-secondary-light: #e6f3f9;--dhcl-color-secondary: #0071c2;--dhcl-color-secondary-dark: #115d7e;--dhcl-color-secondary-darkest: #115d7e;--dhcl-color-gray-dark: #014765;--dhcl-color-gray-dark-medium: #727779;--dhcl-color-gray-light-medium: #d7dada;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #44842E}.dhcl-rainier-health{--dhcl-color-primary-light: #E8F4DC;--dhcl-color-primary: #6FA333;--dhcl-color-primary-dark: #578028;--dhcl-color-primary-darkest: #578028;--dhcl-color-secondary-light: #B8EAFF;--dhcl-color-secondary: #0076A8;--dhcl-color-secondary-dark: #005D85;--dhcl-color-secondary-darkest: #005D85;--dhcl-color-gray-dark: #03374d;--dhcl-color-gray-dark-medium: #707070;--dhcl-color-gray-light-medium: #DEE1E3;--dhcl-color-gray-light: #f5f5f5;--dhcl-color-gray-light-warm-1: var(--dhcl-color-gray-dark-medium);--dhcl-color-gray-light-warm-2: var(--dhcl-color-gray-light-medium);--dhcl-color-gray-light-warm-3: var(--dhcl-color-gray-light-medium);--dhcl-color-suggestion-bar: #578028}.dhcl-accordion-stepper-container{border-bottom:1px solid var(--dhcl-color-gray-light-medium)}html{--dhcl-button-color: var(--dhcl-color-secondary);--dhcl-button-color-hover: var(--dhcl-color-secondary-darkest);--dhcl-button-disabled: var(--dhcl-color-gray-light-medium);--dhcl-button-text-color: var(--dhcl-color-white);--dhcl-button-line-height-sm: 36px;--dhcl-button-line-height-md: 46px;--dhcl-button-line-height-lg: 56px}button.dhcl-button{height:60px;line-height:var(--dhcl-button-line-height-lg);padding:0 60px;box-sizing:border-box;font-style:normal;font-weight:700;font-size:1rem;cursor:pointer;outline:none;border-radius:45px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%;transition:var(--dhcl-default-transition)}button.dhcl-button-primary{background:var(--dhcl-button-color);border:2px solid var(--dhcl-button-color);color:var(--dhcl-button-text-color);font-family:var(--dhcl-font-family);line-height:var(--dhcl-button-line-height)}button.dhcl-button-primary:active,button.dhcl-button-primary:focus,button.dhcl-button-primary:hover{background:var(--dhcl-button-color-hover);border:2px solid var(--dhcl-button-color-hover);color:var(--dhcl-button-text-color)}button.dhcl-button-primary:disabled{color:var(--dhcl-button-text-color);background:var(--dhcl-button-disabled);border:var(--dhcl-button-disabled);cursor:no-drop}button.dhcl-button-primary.dhcl-button-arrow{padding:0 100px 0 20px;position:relative}button.dhcl-button-primary.dhcl-button-arrow svg{position:absolute;top:22.5px;right:15px}button.dhcl-button-primary.dhcl-button-arrow svg path{stroke:var(--dhcl-button-text-color)}button.dhcl-button-secondary{background:var(--dhcl-button-text-color);border:2px solid var(--dhcl-button-color);color:var(--dhcl-button-color);font-family:var(--dhcl-font-family);line-height:var(--dhcl-button-line-height)}button.dhcl-button-secondary:active,button.dhcl-button-secondary:focus,button.dhcl-button-secondary:hover{background:var(--dhcl-button-text-color);border:2px solid var(--dhcl-button-color-hover);color:var(--dhcl-button-color-hover)}button.dhcl-button-secondary:disabled{color:var(--dhcl-button-text-color);background:var(--dhcl-button-disabled);border:var(--dhcl-button-disabled);cursor:no-drop}button.dhcl-button-secondary.dhcl-button-arrow{padding:0 100px 0 20px;position:relative}button.dhcl-button-secondary.dhcl-button-arrow svg{position:absolute;top:22.5px;right:15px}button.dhcl-button-secondary.dhcl-button-arrow svg path{stroke:var(--dhcl-button-text-color)}button.dhcl-button-secondary.dhcl-button-arrow svg path{stroke:var(--dhcl-button-color)}button.dhcl-button-secondary.dhcl-button-arrow:active svg path,button.dhcl-button-secondary.dhcl-button-arrow:focus svg path,button.dhcl-button-secondary.dhcl-button-arrow:hover svg path{stroke:var(--dhcl-button-color-hover)}button.dhcl-button-secondary.dhcl-button-arrow:disabled svg path{stroke:var(--dhcl-button-text-color)}button.dhcl-button-medium{height:50px;line-height:var(--dhcl-button-line-height-md);padding:0 50px;font-size:.875rem}button.dhcl-button-medium.dhcl-button-arrow{padding:0 80px 0 20px}button.dhcl-button-medium.dhcl-button-arrow svg{top:17.5px}button.dhcl-button-small{height:40px;line-height:var(--dhcl-button-line-height-sm);padding:0 35px;font-size:.875rem}button.dhcl-button-small.dhcl-button-arrow{padding:0 50px 0 20px;position:relative}button.dhcl-button-small.dhcl-button-arrow svg{top:12.5px}label.dhcl-radio-button{--dhcl-radio-background-color: var(--dhcl-color-white);--dhcl-radio-primary-color: var(--dhcl-color-secondary);--dhcl-radio-hover-color: var(--dhcl-color-secondary-darkest);--dhcl-radio-disabled-color: var(--dhcl-color-gray-light-medium);--dhcl-radio-label-color: var(--dhcl-color-gray-dark);--dhcl-radio-error-color: var(--dhcl-color-error);line-height:22px;font-size:14px;font-weight:700;color:var(--dhcl-radio-label-color)}label.dhcl-radio-button input[type=radio]{position:absolute;opacity:0;cursor:pointer;transform:scale(2);margin:6px}label.dhcl-radio-button input[type=radio]+span.dhcl-radio-content:before{content:\\\"\\\";background-color:var(--dhcl-radio-background-color);box-shadow:inset 0 0 0 4.2px var(--dhcl-radio-background-color);border:2px solid var(--dhcl-radio-primary-color);border-radius:100%;display:inline-table;width:20px;height:20px;margin-right:10px;vertical-align:top;text-align:center;transition:all .25s ease;outline:none}label.dhcl-radio-button input[type=radio]+span.dhcl-radio-content:empty:before{margin-right:0}label.dhcl-radio-button input[type=radio]:checked:not(:disabled)+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-primary-color)}label.dhcl-radio-button input[type=radio]:focus+span.dhcl-radio-content:before,label.dhcl-radio-button input[type=radio]:hover+span.dhcl-radio-content:before{border-color:var(--dhcl-radio-hover-color)}label.dhcl-radio-button input[type=radio]:focus:checked+span.dhcl-radio-content:before,label.dhcl-radio-button input[type=radio]:hover:checked+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-hover-color)}label.dhcl-radio-button input[type=radio]:disabled{cursor:not-allowed}label.dhcl-radio-button input[type=radio]:disabled+span.dhcl-radio-content:before{border-color:var(--dhcl-radio-disabled-color)}label.dhcl-radio-button input[type=radio]:disabled:checked+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-disabled-color)}.dhcl-radio-error label.dhcl-radio-button input:not(:disabled)+span.dhcl-radio-content:before,label.dhcl-radio-button.dhcl-radio-error input:not(:disabled)+span.dhcl-radio-content:before{border-color:var(--dhcl-radio-error-color)}.dhcl-radio-error label.dhcl-radio-button input:checked:not(:disabled)+span.dhcl-radio-content:before,label.dhcl-radio-button.dhcl-radio-error input:checked:not(:disabled)+span.dhcl-radio-content:before{background-color:var(--dhcl-radio-error-color)}.dhcl-radio-content-font-weight-normal label.dhcl-radio-button span.dhcl-radio-content,label.dhcl-radio-button.dhcl-radio-content-font-weight-normal span.dhcl-radio-content{font-weight:400}.dhcl-radio-content-nowrap label.dhcl-radio-button,label.dhcl-radio-button.dhcl-radio-content-nowrap{white-space:nowrap}.dhcl-radio-content-wrap-indent label.dhcl-radio-button,label.dhcl-radio-button.dhcl-radio-content-wrap-indent{white-space:normal}.dhcl-radio-content-wrap-indent label.dhcl-radio-button span.dhcl-radio-content,label.dhcl-radio-button.dhcl-radio-content-wrap-indent span.dhcl-radio-content{display:block;text-indent:-35px;padding-left:35px}.dhcl-radio-layout-vertical label{display:block;margin-bottom:16px}.dhcl-radio-layout-vertical label:last-of-type{margin-bottom:0}.dhcl-radio-layout-horizontal-nowrap-justify-space-between{display:flex;flex-flow:row nowrap;justify-content:space-between}.dhcl-radio-layout-horizontal-nowrap-justify-space-between label{margin-right:40px}.dhcl-radio-layout-horizontal-nowrap-justify-space-between label:last-of-type{margin-right:0}.dhcl-radio-layout-horizontal-nowrap{display:flex;flex-flow:row nowrap;justify-content:flex-start}.dhcl-radio-layout-horizontal-nowrap label{margin-right:40px}.dhcl-radio-layout-horizontal-nowrap label:last-of-type{margin-right:0}.dhcl-radio-layout-horizontal-wrap{display:flex;flex-flow:row wrap;justify-content:flex-start;row-gap:16px}.dhcl-radio-layout-horizontal-wrap label{margin-right:40px}.dhcl-radio-layout-horizontal-wrap label:last-of-type{margin-right:0}label.dhcl-checkbox{--dhcl-checkbox-check-color: var(--dhcl-color-white);--dhcl-checkbox-background-color: var(--dhcl-color-white);--dhcl-checkbox-primary-color: var(--dhcl-color-secondary);--dhcl-checkbox-hover-color: var(--dhcl-color-secondary-darkest);--dhcl-checkbox-disabled-color: var(--dhcl-color-gray-light-medium);--dhcl-checkbox-label-color: var(--dhcl-color-gray-dark);--dhcl-checkbox-error-color: var(--dhcl-color-error)}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper{margin-right:5px;display:inline;position:relative;top:1px}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg{cursor:pointer;width:21px;vertical-align:top}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg rect,label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg path{transition:all .25s ease}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-primary-color);fill:var(--dhcl-checkbox-background-color)}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-primary-color)}label.dhcl-checkbox div.dhcl-checkbox-svg-wrapper svg path.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-check-color)}label.dhcl-checkbox input[type=checkbox]{opacity:0;position:absolute}label.dhcl-checkbox input[type=checkbox]:checked+div.dhcl-checkbox-svg-wrapper svg .dhcl-checkbox-svg-checked{opacity:1}label.dhcl-checkbox input[type=checkbox]:not(:checked)+div.dhcl-checkbox-svg-wrapper svg .dhcl-checkbox-svg-checked{opacity:0}label.dhcl-checkbox input[type=checkbox]:focus+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked,label.dhcl-checkbox input[type=checkbox]:hover+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-hover-color)}label.dhcl-checkbox input[type=checkbox]:focus+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked,label.dhcl-checkbox input[type=checkbox]:hover+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-hover-color)}label.dhcl-checkbox input[type=checkbox]:disabled+div.dhcl-checkbox-svg-wrapper svg{cursor:not-allowed}label.dhcl-checkbox input[type=checkbox]:disabled+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-disabled-color)}label.dhcl-checkbox input[type=checkbox]:disabled+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-disabled-color)}label.dhcl-checkbox span.dhcl-checkbox-content{font-size:14px;line-height:22px}.dhcl-checkbox-error label.dhcl-checkbox input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked,label.dhcl-checkbox.dhcl-checkbox-error input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-unchecked{stroke:var(--dhcl-checkbox-error-color)}.dhcl-checkbox-error label.dhcl-checkbox input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked,label.dhcl-checkbox.dhcl-checkbox-error input:not(:disabled)+div.dhcl-checkbox-svg-wrapper svg rect.dhcl-checkbox-svg-checked{fill:var(--dhcl-checkbox-error-color)}.dhcl-checkbox-content-nowrap label.dhcl-checkbox,label.dhcl-checkbox.dhcl-checkbox-content-nowrap{white-space:nowrap}.dhcl-checkbox-content-wrap-indent label.dhcl-checkbox,label.dhcl-checkbox.dhcl-checkbox-content-wrap-indent{white-space:normal;display:flex}.dhcl-checkbox-content-wrap-indent label.dhcl-checkbox span.dhcl-checkbox-content,label.dhcl-checkbox.dhcl-checkbox-content-wrap-indent span.dhcl-checkbox-content{padding-left:5px}.dhcl-checkbox-layout-vertical label{display:block;margin-bottom:16px}.dhcl-checkbox-layout-vertical label:last-of-type{margin-bottom:0}.dhcl-checkbox-layout-horizontal-nowrap-justify-space-between{display:flex;flex-flow:row nowrap;justify-content:space-between}.dhcl-checkbox-layout-horizontal-nowrap-justify-space-between label{margin-right:40px}.dhcl-checkbox-layout-horizontal-nowrap-justify-space-between label:last-of-type{margin-right:0}.dhcl-checkbox-layout-horizontal-nowrap{display:flex;flex-flow:row nowrap;justify-content:flex-start}.dhcl-checkbox-layout-horizontal-nowrap label{margin-right:40px}.dhcl-checkbox-layout-horizontal-nowrap label:last-of-type{margin-right:0}.dhcl-checkbox-layout-horizontal-wrap{display:flex;flex-flow:row wrap;justify-content:flex-start;row-gap:16px}.dhcl-checkbox-layout-horizontal-wrap label{margin-right:40px}.dhcl-checkbox-layout-horizontal-wrap label:last-of-type{margin-right:0}.dhcl-dropdown-input{font-family:var(--dhcl-font-family);position:relative;font-size:.75rem;vertical-align:top;font-weight:400}.dhcl-dropdown-input .dhcl-dropdown{display:block;margin:8px 0}.dhcl-dropdown-input.no-label .dhcl-dropdown{margin-top:24px}.dhcl-dropdown-input .error-message{color:var(--dhcl-color-error);transform:translateY(-5px);display:block}.dhcl-dropdown-input.required:before{content:\\\"*\\\";color:var(--dhcl-color-error)}.dhcl-text-input{font-family:var(--dhcl-font-family);position:relative;font-size:.75rem;vertical-align:top;font-weight:400}.dhcl-text-input input[type=text],.dhcl-text-input input[type=email],.dhcl-text-input input[type=tel],.dhcl-text-input input[type=password],.dhcl-text-input input[type=number]{font-family:var(--dhcl-font-family);letter-spacing:.1px;transition:var(--dhcl-default-transition);border-radius:3px;box-sizing:border-box;border:1px solid var(--dhcl-color-gray-dark-medium);font-size:.875rem;line-height:1.25rem;color:var(--dhcl-color-gray-dark);padding:9px 15px;width:100%;margin:8px 0;outline:0;font-weight:700}.dhcl-text-input input[type=text]:focus,.dhcl-text-input input[type=text]:active,.dhcl-text-input input[type=text]:hover,.dhcl-text-input input[type=email]:focus,.dhcl-text-input input[type=email]:active,.dhcl-text-input input[type=email]:hover,.dhcl-text-input input[type=tel]:focus,.dhcl-text-input input[type=tel]:active,.dhcl-text-input input[type=tel]:hover,.dhcl-text-input input[type=password]:focus,.dhcl-text-input input[type=password]:active,.dhcl-text-input input[type=password]:hover,.dhcl-text-input input[type=number]:focus,.dhcl-text-input input[type=number]:active,.dhcl-text-input input[type=number]:hover{border:1px solid var(--dhcl-color-secondary)}.dhcl-text-input.no-label input[type=text],.dhcl-text-input.no-label input[type=email],.dhcl-text-input.no-label input[type=tel],.dhcl-text-input.no-label input[type=password],.dhcl-text-input.no-label input[type=number]{margin-top:24px}.dhcl-text-input-success input[type=text],.dhcl-text-input-success input[type=email],.dhcl-text-input-success input[type=tel],.dhcl-text-input-success input[type=password],.dhcl-text-input-success input[type=number]{padding-right:30px}.dhcl-text-input-error input[type=text],.dhcl-text-input-error input[type=email],.dhcl-text-input-error input[type=tel],.dhcl-text-input-error input[type=password],.dhcl-text-input-error input[type=number]{border:1px solid var(--dhcl-color-error);color:var(--dhcl-color-error);padding-right:30px}.dhcl-text-input-error input[type=text]:focus,.dhcl-text-input-error input[type=text]:active,.dhcl-text-input-error input[type=text]:hover,.dhcl-text-input-error input[type=email]:focus,.dhcl-text-input-error input[type=email]:active,.dhcl-text-input-error input[type=email]:hover,.dhcl-text-input-error input[type=tel]:focus,.dhcl-text-input-error input[type=tel]:active,.dhcl-text-input-error input[type=tel]:hover,.dhcl-text-input-error input[type=password]:focus,.dhcl-text-input-error input[type=password]:active,.dhcl-text-input-error input[type=password]:hover,.dhcl-text-input-error input[type=number]:focus,.dhcl-text-input-error input[type=number]:active,.dhcl-text-input-error input[type=number]:hover{border:1px solid var(--dhcl-color-error)}.dhcl-text-input-error .dhcl-text-input-icon-container svg path{stroke:var(--dhcl-color-error)}.dhcl-text-input.required:before{content:\\\"*\\\";color:var(--dhcl-color-error)}.dhcl-text-input-icon-container{position:relative;width:100%}.dhcl-text-input-icon-container svg{bottom:23px;position:absolute;right:10px}.dhcl-text-input-icon-container svg path{stroke:var(--dhcl-color-success)}.dhcl-text-input .error-message{color:var(--dhcl-color-error);transform:translateY(-5px);display:block}.dhcl-long-text-input{font-family:var(--dhcl-font-family);position:relative;font-size:.75rem;vertical-align:top;font-weight:400}.dhcl-long-text-input textarea{font-family:var(--dhcl-font-family);letter-spacing:.1px;transition:var(--dhcl-default-transition);border-radius:3px;box-sizing:border-box;border:1px solid var(--dhcl-color-gray-dark-medium);font-size:.875rem;line-height:1.25rem;color:var(--dhcl-color-gray-dark);width:100%;margin:8px 0;outline:0;font-weight:700;overflow:hidden;resize:none;padding:10px 15px;line-height:1.375rem}.dhcl-long-text-input textarea:focus,.dhcl-long-text-input textarea:active,.dhcl-long-text-input textarea:hover{border:1px solid var(--dhcl-color-secondary)}.dhcl-long-text-input.no-label textarea{margin-top:24px}.dhcl-long-text-input.required:before{content:\\\"*\\\";color:var(--dhcl-color-error)}.dhcl-long-text-input .dhcl-long-text-input-status{display:flex;justify-content:space-between}.dhcl-long-text-input .dhcl-long-text-input-status .error-message{color:var(--dhcl-color-error);transform:translateY(-5px);display:block}.dhcl-long-text-input .dhcl-long-text-input-status .dhcl-long-text-input-characters-remaining{font-size:.75rem;line-height:.75rem}.dhcl-modal{position:fixed;top:0;width:100%;height:100%;left:0;display:flex;align-items:center;justify-content:center;z-index:99999999;transition:var(--dhcl-default-transition)}.dhcl-modal.align-top{align-items:flex-start}@media (max-height: 420px){.dhcl-modal.align-top{align-items:center}}.dhcl-modal.align-top .dhcl-modal-scroller .dhcl-modal-content{margin-top:100px}@media (max-width: 420px){.dhcl-modal.align-top .dhcl-modal-scroller .dhcl-modal-content{margin-top:0}}@media (max-height: 420px){.dhcl-modal.align-top .dhcl-modal-scroller .dhcl-modal-content{margin-top:0}}@media (max-width: 420px){.dhcl-modal{display:block}}.dhcl-modal-overlay{background:#00000080;position:absolute;top:0;width:100%;height:100%}.dhcl-modal .dhcl-modal-scroller{max-height:100%;overflow:auto;position:relative;width:100%}.dhcl-modal .dhcl-modal-scroller-overlay{background:transparent;height:100%;width:100%;position:absolute;z-index:1}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content{position:relative;width:var(--modal-width);margin:0 auto;background:var(--dhcl-color-white);border-radius:12px;padding:15px;max-width:100%;box-sizing:border-box;display:block;border:none;box-shadow:var(--dhcl-default-box-shadow);z-index:2}@media (max-width: 420px){.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content{border-radius:0;width:100%;min-height:100vh;height:fit-content}@supports (-webkit-touch-callout: none){.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content{min-height:-webkit-fill-available}}}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn{background:transparent;border:none;cursor:pointer;position:absolute;right:2px;top:7px}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn svg path{stroke:var(--dhcl-color-secondary);transition:var(--dhcl-default-transition)}.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn:hover svg path,.dhcl-modal .dhcl-modal-scroller .dhcl-modal-content .close-btn:focus svg path{stroke:var(--dhcl-color-secondary-dark)}.dhcl-loading-spinner-container .dhcl-loading-spinner,.dhcl-common-spirit .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-virginia-mason .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-neutral .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-rainier-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo,.dhcl-chi-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner-logo{display:none}.dhcl-common-spirit .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-virginia-mason .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-neutral .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-rainier-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner,.dhcl-chi-health .dhcl-loading-spinner-container .dhcl-showbox .dhcl-loading-spinner{display:block}html,.dhcl-dignity-health,.dhcl-common-spirit,.dhcl-chi-health{--dhcl-header-color: var(--dhcl-color-gray-dark);--dhcl-font-family: trade-gothic-next, \\\"Trade Gothic Next LT Pro\\\", \\\"myriad-pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif;--dhcl-base-font-size: 16px;font-family:var(--dhcl-font-family);font-size:var(--dhcl-base-font-size);line-height:var(--dhcl-base-font-size)}html h1,html h2,html h3,html h4,html h5,html a,html p,html li,html label,html button,html span,.dhcl-dignity-health h1,.dhcl-dignity-health h2,.dhcl-dignity-health h3,.dhcl-dignity-health h4,.dhcl-dignity-health h5,.dhcl-dignity-health a,.dhcl-dignity-health p,.dhcl-dignity-health li,.dhcl-dignity-health label,.dhcl-dignity-health button,.dhcl-dignity-health span,.dhcl-common-spirit h1,.dhcl-common-spirit h2,.dhcl-common-spirit h3,.dhcl-common-spirit h4,.dhcl-common-spirit h5,.dhcl-common-spirit a,.dhcl-common-spirit p,.dhcl-common-spirit li,.dhcl-common-spirit label,.dhcl-common-spirit button,.dhcl-common-spirit span,.dhcl-chi-health h1,.dhcl-chi-health h2,.dhcl-chi-health h3,.dhcl-chi-health h4,.dhcl-chi-health h5,.dhcl-chi-health a,.dhcl-chi-health p,.dhcl-chi-health li,.dhcl-chi-health label,.dhcl-chi-health button,.dhcl-chi-health span{font-family:var(--dhcl-font-family)}.no-margin{margin:0}h1,.h1{color:var(--dhcl-header-color);font-style:normal;font-weight:700;font-size:3rem;font-family:var(--dhcl-font-family);--dhcl-header-color: var(--dhcl-color-primary);line-height:3.5rem;letter-spacing:-1.7999999523px;margin:0}h1.regular,.h1.regular{font-weight:400}@media (max-width: 768px){h1,.h1{font-size:1.875rem;line-height:2.125rem;letter-spacing:-.5px}}@media (max-width: 420px){h1,.h1{letter-spacing:-1px}}h1.large,.h1.large{color:var(--dhcl-header-color);font-size:5.625rem;line-height:5.75rem;letter-spacing:-1px}@media (max-width: 768px){h1.large,.h1.large{font-size:4.375rem;line-height:4.5rem;letter-spacing:-3.1px}}@media (max-width: 420px){h1.large,.h1.large{font-size:2.5rem;line-height:2.625rem;letter-spacing:-1px}}h2,.h2{color:var(--dhcl-header-color);font-style:normal;font-weight:700;font-size:1.625rem;font-family:var(--dhcl-font-family);line-height:2rem;letter-spacing:-.25px}h2.regular,.h2.regular{font-weight:400}@media (max-width: 768px){h2,.h2{font-size:1.375rem;line-height:1.75rem;letter-spacing:-.1px}}h3,.h3{color:var(--dhcl-header-color);font-style:normal;font-weight:700;font-size:1.25rem;font-family:var(--dhcl-font-family);line-height:1.75rem;letter-spacing:-.5px}h3.regular,.h3.regular{font-weight:400}@media (max-width: 420px){h3,.h3{font-size:1.125rem;line-height:1.625rem;letter-spacing:-.1px}}p,.p{font-style:normal;font-weight:400;font-size:1rem;line-height:1.5rem;letter-spacing:.1px;font-family:var(--dhcl-font-family)}@media (max-width: 768px){p,.p{letter-spacing:.09px}}p.p2,.p.p2{font-size:.875rem;line-height:1.375rem;letter-spacing:.1px}p.p3,.p.p3{font-size:.75rem;line-height:1.375rem}.dhcl-dignity-health{--dhcl-font-family: trade-gothic-next, \\\"Trade Gothic Next LT Pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif}.dhcl-chi-health{--dhcl-font-family: \\\"myriad-pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif}.dhcl-common-spirit{--dhcl-font-family: trade-gothic-next, \\\"Trade Gothic Next LT Pro\\\", Arial, \\\"Helvetica Neue\\\", Helvetica, sans-serif}.dhcl-tabs-wrapper{display:flex;justify-content:center;font-family:var(--dhcl-font-family);font-weight:700}.dhcl-tabs-wrapper>div{background-color:var(--dhcl-color-white);width:25%;margin:10px;text-align:center;line-height:45px;font-size:100%;color:var(--dhcl-color-secondary);cursor:pointer}.dhcl-tabs-wrapper .active{border-bottom:3px solid var(--dhcl-color-primary);color:var(--dhcl-color-gray-dark)}.dhcl-tabs-wrapper .hoverstate{color:var(--dhcl-color-secondary-darkest)}@media (max-width: 768px){.dhcl-tabs-wrapper .annotation{display:none}}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { tabsOptions: [{\n type: Input\n }], annotationFormat: [{\n type: Input\n }], selectionChange: [{\n type: Output\n }] } });\n\nclass TabsModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: TabsModule, declarations: [TabsComponent], imports: [CommonModule], exports: [TabsComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TabsModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TabsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [TabsComponent],\n imports: [CommonModule],\n exports: [TabsComponent]\n }]\n }] });\n\nclass TooltipComponent {\n tooltipContainer;\n tooltipContent;\n tooltipArrowTop;\n tooltipArrowBottom;\n showTooltip;\n alignTop = true;\n alignLeft = true;\n visible = false;\n ratingInfo = 'More information about star rating';\n showOnHover = false;\n onClick(event) {\n if (!this.tooltipContainer?.nativeElement?.contains(event.target)) {\n this.showTooltip = false;\n this.visible = false;\n this.alignTop = true;\n this.alignLeft = true;\n }\n }\n onResize() {\n this.showTooltip = false;\n this.visible = false;\n this.alignTop = true;\n this.alignLeft = true;\n }\n toggleTooltip(event) {\n this.showTooltip = !this.showTooltip;\n event.stopPropagation();\n if (this.showTooltip) {\n this.calculateAlignment();\n }\n else {\n this.visible = false;\n this.alignTop = true;\n this.alignLeft = true;\n }\n }\n keyDownHandler(keyEvent) {\n const keyCode = keyEvent.key.toLowerCase();\n if (keyCode === 'tab') {\n this.showTooltip = false;\n }\n else if (keyCode === 'enter' || keyCode === 'space' || keyCode === ' ') {\n this.toggleTooltip(keyEvent);\n }\n }\n calculateAlignment() {\n window.setTimeout(() => {\n if (!this.tooltipContent?.nativeElement) {\n return;\n }\n const bcr = this.tooltipContent.nativeElement.getBoundingClientRect();\n const minEffectiveWidth = window.innerWidth && document.documentElement.clientWidth\n ? Math.min(window.innerWidth, document.documentElement.clientWidth)\n : window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;\n // Determine relative vertical position of tooltip window.\n if (bcr.y < 1) {\n this.alignTop = false;\n }\n else {\n this.alignTop = true;\n }\n // Determine relative horizontal position of tooltip window.\n if (bcr.right > minEffectiveWidth) {\n this.alignLeft = false;\n }\n else {\n this.alignLeft = true;\n }\n // If tooltip box is positioned off the left side of screen, then reposition it\n this.adjustAlignment();\n this.visible = true;\n }, 10);\n }\n adjustAlignment() {\n window.setTimeout(() => {\n if (!this.tooltipContent?.nativeElement) {\n return;\n }\n const bcr = this.tooltipContent.nativeElement.getBoundingClientRect();\n if (bcr.left < 0) {\n const horAdj = -bcr.left + 5; // 5 to add pixels for cushion between left and right edge\n const tooltipRight = this.getRightStyle(this.tooltipContent.nativeElement);\n // Adjust horizontal position of tooltip content box\n this.tooltipContent.nativeElement.style = `right: ${tooltipRight - horAdj}px`;\n if (this.alignTop) {\n const tooltipArrowRight = this.getRightStyle(this.tooltipArrowTop.nativeElement);\n // Adjust horizontal position of marker\n this.tooltipArrowTop.nativeElement.style = `right: ${tooltipArrowRight + horAdj}px`;\n }\n else {\n const tooltipArrowRight = this.getRightStyle(this.tooltipArrowBottom.nativeElement);\n // Adjust horizontal position of marker\n this.tooltipArrowBottom.nativeElement.style = `right: ${tooltipArrowRight + horAdj}px`;\n }\n }\n }, 10);\n }\n getRightStyle(element) {\n return parseInt(getComputedStyle(element).right, 10);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: TooltipComponent, selector: \"dhcl-tooltip\", inputs: { showOnHover: \"showOnHover\" }, host: { listeners: { \"window:click\": \"onClick($event)\", \"document:click\": \"onClick($event)\", \"window:resize\": \"onResize($event)\" } }, viewQueries: [{ propertyName: \"tooltipContainer\", first: true, predicate: [\"tooltipContainer\"], descendants: true }, { propertyName: \"tooltipContent\", first: true, predicate: [\"tooltipContent\"], descendants: true }, { propertyName: \"tooltipArrowTop\", first: true, predicate: [\"tooltipArrowTop\"], descendants: true }, { propertyName: \"tooltipArrowBottom\", first: true, predicate: [\"tooltipArrowBottom\"], descendants: true }], ngImport: i0, template: \"<div\\r\\n class=\\\"tooltip-container\\\"\\r\\n #tooltipContainer\\r\\n role=\\\"button\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n aria-expanded=\\\"false\\\"\\r\\n [attr.aria-label]=\\\"ratingInfo\\\"\\r\\n>\\r\\n <button\\r\\n tabindex=\\\"-1\\\"\\r\\n (mouseover)=\\\"showOnHover && toggleTooltip($event)\\\"\\r\\n (mouseout)=\\\"showOnHover && toggleTooltip($event)\\\"\\r\\n (click)=\\\"!showOnHover && toggleTooltip($event)\\\"\\r\\n >\\r\\n <svg viewBox=\\\"0 0 20 20\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M10 0C4.47754 0 0 4.47915 0 10C0 15.5241 4.47754 20 10 20C15.5225 20 20 15.5241 20 10C20 4.47915 15.5225 0 10 0ZM10 4.43548C10.9353 4.43548 11.6935 5.19371 11.6935 6.12903C11.6935 7.06435 10.9353 7.82258 10 7.82258C9.06468 7.82258 8.30645 7.06435 8.30645 6.12903C8.30645 5.19371 9.06468 4.43548 10 4.43548ZM12.2581 14.6774C12.2581 14.9446 12.0414 15.1613 11.7742 15.1613H8.22581C7.95859 15.1613 7.74194 14.9446 7.74194 14.6774V13.7097C7.74194 13.4425 7.95859 13.2258 8.22581 13.2258H8.70968V10.6452H8.22581C7.95859 10.6452 7.74194 10.4285 7.74194 10.1613V9.19355C7.74194 8.92633 7.95859 8.70968 8.22581 8.70968H10.8065C11.0737 8.70968 11.2903 8.92633 11.2903 9.19355V13.2258H11.7742C12.0414 13.2258 12.2581 13.4425 12.2581 13.7097V14.6774Z\\\"\\r\\n />\\r\\n </svg>\\r\\n </button>\\r\\n <div\\r\\n #tooltipContent\\r\\n class=\\\"tooltip-content\\\"\\r\\n [class.visible]=\\\"visible\\\"\\r\\n [class.align-top]=\\\"alignTop\\\"\\r\\n [class.align-bottom]=\\\"!alignTop\\\"\\r\\n [class.align-right]=\\\"!alignLeft\\\"\\r\\n *ngIf=\\\"showTooltip\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n role=\\\"tooltip\\\"\\r\\n aria-live=\\\"polite\\\"\\r\\n >\\r\\n <span #tooltipArrowTop class=\\\"tooltip-arrow\\\" *ngIf=\\\"alignTop\\\"></span>\\r\\n <div class=\\\"tooltip-content-wrapper\\\">\\r\\n <ng-content></ng-content>\\r\\n </div>\\r\\n <span #tooltipArrowBottom class=\\\"tooltip-arrow\\\" *ngIf=\\\"!alignTop\\\"></span>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".tooltip-container{padding:0;position:relative;display:inline-block}.tooltip-container button{cursor:pointer;padding:0;border:none;outline:none;background:transparent}.tooltip-container button svg{width:16px;height:16px;fill:none;cursor:pointer}.tooltip-container button svg path{fill:var(--dhcl-color-secondary)}.tooltip-container .tooltip-content{width:200px;border:1px solid var(--dhcl-color-gray-light-medium);box-shadow:0 0 8px var(--dhcl-color-gray-light-medium);background:var(--dhcl-color-white);justify-content:center;font-size:12px;font-weight:400;line-height:22px;letter-spacing:.1px;border-radius:4px;color:var(--dhcl-color-gray-dark);padding:8px;z-index:1;bottom:10px;margin-bottom:25px;display:block;position:absolute;left:-20px;visibility:hidden;box-sizing:border-box}.tooltip-container .tooltip-content.visible{visibility:visible}.tooltip-container .tooltip-content p{margin-bottom:0;line-height:20px}.tooltip-container .tooltip-content .tooltip-arrow{position:absolute;width:10px;height:10px;background:var(--dhcl-color-white);transform:translate(-50%) translateY(-50%) rotate(45deg);top:100%;left:30px;border:1px solid;border-color:transparent var(--dhcl-color-gray-light-medium) var(--dhcl-color-gray-light-medium) transparent}.tooltip-container .tooltip-content.align-bottom{margin-top:25px;top:10px;margin-bottom:auto;bottom:auto}.tooltip-container .tooltip-content.align-bottom .tooltip-arrow{position:absolute;content:\\\"\\\";width:10px;height:10px;background:var(--dhcl-color-white);transform:translate(-50%) translateY(-50%) rotate(225deg);top:0;left:30px;border:1px solid;border-color:transparent var(--dhcl-color-gray-light-medium) var(--dhcl-color-gray-light-medium) transparent}.tooltip-container .tooltip-content.align-right{left:auto;right:-20px}.tooltip-container .tooltip-content.align-right .tooltip-arrow{right:17px;left:auto}.tooltip-container .tooltip-content-wrapper{padding:0 8px;font-size:.875rem}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TooltipComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-tooltip', template: \"<div\\r\\n class=\\\"tooltip-container\\\"\\r\\n #tooltipContainer\\r\\n role=\\\"button\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n aria-expanded=\\\"false\\\"\\r\\n [attr.aria-label]=\\\"ratingInfo\\\"\\r\\n>\\r\\n <button\\r\\n tabindex=\\\"-1\\\"\\r\\n (mouseover)=\\\"showOnHover && toggleTooltip($event)\\\"\\r\\n (mouseout)=\\\"showOnHover && toggleTooltip($event)\\\"\\r\\n (click)=\\\"!showOnHover && toggleTooltip($event)\\\"\\r\\n >\\r\\n <svg viewBox=\\\"0 0 20 20\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M10 0C4.47754 0 0 4.47915 0 10C0 15.5241 4.47754 20 10 20C15.5225 20 20 15.5241 20 10C20 4.47915 15.5225 0 10 0ZM10 4.43548C10.9353 4.43548 11.6935 5.19371 11.6935 6.12903C11.6935 7.06435 10.9353 7.82258 10 7.82258C9.06468 7.82258 8.30645 7.06435 8.30645 6.12903C8.30645 5.19371 9.06468 4.43548 10 4.43548ZM12.2581 14.6774C12.2581 14.9446 12.0414 15.1613 11.7742 15.1613H8.22581C7.95859 15.1613 7.74194 14.9446 7.74194 14.6774V13.7097C7.74194 13.4425 7.95859 13.2258 8.22581 13.2258H8.70968V10.6452H8.22581C7.95859 10.6452 7.74194 10.4285 7.74194 10.1613V9.19355C7.74194 8.92633 7.95859 8.70968 8.22581 8.70968H10.8065C11.0737 8.70968 11.2903 8.92633 11.2903 9.19355V13.2258H11.7742C12.0414 13.2258 12.2581 13.4425 12.2581 13.7097V14.6774Z\\\"\\r\\n />\\r\\n </svg>\\r\\n </button>\\r\\n <div\\r\\n #tooltipContent\\r\\n class=\\\"tooltip-content\\\"\\r\\n [class.visible]=\\\"visible\\\"\\r\\n [class.align-top]=\\\"alignTop\\\"\\r\\n [class.align-bottom]=\\\"!alignTop\\\"\\r\\n [class.align-right]=\\\"!alignLeft\\\"\\r\\n *ngIf=\\\"showTooltip\\\"\\r\\n (click)=\\\"$event.stopPropagation()\\\"\\r\\n role=\\\"tooltip\\\"\\r\\n aria-live=\\\"polite\\\"\\r\\n >\\r\\n <span #tooltipArrowTop class=\\\"tooltip-arrow\\\" *ngIf=\\\"alignTop\\\"></span>\\r\\n <div class=\\\"tooltip-content-wrapper\\\">\\r\\n <ng-content></ng-content>\\r\\n </div>\\r\\n <span #tooltipArrowBottom class=\\\"tooltip-arrow\\\" *ngIf=\\\"!alignTop\\\"></span>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".tooltip-container{padding:0;position:relative;display:inline-block}.tooltip-container button{cursor:pointer;padding:0;border:none;outline:none;background:transparent}.tooltip-container button svg{width:16px;height:16px;fill:none;cursor:pointer}.tooltip-container button svg path{fill:var(--dhcl-color-secondary)}.tooltip-container .tooltip-content{width:200px;border:1px solid var(--dhcl-color-gray-light-medium);box-shadow:0 0 8px var(--dhcl-color-gray-light-medium);background:var(--dhcl-color-white);justify-content:center;font-size:12px;font-weight:400;line-height:22px;letter-spacing:.1px;border-radius:4px;color:var(--dhcl-color-gray-dark);padding:8px;z-index:1;bottom:10px;margin-bottom:25px;display:block;position:absolute;left:-20px;visibility:hidden;box-sizing:border-box}.tooltip-container .tooltip-content.visible{visibility:visible}.tooltip-container .tooltip-content p{margin-bottom:0;line-height:20px}.tooltip-container .tooltip-content .tooltip-arrow{position:absolute;width:10px;height:10px;background:var(--dhcl-color-white);transform:translate(-50%) translateY(-50%) rotate(45deg);top:100%;left:30px;border:1px solid;border-color:transparent var(--dhcl-color-gray-light-medium) var(--dhcl-color-gray-light-medium) transparent}.tooltip-container .tooltip-content.align-bottom{margin-top:25px;top:10px;margin-bottom:auto;bottom:auto}.tooltip-container .tooltip-content.align-bottom .tooltip-arrow{position:absolute;content:\\\"\\\";width:10px;height:10px;background:var(--dhcl-color-white);transform:translate(-50%) translateY(-50%) rotate(225deg);top:0;left:30px;border:1px solid;border-color:transparent var(--dhcl-color-gray-light-medium) var(--dhcl-color-gray-light-medium) transparent}.tooltip-container .tooltip-content.align-right{left:auto;right:-20px}.tooltip-container .tooltip-content.align-right .tooltip-arrow{right:17px;left:auto}.tooltip-container .tooltip-content-wrapper{padding:0 8px;font-size:.875rem}\\n\"] }]\n }], propDecorators: { tooltipContainer: [{\n type: ViewChild,\n args: ['tooltipContainer']\n }], tooltipContent: [{\n type: ViewChild,\n args: ['tooltipContent']\n }], tooltipArrowTop: [{\n type: ViewChild,\n args: ['tooltipArrowTop']\n }], tooltipArrowBottom: [{\n type: ViewChild,\n args: ['tooltipArrowBottom']\n }], showOnHover: [{\n type: Input\n }], onClick: [{\n type: HostListener,\n args: ['window:click', ['$event']]\n }, {\n type: HostListener,\n args: ['document:click', ['$event']]\n }], onResize: [{\n type: HostListener,\n args: ['window:resize', ['$event']]\n }] } });\n\nclass TooltipModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: TooltipModule, declarations: [TooltipComponent], imports: [CommonModule], exports: [TooltipComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TooltipModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TooltipModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [TooltipComponent],\n imports: [CommonModule],\n exports: [TooltipComponent]\n }]\n }] });\n\nclass DropdownSearchAutocompleteComponent {\n dropdowns = [];\n placeholder;\n selectedValue;\n hasError = false;\n changed = new EventEmitter();\n touched = new EventEmitter();\n dropdownContainer;\n searchinput;\n dropdownId = new Date().getTime();\n showDropdown = false;\n activeDropdownIndex = -1;\n filterDropdownList = [];\n displayValue;\n onClick(event) {\n this.windowClickHandler(event);\n }\n constructor() { }\n ngOnInit() {\n this.initializeDefaultValue();\n }\n ngOnChanges(changes) {\n if (changes.selectedValue && !changes.selectedValue.firstChange) {\n this.initializeDefaultValue();\n }\n }\n initializeDefaultValue() {\n this.activeDropdownIndex = this.dropdowns.findIndex((dropdown) => {\n return dropdown.value === this.selectedValue;\n });\n this.checkAndAssignInputDropdownValue();\n }\n checkAndAssignInputDropdownValue() {\n this.displayValue = this.dropdowns.find((dropdown) => {\n return dropdown.value === this.selectedValue;\n })?.label;\n this.CheckActiveDropdownIndex();\n }\n showListDropDown(show) {\n if (show) {\n this.showDropdown = true;\n }\n else {\n this.showDropdown = false;\n this.CheckActiveDropdownIndex();\n }\n }\n resetListValue() {\n this.selectedValue = null;\n this.activeDropdownIndex = -1;\n }\n filterList() {\n this.filterDropdownList = this.dropdowns;\n const searchTerm = this.searchinput.nativeElement.value;\n if (searchTerm) {\n this.filterDropdownList = this.filterDropdownList.filter(aType => aType.label.toLowerCase().startsWith(searchTerm.toLowerCase()));\n if (this.filterDropdownList.length === 0 || this.activeDropdownIndex >= 0) {\n this.resetListValue();\n }\n }\n else {\n this.resetListValue();\n }\n }\n inputSearch() {\n if (!this.showDropdown) {\n this.showListDropDown(true);\n }\n this.filterList();\n }\n keyDownHandler(keyEvent) {\n const keyCode = keyEvent.key.toLowerCase();\n if (keyCode === 'escape') {\n keyEvent.preventDefault();\n this.showListDropDown(false);\n this.changeEmitter();\n }\n else if (keyCode === 'arrowdown') {\n keyEvent.preventDefault();\n this.arrowHandler(1);\n }\n else if (keyCode === 'arrowup') {\n keyEvent.preventDefault();\n this.arrowHandler(-1);\n }\n else if (keyCode === 'tab') {\n this.showListDropDown(false);\n this.changeEmitter();\n }\n else if (keyCode === 'enter') {\n if (this.activeDropdownIndex >= 0) {\n this.itemClickHandler(this.filterDropdownList[this.activeDropdownIndex]);\n }\n this.CheckActiveDropdownIndex();\n this.changeEmitter();\n }\n }\n CheckActiveDropdownIndex() {\n if (this.activeDropdownIndex === -1) {\n this.displayValue = '';\n }\n }\n arrowHandler(increment) {\n this.activeDropdownIndex += increment;\n if (this.activeDropdownIndex <= -1) {\n this.activeDropdownIndex = 0;\n }\n else if (this.activeDropdownIndex >= this.dropdowns.length) {\n this.activeDropdownIndex = this.dropdowns.length - 1;\n }\n window.setTimeout(() => {\n this.selectedValue = this.dropdowns[this.activeDropdownIndex]?.value;\n this.updateScrollPosition();\n }, 10);\n }\n blurHandler() {\n if (this.activeDropdownIndex === -1) {\n this.displayValue = '';\n this.resetListValue();\n }\n this.touched.emit(this.dropdowns[this.activeDropdownIndex]);\n }\n updateScrollPosition() {\n const listContainer = this.dropdownContainer.nativeElement.querySelector('ul');\n const activeItem = this.dropdownContainer.nativeElement.querySelector('ul li.focused');\n if (listContainer && activeItem) {\n if (activeItem.getBoundingClientRect().bottom > listContainer.getBoundingClientRect().bottom) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().bottom - listContainer.getBoundingClientRect().bottom);\n }\n else if (activeItem.getBoundingClientRect().top < listContainer.getBoundingClientRect().top) {\n listContainer.scrollBy(0, activeItem.getBoundingClientRect().top - listContainer.getBoundingClientRect().top);\n }\n }\n }\n itemClickHandler(dropdown) {\n const indexvalue = this.dropdowns.findIndex(a => a.value === dropdown.value);\n this.activeDropdownIndex = indexvalue;\n this.selectedValue = dropdown.value;\n this.displayValue = dropdown.label;\n this.changeEmitter();\n window.setTimeout(() => {\n this.showListDropDown(false);\n this.searchinput.nativeElement.blur();\n }, 10);\n }\n windowClickHandler(event) {\n if (!this.dropdownContainer.nativeElement.contains(event.target)) {\n this.showListDropDown(false);\n }\n }\n openDropdown() {\n this.filterDropdownList = this.dropdowns;\n window.setTimeout(() => {\n this.updateScrollPosition();\n }, 10);\n }\n toggleDropdown(event) {\n this.showDropdown = !this.showDropdown;\n if (this.showDropdown) {\n this.openDropdown();\n }\n }\n changeEmitter() {\n this.changed.emit(this.dropdowns[this.activeDropdownIndex]);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownSearchAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: DropdownSearchAutocompleteComponent, selector: \"dhcl-dropdown-search-autocomplete\", inputs: { dropdowns: \"dropdowns\", placeholder: \"placeholder\", selectedValue: \"selectedValue\", hasError: \"hasError\" }, outputs: { changed: \"changed\", touched: \"touched\" }, host: { listeners: { \"window:click\": \"onClick($event)\" } }, viewQueries: [{ propertyName: \"dropdownContainer\", first: true, predicate: [\"dropdownContainer\"], descendants: true }, { propertyName: \"searchinput\", first: true, predicate: [\"searchinput\"], descendants: true }], usesOnChanges: true, ngImport: i0, template: \"<span class=\\\"dhcl-visually-hidden\\\" [attr.id]=\\\"'dropdown-label-' + dropdownId\\\">{{ placeholder }}</span>\\r\\n<div class=\\\"dhcl-dropdown-search-autocomplete-wrapper\\\" #dropdownContainer>\\r\\n <div class=\\\"drop-down\\\" [class.error]=\\\"hasError\\\">\\r\\n <input #searchinput autocomplete=\\\"new-password\\\" (click)=\\\"toggleDropdown($event)\\\" aria-haspopup=\\\"listbox\\\"\\r\\n [class.dropdown-shown]=\\\"showDropdown\\\" [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\" (blur)=\\\"blurHandler()\\\" [placeholder]=\\\"placeholder\\\" (input)=\\\"inputSearch()\\\"\\r\\n type=\\\"text\\\" title=\\\"{{ displayValue }}\\\" spellcheck=\\\"false\\\" value=\\\"{{displayValue}}\\\" />\\r\\n <button (click)=\\\"toggleDropdown($event)\\\" (keydown)=\\\"keyDownHandler($event)\\\" [class.dropdown-shown]=\\\"showDropdown\\\"\\r\\n tabindex=\\\"-1\\\">\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"9\\\" viewBox=\\\"0 0 16 9\\\" fill=\\\"none\\\">\\r\\n <path d=\\\"M1 1L8 8L15 1\\\" stroke=\\\"var(--dhcl-color-secondary)\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\"\\r\\n stroke-linejoin=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n </div>\\r\\n <ul [hidden]=\\\"!showDropdown\\\" role=\\\"listbox\\\" [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\">\\r\\n <li *ngIf=\\\"filterDropdownList.length === 0\\\" aria-selected=\\\"false\\\">No Item found</li>\\r\\n <li *ngFor=\\\"let dropdown of filterDropdownList; let i = index\\\" role=\\\"option\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '-' + i\\\" [class.focused]=\\\"activeDropdownIndex === i\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === i\\\" (click)=\\\"itemClickHandler(dropdown)\\\">\\r\\n <span class=\\\"option-label\\\">{{ dropdown.label }}</span>\\r\\n </li>\\r\\n </ul>\\r\\n</div>\", styles: [\".dhcl-dropdown-search-autocomplete-wrapper{position:relative}.dhcl-dropdown-search-autocomplete-wrapper .drop-down{border:1px solid var(--dhcl-color-gray-dark-medium);background:var(--dhcl-color-white);padding:0 2px 0 15px;display:flex;border-radius:3px}.dhcl-dropdown-search-autocomplete-wrapper .drop-down:hover,.dhcl-dropdown-search-autocomplete-wrapper .drop-down:active,.dhcl-dropdown-search-autocomplete-wrapper .drop-down:focus{border:1px solid var(--dhcl-color-secondary)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down.error{border:1px solid var(--dhcl-color-error);color:var(--dhcl-color-error)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input{border:none;flex:1;background:var(--dhcl-color-white);color:var(--dhcl-color-gray-dark-medium);box-sizing:border-box;width:80%;height:40px;line-height:40px;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none;margin:0;float:left;font-size:.875rem;font-weight:700;cursor:pointer}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input svg{transition:var(--dhcl-default-transition);position:absolute;right:15px;top:calc(50% - 4.5px)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input.dropdown-shown{border-bottom-left-radius:0;border-bottom-right-radius:0}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input.dropdown-shown svg{transform:rotate(180deg)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input .placeholder{font-weight:700;color:var(--dhcl-color-gray-dark-medium)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button{border:none;background:var(--dhcl-color-white);box-sizing:border-box;width:20%;height:40px;line-height:40px;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;float:left;outline:none;margin:0;font-family:var(--dhcl-font-family);font-size:.875rem;cursor:pointer}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button svg{transition:var(--dhcl-default-transition);position:absolute;right:15px;top:calc(50% - 4.5px)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button.dropdown-shown{border-bottom-left-radius:0;border-bottom-right-radius:0}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button.dropdown-shown svg{transform:rotate(180deg)}.dhcl-dropdown-search-autocomplete-wrapper ul{max-height:165px;overflow:auto;list-style:none;padding:0;border:1px solid var(--dhcl-color-secondary);border-top:none;margin:0;position:absolute;width:calc(100% - 2px);background:var(--dhcl-color-white);z-index:9999;border-radius:0 0 4px 4px;box-shadow:var(--dhcl-default-box-shadow)}.dhcl-dropdown-search-autocomplete-wrapper ul li{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:7.5px 14px;transition:var(--dhcl-default-transition);color:var(--dhcl-color-gray-dark);font-size:.875rem;cursor:pointer}.dhcl-dropdown-search-autocomplete-wrapper ul li:hover,.dhcl-dropdown-search-autocomplete-wrapper ul li.focused{background:var(--dhcl-color-primary-light)}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox{display:inline-block;margin-right:5px}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox .partial rect{fill:var(--dhcl-color-secondary);stroke:var(--dhcl-color-secondary)}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox .selected rect{fill:var(--dhcl-color-secondary)}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox .unselected rect{stroke:var(--dhcl-color-secondary)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownSearchAutocompleteComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-dropdown-search-autocomplete', template: \"<span class=\\\"dhcl-visually-hidden\\\" [attr.id]=\\\"'dropdown-label-' + dropdownId\\\">{{ placeholder }}</span>\\r\\n<div class=\\\"dhcl-dropdown-search-autocomplete-wrapper\\\" #dropdownContainer>\\r\\n <div class=\\\"drop-down\\\" [class.error]=\\\"hasError\\\">\\r\\n <input #searchinput autocomplete=\\\"new-password\\\" (click)=\\\"toggleDropdown($event)\\\" aria-haspopup=\\\"listbox\\\"\\r\\n [class.dropdown-shown]=\\\"showDropdown\\\" [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\"\\r\\n (keydown)=\\\"keyDownHandler($event)\\\" (blur)=\\\"blurHandler()\\\" [placeholder]=\\\"placeholder\\\" (input)=\\\"inputSearch()\\\"\\r\\n type=\\\"text\\\" title=\\\"{{ displayValue }}\\\" spellcheck=\\\"false\\\" value=\\\"{{displayValue}}\\\" />\\r\\n <button (click)=\\\"toggleDropdown($event)\\\" (keydown)=\\\"keyDownHandler($event)\\\" [class.dropdown-shown]=\\\"showDropdown\\\"\\r\\n tabindex=\\\"-1\\\">\\r\\n <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"9\\\" viewBox=\\\"0 0 16 9\\\" fill=\\\"none\\\">\\r\\n <path d=\\\"M1 1L8 8L15 1\\\" stroke=\\\"var(--dhcl-color-secondary)\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\"\\r\\n stroke-linejoin=\\\"round\\\" />\\r\\n </svg>\\r\\n </button>\\r\\n </div>\\r\\n <ul [hidden]=\\\"!showDropdown\\\" role=\\\"listbox\\\" [attr.aria-labelledby]=\\\"'dropdown-label-' + dropdownId\\\">\\r\\n <li *ngIf=\\\"filterDropdownList.length === 0\\\" aria-selected=\\\"false\\\">No Item found</li>\\r\\n <li *ngFor=\\\"let dropdown of filterDropdownList; let i = index\\\" role=\\\"option\\\"\\r\\n [attr.id]=\\\"'dropdown-option-' + dropdownId + '-' + i\\\" [class.focused]=\\\"activeDropdownIndex === i\\\"\\r\\n [attr.aria-selected]=\\\"activeDropdownIndex === i\\\" (click)=\\\"itemClickHandler(dropdown)\\\">\\r\\n <span class=\\\"option-label\\\">{{ dropdown.label }}</span>\\r\\n </li>\\r\\n </ul>\\r\\n</div>\", styles: [\".dhcl-dropdown-search-autocomplete-wrapper{position:relative}.dhcl-dropdown-search-autocomplete-wrapper .drop-down{border:1px solid var(--dhcl-color-gray-dark-medium);background:var(--dhcl-color-white);padding:0 2px 0 15px;display:flex;border-radius:3px}.dhcl-dropdown-search-autocomplete-wrapper .drop-down:hover,.dhcl-dropdown-search-autocomplete-wrapper .drop-down:active,.dhcl-dropdown-search-autocomplete-wrapper .drop-down:focus{border:1px solid var(--dhcl-color-secondary)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down.error{border:1px solid var(--dhcl-color-error);color:var(--dhcl-color-error)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input{border:none;flex:1;background:var(--dhcl-color-white);color:var(--dhcl-color-gray-dark-medium);box-sizing:border-box;width:80%;height:40px;line-height:40px;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none;margin:0;float:left;font-size:.875rem;font-weight:700;cursor:pointer}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input svg{transition:var(--dhcl-default-transition);position:absolute;right:15px;top:calc(50% - 4.5px)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input.dropdown-shown{border-bottom-left-radius:0;border-bottom-right-radius:0}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input.dropdown-shown svg{transform:rotate(180deg)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down input .placeholder{font-weight:700;color:var(--dhcl-color-gray-dark-medium)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button{border:none;background:var(--dhcl-color-white);box-sizing:border-box;width:20%;height:40px;line-height:40px;text-align:left;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;float:left;outline:none;margin:0;font-family:var(--dhcl-font-family);font-size:.875rem;cursor:pointer}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button svg{transition:var(--dhcl-default-transition);position:absolute;right:15px;top:calc(50% - 4.5px)}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button.dropdown-shown{border-bottom-left-radius:0;border-bottom-right-radius:0}.dhcl-dropdown-search-autocomplete-wrapper .drop-down button.dropdown-shown svg{transform:rotate(180deg)}.dhcl-dropdown-search-autocomplete-wrapper ul{max-height:165px;overflow:auto;list-style:none;padding:0;border:1px solid var(--dhcl-color-secondary);border-top:none;margin:0;position:absolute;width:calc(100% - 2px);background:var(--dhcl-color-white);z-index:9999;border-radius:0 0 4px 4px;box-shadow:var(--dhcl-default-box-shadow)}.dhcl-dropdown-search-autocomplete-wrapper ul li{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:7.5px 14px;transition:var(--dhcl-default-transition);color:var(--dhcl-color-gray-dark);font-size:.875rem;cursor:pointer}.dhcl-dropdown-search-autocomplete-wrapper ul li:hover,.dhcl-dropdown-search-autocomplete-wrapper ul li.focused{background:var(--dhcl-color-primary-light)}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox{display:inline-block;margin-right:5px}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox .partial rect{fill:var(--dhcl-color-secondary);stroke:var(--dhcl-color-secondary)}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox .selected rect{fill:var(--dhcl-color-secondary)}.dhcl-dropdown-search-autocomplete-wrapper ul li .multiselect-checkbox .unselected rect{stroke:var(--dhcl-color-secondary)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { dropdowns: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], selectedValue: [{\n type: Input\n }], hasError: [{\n type: Input\n }], changed: [{\n type: Output\n }], touched: [{\n type: Output\n }], dropdownContainer: [{\n type: ViewChild,\n args: ['dropdownContainer']\n }], searchinput: [{\n type: ViewChild,\n args: ['searchinput']\n }], onClick: [{\n type: HostListener,\n args: ['window:click', ['$event']]\n }] } });\n\nclass DropdownSearchAutocompleteModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownSearchAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownSearchAutocompleteModule, declarations: [DropdownSearchAutocompleteComponent], imports: [CommonModule], exports: [DropdownSearchAutocompleteComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownSearchAutocompleteModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownSearchAutocompleteModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [DropdownSearchAutocompleteComponent],\n imports: [CommonModule],\n exports: [DropdownSearchAutocompleteComponent]\n }]\n }] });\n\nvar Score;\n(function (Score) {\n Score[Score[\"one\"] = 1] = \"one\";\n Score[Score[\"two\"] = 2] = \"two\";\n Score[Score[\"three\"] = 3] = \"three\";\n Score[Score[\"four\"] = 4] = \"four\";\n Score[Score[\"five\"] = 5] = \"five\";\n})(Score || (Score = {}));\nvar FeedbackSurvey;\n(function (FeedbackSurvey) {\n FeedbackSurvey[\"survey\"] = \"Survey\";\n FeedbackSurvey[\"confirmation\"] = \"Confirmation\";\n FeedbackSurvey[\"error\"] = \"Error\";\n})(FeedbackSurvey || (FeedbackSurvey = {}));\n\nvar ButtonSize;\n(function (ButtonSize) {\n ButtonSize[\"LARGE\"] = \"large\";\n ButtonSize[\"MEDIUM\"] = \"medium\";\n ButtonSize[\"SMALL\"] = \"small\";\n})(ButtonSize || (ButtonSize = {}));\n\nvar ButtonType;\n(function (ButtonType) {\n ButtonType[\"PRIMARY\"] = \"primary\";\n ButtonType[\"SECONDARY\"] = \"secondary\";\n})(ButtonType || (ButtonType = {}));\n\nclass ButtonDirective {\n el;\n hasArrow;\n hasIcon;\n buttonType = ButtonType.PRIMARY;\n buttonSize = ButtonSize.LARGE;\n arrowContainer = document.createElement('span');\n arrowIcon = `\r\n <svg width=\"9\" height=\"15\" viewBox=\"0 0 9 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 14.6118L8 7.61182L1 0.611816\" stroke=\"white\"/>\r\n </svg>\r\n `;\n constructor(el) {\n this.el = el;\n }\n ngOnInit() {\n this.initButton();\n }\n ngOnChanges() {\n this.resetButton();\n this.initButton();\n }\n initButton() {\n this.el.nativeElement.classList.add('dhcl-button', `dhcl-button-${this.buttonType}`, `dhcl-button-${this.buttonSize}`);\n if (this.hasArrow) {\n this.el.nativeElement.classList.add('dhcl-button-arrow');\n this.arrowContainer.innerHTML = this.arrowIcon;\n this.el.nativeElement.appendChild(this.arrowContainer);\n }\n else if (this.hasIcon) {\n this.el.nativeElement.classList.add('dhcl-button-icon');\n }\n }\n resetButton() {\n this.arrowContainer.innerHTML = '';\n Object.keys(ButtonType).forEach((buttonKey) => {\n this.el.nativeElement.classList.remove(`dhcl-button-${ButtonType[buttonKey]}`);\n });\n this.el.nativeElement.classList.remove('dhcl-button-large');\n this.el.nativeElement.classList.remove('dhcl-button-medium');\n this.el.nativeElement.classList.remove('dhcl-button-small');\n this.el.nativeElement.classList.remove('dhcl-button-arrow');\n this.el.nativeElement.classList.remove('dhcl-button-icon');\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ButtonDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: ButtonDirective, selector: \"[dhclButton]\", inputs: { hasArrow: \"hasArrow\", hasIcon: \"hasIcon\", buttonType: \"buttonType\", buttonSize: \"buttonSize\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ButtonDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclButton]'\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { hasArrow: [{\n type: Input\n }], hasIcon: [{\n type: Input\n }], buttonType: [{\n type: Input\n }], buttonSize: [{\n type: Input\n }] } });\n\nclass LongTextInputDirective {\n el;\n noLabel = false;\n required = false;\n lineHeightInPx = 22;\n minHeightInLines = 2;\n maxHeightInLines = 15;\n minHeightInPx = 0; // will be calculated later\n maxHeightInPx = 0; // will be calculated later\n textArea;\n charactersRemainingDiv;\n constructor(el) {\n this.el = el;\n }\n ngOnChanges() {\n this.initInput();\n this.respondToTextInput();\n }\n ngOnInit() {\n this.initInput();\n this.updateStyles();\n this.registerEventListeners();\n }\n ngAfterViewInit() {\n this.respondToTextInput();\n }\n initInput() {\n if (this.textArea) {\n return;\n }\n this.textArea = this.el.nativeElement.querySelector('textarea');\n // Set a default maxLength for the textarea\n if (this.textArea.maxLength === -1 || !this.textArea.maxLength) {\n this.textArea.maxLength = 500;\n }\n // See if the consumer included a div for the remaining character count.\n // If so, capture the element associated with that.\n this.charactersRemainingDiv = this.el.nativeElement.querySelector('div.dhcl-long-text-input-characters-remaining');\n }\n respondToTextInput() {\n this.textArea.style.height = null;\n this.textArea.style.height = this.textArea.scrollHeight + 2 + 'px';\n if (parseInt(this.textArea.style.height, 10) > this.maxHeightInPx) {\n this.textArea.style.overflowY = 'scroll';\n }\n else {\n this.textArea.style.overflowY = 'hidden';\n }\n // Render a \"X characters remaining\" label below and to the right of the text area.\n // X is calculated as follows: maxLength - text length\n if (this.charactersRemainingDiv) {\n this.charactersRemainingDiv.innerHTML = `${this.textArea.maxLength - this.textArea.value.length} characters remaining`;\n }\n }\n registerEventListeners() {\n // Prevent users from entering new lines without any other text in the\n // textarea.\n this.textArea.addEventListener('keydown', this.handleKeyDownInput.bind(this));\n this.textArea.addEventListener('paste', this.handlePasteInput.bind(this));\n const keydownEvents = fromEvent(this.textArea, 'keydown');\n const debouncedKeydownEvents = keydownEvents.pipe(debounceTime(100));\n debouncedKeydownEvents.subscribe(i => {\n this.respondToTextInput();\n });\n }\n handleKeyDownInput(event) {\n // If text cursor is at beginning of textarea and Enter key is pressed, then suppress the effect of input\n if (this.textArea.selectionStart === 0 && event.key === 'Enter') {\n event.preventDefault();\n return false;\n }\n else {\n return true;\n }\n }\n handlePasteInput(event) {\n const paste = (event.clipboardData || window['clipboardData']).getData('text');\n // If text cursor is at beginning of textarea and content starting with a CR or LF is pasted,\n // then trim whitespace from the beginning of the pasted content and then insert it.\n if (this.textArea.selectionStart === 0 && /^[\\n\\r\\t ]/.test(paste)) {\n // New textarea value = left-trimmed pasted content + remaining content after cursor / text selection\n this.textArea.value = paste.trimLeft() + this.textArea.value.substr(this.textArea.selectionEnd);\n // Move text cursor to position after pasted content\n const pasteLength = paste.trimLeft().length;\n this.textArea.setSelectionRange(pasteLength, pasteLength);\n event.preventDefault();\n return false;\n }\n else {\n return true;\n }\n }\n updateStyles() {\n this.el.nativeElement.classList.add('dhcl-long-text-input');\n if (this.noLabel) {\n this.el.nativeElement.classList.add('no-label');\n }\n else {\n this.el.nativeElement.classList.remove('no-label');\n }\n if (this.required) {\n this.el.nativeElement.classList.add('required');\n }\n else {\n this.el.nativeElement.classList.remove('required');\n }\n this.minHeightInLines = Math.max(2, this.minHeightInLines);\n this.maxHeightInLines = Math.min(this.maxHeightInLines, 50);\n if (this.minHeightInLines > this.maxHeightInLines) {\n throw new Error(`Value of minHeightInLines property (${this.minHeightInLines}) ` +\n `should be <= value of maxHeightInLines property (${this.maxHeightInLines}).`);\n }\n // Calculate minHeightInPx according to the minHeightInLines and the line height\n this.minHeightInPx = this.calculateTextareaHeightInPxFromNumberOfLinesOfText(this.minHeightInLines);\n // Set the minHeight of the textarea\n this.textArea.style.minHeight = `${this.minHeightInPx}px`;\n // Calculate maxHeightInPx according to the maxHeightInLines and the line height\n this.maxHeightInPx = this.calculateTextareaHeightInPxFromNumberOfLinesOfText(this.maxHeightInLines);\n // Set the maxHeight of the textarea\n this.textArea.style.maxHeight = `${this.maxHeightInPx}px`;\n }\n calculateTextareaHeightInPxFromNumberOfLinesOfText(numberOfLines) {\n return this.lineHeightInPx * numberOfLines\n + 20 // for top and bottom padding\n + 2; // for top and bottom border\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LongTextInputDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: LongTextInputDirective, selector: \"[dhclLongTextInput]\", inputs: { noLabel: \"noLabel\", required: \"required\", minHeightInLines: \"minHeightInLines\", maxHeightInLines: \"maxHeightInLines\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LongTextInputDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclLongTextInput]'\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { noLabel: [{\n type: Input\n }], required: [{\n type: Input\n }], minHeightInLines: [{\n type: Input\n }], maxHeightInLines: [{\n type: Input\n }] } });\n\nclass FeedbackSurveyComponent {\n isSubmit = true;\n maximumLength = 300; // reasonable default max length\n feedBack = '';\n score = 0;\n category = '';\n rateContent = 'Please rate your experience.';\n point = Score;\n isVisible = true;\n set visible(value) {\n if (value) {\n this.isVisible = value;\n }\n }\n get visible() {\n return this.isVisible;\n }\n set maxLength(value) {\n if (value) {\n this.maximumLength = value;\n }\n }\n get maxLength() {\n return this.maximumLength;\n }\n set feedbackType(value) {\n if (value) {\n this.category = value;\n this.rateContent = `Please rate your ${value} experience.`;\n }\n }\n get feedbackType() {\n return this.rateContent;\n }\n feedbackResult = new EventEmitter();\n constructor() { }\n ngOnInit() { }\n onClick(points) {\n this.score = points;\n this.isSubmit = false;\n }\n onSubmit() {\n const feedback = {\n score: this.score,\n feedback: this.feedBack\n };\n this.feedbackResult.emit(feedback);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackSurveyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FeedbackSurveyComponent, selector: \"dhcl-feedback-survey\", inputs: { visible: \"visible\", maxLength: \"maxLength\", feedbackType: \"feedbackType\" }, outputs: { feedbackResult: \"feedbackResult\" }, ngImport: i0, template: \"<div *ngIf=\\\"visible\\\" class=\\\"dhcl-feedbackSurvey-container\\\" id=\\\"feedbackSurvey\\\">\\r\\n <h1>How was your experience?</h1>\\r\\n <p id=\\\"feedbackRatingPrompt\\\">{{ rateContent }}</p>\\r\\n <div id=\\\"feedbackRatingOptions\\\" class=\\\"imageChoices\\\">\\r\\n <!-- one star -->\\r\\n <svg\\r\\n id=\\\"feedbackRating1\\\"\\r\\n [class.active]=\\\"score === point.one\\\"\\r\\n (click)=\\\"onClick(point.one)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M42.9323 49.1925C42.4523 49.1925 41.9723 49.0088 41.6048 48.645C34.5 38.6107 25.5 39 18.3911 47.645C17.6598 48.3763 16.4711 48.3763 15.7398 47.645C15.0086 46.9138 15.0086 45.725 15.7398 44.9938C19.2836 41.4538 24.9898 37.5 29.9998 37.5C35.0098 37.5 40.7161 42.4538 44.2561 45.9938C44.9873 46.725 44.9873 47.9138 44.2561 48.645C43.8923 49.0125 43.4123 49.1925 42.9323 49.1925Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M18.75 26.25C20.8211 26.25 22.5 24.5711 22.5 22.5C22.5 20.4289 20.8211 18.75 18.75 18.75C16.6789 18.75 15 20.4289 15 22.5C15 24.5711 16.6789 26.25 18.75 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 26.25C43.3211 26.25 45 24.5711 45 22.5C45 20.4289 43.3211 18.75 41.25 18.75C39.1789 18.75 37.5 20.4289 37.5 22.5C37.5 24.5711 39.1789 26.25 41.25 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M22.876 76C24.748 76 26.428 75.52 26.428 73.552C26.428 72.508 25.936 71.812 24.82 71.452V71.428C25.684 71.092 26.116 70.42 26.116 69.568C26.116 68.116 25.084 67.384 22.684 67.384H19.948V76H22.876ZM21.568 70.936V68.74H22.66C23.524 68.74 24.46 68.836 24.46 69.772C24.46 70.78 23.5 70.936 22.78 70.936H21.568ZM21.568 74.644V72.16H23.008C24.076 72.16 24.772 72.508 24.772 73.42C24.772 74.236 24.256 74.644 22.888 74.644H21.568ZM32.7436 76L32.6356 74.872V71.8C32.6356 70.324 31.8916 69.616 30.2836 69.616C29.1676 69.616 28.2916 69.964 27.7396 70.888L28.7836 71.536C29.1316 70.984 29.5516 70.72 30.1876 70.72C30.9916 70.72 31.2796 71.068 31.2076 71.908C30.0796 72.124 29.1196 72.352 28.4956 72.7C27.8116 73.084 27.4636 73.624 27.4636 74.428C27.4636 75.472 28.1116 76.12 29.1556 76.12C29.9236 76.12 30.6076 75.808 31.2076 75.304L31.3156 76H32.7436ZM31.1596 74.332C30.7876 74.752 30.2476 75.004 29.7316 75.004C29.2516 75.004 28.9516 74.716 28.9516 74.224C28.9516 73.84 29.1076 73.528 29.4196 73.348C29.8156 73.132 30.2836 73.012 31.1596 72.832V74.332ZM39.474 76V67.384H38.01V70.324C37.566 69.892 37.014 69.664 36.402 69.664C34.854 69.664 33.87 70.948 33.87 72.952C33.87 74.86 34.734 76.144 36.234 76.144C37.038 76.144 37.578 75.844 38.154 75.316L38.346 76H39.474ZM38.01 74.236C37.698 74.668 37.206 74.932 36.738 74.932C35.886 74.932 35.358 74.212 35.358 72.964C35.358 71.644 35.85 70.852 36.762 70.852C37.254 70.852 37.698 71.092 38.01 71.512V74.236Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- two stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating2\\\"\\r\\n [class.active]=\\\"score === point.two\\\"\\r\\n (click)=\\\"onClick(point.two)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M41.9323 46.1925C41.4523 46.1925 40.9723 46.0088 40.6048 45.645C34.9348 39.975 25.0573 39.975 19.3911 45.645C18.6598 46.3763 17.4711 46.3763 16.7398 45.645C16.0086 44.9138 16.0086 43.725 16.7398 42.9938C20.2836 39.4538 24.9898 37.5 29.9998 37.5C35.0098 37.5 39.7161 39.4538 43.2561 42.9938C43.9873 43.725 43.9873 44.9138 43.2561 45.645C42.8923 46.0125 42.4123 46.1925 41.9323 46.1925Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M18.75 26.25C20.8211 26.25 22.5 24.5711 22.5 22.5C22.5 20.4289 20.8211 18.75 18.75 18.75C16.6789 18.75 15 20.4289 15 22.5C15 24.5711 16.6789 26.25 18.75 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 26.25C43.3211 26.25 45 24.5711 45 22.5C45 20.4289 43.3211 18.75 41.25 18.75C39.1789 18.75 37.5 20.4289 37.5 22.5C37.5 24.5711 39.1789 26.25 41.25 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M20.604 76V72.712H21.888C24.012 72.712 25.236 71.86 25.236 70.024C25.236 68.248 24.144 67.384 21.912 67.384H18.948V76H20.604ZM20.604 71.356V68.776H22.02C23.016 68.776 23.58 69.184 23.58 70.024C23.58 71.152 22.728 71.356 21.96 71.356H20.604ZM28.5699 76.144C30.2979 76.144 31.3539 74.92 31.3539 72.904C31.3539 70.84 30.2979 69.616 28.5699 69.616C26.8299 69.616 25.7739 70.84 25.7739 72.904C25.7739 74.92 26.8299 76.144 28.5699 76.144ZM28.5699 74.992C27.6579 74.992 27.2619 74.152 27.2619 72.904C27.2619 71.692 27.6339 70.768 28.5699 70.768C29.4939 70.768 29.8659 71.692 29.8659 72.904C29.8659 74.152 29.4699 74.992 28.5699 74.992ZM35.0918 76.144C36.8198 76.144 37.8758 74.92 37.8758 72.904C37.8758 70.84 36.8198 69.616 35.0918 69.616C33.3518 69.616 32.2958 70.84 32.2958 72.904C32.2958 74.92 33.3518 76.144 35.0918 76.144ZM35.0918 74.992C34.1798 74.992 33.7838 74.152 33.7838 72.904C33.7838 71.692 34.1558 70.768 35.0918 70.768C36.0158 70.768 36.3878 71.692 36.3878 72.904C36.3878 74.152 35.9918 74.992 35.0918 74.992ZM40.6297 76V72.208C41.0257 71.464 41.5537 70.984 42.2857 70.984C42.3337 70.984 42.4057 70.984 42.5137 70.996V69.628C42.4297 69.616 42.3937 69.616 42.3217 69.616C41.5417 69.616 40.9657 70.06 40.5217 70.9V69.76H39.1777V76H40.6297Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- three stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating3\\\"\\r\\n [class.active]=\\\"score === point.three\\\"\\r\\n (click)=\\\"onClick(point.three)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M18.75 25.5C20.8211 25.5 22.5 23.8211 22.5 21.75C22.5 19.6789 20.8211 18 18.75 18C16.6789 18 15 19.6789 15 21.75C15 23.8211 16.6789 25.5 18.75 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 25.5C43.3211 25.5 45 23.8211 45 21.75C45 19.6789 43.3211 18 41.25 18C39.1789 18 37.5 19.6789 37.5 21.75C37.5 23.8211 39.1789 25.5 41.25 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M39.375 44.25H20.625C19.59 44.25 18.75 43.41 18.75 42.375C18.75 41.34 19.59 40.5 20.625 40.5H39.375C40.41 40.5 41.25 41.34 41.25 42.375C41.25 43.41 40.41 44.25 39.375 44.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M26.152 76.144C28.528 76.144 29.824 74.38 29.824 71.692C29.824 69.4 28.78 67.24 26.152 67.24C23.536 67.24 22.48 69.4 22.48 71.692C22.48 74.38 23.788 76.144 26.152 76.144ZM26.152 74.8C24.832 74.8 24.136 73.648 24.136 71.692C24.136 69.724 24.844 68.56 26.152 68.56C27.46 68.56 28.18 69.724 28.18 71.692C28.18 73.648 27.472 74.8 26.152 74.8ZM36.6726 76L34.5486 71.908L36.3966 69.76H34.7526L32.6526 72.448H32.6286V67.384H31.1886V76H32.6286V74.128L33.5646 73.06L35.1006 76H36.6726Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- four stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating4\\\"\\r\\n [class.active]=\\\"score === point.four\\\"\\r\\n (click)=\\\"onClick(point.four)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M18.75 25.5C20.8211 25.5 22.5 23.8211 22.5 21.75C22.5 19.6789 20.8211 18 18.75 18C16.6789 18 15 19.6789 15 21.75C15 23.8211 16.6789 25.5 18.75 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 25.5C43.3211 25.5 45 23.8211 45 21.75C45 19.6789 43.3211 18 41.25 18C39.1789 18 37.5 19.6789 37.5 21.75C37.5 23.8211 39.1789 25.5 41.25 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M29.9998 48.0001C24.9898 48.0001 20.2836 46.0463 16.7398 42.5063C16.0086 41.7751 16.0086 40.5863 16.7398 39.8551C17.4711 39.1238 18.6598 39.1238 19.3911 39.8551C25.0573 45.5251 34.9348 45.5251 40.6048 39.8551C41.3361 39.1238 42.5248 39.1238 43.2561 39.8551C43.9873 40.5863 43.9873 41.7751 43.2561 42.5063C39.7161 46.0463 35.0098 48.0001 29.9998 48.0001Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M25.332 76V71.716H22.164V72.916H23.88C23.892 73.012 23.892 73.084 23.892 73.156C23.892 74.188 23.22 74.812 22.164 74.812C20.736 74.812 20.136 73.684 20.136 71.668C20.136 69.688 20.88 68.608 22.068 68.608C22.884 68.608 23.448 68.98 23.748 70.084L25.248 69.796C24.828 68.02 23.772 67.24 22.068 67.24C19.812 67.24 18.48 68.848 18.48 71.656C18.48 74.428 19.62 76.144 21.828 76.144C22.728 76.144 23.436 75.868 24 75.208H24.024V76H25.332ZM29.3433 76.144C31.0713 76.144 32.1273 74.92 32.1273 72.904C32.1273 70.84 31.0713 69.616 29.3433 69.616C27.6033 69.616 26.5473 70.84 26.5473 72.904C26.5473 74.92 27.6033 76.144 29.3433 76.144ZM29.3433 74.992C28.4313 74.992 28.0353 74.152 28.0353 72.904C28.0353 71.692 28.4073 70.768 29.3433 70.768C30.2673 70.768 30.6393 71.692 30.6393 72.904C30.6393 74.152 30.2433 74.992 29.3433 74.992ZM35.8652 76.144C37.5932 76.144 38.6492 74.92 38.6492 72.904C38.6492 70.84 37.5932 69.616 35.8652 69.616C34.1252 69.616 33.0692 70.84 33.0692 72.904C33.0692 74.92 34.1252 76.144 35.8652 76.144ZM35.8652 74.992C34.9532 74.992 34.5572 74.152 34.5572 72.904C34.5572 71.692 34.9292 70.768 35.8652 70.768C36.7892 70.768 37.1612 71.692 37.1612 72.904C37.1612 74.152 36.7652 74.992 35.8652 74.992ZM45.1951 76V67.384H43.7311V70.324C43.2871 69.892 42.7351 69.664 42.1231 69.664C40.5751 69.664 39.5911 70.948 39.5911 72.952C39.5911 74.86 40.4551 76.144 41.9551 76.144C42.7591 76.144 43.2991 75.844 43.8751 75.316L44.0671 76H45.1951ZM43.7311 74.236C43.4191 74.668 42.9271 74.932 42.4591 74.932C41.6071 74.932 41.0791 74.212 41.0791 72.964C41.0791 71.644 41.5711 70.852 42.4831 70.852C42.9751 70.852 43.4191 71.092 43.7311 71.512V74.236Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- five stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating5\\\"\\r\\n [class.active]=\\\"score === point.five\\\"\\r\\n (click)=\\\"onClick(point.five)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M44.3402 36.4851C44.1087 36.1804 43.7504 36 43.3701 36H17.5814C17.1987 36 16.8404 36.1779 16.6112 36.4826C16.3772 36.7898 16.3041 37.1822 16.4065 37.5502C18.1688 43.8122 23.9554 48.1875 30.4733 48.1875C36.9912 48.1875 42.7778 43.8122 44.5401 37.5502C44.6449 37.1822 44.5718 36.7897 44.3402 36.4851Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M18.75 23.5C20.8211 23.5 22.5 21.8211 22.5 19.75C22.5 17.6789 20.8211 16 18.75 16C16.6789 16 15 17.6789 15 19.75C15 21.8211 16.6789 23.5 18.75 23.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 23.5C43.3211 23.5 45 21.8211 45 19.75C45 17.6789 43.3211 16 41.25 16C39.1789 16 37.5 17.6789 37.5 19.75C37.5 21.8211 39.1789 23.5 41.25 23.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M14.648 76V74.608H10.604V72.232H13.4V70.888H10.604V68.776H14.516V67.384H8.948V76H14.648ZM20.8449 76L18.7809 72.724L20.6889 69.76H19.0929L17.9529 71.644H17.9289L16.7889 69.76H15.1569L17.0889 72.724L15.0009 76H16.5849L17.9169 73.84H17.9409L19.2609 76H20.8449ZM25.6074 73.924C25.2594 74.62 24.8154 74.956 24.1674 74.956C23.3154 74.956 22.7514 74.308 22.7514 72.916C22.7514 71.536 23.3034 70.804 24.1554 70.804C24.7674 70.792 25.1634 71.104 25.4514 71.788L26.6274 71.32C26.2074 70.108 25.3194 69.616 24.1314 69.616C22.4154 69.616 21.3114 70.84 21.3114 72.904C21.3114 74.908 22.3434 76.144 24.0594 76.144C25.2834 76.144 26.1354 75.64 26.7354 74.524L25.6074 73.924ZM32.9286 74.572L31.8246 74.008C31.4766 74.68 31.0206 74.98 30.3606 74.98C29.3886 74.98 29.0166 74.272 28.9566 73.156H32.9406C32.9526 72.976 32.9526 72.856 32.9526 72.76C32.9526 70.84 32.0646 69.616 30.2886 69.616C28.6566 69.616 27.5286 70.864 27.5286 72.844C27.5286 74.776 28.4406 76.144 30.2526 76.144C31.3206 76.144 32.2686 75.76 32.9286 74.572ZM30.3006 70.72C31.0806 70.72 31.5486 71.296 31.5486 72.184H28.9806C29.1006 71.344 29.5206 70.72 30.3006 70.72ZM35.6632 76V67.384H34.2112V76H35.6632ZM38.775 76V67.384H37.323V76H38.775ZM45.4747 74.572L44.3707 74.008C44.0227 74.68 43.5667 74.98 42.9067 74.98C41.9347 74.98 41.5627 74.272 41.5027 73.156H45.4867C45.4987 72.976 45.4987 72.856 45.4987 72.76C45.4987 70.84 44.6107 69.616 42.8347 69.616C41.2027 69.616 40.0747 70.864 40.0747 72.844C40.0747 74.776 40.9867 76.144 42.7987 76.144C43.8667 76.144 44.8147 75.76 45.4747 74.572ZM42.8467 70.72C43.6267 70.72 44.0947 71.296 44.0947 72.184H41.5267C41.6467 71.344 42.0667 70.72 42.8467 70.72ZM51.9173 76V71.872C51.9173 71.104 51.8333 70.696 51.6533 70.384C51.3773 69.892 50.8733 69.616 50.1533 69.616C49.4093 69.616 48.7733 69.916 48.1013 70.528V69.76H46.7573V76H48.2093V71.56C48.7493 71.044 49.1693 70.864 49.5893 70.864C50.1533 70.864 50.4533 71.176 50.4533 71.872V76H51.9173ZM56.5262 74.8C56.2862 74.86 56.0702 74.884 55.8542 74.884C55.4222 74.884 55.2422 74.668 55.2422 74.164V70.888H56.5262V69.76H55.2422V67.684H53.7782V69.76H52.8662V70.888H53.7782V74.272C53.7782 75.664 54.2342 76.096 55.4222 76.096C55.8182 76.096 56.1782 76.048 56.5262 75.988V74.8Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <div>\\r\\n <label dhclLongTextInput [minHeightInLines]=\\\"3\\\" [maxHeightInLines]=\\\"10\\\">\\r\\n <span id=\\\"feedbackCommentPrompt\\\">Tell us how we can improve your experience (optional).</span>\\r\\n <textarea id=\\\"feedbackComment\\\" aria-label=\\\"comment\\\" placeholder=\\\"comment\\\" [attr.maxlength]=\\\"maxLength\\\" (input)=\\\"feedBack = $event.target.value\\\"></textarea>\\r\\n <div class=\\\"dhcl-long-text-input-status\\\">\\r\\n <div></div>\\r\\n <div class=\\\"dhcl-long-text-input-characters-remaining\\\"></div>\\r\\n </div>\\r\\n </label>\\r\\n </div>\\r\\n <div class=\\\"cta-wrapper\\\">\\r\\n <button\\r\\n dhclButton\\r\\n buttonType=\\\"primary\\\"\\r\\n buttonSize=\\\"medium\\\"\\r\\n aria-label=\\\"Submit\\\"\\r\\n id=\\\"feedbackSubmitButton\\\"\\r\\n [disabled]=\\\"isSubmit\\\"\\r\\n (click)=\\\"onSubmit()\\\"\\r\\n >\\r\\n Submit\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-feedbackSurvey-container{--active-rating-color: var(--dhcl-color-primary);--active-rating-color-white: var(--dhcl-color-white);margin:25px 35px 0}.dhcl-feedbackSurvey-container h1{line-height:34px;font-size:30px}.dhcl-feedbackSurvey-container .pc{font-size:.75rem;top:66.08%;bottom:32.41%}.dhcl-feedbackSurvey-container .imageChoices{margin-bottom:16px}.dhcl-feedbackSurvey-container svg{width:calc(20% - 10px);max-width:60px;margin:0 5px}.dhcl-feedbackSurvey-container svg.active{--active-rating-color: var(--dhcl-color-white);--active-rating-color-white: var(--dhcl-color-primary)}@media (max-width: 420px){.dhcl-feedbackSurvey-container{margin:20px 0 0}.dhcl-feedbackSurvey-container textarea{min-height:150px}}.dhcl-feedbackSurvey-container .cta-wrapper{margin-top:30px}@media (max-width: 420px){.dhcl-feedbackSurvey-container .cta-wrapper button .dhcl-button{width:100%}}@media (max-width: 420px){.dhcl-feedbackSurvey-container .cta-wrapper div.cta-nav-link-wrapper{width:100%}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }, { kind: \"directive\", type: LongTextInputDirective, selector: \"[dhclLongTextInput]\", inputs: [\"noLabel\", \"required\", \"minHeightInLines\", \"maxHeightInLines\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackSurveyComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-feedback-survey', template: \"<div *ngIf=\\\"visible\\\" class=\\\"dhcl-feedbackSurvey-container\\\" id=\\\"feedbackSurvey\\\">\\r\\n <h1>How was your experience?</h1>\\r\\n <p id=\\\"feedbackRatingPrompt\\\">{{ rateContent }}</p>\\r\\n <div id=\\\"feedbackRatingOptions\\\" class=\\\"imageChoices\\\">\\r\\n <!-- one star -->\\r\\n <svg\\r\\n id=\\\"feedbackRating1\\\"\\r\\n [class.active]=\\\"score === point.one\\\"\\r\\n (click)=\\\"onClick(point.one)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M42.9323 49.1925C42.4523 49.1925 41.9723 49.0088 41.6048 48.645C34.5 38.6107 25.5 39 18.3911 47.645C17.6598 48.3763 16.4711 48.3763 15.7398 47.645C15.0086 46.9138 15.0086 45.725 15.7398 44.9938C19.2836 41.4538 24.9898 37.5 29.9998 37.5C35.0098 37.5 40.7161 42.4538 44.2561 45.9938C44.9873 46.725 44.9873 47.9138 44.2561 48.645C43.8923 49.0125 43.4123 49.1925 42.9323 49.1925Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M18.75 26.25C20.8211 26.25 22.5 24.5711 22.5 22.5C22.5 20.4289 20.8211 18.75 18.75 18.75C16.6789 18.75 15 20.4289 15 22.5C15 24.5711 16.6789 26.25 18.75 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 26.25C43.3211 26.25 45 24.5711 45 22.5C45 20.4289 43.3211 18.75 41.25 18.75C39.1789 18.75 37.5 20.4289 37.5 22.5C37.5 24.5711 39.1789 26.25 41.25 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M22.876 76C24.748 76 26.428 75.52 26.428 73.552C26.428 72.508 25.936 71.812 24.82 71.452V71.428C25.684 71.092 26.116 70.42 26.116 69.568C26.116 68.116 25.084 67.384 22.684 67.384H19.948V76H22.876ZM21.568 70.936V68.74H22.66C23.524 68.74 24.46 68.836 24.46 69.772C24.46 70.78 23.5 70.936 22.78 70.936H21.568ZM21.568 74.644V72.16H23.008C24.076 72.16 24.772 72.508 24.772 73.42C24.772 74.236 24.256 74.644 22.888 74.644H21.568ZM32.7436 76L32.6356 74.872V71.8C32.6356 70.324 31.8916 69.616 30.2836 69.616C29.1676 69.616 28.2916 69.964 27.7396 70.888L28.7836 71.536C29.1316 70.984 29.5516 70.72 30.1876 70.72C30.9916 70.72 31.2796 71.068 31.2076 71.908C30.0796 72.124 29.1196 72.352 28.4956 72.7C27.8116 73.084 27.4636 73.624 27.4636 74.428C27.4636 75.472 28.1116 76.12 29.1556 76.12C29.9236 76.12 30.6076 75.808 31.2076 75.304L31.3156 76H32.7436ZM31.1596 74.332C30.7876 74.752 30.2476 75.004 29.7316 75.004C29.2516 75.004 28.9516 74.716 28.9516 74.224C28.9516 73.84 29.1076 73.528 29.4196 73.348C29.8156 73.132 30.2836 73.012 31.1596 72.832V74.332ZM39.474 76V67.384H38.01V70.324C37.566 69.892 37.014 69.664 36.402 69.664C34.854 69.664 33.87 70.948 33.87 72.952C33.87 74.86 34.734 76.144 36.234 76.144C37.038 76.144 37.578 75.844 38.154 75.316L38.346 76H39.474ZM38.01 74.236C37.698 74.668 37.206 74.932 36.738 74.932C35.886 74.932 35.358 74.212 35.358 72.964C35.358 71.644 35.85 70.852 36.762 70.852C37.254 70.852 37.698 71.092 38.01 71.512V74.236Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- two stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating2\\\"\\r\\n [class.active]=\\\"score === point.two\\\"\\r\\n (click)=\\\"onClick(point.two)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M41.9323 46.1925C41.4523 46.1925 40.9723 46.0088 40.6048 45.645C34.9348 39.975 25.0573 39.975 19.3911 45.645C18.6598 46.3763 17.4711 46.3763 16.7398 45.645C16.0086 44.9138 16.0086 43.725 16.7398 42.9938C20.2836 39.4538 24.9898 37.5 29.9998 37.5C35.0098 37.5 39.7161 39.4538 43.2561 42.9938C43.9873 43.725 43.9873 44.9138 43.2561 45.645C42.8923 46.0125 42.4123 46.1925 41.9323 46.1925Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M18.75 26.25C20.8211 26.25 22.5 24.5711 22.5 22.5C22.5 20.4289 20.8211 18.75 18.75 18.75C16.6789 18.75 15 20.4289 15 22.5C15 24.5711 16.6789 26.25 18.75 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 26.25C43.3211 26.25 45 24.5711 45 22.5C45 20.4289 43.3211 18.75 41.25 18.75C39.1789 18.75 37.5 20.4289 37.5 22.5C37.5 24.5711 39.1789 26.25 41.25 26.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M20.604 76V72.712H21.888C24.012 72.712 25.236 71.86 25.236 70.024C25.236 68.248 24.144 67.384 21.912 67.384H18.948V76H20.604ZM20.604 71.356V68.776H22.02C23.016 68.776 23.58 69.184 23.58 70.024C23.58 71.152 22.728 71.356 21.96 71.356H20.604ZM28.5699 76.144C30.2979 76.144 31.3539 74.92 31.3539 72.904C31.3539 70.84 30.2979 69.616 28.5699 69.616C26.8299 69.616 25.7739 70.84 25.7739 72.904C25.7739 74.92 26.8299 76.144 28.5699 76.144ZM28.5699 74.992C27.6579 74.992 27.2619 74.152 27.2619 72.904C27.2619 71.692 27.6339 70.768 28.5699 70.768C29.4939 70.768 29.8659 71.692 29.8659 72.904C29.8659 74.152 29.4699 74.992 28.5699 74.992ZM35.0918 76.144C36.8198 76.144 37.8758 74.92 37.8758 72.904C37.8758 70.84 36.8198 69.616 35.0918 69.616C33.3518 69.616 32.2958 70.84 32.2958 72.904C32.2958 74.92 33.3518 76.144 35.0918 76.144ZM35.0918 74.992C34.1798 74.992 33.7838 74.152 33.7838 72.904C33.7838 71.692 34.1558 70.768 35.0918 70.768C36.0158 70.768 36.3878 71.692 36.3878 72.904C36.3878 74.152 35.9918 74.992 35.0918 74.992ZM40.6297 76V72.208C41.0257 71.464 41.5537 70.984 42.2857 70.984C42.3337 70.984 42.4057 70.984 42.5137 70.996V69.628C42.4297 69.616 42.3937 69.616 42.3217 69.616C41.5417 69.616 40.9657 70.06 40.5217 70.9V69.76H39.1777V76H40.6297Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- three stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating3\\\"\\r\\n [class.active]=\\\"score === point.three\\\"\\r\\n (click)=\\\"onClick(point.three)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M18.75 25.5C20.8211 25.5 22.5 23.8211 22.5 21.75C22.5 19.6789 20.8211 18 18.75 18C16.6789 18 15 19.6789 15 21.75C15 23.8211 16.6789 25.5 18.75 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 25.5C43.3211 25.5 45 23.8211 45 21.75C45 19.6789 43.3211 18 41.25 18C39.1789 18 37.5 19.6789 37.5 21.75C37.5 23.8211 39.1789 25.5 41.25 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M39.375 44.25H20.625C19.59 44.25 18.75 43.41 18.75 42.375C18.75 41.34 19.59 40.5 20.625 40.5H39.375C40.41 40.5 41.25 41.34 41.25 42.375C41.25 43.41 40.41 44.25 39.375 44.25Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M26.152 76.144C28.528 76.144 29.824 74.38 29.824 71.692C29.824 69.4 28.78 67.24 26.152 67.24C23.536 67.24 22.48 69.4 22.48 71.692C22.48 74.38 23.788 76.144 26.152 76.144ZM26.152 74.8C24.832 74.8 24.136 73.648 24.136 71.692C24.136 69.724 24.844 68.56 26.152 68.56C27.46 68.56 28.18 69.724 28.18 71.692C28.18 73.648 27.472 74.8 26.152 74.8ZM36.6726 76L34.5486 71.908L36.3966 69.76H34.7526L32.6526 72.448H32.6286V67.384H31.1886V76H32.6286V74.128L33.5646 73.06L35.1006 76H36.6726Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- four stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating4\\\"\\r\\n [class.active]=\\\"score === point.four\\\"\\r\\n (click)=\\\"onClick(point.four)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M18.75 25.5C20.8211 25.5 22.5 23.8211 22.5 21.75C22.5 19.6789 20.8211 18 18.75 18C16.6789 18 15 19.6789 15 21.75C15 23.8211 16.6789 25.5 18.75 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 25.5C43.3211 25.5 45 23.8211 45 21.75C45 19.6789 43.3211 18 41.25 18C39.1789 18 37.5 19.6789 37.5 21.75C37.5 23.8211 39.1789 25.5 41.25 25.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M29.9998 48.0001C24.9898 48.0001 20.2836 46.0463 16.7398 42.5063C16.0086 41.7751 16.0086 40.5863 16.7398 39.8551C17.4711 39.1238 18.6598 39.1238 19.3911 39.8551C25.0573 45.5251 34.9348 45.5251 40.6048 39.8551C41.3361 39.1238 42.5248 39.1238 43.2561 39.8551C43.9873 40.5863 43.9873 41.7751 43.2561 42.5063C39.7161 46.0463 35.0098 48.0001 29.9998 48.0001Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M25.332 76V71.716H22.164V72.916H23.88C23.892 73.012 23.892 73.084 23.892 73.156C23.892 74.188 23.22 74.812 22.164 74.812C20.736 74.812 20.136 73.684 20.136 71.668C20.136 69.688 20.88 68.608 22.068 68.608C22.884 68.608 23.448 68.98 23.748 70.084L25.248 69.796C24.828 68.02 23.772 67.24 22.068 67.24C19.812 67.24 18.48 68.848 18.48 71.656C18.48 74.428 19.62 76.144 21.828 76.144C22.728 76.144 23.436 75.868 24 75.208H24.024V76H25.332ZM29.3433 76.144C31.0713 76.144 32.1273 74.92 32.1273 72.904C32.1273 70.84 31.0713 69.616 29.3433 69.616C27.6033 69.616 26.5473 70.84 26.5473 72.904C26.5473 74.92 27.6033 76.144 29.3433 76.144ZM29.3433 74.992C28.4313 74.992 28.0353 74.152 28.0353 72.904C28.0353 71.692 28.4073 70.768 29.3433 70.768C30.2673 70.768 30.6393 71.692 30.6393 72.904C30.6393 74.152 30.2433 74.992 29.3433 74.992ZM35.8652 76.144C37.5932 76.144 38.6492 74.92 38.6492 72.904C38.6492 70.84 37.5932 69.616 35.8652 69.616C34.1252 69.616 33.0692 70.84 33.0692 72.904C33.0692 74.92 34.1252 76.144 35.8652 76.144ZM35.8652 74.992C34.9532 74.992 34.5572 74.152 34.5572 72.904C34.5572 71.692 34.9292 70.768 35.8652 70.768C36.7892 70.768 37.1612 71.692 37.1612 72.904C37.1612 74.152 36.7652 74.992 35.8652 74.992ZM45.1951 76V67.384H43.7311V70.324C43.2871 69.892 42.7351 69.664 42.1231 69.664C40.5751 69.664 39.5911 70.948 39.5911 72.952C39.5911 74.86 40.4551 76.144 41.9551 76.144C42.7591 76.144 43.2991 75.844 43.8751 75.316L44.0671 76H45.1951ZM43.7311 74.236C43.4191 74.668 42.9271 74.932 42.4591 74.932C41.6071 74.932 41.0791 74.212 41.0791 72.964C41.0791 71.644 41.5711 70.852 42.4831 70.852C42.9751 70.852 43.4191 71.092 43.7311 71.512V74.236Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n <!-- five stars -->\\r\\n <svg\\r\\n id=\\\"feedbackRating5\\\"\\r\\n [class.active]=\\\"score === point.five\\\"\\r\\n (click)=\\\"onClick(point.five)\\\"\\r\\n width=\\\"60\\\"\\r\\n height=\\\"77\\\"\\r\\n viewBox=\\\"0 0 60 77\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <circle cx=\\\"30\\\" cy=\\\"30\\\" r=\\\"29.5\\\" stroke=\\\"var(--active-rating-color)\\\" fill=\\\"var(--active-rating-color-white)\\\" />\\r\\n <path\\r\\n d=\\\"M44.3402 36.4851C44.1087 36.1804 43.7504 36 43.3701 36H17.5814C17.1987 36 16.8404 36.1779 16.6112 36.4826C16.3772 36.7898 16.3041 37.1822 16.4065 37.5502C18.1688 43.8122 23.9554 48.1875 30.4733 48.1875C36.9912 48.1875 42.7778 43.8122 44.5401 37.5502C44.6449 37.1822 44.5718 36.7897 44.3402 36.4851Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M18.75 23.5C20.8211 23.5 22.5 21.8211 22.5 19.75C22.5 17.6789 20.8211 16 18.75 16C16.6789 16 15 17.6789 15 19.75C15 21.8211 16.6789 23.5 18.75 23.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M41.25 23.5C43.3211 23.5 45 21.8211 45 19.75C45 17.6789 43.3211 16 41.25 16C39.1789 16 37.5 17.6789 37.5 19.75C37.5 21.8211 39.1789 23.5 41.25 23.5Z\\\"\\r\\n fill=\\\"var(--active-rating-color)\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M14.648 76V74.608H10.604V72.232H13.4V70.888H10.604V68.776H14.516V67.384H8.948V76H14.648ZM20.8449 76L18.7809 72.724L20.6889 69.76H19.0929L17.9529 71.644H17.9289L16.7889 69.76H15.1569L17.0889 72.724L15.0009 76H16.5849L17.9169 73.84H17.9409L19.2609 76H20.8449ZM25.6074 73.924C25.2594 74.62 24.8154 74.956 24.1674 74.956C23.3154 74.956 22.7514 74.308 22.7514 72.916C22.7514 71.536 23.3034 70.804 24.1554 70.804C24.7674 70.792 25.1634 71.104 25.4514 71.788L26.6274 71.32C26.2074 70.108 25.3194 69.616 24.1314 69.616C22.4154 69.616 21.3114 70.84 21.3114 72.904C21.3114 74.908 22.3434 76.144 24.0594 76.144C25.2834 76.144 26.1354 75.64 26.7354 74.524L25.6074 73.924ZM32.9286 74.572L31.8246 74.008C31.4766 74.68 31.0206 74.98 30.3606 74.98C29.3886 74.98 29.0166 74.272 28.9566 73.156H32.9406C32.9526 72.976 32.9526 72.856 32.9526 72.76C32.9526 70.84 32.0646 69.616 30.2886 69.616C28.6566 69.616 27.5286 70.864 27.5286 72.844C27.5286 74.776 28.4406 76.144 30.2526 76.144C31.3206 76.144 32.2686 75.76 32.9286 74.572ZM30.3006 70.72C31.0806 70.72 31.5486 71.296 31.5486 72.184H28.9806C29.1006 71.344 29.5206 70.72 30.3006 70.72ZM35.6632 76V67.384H34.2112V76H35.6632ZM38.775 76V67.384H37.323V76H38.775ZM45.4747 74.572L44.3707 74.008C44.0227 74.68 43.5667 74.98 42.9067 74.98C41.9347 74.98 41.5627 74.272 41.5027 73.156H45.4867C45.4987 72.976 45.4987 72.856 45.4987 72.76C45.4987 70.84 44.6107 69.616 42.8347 69.616C41.2027 69.616 40.0747 70.864 40.0747 72.844C40.0747 74.776 40.9867 76.144 42.7987 76.144C43.8667 76.144 44.8147 75.76 45.4747 74.572ZM42.8467 70.72C43.6267 70.72 44.0947 71.296 44.0947 72.184H41.5267C41.6467 71.344 42.0667 70.72 42.8467 70.72ZM51.9173 76V71.872C51.9173 71.104 51.8333 70.696 51.6533 70.384C51.3773 69.892 50.8733 69.616 50.1533 69.616C49.4093 69.616 48.7733 69.916 48.1013 70.528V69.76H46.7573V76H48.2093V71.56C48.7493 71.044 49.1693 70.864 49.5893 70.864C50.1533 70.864 50.4533 71.176 50.4533 71.872V76H51.9173ZM56.5262 74.8C56.2862 74.86 56.0702 74.884 55.8542 74.884C55.4222 74.884 55.2422 74.668 55.2422 74.164V70.888H56.5262V69.76H55.2422V67.684H53.7782V69.76H52.8662V70.888H53.7782V74.272C53.7782 75.664 54.2342 76.096 55.4222 76.096C55.8182 76.096 56.1782 76.048 56.5262 75.988V74.8Z\\\"\\r\\n fill=\\\"var(--active-rating-color-white)\\\"\\r\\n />\\r\\n </svg>\\r\\n </div>\\r\\n <div>\\r\\n <label dhclLongTextInput [minHeightInLines]=\\\"3\\\" [maxHeightInLines]=\\\"10\\\">\\r\\n <span id=\\\"feedbackCommentPrompt\\\">Tell us how we can improve your experience (optional).</span>\\r\\n <textarea id=\\\"feedbackComment\\\" aria-label=\\\"comment\\\" placeholder=\\\"comment\\\" [attr.maxlength]=\\\"maxLength\\\" (input)=\\\"feedBack = $event.target.value\\\"></textarea>\\r\\n <div class=\\\"dhcl-long-text-input-status\\\">\\r\\n <div></div>\\r\\n <div class=\\\"dhcl-long-text-input-characters-remaining\\\"></div>\\r\\n </div>\\r\\n </label>\\r\\n </div>\\r\\n <div class=\\\"cta-wrapper\\\">\\r\\n <button\\r\\n dhclButton\\r\\n buttonType=\\\"primary\\\"\\r\\n buttonSize=\\\"medium\\\"\\r\\n aria-label=\\\"Submit\\\"\\r\\n id=\\\"feedbackSubmitButton\\\"\\r\\n [disabled]=\\\"isSubmit\\\"\\r\\n (click)=\\\"onSubmit()\\\"\\r\\n >\\r\\n Submit\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-feedbackSurvey-container{--active-rating-color: var(--dhcl-color-primary);--active-rating-color-white: var(--dhcl-color-white);margin:25px 35px 0}.dhcl-feedbackSurvey-container h1{line-height:34px;font-size:30px}.dhcl-feedbackSurvey-container .pc{font-size:.75rem;top:66.08%;bottom:32.41%}.dhcl-feedbackSurvey-container .imageChoices{margin-bottom:16px}.dhcl-feedbackSurvey-container svg{width:calc(20% - 10px);max-width:60px;margin:0 5px}.dhcl-feedbackSurvey-container svg.active{--active-rating-color: var(--dhcl-color-white);--active-rating-color-white: var(--dhcl-color-primary)}@media (max-width: 420px){.dhcl-feedbackSurvey-container{margin:20px 0 0}.dhcl-feedbackSurvey-container textarea{min-height:150px}}.dhcl-feedbackSurvey-container .cta-wrapper{margin-top:30px}@media (max-width: 420px){.dhcl-feedbackSurvey-container .cta-wrapper button .dhcl-button{width:100%}}@media (max-width: 420px){.dhcl-feedbackSurvey-container .cta-wrapper div.cta-nav-link-wrapper{width:100%}}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { visible: [{\n type: Input\n }], maxLength: [{\n type: Input\n }], feedbackType: [{\n type: Input\n }], feedbackResult: [{\n type: Output\n }] } });\n\nclass ButtonModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: ButtonModule, declarations: [ButtonDirective], imports: [CommonModule], exports: [ButtonDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ButtonModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ButtonModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [ButtonDirective],\n imports: [CommonModule],\n exports: [ButtonDirective]\n }]\n }] });\n\nclass LongTextInputModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LongTextInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: LongTextInputModule, declarations: [LongTextInputDirective], imports: [CommonModule], exports: [LongTextInputDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LongTextInputModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: LongTextInputModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [LongTextInputDirective],\n imports: [CommonModule],\n exports: [LongTextInputDirective]\n }]\n }] });\n\nclass FeedbackSurveyModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackSurveyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackSurveyModule, declarations: [FeedbackSurveyComponent], imports: [CommonModule, ButtonModule, LongTextInputModule], exports: [FeedbackSurveyComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackSurveyModule, imports: [CommonModule, ButtonModule, LongTextInputModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackSurveyModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [FeedbackSurveyComponent],\n imports: [CommonModule, ButtonModule, LongTextInputModule],\n exports: [FeedbackSurveyComponent]\n }]\n }] });\n\nclass FeedbackConfirmationComponent {\n isVisible = true;\n set visible(value) {\n if (value) {\n this.isVisible = value;\n }\n }\n get visible() {\n return this.isVisible;\n }\n constructor() {\n }\n ngOnInit() {\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackConfirmationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FeedbackConfirmationComponent, selector: \"dhcl-feedback-confirmation\", inputs: { visible: \"visible\" }, ngImport: i0, template: \"<div *ngIf=\\\"visible\\\" class=\\\"dhcl-feedbackConfirmation-container\\\" id=\\\"feedbackConfirmation\\\">\\r\\n <h1>Thank you!</h1>\\r\\n <p>Your feedback has been submitted. We appreciate your time and effort.</p>\\r\\n <div>\\r\\n <svg id=\\\"feedbackConfirmationImg\\\" width=\\\"196\\\" height=\\\"174\\\" viewBox=\\\"0 0 196 174\\\" fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"86.861\\\" cy=\\\"86.861\\\" r=\\\"81.861\\\" stroke=\\\"var(--dhcl-color-primary)\\\" stroke-width=\\\"10\\\" />\\r\\n <mask id=\\\"path-2-outside-1\\\" maskUnits=\\\"userSpaceOnUse\\\" x=\\\"46.3594\\\" y=\\\"16.2603\\\" width=\\\"149\\\" height=\\\"109\\\"\\r\\n fill=\\\"black\\\">\\r\\n <rect fill=\\\"white\\\" x=\\\"46.3594\\\" y=\\\"16.2603\\\" width=\\\"149\\\" height=\\\"109\\\" />\\r\\n <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M183.522 34.8812C185.494 32.9091 185.494 29.7116 183.522 27.7394C181.55 25.7672 178.352 25.7672 176.38 27.7394L101.002 103.118L64.9804 67.0962C63.0082 65.124 59.8107 65.124 57.8385 67.0962C55.8663 69.0684 55.8663 72.2659 57.8385 74.2381L96.623 113.023C97.8459 114.245 99.54 114.71 101.121 114.416C102.642 114.635 104.244 114.159 105.414 112.989L183.522 34.8812Z\\\" />\\r\\n </mask>\\r\\n <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M183.522 34.8812C185.494 32.9091 185.494 29.7116 183.522 27.7394C181.55 25.7672 178.352 25.7672 176.38 27.7394L101.002 103.118L64.9804 67.0962C63.0082 65.124 59.8107 65.124 57.8385 67.0962C55.8663 69.0684 55.8663 72.2659 57.8385 74.2381L96.623 113.023C97.8459 114.245 99.54 114.71 101.121 114.416C102.642 114.635 104.244 114.159 105.414 112.989L183.522 34.8812Z\\\"\\r\\n fill=\\\"var(--dhcl-color-primary)\\\" />\\r\\n <path\\r\\n d=\\\"M183.522 27.7394L190.593 20.6683L190.593 20.6683L183.522 27.7394ZM183.522 34.8812L190.593 41.9523V41.9523L183.522 34.8812ZM176.38 27.7394L169.309 20.6683L169.309 20.6683L176.38 27.7394ZM101.002 103.118L93.9308 110.189L101.002 117.26L108.073 110.189L101.002 103.118ZM64.9804 67.0962L57.9093 74.1673H57.9093L64.9804 67.0962ZM57.8385 67.0962L64.9096 74.1673H64.9096L57.8385 67.0962ZM57.8385 74.2381L50.7674 81.3091H50.7674L57.8385 74.2381ZM96.623 113.023L89.5519 120.094L89.5519 120.094L96.623 113.023ZM101.121 114.416L102.544 104.518L100.914 104.284L99.2942 104.585L101.121 114.416ZM105.414 112.989L112.485 120.06L112.485 120.06L105.414 112.989ZM176.451 34.8104C174.518 32.8774 174.518 29.7433 176.451 27.8102L190.593 41.9523C196.47 36.0749 196.47 26.5457 190.593 20.6683L176.451 34.8104ZM183.451 34.8105C181.518 36.7435 178.384 36.7435 176.451 34.8105L190.593 20.6683C184.716 14.7909 175.187 14.7909 169.309 20.6683L183.451 34.8105ZM108.073 110.189L183.451 34.8105L169.309 20.6683L93.9308 96.0466L108.073 110.189ZM57.9093 74.1673L93.9308 110.189L108.073 96.0466L72.0514 60.0251L57.9093 74.1673ZM64.9096 74.1673C62.9765 76.1003 59.8424 76.1003 57.9093 74.1673L72.0514 60.0251C66.174 54.1477 56.6448 54.1477 50.7674 60.0251L64.9096 74.1673ZM64.9096 67.167C66.8426 69.1001 66.8426 72.2342 64.9096 74.1673L50.7674 60.0251C44.89 65.9025 44.89 75.4317 50.7674 81.3091L64.9096 67.167ZM103.694 105.951L64.9096 67.167L50.7674 81.3091L89.5519 120.094L103.694 105.951ZM99.2942 104.585C100.814 104.302 102.489 104.746 103.694 105.951L89.5519 120.094C93.2027 123.744 98.2656 125.118 102.948 124.248L99.2942 104.585ZM98.3434 105.918C99.4952 104.766 101.081 104.308 102.544 104.518L99.6978 124.315C104.203 124.962 108.993 123.552 112.485 120.06L98.3434 105.918ZM176.451 27.8102L98.3433 105.918L112.485 120.06L190.593 41.9523L176.451 27.8102Z\\\"\\r\\n fill=\\\"white\\\" mask=\\\"url(#path-2-outside-1)\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-feedbackConfirmation-container{margin:20px}.dhcl-feedbackConfirmation-container .p1{color:var(--dhcl-color-gray-dark);background-color:var(--dhcl-color-gray-light);padding:10px}.dhcl-feedbackConfirmation-container svg{padding:5px;margin-top:50px;display:block;margin-left:auto;margin-right:auto}.dhcl-feedbackConfirmation-container textarea{float:left;width:100%;min-height:100px;height:auto;outline:none;resize:none;border:1px solid grey}.dhcl-feedbackConfirmation-container button{transition:none!important;max-width:95%!important}.dhcl-feedbackConfirmation-container .cta-wrapper{line-height:8rem}.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:250px;height:50px}@media (max-width: 399px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:100%;bottom:0%}}@media (max-width: 420px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:85vw;bottom:0%;transform:translate(-50%,-20px)}}@media (max-width: 768px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:85vw;position:absolute;bottom:0%;left:50%;transform:translate(-50%,-20px)}}@media (max-width: 991px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:100%;margin:0}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackConfirmationComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-feedback-confirmation', template: \"<div *ngIf=\\\"visible\\\" class=\\\"dhcl-feedbackConfirmation-container\\\" id=\\\"feedbackConfirmation\\\">\\r\\n <h1>Thank you!</h1>\\r\\n <p>Your feedback has been submitted. We appreciate your time and effort.</p>\\r\\n <div>\\r\\n <svg id=\\\"feedbackConfirmationImg\\\" width=\\\"196\\\" height=\\\"174\\\" viewBox=\\\"0 0 196 174\\\" fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"86.861\\\" cy=\\\"86.861\\\" r=\\\"81.861\\\" stroke=\\\"var(--dhcl-color-primary)\\\" stroke-width=\\\"10\\\" />\\r\\n <mask id=\\\"path-2-outside-1\\\" maskUnits=\\\"userSpaceOnUse\\\" x=\\\"46.3594\\\" y=\\\"16.2603\\\" width=\\\"149\\\" height=\\\"109\\\"\\r\\n fill=\\\"black\\\">\\r\\n <rect fill=\\\"white\\\" x=\\\"46.3594\\\" y=\\\"16.2603\\\" width=\\\"149\\\" height=\\\"109\\\" />\\r\\n <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M183.522 34.8812C185.494 32.9091 185.494 29.7116 183.522 27.7394C181.55 25.7672 178.352 25.7672 176.38 27.7394L101.002 103.118L64.9804 67.0962C63.0082 65.124 59.8107 65.124 57.8385 67.0962C55.8663 69.0684 55.8663 72.2659 57.8385 74.2381L96.623 113.023C97.8459 114.245 99.54 114.71 101.121 114.416C102.642 114.635 104.244 114.159 105.414 112.989L183.522 34.8812Z\\\" />\\r\\n </mask>\\r\\n <path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M183.522 34.8812C185.494 32.9091 185.494 29.7116 183.522 27.7394C181.55 25.7672 178.352 25.7672 176.38 27.7394L101.002 103.118L64.9804 67.0962C63.0082 65.124 59.8107 65.124 57.8385 67.0962C55.8663 69.0684 55.8663 72.2659 57.8385 74.2381L96.623 113.023C97.8459 114.245 99.54 114.71 101.121 114.416C102.642 114.635 104.244 114.159 105.414 112.989L183.522 34.8812Z\\\"\\r\\n fill=\\\"var(--dhcl-color-primary)\\\" />\\r\\n <path\\r\\n d=\\\"M183.522 27.7394L190.593 20.6683L190.593 20.6683L183.522 27.7394ZM183.522 34.8812L190.593 41.9523V41.9523L183.522 34.8812ZM176.38 27.7394L169.309 20.6683L169.309 20.6683L176.38 27.7394ZM101.002 103.118L93.9308 110.189L101.002 117.26L108.073 110.189L101.002 103.118ZM64.9804 67.0962L57.9093 74.1673H57.9093L64.9804 67.0962ZM57.8385 67.0962L64.9096 74.1673H64.9096L57.8385 67.0962ZM57.8385 74.2381L50.7674 81.3091H50.7674L57.8385 74.2381ZM96.623 113.023L89.5519 120.094L89.5519 120.094L96.623 113.023ZM101.121 114.416L102.544 104.518L100.914 104.284L99.2942 104.585L101.121 114.416ZM105.414 112.989L112.485 120.06L112.485 120.06L105.414 112.989ZM176.451 34.8104C174.518 32.8774 174.518 29.7433 176.451 27.8102L190.593 41.9523C196.47 36.0749 196.47 26.5457 190.593 20.6683L176.451 34.8104ZM183.451 34.8105C181.518 36.7435 178.384 36.7435 176.451 34.8105L190.593 20.6683C184.716 14.7909 175.187 14.7909 169.309 20.6683L183.451 34.8105ZM108.073 110.189L183.451 34.8105L169.309 20.6683L93.9308 96.0466L108.073 110.189ZM57.9093 74.1673L93.9308 110.189L108.073 96.0466L72.0514 60.0251L57.9093 74.1673ZM64.9096 74.1673C62.9765 76.1003 59.8424 76.1003 57.9093 74.1673L72.0514 60.0251C66.174 54.1477 56.6448 54.1477 50.7674 60.0251L64.9096 74.1673ZM64.9096 67.167C66.8426 69.1001 66.8426 72.2342 64.9096 74.1673L50.7674 60.0251C44.89 65.9025 44.89 75.4317 50.7674 81.3091L64.9096 67.167ZM103.694 105.951L64.9096 67.167L50.7674 81.3091L89.5519 120.094L103.694 105.951ZM99.2942 104.585C100.814 104.302 102.489 104.746 103.694 105.951L89.5519 120.094C93.2027 123.744 98.2656 125.118 102.948 124.248L99.2942 104.585ZM98.3434 105.918C99.4952 104.766 101.081 104.308 102.544 104.518L99.6978 124.315C104.203 124.962 108.993 123.552 112.485 120.06L98.3434 105.918ZM176.451 27.8102L98.3433 105.918L112.485 120.06L190.593 41.9523L176.451 27.8102Z\\\"\\r\\n fill=\\\"white\\\" mask=\\\"url(#path-2-outside-1)\\\" />\\r\\n </svg>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhcl-feedbackConfirmation-container{margin:20px}.dhcl-feedbackConfirmation-container .p1{color:var(--dhcl-color-gray-dark);background-color:var(--dhcl-color-gray-light);padding:10px}.dhcl-feedbackConfirmation-container svg{padding:5px;margin-top:50px;display:block;margin-left:auto;margin-right:auto}.dhcl-feedbackConfirmation-container textarea{float:left;width:100%;min-height:100px;height:auto;outline:none;resize:none;border:1px solid grey}.dhcl-feedbackConfirmation-container button{transition:none!important;max-width:95%!important}.dhcl-feedbackConfirmation-container .cta-wrapper{line-height:8rem}.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:250px;height:50px}@media (max-width: 399px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:100%;bottom:0%}}@media (max-width: 420px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:85vw;bottom:0%;transform:translate(-50%,-20px)}}@media (max-width: 768px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:85vw;position:absolute;bottom:0%;left:50%;transform:translate(-50%,-20px)}}@media (max-width: 991px){.dhcl-feedbackConfirmation-container .cta-wrapper .save-continue{width:100%;margin:0}}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { visible: [{\n type: Input\n }] } });\n\nclass FeedbackConfirmationModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackConfirmationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackConfirmationModule, declarations: [FeedbackConfirmationComponent], imports: [CommonModule], exports: [FeedbackConfirmationComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackConfirmationModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FeedbackConfirmationModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [FeedbackConfirmationComponent],\n imports: [CommonModule],\n exports: [FeedbackConfirmationComponent]\n }]\n }] });\n\n/**\n * Back button component displays a button to navigate users back to previous page\n * This component can be used with a warning message modal and on showModalStatus\n * set to true this component emits an event that can be used to display modal.\n *\n * However, there are certain areas this component could be improved. For now this component uses a\n * parent component to communicate with the warning/save changes modal. One way to improve\n * this would be being able to intergarte model into this component. Show and hide dialog/\n * modal through this component could simplify things.\n *\n *\n */\nclass BackButtonComponent {\n location;\n isVisible = true;\n emitEvent = false;\n clicked = new EventEmitter();\n constructor(location) {\n this.location = location;\n }\n back(event) {\n event.preventDefault();\n if (this.emitEvent === false) {\n this.goBack();\n }\n else {\n this.clicked.emit(true);\n }\n }\n /**\n * Parent component should use a view child to invoke this method\n * whenever there is a warning/save changes prompt/modal is used\n * with this component\n *\n */\n goBack() {\n this.clicked.emit(false);\n this.location.back();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BackButtonComponent, deps: [{ token: i1.Location }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: BackButtonComponent, selector: \"dhcl-back-button\", inputs: { isVisible: \"isVisible\", emitEvent: \"emitEvent\" }, outputs: { clicked: \"clicked\" }, ngImport: i0, template: \"<div class=\\\"back-button\\\" *ngIf=\\\"isVisible\\\">\\r\\n <a (click)=\\\"back($event)\\\" id=\\\"backButton\\\">\\r\\n <svg width=\\\"9\\\" height=\\\"16\\\" viewBox=\\\"0 0 9 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M8 1L1 8L8 15\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" />\\r\\n </svg>\\r\\n <span>Back</span></a>\\r\\n</div>\", styles: [\".back-button{float:left;cursor:pointer;padding-left:17px;vertical-align:middle;line-height:40px}.back-button a{text-decoration:none}.back-button a svg{max-height:16px;vertical-align:middle}.back-button a span{font-style:normal;font-weight:700;font-size:.75rem;color:var(--dhcl-color-secondary);padding-left:7px;vertical-align:middle}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BackButtonComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhcl-back-button', template: \"<div class=\\\"back-button\\\" *ngIf=\\\"isVisible\\\">\\r\\n <a (click)=\\\"back($event)\\\" id=\\\"backButton\\\">\\r\\n <svg width=\\\"9\\\" height=\\\"16\\\" viewBox=\\\"0 0 9 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M8 1L1 8L8 15\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" />\\r\\n </svg>\\r\\n <span>Back</span></a>\\r\\n</div>\", styles: [\".back-button{float:left;cursor:pointer;padding-left:17px;vertical-align:middle;line-height:40px}.back-button a{text-decoration:none}.back-button a svg{max-height:16px;vertical-align:middle}.back-button a span{font-style:normal;font-weight:700;font-size:.75rem;color:var(--dhcl-color-secondary);padding-left:7px;vertical-align:middle}\\n\"] }]\n }], ctorParameters: () => [{ type: i1.Location }], propDecorators: { isVisible: [{\n type: Input\n }], emitEvent: [{\n type: Input\n }], clicked: [{\n type: Output\n }] } });\n\nclass BackButtonModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BackButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: BackButtonModule, declarations: [BackButtonComponent], imports: [ModalModule, CommonModule, ButtonModule], exports: [BackButtonComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BackButtonModule, imports: [ModalModule, CommonModule, ButtonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: BackButtonModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [BackButtonComponent],\n imports: [ModalModule, CommonModule, ButtonModule],\n exports: [BackButtonComponent],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n }]\n }] });\n\nclass AddToCalendarDirective {\n eventDetails;\n fileToDownload;\n onClick() {\n let VCALENDAR = `BEGIN:VCALENDAR\r\nVERSION:2.0\r\n`;\n const event = this.eventDetails;\n const timeStamp = event.timeStamp;\n /**\n * Don't ever format this string template!!!\n */\n const EVENT = `BEGIN:VEVENT\r\nDTSTAMP:${timeStamp}Z\r\nORGANIZER;CN=${event.organizer}:MAILTO:${event.mailTo}\r\nSTATUS:CONFIRMED\r\nDTSTART:${event.start}\r\nDTEND:${event.end}\r\nSUMMARY:${event.summary}\r\nDESCRIPTION:${event.description}\r\nX-ALT-DESC;FMTTYPE=text/html:${decodeURI(event.htmlDescription)}\r\nLOCATION:${event.location}\r\nUID:${event.uid}\r\nEND:VEVENT`;\n VCALENDAR += `${EVENT}\r\n`;\n VCALENDAR += `END:VCALENDAR`;\n let blob = new Blob([VCALENDAR], { type: 'text/html' });\n if (this.isIOS()) {\n blob = new Blob([VCALENDAR], { type: 'text/calendar' });\n const reader = new FileReader();\n reader.onload = () => {\n window.location.href = reader.result;\n };\n reader.readAsDataURL(blob);\n }\n else {\n const url = window.URL.createObjectURL(blob);\n const a = document.createElement('a');\n document.body.appendChild(a);\n a.setAttribute('style', 'display: none');\n a.href = url;\n a.download = this.fileToDownload;\n a.click();\n window.URL.revokeObjectURL(url);\n a.remove();\n }\n }\n constructor() { }\n isIOS() {\n const userAgent = navigator.userAgent || navigator.vendor || window['opera'];\n if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {\n return true;\n }\n return false;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AddToCalendarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AddToCalendarDirective, selector: \"[dhclAddtocalendar]\", inputs: { eventDetails: \"eventDetails\", fileToDownload: \"fileToDownload\" }, host: { listeners: { \"click\": \"onClick()\" } }, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AddToCalendarDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclAddtocalendar]',\n }]\n }], ctorParameters: () => [], propDecorators: { eventDetails: [{\n type: Input\n }], fileToDownload: [{\n type: Input\n }], onClick: [{\n type: HostListener,\n args: ['click']\n }] } });\n\nclass AddToCalendarModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AddToCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: AddToCalendarModule, declarations: [AddToCalendarDirective], imports: [CommonModule], exports: [AddToCalendarDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AddToCalendarModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AddToCalendarModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [AddToCalendarDirective],\n imports: [CommonModule],\n exports: [AddToCalendarDirective]\n }]\n }] });\n\nclass DropdownInputDirective {\n el;\n noLabel = false;\n hasError;\n required = false;\n constructor(el) {\n this.el = el;\n }\n ngOnInit() {\n this.initDropdownInput();\n }\n ngOnChanges() {\n this.initDropdownInput();\n }\n initDropdownInput() {\n this.el.nativeElement.classList.add('dhcl-dropdown-input');\n if (this.noLabel) {\n this.el.nativeElement.classList.add('no-label');\n }\n else {\n this.el.nativeElement.classList.remove('no-label');\n }\n if (this.hasError) {\n this.el.nativeElement.classList.add('dhcl-dropdown-input-error');\n }\n else {\n this.el.nativeElement.classList.remove('dhcl-dropdown-input-error');\n }\n if (this.required) {\n this.el.nativeElement.classList.add('required');\n }\n else {\n this.el.nativeElement.classList.remove('required');\n }\n const dropdownElement = this.el.nativeElement.querySelector('dhcl-dropdown');\n if (dropdownElement) {\n dropdownElement.classList.add('dhcl-dropdown');\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownInputDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: DropdownInputDirective, selector: \"[dhclDropdownInput]\", inputs: { noLabel: \"noLabel\", hasError: \"hasError\", required: \"required\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownInputDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclDropdownInput]'\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { noLabel: [{\n type: Input\n }], hasError: [{\n type: Input\n }], required: [{\n type: Input\n }] } });\n\nclass DropdownInputModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownInputModule, declarations: [DropdownInputDirective], imports: [CommonModule], exports: [DropdownInputDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownInputModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: DropdownInputModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [DropdownInputDirective],\n imports: [CommonModule],\n exports: [DropdownInputDirective]\n }]\n }] });\n\nclass TextInputDirective {\n el;\n hasSuccess;\n hasError;\n noLabel = false;\n required = false;\n iconContainer = document.createElement('div');\n successIcon = `\r\n <svg width=\"16\" height=\"12\" viewBox=\"0 0 16 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <g id=\"UI / form / complete/ green\">\r\n <path id=\"Line\" d=\"M1.5 6.5L5.5 10.5\" stroke=\"#00A6A1\" stroke-width=\"2\" stroke-linecap=\"round\"/>\r\n <path id=\"Line 2\" d=\"M5.55556 10.4444L14.4444 1.55556\" stroke=\"#00A6A1\" stroke-width=\"2\" stroke-linecap=\"round\"/>\r\n </g>\r\n </svg>\r\n `;\n errorIcon = `\r\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M1 1L11 11\" stroke=\"#AA272F\" stroke-width=\"2\" stroke-linecap=\"round\"/>\r\n <path d=\"M1 11L11 1\" stroke=\"#AA272F\" stroke-width=\"2\" stroke-linecap=\"round\"/>\r\n </svg>\r\n `;\n constructor(el) {\n this.el = el;\n }\n ngOnInit() {\n this.initInput();\n this.addIconContainer();\n }\n ngOnChanges() {\n this.initInput();\n }\n initInput() {\n if (this.noLabel) {\n this.el.nativeElement.classList.add('no-label');\n }\n else {\n this.el.nativeElement.classList.remove('no-label');\n }\n if (this.required) {\n this.el.nativeElement.classList.add('required');\n }\n else {\n this.el.nativeElement.classList.remove('required');\n }\n this.el.nativeElement.classList.add('dhcl-text-input');\n this.initIcons();\n }\n initIcons() {\n if (this.hasSuccess) {\n this.el.nativeElement.classList.add('dhcl-text-input-success');\n this.el.nativeElement.classList.remove('dhcl-text-input-error');\n this.iconContainer.innerHTML = this.successIcon;\n }\n else if (this.hasError) {\n this.el.nativeElement.classList.add('dhcl-text-input-error');\n this.el.nativeElement.classList.remove('dhcl-text-input-success');\n this.iconContainer.innerHTML = this.errorIcon;\n }\n else {\n this.el.nativeElement.classList.remove('dhcl-text-input-success');\n this.el.nativeElement.classList.remove('dhcl-text-input-error');\n this.iconContainer.innerHTML = '';\n }\n }\n addIconContainer() {\n this.iconContainer.classList.add('dhcl-text-input-icon-container');\n const inputField = this.el.nativeElement.querySelector('input');\n if (inputField) {\n this.el.nativeElement.querySelector('input').after(this.iconContainer);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TextInputDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: TextInputDirective, selector: \"[dhclTextInput]\", inputs: { hasSuccess: \"hasSuccess\", hasError: \"hasError\", noLabel: \"noLabel\", required: \"required\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TextInputDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclTextInput]'\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { hasSuccess: [{\n type: Input\n }], hasError: [{\n type: Input\n }], noLabel: [{\n type: Input\n }], required: [{\n type: Input\n }] } });\n\nclass TextInputModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TextInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: TextInputModule, declarations: [TextInputDirective], imports: [CommonModule], exports: [TextInputDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TextInputModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: TextInputModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [TextInputDirective],\n imports: [CommonModule],\n exports: [TextInputDirective]\n }]\n }] });\n\nclass RadioButtonDirective {\n el;\n hasError;\n constructor(el) {\n this.el = el;\n }\n ngOnInit() {\n this.el.nativeElement.classList.add('dhcl-radio-button');\n // Add specific class to span that wraps label content.\n // This may facilitate customization of that particular element by the consumer.\n this.el.nativeElement.querySelector('span')?.classList.add('dhcl-radio-content');\n this.applyDataBoundProperties();\n }\n ngOnChanges() {\n this.applyDataBoundProperties();\n }\n applyDataBoundProperties() {\n if (this.hasError) {\n this.el.nativeElement.classList.add('dhcl-radio-error');\n }\n else {\n this.el.nativeElement.classList.remove('dhcl-radio-error');\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioButtonDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RadioButtonDirective, selector: \"[dhclRadio]\", inputs: { hasError: \"hasError\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioButtonDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclRadio]'\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { hasError: [{\n type: Input\n }] } });\n\nclass RadioButtonModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioButtonModule, declarations: [RadioButtonDirective], imports: [CommonModule], exports: [RadioButtonDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioButtonModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RadioButtonModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [RadioButtonDirective],\n imports: [CommonModule],\n exports: [RadioButtonDirective]\n }]\n }] });\n\nclass CheckboxDirective {\n el;\n hasError;\n inputElement;\n svgWrapper = document.createElement('div');\n svgWrapperContent = `\r\n <svg viewBox=\"0 0 21 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <rect class=\"dhcl-checkbox-svg-unchecked\" x=\"0.762695\" y=\"0.5\" width=\"19\" height=\"19\" rx=\"2.5\" />\r\n <rect class=\"dhcl-checkbox-svg-checked\" x=\"0.262695\" width=\"20\" height=\"20\" rx=\"3\" />\r\n <path class=\"dhcl-checkbox-svg-checked\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M10.2625 15.0001L4.4292 9.16675L6.09587 7.50008L10.2625 11.6667L20.2625 1.66675V5.00008L10.2625 15.0001Z\" />\r\n </svg>\r\n `;\n constructor(el) {\n this.el = el;\n }\n ngOnInit() {\n this.el.nativeElement.classList.add('dhcl-checkbox');\n this.inputElement = this.el.nativeElement.querySelector('input[type=\"checkbox\"]');\n if (this.inputElement) {\n // Insert div element containing SVG content\n this.svgWrapper.classList.add('dhcl-checkbox-svg-wrapper');\n this.svgWrapper.innerHTML = this.svgWrapperContent;\n this.inputElement.insertAdjacentElement('afterend', this.svgWrapper);\n }\n // Add specific class to span that wraps label content.\n // This may facilitate customization of that particular element by the consumer.\n this.el.nativeElement.querySelector('span')?.classList.add('dhcl-checkbox-content');\n this.applyDataBoundProperties();\n }\n ngOnChanges() {\n this.applyDataBoundProperties();\n }\n applyDataBoundProperties() {\n if (this.hasError) {\n this.el.nativeElement.classList.add('dhcl-checkbox-error');\n }\n else {\n this.el.nativeElement.classList.remove('dhcl-checkbox-error');\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CheckboxDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\n static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"17.3.12\", type: CheckboxDirective, selector: \"[dhclCheckbox]\", inputs: { hasError: \"hasError\" }, usesOnChanges: true, ngImport: i0 });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CheckboxDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[dhclCheckbox]'\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { hasError: [{\n type: Input\n }] } });\n\nclass NewCheckboxModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NewCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: NewCheckboxModule, declarations: [CheckboxDirective], imports: [CommonModule], exports: [CheckboxDirective] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NewCheckboxModule, imports: [CommonModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: NewCheckboxModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [CheckboxDirective],\n imports: [CommonModule],\n exports: [CheckboxDirective]\n }]\n }] });\n\n/* Components */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AccordionStepperComponent, AccordionStepperModule, AddToCalendarDirective, AddToCalendarModule, AutocompleteDropdownComponent, AutocompleteDropdownModule, BackButtonComponent, BackButtonModule, BannerComponent, BannerModule, ButtonDirective, ButtonModule, CheckboxDirective, DatePickerComponent, DatePickerModule, DatetimePickerComponent, DatetimePickerModule, DropdownComponent, DropdownInputDirective, DropdownInputModule, DropdownModule, DropdownSearchAutocompleteComponent, DropdownSearchAutocompleteModule, FeedbackConfirmationComponent, FeedbackConfirmationModule, FeedbackSurveyComponent, FeedbackSurveyModule, LoadingSpinnerComponent, LoadingSpinnerModule, LongTextInputDirective, LongTextInputModule, ModalComponent, ModalModule, MorelessPaginationComponent, MorelessPaginationModule, NewCheckboxModule, PaginationComponent, PaginationModule, ProfilePictureComponent, ProfilePictureModule, ProgressBarComponent, ProgressBarModule, ProgressStepperComponent, ProgressStepperModule, RadioButtonDirective, RadioButtonModule, ScrollToTopComponent, ScrollToTopModule, SortDropdownComponent, SortDropdownModule, StarRatingComponent, StarRatingModule, TabsComponent, TabsModule, TextInputDirective, TextInputModule, TooltipComponent, TooltipModule };\n","// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nexport class InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nexport class InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nexport class ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n","/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nexport const DATE_SHORT = {\n year: n,\n month: n,\n day: n,\n};\n\nexport const DATE_MED = {\n year: n,\n month: s,\n day: n,\n};\n\nexport const DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n};\n\nexport const DATE_FULL = {\n year: n,\n month: l,\n day: n,\n};\n\nexport const DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n};\n\nexport const TIME_SIMPLE = {\n hour: n,\n minute: n,\n};\n\nexport const TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nexport const TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\nexport const TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\",\n};\n\nexport const TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n};\n\nexport const TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s,\n};\n\nexport const TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l,\n};\n\nexport const DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nexport const DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n,\n};\n\nexport const DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s,\n};\n\nexport const DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nexport const DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l,\n};\n\nexport const DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n","import { ZoneIsAbstractError } from \"./errors.js\";\n\n/**\n * @interface\n */\nexport default class Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The IANA name of this zone.\n * Defaults to `name` if not overwritten by a subclass.\n * @abstract\n * @type {string}\n */\n get ianaName() {\n return this.name;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get isUniversal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n","import { formatOffset, parseZoneInfo } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nexport default class SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton === null) {\n singleton = new SystemZone();\n }\n return singleton;\n }\n\n /** @override **/\n get type() {\n return \"system\";\n }\n\n /** @override **/\n get name() {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"system\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import { formatOffset, parseZoneInfo, isUndefined, objToLocalTS } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n era: \"short\",\n });\n }\n return dtfCache[zone];\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n era: 3,\n hour: 4,\n minute: 5,\n second: 6,\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i];\n const pos = typeToPos[type];\n\n if (type === \"era\") {\n filled[pos] = value;\n } else if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nlet ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nexport default class IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return this.isValidZone(s);\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n if (!zone) {\n return false;\n }\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /**\n * The type of zone. `iana` for all instances of `IANAZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"iana\";\n }\n\n /**\n * The name of this zone (i.e. the IANA zone name).\n * @override\n * @type {string}\n */\n get name() {\n return this.zoneName;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns false for all IANA zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return false;\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @override\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n const date = new Date(ts);\n\n if (isNaN(date)) return NaN;\n\n const dtf = makeDTF(this.name);\n let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date);\n\n if (adOrBc === \"BC\") {\n year = -Math.abs(year) + 1;\n }\n\n // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n const adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0,\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /**\n * Return whether this Zone is valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return this.valid;\n }\n}\n","import { hasLocaleWeekInfo, hasRelative, padStart, roundTo, validateWeekSettings } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport Settings from \"../settings.js\";\nimport DateTime from \"../datetime.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlLFCache[key];\n if (!dtf) {\n dtf = new Intl.ListFormat(locString, opts);\n intlLFCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlDTCache = {};\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlNumCache = {};\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\n\nlet intlRelCache = {};\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else {\n sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n return sysLocaleCache;\n }\n}\n\nlet weekInfoCache = {};\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache[locString];\n if (!data) {\n const locale = new Intl.Locale(locString);\n // browsers currently implement this as a property, but spec says it should be a getter function\n data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n weekInfoCache[locString] = data;\n }\n return data;\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n // private subtags and unicode subtags have ordering requirements,\n // and we're not properly parsing this, so just strip out the\n // private ones if they exist.\n const xIndex = localeStr.indexOf(\"-x-\");\n if (xIndex !== -1) {\n localeStr = localeStr.substring(0, xIndex);\n }\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n let selectedStr;\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n selectedStr = localeStr;\n } catch (e) {\n const smaller = localeStr.substring(0, uIndex);\n options = getCachedDTF(smaller).resolvedOptions();\n selectedStr = smaller;\n }\n\n const { numberingSystem, calendar } = options;\n return [selectedStr, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (outputCalendar || numberingSystem) {\n if (!localeStr.includes(\"-u-\")) {\n localeStr += \"-u\";\n }\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2009, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, englishFn, intlFn) {\n const mode = loc.listingMode();\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\"\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n const { padTo, floor, ...otherOpts } = opts;\n\n if (!forceSimple || Object.keys(otherOpts).length > 0) {\n const intlOpts = { useGrouping: false, ...opts };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.originalZone = undefined;\n\n let z = undefined;\n if (this.opts.timeZone) {\n // Don't apply any workarounds if a timeZone is explicitly provided in opts\n this.dt = dt;\n } else if (dt.zone.type === \"fixed\") {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n const gmtOffset = -1 * (dt.offset / 60);\n const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n // we manually apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n } else if (dt.zone.type === \"system\") {\n this.dt = dt;\n } else if (dt.zone.type === \"iana\") {\n this.dt = dt;\n z = dt.zone.name;\n } else {\n // Custom zones can have any offset / offsetName so we just manually\n // apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n\n const intlOpts = { ...this.opts };\n intlOpts.timeZone = intlOpts.timeZone || z;\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n\n format() {\n if (this.originalZone) {\n // If we have to substitute in the actual zone name, we have to use\n // formatToParts so that the timezone can be replaced.\n return this.formatToParts()\n .map(({ value }) => value)\n .join(\"\");\n }\n return this.dtf.format(this.dt.toJSDate());\n }\n\n formatToParts() {\n const parts = this.dtf.formatToParts(this.dt.toJSDate());\n if (this.originalZone) {\n return parts.map((part) => {\n if (part.type === \"timeZoneName\") {\n const offsetName = this.originalZone.offsetName(this.dt.ts, {\n locale: this.dt.locale,\n format: this.opts.timeZoneName,\n });\n return {\n ...part,\n value: offsetName,\n };\n } else {\n return part;\n }\n });\n }\n return parts;\n }\n\n resolvedOptions() {\n return this.dtf.resolvedOptions();\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = { style: \"long\", ...opts };\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return English.formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\nconst fallbackWeekSettings = {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n};\n\n/**\n * @private\n */\n\nexport default class Locale {\n static fromOpts(opts) {\n return Locale.create(\n opts.locale,\n opts.numberingSystem,\n opts.outputCalendar,\n opts.weekSettings,\n opts.defaultToEN\n );\n }\n\n static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale;\n // the system locale is useful for human-readable strings but annoying for parsing/formatting known formats\n const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n }\n\n constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.weekSettings = weekSettings;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode() {\n const isActuallyEn = this.isEnglish();\n const hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n validateWeekSettings(alts.weekSettings) || this.weekSettings,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone({ ...alts, defaultToEN: true });\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone({ ...alts, defaultToEN: false });\n }\n\n months(length, format = false) {\n return listStuff(this, length, English.months, () => {\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n this.monthsCache[formatStr][length] = mapMonths((dt) => this.extract(dt, intl, \"month\"));\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false) {\n return listStuff(this, length, English.weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays((dt) =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems() {\n return listStuff(\n this,\n undefined,\n () => English.meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hourCycle: \"h12\" };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n (dt) => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length) {\n return listStuff(this, length, English.eras, () => {\n const intl = { era: length };\n\n // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find((m) => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n listFormatter(opts = {}) {\n return getCachedLF(this.intl, opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\")\n );\n }\n\n getWeekSettings() {\n if (this.weekSettings) {\n return this.weekSettings;\n } else if (!hasLocaleWeekInfo()) {\n return fallbackWeekSettings;\n } else {\n return getCachedWeekInfo(this.locale);\n }\n }\n\n getStartOfWeek() {\n return this.getWeekSettings().firstDay;\n }\n\n getMinDaysInFirstWeek() {\n return this.getWeekSettings().minimalDays;\n }\n\n getWeekendDays() {\n return this.getWeekSettings().weekend;\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n\n toString() {\n return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;\n }\n}\n","import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\n\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nexport const monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nexport const weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nexport const meridiems = [\"AM\", \"PM\"];\n\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nexport const erasShort = [\"BC\", \"AD\"];\n\nexport const erasNarrow = [\"B\", \"A\"];\n\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\n\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"],\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\n \"weekday\",\n \"era\",\n \"year\",\n \"month\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n \"hourCycle\",\n ]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_MED_WITH_WEEKDAY):\n return \"EEE, LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\n","import { formatOffset, signedOffset } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nexport default class FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /**\n * The type of zone. `fixed` for all instances of `FixedOffsetZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"fixed\";\n }\n\n /**\n * The name of this zone.\n * All fixed zones' names always start with \"UTC\" (plus optional offset)\n * @override\n * @type {string}\n */\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /**\n * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`\n *\n * @override\n * @type {string}\n */\n get ianaName() {\n if (this.fixed === 0) {\n return \"Etc/UTC\";\n } else {\n return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n }\n }\n\n /**\n * Returns the offset's common name at the specified timestamp.\n *\n * For fixed offset zones this equals to the zone name.\n * @override\n */\n offsetName() {\n return this.name;\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns true for all fixed offset zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return true;\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n *\n * For fixed offset zones, this is constant and does not depend on a timestamp.\n * @override\n * @return {number}\n */\n offset() {\n return this.fixed;\n }\n\n /**\n * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /**\n * Return whether this Zone is valid:\n * All fixed offset zones are valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return true;\n }\n}\n","import Zone from \"../zone.js\";\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nexport default class InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n","/**\n * @private\n */\n\nimport Zone from \"../zone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport InvalidZone from \"../zones/invalidZone.js\";\n\nimport { isUndefined, isString, isNumber } from \"./util.js\";\nimport SystemZone from \"../zones/systemZone.js\";\n\nexport function normalizeZone(input, defaultZone) {\n let offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"default\") return defaultZone;\n else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n","/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\nimport { InvalidArgumentError } from \"../errors.js\";\nimport Settings from \"../settings.js\";\nimport { dayOfWeek, isoWeekdayToLocal } from \"./conversions.js\";\n\n/**\n * @private\n */\n\n// TYPES\n\nexport function isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nexport function isNumber(o) {\n return typeof o === \"number\";\n}\n\nexport function isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nexport function isString(o) {\n return typeof o === \"string\";\n}\n\nexport function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nexport function hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nexport function hasLocaleWeekInfo() {\n try {\n return (\n typeof Intl !== \"undefined\" &&\n !!Intl.Locale &&\n (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype)\n );\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nexport function maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nexport function bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nexport function pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nexport function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nexport function validateWeekSettings(settings) {\n if (settings == null) {\n return null;\n } else if (typeof settings !== \"object\") {\n throw new InvalidArgumentError(\"Week settings must be an object\");\n } else {\n if (\n !integerBetween(settings.firstDay, 1, 7) ||\n !integerBetween(settings.minimalDays, 1, 7) ||\n !Array.isArray(settings.weekend) ||\n settings.weekend.some((v) => !integerBetween(v, 1, 7))\n ) {\n throw new InvalidArgumentError(\"Invalid week settings\");\n }\n return {\n firstDay: settings.firstDay,\n minimalDays: settings.minimalDays,\n weekend: Array.from(settings.weekend),\n };\n }\n}\n\n// NUMBERS AND STRINGS\n\nexport function integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nexport function floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nexport function padStart(input, n = 2) {\n const isNeg = input < 0;\n let padded;\n if (isNeg) {\n padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n } else {\n padded = (\"\" + input).padStart(n, \"0\");\n }\n return padded;\n}\n\nexport function parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nexport function parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\n\nexport function parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nexport function roundTo(number, digits, towardZero = false) {\n const factor = 10 ** digits,\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n}\n\n// DATE BASICS\n\nexport function isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nexport function daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nexport function objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n // the calculations done by Date.UTC are using year 2000 - which is incorrect\n d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n }\n return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n return -fwdlw + minDaysInFirstWeek - 1;\n}\n\nexport function weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\n\nexport function untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nexport function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hourCycle: \"h23\",\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = { timeZoneName: offsetFormat, ...intlOpts };\n\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find((m) => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nexport function signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nexport function asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nexport function normalizeObject(obj, normalizer) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\n/**\n * Returns the offset's value as a string\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\nexport function formatOffset(offset, format) {\n const hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n case \"techie\":\n return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nexport function timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n","const numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|å››|五|å…|七|å…«|ä¹]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\",\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881],\n};\n\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nexport function parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\n// cache of {numberingSystem: {append: regex}}\nlet digitRegexCache = {};\nexport function resetDigitRegexCache() {\n digitRegexCache = {};\n}\n\nexport function digitRegex({ numberingSystem }, append = \"\") {\n const ns = numberingSystem || \"latn\";\n\n if (!digitRegexCache[ns]) {\n digitRegexCache[ns] = {};\n }\n if (!digitRegexCache[ns][append]) {\n digitRegexCache[ns][append] = new RegExp(`${numberingSystems[ns]}${append}`);\n }\n\n return digitRegexCache[ns][append];\n}\n","import SystemZone from \"./zones/systemZone.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport DateTime from \"./datetime.js\";\n\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport { validateWeekSettings } from \"./impl/util.js\";\nimport { resetDigitRegexCache } from \"./impl/digits.js\";\n\nlet now = () => Date.now(),\n defaultZone = \"system\",\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n twoDigitCutoffYear = 60,\n throwOnInvalid,\n defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nexport default class Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * Use the value \"system\" to reset this value to the system's time zone.\n * @type {string}\n */\n static set defaultZone(zone) {\n defaultZone = zone;\n }\n\n /**\n * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n * The default value is the system's time zone (the one set on the machine that runs this code).\n * @type {Zone}\n */\n static get defaultZone() {\n return normalizeZone(defaultZone, SystemZone.instance);\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * @typedef {Object} WeekSettings\n * @property {number} firstDay\n * @property {number} minimalDays\n * @property {number[]} weekend\n */\n\n /**\n * @return {WeekSettings|null}\n */\n static get defaultWeekSettings() {\n return defaultWeekSettings;\n }\n\n /**\n * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n * how many days are required in the first week of a year.\n * Does not affect existing instances.\n *\n * @param {WeekSettings|null} weekSettings\n */\n static set defaultWeekSettings(weekSettings) {\n defaultWeekSettings = validateWeekSettings(weekSettings);\n }\n\n /**\n * Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century\n * @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950\n * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n */\n static set twoDigitCutoffYear(cutoffYear) {\n twoDigitCutoffYear = cutoffYear % 100;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n DateTime.resetCache();\n resetDigitRegexCache();\n }\n}\n","export default class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n","import {\n integerBetween,\n isLeapYear,\n timeObject,\n daysInYear,\n daysInMonth,\n weeksInWeekYear,\n isInteger,\n isUndefined,\n} from \"./util.js\";\nimport Invalid from \"./invalid.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nexport function dayOfWeek(year, month, day) {\n const d = new Date(Date.UTC(year, month - 1, day));\n\n if (year < 100 && year >= 0) {\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n\n const js = d.getUTCDay();\n\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex((i) => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\nexport function isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nexport function gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n\n let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return { weekYear, weekNumber, weekday, ...timeObject(gregObj) };\n}\n\nexport function weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(weekData) };\n}\n\nexport function gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return { year, ordinal, ...timeObject(gregData) };\n}\n\nexport function ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData;\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(ordinalData) };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nexport function usesLocalWeekValues(obj, loc) {\n const hasLocaleWeekData =\n !isUndefined(obj.localWeekday) ||\n !isUndefined(obj.localWeekNumber) ||\n !isUndefined(obj.localWeekYear);\n if (hasLocaleWeekData) {\n const hasIsoWeekData =\n !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n\n if (hasIsoWeekData) {\n throw new ConflictingSpecificationError(\n \"Cannot mix locale-based week fields with ISO-based week fields\"\n );\n }\n if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n delete obj.localWeekday;\n delete obj.localWeekNumber;\n delete obj.localWeekYear;\n return {\n minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n startOfWeek: loc.getStartOfWeek(),\n };\n } else {\n return { minDaysInFirstWeek: 4, startOfWeek: 1 };\n }\n}\n\nexport function hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(\n obj.weekNumber,\n 1,\n weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)\n ),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.weekNumber);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nexport function hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nexport function hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nexport function hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n","import * as English from \"./english.js\";\nimport * as Formats from \"./formats.js\";\nimport { padStart } from \"./util.js\";\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: Formats.DATE_SHORT,\n DD: Formats.DATE_MED,\n DDD: Formats.DATE_FULL,\n DDDD: Formats.DATE_HUGE,\n t: Formats.TIME_SIMPLE,\n tt: Formats.TIME_WITH_SECONDS,\n ttt: Formats.TIME_WITH_SHORT_OFFSET,\n tttt: Formats.TIME_WITH_LONG_OFFSET,\n T: Formats.TIME_24_SIMPLE,\n TT: Formats.TIME_24_WITH_SECONDS,\n TTT: Formats.TIME_24_WITH_SHORT_OFFSET,\n TTTT: Formats.TIME_24_WITH_LONG_OFFSET,\n f: Formats.DATETIME_SHORT,\n ff: Formats.DATETIME_MED,\n fff: Formats.DATETIME_FULL,\n ffff: Formats.DATETIME_HUGE,\n F: Formats.DATETIME_SHORT_WITH_SECONDS,\n FF: Formats.DATETIME_MED_WITH_SECONDS,\n FFF: Formats.DATETIME_FULL_WITH_SECONDS,\n FFFF: Formats.DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nexport default class Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n // white-space is always considered a literal in user-provided formats\n // the \" \" token has a special meaning (see unitForToken)\n\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: /^\\s+$/.test(currentFull), val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts });\n return df.format();\n }\n\n dtFormatter(dt, opts = {}) {\n return this.loc.dtFormatter(dt, { ...this.opts, ...opts });\n }\n\n formatDateTime(dt, opts) {\n return this.dtFormatter(dt, opts).format();\n }\n\n formatDateTimeParts(dt, opts) {\n return this.dtFormatter(dt, opts).formatToParts();\n }\n\n formatInterval(interval, opts) {\n const df = this.dtFormatter(interval.start, opts);\n return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n }\n\n resolvedOptions(dt, opts) {\n return this.dtFormatter(dt, opts).resolvedOptions();\n }\n\n num(n, p = 0) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = { ...this.opts };\n\n if (p > 0) {\n opts.padTo = p;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = (opts) => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? English.meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? English.monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? English.weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = (token) => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = (length) =>\n knownEnglish ? English.eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = (token) => {\n // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // fractional seconds\n case \"uu\":\n return this.num(Math.floor(dt.millisecond / 10), 2);\n case \"uuu\":\n return this.num(Math.floor(dt.millisecond / 100));\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"n\":\n return this.num(dt.localWeekNumber);\n case \"nn\":\n return this.num(dt.localWeekNumber, 2);\n case \"ii\":\n return this.num(dt.localWeekYear.toString().slice(-2), 2);\n case \"iiii\":\n return this.num(dt.localWeekYear, 4);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const tokenToField = (token) => {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"w\":\n return \"week\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = (lildur) => (token) => {\n const mapped = tokenToField(token);\n if (mapped) {\n return this.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t));\n return stringifyTokens(tokens, tokenToString(collapsed));\n }\n}\n","import {\n untruncateYear,\n signedOffset,\n parseInteger,\n parseMillis,\n isUndefined,\n parseFloating,\n} from \"./util.js\";\nimport * as English from \"./english.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return (m) =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [{ ...mergedVals, ...val }, zone || mergedZone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1),\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3]),\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration =\n /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] =\n match;\n\n const hasNegativePrefix = s[0] === \"-\";\n const negativeSeconds = secondStr && secondStr[0] === \"-\";\n\n const maybeNegate = (num, force = false) =>\n num !== undefined && (force || (num && hasNegativePrefix)) ? -num : num;\n\n return [\n {\n years: maybeNegate(parseFloating(yearStr)),\n months: maybeNegate(parseFloating(monthStr)),\n weeks: maybeNegate(parseFloating(weekStr)),\n days: maybeNegate(parseFloating(dayStr)),\n hours: maybeNegate(parseFloating(hourStr)),\n minutes: maybeNegate(parseFloating(minuteStr)),\n seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds),\n },\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: English.monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr),\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? English.weekdaysLong.indexOf(weekdayStr) + 1\n : English.weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr,\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 =\n /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOOrdinalDateAndTime = combineExtractors(\n extractISOOrdinalData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeAndOffset = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\n/*\n * @private\n */\n\nexport function parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nexport function parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nexport function parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nexport function parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nexport function parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nexport function parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n","import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from \"./errors.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Locale from \"./impl/locale.js\";\nimport { parseISODuration, parseISOTimeOnly } from \"./impl/regexParser.js\";\nimport {\n asNumber,\n hasOwnProperty,\n isNumber,\n isUndefined,\n normalizeObject,\n roundTo,\n} from \"./impl/util.js\";\nimport Settings from \"./settings.js\";\nimport DateTime from \"./datetime.js\";\n\nconst INVALID = \"Invalid Duration\";\n\n// unit conversion constants\nexport const lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000,\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000,\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 },\n },\n casualMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000,\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000,\n },\n\n ...lowOrderMatrix,\n },\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,\n },\n ...lowOrderMatrix,\n };\n\n// units ordered by size\nconst orderedUnits = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n matrix: alts.matrix || dur.matrix,\n };\n return new Duration(conf);\n}\n\nfunction durationToMillis(matrix, vals) {\n let sum = vals.milliseconds ?? 0;\n for (const unit of reverseUnits.slice(1)) {\n if (vals[unit]) {\n sum += vals[unit] * matrix[unit][\"milliseconds\"];\n }\n }\n return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n // the logic below assumes the overall value of the duration is positive\n // if this is not the case, factor is used to make it so\n const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n\n orderedUnits.reduceRight((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const previousVal = vals[previous] * factor;\n const conv = matrix[current][previous];\n\n // if (previousVal < 0):\n // lower order unit is negative (e.g. { years: 2, days: -2 })\n // normalize this by reducing the higher order unit by the appropriate amount\n // and increasing the lower order unit\n // this can never make the higher order unit negative, because this function only operates\n // on positive durations, so the amount of time represented by the lower order unit cannot\n // be larger than the higher order unit\n // else:\n // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n // in this case we attempt to convert as much as possible from the lower order unit into\n // the higher order one\n //\n // Math.floor takes care of both of these cases, rounding away from 0\n // if previousVal < 0 it makes the absolute value larger\n // if previousVal >= it makes the absolute value smaller\n const rollUp = Math.floor(previousVal / conv);\n vals[current] += rollUp * factor;\n vals[previous] -= rollUp * conv * factor;\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n\n // try to convert any decimals into smaller units if possible\n // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n orderedUnits.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const fraction = vals[previous] % 1;\n vals[previous] -= fraction;\n vals[current] += fraction * matrix[previous][current];\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n const newVals = {};\n for (const [key, value] of Object.entries(vals)) {\n if (value !== 0) {\n newVals[key] = value;\n }\n }\n return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nexport default class Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n let matrix = accurate ? accurateMatrix : casualMatrix;\n\n if (config.matrix) {\n matrix = config.matrix;\n }\n\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = matrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject({ milliseconds: count }, opts);\n }\n\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {Object} [opts=[]] - options for creating this Duration\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the custom conversion system to use\n * @return {Duration}\n */\n static fromObject(obj, opts = {}) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit),\n loc: Locale.fromObject(opts),\n conversionAccuracy: opts.conversionAccuracy,\n matrix: opts.matrix,\n });\n }\n\n /**\n * Create a Duration from DurationLike.\n *\n * @param {Object | number | Duration} durationLike\n * One of:\n * - object with keys like 'years' and 'hours'.\n * - number representing milliseconds\n * - Duration instance\n * @return {Duration}\n */\n static fromDurationLike(durationLike) {\n if (isNumber(durationLike)) {\n return Duration.fromMillis(durationLike);\n } else if (Duration.isDuration(durationLike)) {\n return durationLike;\n } else if (typeof durationLike === \"object\") {\n return Duration.fromObject(durationLike);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationLike} of type ${typeof durationLike}`\n );\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the preset conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */\n static fromISOTime(text, opts) {\n const [parsed] = parseISOTimeOnly(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\",\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `w` for weeks\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * Tokens can be escaped by wrapping with single quotes.\n * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = {\n ...opts,\n floor: opts.round !== false && opts.floor !== false,\n };\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a string representation of a Duration with all units included.\n * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n * @example\n * ```js\n * var dur = Duration.fromObject({ days: 1, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 day, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 day, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 day, 5 hr, 6 min'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID;\n\n const l = orderedUnits\n .map((unit) => {\n const val = this.values[unit];\n if (isUndefined(val)) {\n return null;\n }\n return this.loc\n .numberFormatter({ style: \"unit\", unitDisplay: \"long\", ...opts, unit: unit.slice(0, -1) })\n .format(val);\n })\n .filter((n) => n);\n\n return this.loc\n .listFormatter({ type: \"conjunction\", style: opts.listStyle || \"narrow\", ...opts })\n .format(l);\n }\n\n /**\n * Returns a JavaScript object with this Duration's values.\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject() {\n if (!this.isValid) return {};\n return { ...this.values };\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */\n toISOTime(opts = {}) {\n if (!this.isValid) return null;\n\n const millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n\n opts = {\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\",\n ...opts,\n includeOffset: false,\n };\n\n const dateTime = DateTime.fromMillis(millis, { zone: \"UTC\" });\n return dateTime.toISOTime(opts);\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns a string representation of this Duration appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Duration { values: ${JSON.stringify(this.values)} }`;\n } else {\n return `Duration { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n toMillis() {\n if (!this.isValid) return NaN;\n\n return durationToMillis(this.matrix, this.values);\n }\n\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration),\n result = {};\n\n for (const k of orderedUnits) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };\n return clone(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem });\n const opts = { loc, matrix, conversionAccuracy };\n return clone(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * Assuming the overall value of the Duration is positive, this means:\n * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n * the overall value would be negative, see third example)\n * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n *\n * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Rescale units to its largest representation\n * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n * @return {Duration}\n */\n rescale() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map((u) => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n for (const k of orderedUnits) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n // only keep the integer part for now in the hopes of putting any decimal part\n // into a smaller unit later\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n normalizeValues(this.matrix, built);\n return clone(this, { values: built }, true);\n }\n\n /**\n * Shift this Duration to all available units.\n * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n * @return {Duration}\n */\n shiftToAll() {\n if (!this.isValid) return this;\n return this.shiftTo(\n \"years\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n );\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n }\n return clone(this, { values: negated }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n\n for (const u of orderedUnits) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\n","import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport * as Formats from \"./impl/formats.js\";\n\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nexport default class Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd,\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({ locale: start.locale });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter((d) => this.contains(d))\n .sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n idx = 1,\n next;\n\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits((x) => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals\n .sort((a, b) => a.s - b.s)\n .reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map((i) => [\n { time: i.s, type: \"s\" },\n { time: i.e, type: \"e\" },\n ]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map((i) => this.intersection(i))\n .filter((i) => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n","import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasLocaleWeekInfo, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> 'Ù¡'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'RabiÊ» I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n","import Duration from \"../duration.js\";\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf(\"day\").valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n },\n ],\n [\"days\", dayDiff],\n ];\n\n const results = {};\n const earlier = cursor;\n let lowestOrder, highWater;\n\n /* This loop tries to diff using larger units first.\n If we overshoot, we backtrack and try the next smaller unit.\n \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n as we use smaller and smaller units.\n highWater keeps track of where we would be if we added one more of the smallest unit,\n this is used later to potentially convert any difference smaller than the smallest higher order unit\n into a fraction of that smallest higher order unit\n */\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n results[unit] = differ(cursor, later);\n highWater = earlier.plus(results);\n\n if (highWater > later) {\n // we overshot the end point, backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n\n // if we are still overshooting now, we need to backtrack again\n // this happens in certain situations when diffing times in different zones,\n // because this calculation ignores time zones\n if (cursor > later) {\n // keep the \"overshot by 1\" around as highWater\n highWater = cursor;\n // backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n }\n } else {\n cursor = highWater;\n }\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nexport default function (earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n (u) => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(results, opts);\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n","import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from \"./util.js\";\nimport Formatter from \"./formatter.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport DateTime from \"../datetime.js\";\nimport { digitRegex, parseDigits } from \"./digits.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = (i) => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\n\nfunction stripInsensitivities(s) {\n return s\n .replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex((i) => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex,\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = (t) => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\"), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\"), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n case \"uu\":\n return simple(oneOrTwo);\n case \"uuu\":\n return intUnit(one);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n // in this case we accept any non-newline white-space\n case \" \":\n return simple(/[^\\S\\n\\r]/);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP,\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\",\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\",\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\",\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\",\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour12: {\n numeric: \"h\",\n \"2-digit\": \"hh\",\n },\n hour24: {\n numeric: \"H\",\n \"2-digit\": \"HH\",\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\",\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\",\n },\n timeZoneName: {\n long: \"ZZZZZ\",\n short: \"ZZZ\",\n },\n};\n\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n const isSpace = /^\\s+$/.test(value);\n return {\n literal: !isSpace,\n val: isSpace ? \" \" : value,\n };\n }\n\n const style = formatOpts[type];\n\n // The user might have explicitly specified hour12 or hourCycle\n // if so, respect their decision\n // if not, refer back to the resolvedOpts, which are based on the locale\n let actualType = type;\n if (type === \"hour\") {\n if (formatOpts.hour12 != null) {\n actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n } else if (formatOpts.hourCycle != null) {\n if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n actualType = \"hour12\";\n } else {\n actualType = \"hour24\";\n }\n } else {\n // tokens only differentiate between 24 hours or not,\n // so we do not need to check hourCycle here, which is less supported anyways\n actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n }\n }\n let val = partTypeStyleToTokenVal[actualType];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val,\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = (token) => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone = null;\n let specificOffset;\n if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n }\n\n if (!isUndefined(matches.Z)) {\n if (!zone) {\n zone = new FixedOffsetZone(matches.Z);\n }\n specificOffset = matches.Z;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone, specificOffset];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n const tokens = formatOptsToTokens(formatOpts, locale);\n\n if (tokens == null || tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nexport function expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nexport class TokenParser {\n constructor(locale, format) {\n this.locale = locale;\n this.format = format;\n this.tokens = expandMacroTokens(Formatter.parseFormat(format), locale);\n this.units = this.tokens.map((t) => unitForToken(t, locale));\n this.disqualifyingUnit = this.units.find((t) => t.invalidReason);\n\n if (!this.disqualifyingUnit) {\n const [regexString, handlers] = buildRegex(this.units);\n this.regex = RegExp(regexString, \"i\");\n this.handlers = handlers;\n }\n }\n\n explainFromTokens(input) {\n if (!this.isValid) {\n return { input, tokens: this.tokens, invalidReason: this.invalidReason };\n } else {\n const [rawMatches, matches] = match(input, this.regex, this.handlers),\n [result, zone, specificOffset] = matches\n ? dateTimeFromMatches(matches)\n : [null, null, undefined];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return {\n input,\n tokens: this.tokens,\n regex: this.regex,\n rawMatches,\n matches,\n result,\n zone,\n specificOffset,\n };\n }\n }\n\n get isValid() {\n return !this.disqualifyingUnit;\n }\n\n get invalidReason() {\n return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;\n }\n}\n\nexport function explainFromTokens(locale, input, format) {\n const parser = new TokenParser(locale, format);\n return parser.explainFromTokens(input);\n}\n\nexport function parseFromTokens(locale, input, format) {\n const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\n\nexport function formatOptsToTokens(formatOpts, locale) {\n if (!formatOpts) {\n return null;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const df = formatter.dtFormatter(getDummyDateTime());\n const parts = df.formatToParts();\n const resolvedOpts = df.resolvedOptions();\n return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts));\n}\n","import Duration from \"./duration.js\";\nimport Interval from \"./interval.js\";\nimport Settings from \"./settings.js\";\nimport Info from \"./info.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport FixedOffsetZone from \"./zones/fixedOffsetZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport {\n isUndefined,\n maybeArray,\n isDate,\n isNumber,\n bestBy,\n daysInMonth,\n daysInYear,\n isLeapYear,\n weeksInWeekYear,\n normalizeObject,\n roundTo,\n objToLocalTS,\n padStart,\n} from \"./impl/util.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport diff from \"./impl/diff.js\";\nimport { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from \"./impl/regexParser.js\";\nimport {\n parseFromTokens,\n explainFromTokens,\n formatOptsToTokens,\n expandMacroTokens,\n TokenParser,\n} from \"./impl/tokenParser.js\";\nimport {\n gregorianToWeek,\n weekToGregorian,\n gregorianToOrdinal,\n ordinalToGregorian,\n hasInvalidGregorianData,\n hasInvalidWeekData,\n hasInvalidOrdinalData,\n hasInvalidTimeData,\n usesLocalWeekValues,\n isoWeekdayToLocal,\n} from \"./impl/conversions.js\";\nimport * as Formats from \"./impl/formats.js\";\nimport {\n InvalidArgumentError,\n ConflictingSpecificationError,\n InvalidUnitError,\n InvalidDateTimeError,\n} from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n if (dt.localWeekData === null) {\n dt.localWeekData = gregorianToWeek(\n dt.c,\n dt.loc.getMinDaysInFirstWeek(),\n dt.loc.getStartOfWeek()\n );\n }\n return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid,\n };\n return new DateTime({ ...current, ...alts, old: current });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds(),\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = {\n ...inst.c,\n year,\n month,\n day:\n Math.min(inst.c.day, daysInMonth(year, month)) +\n Math.trunc(dur.days) +\n Math.trunc(dur.weeks) * 7,\n },\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds,\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n const { setZone, zone } = opts;\n if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(parsed, {\n ...opts,\n zone: interpretationZone,\n specificOffset,\n });\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true,\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\nfunction toISODate(o, extended) {\n const longFormat = o.c.year > 9999 || o.c.year < 0;\n let c = \"\";\n if (longFormat && o.c.year >= 0) c += \"+\";\n c += padStart(o.c.year, longFormat ? 6 : 4);\n\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n c += \"-\";\n c += padStart(o.c.day);\n } else {\n c += padStart(o.c.month);\n c += padStart(o.c.day);\n }\n return c;\n}\n\nfunction toISOTime(\n o,\n extended,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone\n) {\n let c = padStart(o.c.hour);\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += \":\";\n }\n } else {\n c += padStart(o.c.minute);\n }\n\n if (o.c.millisecond !== 0 || o.c.second !== 0 || !suppressSeconds) {\n c += padStart(o.c.second);\n\n if (o.c.millisecond !== 0 || !suppressMilliseconds) {\n c += \".\";\n c += padStart(o.c.millisecond, 3);\n }\n }\n\n if (includeOffset) {\n if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n c += \"Z\";\n } else if (o.o < 0) {\n c += \"-\";\n c += padStart(Math.trunc(-o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(-o.o % 60));\n } else {\n c += \"+\";\n c += padStart(Math.trunc(o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(o.o % 60));\n }\n }\n\n if (extendedZone) {\n c += \"[\" + o.zone.ianaName + \"]\";\n }\n return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\",\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\",\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\nfunction normalizeUnitWithLocalWeeks(unit) {\n switch (unit.toLowerCase()) {\n case \"localweekday\":\n case \"localweekdays\":\n return \"localWeekday\";\n case \"localweeknumber\":\n case \"localweeknumbers\":\n return \"localWeekNumber\";\n case \"localweekyear\":\n case \"localweekyears\":\n return \"localWeekYear\";\n default:\n return normalizeUnit(unit);\n }\n}\n\n// cache offsets for zones based on the current timestamp when this function is\n// first called. When we are handling a datetime from components like (year,\n// month, day, hour) in a time zone, we need a guess about what the timezone\n// offset is so that we can convert into a UTC timestamp. One way is to find the\n// offset of now in the zone. The actual date may have a different offset (for\n// example, if we handle a date in June while we're in December in a zone that\n// observes DST), but we can check and adjust that.\n//\n// When handling many dates, calculating the offset for now every time is\n// expensive. It's just a guess, so we can cache the offset to use even if we\n// are right on a time change boundary (we'll just correct in the other\n// direction). Using a timestamp from first read is a slight optimization for\n// handling dates close to the current date, since those dates will usually be\n// in the same offset (we could set the timestamp statically, instead). We use a\n// single timestamp for all zones to make things a bit more predictable.\n//\n// This is safe for quickDT (used by local() and utc()) because we don't fill in\n// higher-order units from tsNow (as we do in fromObject, this requires that\n// offset is calculated from tsNow).\nfunction guessOffsetForZone(zone) {\n if (!zoneOffsetGuessCache[zone]) {\n if (zoneOffsetTs === undefined) {\n zoneOffsetTs = Settings.now();\n }\n\n zoneOffsetGuessCache[zone] = zone.offset(zoneOffsetTs);\n }\n return zoneOffsetGuessCache[zone];\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n const zone = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n }\n\n const loc = Locale.fromObject(opts);\n\n let ts, o;\n\n // assume we have the higher-order units\n if (!isUndefined(obj.year)) {\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const offsetProvis = guessOffsetForZone(zone);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = Settings.now();\n }\n\n return new DateTime({ ts, zone, loc, o });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = (unit) => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n\nfunction lastOpts(argList) {\n let opts = {},\n args;\n if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n opts = argList[argList.length - 1];\n args = Array.from(argList).slice(0, argList.length - 1);\n } else {\n args = Array.from(argList);\n }\n return [opts, args];\n}\n\n/**\n * Timestamp to use for cached zone offset guesses (exposed for test)\n */\nlet zoneOffsetTs;\n/**\n * Cache for zone offset guesses (exposed for test).\n *\n * This optimizes quickDT via guessOffsetForZone to avoid repeated calls of\n * zone.offset().\n */\nlet zoneOffsetGuessCache = {};\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nexport default class DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n // If an offset has been passed and we have not been called from\n // clone(), we can trust it and avoid the offset calculation.\n const ot = isNumber(config.o) && !config.old ? config.o : zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.localWeekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n static now() {\n return new DateTime({});\n }\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local({ zone: \"America/New_York\" }) //~> now, in US east coast time\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12, { locale: \"fr\" }) //~> 2017-03-12T00:00:00, with a French locale\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" }) //~> 2017-03-12T05:00:00, in UTC\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @param {Object} options - configuration options for the DateTime\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" }) //~> 2017-03-12T05:45:00Z with a French locale\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n * @return {DateTime}\n */\n static utc() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n\n opts.zone = FixedOffsetZone.utcInstance;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options),\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.localWeekYear - a week year, according to the locale\n * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {Object} opts - options for creating this DateTime\n * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n * @return {DateTime}\n */\n static fromObject(obj, opts = {}) {\n obj = obj || {};\n const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const loc = Locale.fromObject(opts);\n const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);\n\n const tsNow = Settings.now(),\n offsetProvis = !isUndefined(opts.specificOffset)\n ? opts.specificOffset\n : zoneToUse.offset(tsNow),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc,\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n if (!inst.isValid) {\n return DateTime.invalid(inst.invalid);\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n }),\n [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is an instance of DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n /**\n * Produce the format string for a set of options\n * @param formatOpts\n * @param localeOpts\n * @returns {string}\n */\n static parseFormatForOpts(formatOpts, localeOpts = {}) {\n const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join(\"\");\n }\n\n /**\n * Produce the the fully expanded format token for the locale\n * Does NOT quote characters, so quoted tokens will not round trip correctly\n * @param fmt\n * @param localeOpts\n * @returns {string}\n */\n static expandFormat(fmt, localeOpts = {}) {\n const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n return expanded.map((t) => t.val).join(\"\");\n }\n\n static resetCache() {\n zoneOffsetTs = undefined;\n zoneOffsetGuessCache = {};\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Returns true if this date is on a weekend according to the locale, false otherwise\n * @returns {boolean}\n */\n get isWeekend() {\n return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n }\n\n /**\n * Get the day of the week according to the locale.\n * 1 is the first day of the week and 7 is the last day of the week.\n * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n * @returns {number}\n */\n get localWeekday() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n * because the week can start on different days of the week (see localWeekday) and because a different number of days\n * is required for a week to count as the first week of a year.\n * @returns {number}\n */\n get localWeekNumber() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n * differently, see localWeekNumber.\n * @returns {number}\n */\n get localWeekYear() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.isUniversal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1, day: 1 }).offset ||\n this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n * @returns {DateTime[]}\n */\n getPossibleOffsets() {\n if (!this.isValid || this.isOffsetFixed) {\n return [this];\n }\n const dayMs = 86400000;\n const minuteMs = 60000;\n const localTS = objToLocalTS(this.c);\n const oEarlier = this.zone.offset(localTS - dayMs);\n const oLater = this.zone.offset(localTS + dayMs);\n\n const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n const o2 = this.zone.offset(localTS - oLater * minuteMs);\n if (o1 === o2) {\n return [this];\n }\n const ts1 = localTS - o1 * minuteMs;\n const ts2 = localTS - o2 * minuteMs;\n const c1 = tsToObj(ts1, o1);\n const c2 = tsToObj(ts2, o2);\n if (\n c1.hour === c2.hour &&\n c1.minute === c2.minute &&\n c1.second === c2.second &&\n c1.millisecond === c2.millisecond\n ) {\n return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];\n }\n return [this];\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's local week year\n * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n * @type {number}\n */\n get weeksInLocalWeekYear() {\n return this.isValid\n ? weeksInWeekYear(\n this.localWeekYear,\n this.loc.getMinDaysInFirstWeek(),\n this.loc.getStartOfWeek()\n )\n : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOptions(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link DateTime#setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n *\n * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n * They cannot be mixed with ISO-week units like `weekday`.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);\n\n const settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(\n { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized },\n minDaysInFirstWeek,\n startOfWeek\n );\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });\n } else {\n mixed = { ...this.toObject(), ...normalized };\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link DateTime#plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit, { useLocaleWeeks = false } = {}) {\n if (!this.isValid) return this;\n\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n case \"milliseconds\":\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n if (useLocaleWeeks) {\n const startOfWeek = this.loc.getStartOfWeek();\n const { weekday } = this;\n if (weekday < startOfWeek) {\n o.weekNumber = this.weekNumber - 1;\n }\n o.weekday = startOfWeek;\n } else {\n o.weekday = 1;\n }\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit, opts) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit, opts)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(formatOpts = Formats.DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false,\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n const ext = format === \"extended\";\n\n let c = toISODate(this, ext);\n c += \"T\";\n c += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone);\n return c;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */\n toISODate({ format = \"extended\" } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return toISODate(this, format === \"extended\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n includePrefix = false,\n extendedZone = false,\n format = \"extended\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n let c = includePrefix ? \"T\" : \"\";\n return (\n c +\n toISOTime(\n this,\n format === \"extended\",\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone\n )\n );\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */\n toSQLDate() {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {\n let fmt = \"HH:mm:ss.SSS\";\n\n if (includeZone || includeOffset) {\n if (includeOffsetSpace) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += \"ZZ\";\n }\n }\n\n return toTechFormat(this, fmt, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n } else {\n return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns the epoch seconds (as a whole number) of this DateTime.\n * @return {number}\n */\n toUnixInteger() {\n return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = { ...this.c };\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\"created by diffing an invalid DateTime\");\n }\n\n const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link DateTime#diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.now(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit, opts) {\n if (!this.isValid) return false;\n\n const inputMs = otherDateTime.valueOf();\n const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });\n return (\n adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts)\n );\n }\n\n /**\n * Equality check\n * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 dÃa\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({}, { zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n let unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), {\n ...options,\n numeric: \"always\",\n units,\n unit,\n });\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {\n ...options,\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true,\n });\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n /**\n * Build a parser for `fmt` using the given locale. This parser can be passed\n * to {@link DateTime.fromFormatParser} to a parse a date in this format. This\n * can be used to optimize cases where many dates need to be parsed in a\n * specific format.\n *\n * @param {String} fmt - the format the string is expected to be in (see\n * description)\n * @param {Object} options - options used to set locale and numberingSystem\n * for parser\n * @returns {TokenParser} - opaque object to be used\n */\n static buildFormatParser(fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return new TokenParser(localeToUse, fmt);\n }\n\n /**\n * Create a DateTime from an input string and format parser.\n *\n * The format parser must have been created with the same locale as this call.\n *\n * @param {String} text - the string to parse\n * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}\n * @param {Object} opts - options taken by fromFormat()\n * @returns {DateTime}\n */\n static fromFormatParser(text, formatParser, opts = {}) {\n if (isUndefined(text) || isUndefined(formatParser)) {\n throw new InvalidArgumentError(\n \"fromFormatParser requires an input string and a format parser\"\n );\n }\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n\n if (!localeToUse.equals(formatParser.locale)) {\n throw new InvalidArgumentError(\n `fromFormatParser called with a locale of ${localeToUse}, ` +\n `but the format parser was created for ${formatParser.locale}`\n );\n }\n\n const { result, zone, specificOffset, invalidReason } = formatParser.explainFromTokens(text);\n\n if (invalidReason) {\n return DateTime.invalid(invalidReason);\n } else {\n return parseDataToDateTime(\n result,\n zone,\n opts,\n `format ${formatParser.format}`,\n text,\n specificOffset\n );\n }\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link DateTime#toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return Formats.DATE_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return Formats.DATE_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED_WITH_WEEKDAY() {\n return Formats.DATE_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return Formats.DATE_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return Formats.DATE_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return Formats.TIME_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return Formats.TIME_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return Formats.TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return Formats.TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return Formats.TIME_24_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return Formats.TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return Formats.TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return Formats.TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return Formats.DATETIME_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return Formats.DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return Formats.DATETIME_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return Formats.DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return Formats.DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return Formats.DATETIME_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return Formats.DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return Formats.DATETIME_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return Formats.DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n","import * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i1$1 from '@angular/common/http';\nimport { HttpHeaders, HttpClientModule } from '@angular/common/http';\nimport * as i0 from '@angular/core';\nimport { Input, Component, Injectable, EventEmitter, Output, ViewEncapsulation, NgModule } from '@angular/core';\nimport * as i2$1 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport * as i2 from '@dignity-health/ngx-components';\nimport { ButtonModule, ProgressBarModule, TextInputModule, DropdownModule, LoadingSpinnerModule, DatePickerModule, DatetimePickerModule, ModalModule } from '@dignity-health/ngx-components';\nimport { DateTime } from 'luxon';\nimport { BehaviorSubject } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport * as i1$2 from '@angular/router';\n\nclass AppointmentTypeCardComponent {\n appointmentDetails;\n isSelected = false;\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AppointmentTypeCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AppointmentTypeCardComponent, selector: \"dhgf-appointment-type-card\", inputs: { appointmentDetails: \"appointmentDetails\", isSelected: \"isSelected\" }, ngImport: i0, template: \"<div *ngIf=\\\"appointmentDetails\\\" class=\\\"card is-selectable\\\" [ngClass]=\\\"{ 'is-selected': isSelected }\\\">\\r\\n <div class=\\\"card-title\\\">\\r\\n <span class=\\\"p1bold\\\">\\r\\n {{ appointmentDetails.name }}\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".card{padding:26px 20px}@media (min-width: 320px) and (max-width: 480px){.card{padding:26px 20px}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AppointmentTypeCardComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-appointment-type-card', template: \"<div *ngIf=\\\"appointmentDetails\\\" class=\\\"card is-selectable\\\" [ngClass]=\\\"{ 'is-selected': isSelected }\\\">\\r\\n <div class=\\\"card-title\\\">\\r\\n <span class=\\\"p1bold\\\">\\r\\n {{ appointmentDetails.name }}\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".card{padding:26px 20px}@media (min-width: 320px) and (max-width: 480px){.card{padding:26px 20px}}\\n\"] }]\n }], propDecorators: { appointmentDetails: [{\n type: Input\n }], isSelected: [{\n type: Input\n }] } });\n\nvar AppointmentType;\n(function (AppointmentType) {\n AppointmentType[AppointmentType[\"Virtual\"] = 0] = \"Virtual\";\n AppointmentType[AppointmentType[\"InPerson\"] = 1] = \"InPerson\";\n})(AppointmentType || (AppointmentType = {}));\n\nconst getAllowedAppointments = (existingPatient, videoVisit, providerAppointmentTypes, providerAvailability, onlineBookingAvailability) => {\n const appointmentList = [];\n const appointmentRemoteIds = getAppointmentTypes(existingPatient, videoVisit, getProviderAppointmentTypes(onlineBookingAvailability));\n const appointmentTypeIdsToAllow = [];\n const applicableProviderAppointments = providerAppointmentTypes.filter(at => isApplicableAppointmentType(appointmentRemoteIds, existingPatient, at));\n const appointmentTypeIds = applicableProviderAppointments.map(item => item.id);\n if (appointmentTypeIds && appointmentTypeIds.length && providerAvailability && providerAvailability.length) {\n for (const availableTime of providerAvailability) {\n if (appointmentTypeIds.indexOf(availableTime.appointmentType) > -1) {\n appointmentTypeIdsToAllow.push(availableTime.appointmentType);\n }\n }\n }\n if (appointmentTypeIdsToAllow && appointmentTypeIdsToAllow.length > 0) {\n applicableProviderAppointments.forEach(item => {\n if (appointmentTypeIdsToAllow.indexOf(item.id) > -1) {\n appointmentList.push({\n id: item.id,\n remoteId: item.remoteId,\n name: item.name,\n description: item.description\n });\n }\n });\n }\n return appointmentList;\n};\nconst isApplicableAppointmentType = (appointmentRemoteIds, existingPatient, appointmentType) => {\n if (appointmentRemoteIds.indexOf(appointmentType.remoteId) === -1) {\n return false;\n }\n if (!appointmentType.patientAppointmentType || appointmentType.patientAppointmentType.toLowerCase() === 'both') {\n return true;\n }\n if (!existingPatient && appointmentType.patientAppointmentType.toLowerCase() === 'established') {\n return false;\n }\n if (existingPatient && appointmentType.patientAppointmentType.toLowerCase() === 'new') {\n return false;\n }\n return true;\n};\nconst getAppointmentTypes = (existingPatient, videoVisit, providerAppointmentTypes) => {\n if (existingPatient) {\n if (videoVisit) {\n return providerAppointmentTypes.existingPatient.video;\n }\n else {\n return providerAppointmentTypes.existingPatient.inPerson;\n }\n }\n else {\n if (videoVisit) {\n return providerAppointmentTypes.newPatient.video;\n }\n else {\n return providerAppointmentTypes.newPatient.inPerson;\n }\n }\n};\nconst getLocations = (provider, existingPatient) => {\n let locations = [];\n if (provider && provider.offices && provider.offices.length) {\n provider.offices.forEach(office => {\n office.addresses.forEach(officeAddress => {\n locations.push({\n office: { ...officeAddress, name: office.name },\n providerName: provider.displayFullName,\n type: AppointmentType.InPerson\n });\n });\n });\n if (provider.onlineBookingAvailability) {\n let videoLocation = null;\n for (const onlineBookingItem of provider.onlineBookingAvailability) {\n const scheduleId = onlineBookingItem.scheduleId;\n const providerAvailability = (onlineBookingItem.nextAvailableTimes || []).filter(a => a.time);\n const providerAppointments = onlineBookingItem.appointmentTypes || [];\n const providerLocation = locations.filter(item => item.office.id === onlineBookingItem.officeAddressId)[0];\n if (providerLocation) {\n providerLocation.office.appointments = getAllowedAppointments(existingPatient, false, providerAppointments, providerAvailability, provider.onlineBookingAvailability);\n providerLocation.scheduleId = scheduleId;\n providerLocation.type = AppointmentType.InPerson;\n }\n if (!videoLocation) {\n const videoAppointments = getAllowedAppointments(existingPatient, true, providerAppointments, providerAvailability, provider.onlineBookingAvailability);\n if (videoAppointments && videoAppointments.length) {\n videoLocation = Object.assign({}, providerLocation);\n videoLocation.type = AppointmentType.Virtual;\n videoLocation.office = Object.assign({}, providerLocation.office);\n videoLocation.office.appointments = videoAppointments;\n }\n }\n }\n if (!videoLocation && provider.acceptsVideoCalls) {\n let primaryLocation = locations.filter(locationItem => locationItem.office.isPrimaryOffice)[0];\n if (!primaryLocation) {\n primaryLocation = locations[0];\n }\n videoLocation = {\n office: { ...primaryLocation.office, appointments: null },\n providerName: provider.displayFullName,\n scheduleId: primaryLocation.scheduleId,\n type: AppointmentType.Virtual\n };\n }\n if (videoLocation) {\n locations = [videoLocation, ...locations];\n }\n }\n }\n return locations;\n};\nconst getLocationSchedule = (provider, location, appointmentType, timeSlots, marketCode, useLegacyAPI) => {\n let aptSchedule = null;\n const appointmentTimes = [];\n let minDate = null;\n let maxDate = null;\n let times;\n const office = location.office;\n if (provider.onlineBookingAvailability) {\n if (!useLegacyAPI) {\n if (location?.type === AppointmentType.Virtual || timeSlots.officeAddressId === office.id) {\n times = filterAppointmentTimes(appointmentType, timeSlots.availableTimes);\n if (times && times.length > 0) {\n minDate = new Date(Math.min(...times.map(a => a.date.getTime(), minDate)));\n maxDate = new Date(Math.max(...times.map(a => a.date.getTime(), maxDate)));\n }\n times.forEach(time => {\n appointmentTimes.push({ date: time.date, time: time.time, office, appointment: time.appointment, slotId: time.slotId });\n });\n }\n }\n else {\n for (const onlineBookingItem of provider.onlineBookingAvailability) {\n if (location?.type === AppointmentType.Virtual || onlineBookingItem.officeAddressId === office.id) {\n times = filterAppointmentTimes(appointmentType, onlineBookingItem.availableTimes);\n if (times && times.length > 0) {\n minDate = new Date(Math.min(...times.map(a => a.date.getTime(), minDate)));\n maxDate = new Date(Math.max(...times.map(a => a.date.getTime(), maxDate)));\n }\n times.forEach(time => {\n appointmentTimes.push({ date: time.date, time: time.time, office, appointment: time.appointment, slotId: time.slotId });\n });\n if (location?.type === AppointmentType.InPerson) {\n break;\n }\n }\n }\n }\n }\n aptSchedule = {\n start: minDate,\n end: maxDate,\n appointments: appointmentTimes,\n type: appointmentType\n };\n return aptSchedule;\n};\nconst filterAppointmentTimes = (appointmentType, availableTimes) => {\n const times = [];\n availableTimes.forEach(dateSchedule => {\n const appointmentTimes = dateSchedule.times.filter(timeSchedule => timeSchedule.appointmentTypes.findIndex(aType => aType.id === appointmentType.id) > -1);\n times.push(...appointmentTimes.map(timeSchedule => {\n return {\n date: new Date(timeSchedule.time.split('T')[0] + 'T12:00:00'),\n time: timeSchedule.time,\n appointment: appointmentType,\n slotId: timeSchedule.slotId\n };\n }));\n });\n return times;\n};\nconst identifyPatientTypeByAppointment = (appointmentTypeRemoteId, onlineBookingAvailability) => {\n const providerAppointmentTypes = getProviderAppointmentTypes(onlineBookingAvailability);\n let existingPatient = false;\n let visitType = null;\n if (providerAppointmentTypes.existingPatient.inPerson.indexOf(appointmentTypeRemoteId) >= 0) {\n existingPatient = true;\n visitType = AppointmentType.InPerson;\n }\n else if (providerAppointmentTypes.existingPatient.video.indexOf(appointmentTypeRemoteId) >= 0) {\n existingPatient = true;\n visitType = AppointmentType.Virtual;\n }\n else if (providerAppointmentTypes.newPatient.inPerson.indexOf(appointmentTypeRemoteId) >= 0) {\n existingPatient = false;\n visitType = AppointmentType.InPerson;\n }\n else if (providerAppointmentTypes.newPatient.video.indexOf(appointmentTypeRemoteId) >= 0) {\n existingPatient = false;\n visitType = AppointmentType.Virtual;\n }\n return {\n existingPatient,\n visitType\n };\n};\nconst getFormattedRescheduleTime = (timeString, state = null) => {\n let formattedTime = '';\n if (timeString) {\n const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];\n const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n const timeZones = {\n '08:00': 'PST',\n '07:00': 'MST',\n '06:00': 'CST',\n '05:00': 'EST'\n };\n const splitTime = timeString.split('T');\n const normalizedDate = new Date(splitTime[0] + 'T12:00:00');\n const normalizedTime = splitTime[1].split('-')[0].split(':');\n const amPm = Number.parseInt(normalizedTime[0], 10) >= 12 ? 'p.m.' : 'a.m.';\n const timeZone = getTz(new Date(timeString), state); // timeZones[splitTime[1].split('-')[1]] || '';\n let hour = Number.parseInt(normalizedTime[0], 10);\n if (hour > 12) {\n hour = hour - 12;\n }\n if (hour < 10) {\n hour = '0' + hour;\n }\n let formattedDate = normalizedDate.getUTCDate();\n formattedDate = formattedDate < 10 ? '0' + formattedDate : formattedDate;\n formattedTime = `${days[normalizedDate.getUTCDay()]}, ${months[normalizedDate.getUTCMonth()]} ${formattedDate}, ${normalizedDate.getUTCFullYear()} at ${hour}:${normalizedTime[1]} ${amPm} ${timeZone}`;\n }\n return formattedTime;\n};\nconst getProviderImage = (providerImages) => {\n const largeImage = providerImages?.find((image) => {\n return image.imageType === 'large';\n });\n let providerImageUrl = largeImage?.url || (providerImages || [])[0]?.url;\n if (providerImageUrl) {\n // Reasoning: Urls are in http and ios will not load them on https sites.\n providerImageUrl = providerImageUrl.replace('http://', '//');\n }\n return providerImageUrl || null;\n};\nconst getProviderAppointmentTypes = (onlineBookingAvailability) => {\n const providerAppointmentTypes = {\n existingPatient: {\n inPerson: [],\n video: []\n },\n newPatient: {\n inPerson: [],\n video: []\n }\n };\n onlineBookingAvailability.forEach(booking => {\n (booking.appointmentTypes || []).forEach(appointmentType => {\n if (appointmentType.patientAppointmentType?.toLowerCase() === 'new') {\n if (appointmentType.categoryType?.toLowerCase() === 'in-person') {\n providerAppointmentTypes.newPatient.inPerson.push(appointmentType.remoteId);\n }\n else if (appointmentType.categoryType?.toLowerCase() === 'virtual visits') {\n providerAppointmentTypes.newPatient.video.push(appointmentType.remoteId);\n }\n }\n else if (appointmentType.patientAppointmentType?.toLowerCase() === 'established') {\n if (appointmentType.categoryType?.toLowerCase() === 'in-person') {\n providerAppointmentTypes.existingPatient.inPerson.push(appointmentType.remoteId);\n }\n else if (appointmentType.categoryType?.toLowerCase() === 'virtual visits') {\n providerAppointmentTypes.existingPatient.video.push(appointmentType.remoteId);\n }\n }\n else if (appointmentType.patientAppointmentType?.toLowerCase() === 'both') {\n if (appointmentType.categoryType?.toLowerCase() === 'in-person') {\n providerAppointmentTypes.newPatient.inPerson.push(appointmentType.remoteId);\n providerAppointmentTypes.existingPatient.inPerson.push(appointmentType.remoteId);\n }\n else if (appointmentType.categoryType?.toLowerCase() === 'virtual visits') {\n providerAppointmentTypes.newPatient.video.push(appointmentType.remoteId);\n providerAppointmentTypes.existingPatient.video.push(appointmentType.remoteId);\n }\n }\n });\n });\n providerAppointmentTypes.existingPatient.inPerson = [...new Set(providerAppointmentTypes.existingPatient.inPerson)];\n providerAppointmentTypes.existingPatient.video = [...new Set(providerAppointmentTypes.existingPatient.video)];\n providerAppointmentTypes.newPatient.inPerson = [...new Set(providerAppointmentTypes.newPatient.inPerson)];\n providerAppointmentTypes.newPatient.video = [...new Set(providerAppointmentTypes.newPatient.video)];\n return providerAppointmentTypes;\n};\nconst getTz = (date, state) => {\n const parsed = date;\n const states = {\n AZ: 'America/Phoenix',\n CA: 'America/Los_Angeles',\n NV: 'America/Los_Angeles'\n };\n const dt = new DateTime(parsed);\n let timezoneFormat = dt.setZone(states[state], { keepLocalTime: true }).toFormat('ZZZZ');\n if (state && state?.toLowerCase() === 'az') {\n timezoneFormat = 'AZ-' + timezoneFormat;\n }\n else if (!state || state?.toLowerCase() === '') {\n // Moved from moment --> luxon; legacy code would return UTC.\n timezoneFormat = 'UTC';\n }\n return timezoneFormat;\n};\nconst removeProviderNamePrefix = (firstName, lastName, degree) => {\n let degreeFormatted = '';\n if (degree) {\n degreeFormatted = `, ${degree}`;\n }\n return `${firstName} ${lastName}${degreeFormatted}`;\n};\n\nclass WindowService {\n constructor() { }\n locationHref(url) {\n window.location.href = url;\n }\n parentLocationHref(url) {\n window.parent.location.href = url;\n }\n postMessage(message, domain) {\n window.postMessage(message, domain);\n }\n dispatchEvent(eventName, message) {\n window.dispatchEvent(new CustomEvent(eventName, { detail: message }));\n }\n refresh() {\n window.location.reload();\n }\n base64Encode(object) {\n return window.btoa(JSON.stringify(object));\n }\n setSessionStorage(key, value) {\n window.sessionStorage.setItem(key, value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: WindowService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: WindowService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [] });\n\nclass CallToScheduleComponent {\n windowService;\n providerName;\n phoneNumber;\n isRescheduling;\n originalApptTime;\n state;\n constructor(windowService) {\n this.windowService = windowService;\n }\n ngOnInit() { }\n callBtnHandler() {\n this.windowService.locationHref('tel:' + this.phoneNumber);\n }\n get formattedOriginalApptTime() {\n return getFormattedRescheduleTime(this.originalApptTime, this.state);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CallToScheduleComponent, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: CallToScheduleComponent, selector: \"dhgf-call-to-schedule\", inputs: { providerName: \"providerName\", phoneNumber: \"phoneNumber\", isRescheduling: \"isRescheduling\", originalApptTime: \"originalApptTime\", state: \"state\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n <svg class=\\\"screencheckmax\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M22.8464 23.1281L23.9714 18.2532C24.0932 17.7235 23.8167 17.1798 23.3198 16.9642L18.0699 14.7142C17.6106 14.5174 17.0715 14.6486 16.7575 15.0377L14.4325 17.8782C10.8373 16.1908 7.84671 13.2424 6.12643 9.57216L8.967 7.24721C9.35605 6.92847 9.4873 6.3941 9.29043 5.93474L7.04048 0.684849C6.82017 0.183297 6.27643 -0.0932598 5.74675 0.0286126L0.871857 1.15359C0.365618 1.27077 0 1.72076 0 2.25044C0 14.2549 9.72636 24 21.7495 24C22.2745 24 22.7292 23.639 22.8464 23.1281Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n {{ isRescheduling ? 'Call to reschedule your appointment' : 'Call to schedule' }}\\r\\n </h3>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p *ngIf=\\\"!isRescheduling\\\" class=\\\"p1regular\\\">\\r\\n Sorry, there are no appointments available for online scheduling at this time.\\r\\n </p>\\r\\n <p *ngIf=\\\"isRescheduling\\\" class=\\\"p1regular\\\">\\r\\n <strong>{{ formattedOriginalApptTime }} </strong> with {{ providerName }}\\r\\n </p>\\r\\n\\r\\n <p class=\\\"p1regular\\\">\\r\\n Please call {{ providerName }}'s office directly at\\r\\n <span\\r\\n ><a class=\\\"phone\\\" href=\\\"tel:{{ phoneNumber }}\\\">{{ phoneNumber }}</a></span\\r\\n >\\r\\n to schedule your appointment.\\r\\n </p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button dhclButton buttonType=\\\"secondary\\\" (click)=\\\"callBtnHandler()\\\">\\r\\n <span class=\\\"dot\\\">\\r\\n <svg width=\\\"14\\\" height=\\\"14\\\" viewBox=\\\"0 0 14 14\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n class=\\\"phone-icon\\\"\\r\\n d=\\\"M13.3271 13.4914L13.9833 10.6477C14.0544 10.3387 13.8931 10.0216 13.6032 9.89579L10.5408 8.58331C10.2728 8.46847 9.95838 8.54503 9.77518 8.77198L8.41896 10.429C6.32174 9.44462 4.57724 7.72474 3.57375 5.58377L5.23074 4.22754C5.45769 4.04161 5.53425 3.7299 5.41941 3.46193L4.10694 0.399495C3.97843 0.106923 3.66124 -0.0544016 3.35227 0.0166907L0.508574 0.672927C0.213267 0.741285 -9.53674e-06 1.00378 -9.53674e-06 1.31276C-9.53674e-06 8.31535 5.6737 14 12.6872 14C12.9935 14 13.2587 13.7895 13.3271 13.4914Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n </span>\\r\\n <span>Call to schedule</span>\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{padding:20px 84px}@media (max-width: 419px){.guided-flow-step-wrapper{padding:20px}}.guided-flow-step-wrapper-header{margin:0;text-align:left}.guided-flow-step-wrapper-header svg.screencheckmax{margin:0 10px 0 0;transform:translateY(2px)}@media (max-width: 419px){.guided-flow-step-wrapper-header svg.screencheckmax{display:none}}@media (max-width: 419px){.guided-flow-step-wrapper-content{margin:10px 0;padding-bottom:20px}}.guided-flow-step-wrapper-footer{text-align:left;position:relative;padding:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute;padding:0 20px}}.guided-flow-step-wrapper-footer button{margin:0}.guided-flow-step-wrapper-footer button .dot{height:28px;width:28px;background-color:var(--dhcl-color-secondary);border-radius:50%;text-align:center;display:inline-block;vertical-align:middle;margin-right:10px;margin-top:-5px}.guided-flow-step-wrapper-footer button .dot svg{transform:translateY(7px)}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0}}@media (min-width: 992px){.guided-flow-step-wrapper-footer button{display:none}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CallToScheduleComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-call-to-schedule', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n <svg class=\\\"screencheckmax\\\" width=\\\"24\\\" height=\\\"24\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M22.8464 23.1281L23.9714 18.2532C24.0932 17.7235 23.8167 17.1798 23.3198 16.9642L18.0699 14.7142C17.6106 14.5174 17.0715 14.6486 16.7575 15.0377L14.4325 17.8782C10.8373 16.1908 7.84671 13.2424 6.12643 9.57216L8.967 7.24721C9.35605 6.92847 9.4873 6.3941 9.29043 5.93474L7.04048 0.684849C6.82017 0.183297 6.27643 -0.0932598 5.74675 0.0286126L0.871857 1.15359C0.365618 1.27077 0 1.72076 0 2.25044C0 14.2549 9.72636 24 21.7495 24C22.2745 24 22.7292 23.639 22.8464 23.1281Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n {{ isRescheduling ? 'Call to reschedule your appointment' : 'Call to schedule' }}\\r\\n </h3>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p *ngIf=\\\"!isRescheduling\\\" class=\\\"p1regular\\\">\\r\\n Sorry, there are no appointments available for online scheduling at this time.\\r\\n </p>\\r\\n <p *ngIf=\\\"isRescheduling\\\" class=\\\"p1regular\\\">\\r\\n <strong>{{ formattedOriginalApptTime }} </strong> with {{ providerName }}\\r\\n </p>\\r\\n\\r\\n <p class=\\\"p1regular\\\">\\r\\n Please call {{ providerName }}'s office directly at\\r\\n <span\\r\\n ><a class=\\\"phone\\\" href=\\\"tel:{{ phoneNumber }}\\\">{{ phoneNumber }}</a></span\\r\\n >\\r\\n to schedule your appointment.\\r\\n </p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button dhclButton buttonType=\\\"secondary\\\" (click)=\\\"callBtnHandler()\\\">\\r\\n <span class=\\\"dot\\\">\\r\\n <svg width=\\\"14\\\" height=\\\"14\\\" viewBox=\\\"0 0 14 14\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n class=\\\"phone-icon\\\"\\r\\n d=\\\"M13.3271 13.4914L13.9833 10.6477C14.0544 10.3387 13.8931 10.0216 13.6032 9.89579L10.5408 8.58331C10.2728 8.46847 9.95838 8.54503 9.77518 8.77198L8.41896 10.429C6.32174 9.44462 4.57724 7.72474 3.57375 5.58377L5.23074 4.22754C5.45769 4.04161 5.53425 3.7299 5.41941 3.46193L4.10694 0.399495C3.97843 0.106923 3.66124 -0.0544016 3.35227 0.0166907L0.508574 0.672927C0.213267 0.741285 -9.53674e-06 1.00378 -9.53674e-06 1.31276C-9.53674e-06 8.31535 5.6737 14 12.6872 14C12.9935 14 13.2587 13.7895 13.3271 13.4914Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n </span>\\r\\n <span>Call to schedule</span>\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{padding:20px 84px}@media (max-width: 419px){.guided-flow-step-wrapper{padding:20px}}.guided-flow-step-wrapper-header{margin:0;text-align:left}.guided-flow-step-wrapper-header svg.screencheckmax{margin:0 10px 0 0;transform:translateY(2px)}@media (max-width: 419px){.guided-flow-step-wrapper-header svg.screencheckmax{display:none}}@media (max-width: 419px){.guided-flow-step-wrapper-content{margin:10px 0;padding-bottom:20px}}.guided-flow-step-wrapper-footer{text-align:left;position:relative;padding:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute;padding:0 20px}}.guided-flow-step-wrapper-footer button{margin:0}.guided-flow-step-wrapper-footer button .dot{height:28px;width:28px;background-color:var(--dhcl-color-secondary);border-radius:50%;text-align:center;display:inline-block;vertical-align:middle;margin-right:10px;margin-top:-5px}.guided-flow-step-wrapper-footer button .dot svg{transform:translateY(7px)}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0}}@media (min-width: 992px){.guided-flow-step-wrapper-footer button{display:none}}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }], propDecorators: { providerName: [{\n type: Input\n }], phoneNumber: [{\n type: Input\n }], isRescheduling: [{\n type: Input\n }], originalApptTime: [{\n type: Input\n }], state: [{\n type: Input\n }] } });\n\nclass EnvironmentService {\n environment;\n environmentSubject = new BehaviorSubject({});\n environmentObserver = this.environmentSubject.asObservable();\n tenantCode;\n environmentVariables = {\n dev: {\n providerScheduleEndpoint: 'https://apim.dev.dignityhealthppe.org/scheduling',\n providerSearchEndpoint: 'https://apim.dev.dignityhealthppe.org/providersearch',\n providerTimeslotsEndpoint: 'https://apidev.commonspirit.org/api/v1/c1-fad/providers/schedule',\n appointmentsUrl: 'https://slot1.dev.dignityhealth.org/my-home/myappointments',\n rescheduleAppointmentsEndpoint: 'https://apim.dev.dignityhealthppe.org/appointmentsdomain/v1/appointments',\n fadSelfBaseUrl: 'https://fad-dev.dignityhealthppe.org',\n fadEpicUrl: 'https://mychart-np.catholichealth.net/POC/Extensibility/Redirection/Content?fdi=WP-24Xlzy2lUEjq94Gcuo-2FigZAw-3D-3D-24u9gHqcbMRMGVaMfOXOSTFFyqcLYOPMPbTtQ7KSUEVPo-3D',\n providerSearchMuleEndpoint: 'https://apidev.commonspirit.org/api/v1/c1-fad/providers/'\n },\n qa1: {\n providerScheduleEndpoint: 'https://apim.qa1.dignityhealthppe.org/scheduling',\n providerSearchEndpoint: 'https://apim.qa1.dignityhealthppe.org/providersearch',\n providerTimeslotsEndpoint: 'https://apiqa.commonspirit.org/api/v1/c1-fad/providers/schedule',\n appointmentsUrl: 'https://slot2.dev.dignityhealth.org/my-home/myappointments',\n rescheduleAppointmentsEndpoint: 'https://apim.qa1.dignityhealthppe.org/appointmentsdomain/v1/Appointments',\n fadSelfBaseUrl: 'https://fad-qa.dignityhealthppe.org',\n fadEpicUrl: 'https://mychart-np.catholichealth.net/TST/Extensibility/Redirection/Content?fdi=WP-24RL-2FVEkbg7dKNVslx17SWgA-3D-3D-24Lp-2B-2BOFMHyLzmXBM7Wa4Y9yx1EJ-2FBOj3I-2BPQy-2BWPmGwc-3D',\n providerSearchMuleEndpoint: 'https://apidev.commonspirit.org/api/v1/c1-fad/providers/'\n },\n stg: {\n providerScheduleEndpoint: 'https://apim.dignityhealthstg.org/scheduling',\n providerSearchEndpoint: 'https://apim.dignityhealthstg.org/providersearch',\n providerTimeslotsEndpoint: 'https://apiuat.commonspirit.org/api/v1/c1-fad/providers/schedule',\n appointmentsUrl: 'https://staging.dignityhealth.org/my-home/myappointments',\n rescheduleAppointmentsEndpoint: 'https://apim.dignityhealthstg.org/appointmentsdomain/v1/appointments',\n fadSelfBaseUrl: 'https://fad.dignityhealthstg.org',\n fadEpicUrl: 'https://mychart-np.catholichealth.net/TST/Extensibility/Redirection/Content?fdi=WP-24RL-2FVEkbg7dKNVslx17SWgA-3D-3D-24Lp-2B-2BOFMHyLzmXBM7Wa4Y9yx1EJ-2FBOj3I-2BPQy-2BWPmGwc-3D',\n providerSearchMuleEndpoint: 'https://apidev.commonspirit.org/api/v1/c1-fad/providers/'\n },\n prd: {\n providerScheduleEndpoint: 'https://apim.dignityhealth.org/scheduling',\n providerSearchEndpoint: 'https://apim.dignityhealth.org/providersearch',\n providerTimeslotsEndpoint: 'https://apiprod.commonspirit.org/api/v1/c1-fad/providers/schedule',\n appointmentsUrl: 'https://www.dignityhealth.org/my-home/myappointments',\n rescheduleAppointmentsEndpoint: 'https://web-usw1-appointmentdomainapi-prd.ase-usw1-shared-prd.p.azurewebsites.net/api/v1/Appointments',\n fadSelfBaseUrl: 'https://fad.dignityhealth.org',\n fadEpicUrl: 'https://mychart.catholichealth.net/PRD/Extensibility/Redirection/Content?fdi=WP-24ZvBJbnRRA1XkR-2FpZ9D-2FbPw-3D-3D-24OipMz7b9K78wbkP7AA-2BTgiVMPxbD4SLesARALH9GLNY-3D',\n providerSearchMuleEndpoint: 'https://apidev.commonspirit.org/api/v1/c1-fad/providers/'\n },\n tst: {\n providerScheduleEndpoint: 'https://apim.dignityhealthstg.org/scheduling',\n providerSearchEndpoint: 'https://apim.dignityhealthstg.org/providersearch',\n providerTimeslotsEndpoint: 'https://apiqa.commonspirit.org/api/v1/c1-fad/providers/schedule',\n appointmentsUrl: 'https://tst.dignityhealth.org/my-home/myappointments',\n rescheduleAppointmentsEndpoint: 'https://apim.qa1.dignityhealthppe.org/appointmentsdomain',\n fadSelfBaseUrl: 'https://fad.dignityhealthstg.org',\n fadEpicUrl: 'https://mychart-np.catholichealth.net/TST/Extensibility/Redirection/Content?fdi=WP-24RL-2FVEkbg7dKNVslx17SWgA-3D-3D-24Lp-2B-2BOFMHyLzmXBM7Wa4Y9yx1EJ-2FBOj3I-2BPQy-2BWPmGwc-3D',\n providerSearchMuleEndpoint: 'https://apidev.commonspirit.org/api/v1/c1-fad/providers/'\n }\n };\n constructor() { }\n setEnvironment(env, tenantCode) {\n this.environment = env;\n this.tenantCode = tenantCode;\n const environment = this.environmentVariables[this.environment];\n this.environmentSubject.next(environment);\n }\n getEnvironment() {\n return this.environmentObserver;\n }\n getTenant() {\n return this.tenantCode;\n }\n setRescheduleSecrets(apimSubscriptionKey, clientId, clientSecret, captchaSiteKey) {\n Object.keys(this.environmentVariables).forEach((envKey) => {\n this.environmentVariables[envKey].apimSubscriptionKey = apimSubscriptionKey;\n this.environmentVariables[envKey].clientId = clientId;\n this.environmentVariables[envKey].clientSecret = clientSecret;\n this.environmentVariables[envKey].captchaSiteKey = captchaSiteKey;\n });\n this.environmentSubject.next(this.environmentVariables[this.environment]);\n }\n setValue(envKey, key, value) {\n this.environmentVariables[envKey][key] = value;\n this.environmentSubject.next(this.environmentVariables[this.environment]);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EnvironmentService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: EnvironmentService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [] });\n\nclass FindAnotherDoctorComponent {\n windowService;\n environmentService;\n providerName;\n baseUrl = '';\n market = '';\n useLegacyAPI;\n embedSource = '';\n fadSelfBaseUrl = '';\n fadEpicUrl = '';\n constructor(windowService, environmentService) {\n this.windowService = windowService;\n this.environmentService = environmentService;\n this.environmentService.getEnvironment().subscribe((environmentData) => {\n this.fadSelfBaseUrl = environmentData.fadSelfBaseUrl;\n this.fadEpicUrl = environmentData.fadEpicUrl;\n });\n }\n ngOnInit() { }\n btnClickHandler() {\n if (!this.useLegacyAPI) {\n if (this.embedSource === 'mychart') {\n this.windowService.parentLocationHref(this.fadEpicUrl);\n }\n else if (this.embedSource === 'cerner') {\n const message = {\n guidedFlow: true,\n source: 'find-another-doctor',\n type: 'CommonSpirit.GuidedFlow.RedirectToFad'\n };\n this.windowService.dispatchEvent('CommonSpirit:FindADoctor', message);\n }\n else {\n this.windowService.locationHref(`${this.baseUrl}/find-a-doctor`);\n }\n }\n else {\n this.windowService.locationHref(`${this.baseUrl}/ourdoctors`);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FindAnotherDoctorComponent, deps: [{ token: WindowService }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: FindAnotherDoctorComponent, selector: \"dhgf-find-another-doctor\", inputs: { providerName: \"providerName\", baseUrl: \"baseUrl\", market: \"market\", useLegacyAPI: \"useLegacyAPI\", embedSource: \"embedSource\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">Unable to schedule appointment</h3>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p>Sorry, it looks like {{ providerName }} isn't accepting new patients at the moment.</p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button dhclButton buttonType=\\\"primary\\\" hasArrow=\\\"true\\\" (click)=\\\"btnClickHandler()\\\">Find another doctor</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{padding:20px 84px}@media (max-width: 419px){.guided-flow-step-wrapper{padding:20px}}.guided-flow-step-wrapper-header{margin:0;text-align:left}@media (max-width: 419px){.guided-flow-step-wrapper-content{margin:10px 0;padding-bottom:20px}}.guided-flow-step-wrapper-footer{text-align:left;position:relative;padding:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute;padding:0 20px}}.guided-flow-step-wrapper-footer button{margin:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0}}\\n\"], dependencies: [{ kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: FindAnotherDoctorComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-find-another-doctor', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">Unable to schedule appointment</h3>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p>Sorry, it looks like {{ providerName }} isn't accepting new patients at the moment.</p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button dhclButton buttonType=\\\"primary\\\" hasArrow=\\\"true\\\" (click)=\\\"btnClickHandler()\\\">Find another doctor</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{padding:20px 84px}@media (max-width: 419px){.guided-flow-step-wrapper{padding:20px}}.guided-flow-step-wrapper-header{margin:0;text-align:left}@media (max-width: 419px){.guided-flow-step-wrapper-content{margin:10px 0;padding-bottom:20px}}.guided-flow-step-wrapper-footer{text-align:left;position:relative;padding:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute;padding:0 20px}}.guided-flow-step-wrapper-footer button{margin:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0}}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }, { type: EnvironmentService }], propDecorators: { providerName: [{\n type: Input\n }], baseUrl: [{\n type: Input\n }], market: [{\n type: Input\n }], useLegacyAPI: [{\n type: Input\n }], embedSource: [{\n type: Input\n }] } });\n\nvar Environments;\n(function (Environments) {\n Environments[\"DEV\"] = \"dev\";\n Environments[\"QA1\"] = \"qa1\";\n Environments[\"STG\"] = \"stg\";\n Environments[\"PRD\"] = \"prd\";\n Environments[\"TST\"] = \"tst\";\n})(Environments || (Environments = {}));\n\nclass ProviderSearchService {\n http;\n environmentService;\n providerSearchEndpoint;\n providerSearchMuleEndpoint;\n providerSearchLegacyEndpoint;\n constructor(http, environmentService) {\n this.http = http;\n this.environmentService = environmentService;\n this.environmentService.getEnvironment().subscribe((environmentData) => {\n this.providerSearchEndpoint = environmentData.providerSearchEndpoint;\n this.providerSearchMuleEndpoint = environmentData.providerSearchMuleEndpoint;\n });\n }\n getProviderDetails(npi, apimSubscriptionKey) {\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n 'x-tenant': this.environmentService.getTenant(),\n 'Ocp-Apim-Subscription-Key': apimSubscriptionKey\n })\n };\n return this.http.get(`${this.providerSearchEndpoint}/v2/providers/search/?npis=${npi}&facets=All&include=metadata,extendeddata,NextAvailableTimes,AvailableTimes`, httpOptions);\n }\n getProviderMule(npi, apimSubscriptionKey, marketValue) {\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n 'x-tenant': this.environmentService.getTenant(),\n 'Ocp-Apim-Subscription-Key': apimSubscriptionKey\n })\n };\n return this.http.get(`${this.providerSearchMuleEndpoint}${npi}?divisionCodes=dignity-health&marketCodes=${marketValue}`, httpOptions);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProviderSearchService, deps: [{ token: i1$1.HttpClient }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProviderSearchService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: ProviderSearchService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: EnvironmentService }] });\n\nclass SchedulingService {\n http;\n environmentService;\n schedulingApiEndpoint;\n providerTimeslotsEndpoint;\n providersSearchApimSubscriptionKey;\n constructor(http, environmentService) {\n this.http = http;\n this.environmentService = environmentService;\n this.environmentService.getEnvironment().subscribe((environmentData) => {\n this.schedulingApiEndpoint = environmentData.providerScheduleEndpoint;\n this.providerTimeslotsEndpoint = environmentData.providerTimeslotsEndpoint;\n });\n }\n getLocationSchedule(appointmentTypes, locationIds, subscriptionKey) {\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n 'Ocp-Apim-Subscription-Key': subscriptionKey\n })\n };\n return this.http.get(`${this.schedulingApiEndpoint}/v1/provider/location/schedule?locations=${locationIds}&types=${appointmentTypes}`, httpOptions);\n }\n getTimeslotsByAppointmentType(providerSlotId, visitId, npi, ehrCode, marketCodes, appointmentTypes, subscriptionKey, practitionerId, officeAddressId) {\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.get(`${this.providerTimeslotsEndpoint}?officeAddressId=${officeAddressId}&practitionerId=${practitionerId}&providerSlotId=${providerSlotId}&visitId=${visitId}&npi=${npi}&ehrCode=${ehrCode}&marketCodes=${marketCodes}&appointmentTypes=${encodeURIComponent(appointmentTypes)}`, httpOptions);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SchedulingService, deps: [{ token: i1$1.HttpClient }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SchedulingService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SchedulingService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: EnvironmentService }] });\n\nclass GuidedFlowStartState {\n locationId;\n appointmentTypeRemoteId;\n newPatient;\n appointmentType;\n invalid = true;\n onlineBookingAvailability;\n init(params, onlineBookingAvailability) {\n this.invalid = true;\n this.locationId = params?.locationId;\n this.appointmentTypeRemoteId = params?.appointmentTypeRemoteId;\n this.onlineBookingAvailability = onlineBookingAvailability;\n if (this.appointmentTypeRemoteId) {\n const result = identifyPatientTypeByAppointment(this.appointmentTypeRemoteId, this.onlineBookingAvailability);\n if (result && result.visitType !== null && result.visitType !== undefined) {\n this.newPatient = !result.existingPatient;\n this.appointmentType = result.visitType;\n this.invalid = false;\n }\n }\n }\n}\n\nvar Ehrs;\n(function (Ehrs) {\n Ehrs[\"EPIC\"] = \"mychart\";\n Ehrs[\"CERNER\"] = \"cerner\";\n})(Ehrs || (Ehrs = {}));\n\nclass CjaTagService {\n constructor() { }\n link(action, appointmentData, isLoggedIn, mrn = '', label = '', category = 'search and schedule') {\n window.adobeDataLayer = window.adobeDataLayer || [];\n window.adobeDataLayer.push({\n search_schedule_mrn: `${mrn}`,\n mrn: `${mrn}`,\n event_mrn: `${mrn}`,\n event: 'customEvent',\n event_name: `${category}:${action}`,\n event_category: category,\n event_action: action,\n event_label: label,\n event_appointment_booking_type: appointmentData?.visitMetadata?.appointmentTypeLabel || '',\n event_facility: appointmentData?.facility?.facilityName || '',\n event_service_line: '',\n event_doctor_name: appointmentData?.provider?.name,\n event_doctor_npi: appointmentData?.provider?.npi,\n booking_type_id: appointmentData?.visitMetadata?.appointmentType || '',\n search_schedule_location: appointmentData?.facility?.facilityId || '',\n search_schedule_book_online: 'true',\n search_schedule_keyword: '',\n search_schedule_booking_flow: appointmentData?.visitMetadata?.isReschedule\n ? 'reschedule'\n : appointmentData?.visitMetadata.isBookAgain\n ? 're-book'\n : 'new',\n patientEngagement: 'true',\n visitor_loginStatus: (!!(isLoggedIn ||\n appointmentData?.visitMetadata?.isBookAgain ||\n appointmentData?.visitMetadata?.isReschedule)).toString()\n });\n }\n linkCovidFlow(action, appointmentData, isLoggedIn, mrn = '', label = '', category = 'search and schedule', patientDetail = null) {\n window.adobeDataLayer = window.adobeDataLayer || [];\n window.adobeDataLayer.push({\n search_schedule_mrn: `${mrn}`,\n mrn: `${mrn}`,\n event_mrn: `${mrn}`,\n event: 'customEvent',\n event_name: `${category}:${action}`,\n event_category: category,\n event_action: action,\n event_label: label,\n event_appointment_booking_type: appointmentData?.visitMetadata?.appointmentTypeLabel || '',\n event_facility: appointmentData?.facility?.facilityName || '',\n event_service_line: '',\n event_doctor_name: appointmentData?.provider?.name,\n event_doctor_npi: appointmentData?.provider?.npi,\n booking_type_id: appointmentData?.visitMetadata?.appointmentType || '',\n search_schedule_location: appointmentData?.facility?.facilityId || '',\n search_schedule_book_online: 'true',\n search_schedule_keyword: '',\n search_schedule_booking_flow: appointmentData?.visitMetadata?.isReschedule\n ? 'reschedule'\n : appointmentData?.visitMetadata.isBookAgain\n ? 're-book'\n : 'new',\n patientEngagement: 'true',\n visitor_loginStatus: (!!(isLoggedIn ||\n appointmentData?.visitMetadata?.isBookAgain ||\n appointmentData?.visitMetadata?.isReschedule)).toString(),\n patient_fname: patientDetail ? patientDetail.firstName || '' : '',\n patient_lname: patientDetail ? patientDetail.lastName || '' : '',\n patient_dob: patientDetail ? patientDetail.dateOfBirth || '' : '',\n patient_email: patientDetail ? patientDetail.eMail || '' : '',\n patient_phone: patientDetail ? patientDetail.phoneNumber || '' : ''\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CjaTagService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CjaTagService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CjaTagService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [] });\n\nclass Step1Component {\n providerFullName;\n phoneNumber;\n providerSpecialty;\n acceptingNewPatients;\n appointmentsAvailable;\n canBookOnline;\n statusChange = new EventEmitter();\n showStep1 = false;\n constructor() { }\n ngOnInit() { }\n buttonHandler(isNewPatient) {\n this.statusChange.emit({ newPatient: isNewPatient });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step1Component, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: Step1Component, selector: \"dhgf-step1\", inputs: { providerFullName: \"providerFullName\", phoneNumber: \"phoneNumber\", providerSpecialty: \"providerSpecialty\", acceptingNewPatients: \"acceptingNewPatients\", appointmentsAvailable: \"appointmentsAvailable\", canBookOnline: \"canBookOnline\" }, outputs: { statusChange: \"statusChange\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">Have you seen {{ providerFullName }} in the last 3 years?</h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"buttonHandler(true)\\\">No</button>\\r\\n <button dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"buttonHandler(false)\\\">Yes</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\"@media (max-width: 419px){.guided-flow-step-wrapper{padding-bottom:125px}}.guided-flow-step-wrapper-header{margin-bottom:50px}.guided-flow-step-wrapper-footer{text-align:center;position:relative}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute}.guided-flow-step-wrapper-footer button{margin:10px 0}.guided-flow-step-wrapper-footer button:last-child{margin-bottom:20px}}\\n\"], dependencies: [{ kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step1Component, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-step1', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">Have you seen {{ providerFullName }} in the last 3 years?</h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"buttonHandler(true)\\\">No</button>\\r\\n <button dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"buttonHandler(false)\\\">Yes</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\"@media (max-width: 419px){.guided-flow-step-wrapper{padding-bottom:125px}}.guided-flow-step-wrapper-header{margin-bottom:50px}.guided-flow-step-wrapper-footer{text-align:center;position:relative}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute}.guided-flow-step-wrapper-footer button{margin:10px 0}.guided-flow-step-wrapper-footer button:last-child{margin-bottom:20px}}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { providerFullName: [{\n type: Input\n }], phoneNumber: [{\n type: Input\n }], providerSpecialty: [{\n type: Input\n }], acceptingNewPatients: [{\n type: Input\n }], appointmentsAvailable: [{\n type: Input\n }], canBookOnline: [{\n type: Input\n }], statusChange: [{\n type: Output\n }] } });\n\nclass InpersonVisitCardComponent {\n windowService;\n onlineBooking = false;\n locationDetails;\n isSelected = false;\n constructor(windowService) {\n this.windowService = windowService;\n }\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: InpersonVisitCardComponent, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: InpersonVisitCardComponent, selector: \"dhgf-inperson-visit-card\", inputs: { onlineBooking: \"onlineBooking\", locationDetails: \"locationDetails\", isSelected: \"isSelected\" }, ngImport: i0, template: \"<div\\r\\n *ngIf=\\\"locationDetails\\\"\\r\\n class=\\\"card\\\"\\r\\n [ngClass]=\\\"{ 'is-selectable': onlineBooking, 'is-not-selectable': !onlineBooking, 'is-selected': isSelected }\\\"\\r\\n [attr.aria-label]=\\\"isSelected === true ? 'In-person visit Selected' : 'Please select your visit.'\\\"\\r\\n>\\r\\n <div class=\\\"card-title\\\">\\r\\n <svg width=\\\"20\\\" height=\\\"22\\\" viewBox=\\\"0 0 27 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M23.5435 24.0628H26.2971C26.6853 24.0628 27 24.375 27 24.7601C27 25.1451 26.6853 25.4573 26.2971 25.4573H20.3675L21.676 26.7132C21.823 26.8521 21.9062 27.0447 21.9062 27.2461C21.9062 27.4474 21.823 27.64 21.676 27.779C21.5225 27.926 21.3214 27.9995 21.1202 27.9995C20.9135 28.0001 20.7147 27.9209 20.566 27.7784L17.9035 25.2237C17.7341 25.0609 17.6621 24.843 17.6796 24.6304L17.6738 24.6246V18.013C17.6738 18.003 17.6724 17.9932 17.671 17.9835C17.6699 17.9763 17.6689 17.9692 17.6685 17.9621V16.1187C17.6685 15.7853 17.3821 15.5123 17.0327 15.5123H9.74071C9.39082 15.5123 9.10445 15.7848 9.10445 16.1192V17.9621C9.104 17.9692 9.10298 17.9763 9.10196 17.9835C9.10056 17.9932 9.09916 18.003 9.09916 18.013V24.6257L9.09334 24.6309C9.11081 24.8436 9.03882 25.0614 8.8689 25.2242L6.20744 27.7795C6.05854 27.9218 5.85951 28.0009 5.6527 28C5.45156 28 5.25147 27.9265 5.09797 27.7795C4.95097 27.6406 4.86779 27.448 4.86779 27.2466C4.86779 27.0452 4.95097 26.8526 5.09797 26.7137L6.40541 25.4578H0.702949C0.314721 25.4578 0 25.1457 0 24.7606C0 24.3755 0.314721 24.0634 0.702949 24.0634H3.22996V22.9734C3.22975 22.9689 3.22935 22.9645 3.22896 22.9601C3.2284 22.9538 3.22785 22.9476 3.22785 22.9414V5.14942C3.22785 4.03848 4.1817 3.12914 5.34728 3.12914H7.4556V3.12651H9.53374V0.792784C9.53374 0.357016 9.89368 0 10.333 0H16.4415C16.8808 0 17.2408 0.35649 17.2408 0.792259V3.12651H19.3184L19.3179 3.12914H21.4262C22.5918 3.12914 23.5456 4.03848 23.5456 5.14942V22.9414C23.5456 22.9519 23.544 22.9624 23.5435 22.9729V24.0628ZM15.2653 4.0201H14.0124V5.2623C14.0188 5.47402 13.9086 5.67243 13.7247 5.78017C13.5409 5.8879 13.3125 5.8879 13.1286 5.78017C12.9448 5.67243 12.8346 5.47402 12.841 5.2623V4.0201H11.5886C11.265 4.0201 11.0026 3.75989 11.0026 3.4389C11.0026 3.11791 11.265 2.8577 11.5886 2.8577H12.841V1.6155C12.841 1.29465 13.1032 1.03456 13.4267 1.03456C13.7502 1.03456 14.0124 1.29465 14.0124 1.6155V2.8577H15.2653C15.4747 2.8577 15.6681 2.96848 15.7728 3.1483C15.8774 3.32812 15.8774 3.54968 15.7728 3.7295C15.6681 3.90932 15.4747 4.0201 15.2653 4.0201ZM21.3838 12.1784C21.3827 12.4501 21.1607 12.67 20.8868 12.6709H17.4626C17.1881 12.6706 16.9656 12.4501 16.965 12.1779V8.78153C16.965 8.51062 17.1884 8.28854 17.4626 8.28854H20.8873C21.1599 8.28854 21.3838 8.51062 21.3838 8.78206V12.1779V12.1784ZM15.1753 12.6709C15.4499 12.6703 15.6723 12.4497 15.6729 12.1774V8.78206C15.6729 8.51062 15.4485 8.28854 15.1753 8.28854H11.7506C11.4769 8.28854 11.253 8.51062 11.253 8.78153V12.1774C11.2536 12.4497 11.476 12.6703 11.7506 12.6709H15.1753ZM9.90321 12.1774C9.90263 12.4497 9.6802 12.6703 9.40564 12.6709H5.98089C5.70633 12.6703 5.4839 12.4497 5.48332 12.1774V8.78153C5.48332 8.51062 5.70722 8.28854 5.98089 8.28854H9.40564C9.67878 8.28854 9.90321 8.51062 9.90321 8.78206V12.1774Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n </svg>\\r\\n <span class=\\\"p1bold\\\">\\r\\n In-person visit\\r\\n </span>\\r\\n </div>\\r\\n <div class=\\\"card-row inperson-visit-card\\\">\\r\\n <b>{{ locationDetails.office.name }}</b\\r\\n ><br />\\r\\n <p *ngIf=\\\"locationDetails.office.departmentName\\\" class=\\\"department-name\\\">{{ locationDetails.office.departmentName }}</p>\\r\\n <p [ngClass]=\\\"{ 'no-vertical-margins': locationDetails.office.departmentName }\\\">\\r\\n {{ locationDetails.office.address + ', ' + locationDetails.office.city + ', ' + locationDetails.office.state }}\\r\\n </p>\\r\\n </div>\\r\\n <div class=\\\"card-row\\\" *ngIf=\\\"!onlineBooking\\\">\\r\\n <p>\\r\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15.2314 15.4191L15.9814 12.1691C16.0627 11.816 15.8783 11.4535 15.547 11.3097L12.047 9.8097C11.7408 9.67845 11.3814 9.76595 11.172 10.0253L9.62203 11.9191C7.22515 10.7941 5.2314 8.82845 4.08453 6.38158L5.97828 4.83158C6.23765 4.61908 6.32515 4.26283 6.1939 3.95658L4.6939 0.456576C4.54703 0.122201 4.18453 -0.0621745 3.8314 0.0190755L0.581401 0.769076C0.243901 0.847201 0.000150681 1.1472 0.000150681 1.50033C0.000150681 9.50345 6.48453 16.0003 14.5002 16.0003C14.8502 16.0003 15.1533 15.7597 15.2314 15.4191Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong\\r\\n >Call\\r\\n <a class=\\\"phone phone-link\\\" href=\\\"tel:{{ locationDetails.office.phones[0] }}\\\">{{ locationDetails.office.phones[0] }}</a>\\r\\n to schedule an appointment</strong\\r\\n >\\r\\n </p>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".card-title svg path{fill:var(--dhcl-color-primary)}.inperson-visit-card p{margin:8px 0}.inperson-visit-card .department-name{margin:4px 0 0}.inperson-visit-card .no-vertical-margins{margin:0}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: InpersonVisitCardComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-inperson-visit-card', template: \"<div\\r\\n *ngIf=\\\"locationDetails\\\"\\r\\n class=\\\"card\\\"\\r\\n [ngClass]=\\\"{ 'is-selectable': onlineBooking, 'is-not-selectable': !onlineBooking, 'is-selected': isSelected }\\\"\\r\\n [attr.aria-label]=\\\"isSelected === true ? 'In-person visit Selected' : 'Please select your visit.'\\\"\\r\\n>\\r\\n <div class=\\\"card-title\\\">\\r\\n <svg width=\\\"20\\\" height=\\\"22\\\" viewBox=\\\"0 0 27 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M23.5435 24.0628H26.2971C26.6853 24.0628 27 24.375 27 24.7601C27 25.1451 26.6853 25.4573 26.2971 25.4573H20.3675L21.676 26.7132C21.823 26.8521 21.9062 27.0447 21.9062 27.2461C21.9062 27.4474 21.823 27.64 21.676 27.779C21.5225 27.926 21.3214 27.9995 21.1202 27.9995C20.9135 28.0001 20.7147 27.9209 20.566 27.7784L17.9035 25.2237C17.7341 25.0609 17.6621 24.843 17.6796 24.6304L17.6738 24.6246V18.013C17.6738 18.003 17.6724 17.9932 17.671 17.9835C17.6699 17.9763 17.6689 17.9692 17.6685 17.9621V16.1187C17.6685 15.7853 17.3821 15.5123 17.0327 15.5123H9.74071C9.39082 15.5123 9.10445 15.7848 9.10445 16.1192V17.9621C9.104 17.9692 9.10298 17.9763 9.10196 17.9835C9.10056 17.9932 9.09916 18.003 9.09916 18.013V24.6257L9.09334 24.6309C9.11081 24.8436 9.03882 25.0614 8.8689 25.2242L6.20744 27.7795C6.05854 27.9218 5.85951 28.0009 5.6527 28C5.45156 28 5.25147 27.9265 5.09797 27.7795C4.95097 27.6406 4.86779 27.448 4.86779 27.2466C4.86779 27.0452 4.95097 26.8526 5.09797 26.7137L6.40541 25.4578H0.702949C0.314721 25.4578 0 25.1457 0 24.7606C0 24.3755 0.314721 24.0634 0.702949 24.0634H3.22996V22.9734C3.22975 22.9689 3.22935 22.9645 3.22896 22.9601C3.2284 22.9538 3.22785 22.9476 3.22785 22.9414V5.14942C3.22785 4.03848 4.1817 3.12914 5.34728 3.12914H7.4556V3.12651H9.53374V0.792784C9.53374 0.357016 9.89368 0 10.333 0H16.4415C16.8808 0 17.2408 0.35649 17.2408 0.792259V3.12651H19.3184L19.3179 3.12914H21.4262C22.5918 3.12914 23.5456 4.03848 23.5456 5.14942V22.9414C23.5456 22.9519 23.544 22.9624 23.5435 22.9729V24.0628ZM15.2653 4.0201H14.0124V5.2623C14.0188 5.47402 13.9086 5.67243 13.7247 5.78017C13.5409 5.8879 13.3125 5.8879 13.1286 5.78017C12.9448 5.67243 12.8346 5.47402 12.841 5.2623V4.0201H11.5886C11.265 4.0201 11.0026 3.75989 11.0026 3.4389C11.0026 3.11791 11.265 2.8577 11.5886 2.8577H12.841V1.6155C12.841 1.29465 13.1032 1.03456 13.4267 1.03456C13.7502 1.03456 14.0124 1.29465 14.0124 1.6155V2.8577H15.2653C15.4747 2.8577 15.6681 2.96848 15.7728 3.1483C15.8774 3.32812 15.8774 3.54968 15.7728 3.7295C15.6681 3.90932 15.4747 4.0201 15.2653 4.0201ZM21.3838 12.1784C21.3827 12.4501 21.1607 12.67 20.8868 12.6709H17.4626C17.1881 12.6706 16.9656 12.4501 16.965 12.1779V8.78153C16.965 8.51062 17.1884 8.28854 17.4626 8.28854H20.8873C21.1599 8.28854 21.3838 8.51062 21.3838 8.78206V12.1779V12.1784ZM15.1753 12.6709C15.4499 12.6703 15.6723 12.4497 15.6729 12.1774V8.78206C15.6729 8.51062 15.4485 8.28854 15.1753 8.28854H11.7506C11.4769 8.28854 11.253 8.51062 11.253 8.78153V12.1774C11.2536 12.4497 11.476 12.6703 11.7506 12.6709H15.1753ZM9.90321 12.1774C9.90263 12.4497 9.6802 12.6703 9.40564 12.6709H5.98089C5.70633 12.6703 5.4839 12.4497 5.48332 12.1774V8.78153C5.48332 8.51062 5.70722 8.28854 5.98089 8.28854H9.40564C9.67878 8.28854 9.90321 8.51062 9.90321 8.78206V12.1774Z\\\"\\r\\n fill=\\\"#ED711C\\\"\\r\\n />\\r\\n </svg>\\r\\n <span class=\\\"p1bold\\\">\\r\\n In-person visit\\r\\n </span>\\r\\n </div>\\r\\n <div class=\\\"card-row inperson-visit-card\\\">\\r\\n <b>{{ locationDetails.office.name }}</b\\r\\n ><br />\\r\\n <p *ngIf=\\\"locationDetails.office.departmentName\\\" class=\\\"department-name\\\">{{ locationDetails.office.departmentName }}</p>\\r\\n <p [ngClass]=\\\"{ 'no-vertical-margins': locationDetails.office.departmentName }\\\">\\r\\n {{ locationDetails.office.address + ', ' + locationDetails.office.city + ', ' + locationDetails.office.state }}\\r\\n </p>\\r\\n </div>\\r\\n <div class=\\\"card-row\\\" *ngIf=\\\"!onlineBooking\\\">\\r\\n <p>\\r\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15.2314 15.4191L15.9814 12.1691C16.0627 11.816 15.8783 11.4535 15.547 11.3097L12.047 9.8097C11.7408 9.67845 11.3814 9.76595 11.172 10.0253L9.62203 11.9191C7.22515 10.7941 5.2314 8.82845 4.08453 6.38158L5.97828 4.83158C6.23765 4.61908 6.32515 4.26283 6.1939 3.95658L4.6939 0.456576C4.54703 0.122201 4.18453 -0.0621745 3.8314 0.0190755L0.581401 0.769076C0.243901 0.847201 0.000150681 1.1472 0.000150681 1.50033C0.000150681 9.50345 6.48453 16.0003 14.5002 16.0003C14.8502 16.0003 15.1533 15.7597 15.2314 15.4191Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong\\r\\n >Call\\r\\n <a class=\\\"phone phone-link\\\" href=\\\"tel:{{ locationDetails.office.phones[0] }}\\\">{{ locationDetails.office.phones[0] }}</a>\\r\\n to schedule an appointment</strong\\r\\n >\\r\\n </p>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".card-title svg path{fill:var(--dhcl-color-primary)}.inperson-visit-card p{margin:8px 0}.inperson-visit-card .department-name{margin:4px 0 0}.inperson-visit-card .no-vertical-margins{margin:0}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }], propDecorators: { onlineBooking: [{\n type: Input\n }], locationDetails: [{\n type: Input\n }], isSelected: [{\n type: Input\n }] } });\n\nclass VideoVisitCardComponent {\n windowService;\n onlineBooking = false;\n locationDetails;\n isSelected = false;\n constructor(windowService) {\n this.windowService = windowService;\n }\n ngOnInit() { }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: VideoVisitCardComponent, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: VideoVisitCardComponent, selector: \"dhgf-video-visit-card\", inputs: { onlineBooking: \"onlineBooking\", locationDetails: \"locationDetails\", isSelected: \"isSelected\" }, ngImport: i0, template: \"<div\\r\\n *ngIf=\\\"locationDetails\\\"\\r\\n class=\\\"card\\\"\\r\\n [ngClass]=\\\"{ 'is-selectable': onlineBooking, 'is-not-selectable': !onlineBooking, 'is-selected': isSelected }\\\"\\r\\n [attr.aria-label]=\\\"isSelected === true ? 'Virtual Visit Selected' : 'Please select your visit.'\\\"\\r\\n>\\r\\n <div class=\\\"card-title\\\">\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" fill=\\\"#0061A7\\\" />\\r\\n <path\\r\\n d=\\\"M12.1598 7H6.01796C5.45574 7 5 7.44583 5 7.99583V14.0042C5 14.5542 5.45574 15 6.01796 15H12.1598C12.722 15 13.1778 14.5542 13.1778 14.0042V7.99583C13.1778 7.44583 12.722 7 12.1598 7ZM16.1933 7.78542L13.8593 9.36042V12.6396L16.1933 14.2125C16.6448 14.5167 17.2667 14.2062 17.2667 13.675V8.32292C17.2667 7.79375 16.6469 7.48125 16.1933 7.78542Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n <span class=\\\"p1bold\\\">\\r\\n Virtual visit\\r\\n </span>\\r\\n </div>\\r\\n <p class=\\\"card-row\\\">Meet with {{ locationDetails.providerName }} online using your own device</p>\\r\\n <div class=\\\"card-row\\\" *ngIf=\\\"!onlineBooking\\\">\\r\\n <p>\\r\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15.2314 15.4191L15.9814 12.1691C16.0627 11.816 15.8783 11.4535 15.547 11.3097L12.047 9.8097C11.7408 9.67845 11.3814 9.76595 11.172 10.0253L9.62203 11.9191C7.22515 10.7941 5.2314 8.82845 4.08453 6.38158L5.97828 4.83158C6.23765 4.61908 6.32515 4.26283 6.1939 3.95658L4.6939 0.456576C4.54703 0.122201 4.18453 -0.0621745 3.8314 0.0190755L0.581401 0.769076C0.243901 0.847201 0.000150681 1.1472 0.000150681 1.50033C0.000150681 9.50345 6.48453 16.0003 14.5002 16.0003C14.8502 16.0003 15.1533 15.7597 15.2314 15.4191Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong\\r\\n >Call\\r\\n <a class=\\\"phone phone-link\\\" href=\\\"tel:{{ locationDetails.office.phones[0] }}\\\">{{ locationDetails.office.phones[0] }}</a>\\r\\n to schedule an appointment</strong\\r\\n >\\r\\n </p>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".card-title svg circle{fill:var(--dhcl-color-secondary-dark)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: VideoVisitCardComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-video-visit-card', template: \"<div\\r\\n *ngIf=\\\"locationDetails\\\"\\r\\n class=\\\"card\\\"\\r\\n [ngClass]=\\\"{ 'is-selectable': onlineBooking, 'is-not-selectable': !onlineBooking, 'is-selected': isSelected }\\\"\\r\\n [attr.aria-label]=\\\"isSelected === true ? 'Virtual Visit Selected' : 'Please select your visit.'\\\"\\r\\n>\\r\\n <div class=\\\"card-title\\\">\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" fill=\\\"#0061A7\\\" />\\r\\n <path\\r\\n d=\\\"M12.1598 7H6.01796C5.45574 7 5 7.44583 5 7.99583V14.0042C5 14.5542 5.45574 15 6.01796 15H12.1598C12.722 15 13.1778 14.5542 13.1778 14.0042V7.99583C13.1778 7.44583 12.722 7 12.1598 7ZM16.1933 7.78542L13.8593 9.36042V12.6396L16.1933 14.2125C16.6448 14.5167 17.2667 14.2062 17.2667 13.675V8.32292C17.2667 7.79375 16.6469 7.48125 16.1933 7.78542Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n <span class=\\\"p1bold\\\">\\r\\n Virtual visit\\r\\n </span>\\r\\n </div>\\r\\n <p class=\\\"card-row\\\">Meet with {{ locationDetails.providerName }} online using your own device</p>\\r\\n <div class=\\\"card-row\\\" *ngIf=\\\"!onlineBooking\\\">\\r\\n <p>\\r\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15.2314 15.4191L15.9814 12.1691C16.0627 11.816 15.8783 11.4535 15.547 11.3097L12.047 9.8097C11.7408 9.67845 11.3814 9.76595 11.172 10.0253L9.62203 11.9191C7.22515 10.7941 5.2314 8.82845 4.08453 6.38158L5.97828 4.83158C6.23765 4.61908 6.32515 4.26283 6.1939 3.95658L4.6939 0.456576C4.54703 0.122201 4.18453 -0.0621745 3.8314 0.0190755L0.581401 0.769076C0.243901 0.847201 0.000150681 1.1472 0.000150681 1.50033C0.000150681 9.50345 6.48453 16.0003 14.5002 16.0003C14.8502 16.0003 15.1533 15.7597 15.2314 15.4191Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong\\r\\n >Call\\r\\n <a class=\\\"phone phone-link\\\" href=\\\"tel:{{ locationDetails.office.phones[0] }}\\\">{{ locationDetails.office.phones[0] }}</a>\\r\\n to schedule an appointment</strong\\r\\n >\\r\\n </p>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".card-title svg circle{fill:var(--dhcl-color-secondary-dark)}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }], propDecorators: { onlineBooking: [{\n type: Input\n }], locationDetails: [{\n type: Input\n }], isSelected: [{\n type: Input\n }] } });\n\nclass Step2Component {\n providerName;\n visitsWithOnlineScheduling = [];\n visitsWithNoOnlineScheduling = [];\n skipSingleLocation;\n locationSelected = new EventEmitter();\n selectedItem;\n selectedItemIndex;\n constructor() { }\n ngOnInit() {\n if (this.skipSingleLocation && this.visitsWithOnlineScheduling.length === 1 && this.visitsWithNoOnlineScheduling.length === 0) {\n this.locationSelected.emit(this.visitsWithOnlineScheduling[0]);\n }\n }\n selectBooking(item, index) {\n this.selectedItemIndex = index;\n this.selectedItem = item;\n }\n nextButtonHandler() {\n this.locationSelected.emit(this.selectedItem);\n }\n get disableNextButton() {\n return isNaN(this.selectedItemIndex);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step2Component, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: Step2Component, selector: \"dhgf-step2\", inputs: { providerName: \"providerName\", visitsWithOnlineScheduling: \"visitsWithOnlineScheduling\", visitsWithNoOnlineScheduling: \"visitsWithNoOnlineScheduling\", skipSingleLocation: \"skipSingleLocation\" }, outputs: { locationSelected: \"locationSelected\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">How would you like to be seen?</h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"online-booking-list\\\">\\r\\n <div *ngFor=\\\"let onlineBookingVisit of visitsWithOnlineScheduling; let i = index\\\">\\r\\n <dhgf-video-visit-card\\r\\n onlineBooking=\\\"true\\\"\\r\\n [isSelected]=\\\"i === selectedItemIndex\\\"\\r\\n [locationDetails]=\\\"onlineBookingVisit\\\"\\r\\n *ngIf=\\\"onlineBookingVisit.type === 0\\\"\\r\\n (click)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.enter)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.space)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n role=\\\"button\\\"\\r\\n >\\r\\n </dhgf-video-visit-card>\\r\\n <dhgf-inperson-visit-card\\r\\n [onlineBooking]=\\\"true\\\"\\r\\n [isSelected]=\\\"i === selectedItemIndex\\\"\\r\\n *ngIf=\\\"onlineBookingVisit.type === 1\\\"\\r\\n [locationDetails]=\\\"onlineBookingVisit\\\"\\r\\n (click)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.enter)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.space)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n role=\\\"button\\\"\\r\\n >\\r\\n </dhgf-inperson-visit-card>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"other-visit-list\\\" *ngIf=\\\"visitsWithNoOnlineScheduling != null && visitsWithNoOnlineScheduling.length > 0\\\">\\r\\n <div class=\\\"p1bold other-visit-list-header\\\">\\r\\n More options\\r\\n </div>\\r\\n <div *ngFor=\\\"let otherVisit of visitsWithNoOnlineScheduling\\\">\\r\\n <div class=\\\"other-visit-list-item-divider\\\"></div>\\r\\n <dhgf-video-visit-card [locationDetails]=\\\"otherVisit\\\" *ngIf=\\\"otherVisit.type === 0\\\"> </dhgf-video-visit-card>\\r\\n <dhgf-inperson-visit-card [locationDetails]=\\\"otherVisit\\\" *ngIf=\\\"otherVisit.type === 1\\\"> </dhgf-inperson-visit-card>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton buttonType=\\\"primary\\\" [disabled]=\\\"disableNextButton\\\" (click)=\\\"nextButtonHandler()\\\">\\r\\n Next\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper-content .other-visit-list .other-visit-list-header{margin-bottom:10px}.guided-flow-step-wrapper-content .other-visit-list .other-visit-list-item-divider{margin-bottom:10px;border:1px solid var(--dhcl-color-gray-light-warm-3)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }, { kind: \"component\", type: InpersonVisitCardComponent, selector: \"dhgf-inperson-visit-card\", inputs: [\"onlineBooking\", \"locationDetails\", \"isSelected\"] }, { kind: \"component\", type: VideoVisitCardComponent, selector: \"dhgf-video-visit-card\", inputs: [\"onlineBooking\", \"locationDetails\", \"isSelected\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step2Component, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-step2', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">How would you like to be seen?</h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"online-booking-list\\\">\\r\\n <div *ngFor=\\\"let onlineBookingVisit of visitsWithOnlineScheduling; let i = index\\\">\\r\\n <dhgf-video-visit-card\\r\\n onlineBooking=\\\"true\\\"\\r\\n [isSelected]=\\\"i === selectedItemIndex\\\"\\r\\n [locationDetails]=\\\"onlineBookingVisit\\\"\\r\\n *ngIf=\\\"onlineBookingVisit.type === 0\\\"\\r\\n (click)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.enter)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.space)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n role=\\\"button\\\"\\r\\n >\\r\\n </dhgf-video-visit-card>\\r\\n <dhgf-inperson-visit-card\\r\\n [onlineBooking]=\\\"true\\\"\\r\\n [isSelected]=\\\"i === selectedItemIndex\\\"\\r\\n *ngIf=\\\"onlineBookingVisit.type === 1\\\"\\r\\n [locationDetails]=\\\"onlineBookingVisit\\\"\\r\\n (click)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.enter)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n (keydown.space)=\\\"selectBooking(onlineBookingVisit, i)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n role=\\\"button\\\"\\r\\n >\\r\\n </dhgf-inperson-visit-card>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"other-visit-list\\\" *ngIf=\\\"visitsWithNoOnlineScheduling != null && visitsWithNoOnlineScheduling.length > 0\\\">\\r\\n <div class=\\\"p1bold other-visit-list-header\\\">\\r\\n More options\\r\\n </div>\\r\\n <div *ngFor=\\\"let otherVisit of visitsWithNoOnlineScheduling\\\">\\r\\n <div class=\\\"other-visit-list-item-divider\\\"></div>\\r\\n <dhgf-video-visit-card [locationDetails]=\\\"otherVisit\\\" *ngIf=\\\"otherVisit.type === 0\\\"> </dhgf-video-visit-card>\\r\\n <dhgf-inperson-visit-card [locationDetails]=\\\"otherVisit\\\" *ngIf=\\\"otherVisit.type === 1\\\"> </dhgf-inperson-visit-card>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton buttonType=\\\"primary\\\" [disabled]=\\\"disableNextButton\\\" (click)=\\\"nextButtonHandler()\\\">\\r\\n Next\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper-content .other-visit-list .other-visit-list-header{margin-bottom:10px}.guided-flow-step-wrapper-content .other-visit-list .other-visit-list-item-divider{margin-bottom:10px;border:1px solid var(--dhcl-color-gray-light-warm-3)}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { providerName: [{\n type: Input\n }], visitsWithOnlineScheduling: [{\n type: Input\n }], visitsWithNoOnlineScheduling: [{\n type: Input\n }], skipSingleLocation: [{\n type: Input\n }], locationSelected: [{\n type: Output\n }] } });\n\nclass Step3Component {\n appointmentTypeList = [];\n showApptTypeDescription = false;\n phoneNumber = '';\n market;\n useLegacyAPI;\n setState = new EventEmitter();\n appointmentTypeSelected = new EventEmitter();\n showDescription = new EventEmitter();\n selectedAppointment;\n selectedAppointmentIndex = -1;\n selectAppointmentType(appointment, index) {\n this.selectedAppointmentIndex = index;\n this.selectedAppointment = appointment;\n if (this.selectedAppointment.description) {\n this.selectedAppointment.description = this.selectedAppointment.description.replace(/(\\n\\s)|\\n/g, '\\n\\n').trim();\n }\n }\n continueButtonHandler() {\n this.showApptTypeDescription = true;\n this.appointmentTypeSelected.emit(this.selectedAppointment);\n }\n nextButtonHandler() {\n this.showApptTypeDescription = this.selectedAppointment.description && this.selectedAppointment.description !== '';\n if (this.showApptTypeDescription) {\n this.showDescription.emit(true);\n }\n else {\n this.appointmentTypeSelected.emit(this.selectedAppointment);\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step3Component, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: Step3Component, selector: \"dhgf-step3\", inputs: { appointmentTypeList: \"appointmentTypeList\", showApptTypeDescription: \"showApptTypeDescription\", phoneNumber: \"phoneNumber\", market: \"market\", useLegacyAPI: \"useLegacyAPI\" }, outputs: { setState: \"setState\", appointmentTypeSelected: \"appointmentTypeSelected\", showDescription: \"showDescription\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">\\r\\n {{ showApptTypeDescription ? selectedAppointment.name : 'Select appointment type' }}\\r\\n </h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"appointment-type-list\\\" *ngIf=\\\"!showApptTypeDescription\\\">\\r\\n <div *ngFor=\\\"let appointmentType of appointmentTypeList; let i = index\\\">\\r\\n <dhgf-appointment-type-card\\r\\n [isSelected]=\\\"selectedAppointmentIndex === i\\\"\\r\\n [appointmentDetails]=\\\"appointmentType\\\"\\r\\n (click)=\\\"selectAppointmentType(appointmentType, i)\\\"\\r\\n (keydown.enter)=\\\"selectAppointmentType(appointmentType, i)\\\"\\r\\n (keydown.space)=\\\"selectAppointmentType(appointmentType, i)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n role=\\\"button\\\"\\r\\n >\\r\\n </dhgf-appointment-type-card>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"appointment-type-list\\\" *ngIf=\\\"showApptTypeDescription\\\">\\r\\n <pre><p tabindex=\\\"0\\\" class=\\\"appTypeDesc p1regular\\\" innerHTML=\\\"{{ selectedAppointment.description }}\\\">{{ selectedAppointment.description }}</p></pre>\\r\\n </div>\\r\\n <div class=\\\"different-appointment-type-contact-info\\\" *ngIf=\\\"!useLegacyAPI && !showApptTypeDescription && phoneNumber\\\">\\r\\n <p>If you need a different type of appointment, please call the clinic at {{ phoneNumber }} for assistance.</p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button\\r\\n class=\\\"next-btn\\\"\\r\\n dhclButton\\r\\n buttonType=\\\"primary\\\"\\r\\n *ngIf=\\\"!showApptTypeDescription\\\"\\r\\n [disabled]=\\\"!selectedAppointment\\\"\\r\\n (click)=\\\"nextButtonHandler()\\\"\\r\\n >\\r\\n Next\\r\\n </button>\\r\\n <button class=\\\"next-btn\\\" dhclButton buttonType=\\\"primary\\\" *ngIf=\\\"showApptTypeDescription\\\" (click)=\\\"continueButtonHandler()\\\">\\r\\n Continue\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".appTypeDesc{padding:0 64px;overflow:auto;max-height:280px;text-align:justify}@media (max-width: 419px){.appTypeDesc{padding-left:25px;padding-right:25px;max-height:calc(100vh - 215px)}}pre{white-space:pre-line;word-wrap:break-word}.different-appointment-type-contact-info{width:400px;margin:0 auto}@media (max-width: 767px){.different-appointment-type-contact-info{width:350px}}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }, { kind: \"component\", type: AppointmentTypeCardComponent, selector: \"dhgf-appointment-type-card\", inputs: [\"appointmentDetails\", \"isSelected\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step3Component, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-step3', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">\\r\\n {{ showApptTypeDescription ? selectedAppointment.name : 'Select appointment type' }}\\r\\n </h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"appointment-type-list\\\" *ngIf=\\\"!showApptTypeDescription\\\">\\r\\n <div *ngFor=\\\"let appointmentType of appointmentTypeList; let i = index\\\">\\r\\n <dhgf-appointment-type-card\\r\\n [isSelected]=\\\"selectedAppointmentIndex === i\\\"\\r\\n [appointmentDetails]=\\\"appointmentType\\\"\\r\\n (click)=\\\"selectAppointmentType(appointmentType, i)\\\"\\r\\n (keydown.enter)=\\\"selectAppointmentType(appointmentType, i)\\\"\\r\\n (keydown.space)=\\\"selectAppointmentType(appointmentType, i)\\\"\\r\\n tabindex=\\\"0\\\"\\r\\n role=\\\"button\\\"\\r\\n >\\r\\n </dhgf-appointment-type-card>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"appointment-type-list\\\" *ngIf=\\\"showApptTypeDescription\\\">\\r\\n <pre><p tabindex=\\\"0\\\" class=\\\"appTypeDesc p1regular\\\" innerHTML=\\\"{{ selectedAppointment.description }}\\\">{{ selectedAppointment.description }}</p></pre>\\r\\n </div>\\r\\n <div class=\\\"different-appointment-type-contact-info\\\" *ngIf=\\\"!useLegacyAPI && !showApptTypeDescription && phoneNumber\\\">\\r\\n <p>If you need a different type of appointment, please call the clinic at {{ phoneNumber }} for assistance.</p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button\\r\\n class=\\\"next-btn\\\"\\r\\n dhclButton\\r\\n buttonType=\\\"primary\\\"\\r\\n *ngIf=\\\"!showApptTypeDescription\\\"\\r\\n [disabled]=\\\"!selectedAppointment\\\"\\r\\n (click)=\\\"nextButtonHandler()\\\"\\r\\n >\\r\\n Next\\r\\n </button>\\r\\n <button class=\\\"next-btn\\\" dhclButton buttonType=\\\"primary\\\" *ngIf=\\\"showApptTypeDescription\\\" (click)=\\\"continueButtonHandler()\\\">\\r\\n Continue\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".appTypeDesc{padding:0 64px;overflow:auto;max-height:280px;text-align:justify}@media (max-width: 419px){.appTypeDesc{padding-left:25px;padding-right:25px;max-height:calc(100vh - 215px)}}pre{white-space:pre-line;word-wrap:break-word}.different-appointment-type-contact-info{width:400px;margin:0 auto}@media (max-width: 767px){.different-appointment-type-contact-info{width:350px}}\\n\"] }]\n }], propDecorators: { appointmentTypeList: [{\n type: Input\n }], showApptTypeDescription: [{\n type: Input\n }], phoneNumber: [{\n type: Input\n }], market: [{\n type: Input\n }], useLegacyAPI: [{\n type: Input\n }], setState: [{\n type: Output\n }], appointmentTypeSelected: [{\n type: Output\n }], showDescription: [{\n type: Output\n }] } });\n\nclass AppointmentNotConfirmedComponent {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AppointmentNotConfirmedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: AppointmentNotConfirmedComponent, selector: \"dhgf-appointment-not-confirmed\", ngImport: i0, template: \"<div class=\\\"appointment-not-confirmed\\\">\\r\\n <svg width=\\\"30\\\" height=\\\"30\\\" viewBox=\\\"0 0 30 30\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30Z\\\"\\r\\n fill=\\\"#AA272F\\\"\\r\\n />\\r\\n <path d=\\\"M15 8.25V15.75\\\" stroke=\\\"white\\\" stroke-width=\\\"3\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path\\r\\n d=\\\"M15 22.5C15.8284 22.5 16.5 21.8284 16.5 21C16.5 20.1716 15.8284 19.5 15 19.5C14.1716 19.5 13.5 20.1716 13.5 21C13.5 21.8284 14.1716 22.5 15 22.5Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n\\r\\n <p><ng-content></ng-content></p>\\r\\n</div>\\r\\n\", styles: [\".appointment-not-confirmed{background:#eed4d5;border-radius:5px;padding:20px}.appointment-not-confirmed svg{margin-right:10px;vertical-align:middle;position:absolute}.appointment-not-confirmed p{font-style:normal;font-weight:400;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-error);margin-top:2px;margin-left:37px}\\n\"] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: AppointmentNotConfirmedComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-appointment-not-confirmed', template: \"<div class=\\\"appointment-not-confirmed\\\">\\r\\n <svg width=\\\"30\\\" height=\\\"30\\\" viewBox=\\\"0 0 30 30\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30Z\\\"\\r\\n fill=\\\"#AA272F\\\"\\r\\n />\\r\\n <path d=\\\"M15 8.25V15.75\\\" stroke=\\\"white\\\" stroke-width=\\\"3\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path\\r\\n d=\\\"M15 22.5C15.8284 22.5 16.5 21.8284 16.5 21C16.5 20.1716 15.8284 19.5 15 19.5C14.1716 19.5 13.5 20.1716 13.5 21C13.5 21.8284 14.1716 22.5 15 22.5Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n\\r\\n <p><ng-content></ng-content></p>\\r\\n</div>\\r\\n\", styles: [\".appointment-not-confirmed{background:#eed4d5;border-radius:5px;padding:20px}.appointment-not-confirmed svg{margin-right:10px;vertical-align:middle;position:absolute}.appointment-not-confirmed p{font-style:normal;font-weight:400;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-error);margin-top:2px;margin-left:37px}\\n\"] }]\n }] });\n\nclass SelectAppointmentTimeComponent {\n noTimesLabel = 'Call for availability';\n appointmentSchedule;\n appointmentTimeSelected = new EventEmitter();\n selectedDate;\n selectedAppointmentTime;\n times;\n enableDates;\n ngOnInit() {\n this.initTimes();\n this.initCalendarDates();\n this.setDefaultSelection();\n }\n ngOnChanges(change) {\n if (change.appointmentSchedule && !change.appointmentSchedule.firstChange) {\n this.setDefaultSelection();\n }\n }\n setDefaultSelection() {\n this.selectedDate = this.appointmentSchedule.start;\n }\n onDateSelectionChanged(date) {\n this.selectedDate = date;\n }\n onTimeSelectionChanged(event) {\n setTimeout(() => {\n if (event === null) {\n this.selectedAppointmentTime = null;\n this.appointmentTimeSelected.emit(null);\n return;\n }\n this.selectedAppointmentTime = event.data;\n if (this.selectedAppointmentTime) {\n this.selectedDate = new Date(this.selectedAppointmentTime.date.getFullYear(), this.selectedAppointmentTime.date.getMonth(), this.selectedAppointmentTime.date.getDate());\n }\n this.appointmentTimeSelected.emit(this.selectedAppointmentTime);\n });\n }\n initTimes() {\n this.times = this.appointmentSchedule?.appointments?.map(appt => ({\n time: appt.date,\n data: appt,\n timeDisplay: this.getTimeLabel(appt.time)\n }));\n }\n initCalendarDates() {\n this.enableDates = this.appointmentSchedule.appointments\n ?.map(appt => new Date(appt.date.getFullYear(), appt.date.getMonth(), appt.date.getDate()))\n .filter((date, i, self) => self.findIndex(d => d.getTime() === date.getTime()) === i);\n }\n getTimeLabel(time) {\n const hoursString = time\n .toString()\n .slice(11, 13)\n .replace(/^0+/, '');\n const hours = parseInt(hoursString, 10) > 12 ? parseInt(hoursString, 10) - 12 : parseInt(hoursString, 10);\n const minutes = time.toString().slice(14, 16);\n const amPm = parseInt(hoursString, 10) > 11 ? 'PM' : 'AM';\n return `${hours}:${minutes} ${amPm}`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SelectAppointmentTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: SelectAppointmentTimeComponent, selector: \"dhgf-select-appointment-time\", inputs: { noTimesLabel: \"noTimesLabel\", appointmentSchedule: \"appointmentSchedule\" }, outputs: { appointmentTimeSelected: \"appointmentTimeSelected\" }, usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"datetime-selection-container\\\">\\r\\n <dhcl-date-picker\\r\\n *ngIf=\\\"enableDates && enableDates.length > 0\\\"\\r\\n [label]=\\\"'Available appointments'\\\"\\r\\n [min]=\\\"appointmentSchedule.start\\\"\\r\\n [max]=\\\"appointmentSchedule.end\\\"\\r\\n [enableDates]=\\\"enableDates\\\"\\r\\n (changed)=\\\"onDateSelectionChanged($event)\\\"\\r\\n ></dhcl-date-picker>\\r\\n</div>\\r\\n<dhcl-datetime-picker\\r\\n class=\\\"date-time-picker\\\"\\r\\n [times]=\\\"times\\\"\\r\\n [selectedDate]=\\\"selectedDate\\\"\\r\\n [selectedTime]=\\\"selectedAppointmentTime?.date\\\"\\r\\n [noTimesLabel]=\\\"noTimesLabel\\\"\\r\\n (changed)=\\\"onTimeSelectionChanged($event)\\\"\\r\\n></dhcl-datetime-picker>\\r\\n\", styles: [\".datetime-selection-container hr{border:1px solid;color:var(--dhcl-color-gray-light-warm-3);margin-top:10px;margin-bottom:10px;background-color:var(--dhcl-color-gray-light-warm-3)}.datetime-selection-container .date-time-picker{display:inline-block;width:100%}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2.DatePickerComponent, selector: \"dhcl-date-picker\", inputs: [\"label\", \"min\", \"max\", \"value\", \"disableDates\", \"enableDates\", \"customClass\"], outputs: [\"changed\"] }, { kind: \"component\", type: i2.DatetimePickerComponent, selector: \"dhcl-datetime-picker\", inputs: [\"times\", \"selectedDate\", \"selectedTime\", \"noTimesLabel\"], outputs: [\"changed\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: SelectAppointmentTimeComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-select-appointment-time', template: \"<div class=\\\"datetime-selection-container\\\">\\r\\n <dhcl-date-picker\\r\\n *ngIf=\\\"enableDates && enableDates.length > 0\\\"\\r\\n [label]=\\\"'Available appointments'\\\"\\r\\n [min]=\\\"appointmentSchedule.start\\\"\\r\\n [max]=\\\"appointmentSchedule.end\\\"\\r\\n [enableDates]=\\\"enableDates\\\"\\r\\n (changed)=\\\"onDateSelectionChanged($event)\\\"\\r\\n ></dhcl-date-picker>\\r\\n</div>\\r\\n<dhcl-datetime-picker\\r\\n class=\\\"date-time-picker\\\"\\r\\n [times]=\\\"times\\\"\\r\\n [selectedDate]=\\\"selectedDate\\\"\\r\\n [selectedTime]=\\\"selectedAppointmentTime?.date\\\"\\r\\n [noTimesLabel]=\\\"noTimesLabel\\\"\\r\\n (changed)=\\\"onTimeSelectionChanged($event)\\\"\\r\\n></dhcl-datetime-picker>\\r\\n\", styles: [\".datetime-selection-container hr{border:1px solid;color:var(--dhcl-color-gray-light-warm-3);margin-top:10px;margin-bottom:10px;background-color:var(--dhcl-color-gray-light-warm-3)}.datetime-selection-container .date-time-picker{display:inline-block;width:100%}\\n\"] }]\n }], propDecorators: { noTimesLabel: [{\n type: Input\n }], appointmentSchedule: [{\n type: Input\n }], appointmentTimeSelected: [{\n type: Output\n }] } });\n\nclass Step4Component {\n isLocationAppt;\n noTimesLabel = 'Call for availability';\n isReschedule;\n selectedLocation;\n selectedAppointmentType;\n appointmentSchedule;\n appointmentSelected = new EventEmitter();\n selectedAppointmentTime;\n showSpinner;\n ngOnInit() {\n this.sortAppointmentSchedule();\n this.showSpinner = false;\n }\n sortAppointmentSchedule() {\n this.appointmentSchedule.appointments.sort((x, y) => {\n if (new Date(x.time).getTime() > new Date(y.time).getTime()) {\n return 1;\n }\n else {\n return -1;\n }\n });\n }\n appointmentTimeSelected(apptTime) {\n setTimeout(() => {\n this.selectedAppointmentTime = apptTime;\n });\n }\n nextButtonHandler() {\n this.showSpinner = true;\n this.appointmentSelected.emit(this.selectedAppointmentTime);\n this.selectedAppointmentTime = null;\n }\n get isVirtualVisit() {\n return this.selectedLocation.type === 0;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step4Component, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: Step4Component, selector: \"dhgf-step4\", inputs: { isLocationAppt: \"isLocationAppt\", noTimesLabel: \"noTimesLabel\", isReschedule: \"isReschedule\", selectedLocation: \"selectedLocation\", selectedAppointmentType: \"selectedAppointmentType\", appointmentSchedule: \"appointmentSchedule\" }, outputs: { appointmentSelected: \"appointmentSelected\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">\\r\\n {{ isReschedule ? 'Select a new appointment time' : 'Select appointment date and time' }}\\r\\n </h3>\\r\\n <div class=\\\"dhgf-appointment-not-confirmed-wrapper\\\" *ngIf=\\\"isLocationAppt\\\">\\r\\n <dhgf-appointment-not-confirmed>\\r\\n Your appointment is not yet confirmed.<span>Review and confirm in the next step.</span>\\r\\n </dhgf-appointment-not-confirmed>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"step4-wrapper\\\">\\r\\n <div class=\\\"step4-wrapper-content\\\">\\r\\n <div class=\\\"step4-wrapper-content-left\\\">\\r\\n <div class=\\\"step4-wrapper-content-left-location-name\\\">\\r\\n <svg *ngIf=\\\"isVirtualVisit\\\" width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" fill=\\\"#0061A7\\\" />\\r\\n <path\\r\\n d=\\\"M12.1598 7H6.01796C5.45574 7 5 7.44583 5 7.99583V14.0042C5 14.5542 5.45574 15 6.01796 15H12.1598C12.722 15 13.1778 14.5542 13.1778 14.0042V7.99583C13.1778 7.44583 12.722 7 12.1598 7ZM16.1933 7.78542L13.8593 9.36042V12.6396L16.1933 14.2125C16.6448 14.5167 17.2667 14.2062 17.2667 13.675V8.32292C17.2667 7.79375 16.6469 7.48125 16.1933 7.78542Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n <p *ngIf=\\\"isVirtualVisit\\\" class=\\\"virtual-visit\\\"><strong>Virtual visit</strong></p>\\r\\n <svg\\r\\n *ngIf=\\\"!isVirtualVisit\\\"\\r\\n class=\\\"in-person\\\"\\r\\n width=\\\"18\\\"\\r\\n height=\\\"24\\\"\\r\\n viewBox=\\\"0 0 18 24\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <path\\r\\n d=\\\"M8.05463 23.5083C8.4761 24.1639 9.45951 24.1639 9.88098 23.5083C16.718 13.6741 17.9824 12.6439 17.9824 8.99122C17.9824 4.02732 13.9551 0 8.99122 0C3.98049 0 0 4.02732 0 8.99122C0 12.6439 1.21756 13.6741 8.05463 23.5083Z\\\"\\r\\n fill=\\\"#C85200\\\"\\r\\n />\\r\\n </svg>\\r\\n <p *ngIf=\\\"!isVirtualVisit\\\" class=\\\"virtual-visit\\\" title=\\\"{{ selectedLocation.office.name }}\\\">\\r\\n <strong>{{ selectedLocation.office.name }}</strong>\\r\\n </p>\\r\\n </div>\\r\\n <div *ngIf=\\\"!isVirtualVisit\\\" class=\\\"step4-wrapper-content-left-location-address\\\">\\r\\n <p>{{ selectedLocation.office.address }}</p>\\r\\n <p>{{ selectedLocation.office.city }}, {{ selectedLocation.office.state }} {{ selectedLocation.office.zip }}</p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"step4-wrapper-content-right\\\">\\r\\n <p><strong>Appointment type</strong></p>\\r\\n <p>{{ selectedAppointmentType.name }}</p>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"datetime-selection-container\\\">\\r\\n <dhgf-select-appointment-time\\r\\n [appointmentSchedule]=\\\"appointmentSchedule\\\"\\r\\n (appointmentTimeSelected)=\\\"appointmentTimeSelected($event)\\\"\\r\\n [noTimesLabel]=\\\"noTimesLabel\\\"\\r\\n ></dhgf-select-appointment-time>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton buttonType=\\\"primary\\\" [disabled]=\\\"!selectedAppointmentTime\\\" (click)=\\\"nextButtonHandler()\\\">\\r\\n Next\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n<dhcl-loading-spinner [showSpinner]=\\\"showSpinner\\\"></dhcl-loading-spinner>\\r\\n\", styles: [\".dhgf-appointment-not-confirmed-wrapper{margin:20px -20px}@media (max-width: 419px){.dhgf-appointment-not-confirmed-wrapper{margin-left:0;margin-right:0}}.dhgf-appointment-not-confirmed-wrapper span{display:inline}@media (max-width: 419px){.dhgf-appointment-not-confirmed-wrapper span{display:block}}.step4-wrapper{background:var(--dhcl-color-gray-light);border-radius:4px;box-sizing:border-box;display:inline-block;width:100%;padding-bottom:10px;margin-bottom:10px}.step4-wrapper-content{padding:10px;box-sizing:border-box}.step4-wrapper-content p{margin:0;font-size:14px}.step4-wrapper-content-left{float:left;width:calc(60% - 15px);position:relative}.step4-wrapper-content-left svg{position:absolute}.step4-wrapper-content-left svg.in-person path{fill:var(--dhcl-color-primary)}.step4-wrapper-content-left p{margin-left:30px}@media (max-width: 419px){.step4-wrapper-content-left{width:100%;float:none}.step4-wrapper-content-left p{max-width:calc(100% - 30px)}}@media (max-height: 570px){.step4-wrapper-content-left-location-address{display:none}}@media (min-width: 420px){.step4-wrapper-content-left-location-address{display:block}}.step4-wrapper-content-right{float:right;width:40%;text-align:right}@media (max-width: 419px){.step4-wrapper-content-right{width:100%;float:none;text-align:left;margin-left:30px;margin-top:10px}.step4-wrapper-content-right p{max-width:calc(100% - 30px)}}.datetime-selection-container{margin-top:-13px}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }, { kind: \"component\", type: i2.LoadingSpinnerComponent, selector: \"dhcl-loading-spinner\", inputs: [\"showSpinner\", \"fixed\", \"disclaimer\", \"bgColor\"] }, { kind: \"component\", type: AppointmentNotConfirmedComponent, selector: \"dhgf-appointment-not-confirmed\" }, { kind: \"component\", type: SelectAppointmentTimeComponent, selector: \"dhgf-select-appointment-time\", inputs: [\"noTimesLabel\", \"appointmentSchedule\"], outputs: [\"appointmentTimeSelected\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: Step4Component, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-step4', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\" id=\\\"stepTitle\\\">\\r\\n {{ isReschedule ? 'Select a new appointment time' : 'Select appointment date and time' }}\\r\\n </h3>\\r\\n <div class=\\\"dhgf-appointment-not-confirmed-wrapper\\\" *ngIf=\\\"isLocationAppt\\\">\\r\\n <dhgf-appointment-not-confirmed>\\r\\n Your appointment is not yet confirmed.<span>Review and confirm in the next step.</span>\\r\\n </dhgf-appointment-not-confirmed>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"step4-wrapper\\\">\\r\\n <div class=\\\"step4-wrapper-content\\\">\\r\\n <div class=\\\"step4-wrapper-content-left\\\">\\r\\n <div class=\\\"step4-wrapper-content-left-location-name\\\">\\r\\n <svg *ngIf=\\\"isVirtualVisit\\\" width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" fill=\\\"#0061A7\\\" />\\r\\n <path\\r\\n d=\\\"M12.1598 7H6.01796C5.45574 7 5 7.44583 5 7.99583V14.0042C5 14.5542 5.45574 15 6.01796 15H12.1598C12.722 15 13.1778 14.5542 13.1778 14.0042V7.99583C13.1778 7.44583 12.722 7 12.1598 7ZM16.1933 7.78542L13.8593 9.36042V12.6396L16.1933 14.2125C16.6448 14.5167 17.2667 14.2062 17.2667 13.675V8.32292C17.2667 7.79375 16.6469 7.48125 16.1933 7.78542Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n <p *ngIf=\\\"isVirtualVisit\\\" class=\\\"virtual-visit\\\"><strong>Virtual visit</strong></p>\\r\\n <svg\\r\\n *ngIf=\\\"!isVirtualVisit\\\"\\r\\n class=\\\"in-person\\\"\\r\\n width=\\\"18\\\"\\r\\n height=\\\"24\\\"\\r\\n viewBox=\\\"0 0 18 24\\\"\\r\\n fill=\\\"none\\\"\\r\\n xmlns=\\\"http://www.w3.org/2000/svg\\\"\\r\\n >\\r\\n <path\\r\\n d=\\\"M8.05463 23.5083C8.4761 24.1639 9.45951 24.1639 9.88098 23.5083C16.718 13.6741 17.9824 12.6439 17.9824 8.99122C17.9824 4.02732 13.9551 0 8.99122 0C3.98049 0 0 4.02732 0 8.99122C0 12.6439 1.21756 13.6741 8.05463 23.5083Z\\\"\\r\\n fill=\\\"#C85200\\\"\\r\\n />\\r\\n </svg>\\r\\n <p *ngIf=\\\"!isVirtualVisit\\\" class=\\\"virtual-visit\\\" title=\\\"{{ selectedLocation.office.name }}\\\">\\r\\n <strong>{{ selectedLocation.office.name }}</strong>\\r\\n </p>\\r\\n </div>\\r\\n <div *ngIf=\\\"!isVirtualVisit\\\" class=\\\"step4-wrapper-content-left-location-address\\\">\\r\\n <p>{{ selectedLocation.office.address }}</p>\\r\\n <p>{{ selectedLocation.office.city }}, {{ selectedLocation.office.state }} {{ selectedLocation.office.zip }}</p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"step4-wrapper-content-right\\\">\\r\\n <p><strong>Appointment type</strong></p>\\r\\n <p>{{ selectedAppointmentType.name }}</p>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"datetime-selection-container\\\">\\r\\n <dhgf-select-appointment-time\\r\\n [appointmentSchedule]=\\\"appointmentSchedule\\\"\\r\\n (appointmentTimeSelected)=\\\"appointmentTimeSelected($event)\\\"\\r\\n [noTimesLabel]=\\\"noTimesLabel\\\"\\r\\n ></dhgf-select-appointment-time>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton buttonType=\\\"primary\\\" [disabled]=\\\"!selectedAppointmentTime\\\" (click)=\\\"nextButtonHandler()\\\">\\r\\n Next\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n<dhcl-loading-spinner [showSpinner]=\\\"showSpinner\\\"></dhcl-loading-spinner>\\r\\n\", styles: [\".dhgf-appointment-not-confirmed-wrapper{margin:20px -20px}@media (max-width: 419px){.dhgf-appointment-not-confirmed-wrapper{margin-left:0;margin-right:0}}.dhgf-appointment-not-confirmed-wrapper span{display:inline}@media (max-width: 419px){.dhgf-appointment-not-confirmed-wrapper span{display:block}}.step4-wrapper{background:var(--dhcl-color-gray-light);border-radius:4px;box-sizing:border-box;display:inline-block;width:100%;padding-bottom:10px;margin-bottom:10px}.step4-wrapper-content{padding:10px;box-sizing:border-box}.step4-wrapper-content p{margin:0;font-size:14px}.step4-wrapper-content-left{float:left;width:calc(60% - 15px);position:relative}.step4-wrapper-content-left svg{position:absolute}.step4-wrapper-content-left svg.in-person path{fill:var(--dhcl-color-primary)}.step4-wrapper-content-left p{margin-left:30px}@media (max-width: 419px){.step4-wrapper-content-left{width:100%;float:none}.step4-wrapper-content-left p{max-width:calc(100% - 30px)}}@media (max-height: 570px){.step4-wrapper-content-left-location-address{display:none}}@media (min-width: 420px){.step4-wrapper-content-left-location-address{display:block}}.step4-wrapper-content-right{float:right;width:40%;text-align:right}@media (max-width: 419px){.step4-wrapper-content-right{width:100%;float:none;text-align:left;margin-left:30px;margin-top:10px}.step4-wrapper-content-right p{max-width:calc(100% - 30px)}}.datetime-selection-container{margin-top:-13px}\\n\"] }]\n }], propDecorators: { isLocationAppt: [{\n type: Input\n }], noTimesLabel: [{\n type: Input\n }], isReschedule: [{\n type: Input\n }], selectedLocation: [{\n type: Input\n }], selectedAppointmentType: [{\n type: Input\n }], appointmentSchedule: [{\n type: Input\n }], appointmentSelected: [{\n type: Output\n }] } });\n\nclass CrossPortalPopupNotificationComponent {\n embedSource = '';\n showStep1 = new EventEmitter();\n constructor() { }\n ngOnInit() { }\n nextButtonHandler() {\n this.showStep1.emit();\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CrossPortalPopupNotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: CrossPortalPopupNotificationComponent, selector: \"dhgf-cross-portal-popup-notification\", inputs: { embedSource: \"embedSource\" }, outputs: { showStep1: \"showStep1\" }, ngImport: i0, template: \"<div *ngIf=\\\"embedSource === 'cerner'\\\" class=\\\"guided-flow-step-wrapper-popup\\\">\\r\\n <h3>Please Note:</h3>\\r\\n <br />\\r\\n <div class=\\\"guided-flow-step-wrapper-popup-main-text\\\">\\r\\n You have selected one of our Virginia Mason Franciscan Health providers, however this provider\\u2019s schedule, and your subsequent records\\r\\n and communications with this provider, are not managed within MyVirginiaMason.\\r\\n </div>\\r\\n <br />\\r\\n <div>\\r\\n <b class=\\\"guided-flow-step-wrapper-popup-italic\\\">What does this mean? </b>\\r\\n <span class=\\\"guided-flow-step-wrapper-popup-sub-text\\\"\\r\\n >You can continue to schedule this appointment. However, because you have selected a provider at a different location than you\\r\\n normally visit, you may need to complete additional paperwork before your appointment and create an account in MyChart, our other\\r\\n patient portal.\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n<div *ngIf=\\\"embedSource === 'mychart'\\\" class=\\\"guided-flow-step-wrapper-popup\\\">\\r\\n <h3>Please Note:</h3>\\r\\n <br />\\r\\n <div class=\\\"guided-flow-step-wrapper-popup-main-text\\\">\\r\\n You have selected one of our Virginia Mason Franciscan Health providers, however this provider\\u2019s schedule, and your subsequent records\\r\\n and communications with this provider, are not managed within MyChart.\\r\\n </div>\\r\\n <br />\\r\\n <div>\\r\\n <b class=\\\"guided-flow-step-wrapper-popup-italic\\\">What does this mean? </b>\\r\\n <span class=\\\"p1regular\\\">\\r\\n You can continue to schedule this appointment. However, because you have selected a provider at a different location than you normally\\r\\n visit, you may need to complete additional paperwork before your appointment and create an account in MyVirginiaMason, our other\\r\\n patient portal.\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n<div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"nextButtonHandler()\\\">Next</button>\\r\\n</div>\\r\\n\", styles: [\"@media (max-width: 419px){.guided-flow-step-wrapper{padding-bottom:125px}}.guided-flow-step-wrapper-footer{text-align:center;position:relative}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button-next-btn{height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute}.guided-flow-step-wrapper-footer button{margin:10px 0}.guided-flow-step-wrapper-footer button:last-child{margin-bottom:20px}}.guided-flow-step-wrapper-popup{height:fit-content;width:365px;text-align:center;font-family:var(--dhcl-font-family);line-height:28px;letter-spacing:-.5px;color:#4d525a;padding:0 15px;margin:0 auto}@media (min-width: 375px) and (max-width: 767px){.guided-flow-step-wrapper-popup{width:340px;padding:0}}@media (max-width: 374px){.guided-flow-step-wrapper-popup{width:270px}}.guided-flow-step-wrapper-popup-main-text{font-size:1.1rem}.guided-flow-step-wrapper-popup-italic{font-style:italic}.guided-flow-step-wrapper-popup-sub-text{font-size:1rem}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: CrossPortalPopupNotificationComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-cross-portal-popup-notification', template: \"<div *ngIf=\\\"embedSource === 'cerner'\\\" class=\\\"guided-flow-step-wrapper-popup\\\">\\r\\n <h3>Please Note:</h3>\\r\\n <br />\\r\\n <div class=\\\"guided-flow-step-wrapper-popup-main-text\\\">\\r\\n You have selected one of our Virginia Mason Franciscan Health providers, however this provider\\u2019s schedule, and your subsequent records\\r\\n and communications with this provider, are not managed within MyVirginiaMason.\\r\\n </div>\\r\\n <br />\\r\\n <div>\\r\\n <b class=\\\"guided-flow-step-wrapper-popup-italic\\\">What does this mean? </b>\\r\\n <span class=\\\"guided-flow-step-wrapper-popup-sub-text\\\"\\r\\n >You can continue to schedule this appointment. However, because you have selected a provider at a different location than you\\r\\n normally visit, you may need to complete additional paperwork before your appointment and create an account in MyChart, our other\\r\\n patient portal.\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n<div *ngIf=\\\"embedSource === 'mychart'\\\" class=\\\"guided-flow-step-wrapper-popup\\\">\\r\\n <h3>Please Note:</h3>\\r\\n <br />\\r\\n <div class=\\\"guided-flow-step-wrapper-popup-main-text\\\">\\r\\n You have selected one of our Virginia Mason Franciscan Health providers, however this provider\\u2019s schedule, and your subsequent records\\r\\n and communications with this provider, are not managed within MyChart.\\r\\n </div>\\r\\n <br />\\r\\n <div>\\r\\n <b class=\\\"guided-flow-step-wrapper-popup-italic\\\">What does this mean? </b>\\r\\n <span class=\\\"p1regular\\\">\\r\\n You can continue to schedule this appointment. However, because you have selected a provider at a different location than you normally\\r\\n visit, you may need to complete additional paperwork before your appointment and create an account in MyVirginiaMason, our other\\r\\n patient portal.\\r\\n </span>\\r\\n </div>\\r\\n</div>\\r\\n<div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"nextButtonHandler()\\\">Next</button>\\r\\n</div>\\r\\n\", styles: [\"@media (max-width: 419px){.guided-flow-step-wrapper{padding-bottom:125px}}.guided-flow-step-wrapper-footer{text-align:center;position:relative}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button-next-btn{height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute}.guided-flow-step-wrapper-footer button{margin:10px 0}.guided-flow-step-wrapper-footer button:last-child{margin-bottom:20px}}.guided-flow-step-wrapper-popup{height:fit-content;width:365px;text-align:center;font-family:var(--dhcl-font-family);line-height:28px;letter-spacing:-.5px;color:#4d525a;padding:0 15px;margin:0 auto}@media (min-width: 375px) and (max-width: 767px){.guided-flow-step-wrapper-popup{width:340px;padding:0}}@media (max-width: 374px){.guided-flow-step-wrapper-popup{width:270px}}.guided-flow-step-wrapper-popup-main-text{font-size:1.1rem}.guided-flow-step-wrapper-popup-italic{font-style:italic}.guided-flow-step-wrapper-popup-sub-text{font-size:1rem}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { embedSource: [{\n type: Input\n }], showStep1: [{\n type: Output\n }] } });\n\nclass StepperErrorComponent {\n closeClicked = new EventEmitter();\n closeButtonHandler() {\n this.closeClicked.emit(true);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StepperErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: StepperErrorComponent, selector: \"dhgf-stepper-error\", outputs: { closeClicked: \"closeClicked\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <div class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n <h1>\\r\\n Sorry, something went wrong.\\r\\n </h1>\\r\\n <p class=\\\"apologize\\\">We are unable to retrieve this provider\\u2019s schedule at this time. We apologize for the inconvenience.</p>\\r\\n <p class=\\\"call\\\">Please call (844) 274-8497 to schedule your appointment.</p>\\r\\n <p class=\\\"emergency\\\"><strong>If this is an emergency, please call 911.</strong></p>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"cancel-btn\\\" dhclButton buttonType=\\\"primary\\\" (click)=\\\"closeButtonHandler()\\\">Close</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{height:500px;margin-left:19px;margin-right:11px}@media (max-width: 419px){.guided-flow-step-wrapper{margin-left:0;padding-bottom:125px}}.guided-flow-step-wrapper-header{width:480px}@media (max-width: 419px){.guided-flow-step-wrapper-header{width:310px}}.guided-flow-step-wrapper-header h1{font-style:normal;font-weight:700;font-size:40px;line-height:42px;letter-spacing:-1px;color:#390;padding:0!important}.guided-flow-step-wrapper-header p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:#4d525a}.guided-flow-step-wrapper-header .apologize{margin-top:18px}@media (max-width: 419px){.guided-flow-step-wrapper-header .apologize{margin-top:32px}}.guided-flow-step-wrapper-header .call{margin-top:30px}@media (max-width: 419px){.guided-flow-step-wrapper-header .call{margin-top:32px}}.guided-flow-step-wrapper-header .emergency{margin-top:54px;color:#b00}@media (max-width: 419px){.guided-flow-step-wrapper-header .emergency{margin-top:32px}}.guided-flow-step-wrapper-footer{margin-top:32px;text-align:center;position:relative}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute}.guided-flow-step-wrapper-footer button{margin:10px 0}.guided-flow-step-wrapper-footer button:last-child{margin-bottom:20px}}\\n\"], dependencies: [{ kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: StepperErrorComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-stepper-error', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <div class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n <h1>\\r\\n Sorry, something went wrong.\\r\\n </h1>\\r\\n <p class=\\\"apologize\\\">We are unable to retrieve this provider\\u2019s schedule at this time. We apologize for the inconvenience.</p>\\r\\n <p class=\\\"call\\\">Please call (844) 274-8497 to schedule your appointment.</p>\\r\\n <p class=\\\"emergency\\\"><strong>If this is an emergency, please call 911.</strong></p>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"cancel-btn\\\" dhclButton buttonType=\\\"primary\\\" (click)=\\\"closeButtonHandler()\\\">Close</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{height:500px;margin-left:19px;margin-right:11px}@media (max-width: 419px){.guided-flow-step-wrapper{margin-left:0;padding-bottom:125px}}.guided-flow-step-wrapper-header{width:480px}@media (max-width: 419px){.guided-flow-step-wrapper-header{width:310px}}.guided-flow-step-wrapper-header h1{font-style:normal;font-weight:700;font-size:40px;line-height:42px;letter-spacing:-1px;color:#390;padding:0!important}.guided-flow-step-wrapper-header p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:#4d525a}.guided-flow-step-wrapper-header .apologize{margin-top:18px}@media (max-width: 419px){.guided-flow-step-wrapper-header .apologize{margin-top:32px}}.guided-flow-step-wrapper-header .call{margin-top:30px}@media (max-width: 419px){.guided-flow-step-wrapper-header .call{margin-top:32px}}.guided-flow-step-wrapper-header .emergency{margin-top:54px;color:#b00}@media (max-width: 419px){.guided-flow-step-wrapper-header .emergency{margin-top:32px}}.guided-flow-step-wrapper-footer{margin-top:32px;text-align:center;position:relative}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute}.guided-flow-step-wrapper-footer button{margin:10px 0}.guided-flow-step-wrapper-footer button:last-child{margin-bottom:20px}}\\n\"] }]\n }], propDecorators: { closeClicked: [{\n type: Output\n }] } });\n\nclass GuidedScheduleFlowComponent {\n route;\n windowService;\n schedulingService;\n cjaTagService;\n provider;\n showNewSchedulingApp = false;\n isBookAgain = false;\n baseUrl;\n isCaptchaEnabled = false;\n isLoggedIn = false;\n isLocationAppt = false;\n mrn;\n isV5;\n patientDetail;\n outreachToken;\n handleNavigateToSchedulingSpa;\n market;\n useLegacyAPI;\n embedSource = '';\n navigateToSchedulingSpa = new EventEmitter();\n showSpinner = new EventEmitter();\n closeClicked = new EventEmitter();\n activeStep = 0;\n stepperError = false;\n locations;\n newPatient = true;\n selectedAppointmentType;\n selectedLocation;\n appointmentSchedule;\n selectedAppointmentTime;\n selectedTimeSlotId;\n schedule;\n providerSchedule;\n visitsWithOnlineScheduling = [];\n visitsWithNoOnlineScheduling = [];\n appointmentTypeList = [];\n appointmentVisit;\n appointmentSlot;\n notableToken;\n cshToken;\n showNoApptsModal = false;\n hasNoToken = false;\n isMyTurnPatient = false;\n noTimesLabel = 'Call for availability';\n showApptTypeDescription = false;\n visitId = '';\n selectedAppointment;\n isScheduleRetrieved = false;\n showPopupNotification = false;\n popupNotificationAlreadyDisplayed = false;\n constructor(route, windowService, schedulingService, cjaTagService) {\n this.route = route;\n this.windowService = windowService;\n this.schedulingService = schedulingService;\n this.cjaTagService = cjaTagService;\n }\n ngOnInit() {\n if (this.isLocationAppt) {\n this.noTimesLabel = 'No Availability';\n }\n if (Object.keys(this.provider).length === 0 && this.isLocationAppt) {\n this.provider = null;\n this.showNoApptsModal = true;\n this.cjaTagService.linkCovidFlow('no appts available - guided flow', this.appointmentVisit, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing', undefined, this.patientDetail);\n return;\n }\n if (!this.useLegacyAPI &&\n ((this.provider?.ehrCode?.toLowerCase() === 'cerner' && this.embedSource?.toLowerCase() === Ehrs.EPIC) ||\n (this.provider?.ehrCode?.toLowerCase() === 'epic' && this.embedSource?.toLowerCase() === Ehrs.CERNER))) {\n this.activeStep = null;\n this.showPopupNotification = true;\n }\n else {\n this.activeStep = 0;\n }\n this.onProviderChanged();\n if (this.isLocationAppt) {\n this.establishPatientHandler({ newPatient: false });\n }\n this.cjaTagService.link('guided booking start', {\n visitMetadata: {\n isBookAgain: this.isBookAgain\n },\n facility: {},\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, this.isLoggedIn, this.mrn);\n }\n ngOnChanges(change) {\n if (change.provider && !change.provider.firstChange) {\n this.activeStep = 0;\n this.onProviderChanged();\n }\n }\n onProviderChanged() {\n this.route.queryParams?.pipe(first()).subscribe(params => {\n if (this.isLocationAppt) {\n if (params.token || params.cshToken || (params.ref && params.location)) {\n this.notableToken = params.token || null;\n this.cshToken = params.cshToken || null;\n this.establishPatientHandler({ newPatient: false });\n this.hasNoToken = (!params.token && !params.cshToken) || !(params.ref && params.location);\n if (params.ref) {\n this.isMyTurnPatient = Boolean(params.ref === 'mt' && params.location);\n }\n }\n else {\n this.hasNoToken = true;\n this.provider = null;\n this.showNoApptsModal = true;\n this.cjaTagService.linkCovidFlow('no token - guided flow', this.appointmentVisit, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing', undefined, this.patientDetail);\n return;\n }\n }\n else {\n this.setApplicationStartState(params);\n }\n });\n }\n backBtnHandler() {\n if (this.activeStep === 3) {\n this.activeStep--;\n this.appointmentSchedule = null;\n this.showApptTypeDescription = false;\n }\n else if (this.activeStep === 2 && this.showApptTypeDescription) {\n this.showApptTypeDescription = false;\n }\n else if (this.activeStep > 0) {\n this.activeStep--;\n }\n else if (this.activeStep === 0 && this.popupNotificationAlreadyDisplayed) {\n this.showPopupNotification = true;\n this.activeStep = null;\n }\n else {\n this.activeStep = 0;\n }\n }\n /*Step 1*/\n establishPatientHandler(patientStatus) {\n this.newPatient = patientStatus.newPatient;\n this.getAvailableLocations();\n if ((this.newPatient && this.provider.acceptsNewPatients && this.provider.isBookOnline && this.appointmentsAvailable) ||\n (!this.newPatient && this.appointmentsAvailable && this.provider.isBookOnline)) {\n this.activeStep = 1;\n }\n else if (!this.provider.acceptsNewPatients && this.newPatient) {\n this.activeStep = -2;\n this.cjaTagService.link('unable to schedule appointment', {\n visitMetadata: {\n isBookAgain: this.isBookAgain\n },\n facility: {},\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing');\n }\n else {\n this.activeStep = -1;\n this.cjaTagService.linkCovidFlow('unable to schedule appointment', {\n visitMetadata: {\n isBookAgain: this.isBookAgain\n },\n facility: {},\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing', undefined, this.patientDetail);\n }\n this.cjaTagService.linkCovidFlow('select patient type', {\n visitMetadata: {\n isBookAgain: this.isBookAgain\n },\n facility: {},\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing', undefined, this.patientDetail);\n }\n /*Step 1*/\n getAvailableLocations() {\n this.locations = getLocations(this.provider, !this.newPatient);\n this.visitsWithOnlineScheduling = this.locations.filter(a => a.office.supportsOnlineBooking && a.office.appointments?.length > 0);\n if (!this.useLegacyAPI) {\n const noOnlineScheduling = this.locations.filter(a => this.visitsWithOnlineScheduling.indexOf(a) < 0);\n const uniqueNoOnlineScheduling = noOnlineScheduling.filter(({ office }, index) => !office.address.includes(office.address, index + 1));\n this.visitsWithNoOnlineScheduling = uniqueNoOnlineScheduling.filter(lc => this.visitsWithOnlineScheduling.every(vs => lc.office.latitude !== vs.office.latitude && lc.office.longitude !== vs.office.longitude));\n this.visitsWithOnlineScheduling.forEach((vOnline) => {\n uniqueNoOnlineScheduling.forEach((unq) => {\n if (vOnline.office.latitude === unq.office.latitude && vOnline.office.longitude === unq.office.longitude) {\n if (unq !== undefined && unq.type === 0) {\n this.visitsWithNoOnlineScheduling.push(unq);\n }\n }\n });\n });\n }\n else {\n this.visitsWithNoOnlineScheduling = this.locations.filter(a => this.visitsWithOnlineScheduling.indexOf(a) < 0);\n }\n }\n /*Step 3*/\n getAppointmentTypes() {\n this.appointmentTypeList = this.selectedLocation.office.appointments;\n }\n showAppointmentTypeDescriptionHandler(showDescription) {\n this.showApptTypeDescription = showDescription;\n }\n appointmentTypeSelectHandler(appt) {\n this.selectedAppointmentType = appt;\n this.getAppointmentSchedule();\n const selectedOffice = this.selectedLocation.office;\n this.cjaTagService.linkCovidFlow('select appointment type', {\n visitMetadata: {\n isBookAgain: this.isBookAgain,\n appointmentTypeLabel: this.selectedAppointmentType?.name\n },\n facility: {\n facilityName: selectedOffice.name || selectedOffice.address\n },\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing', undefined, this.patientDetail);\n }\n /*Step 4*/\n getAppointmentSchedule() {\n if (!this.useLegacyAPI) {\n this.showSpinner.emit(true);\n this.getSlotDetails();\n this.schedulingService\n .getTimeslotsByAppointmentType(this.selectedAppointment?.providerSlotId, encodeURIComponent(this.visitId), this.provider.npi.toString(), this.provider?.ehrCode, this.market, this.selectedAppointmentType.name, '', this.provider?.practitionerId, this.selectedAppointment.officeAddressId)\n .subscribe((availableTimeslots) => {\n if (availableTimeslots) {\n availableTimeslots.officeAddressId = this.selectedAppointment.officeAddressId;\n availableTimeslots.providerSlotId = this.selectedAppointment.providerSlotId;\n this.appointmentSchedule = getLocationSchedule(this.provider, this.selectedLocation, this.selectedAppointmentType, availableTimeslots, this.market, this.useLegacyAPI);\n this.showSpinner.emit(false);\n this.isScheduleRetrieved = true;\n }\n this.activeStep = 3;\n }, error => {\n this.showSpinner.emit(false);\n this.activeStep = -3;\n this.stepperError = true;\n });\n }\n else {\n this.appointmentSchedule = getLocationSchedule(this.provider, this.selectedLocation, this.selectedAppointmentType, null, this.market, this.useLegacyAPI);\n this.isScheduleRetrieved = true;\n this.activeStep = 3;\n }\n }\n getSlotDetails() {\n availabilityLoop: for (const availability of this.provider?.onlineBookingAvailability) {\n for (const appointmentType of availability.appointmentTypes) {\n if (appointmentType.name.toLowerCase() === this.selectedAppointmentType.name.toLowerCase() &&\n availability.officeAddressId === this.selectedLocation.office?.id &&\n (!appointmentType.patientAppointmentType ||\n appointmentType.patientAppointmentType.toLowerCase() === 'both' ||\n (this.newPatient && appointmentType.patientAppointmentType.toLowerCase() === 'new') ||\n (!this.newPatient && appointmentType.patientAppointmentType.toLowerCase() === 'established'))) {\n this.visitId = appointmentType.visitId;\n this.selectedAppointment = availability;\n break availabilityLoop;\n }\n }\n }\n }\n get progress() {\n let progressVal = 0;\n switch (this.activeStep) {\n case 0:\n progressVal = 25;\n break;\n case 1:\n progressVal = 50;\n break;\n case 2:\n progressVal = 60;\n break;\n case 3:\n progressVal = 80;\n break;\n default:\n break;\n }\n return progressVal;\n }\n locationSelectedHandler(selectedLocation) {\n this.selectedLocation = selectedLocation;\n this.getAppointmentTypes();\n if (!this.isLocationAppt && this.selectedLocation.office.appointments.length > 1) {\n this.activeStep = 2;\n }\n else {\n if (this.appointmentTypeList.length >= 1) {\n this.activeStep = 2;\n }\n else {\n this.selectedAppointmentType = this.selectedLocation.office.appointments[0];\n if (this.selectedAppointmentType.description && this.selectedAppointmentType.description !== '') {\n this.activeStep = 2;\n }\n else {\n this.appointmentTypeSelectHandler(this.selectedAppointmentType);\n this.activeStep = 3;\n }\n }\n }\n }\n appointmentSelectionHandler(appointmentTime) {\n this.selectedAppointmentTime = appointmentTime.time;\n this.selectedTimeSlotId = appointmentTime.slotId;\n const selectedOffice = appointmentTime.office;\n const officeAvailabilityInfo = this.provider.onlineBookingAvailability.find((availability) => {\n return availability.officeAddressId === selectedOffice.id;\n });\n const applicableProviderAppointmentType = officeAvailabilityInfo.appointmentTypes.find(x => isApplicableAppointmentType([this.selectedAppointmentType.remoteId], !this.newPatient, x));\n this.selectedAppointmentType.visitId = applicableProviderAppointmentType?.visitId;\n this.selectedAppointmentType.visitIdType = applicableProviderAppointmentType?.visitIdType;\n this.appointmentVisit = {\n visitMetadata: {\n appointmentAt: this.selectedAppointmentTime,\n appointmentType: this.isLocationAppt ? appointmentTime.appointment.id : this.selectedAppointmentType.id,\n appointmentTypeLabel: this.isLocationAppt ? appointmentTime.appointment.name : this.selectedAppointmentType.name,\n appointmentTypeRemoteId: this.isLocationAppt ? appointmentTime.appointment.remoteId : this.selectedAppointmentType.remoteId,\n clientId: typeof ga === 'undefined' || typeof ga.getByName('tm_ga') === 'undefined'\n ? 'error with ga'\n : ga\n .getByName('tm_ga')\n .get('clientId')\n .toString(),\n initialLoadFromPCDE: true,\n captchaEnabled: this.isCaptchaEnabled,\n newPatient: this.newPatient,\n scheduleId: officeAvailabilityInfo.scheduleId,\n returnUrlProfile: window.location.href,\n locationId: officeAvailabilityInfo.officeAddressId,\n isBookAgain: this.isBookAgain,\n notableToken: this.outreachToken && this.outreachToken !== '' ? '' : this.notableToken,\n cshToken: this.cshToken,\n isMyTurn: this.isMyTurnPatient,\n isV5: Boolean(this.isV5),\n providerId: officeAvailabilityInfo.providerSchedulingId,\n outreachToken: this.outreachToken,\n isLocationAppt: this.isLocationAppt\n },\n facility: {\n facilityAddress: selectedOffice.address,\n facilityId: officeAvailabilityInfo.facilitySchedulingId,\n facilityLatitude: selectedOffice.latitude,\n facilityLongitude: selectedOffice.longitude,\n facilityCity: selectedOffice.city,\n facilityName: selectedOffice.name || selectedOffice.address,\n facilityDepartmentName: selectedOffice.departmentName ?? '',\n facilityPhoneNumber: selectedOffice['phone'] || selectedOffice.phones[0],\n facilityState: selectedOffice.state,\n facilityZip: selectedOffice.zip\n },\n provider: {\n npi: this.provider.npi || '',\n name: this.provider.displayFullName,\n acceptsNewPatients: this.provider.acceptsNewPatients,\n imageUrl: getProviderImage(this.provider.images),\n specialty: this.provider.primarySpecialty,\n patientAgeGroups: this.provider?.patientAgeGroups,\n gender: this.provider?.gender\n },\n support: {\n supportLink: 'https://webchat.chat4help.net/DignityMyHome/?chatUsername=username&skill=4146152381',\n supportPhone: '(844) 274-8497',\n termsLink: 'http://terms.dignityhealth.org/cm/content.asp?pid=4&lid=4&facility_id=2'\n },\n systemDetails: {\n name: this.provider.ehrCode,\n market: 'vmfh',\n region: '',\n useLegacyAPI: false\n },\n appointmentDetails: {\n slotId: this.selectedTimeSlotId,\n dateTime: appointmentTime.time,\n status: 'booked',\n appointmentType: this.isLocationAppt ? appointmentTime.appointment.name : this.selectedAppointmentType.name\n },\n locationDetails: {\n locationId: officeAvailabilityInfo.officeAddressId,\n locationIdType: officeAvailabilityInfo.officeAddressIdType,\n locationName: selectedOffice.name\n },\n providerDetails: {\n providerId: this.provider.npi || '',\n providerIdType: this.provider.providerIdType,\n providerName: this.provider.displayFullName\n },\n visitDetails: {\n visitId: this.selectedAppointmentType.visitId,\n visitIdType: this.selectedAppointmentType.visitIdType\n }\n };\n if (this.showNewSchedulingApp) {\n this.appointmentVisit.visitMetadata.isVirtualVisit = this.selectedLocation.type === 0;\n }\n const visitData = {\n data: this.windowService.base64Encode(this.appointmentVisit)\n };\n this.cjaTagService.linkCovidFlow('select appointment time', this.appointmentVisit, this.isLoggedIn, this.mrn, this.newPatient ? 'new' : 'existing', undefined, this.patientDetail);\n if (this.handleNavigateToSchedulingSpa) {\n this.navigateToSchedulingSpa.emit(JSON.stringify(visitData));\n }\n else {\n this.navigateToSchedulingSpa.emit(null);\n this.windowService.setSessionStorage('SchedApp_visit', JSON.stringify(visitData));\n if (!this.useLegacyAPI) {\n this.windowService.locationHref(`${this.baseUrl}/find-a-doctor/provider/bookyourappointment`);\n }\n else if (this.showNewSchedulingApp) {\n this.windowService.locationHref(`${this.baseUrl}/ourdoctors/provider/bookyourappointment`);\n }\n else {\n this.windowService.locationHref(`${this.baseUrl}/login?flow=sched_flow&returnUrl=/ourdoctors/provider/bookyourappointment`);\n }\n }\n }\n setApplicationStartState(params) {\n const startState = new GuidedFlowStartState();\n startState.init(params, this.provider.onlineBookingAvailability);\n if (!startState.invalid) {\n this.establishPatientHandler({ newPatient: startState.newPatient });\n if (this.activeStep === 1 && startState.locationId) {\n const locationSelection = this.visitsWithOnlineScheduling.find(a => a.type === startState.appointmentType && a.office.id === startState.locationId);\n if (locationSelection) {\n this.locationSelectedHandler(locationSelection);\n const appointmentSelection = this.appointmentTypeList.find(a => a.remoteId === startState.appointmentTypeRemoteId);\n this.appointmentTypeSelectHandler(appointmentSelection);\n }\n }\n }\n }\n get appointmentsAvailable() {\n return (this.visitsWithOnlineScheduling.length > 0 ||\n this.visitsWithNoOnlineScheduling.filter(a => a.office.supportsOnlineBooking && a.office.appointments?.length > 0).length > 0);\n }\n getOfficePhoneNumber() {\n if (this.provider.offices && this.provider.offices[0] && this.provider.offices[0].addresses && this.provider.offices[0].addresses[0]) {\n return this.provider.offices[0].addresses[0].phone || this.provider.offices[0].addresses[0].phones[0];\n }\n else {\n return '';\n }\n }\n showStep1Handler() {\n this.activeStep = 0;\n this.showPopupNotification = false;\n this.popupNotificationAlreadyDisplayed = true;\n }\n closeClickedHandler(value) {\n this.closeClicked.emit(value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedScheduleFlowComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: WindowService }, { token: SchedulingService }, { token: CjaTagService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: GuidedScheduleFlowComponent, selector: \"dhgf-guided-schedule-flow\", inputs: { provider: \"provider\", showNewSchedulingApp: \"showNewSchedulingApp\", isBookAgain: \"isBookAgain\", baseUrl: \"baseUrl\", isCaptchaEnabled: \"isCaptchaEnabled\", isLoggedIn: \"isLoggedIn\", isLocationAppt: \"isLocationAppt\", mrn: \"mrn\", isV5: \"isV5\", patientDetail: \"patientDetail\", outreachToken: \"outreachToken\", handleNavigateToSchedulingSpa: \"handleNavigateToSchedulingSpa\", market: \"market\", useLegacyAPI: \"useLegacyAPI\", embedSource: \"embedSource\" }, outputs: { navigateToSchedulingSpa: \"navigateToSchedulingSpa\", showSpinner: \"showSpinner\", closeClicked: \"closeClicked\" }, usesOnChanges: true, ngImport: i0, template: \"<div class=\\\"guided-flow-wrapper\\\" *ngIf=\\\"provider\\\" [class.has-error]=\\\"activeStep < 0 && !stepperError\\\">\\r\\n <dhcl-progress-bar [progress]=\\\"progress\\\" [valueText]=\\\"this.activeStep + 1\\\" *ngIf=\\\"activeStep >= 0\\\"></dhcl-progress-bar>\\r\\n <div class=\\\"back-button-container\\\">\\r\\n <button\\r\\n class=\\\"dhgf-back-btn\\\"\\r\\n *ngIf=\\\"\\r\\n (activeStep === 0 && popupNotificationAlreadyDisplayed) ||\\r\\n (activeStep > 0 && !isLocationAppt) ||\\r\\n (isLocationAppt && appointmentTypeList.length > 1 && activeStep > 2)\\r\\n \\\"\\r\\n (click)=\\\"backBtnHandler()\\\"\\r\\n >\\r\\n <svg width=\\\"8\\\" height=\\\"12\\\" viewBox=\\\"0 0 8 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n Back\\r\\n </button>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"steps-wrapper\\\">\\r\\n <dhgf-cross-portal-popup-notification *ngIf=\\\"showPopupNotification\\\" [embedSource]=\\\"embedSource\\\" (showStep1)=\\\"showStep1Handler()\\\">\\r\\n </dhgf-cross-portal-popup-notification>\\r\\n <dhgf-step1\\r\\n *ngIf=\\\"activeStep === 0\\\"\\r\\n [providerFullName]=\\\"provider.displayFullName\\\"\\r\\n [providerSpecialty]=\\\"provider.primarySpecialty || (provider.specialties ? provider.specialties[0] : '')\\\"\\r\\n [phoneNumber]=\\\"getOfficePhoneNumber()\\\"\\r\\n [acceptingNewPatients]=\\\"provider.acceptsNewPatients\\\"\\r\\n [appointmentsAvailable]=\\\"appointmentsAvailable\\\"\\r\\n [canBookOnline]=\\\"provider.isBookOnline\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n [showPopupNotification]=\\\"showPopupNotification\\\"\\r\\n (statusChange)=\\\"establishPatientHandler($event)\\\"\\r\\n ></dhgf-step1>\\r\\n <dhgf-step2\\r\\n *ngIf=\\\"activeStep === 1\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [visitsWithNoOnlineScheduling]=\\\"visitsWithNoOnlineScheduling\\\"\\r\\n [visitsWithOnlineScheduling]=\\\"visitsWithOnlineScheduling\\\"\\r\\n [skipSingleLocation]=\\\"isLocationAppt\\\"\\r\\n (locationSelected)=\\\"locationSelectedHandler($event)\\\"\\r\\n ></dhgf-step2>\\r\\n <dhgf-step3\\r\\n *ngIf=\\\"activeStep === 2\\\"\\r\\n [appointmentTypeList]=\\\"appointmentTypeList\\\"\\r\\n [showApptTypeDescription]=\\\"showApptTypeDescription\\\"\\r\\n [phoneNumber]=\\\"getOfficePhoneNumber()\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n (showDescription)=\\\"showAppointmentTypeDescriptionHandler($event)\\\"\\r\\n (appointmentTypeSelected)=\\\"appointmentTypeSelectHandler($event)\\\"\\r\\n ></dhgf-step3>\\r\\n <dhgf-step4\\r\\n [isLocationAppt]=\\\"isLocationAppt\\\"\\r\\n [selectedLocation]=\\\"selectedLocation\\\"\\r\\n [selectedAppointmentType]=\\\"selectedAppointmentType\\\"\\r\\n [appointmentSchedule]=\\\"appointmentSchedule\\\"\\r\\n (appointmentSelected)=\\\"appointmentSelectionHandler($event)\\\"\\r\\n [noTimesLabel]=\\\"noTimesLabel\\\"\\r\\n *ngIf=\\\"activeStep === 3 && isScheduleRetrieved\\\"\\r\\n ></dhgf-step4>\\r\\n <dhgf-stepper-error *ngIf=\\\"stepperError\\\" (closeClicked)=\\\"closeClickedHandler($event)\\\"></dhgf-stepper-error>\\r\\n </div>\\r\\n\\r\\n <dhgf-call-to-schedule\\r\\n *ngIf=\\\"activeStep === -1\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [phoneNumber]=\\\"provider.offices[0].addresses[0].phone || provider.offices[0].addresses[0].phones[0]\\\"\\r\\n >\\r\\n </dhgf-call-to-schedule>\\r\\n <dhgf-find-another-doctor\\r\\n *ngIf=\\\"activeStep === -2\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [baseUrl]=\\\"baseUrl\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n ></dhgf-find-another-doctor>\\r\\n</div>\\r\\n<div *ngIf=\\\"showNoApptsModal\\\" class=\\\"no-appointments-modal\\\">\\r\\n <div class=\\\"message\\\">\\r\\n <div class=\\\"header-message\\\">\\r\\n <h2>Sorry, there are no appointments available at this time</h2>\\r\\n </div>\\r\\n <div class=\\\"copy\\\">\\r\\n <span *ngIf=\\\"!hasNoToken\\\">\\r\\n As soon as more supplies are made available to us, we will add more appointment times. We appreciate your patience. We are working\\r\\n closely with the local health department and with community partners to urgently secure additional vaccination allocations so that\\r\\n we can offer vaccination to all of our patients.\\r\\n </span>\\r\\n <span *ngIf=\\\"hasNoToken\\\">\\r\\n You can book a COVID-19 vaccination appointment by invitation only.\\r\\n </span>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\"p{font-style:normal;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}a{color:var(--dhcl-color-secondary);text-decoration:none;font-family:var(--dhcl-font-family);font-weight:700;transition:var(--dhcl-default-transition)}a:hover,a:focus{color:var(--dhcl-color-secondary-dark)}.p1bold{font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.card{background:var(--dhcl-color-white);border:2px solid transparent;transition:var(--dhcl-default-transition);cursor:pointer;width:400px;margin:20px auto;max-width:100%}.card .card-title svg{margin-right:10px}.card svg{margin-right:5px;vertical-align:middle}.card .card-row{padding-top:10px;margin:0}.card:hover,.card.is-selected{border:2px solid var(--dhcl-color-secondary)}.card.is-not-selectable{box-shadow:none;border-radius:0;padding:0;cursor:initial}.card.is-not-selectable:hover{border:2px solid transparent}.card.is-selectable{box-shadow:0 2px 8px #4d525a4d;border-radius:4px;padding:24px 20px}.card .phone-link{color:var(--dhcl-color-secondary-dark);text-decoration:none}.card .phone-link:visited{color:var(--dhcl-color-secondary-dark)}.card .phone-link:hover{color:var(--dhcl-color-secondary-darkest);text-decoration:underline;text-decoration-color:var(--dhcl-color-secondary-darkest)}@media (min-width: 320px) and (max-width: 480px){.card.is-selectable{padding:15px 20px}}.dhcl-modal-content.guided-flow-modal{padding:0!important;overflow:hidden}.dhcl-modal-content.guided-flow-modal .close-btn{margin:10px}.guided-flow-step-wrapper{box-sizing:border-box;padding:20px 20px 100px}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark);text-align:center;width:400px;margin:-19px auto 20px;max-width:100%}.guided-flow-step-wrapper-content{max-height:850px;overflow:none;padding:0}@media (max-height: 970px){.guided-flow-step-wrapper-content{max-height:950px}}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 215px);overflow-y:auto;overflow-x:hidden}@supports (-webkit-touch-callout: none){.guided-flow-step-wrapper-content{max-height:calc(100vh - 310px)}}}.guided-flow-step-wrapper-content a{text-decoration:none}.guided-flow-step-wrapper-content p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:20px 0}.guided-flow-step-wrapper .step-container{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.guided-flow-step-wrapper-footer{text-align:center;position:absolute;width:100%;padding:0 20px;background:var(--dhcl-color-white);box-sizing:border-box;bottom:0;left:0}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button.next-btn{float:right;margin:10px 0 20px}.guided-flow-step-wrapper-footer button.cancel-btn{width:190px;height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0 20px;width:100%}.guided-flow-step-wrapper-footer button.next-btn{float:none}.guided-flow-step-wrapper-footer button.cancel-btn{width:100%}}.guided-flow-step-wrapper div{box-sizing:border-box}@media (max-width: 420px){.guided-flow-modal{height:auto;min-height:100vh}@supports (-webkit-touch-callout: none){.guided-flow-modal{min-height:-webkit-fill-available}}}.guided-flow-modal-portal{padding:0!important;overflow:hidden}@media (max-width: 419px){.guided-flow-modal-portal{height:auto;padding:0!important;overflow:hidden;min-height:700px!important}.guided-flow-modal-portal .close-btn{margin:10px}}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{margin-bottom:10px}.dhcl-datepicker-wrapper .dhcl-datepicker{overflow:hidden!important}.dhcl-datepicker-wrapper .dhcl-datepicker .datepicker-dialog{top:5px!important;position:relative!important}.inperson-visit-card p{white-space:normal!important}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 115px)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container{margin-top:0!important}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container span.week-day{margin-top:1%!important}.date-time-picker button.dhcl-timepicker-nav img{max-width:none!important}\\n\", \".guided-flow-wrapper{--dhcl-font-family: \\\"Trade Gothic Next LT Pro\\\", Helvetica, Arial, sans-serif;font-family:var(--dhcl-font-family);box-sizing:border-box;padding:0;margin:0 auto;max-width:100%;min-height:500px}.guided-flow-wrapper.has-error{min-height:auto;padding-bottom:40px;height:auto}.guided-flow-wrapper button{font-family:var(--dhcl-font-family)}.guided-flow-wrapper .back-button-container{height:40px}.guided-flow-wrapper .back-button-container .dhgf-back-btn{border:none;background:none;color:var(--dhcl-color-secondary);font-size:14px;font-weight:700;cursor:pointer;margin:10px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg{transform:translateY(1px);margin-right:3px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg path{stroke:var(--dhcl-color-secondary)}.no-appointments-modal .message{padding-left:84px;padding-right:94px}@media (max-width: 767px){.no-appointments-modal .message{padding-left:25px;padding-right:25px}}.no-appointments-modal .message .header-message{margin-top:50px}.no-appointments-modal .message .copy{line-height:1.5rem;margin-bottom:50px}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2.ProgressBarComponent, selector: \"dhcl-progress-bar\", inputs: [\"fill\", \"progress\", \"valueText\"] }, { kind: \"component\", type: Step1Component, selector: \"dhgf-step1\", inputs: [\"providerFullName\", \"phoneNumber\", \"providerSpecialty\", \"acceptingNewPatients\", \"appointmentsAvailable\", \"canBookOnline\"], outputs: [\"statusChange\"] }, { kind: \"component\", type: Step2Component, selector: \"dhgf-step2\", inputs: [\"providerName\", \"visitsWithOnlineScheduling\", \"visitsWithNoOnlineScheduling\", \"skipSingleLocation\"], outputs: [\"locationSelected\"] }, { kind: \"component\", type: CallToScheduleComponent, selector: \"dhgf-call-to-schedule\", inputs: [\"providerName\", \"phoneNumber\", \"isRescheduling\", \"originalApptTime\", \"state\"] }, { kind: \"component\", type: FindAnotherDoctorComponent, selector: \"dhgf-find-another-doctor\", inputs: [\"providerName\", \"baseUrl\", \"market\", \"useLegacyAPI\", \"embedSource\"] }, { kind: \"component\", type: Step3Component, selector: \"dhgf-step3\", inputs: [\"appointmentTypeList\", \"showApptTypeDescription\", \"phoneNumber\", \"market\", \"useLegacyAPI\"], outputs: [\"setState\", \"appointmentTypeSelected\", \"showDescription\"] }, { kind: \"component\", type: Step4Component, selector: \"dhgf-step4\", inputs: [\"isLocationAppt\", \"noTimesLabel\", \"isReschedule\", \"selectedLocation\", \"selectedAppointmentType\", \"appointmentSchedule\"], outputs: [\"appointmentSelected\"] }, { kind: \"component\", type: CrossPortalPopupNotificationComponent, selector: \"dhgf-cross-portal-popup-notification\", inputs: [\"embedSource\"], outputs: [\"showStep1\"] }, { kind: \"component\", type: StepperErrorComponent, selector: \"dhgf-stepper-error\", outputs: [\"closeClicked\"] }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedScheduleFlowComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-guided-schedule-flow', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"guided-flow-wrapper\\\" *ngIf=\\\"provider\\\" [class.has-error]=\\\"activeStep < 0 && !stepperError\\\">\\r\\n <dhcl-progress-bar [progress]=\\\"progress\\\" [valueText]=\\\"this.activeStep + 1\\\" *ngIf=\\\"activeStep >= 0\\\"></dhcl-progress-bar>\\r\\n <div class=\\\"back-button-container\\\">\\r\\n <button\\r\\n class=\\\"dhgf-back-btn\\\"\\r\\n *ngIf=\\\"\\r\\n (activeStep === 0 && popupNotificationAlreadyDisplayed) ||\\r\\n (activeStep > 0 && !isLocationAppt) ||\\r\\n (isLocationAppt && appointmentTypeList.length > 1 && activeStep > 2)\\r\\n \\\"\\r\\n (click)=\\\"backBtnHandler()\\\"\\r\\n >\\r\\n <svg width=\\\"8\\\" height=\\\"12\\\" viewBox=\\\"0 0 8 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n Back\\r\\n </button>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"steps-wrapper\\\">\\r\\n <dhgf-cross-portal-popup-notification *ngIf=\\\"showPopupNotification\\\" [embedSource]=\\\"embedSource\\\" (showStep1)=\\\"showStep1Handler()\\\">\\r\\n </dhgf-cross-portal-popup-notification>\\r\\n <dhgf-step1\\r\\n *ngIf=\\\"activeStep === 0\\\"\\r\\n [providerFullName]=\\\"provider.displayFullName\\\"\\r\\n [providerSpecialty]=\\\"provider.primarySpecialty || (provider.specialties ? provider.specialties[0] : '')\\\"\\r\\n [phoneNumber]=\\\"getOfficePhoneNumber()\\\"\\r\\n [acceptingNewPatients]=\\\"provider.acceptsNewPatients\\\"\\r\\n [appointmentsAvailable]=\\\"appointmentsAvailable\\\"\\r\\n [canBookOnline]=\\\"provider.isBookOnline\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n [showPopupNotification]=\\\"showPopupNotification\\\"\\r\\n (statusChange)=\\\"establishPatientHandler($event)\\\"\\r\\n ></dhgf-step1>\\r\\n <dhgf-step2\\r\\n *ngIf=\\\"activeStep === 1\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [visitsWithNoOnlineScheduling]=\\\"visitsWithNoOnlineScheduling\\\"\\r\\n [visitsWithOnlineScheduling]=\\\"visitsWithOnlineScheduling\\\"\\r\\n [skipSingleLocation]=\\\"isLocationAppt\\\"\\r\\n (locationSelected)=\\\"locationSelectedHandler($event)\\\"\\r\\n ></dhgf-step2>\\r\\n <dhgf-step3\\r\\n *ngIf=\\\"activeStep === 2\\\"\\r\\n [appointmentTypeList]=\\\"appointmentTypeList\\\"\\r\\n [showApptTypeDescription]=\\\"showApptTypeDescription\\\"\\r\\n [phoneNumber]=\\\"getOfficePhoneNumber()\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n (showDescription)=\\\"showAppointmentTypeDescriptionHandler($event)\\\"\\r\\n (appointmentTypeSelected)=\\\"appointmentTypeSelectHandler($event)\\\"\\r\\n ></dhgf-step3>\\r\\n <dhgf-step4\\r\\n [isLocationAppt]=\\\"isLocationAppt\\\"\\r\\n [selectedLocation]=\\\"selectedLocation\\\"\\r\\n [selectedAppointmentType]=\\\"selectedAppointmentType\\\"\\r\\n [appointmentSchedule]=\\\"appointmentSchedule\\\"\\r\\n (appointmentSelected)=\\\"appointmentSelectionHandler($event)\\\"\\r\\n [noTimesLabel]=\\\"noTimesLabel\\\"\\r\\n *ngIf=\\\"activeStep === 3 && isScheduleRetrieved\\\"\\r\\n ></dhgf-step4>\\r\\n <dhgf-stepper-error *ngIf=\\\"stepperError\\\" (closeClicked)=\\\"closeClickedHandler($event)\\\"></dhgf-stepper-error>\\r\\n </div>\\r\\n\\r\\n <dhgf-call-to-schedule\\r\\n *ngIf=\\\"activeStep === -1\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [phoneNumber]=\\\"provider.offices[0].addresses[0].phone || provider.offices[0].addresses[0].phones[0]\\\"\\r\\n >\\r\\n </dhgf-call-to-schedule>\\r\\n <dhgf-find-another-doctor\\r\\n *ngIf=\\\"activeStep === -2\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [baseUrl]=\\\"baseUrl\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n ></dhgf-find-another-doctor>\\r\\n</div>\\r\\n<div *ngIf=\\\"showNoApptsModal\\\" class=\\\"no-appointments-modal\\\">\\r\\n <div class=\\\"message\\\">\\r\\n <div class=\\\"header-message\\\">\\r\\n <h2>Sorry, there are no appointments available at this time</h2>\\r\\n </div>\\r\\n <div class=\\\"copy\\\">\\r\\n <span *ngIf=\\\"!hasNoToken\\\">\\r\\n As soon as more supplies are made available to us, we will add more appointment times. We appreciate your patience. We are working\\r\\n closely with the local health department and with community partners to urgently secure additional vaccination allocations so that\\r\\n we can offer vaccination to all of our patients.\\r\\n </span>\\r\\n <span *ngIf=\\\"hasNoToken\\\">\\r\\n You can book a COVID-19 vaccination appointment by invitation only.\\r\\n </span>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\"p{font-style:normal;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}a{color:var(--dhcl-color-secondary);text-decoration:none;font-family:var(--dhcl-font-family);font-weight:700;transition:var(--dhcl-default-transition)}a:hover,a:focus{color:var(--dhcl-color-secondary-dark)}.p1bold{font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.card{background:var(--dhcl-color-white);border:2px solid transparent;transition:var(--dhcl-default-transition);cursor:pointer;width:400px;margin:20px auto;max-width:100%}.card .card-title svg{margin-right:10px}.card svg{margin-right:5px;vertical-align:middle}.card .card-row{padding-top:10px;margin:0}.card:hover,.card.is-selected{border:2px solid var(--dhcl-color-secondary)}.card.is-not-selectable{box-shadow:none;border-radius:0;padding:0;cursor:initial}.card.is-not-selectable:hover{border:2px solid transparent}.card.is-selectable{box-shadow:0 2px 8px #4d525a4d;border-radius:4px;padding:24px 20px}.card .phone-link{color:var(--dhcl-color-secondary-dark);text-decoration:none}.card .phone-link:visited{color:var(--dhcl-color-secondary-dark)}.card .phone-link:hover{color:var(--dhcl-color-secondary-darkest);text-decoration:underline;text-decoration-color:var(--dhcl-color-secondary-darkest)}@media (min-width: 320px) and (max-width: 480px){.card.is-selectable{padding:15px 20px}}.dhcl-modal-content.guided-flow-modal{padding:0!important;overflow:hidden}.dhcl-modal-content.guided-flow-modal .close-btn{margin:10px}.guided-flow-step-wrapper{box-sizing:border-box;padding:20px 20px 100px}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark);text-align:center;width:400px;margin:-19px auto 20px;max-width:100%}.guided-flow-step-wrapper-content{max-height:850px;overflow:none;padding:0}@media (max-height: 970px){.guided-flow-step-wrapper-content{max-height:950px}}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 215px);overflow-y:auto;overflow-x:hidden}@supports (-webkit-touch-callout: none){.guided-flow-step-wrapper-content{max-height:calc(100vh - 310px)}}}.guided-flow-step-wrapper-content a{text-decoration:none}.guided-flow-step-wrapper-content p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:20px 0}.guided-flow-step-wrapper .step-container{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.guided-flow-step-wrapper-footer{text-align:center;position:absolute;width:100%;padding:0 20px;background:var(--dhcl-color-white);box-sizing:border-box;bottom:0;left:0}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button.next-btn{float:right;margin:10px 0 20px}.guided-flow-step-wrapper-footer button.cancel-btn{width:190px;height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0 20px;width:100%}.guided-flow-step-wrapper-footer button.next-btn{float:none}.guided-flow-step-wrapper-footer button.cancel-btn{width:100%}}.guided-flow-step-wrapper div{box-sizing:border-box}@media (max-width: 420px){.guided-flow-modal{height:auto;min-height:100vh}@supports (-webkit-touch-callout: none){.guided-flow-modal{min-height:-webkit-fill-available}}}.guided-flow-modal-portal{padding:0!important;overflow:hidden}@media (max-width: 419px){.guided-flow-modal-portal{height:auto;padding:0!important;overflow:hidden;min-height:700px!important}.guided-flow-modal-portal .close-btn{margin:10px}}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{margin-bottom:10px}.dhcl-datepicker-wrapper .dhcl-datepicker{overflow:hidden!important}.dhcl-datepicker-wrapper .dhcl-datepicker .datepicker-dialog{top:5px!important;position:relative!important}.inperson-visit-card p{white-space:normal!important}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 115px)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container{margin-top:0!important}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container span.week-day{margin-top:1%!important}.date-time-picker button.dhcl-timepicker-nav img{max-width:none!important}\\n\", \".guided-flow-wrapper{--dhcl-font-family: \\\"Trade Gothic Next LT Pro\\\", Helvetica, Arial, sans-serif;font-family:var(--dhcl-font-family);box-sizing:border-box;padding:0;margin:0 auto;max-width:100%;min-height:500px}.guided-flow-wrapper.has-error{min-height:auto;padding-bottom:40px;height:auto}.guided-flow-wrapper button{font-family:var(--dhcl-font-family)}.guided-flow-wrapper .back-button-container{height:40px}.guided-flow-wrapper .back-button-container .dhgf-back-btn{border:none;background:none;color:var(--dhcl-color-secondary);font-size:14px;font-weight:700;cursor:pointer;margin:10px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg{transform:translateY(1px);margin-right:3px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg path{stroke:var(--dhcl-color-secondary)}.no-appointments-modal .message{padding-left:84px;padding-right:94px}@media (max-width: 767px){.no-appointments-modal .message{padding-left:25px;padding-right:25px}}.no-appointments-modal .message .header-message{margin-top:50px}.no-appointments-modal .message .copy{line-height:1.5rem;margin-bottom:50px}\\n\"] }]\n }], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: WindowService }, { type: SchedulingService }, { type: CjaTagService }], propDecorators: { provider: [{\n type: Input\n }], showNewSchedulingApp: [{\n type: Input\n }], isBookAgain: [{\n type: Input\n }], baseUrl: [{\n type: Input\n }], isCaptchaEnabled: [{\n type: Input\n }], isLoggedIn: [{\n type: Input\n }], isLocationAppt: [{\n type: Input\n }], mrn: [{\n type: Input\n }], isV5: [{\n type: Input\n }], patientDetail: [{\n type: Input\n }], outreachToken: [{\n type: Input\n }], handleNavigateToSchedulingSpa: [{\n type: Input\n }], market: [{\n type: Input\n }], useLegacyAPI: [{\n type: Input\n }], embedSource: [{\n type: Input\n }], navigateToSchedulingSpa: [{\n type: Output\n }], showSpinner: [{\n type: Output\n }], closeClicked: [{\n type: Output\n }] } });\n\nclass RescheduleService {\n http;\n environmentService;\n rescheduleEndpoint;\n apimSubscriptionKey;\n clientId;\n clientSecret;\n constructor(http, environmentService) {\n this.http = http;\n this.environmentService = environmentService;\n this.environmentService.getEnvironment().subscribe((environmentData) => {\n this.rescheduleEndpoint = environmentData.rescheduleAppointmentsEndpoint;\n this.apimSubscriptionKey = environmentData.apimSubscriptionKey;\n this.clientId = environmentData.clientId;\n this.clientSecret = environmentData.clientSecret;\n });\n }\n rescheduleAppointment(body, authToken) {\n const httpOptions = {\n headers: new HttpHeaders({\n Authorization: `Bearer ${authToken}`,\n 'Content-Type': 'application/json',\n 'Ocp-Apim-Subscription-Key': this.apimSubscriptionKey\n })\n };\n return this.http.put(`${this.rescheduleEndpoint}`, body, httpOptions);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleService, deps: [{ token: i1$1.HttpClient }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Injectable });\n static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleService, providedIn: 'root' });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: EnvironmentService }] });\n\nclass RescheduleReasonComponent {\n originalApptTime;\n providerName;\n state;\n reasonChange = new EventEmitter();\n reason;\n reasonOther;\n showOptionalCopy = false;\n constructor() { }\n ngOnInit() { }\n buttonHandler() {\n let reason = this.reason;\n if (reason === 'Other' && this.reasonOther) {\n reason += ': ' + this.reasonOther;\n }\n this.reasonChange.emit(reason);\n }\n get formattedOriginalApptTime() {\n return getFormattedRescheduleTime(this.originalApptTime, this.state);\n }\n get isDisabled() {\n let disabledValue = true;\n if (this.reason) {\n disabledValue = false;\n if (this.reason === 'Other' && this.reasonOther?.length > 83) {\n disabledValue = true;\n }\n }\n return disabledValue;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleReasonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RescheduleReasonComponent, selector: \"dhgf-reschedule-reason\", inputs: { originalApptTime: \"originalApptTime\", providerName: \"providerName\", state: \"state\" }, outputs: { reasonChange: \"reasonChange\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n Reschedule your appointment\\r\\n </h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p class=\\\"appt-time\\\">\\r\\n <strong>{{ formattedOriginalApptTime }}</strong> with {{ providerName }}\\r\\n </p>\\r\\n\\r\\n <div class=\\\"\\\">\\r\\n <fieldset>\\r\\n <legend>Please select a reason:</legend>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Scheduling conflict\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Scheduling conflict\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Bad weather\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Bad weather\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Transportation issues\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Transportation issues\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Financial issues\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Financial issues\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Wait too long\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Wait too long\\r\\n </label>\\r\\n <label>\\r\\n <div>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Other\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Other\\r\\n </div>\\r\\n </label>\\r\\n <label dhclTextInput *ngIf=\\\"reason === 'Other'\\\">\\r\\n <span class=\\\"optional-copy\\\">(optional)</span>\\r\\n <input type=\\\"text\\\" [(ngModel)]=\\\"reasonOther\\\" maxlength=\\\"85\\\" />\\r\\n <span class=\\\"disabledErrorMsgSpan\\\" *ngIf=\\\"isDisabled\\\">\\r\\n should be at most 83 character(s)\\r\\n </span>\\r\\n </label>\\r\\n </fieldset>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" [disabled]=\\\"isDisabled\\\" (click)=\\\"buttonHandler()\\\">Next</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper-content .appt-time{max-width:290px;text-align:center;margin:0 auto 25px}.guided-flow-step-wrapper-content fieldset{border:0;padding:0;min-inline-size:unset;margin-left:30px}@media (max-width: 767px){.guided-flow-step-wrapper-content fieldset{margin-left:0}}.guided-flow-step-wrapper-content fieldset legend{font-family:var(--dhcl-font-family);font-weight:700;margin-bottom:5px;color:var(--dhcl-color-gray-dark);font-size:16px;border-bottom:none}.guided-flow-step-wrapper-content fieldset label{font-family:var(--dhcl-font-family);display:block;margin:5px 0;color:var(--dhcl-color-gray-dark);font-size:.875rem;font-weight:400}.guided-flow-step-wrapper-content fieldset label .optional-copy{float:right;margin:0}.guided-flow-step-wrapper-content fieldset label div{font-size:14px}.guided-flow-step-wrapper-content fieldset input[type=radio]{width:20px;height:20px;margin-top:5px;vertical-align:bottom;float:unset!important;margin-right:5px}.guided-flow-step-wrapper-content fieldset .disabledErrorMsgSpan{color:#b00;margin-top:.25rem;display:block;font-size:.875rem;line-height:1.25rem}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2$1.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { kind: \"directive\", type: i2$1.RadioControlValueAccessor, selector: \"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]\", inputs: [\"name\", \"formControlName\", \"value\"] }, { kind: \"directive\", type: i2$1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { kind: \"directive\", type: i2$1.MaxLengthValidator, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: [\"maxlength\"] }, { kind: \"directive\", type: i2$1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }, { kind: \"directive\", type: i2.TextInputDirective, selector: \"[dhclTextInput]\", inputs: [\"hasSuccess\", \"hasError\", \"noLabel\", \"required\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleReasonComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-reschedule-reason', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n Reschedule your appointment\\r\\n </h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p class=\\\"appt-time\\\">\\r\\n <strong>{{ formattedOriginalApptTime }}</strong> with {{ providerName }}\\r\\n </p>\\r\\n\\r\\n <div class=\\\"\\\">\\r\\n <fieldset>\\r\\n <legend>Please select a reason:</legend>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Scheduling conflict\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Scheduling conflict\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Bad weather\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Bad weather\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Transportation issues\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Transportation issues\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Financial issues\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Financial issues\\r\\n </label>\\r\\n <label>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Wait too long\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Wait too long\\r\\n </label>\\r\\n <label>\\r\\n <div>\\r\\n <input type=\\\"radio\\\" name=\\\"reason\\\" value=\\\"Other\\\" [(ngModel)]=\\\"reason\\\" />\\r\\n Other\\r\\n </div>\\r\\n </label>\\r\\n <label dhclTextInput *ngIf=\\\"reason === 'Other'\\\">\\r\\n <span class=\\\"optional-copy\\\">(optional)</span>\\r\\n <input type=\\\"text\\\" [(ngModel)]=\\\"reasonOther\\\" maxlength=\\\"85\\\" />\\r\\n <span class=\\\"disabledErrorMsgSpan\\\" *ngIf=\\\"isDisabled\\\">\\r\\n should be at most 83 character(s)\\r\\n </span>\\r\\n </label>\\r\\n </fieldset>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" [disabled]=\\\"isDisabled\\\" (click)=\\\"buttonHandler()\\\">Next</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper-content .appt-time{max-width:290px;text-align:center;margin:0 auto 25px}.guided-flow-step-wrapper-content fieldset{border:0;padding:0;min-inline-size:unset;margin-left:30px}@media (max-width: 767px){.guided-flow-step-wrapper-content fieldset{margin-left:0}}.guided-flow-step-wrapper-content fieldset legend{font-family:var(--dhcl-font-family);font-weight:700;margin-bottom:5px;color:var(--dhcl-color-gray-dark);font-size:16px;border-bottom:none}.guided-flow-step-wrapper-content fieldset label{font-family:var(--dhcl-font-family);display:block;margin:5px 0;color:var(--dhcl-color-gray-dark);font-size:.875rem;font-weight:400}.guided-flow-step-wrapper-content fieldset label .optional-copy{float:right;margin:0}.guided-flow-step-wrapper-content fieldset label div{font-size:14px}.guided-flow-step-wrapper-content fieldset input[type=radio]{width:20px;height:20px;margin-top:5px;vertical-align:bottom;float:unset!important;margin-right:5px}.guided-flow-step-wrapper-content fieldset .disabledErrorMsgSpan{color:#b00;margin-top:.25rem;display:block;font-size:.875rem;line-height:1.25rem}\\n\"] }]\n }], ctorParameters: () => [], propDecorators: { originalApptTime: [{\n type: Input\n }], providerName: [{\n type: Input\n }], state: [{\n type: Input\n }], reasonChange: [{\n type: Output\n }] } });\n\nclass RescheduleConfirmComponent {\n windowService;\n environmentService;\n selectedLocation;\n selectedAppointmentType;\n providerDetails;\n appointmentSlot;\n newPatient;\n captchaEnabled;\n state;\n confirm = new EventEmitter();\n formattedAppointmentTime = '';\n isCaptchaValid = false;\n siteKey;\n providerImageUrl;\n constructor(windowService, environmentService) {\n this.windowService = windowService;\n this.environmentService = environmentService;\n this.environmentService.getEnvironment().subscribe((env) => {\n this.siteKey = env.captchaSiteKey;\n });\n }\n ngOnInit() {\n this.formatAppointmentTime();\n this.providerImageUrl = getProviderImage(this.providerDetails.images);\n }\n ngAfterViewInit() {\n this.renderRecaptcha();\n }\n renderRecaptcha() {\n if (window['grecaptcha'] && document.querySelector('#dhgf-recaptcha-container')) {\n window['grecaptcha'].render('dhgf-recaptcha-container', {\n sitekey: this.siteKey,\n callback: e => {\n this.handleCaptchaResponse(e);\n }\n });\n }\n }\n formatAppointmentTime() {\n this.formattedAppointmentTime = getFormattedRescheduleTime(this.appointmentSlot.time, this.state);\n }\n handleCaptchaResponse(captchaResponse) {\n this.isCaptchaValid = captchaResponse != null;\n }\n get captchaCheckSucceeded() {\n return !this.captchaEnabled || this.isCaptchaValid;\n }\n buttonHandler() {\n this.confirm.emit(true);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleConfirmComponent, deps: [{ token: WindowService }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RescheduleConfirmComponent, selector: \"dhgf-reschedule-confirm\", inputs: { selectedLocation: \"selectedLocation\", selectedAppointmentType: \"selectedAppointmentType\", providerDetails: \"providerDetails\", appointmentSlot: \"appointmentSlot\", newPatient: \"newPatient\", captchaEnabled: \"captchaEnabled\", state: \"state\" }, outputs: { confirm: \"confirm\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n Confirm reschedule\\r\\n </h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"appointment-details-provider-info\\\">\\r\\n <img *ngIf=\\\"providerImageUrl\\\" [attr.src]=\\\"providerImageUrl\\\" [attr.alt]=\\\"providerDetails.displayFullName\\\" />\\r\\n <p>\\r\\n <strong>{{ providerDetails.displayFullName }}</strong>\\r\\n </p>\\r\\n <div>\\r\\n <p class=\\\"p2\\\">{{ providerDetails.specialties[0] }}</p>\\r\\n <p class=\\\"p2\\\">\\r\\n <a class=\\\"phone\\\" [attr.href]=\\\"'tel:' + selectedLocation.office.phones[0]\\\">{{ selectedLocation.office.phones[0] }}</a>\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"appointment-details-appointment-time\\\">\\r\\n <div class=\\\"appointment-details-appointment-time-time\\\">\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M11 0C4.92339 0 0 4.92339 0 11C0 17.0766 4.92339 22 11 22C17.0766 22 22 17.0766 22 11C22 4.92339 17.0766 0 11 0ZM10.9999 19.8709C6.09873 19.8709 2.12897 15.9011 2.12897 10.9999C2.12897 6.09873 6.09873 2.12897 10.9999 2.12897C15.9011 2.12897 19.8709 6.09873 19.8709 10.9999C19.8709 15.9011 15.9011 19.8709 10.9999 19.8709ZM9.97527 12.5037L13.741 15.2404C13.9805 15.4134 14.3132 15.3601 14.4862 15.1251L15.32 13.9763C15.493 13.7367 15.4442 13.4041 15.2047 13.2311L12.2418 11.0755V4.79038C12.2418 4.49763 12.0023 4.25812 11.7095 4.25812H10.2902C9.99745 4.25812 9.75793 4.49763 9.75793 4.79038V12.0734C9.75793 12.242 9.83777 12.4017 9.97527 12.5037Z\\\"\\r\\n fill=\\\"#C85200\\\"\\r\\n />\\r\\n </svg>\\r\\n <p>\\r\\n <strong>{{ formattedAppointmentTime }}</strong>\\r\\n </p>\\r\\n </div>\\r\\n <div *ngIf=\\\"!(selectedLocation.type === 0)\\\" class=\\\"appointment-details-appointment-time-address\\\">\\r\\n <svg width=\\\"18\\\" height=\\\"24\\\" viewBox=\\\"0 0 18 24\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M8.05463 23.5083C8.4761 24.1639 9.45951 24.1639 9.88098 23.5083C16.718 13.6741 17.9824 12.6439 17.9824 8.99122C17.9824 4.02732 13.9551 0 8.99122 0C3.98049 0 0 4.02732 0 8.99122C0 12.6439 1.21756 13.6741 8.05463 23.5083Z\\\"\\r\\n fill=\\\"#C85200\\\"\\r\\n />\\r\\n </svg>\\r\\n <div class=\\\"address-container\\\">\\r\\n <p>\\r\\n <strong>{{ appointmentSlot.office.name }}</strong>\\r\\n <br />\\r\\n {{ appointmentSlot.office.address }}, {{ appointmentSlot.office.city }}, {{ appointmentSlot.office.state }},\\r\\n {{ appointmentSlot.office.zip }}\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n <div *ngIf=\\\"selectedLocation.type === 0\\\" class=\\\"appointment-details-appointment-time-virtual-visit\\\">\\r\\n <p>\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" fill=\\\"#0061A7\\\" />\\r\\n <path\\r\\n d=\\\"M12.1598 7H6.01796C5.45574 7 5 7.44583 5 7.99583V14.0042C5 14.5542 5.45574 15 6.01796 15H12.1598C12.722 15 13.1778 14.5542 13.1778 14.0042V7.99583C13.1778 7.44583 12.722 7 12.1598 7ZM16.1933 7.78542L13.8593 9.36042V12.6396L16.1933 14.2125C16.6448 14.5167 17.2667 14.2062 17.2667 13.675V8.32292C17.2667 7.79375 16.6469 7.48125 16.1933 7.78542Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong>Virtual visit</strong>\\r\\n </p>\\r\\n\\r\\n <p></p>\\r\\n </div>\\r\\n </div>\\r\\n <div>\\r\\n <div class=\\\"appointment-details-appointment-type\\\">\\r\\n <span><strong>Appointment type</strong></span>\\r\\n <br />\\r\\n <span>{{ selectedAppointmentType.name }}</span>\\r\\n </div>\\r\\n <div *ngIf=\\\"selectedLocation.type === 0\\\" class=\\\"appointment-details-disclaimer\\\">\\r\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M8 0C3.58203 0 0 3.58332 0 8C0 12.4193 3.58203 16 8 16C12.418 16 16 12.4193 16 8C16 3.58332 12.418 0 8 0ZM8 3.54838C8.74824 3.54838 9.3548 4.15497 9.3548 4.90322C9.3548 5.65148 8.74824 6.25806 8 6.25806C7.25174 6.25806 6.64516 5.65148 6.64516 4.90322C6.64516 4.15497 7.25174 3.54838 8 3.54838ZM9.80648 11.7419C9.80648 11.9557 9.63312 12.129 9.41936 12.129H6.58065C6.36687 12.129 6.19355 11.9557 6.19355 11.7419V10.9678C6.19355 10.754 6.36687 10.5806 6.58065 10.5806H6.96774V8.51616H6.58065C6.36687 8.51616 6.19355 8.3428 6.19355 8.12904V7.35484C6.19355 7.14106 6.36687 6.96774 6.58065 6.96774H8.6452C8.85896 6.96774 9.03224 7.14106 9.03224 7.35484V10.5806H9.41936C9.63312 10.5806 9.80648 10.754 9.80648 10.9678V11.7419Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n <p>\\r\\n You will need access to a device with internet and a camera at the time of your visit.\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"captcha-container\\\" *ngIf=\\\"captchaEnabled && siteKey\\\">\\r\\n <div id=\\\"dhgf-recaptcha-container\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"buttonHandler()\\\" [disabled]=\\\"!captchaCheckSucceeded\\\">\\r\\n Confirm\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".appointment-details p{margin:0}.appointment-details-provider-info{display:inline-block;width:100%;margin:0 0 20px}.appointment-details-provider-info img{height:68px;border-radius:15px;float:left;margin-right:10px}.appointment-details-provider-info p{margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.appointment-details-appointment-time{color:var(--dhcl-color-gray-dark)}.appointment-details-appointment-time-time{position:relative;padding-left:32px}.appointment-details-appointment-time-time svg{left:0;position:absolute}.appointment-details-appointment-time-time p{margin:-10px 0;padding:0}.appointment-details-appointment-time-address{position:relative;padding-left:32px}.appointment-details-appointment-time-address svg{position:absolute;left:3px}.appointment-details-appointment-time-virtual-visit{margin:7px 0;position:relative;padding-left:32px}.appointment-details-appointment-time-virtual-visit svg{position:absolute;left:0}.appointment-details-appointment-type{color:var(--dhcl-color-gray-dark);margin:20px 0;line-height:25px}.appointment-details-disclaimer{margin:20px 0;position:relative;padding-left:26px}.appointment-details-disclaimer svg{position:absolute;left:3px;top:4px}.appointment-details-header{display:inline;margin-bottom:10px;padding-bottom:10px}.appointment-details-header p{display:none}.captcha-container{margin-bottom:15px}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleConfirmComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-reschedule-confirm', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n Confirm reschedule\\r\\n </h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <div class=\\\"appointment-details-provider-info\\\">\\r\\n <img *ngIf=\\\"providerImageUrl\\\" [attr.src]=\\\"providerImageUrl\\\" [attr.alt]=\\\"providerDetails.displayFullName\\\" />\\r\\n <p>\\r\\n <strong>{{ providerDetails.displayFullName }}</strong>\\r\\n </p>\\r\\n <div>\\r\\n <p class=\\\"p2\\\">{{ providerDetails.specialties[0] }}</p>\\r\\n <p class=\\\"p2\\\">\\r\\n <a class=\\\"phone\\\" [attr.href]=\\\"'tel:' + selectedLocation.office.phones[0]\\\">{{ selectedLocation.office.phones[0] }}</a>\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"appointment-details-appointment-time\\\">\\r\\n <div class=\\\"appointment-details-appointment-time-time\\\">\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M11 0C4.92339 0 0 4.92339 0 11C0 17.0766 4.92339 22 11 22C17.0766 22 22 17.0766 22 11C22 4.92339 17.0766 0 11 0ZM10.9999 19.8709C6.09873 19.8709 2.12897 15.9011 2.12897 10.9999C2.12897 6.09873 6.09873 2.12897 10.9999 2.12897C15.9011 2.12897 19.8709 6.09873 19.8709 10.9999C19.8709 15.9011 15.9011 19.8709 10.9999 19.8709ZM9.97527 12.5037L13.741 15.2404C13.9805 15.4134 14.3132 15.3601 14.4862 15.1251L15.32 13.9763C15.493 13.7367 15.4442 13.4041 15.2047 13.2311L12.2418 11.0755V4.79038C12.2418 4.49763 12.0023 4.25812 11.7095 4.25812H10.2902C9.99745 4.25812 9.75793 4.49763 9.75793 4.79038V12.0734C9.75793 12.242 9.83777 12.4017 9.97527 12.5037Z\\\"\\r\\n fill=\\\"#C85200\\\"\\r\\n />\\r\\n </svg>\\r\\n <p>\\r\\n <strong>{{ formattedAppointmentTime }}</strong>\\r\\n </p>\\r\\n </div>\\r\\n <div *ngIf=\\\"!(selectedLocation.type === 0)\\\" class=\\\"appointment-details-appointment-time-address\\\">\\r\\n <svg width=\\\"18\\\" height=\\\"24\\\" viewBox=\\\"0 0 18 24\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M8.05463 23.5083C8.4761 24.1639 9.45951 24.1639 9.88098 23.5083C16.718 13.6741 17.9824 12.6439 17.9824 8.99122C17.9824 4.02732 13.9551 0 8.99122 0C3.98049 0 0 4.02732 0 8.99122C0 12.6439 1.21756 13.6741 8.05463 23.5083Z\\\"\\r\\n fill=\\\"#C85200\\\"\\r\\n />\\r\\n </svg>\\r\\n <div class=\\\"address-container\\\">\\r\\n <p>\\r\\n <strong>{{ appointmentSlot.office.name }}</strong>\\r\\n <br />\\r\\n {{ appointmentSlot.office.address }}, {{ appointmentSlot.office.city }}, {{ appointmentSlot.office.state }},\\r\\n {{ appointmentSlot.office.zip }}\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n <div *ngIf=\\\"selectedLocation.type === 0\\\" class=\\\"appointment-details-appointment-time-virtual-visit\\\">\\r\\n <p>\\r\\n <svg width=\\\"22\\\" height=\\\"22\\\" viewBox=\\\"0 0 22 22\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <circle cx=\\\"11\\\" cy=\\\"11\\\" r=\\\"11\\\" fill=\\\"#0061A7\\\" />\\r\\n <path\\r\\n d=\\\"M12.1598 7H6.01796C5.45574 7 5 7.44583 5 7.99583V14.0042C5 14.5542 5.45574 15 6.01796 15H12.1598C12.722 15 13.1778 14.5542 13.1778 14.0042V7.99583C13.1778 7.44583 12.722 7 12.1598 7ZM16.1933 7.78542L13.8593 9.36042V12.6396L16.1933 14.2125C16.6448 14.5167 17.2667 14.2062 17.2667 13.675V8.32292C17.2667 7.79375 16.6469 7.48125 16.1933 7.78542Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong>Virtual visit</strong>\\r\\n </p>\\r\\n\\r\\n <p></p>\\r\\n </div>\\r\\n </div>\\r\\n <div>\\r\\n <div class=\\\"appointment-details-appointment-type\\\">\\r\\n <span><strong>Appointment type</strong></span>\\r\\n <br />\\r\\n <span>{{ selectedAppointmentType.name }}</span>\\r\\n </div>\\r\\n <div *ngIf=\\\"selectedLocation.type === 0\\\" class=\\\"appointment-details-disclaimer\\\">\\r\\n <svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M8 0C3.58203 0 0 3.58332 0 8C0 12.4193 3.58203 16 8 16C12.418 16 16 12.4193 16 8C16 3.58332 12.418 0 8 0ZM8 3.54838C8.74824 3.54838 9.3548 4.15497 9.3548 4.90322C9.3548 5.65148 8.74824 6.25806 8 6.25806C7.25174 6.25806 6.64516 5.65148 6.64516 4.90322C6.64516 4.15497 7.25174 3.54838 8 3.54838ZM9.80648 11.7419C9.80648 11.9557 9.63312 12.129 9.41936 12.129H6.58065C6.36687 12.129 6.19355 11.9557 6.19355 11.7419V10.9678C6.19355 10.754 6.36687 10.5806 6.58065 10.5806H6.96774V8.51616H6.58065C6.36687 8.51616 6.19355 8.3428 6.19355 8.12904V7.35484C6.19355 7.14106 6.36687 6.96774 6.58065 6.96774H8.6452C8.85896 6.96774 9.03224 7.14106 9.03224 7.35484V10.5806H9.41936C9.63312 10.5806 9.80648 10.754 9.80648 10.9678V11.7419Z\\\"\\r\\n fill=\\\"#4D525A\\\"\\r\\n />\\r\\n </svg>\\r\\n <p>\\r\\n You will need access to a device with internet and a camera at the time of your visit.\\r\\n </p>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"captcha-container\\\" *ngIf=\\\"captchaEnabled && siteKey\\\">\\r\\n <div id=\\\"dhgf-recaptcha-container\\\"></div>\\r\\n </div>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"buttonHandler()\\\" [disabled]=\\\"!captchaCheckSucceeded\\\">\\r\\n Confirm\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".appointment-details p{margin:0}.appointment-details-provider-info{display:inline-block;width:100%;margin:0 0 20px}.appointment-details-provider-info img{height:68px;border-radius:15px;float:left;margin-right:10px}.appointment-details-provider-info p{margin:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.appointment-details-appointment-time{color:var(--dhcl-color-gray-dark)}.appointment-details-appointment-time-time{position:relative;padding-left:32px}.appointment-details-appointment-time-time svg{left:0;position:absolute}.appointment-details-appointment-time-time p{margin:-10px 0;padding:0}.appointment-details-appointment-time-address{position:relative;padding-left:32px}.appointment-details-appointment-time-address svg{position:absolute;left:3px}.appointment-details-appointment-time-virtual-visit{margin:7px 0;position:relative;padding-left:32px}.appointment-details-appointment-time-virtual-visit svg{position:absolute;left:0}.appointment-details-appointment-type{color:var(--dhcl-color-gray-dark);margin:20px 0;line-height:25px}.appointment-details-disclaimer{margin:20px 0;position:relative;padding-left:26px}.appointment-details-disclaimer svg{position:absolute;left:3px;top:4px}.appointment-details-header{display:inline;margin-bottom:10px;padding-bottom:10px}.appointment-details-header p{display:none}.captcha-container{margin-bottom:15px}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }, { type: EnvironmentService }], propDecorators: { selectedLocation: [{\n type: Input\n }], selectedAppointmentType: [{\n type: Input\n }], providerDetails: [{\n type: Input\n }], appointmentSlot: [{\n type: Input\n }], newPatient: [{\n type: Input\n }], captchaEnabled: [{\n type: Input\n }], state: [{\n type: Input\n }], confirm: [{\n type: Output\n }] } });\n\nclass RescheduleErrorComponent {\n windowService;\n providerName;\n phoneNumber;\n constructor(windowService) {\n this.windowService = windowService;\n }\n ngOnInit() { }\n callBtnHandler() {\n this.windowService.locationHref('tel:' + this.phoneNumber);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleErrorComponent, deps: [{ token: WindowService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RescheduleErrorComponent, selector: \"dhgf-reschedule-error\", inputs: { providerName: \"providerName\", phoneNumber: \"phoneNumber\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <div class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n <p class=\\\"reschedule-error-header\\\">\\r\\n <svg class=\\\"screencheckmax\\\" width=\\\"30\\\" height=\\\"30\\\" viewBox=\\\"0 0 30 30\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30Z\\\"\\r\\n fill=\\\"#AA272F\\\"\\r\\n />\\r\\n <path d=\\\"M15 8.25V15.75\\\" stroke=\\\"white\\\" stroke-width=\\\"3\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path\\r\\n d=\\\"M15 22.5C15.8284 22.5 16.5 21.8284 16.5 21C16.5 20.1716 15.8284 19.5 15 19.5C14.1716 19.5 13.5 20.1716 13.5 21C13.5 21.8284 14.1716 22.5 15 22.5Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n Sorry, there was a problem\\r\\n </p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p class=\\\"p1regular\\\">\\r\\n An unexpected error has occurred and we are unable to reschedule your appointment.\\r\\n </p>\\r\\n\\r\\n <p class=\\\"p1regular\\\">\\r\\n Please call {{ providerName }}'s office directly at\\r\\n <span\\r\\n ><a class=\\\"phone\\\" href=\\\"tel:{{ phoneNumber }}\\\">{{ phoneNumber }}</a></span\\r\\n >\\r\\n to reschedule your appointment.\\r\\n </p>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button (click)=\\\"callBtnHandler()\\\">\\r\\n <svg viewBox=\\\"0 0 28 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M14 28C6.26785 28 0 21.7321 0 14C0 6.26785 6.26785 0 14 0C21.7321 0 28 6.26785 28 14C28 21.7321 21.7321 28 14 28Z\\\"\\r\\n fill=\\\"#0071C2\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M20.3271 20.4914L20.9833 17.6477C21.0544 17.3387 20.8931 17.0216 20.6032 16.8958L17.5408 15.5833C17.2728 15.4685 16.9584 15.545 16.7752 15.772L15.419 17.429C13.3217 16.4446 11.5772 14.7247 10.5737 12.5838L12.2307 11.2275C12.4577 11.0416 12.5343 10.7299 12.4194 10.4619L11.1069 7.3995C10.9784 7.10692 10.6612 6.9456 10.3523 7.01669L7.50857 7.67293C7.21327 7.74129 6.99999 8.00378 6.99999 8.31276C6.99999 15.3153 12.6737 21 19.6872 21C19.9935 21 20.2587 20.7895 20.3271 20.4914Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n Call the office\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{padding:20px 84px}@media (max-width: 419px){.guided-flow-step-wrapper{padding:20px}}.guided-flow-step-wrapper-header{margin:0;text-align:left}.guided-flow-step-wrapper-header p{font-family:var(--dhcl-font-family);font-size:26px;font-style:normal;font-weight:700;line-height:32px;letter-spacing:-.25px;text-align:left;margin:0}@media (max-width: 767px){.guided-flow-step-wrapper-header p{display:block;font-size:22px;line-height:28px;letter-spacing:-.1px}}.guided-flow-step-wrapper-header p svg{margin-right:10px;margin-bottom:-4px;transform:translateY(2px)}@media (max-width: 419px){.guided-flow-step-wrapper-content{margin:10px 0;padding-bottom:20px}}.guided-flow-step-wrapper-footer{text-align:left;position:relative;padding:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute;padding:0 20px}}.guided-flow-step-wrapper-footer button{font-size:16px;height:50px;line-height:24px;width:232px;text-align:left;font-family:var(--dhcl-font-family);border:2px solid var(--dhcl-color-secondary);font-style:normal;font-weight:700;letter-spacing:.1px;background:var(--dhcl-color-white);color:var(--dhcl-color-secondary);border-radius:45px;cursor:pointer}.guided-flow-step-wrapper-footer button:focus{outline:none}@media (min-width: 768px) and (max-width: 991px){.guided-flow-step-wrapper-footer button{width:250px}}@media (max-width: 767px){.guided-flow-step-wrapper-footer button{font-size:14px;line-height:22px;width:220px;height:50px}}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{width:100%}}@media (min-width: 992px){.guided-flow-step-wrapper-footer button{display:none}}.guided-flow-step-wrapper-footer button svg{width:25px;height:25px;margin-right:10px;fill:none;vertical-align:top;margin-left:10px}.guided-flow-step-wrapper-footer button svg path{stroke:var(--dhcl-color-secondary)}\\n\"] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleErrorComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-reschedule-error', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <div class=\\\"guided-flow-step-wrapper-header\\\">\\r\\n <p class=\\\"reschedule-error-header\\\">\\r\\n <svg class=\\\"screencheckmax\\\" width=\\\"30\\\" height=\\\"30\\\" viewBox=\\\"0 0 30 30\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30Z\\\"\\r\\n fill=\\\"#AA272F\\\"\\r\\n />\\r\\n <path d=\\\"M15 8.25V15.75\\\" stroke=\\\"white\\\" stroke-width=\\\"3\\\" stroke-linecap=\\\"round\\\" />\\r\\n <path\\r\\n d=\\\"M15 22.5C15.8284 22.5 16.5 21.8284 16.5 21C16.5 20.1716 15.8284 19.5 15 19.5C14.1716 19.5 13.5 20.1716 13.5 21C13.5 21.8284 14.1716 22.5 15 22.5Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n Sorry, there was a problem\\r\\n </p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p class=\\\"p1regular\\\">\\r\\n An unexpected error has occurred and we are unable to reschedule your appointment.\\r\\n </p>\\r\\n\\r\\n <p class=\\\"p1regular\\\">\\r\\n Please call {{ providerName }}'s office directly at\\r\\n <span\\r\\n ><a class=\\\"phone\\\" href=\\\"tel:{{ phoneNumber }}\\\">{{ phoneNumber }}</a></span\\r\\n >\\r\\n to reschedule your appointment.\\r\\n </p>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button (click)=\\\"callBtnHandler()\\\">\\r\\n <svg viewBox=\\\"0 0 28 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M14 28C6.26785 28 0 21.7321 0 14C0 6.26785 6.26785 0 14 0C21.7321 0 28 6.26785 28 14C28 21.7321 21.7321 28 14 28Z\\\"\\r\\n fill=\\\"#0071C2\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M20.3271 20.4914L20.9833 17.6477C21.0544 17.3387 20.8931 17.0216 20.6032 16.8958L17.5408 15.5833C17.2728 15.4685 16.9584 15.545 16.7752 15.772L15.419 17.429C13.3217 16.4446 11.5772 14.7247 10.5737 12.5838L12.2307 11.2275C12.4577 11.0416 12.5343 10.7299 12.4194 10.4619L11.1069 7.3995C10.9784 7.10692 10.6612 6.9456 10.3523 7.01669L7.50857 7.67293C7.21327 7.74129 6.99999 8.00378 6.99999 8.31276C6.99999 15.3153 12.6737 21 19.6872 21C19.9935 21 20.2587 20.7895 20.3271 20.4914Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n Call the office\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper{padding:20px 84px}@media (max-width: 419px){.guided-flow-step-wrapper{padding:20px}}.guided-flow-step-wrapper-header{margin:0;text-align:left}.guided-flow-step-wrapper-header p{font-family:var(--dhcl-font-family);font-size:26px;font-style:normal;font-weight:700;line-height:32px;letter-spacing:-.25px;text-align:left;margin:0}@media (max-width: 767px){.guided-flow-step-wrapper-header p{display:block;font-size:22px;line-height:28px;letter-spacing:-.1px}}.guided-flow-step-wrapper-header p svg{margin-right:10px;margin-bottom:-4px;transform:translateY(2px)}@media (max-width: 419px){.guided-flow-step-wrapper-content{margin:10px 0;padding-bottom:20px}}.guided-flow-step-wrapper-footer{text-align:left;position:relative;padding:0}@media (max-width: 419px){.guided-flow-step-wrapper-footer{position:absolute;padding:0 20px}}.guided-flow-step-wrapper-footer button{font-size:16px;height:50px;line-height:24px;width:232px;text-align:left;font-family:var(--dhcl-font-family);border:2px solid var(--dhcl-color-secondary);font-style:normal;font-weight:700;letter-spacing:.1px;background:var(--dhcl-color-white);color:var(--dhcl-color-secondary);border-radius:45px;cursor:pointer}.guided-flow-step-wrapper-footer button:focus{outline:none}@media (min-width: 768px) and (max-width: 991px){.guided-flow-step-wrapper-footer button{width:250px}}@media (max-width: 767px){.guided-flow-step-wrapper-footer button{font-size:14px;line-height:22px;width:220px;height:50px}}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{width:100%}}@media (min-width: 992px){.guided-flow-step-wrapper-footer button{display:none}}.guided-flow-step-wrapper-footer button svg{width:25px;height:25px;margin-right:10px;fill:none;vertical-align:top;margin-left:10px}.guided-flow-step-wrapper-footer button svg path{stroke:var(--dhcl-color-secondary)}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }], propDecorators: { providerName: [{\n type: Input\n }], phoneNumber: [{\n type: Input\n }] } });\n\nclass RescheduleSuccessComponent {\n windowService;\n environmentService;\n newVisitVirtual;\n newApptTime;\n providerName;\n state;\n done = new EventEmitter();\n appointmentsUrl;\n modalCloseBtn;\n events = [];\n constructor(windowService, environmentService) {\n this.windowService = windowService;\n this.environmentService = environmentService;\n this.environmentService.getEnvironment().subscribe((env) => {\n this.appointmentsUrl = env.appointmentsUrl;\n });\n }\n ngOnInit() { }\n ngAfterViewInit() {\n const modalCloseBtn = document.querySelector('.guided-flow-modal .close-btn');\n if (modalCloseBtn) {\n this.modalCloseBtn = modalCloseBtn;\n this.closeButtonInitHandler();\n }\n }\n doneHandler() {\n this.done.emit(true);\n }\n get formattedOriginalApptTime() {\n return getFormattedRescheduleTime(this.newApptTime, this.state);\n }\n closeButtonInitHandler() {\n if (this.modalCloseBtn) {\n this.modalCloseBtn.addEventListener('click', event => {\n event.preventDefault();\n this.windowService.refresh();\n });\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleSuccessComponent, deps: [{ token: WindowService }, { token: EnvironmentService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: RescheduleSuccessComponent, selector: \"dhgf-reschedule-success\", inputs: { newVisitVirtual: \"newVisitVirtual\", newApptTime: \"newApptTime\", providerName: \"providerName\", state: \"state\" }, outputs: { done: \"done\" }, ngImport: i0, template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">Your {{ newVisitVirtual ? 'virtual visit' : 'appointment' }} has been rescheduled!</h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p class=\\\"appt-time\\\">\\r\\n <strong>{{ formattedOriginalApptTime }}</strong> with {{ providerName }}\\r\\n </p>\\r\\n <p>\\r\\n You can view your appointment details, reschedule, or cancel in <a [attr.href]=\\\"appointmentsUrl\\\"><strong>My Appointments</strong></a>\\r\\n </p>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"doneHandler()\\\">Done</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper-content p{margin:0 auto;width:400px;max-width:100%;text-align:center}.guided-flow-step-wrapper-content .appt-time{width:290px;text-align:center;margin:0 auto 25px}\\n\"], dependencies: [{ kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: RescheduleSuccessComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-reschedule-success', template: \"<div class=\\\"guided-flow-step-wrapper\\\">\\r\\n <h3 class=\\\"guided-flow-step-wrapper-header\\\">Your {{ newVisitVirtual ? 'virtual visit' : 'appointment' }} has been rescheduled!</h3>\\r\\n <div class=\\\"guided-flow-step-wrapper-content\\\">\\r\\n <p class=\\\"appt-time\\\">\\r\\n <strong>{{ formattedOriginalApptTime }}</strong> with {{ providerName }}\\r\\n </p>\\r\\n <p>\\r\\n You can view your appointment details, reschedule, or cancel in <a [attr.href]=\\\"appointmentsUrl\\\"><strong>My Appointments</strong></a>\\r\\n </p>\\r\\n </div>\\r\\n <div class=\\\"guided-flow-step-wrapper-footer\\\">\\r\\n <button class=\\\"next-btn\\\" dhclButton [buttonType]=\\\"'primary'\\\" (click)=\\\"doneHandler()\\\">Done</button>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".guided-flow-step-wrapper-content p{margin:0 auto;width:400px;max-width:100%;text-align:center}.guided-flow-step-wrapper-content .appt-time{width:290px;text-align:center;margin:0 auto 25px}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }, { type: EnvironmentService }], propDecorators: { newVisitVirtual: [{\n type: Input\n }], newApptTime: [{\n type: Input\n }], providerName: [{\n type: Input\n }], state: [{\n type: Input\n }], done: [{\n type: Output\n }] } });\n\nvar GuidedRescheduleScreen;\n(function (GuidedRescheduleScreen) {\n GuidedRescheduleScreen[\"SUCCESS\"] = \"success\";\n GuidedRescheduleScreen[\"REASON\"] = \"reason\";\n GuidedRescheduleScreen[\"ERROR\"] = \"error\";\n GuidedRescheduleScreen[\"CONFIRMATION\"] = \"confirmation\";\n GuidedRescheduleScreen[\"CALL_TO_SCHEDULE\"] = \"call_to_schedule\";\n GuidedRescheduleScreen[\"SELECT_TIME\"] = \"select_time\";\n})(GuidedRescheduleScreen || (GuidedRescheduleScreen = {}));\nclass GuidedRescheduleFlowComponent {\n windowService;\n rescheduleService;\n environmentService;\n cjaTagService;\n provider;\n rescheduleData;\n refreshAfterReschedule = true;\n apimSubscriptionKey;\n clientId;\n clientSecret;\n captchaSiteKey;\n tenantCode = 'dignity-health';\n captchaEnabled = false;\n market;\n useLegacyAPI;\n rescheduleSuccess = new EventEmitter();\n showSpinner = new EventEmitter();\n rescheduleReason;\n locations;\n newPatient = true;\n selectedAppointmentType;\n selectedLocation;\n appointmentSchedule;\n selectedAppointmentTime;\n schedule;\n providerSchedule;\n visitsWithOnlineScheduling = [];\n visitsWithNoOnlineScheduling = [];\n appointmentTypeList = [];\n appointmentVisit;\n appointmentSlot;\n currentStep = GuidedRescheduleScreen.REASON;\n constructor(windowService, rescheduleService, environmentService, cjaTagService) {\n this.windowService = windowService;\n this.rescheduleService = rescheduleService;\n this.environmentService = environmentService;\n this.cjaTagService = cjaTagService;\n }\n ngOnInit() {\n this.resolveOfficeId();\n this.onProviderChanged();\n this.cjaTagService.link('guided booking start', {\n visitMetadata: {\n isBookAgain: false,\n isReschedule: true\n },\n facility: {},\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, true);\n }\n ngAfterViewInit() {\n this.loadCaptchaScript();\n }\n ngOnChanges(change) {\n if (change.provider && !change.provider.firstChange) {\n this.currentStep = GuidedRescheduleScreen.REASON;\n this.resolveOfficeId();\n this.onProviderChanged();\n }\n }\n loadCaptchaScript() {\n if (!window['grecaptcha']) {\n const script = document.createElement('script');\n script.src = 'https://www.google.com/recaptcha/api.js';\n script.setAttribute('async', 'true');\n script.setAttribute('defer', 'true');\n document.body.appendChild(script);\n }\n }\n resolveOfficeId() {\n if (!this.rescheduleData.officeId && (this.rescheduleData.facilityAddress || this.rescheduleData.facilityPhoneNumber)) {\n this.provider.offices.forEach((off) => {\n off.addresses.forEach((a) => {\n if ((this.rescheduleData.facilityAddress &&\n a.address.replace(/[^\\w\\s]/g, '').toLowerCase() ===\n this.rescheduleData.facilityAddress.replace(/[^\\w\\s]/g, '').toLowerCase()) ||\n a.phones[0]?.replace(/[^\\w\\s]/g, '').replace(' ', '') ===\n this.rescheduleData.facilityPhoneNumber?.replace(/[^\\w\\s]/g, '').replace(' ', '')) {\n this.rescheduleData.officeId = a.id;\n }\n });\n });\n }\n }\n onProviderChanged() {\n this.environmentService.setRescheduleSecrets(this.apimSubscriptionKey, this.clientId, this.clientSecret, this.captchaSiteKey);\n this.checkRescheduleSlots();\n if (this.provider.isBookOnline && this.appointmentSchedule && this.appointmentSchedule.appointments.length > 0) {\n this.currentStep = GuidedRescheduleScreen.REASON;\n }\n else {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n this.failedReBookHandler();\n }\n }\n backBtnHandler() {\n if (this.currentStep === GuidedRescheduleScreen.SELECT_TIME) {\n this.currentStep = GuidedRescheduleScreen.REASON;\n }\n else if (this.currentStep === GuidedRescheduleScreen.CONFIRMATION) {\n this.currentStep = GuidedRescheduleScreen.SELECT_TIME;\n }\n }\n /*Step 1*/\n establishPatientHandler(patientStatus) {\n this.newPatient = patientStatus.newPatient;\n this.getAvailableLocations();\n if ((this.newPatient && this.provider.acceptsNewPatients && this.provider.isBookOnline && this.appointmentsAvailable) ||\n (!this.newPatient && this.appointmentsAvailable && this.provider.isBookOnline)) {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n }\n else if (!this.provider.acceptsNewPatients && this.newPatient) {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n this.failedReBookHandler();\n }\n else {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n this.failedReBookHandler();\n }\n }\n failedReBookHandler() {\n this.cjaTagService.link('unable to schedule appointment', {\n visitMetadata: {\n isBookAgain: false,\n isReschedule: true\n },\n facility: {},\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, true);\n }\n /*Step 1*/\n getAvailableLocations() {\n this.locations = getLocations(this.provider, !this.newPatient);\n this.visitsWithOnlineScheduling = this.locations.filter((a) => a.office.supportsOnlineBooking && a.office.appointments?.length > 0);\n this.visitsWithNoOnlineScheduling = this.locations.filter((a) => this.visitsWithOnlineScheduling.indexOf(a) < 0);\n }\n /*Step 3*/\n getAppointmentTypes() {\n this.appointmentTypeList = this.selectedLocation.office.appointments;\n }\n appointmentTypeSelectHandler(appt) {\n this.selectedAppointmentType = appt;\n this.getAppointmentSchedule();\n this.currentStep = GuidedRescheduleScreen.SELECT_TIME;\n }\n /*Step 4*/\n getAppointmentSchedule() {\n this.appointmentSchedule = getLocationSchedule(this.provider, this.selectedLocation, this.selectedAppointmentType, null, this.market, this.useLegacyAPI);\n }\n get progress() {\n let progressVal = 0;\n if (this.currentStep === GuidedRescheduleScreen.SUCCESS) {\n progressVal = 100;\n }\n else if (this.currentStep === GuidedRescheduleScreen.CONFIRMATION) {\n progressVal = 75;\n }\n else if (this.currentStep === GuidedRescheduleScreen.SELECT_TIME) {\n progressVal = 50;\n }\n else if (this.currentStep === GuidedRescheduleScreen.REASON) {\n progressVal = 25;\n }\n return progressVal;\n }\n locationSelectedHandler(selectedLocation) {\n this.selectedLocation = selectedLocation;\n this.getAppointmentTypes();\n if (this.selectedLocation.office.appointments.length > 1) {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n }\n else {\n this.selectedAppointmentType = this.selectedLocation.office.appointments[0];\n this.appointmentTypeSelectHandler(this.selectedAppointmentType);\n this.currentStep = GuidedRescheduleScreen.SELECT_TIME;\n }\n }\n appointmentSelectionHandler(appointmentTime) {\n let originalAppttimeZone = this.rescheduleData.originalApptTime.split('T')[1];\n let timeZoneIndex = originalAppttimeZone.indexOf('+') > -1 ? originalAppttimeZone.indexOf('+') : originalAppttimeZone.indexOf('-');\n let timeZone = originalAppttimeZone.substring(timeZoneIndex, originalAppttimeZone.length);\n let scheduleTimeZone = appointmentTime.time.split('T')[1];\n let scheduleTimeZoneIndex = scheduleTimeZone.indexOf('+') > -1 ? scheduleTimeZone.indexOf('+') : scheduleTimeZone.indexOf('-');\n let scheduleTime = appointmentTime.time.split('T')[0] + 'T' + scheduleTimeZone.substring(0, scheduleTimeZoneIndex) + timeZone;\n console.log('Selected Time : ' + appointmentTime.time + ' ; Selected Date : ' + appointmentTime.date);\n console.log('Original time : ' + this.rescheduleData.originalApptTime);\n console.log('Selected time with TimeZone: ' + scheduleTime);\n this.selectedAppointmentTime = scheduleTime;\n this.currentStep = GuidedRescheduleScreen.CONFIRMATION;\n this.appointmentSlot = appointmentTime;\n this.cjaTagService.link('select appointment time', {\n visitMetadata: {\n isBookAgain: false,\n isReschedule: true,\n appointmentTypeLabel: this.selectedAppointmentType.name\n },\n facility: {\n facilityName: this.selectedLocation.office.name || this.selectedLocation.office.address\n },\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, true);\n }\n rescheduleReasonHandler(reason) {\n this.rescheduleReason = reason;\n if (this.appointmentSchedule && this.appointmentSchedule.appointments.length > 0) {\n this.currentStep = GuidedRescheduleScreen.SELECT_TIME;\n }\n else {\n this.currentStep = GuidedRescheduleScreen.ERROR;\n }\n }\n get appointmentsAvailable() {\n return (this.visitsWithOnlineScheduling.length > 0 ||\n this.visitsWithNoOnlineScheduling.filter((a) => a.office.supportsOnlineBooking && a.office.appointments?.length > 0).length > 0);\n }\n rescheduleDoneHandler(success) {\n if (this.refreshAfterReschedule) {\n this.windowService.refresh();\n }\n else {\n this.rescheduleSuccess.emit(success);\n }\n }\n rescheduleConfirmHandler() {\n this.showSpinner.emit(true);\n const system = this.rescheduleData.systemCode || (this.selectedLocation.office.state.toLowerCase() === 'ca' ? 'geSac' : 'gePhx');\n const body = {\n appointmentType: this.selectedAppointmentType.remoteId,\n appointmentDateTime: this.selectedAppointmentTime,\n appointmentId: this.rescheduleData.gecbAppointmentId,\n system,\n reason: this.rescheduleReason\n };\n this.rescheduleService.rescheduleAppointment(body, this.rescheduleData.oktaAuthToken).subscribe((data) => {\n this.currentStep = GuidedRescheduleScreen.SUCCESS;\n this.showSpinner.emit(false);\n this.cjaTagService.link('appointment booked', {\n visitMetadata: {\n isBookAgain: false,\n isReschedule: true,\n appointmentTypeLabel: this.selectedAppointmentType.name\n },\n facility: {\n facilityName: this.selectedLocation.office.name || this.selectedLocation.office.address\n },\n provider: {\n npi: this.provider.npi,\n name: this.provider.displayFullName\n }\n }, true);\n }, (error) => {\n this.currentStep = GuidedRescheduleScreen.ERROR;\n this.showSpinner.emit(false);\n this.failedReBookHandler();\n });\n }\n checkRescheduleSlots() {\n let remoteId = '';\n this.provider.onlineBookingAvailability.forEach((onlineBooking) => {\n onlineBooking.appointmentTypes.forEach((appt) => {\n if (appt.remoteId === this.rescheduleData.appointmentTypeId || appt.id === this.rescheduleData.appointmentTypeId) {\n remoteId = appt.remoteId;\n }\n });\n });\n const patientType = identifyPatientTypeByAppointment(remoteId, this.provider.onlineBookingAvailability);\n this.establishPatientHandler({ newPatient: !patientType.existingPatient });\n this.selectedLocation = this.locations.find((location) => {\n return location.office.id === this.rescheduleData.officeId && location.type === patientType.visitType;\n });\n if (!this.selectedLocation) {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n }\n else {\n this.locationSelectedHandler(this.selectedLocation);\n this.selectedAppointmentType = this.appointmentTypeList.find((apptType) => {\n return apptType.remoteId === this.rescheduleData.appointmentTypeId || apptType.id === this.rescheduleData.appointmentTypeId;\n });\n if (!this.selectedAppointmentType) {\n this.currentStep = GuidedRescheduleScreen.CALL_TO_SCHEDULE;\n }\n else {\n this.getAppointmentSchedule();\n }\n }\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedRescheduleFlowComponent, deps: [{ token: WindowService }, { token: RescheduleService }, { token: EnvironmentService }, { token: CjaTagService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: GuidedRescheduleFlowComponent, selector: \"dhgf-guided-reschedule-flow\", inputs: { provider: \"provider\", rescheduleData: \"rescheduleData\", refreshAfterReschedule: \"refreshAfterReschedule\", apimSubscriptionKey: \"apimSubscriptionKey\", clientId: \"clientId\", clientSecret: \"clientSecret\", captchaSiteKey: \"captchaSiteKey\", tenantCode: \"tenantCode\", captchaEnabled: \"captchaEnabled\", market: \"market\", useLegacyAPI: \"useLegacyAPI\" }, outputs: { rescheduleSuccess: \"rescheduleSuccess\", showSpinner: \"showSpinner\" }, usesOnChanges: true, ngImport: i0, template: \"<div\\r\\n class=\\\"guided-flow-wrapper\\\"\\r\\n *ngIf=\\\"provider\\\"\\r\\n [class.has-error]=\\\"currentStep === 'error' || currentStep === 'success' || currentStep === 'call_to_schedule'\\\"\\r\\n>\\r\\n <dhcl-progress-bar\\r\\n [progress]=\\\"progress\\\"\\r\\n *ngIf=\\\"currentStep === 'reason' || currentStep === 'confirmation' || currentStep === 'select_time' || currentStep === 'success'\\\"\\r\\n ></dhcl-progress-bar>\\r\\n <div class=\\\"back-button-container\\\">\\r\\n <button class=\\\"dhgf-back-btn\\\" *ngIf=\\\"currentStep === 'confirmation' || currentStep === 'select_time'\\\" (click)=\\\"backBtnHandler()\\\">\\r\\n <svg width=\\\"8\\\" height=\\\"12\\\" viewBox=\\\"0 0 8 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n Back\\r\\n </button>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"steps-wrapper\\\">\\r\\n <dhgf-reschedule-reason\\r\\n *ngIf=\\\"currentStep === 'reason'\\\"\\r\\n [originalApptTime]=\\\"rescheduleData.originalApptTime\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n (reasonChange)=\\\"rescheduleReasonHandler($event)\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n >\\r\\n </dhgf-reschedule-reason>\\r\\n <dhgf-step4\\r\\n *ngIf=\\\"currentStep === 'select_time'\\\"\\r\\n [isReschedule]=\\\"true\\\"\\r\\n [selectedLocation]=\\\"selectedLocation\\\"\\r\\n [selectedAppointmentType]=\\\"selectedAppointmentType\\\"\\r\\n [appointmentSchedule]=\\\"appointmentSchedule\\\"\\r\\n (appointmentSelected)=\\\"appointmentSelectionHandler($event)\\\"\\r\\n ></dhgf-step4>\\r\\n <dhgf-reschedule-confirm\\r\\n *ngIf=\\\"currentStep === 'confirmation'\\\"\\r\\n [selectedAppointmentType]=\\\"selectedAppointmentType\\\"\\r\\n [selectedLocation]=\\\"selectedLocation\\\"\\r\\n [providerDetails]=\\\"provider\\\"\\r\\n [appointmentSlot]=\\\"appointmentSlot\\\"\\r\\n [newPatient]=\\\"newPatient\\\"\\r\\n [captchaEnabled]=\\\"captchaEnabled\\\"\\r\\n (confirm)=\\\"rescheduleConfirmHandler()\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n ></dhgf-reschedule-confirm>\\r\\n <dhgf-reschedule-success\\r\\n *ngIf=\\\"currentStep === 'success'\\\"\\r\\n [newVisitVirtual]=\\\"selectedLocation && selectedLocation.type === 0\\\"\\r\\n [newApptTime]=\\\"selectedAppointmentTime\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n (done)=\\\"rescheduleDoneHandler(true)\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n ></dhgf-reschedule-success>\\r\\n <dhgf-reschedule-error\\r\\n *ngIf=\\\"currentStep === 'error'\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [phoneNumber]=\\\"provider.offices[0].addresses[0].phones[0]\\\"\\r\\n ></dhgf-reschedule-error>\\r\\n </div>\\r\\n <dhgf-call-to-schedule\\r\\n *ngIf=\\\"currentStep === 'call_to_schedule'\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [phoneNumber]=\\\"provider.offices[0].addresses[0].phones[0]\\\"\\r\\n [isRescheduling]=\\\"true\\\"\\r\\n [originalApptTime]=\\\"rescheduleData.originalApptTime\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n >\\r\\n </dhgf-call-to-schedule>\\r\\n</div>\\r\\n\", styles: [\"p{font-style:normal;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}a{color:var(--dhcl-color-secondary);text-decoration:none;font-family:var(--dhcl-font-family);font-weight:700;transition:var(--dhcl-default-transition)}a:hover,a:focus{color:var(--dhcl-color-secondary-dark)}.p1bold{font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.card{background:var(--dhcl-color-white);border:2px solid transparent;transition:var(--dhcl-default-transition);cursor:pointer;width:400px;margin:20px auto;max-width:100%}.card .card-title svg{margin-right:10px}.card svg{margin-right:5px;vertical-align:middle}.card .card-row{padding-top:10px;margin:0}.card:hover,.card.is-selected{border:2px solid var(--dhcl-color-secondary)}.card.is-not-selectable{box-shadow:none;border-radius:0;padding:0;cursor:initial}.card.is-not-selectable:hover{border:2px solid transparent}.card.is-selectable{box-shadow:0 2px 8px #4d525a4d;border-radius:4px;padding:24px 20px}.card .phone-link{color:var(--dhcl-color-secondary-dark);text-decoration:none}.card .phone-link:visited{color:var(--dhcl-color-secondary-dark)}.card .phone-link:hover{color:var(--dhcl-color-secondary-darkest);text-decoration:underline;text-decoration-color:var(--dhcl-color-secondary-darkest)}@media (min-width: 320px) and (max-width: 480px){.card.is-selectable{padding:15px 20px}}.dhcl-modal-content.guided-flow-modal{padding:0!important;overflow:hidden}.dhcl-modal-content.guided-flow-modal .close-btn{margin:10px}.guided-flow-step-wrapper{box-sizing:border-box;padding:20px 20px 100px}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark);text-align:center;width:400px;margin:-19px auto 20px;max-width:100%}.guided-flow-step-wrapper-content{max-height:850px;overflow:none;padding:0}@media (max-height: 970px){.guided-flow-step-wrapper-content{max-height:950px}}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 215px);overflow-y:auto;overflow-x:hidden}@supports (-webkit-touch-callout: none){.guided-flow-step-wrapper-content{max-height:calc(100vh - 310px)}}}.guided-flow-step-wrapper-content a{text-decoration:none}.guided-flow-step-wrapper-content p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:20px 0}.guided-flow-step-wrapper .step-container{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.guided-flow-step-wrapper-footer{text-align:center;position:absolute;width:100%;padding:0 20px;background:var(--dhcl-color-white);box-sizing:border-box;bottom:0;left:0}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button.next-btn{float:right;margin:10px 0 20px}.guided-flow-step-wrapper-footer button.cancel-btn{width:190px;height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0 20px;width:100%}.guided-flow-step-wrapper-footer button.next-btn{float:none}.guided-flow-step-wrapper-footer button.cancel-btn{width:100%}}.guided-flow-step-wrapper div{box-sizing:border-box}@media (max-width: 420px){.guided-flow-modal{height:auto;min-height:100vh}@supports (-webkit-touch-callout: none){.guided-flow-modal{min-height:-webkit-fill-available}}}.guided-flow-modal-portal{padding:0!important;overflow:hidden}@media (max-width: 419px){.guided-flow-modal-portal{height:auto;padding:0!important;overflow:hidden;min-height:700px!important}.guided-flow-modal-portal .close-btn{margin:10px}}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{margin-bottom:10px}.dhcl-datepicker-wrapper .dhcl-datepicker{overflow:hidden!important}.dhcl-datepicker-wrapper .dhcl-datepicker .datepicker-dialog{top:5px!important;position:relative!important}.inperson-visit-card p{white-space:normal!important}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 115px)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container{margin-top:0!important}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container span.week-day{margin-top:1%!important}.date-time-picker button.dhcl-timepicker-nav img{max-width:none!important}\\n\", \".guided-flow-wrapper{--dhcl-font-family: \\\"Trade Gothic Next LT Pro\\\", Helvetica, Arial, sans-serif;font-family:var(--dhcl-font-family);box-sizing:border-box;padding:0;margin:0 auto;max-width:100%;min-height:500px}.guided-flow-wrapper.has-error{min-height:auto;padding-bottom:40px;height:auto}.guided-flow-wrapper button{font-family:var(--dhcl-font-family)}.guided-flow-wrapper .back-button-container{height:40px}.guided-flow-wrapper .back-button-container .dhgf-back-btn{border:none;background:none;color:var(--dhcl-color-secondary);font-size:14px;font-weight:700;cursor:pointer;margin:10px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg{transform:translateY(1px);margin-right:3px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg path{stroke:var(--dhcl-color-secondary)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2.ProgressBarComponent, selector: \"dhcl-progress-bar\", inputs: [\"fill\", \"progress\", \"valueText\"] }, { kind: \"component\", type: CallToScheduleComponent, selector: \"dhgf-call-to-schedule\", inputs: [\"providerName\", \"phoneNumber\", \"isRescheduling\", \"originalApptTime\", \"state\"] }, { kind: \"component\", type: Step4Component, selector: \"dhgf-step4\", inputs: [\"isLocationAppt\", \"noTimesLabel\", \"isReschedule\", \"selectedLocation\", \"selectedAppointmentType\", \"appointmentSchedule\"], outputs: [\"appointmentSelected\"] }, { kind: \"component\", type: RescheduleReasonComponent, selector: \"dhgf-reschedule-reason\", inputs: [\"originalApptTime\", \"providerName\", \"state\"], outputs: [\"reasonChange\"] }, { kind: \"component\", type: RescheduleConfirmComponent, selector: \"dhgf-reschedule-confirm\", inputs: [\"selectedLocation\", \"selectedAppointmentType\", \"providerDetails\", \"appointmentSlot\", \"newPatient\", \"captchaEnabled\", \"state\"], outputs: [\"confirm\"] }, { kind: \"component\", type: RescheduleErrorComponent, selector: \"dhgf-reschedule-error\", inputs: [\"providerName\", \"phoneNumber\"] }, { kind: \"component\", type: RescheduleSuccessComponent, selector: \"dhgf-reschedule-success\", inputs: [\"newVisitVirtual\", \"newApptTime\", \"providerName\", \"state\"], outputs: [\"done\"] }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedRescheduleFlowComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-guided-reschedule-flow', encapsulation: ViewEncapsulation.None, template: \"<div\\r\\n class=\\\"guided-flow-wrapper\\\"\\r\\n *ngIf=\\\"provider\\\"\\r\\n [class.has-error]=\\\"currentStep === 'error' || currentStep === 'success' || currentStep === 'call_to_schedule'\\\"\\r\\n>\\r\\n <dhcl-progress-bar\\r\\n [progress]=\\\"progress\\\"\\r\\n *ngIf=\\\"currentStep === 'reason' || currentStep === 'confirmation' || currentStep === 'select_time' || currentStep === 'success'\\\"\\r\\n ></dhcl-progress-bar>\\r\\n <div class=\\\"back-button-container\\\">\\r\\n <button class=\\\"dhgf-back-btn\\\" *ngIf=\\\"currentStep === 'confirmation' || currentStep === 'select_time'\\\" (click)=\\\"backBtnHandler()\\\">\\r\\n <svg width=\\\"8\\\" height=\\\"12\\\" viewBox=\\\"0 0 8 12\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path d=\\\"M7 1L2 6L7 10.9996\\\" stroke=\\\"#0071C2\\\" stroke-width=\\\"2\\\" stroke-linecap=\\\"round\\\" />\\r\\n </svg>\\r\\n Back\\r\\n </button>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"steps-wrapper\\\">\\r\\n <dhgf-reschedule-reason\\r\\n *ngIf=\\\"currentStep === 'reason'\\\"\\r\\n [originalApptTime]=\\\"rescheduleData.originalApptTime\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n (reasonChange)=\\\"rescheduleReasonHandler($event)\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n >\\r\\n </dhgf-reschedule-reason>\\r\\n <dhgf-step4\\r\\n *ngIf=\\\"currentStep === 'select_time'\\\"\\r\\n [isReschedule]=\\\"true\\\"\\r\\n [selectedLocation]=\\\"selectedLocation\\\"\\r\\n [selectedAppointmentType]=\\\"selectedAppointmentType\\\"\\r\\n [appointmentSchedule]=\\\"appointmentSchedule\\\"\\r\\n (appointmentSelected)=\\\"appointmentSelectionHandler($event)\\\"\\r\\n ></dhgf-step4>\\r\\n <dhgf-reschedule-confirm\\r\\n *ngIf=\\\"currentStep === 'confirmation'\\\"\\r\\n [selectedAppointmentType]=\\\"selectedAppointmentType\\\"\\r\\n [selectedLocation]=\\\"selectedLocation\\\"\\r\\n [providerDetails]=\\\"provider\\\"\\r\\n [appointmentSlot]=\\\"appointmentSlot\\\"\\r\\n [newPatient]=\\\"newPatient\\\"\\r\\n [captchaEnabled]=\\\"captchaEnabled\\\"\\r\\n (confirm)=\\\"rescheduleConfirmHandler()\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n ></dhgf-reschedule-confirm>\\r\\n <dhgf-reschedule-success\\r\\n *ngIf=\\\"currentStep === 'success'\\\"\\r\\n [newVisitVirtual]=\\\"selectedLocation && selectedLocation.type === 0\\\"\\r\\n [newApptTime]=\\\"selectedAppointmentTime\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n (done)=\\\"rescheduleDoneHandler(true)\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n ></dhgf-reschedule-success>\\r\\n <dhgf-reschedule-error\\r\\n *ngIf=\\\"currentStep === 'error'\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [phoneNumber]=\\\"provider.offices[0].addresses[0].phones[0]\\\"\\r\\n ></dhgf-reschedule-error>\\r\\n </div>\\r\\n <dhgf-call-to-schedule\\r\\n *ngIf=\\\"currentStep === 'call_to_schedule'\\\"\\r\\n [providerName]=\\\"provider.displayFullName\\\"\\r\\n [phoneNumber]=\\\"provider.offices[0].addresses[0].phones[0]\\\"\\r\\n [isRescheduling]=\\\"true\\\"\\r\\n [originalApptTime]=\\\"rescheduleData.originalApptTime\\\"\\r\\n [state]=\\\"rescheduleData.state\\\"\\r\\n >\\r\\n </dhgf-call-to-schedule>\\r\\n</div>\\r\\n\", styles: [\"p{font-style:normal;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}a{color:var(--dhcl-color-secondary);text-decoration:none;font-family:var(--dhcl-font-family);font-weight:700;transition:var(--dhcl-default-transition)}a:hover,a:focus{color:var(--dhcl-color-secondary-dark)}.p1bold{font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.card{background:var(--dhcl-color-white);border:2px solid transparent;transition:var(--dhcl-default-transition);cursor:pointer;width:400px;margin:20px auto;max-width:100%}.card .card-title svg{margin-right:10px}.card svg{margin-right:5px;vertical-align:middle}.card .card-row{padding-top:10px;margin:0}.card:hover,.card.is-selected{border:2px solid var(--dhcl-color-secondary)}.card.is-not-selectable{box-shadow:none;border-radius:0;padding:0;cursor:initial}.card.is-not-selectable:hover{border:2px solid transparent}.card.is-selectable{box-shadow:0 2px 8px #4d525a4d;border-radius:4px;padding:24px 20px}.card .phone-link{color:var(--dhcl-color-secondary-dark);text-decoration:none}.card .phone-link:visited{color:var(--dhcl-color-secondary-dark)}.card .phone-link:hover{color:var(--dhcl-color-secondary-darkest);text-decoration:underline;text-decoration-color:var(--dhcl-color-secondary-darkest)}@media (min-width: 320px) and (max-width: 480px){.card.is-selectable{padding:15px 20px}}.dhcl-modal-content.guided-flow-modal{padding:0!important;overflow:hidden}.dhcl-modal-content.guided-flow-modal .close-btn{margin:10px}.guided-flow-step-wrapper{box-sizing:border-box;padding:20px 20px 100px}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark);text-align:center;width:400px;margin:-19px auto 20px;max-width:100%}.guided-flow-step-wrapper-content{max-height:850px;overflow:none;padding:0}@media (max-height: 970px){.guided-flow-step-wrapper-content{max-height:950px}}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 215px);overflow-y:auto;overflow-x:hidden}@supports (-webkit-touch-callout: none){.guided-flow-step-wrapper-content{max-height:calc(100vh - 310px)}}}.guided-flow-step-wrapper-content a{text-decoration:none}.guided-flow-step-wrapper-content p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:20px 0}.guided-flow-step-wrapper .step-container{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.guided-flow-step-wrapper-footer{text-align:center;position:absolute;width:100%;padding:0 20px;background:var(--dhcl-color-white);box-sizing:border-box;bottom:0;left:0}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button.next-btn{float:right;margin:10px 0 20px}.guided-flow-step-wrapper-footer button.cancel-btn{width:190px;height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0 20px;width:100%}.guided-flow-step-wrapper-footer button.next-btn{float:none}.guided-flow-step-wrapper-footer button.cancel-btn{width:100%}}.guided-flow-step-wrapper div{box-sizing:border-box}@media (max-width: 420px){.guided-flow-modal{height:auto;min-height:100vh}@supports (-webkit-touch-callout: none){.guided-flow-modal{min-height:-webkit-fill-available}}}.guided-flow-modal-portal{padding:0!important;overflow:hidden}@media (max-width: 419px){.guided-flow-modal-portal{height:auto;padding:0!important;overflow:hidden;min-height:700px!important}.guided-flow-modal-portal .close-btn{margin:10px}}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{margin-bottom:10px}.dhcl-datepicker-wrapper .dhcl-datepicker{overflow:hidden!important}.dhcl-datepicker-wrapper .dhcl-datepicker .datepicker-dialog{top:5px!important;position:relative!important}.inperson-visit-card p{white-space:normal!important}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 115px)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container{margin-top:0!important}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container span.week-day{margin-top:1%!important}.date-time-picker button.dhcl-timepicker-nav img{max-width:none!important}\\n\", \".guided-flow-wrapper{--dhcl-font-family: \\\"Trade Gothic Next LT Pro\\\", Helvetica, Arial, sans-serif;font-family:var(--dhcl-font-family);box-sizing:border-box;padding:0;margin:0 auto;max-width:100%;min-height:500px}.guided-flow-wrapper.has-error{min-height:auto;padding-bottom:40px;height:auto}.guided-flow-wrapper button{font-family:var(--dhcl-font-family)}.guided-flow-wrapper .back-button-container{height:40px}.guided-flow-wrapper .back-button-container .dhgf-back-btn{border:none;background:none;color:var(--dhcl-color-secondary);font-size:14px;font-weight:700;cursor:pointer;margin:10px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg{transform:translateY(1px);margin-right:3px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg path{stroke:var(--dhcl-color-secondary)}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }, { type: RescheduleService }, { type: EnvironmentService }, { type: CjaTagService }], propDecorators: { provider: [{\n type: Input\n }], rescheduleData: [{\n type: Input\n }], refreshAfterReschedule: [{\n type: Input\n }], apimSubscriptionKey: [{\n type: Input\n }], clientId: [{\n type: Input\n }], clientSecret: [{\n type: Input\n }], captchaSiteKey: [{\n type: Input\n }], tenantCode: [{\n type: Input\n }], captchaEnabled: [{\n type: Input\n }], market: [{\n type: Input\n }], useLegacyAPI: [{\n type: Input\n }], rescheduleSuccess: [{\n type: Output\n }], showSpinner: [{\n type: Output\n }] } });\n\nclass GuidedFlowComponent {\n providerSearchService;\n environmentService;\n schedulingService;\n isReschedule;\n isBookAgain = false;\n showProviderPrefix = false;\n isLoggedIn = false;\n npi;\n environment = Environments.DEV;\n provider;\n v5Provider;\n showNewSchedulingApp = true;\n rescheduleData;\n refreshAfterReschedule = true;\n apimSubscriptionKey;\n providersSearchApimSubscriptionKey;\n clientId;\n clientSecret;\n captchaSiteKey;\n tenantCode = 'dignity-health';\n appointmentsUrl;\n isCaptchaEnabled = true;\n baseUrl = '';\n locationIds;\n appointmentTypes;\n isLocationAppt;\n mrn;\n patientDetail;\n outreachToken;\n handleNavigateToSchedulingSpa;\n selectedAppointmentSchedule;\n market;\n useLegacyAPI = true;\n embedSource = '';\n fixed = false;\n bgColor = '#00000080';\n navigateToSchedulingSpa = new EventEmitter();\n rescheduleSuccess = new EventEmitter();\n closeClicked = new EventEmitter();\n activeStep = 0;\n showSpinner;\n constructor(providerSearchService, environmentService, schedulingService) {\n this.providerSearchService = providerSearchService;\n this.environmentService = environmentService;\n this.schedulingService = schedulingService;\n }\n ngOnInit() {\n this.environmentService.setEnvironment(this.environment, this.tenantCode);\n if (this.isLocationAppt) {\n this.getLocationDetails();\n }\n else {\n this.getProviderDetails();\n }\n this.setAppointmentsRedirectUrl();\n }\n ngOnChanges(change) {\n if (change.npi && !change.npi.firstChange) {\n this.getProviderDetails();\n }\n }\n setAppointmentsRedirectUrl() {\n if (this.appointmentsUrl) {\n this.environmentService.setValue(this.environment, 'appointmentsUrl', this.appointmentsUrl);\n }\n }\n getProviderDetails() {\n const forceAPICall = (!this.provider && this.npi) || (this.provider && this.provider.npi !== this.npi);\n if (forceAPICall) {\n this.showSpinner = true;\n this.providerSearchService.getProviderDetails(this.npi, this.providersSearchApimSubscriptionKey).subscribe((results) => {\n this.provider = results.result.providers[0];\n // Display Provider Prefix on flag base\n if (!this.showProviderPrefix) {\n this.provider.displayFullName = removeProviderNamePrefix(this.provider.firstName, this.provider.lastName, this.provider.degree);\n }\n this.showSpinner = false;\n this.removeIATDApptTypes();\n }, error => {\n this.showSpinner = false;\n });\n }\n else {\n this.removeIATDApptTypes();\n }\n }\n getLocationDetails() {\n this.showSpinner = true;\n if (!this.v5Provider && this.selectedAppointmentSchedule == null) {\n this.schedulingService\n .getLocationSchedule(this.locationIds, this.appointmentTypes, this.providersSearchApimSubscriptionKey)\n .subscribe((data) => {\n const scheduleId = data.data[0]?.id;\n this.bindScheduleLocationData(data.data[0].attributes, scheduleId);\n this.showSpinner = false;\n }, error => {\n this.showNoAppointmentsModal();\n this.showSpinner = false;\n });\n }\n else if (!this.v5Provider && this.selectedAppointmentSchedule != null) {\n const scheduleId = this.selectedAppointmentSchedule[0].id;\n this.bindScheduleLocationData(this.selectedAppointmentSchedule[0].attributes, scheduleId);\n this.showSpinner = false;\n }\n else {\n this.provider = this.v5Provider;\n this.showSpinner = false;\n }\n }\n bindScheduleLocationData(response, scheduleId) {\n const locationData = response;\n // If no available times are found, we show the \"No appts\" modal.\n if (!locationData['available-times'] || locationData['available-times']?.length === 0) {\n this.showNoAppointmentsModal();\n return;\n }\n const appointmentTypes = (locationData['appointment-types'] || []).filter(a => a.id !== 'covid19-vaccine-2nd-dose');\n if (appointmentTypes?.length === 0) {\n this.showNoAppointmentsModal();\n return;\n }\n appointmentTypes.forEach(apptType => {\n apptType.categoryType = 'in-person';\n apptType.patientAppointmentType = 'both';\n });\n const location = locationData.location;\n location.phone = this.formatPhone(location.phone);\n location.supportsOnlineBooking = true;\n this.provider = {\n npi: locationData.provider?.npi,\n displayFullName: locationData.provider?.name,\n acceptsNewPatients: true,\n images: null,\n primarySpecialty: locationData.provider?.services[0]?.name || locationData?.service?.name || 'None',\n onlineBookingAvailability: [\n {\n appointmentTypes,\n supportsOnlineBooking: true,\n providerSchedulingId: locationData.provider?.id,\n scheduleId,\n officeAddressId: locationData.location?.id,\n facilitySchedulingId: locationData.facility?.id,\n availableTimes: locationData['available-times'],\n nextAvailableTimes: locationData['available-times'].length === 0 ? [] : locationData['next-available-times']\n }\n ],\n isBookOnline: true,\n offices: [\n {\n supportsOnlineBooking: true,\n id: locationData.facility?.id,\n name: locationData.location?.name,\n addresses: [location]\n }\n ]\n };\n }\n showNoAppointmentsModal() {\n this.provider = {};\n this.activeStep = -1;\n this.showSpinner = false;\n }\n formatPhone(phone) {\n if (phone.length === 11) {\n return phone.replace(/(\\d{1})(\\d{3})(\\d{3})(\\d{4})/, '($2) $3-$4');\n }\n else if (phone.length === 10) {\n return phone.replace(/(\\d{3})(\\d{3})(\\d{4})/, '($1) $2-$3');\n }\n return phone;\n }\n validateUserDetail(sessionObject) {\n try {\n const sessionUserToken = JSON.parse(window.atob(`${sessionObject}`)).map(type => type.userToken);\n if (this.getAuthToken()) {\n const userDetails = JSON.parse(window.atob(this.getAuthToken().split('.')[1]));\n if (sessionUserToken[0]) {\n const sesstionUserDetails = JSON.parse(window.atob(sessionUserToken[0].split('.')[1]));\n return userDetails.email === sesstionUserDetails.email;\n }\n }\n else {\n return !sessionUserToken[0];\n }\n }\n catch (e) {\n return false;\n }\n return false;\n }\n getAuthToken() {\n let userToken;\n try {\n userToken = JSON.parse(window.localStorage.getItem('okta-token-storage')).id_token.idToken;\n }\n catch (e) {\n userToken = null;\n }\n return userToken;\n }\n removeIATDApptTypes() {\n // Remove Appointment Types Flagged by IATD as invalid.\n let restrictedTypes = [];\n const sessionObject = window.sessionStorage.getItem('SchedApp_previous-appt-type')?.replace(/['\"]+/g, '');\n if (sessionObject) {\n restrictedTypes = JSON.parse(window.atob(`${sessionObject}`)).map(type => type.appointmentType);\n if (this.validateUserDetail(sessionObject)) {\n this.provider.onlineBookingAvailability.forEach((officeAvailibility) => {\n officeAvailibility.appointmentTypes = (officeAvailibility.appointmentTypes || []).filter((apptType) => {\n return restrictedTypes.indexOf(apptType.id) === -1;\n });\n });\n }\n }\n }\n toggleSpinner(state) {\n this.showSpinner = state;\n }\n rescheduleSuccessHandler(rescheduleSuccess) {\n this.rescheduleSuccess.emit(rescheduleSuccess);\n }\n closeClickedHandler(value) {\n this.closeClicked.emit(value);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowComponent, deps: [{ token: ProviderSearchService }, { token: EnvironmentService }, { token: SchedulingService }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: GuidedFlowComponent, selector: \"dhgf-guided-flow\", inputs: { isReschedule: \"isReschedule\", isBookAgain: \"isBookAgain\", showProviderPrefix: \"showProviderPrefix\", isLoggedIn: \"isLoggedIn\", npi: \"npi\", environment: \"environment\", provider: \"provider\", v5Provider: \"v5Provider\", showNewSchedulingApp: \"showNewSchedulingApp\", rescheduleData: \"rescheduleData\", refreshAfterReschedule: \"refreshAfterReschedule\", apimSubscriptionKey: \"apimSubscriptionKey\", providersSearchApimSubscriptionKey: \"providersSearchApimSubscriptionKey\", clientId: \"clientId\", clientSecret: \"clientSecret\", captchaSiteKey: \"captchaSiteKey\", tenantCode: \"tenantCode\", appointmentsUrl: \"appointmentsUrl\", isCaptchaEnabled: \"isCaptchaEnabled\", baseUrl: \"baseUrl\", locationIds: \"locationIds\", appointmentTypes: \"appointmentTypes\", isLocationAppt: \"isLocationAppt\", mrn: \"mrn\", patientDetail: \"patientDetail\", outreachToken: \"outreachToken\", handleNavigateToSchedulingSpa: \"handleNavigateToSchedulingSpa\", selectedAppointmentSchedule: \"selectedAppointmentSchedule\", market: \"market\", useLegacyAPI: \"useLegacyAPI\", embedSource: \"embedSource\", fixed: \"fixed\", bgColor: \"bgColor\" }, outputs: { navigateToSchedulingSpa: \"navigateToSchedulingSpa\", rescheduleSuccess: \"rescheduleSuccess\", closeClicked: \"closeClicked\" }, usesOnChanges: true, ngImport: i0, template: \"<dhgf-guided-schedule-flow\\r\\n *ngIf=\\\"environment && !isReschedule && provider\\\"\\r\\n [baseUrl]=\\\"baseUrl\\\"\\r\\n [provider]=\\\"provider\\\"\\r\\n [showNewSchedulingApp]=\\\"showNewSchedulingApp\\\"\\r\\n (showSpinner)=\\\"toggleSpinner($event)\\\"\\r\\n [isCaptchaEnabled]=\\\"isCaptchaEnabled\\\"\\r\\n [isBookAgain]=\\\"isBookAgain\\\"\\r\\n [isLoggedIn]=\\\"isLoggedIn\\\"\\r\\n [isLocationAppt]=\\\"isLocationAppt\\\"\\r\\n [mrn]=\\\"mrn\\\"\\r\\n [isV5]=\\\"v5Provider\\\"\\r\\n [patientDetail]=\\\"patientDetail\\\"\\r\\n [outreachToken]=\\\"outreachToken\\\"\\r\\n [handleNavigateToSchedulingSpa]=\\\"handleNavigateToSchedulingSpa\\\"\\r\\n (navigateToSchedulingSpa)=\\\"navigateToSchedulingSpa.emit($event)\\\"\\r\\n (closeClicked)=\\\"closeClickedHandler($event)\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n>\\r\\n</dhgf-guided-schedule-flow>\\r\\n\\r\\n<dhgf-guided-reschedule-flow\\r\\n *ngIf=\\\"environment && isReschedule && provider\\\"\\r\\n [provider]=\\\"provider\\\"\\r\\n [rescheduleData]=\\\"rescheduleData\\\"\\r\\n [refreshAfterReschedule]=\\\"refreshAfterReschedule\\\"\\r\\n [apimSubscriptionKey]=\\\"apimSubscriptionKey\\\"\\r\\n [clientId]=\\\"clientId\\\"\\r\\n [clientSecret]=\\\"clientSecret\\\"\\r\\n [captchaSiteKey]=\\\"captchaSiteKey\\\"\\r\\n [tenantCode]=\\\"tenantCode\\\"\\r\\n (showSpinner)=\\\"toggleSpinner($event)\\\"\\r\\n (rescheduleSuccess)=\\\"rescheduleSuccessHandler($event)\\\"\\r\\n [captchaEnabled]=\\\"isCaptchaEnabled\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n>\\r\\n</dhgf-guided-reschedule-flow>\\r\\n\\r\\n<dhcl-loading-spinner [showSpinner]=\\\"showSpinner\\\" [fixed]=\\\"fixed\\\" aria-label=\\\"Loading\\\" role=\\\"alert\\\" aria-live=\\\"polite\\\" [bgColor]=\\\"bgColor\\\"></dhcl-loading-spinner>\\r\\n\", styles: [\"p{font-style:normal;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}a{color:var(--dhcl-color-secondary);text-decoration:none;font-family:var(--dhcl-font-family);font-weight:700;transition:var(--dhcl-default-transition)}a:hover,a:focus{color:var(--dhcl-color-secondary-dark)}.p1bold{font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.card{background:var(--dhcl-color-white);border:2px solid transparent;transition:var(--dhcl-default-transition);cursor:pointer;width:400px;margin:20px auto;max-width:100%}.card .card-title svg{margin-right:10px}.card svg{margin-right:5px;vertical-align:middle}.card .card-row{padding-top:10px;margin:0}.card:hover,.card.is-selected{border:2px solid var(--dhcl-color-secondary)}.card.is-not-selectable{box-shadow:none;border-radius:0;padding:0;cursor:initial}.card.is-not-selectable:hover{border:2px solid transparent}.card.is-selectable{box-shadow:0 2px 8px #4d525a4d;border-radius:4px;padding:24px 20px}.card .phone-link{color:var(--dhcl-color-secondary-dark);text-decoration:none}.card .phone-link:visited{color:var(--dhcl-color-secondary-dark)}.card .phone-link:hover{color:var(--dhcl-color-secondary-darkest);text-decoration:underline;text-decoration-color:var(--dhcl-color-secondary-darkest)}@media (min-width: 320px) and (max-width: 480px){.card.is-selectable{padding:15px 20px}}.dhcl-modal-content.guided-flow-modal{padding:0!important;overflow:hidden}.dhcl-modal-content.guided-flow-modal .close-btn{margin:10px}.guided-flow-step-wrapper{box-sizing:border-box;padding:20px 20px 100px}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark);text-align:center;width:400px;margin:-19px auto 20px;max-width:100%}.guided-flow-step-wrapper-content{max-height:850px;overflow:none;padding:0}@media (max-height: 970px){.guided-flow-step-wrapper-content{max-height:950px}}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 215px);overflow-y:auto;overflow-x:hidden}@supports (-webkit-touch-callout: none){.guided-flow-step-wrapper-content{max-height:calc(100vh - 310px)}}}.guided-flow-step-wrapper-content a{text-decoration:none}.guided-flow-step-wrapper-content p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:20px 0}.guided-flow-step-wrapper .step-container{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.guided-flow-step-wrapper-footer{text-align:center;position:absolute;width:100%;padding:0 20px;background:var(--dhcl-color-white);box-sizing:border-box;bottom:0;left:0}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button.next-btn{float:right;margin:10px 0 20px}.guided-flow-step-wrapper-footer button.cancel-btn{width:190px;height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0 20px;width:100%}.guided-flow-step-wrapper-footer button.next-btn{float:none}.guided-flow-step-wrapper-footer button.cancel-btn{width:100%}}.guided-flow-step-wrapper div{box-sizing:border-box}@media (max-width: 420px){.guided-flow-modal{height:auto;min-height:100vh}@supports (-webkit-touch-callout: none){.guided-flow-modal{min-height:-webkit-fill-available}}}.guided-flow-modal-portal{padding:0!important;overflow:hidden}@media (max-width: 419px){.guided-flow-modal-portal{height:auto;padding:0!important;overflow:hidden;min-height:700px!important}.guided-flow-modal-portal .close-btn{margin:10px}}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{margin-bottom:10px}.dhcl-datepicker-wrapper .dhcl-datepicker{overflow:hidden!important}.dhcl-datepicker-wrapper .dhcl-datepicker .datepicker-dialog{top:5px!important;position:relative!important}.inperson-visit-card p{white-space:normal!important}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 115px)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container{margin-top:0!important}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container span.week-day{margin-top:1%!important}.date-time-picker button.dhcl-timepicker-nav img{max-width:none!important}\\n\", \".guided-flow-wrapper{--dhcl-font-family: \\\"Trade Gothic Next LT Pro\\\", Helvetica, Arial, sans-serif;font-family:var(--dhcl-font-family);box-sizing:border-box;padding:0;margin:0 auto;max-width:100%;min-height:500px}.guided-flow-wrapper.has-error{min-height:auto;padding-bottom:40px;height:auto}.guided-flow-wrapper button{font-family:var(--dhcl-font-family)}.guided-flow-wrapper .back-button-container{height:40px}.guided-flow-wrapper .back-button-container .dhgf-back-btn{border:none;background:none;color:var(--dhcl-color-secondary);font-size:14px;font-weight:700;cursor:pointer;margin:10px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg{transform:translateY(1px);margin-right:3px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg path{stroke:var(--dhcl-color-secondary)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"component\", type: i2.LoadingSpinnerComponent, selector: \"dhcl-loading-spinner\", inputs: [\"showSpinner\", \"fixed\", \"disclaimer\", \"bgColor\"] }, { kind: \"component\", type: GuidedScheduleFlowComponent, selector: \"dhgf-guided-schedule-flow\", inputs: [\"provider\", \"showNewSchedulingApp\", \"isBookAgain\", \"baseUrl\", \"isCaptchaEnabled\", \"isLoggedIn\", \"isLocationAppt\", \"mrn\", \"isV5\", \"patientDetail\", \"outreachToken\", \"handleNavigateToSchedulingSpa\", \"market\", \"useLegacyAPI\", \"embedSource\"], outputs: [\"navigateToSchedulingSpa\", \"showSpinner\", \"closeClicked\"] }, { kind: \"component\", type: GuidedRescheduleFlowComponent, selector: \"dhgf-guided-reschedule-flow\", inputs: [\"provider\", \"rescheduleData\", \"refreshAfterReschedule\", \"apimSubscriptionKey\", \"clientId\", \"clientSecret\", \"captchaSiteKey\", \"tenantCode\", \"captchaEnabled\", \"market\", \"useLegacyAPI\"], outputs: [\"rescheduleSuccess\", \"showSpinner\"] }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-guided-flow', encapsulation: ViewEncapsulation.None, template: \"<dhgf-guided-schedule-flow\\r\\n *ngIf=\\\"environment && !isReschedule && provider\\\"\\r\\n [baseUrl]=\\\"baseUrl\\\"\\r\\n [provider]=\\\"provider\\\"\\r\\n [showNewSchedulingApp]=\\\"showNewSchedulingApp\\\"\\r\\n (showSpinner)=\\\"toggleSpinner($event)\\\"\\r\\n [isCaptchaEnabled]=\\\"isCaptchaEnabled\\\"\\r\\n [isBookAgain]=\\\"isBookAgain\\\"\\r\\n [isLoggedIn]=\\\"isLoggedIn\\\"\\r\\n [isLocationAppt]=\\\"isLocationAppt\\\"\\r\\n [mrn]=\\\"mrn\\\"\\r\\n [isV5]=\\\"v5Provider\\\"\\r\\n [patientDetail]=\\\"patientDetail\\\"\\r\\n [outreachToken]=\\\"outreachToken\\\"\\r\\n [handleNavigateToSchedulingSpa]=\\\"handleNavigateToSchedulingSpa\\\"\\r\\n (navigateToSchedulingSpa)=\\\"navigateToSchedulingSpa.emit($event)\\\"\\r\\n (closeClicked)=\\\"closeClickedHandler($event)\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n>\\r\\n</dhgf-guided-schedule-flow>\\r\\n\\r\\n<dhgf-guided-reschedule-flow\\r\\n *ngIf=\\\"environment && isReschedule && provider\\\"\\r\\n [provider]=\\\"provider\\\"\\r\\n [rescheduleData]=\\\"rescheduleData\\\"\\r\\n [refreshAfterReschedule]=\\\"refreshAfterReschedule\\\"\\r\\n [apimSubscriptionKey]=\\\"apimSubscriptionKey\\\"\\r\\n [clientId]=\\\"clientId\\\"\\r\\n [clientSecret]=\\\"clientSecret\\\"\\r\\n [captchaSiteKey]=\\\"captchaSiteKey\\\"\\r\\n [tenantCode]=\\\"tenantCode\\\"\\r\\n (showSpinner)=\\\"toggleSpinner($event)\\\"\\r\\n (rescheduleSuccess)=\\\"rescheduleSuccessHandler($event)\\\"\\r\\n [captchaEnabled]=\\\"isCaptchaEnabled\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n>\\r\\n</dhgf-guided-reschedule-flow>\\r\\n\\r\\n<dhcl-loading-spinner [showSpinner]=\\\"showSpinner\\\" [fixed]=\\\"fixed\\\" aria-label=\\\"Loading\\\" role=\\\"alert\\\" aria-live=\\\"polite\\\" [bgColor]=\\\"bgColor\\\"></dhcl-loading-spinner>\\r\\n\", styles: [\"p{font-style:normal;font-size:14px;line-height:22px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:0}a{color:var(--dhcl-color-secondary);text-decoration:none;font-family:var(--dhcl-font-family);font-weight:700;transition:var(--dhcl-default-transition)}a:hover,a:focus{color:var(--dhcl-color-secondary-dark)}.p1bold{font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark)}.card{background:var(--dhcl-color-white);border:2px solid transparent;transition:var(--dhcl-default-transition);cursor:pointer;width:400px;margin:20px auto;max-width:100%}.card .card-title svg{margin-right:10px}.card svg{margin-right:5px;vertical-align:middle}.card .card-row{padding-top:10px;margin:0}.card:hover,.card.is-selected{border:2px solid var(--dhcl-color-secondary)}.card.is-not-selectable{box-shadow:none;border-radius:0;padding:0;cursor:initial}.card.is-not-selectable:hover{border:2px solid transparent}.card.is-selectable{box-shadow:0 2px 8px #4d525a4d;border-radius:4px;padding:24px 20px}.card .phone-link{color:var(--dhcl-color-secondary-dark);text-decoration:none}.card .phone-link:visited{color:var(--dhcl-color-secondary-dark)}.card .phone-link:hover{color:var(--dhcl-color-secondary-darkest);text-decoration:underline;text-decoration-color:var(--dhcl-color-secondary-darkest)}@media (min-width: 320px) and (max-width: 480px){.card.is-selectable{padding:15px 20px}}.dhcl-modal-content.guided-flow-modal{padding:0!important;overflow:hidden}.dhcl-modal-content.guided-flow-modal .close-btn{margin:10px}.guided-flow-step-wrapper{box-sizing:border-box;padding:20px 20px 100px}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{font-size:20px;line-height:28px;font-weight:700;color:var(--dhcl-color-gray-dark);text-align:center;width:400px;margin:-19px auto 20px;max-width:100%}.guided-flow-step-wrapper-content{max-height:850px;overflow:none;padding:0}@media (max-height: 970px){.guided-flow-step-wrapper-content{max-height:950px}}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 215px);overflow-y:auto;overflow-x:hidden}@supports (-webkit-touch-callout: none){.guided-flow-step-wrapper-content{max-height:calc(100vh - 310px)}}}.guided-flow-step-wrapper-content a{text-decoration:none}.guided-flow-step-wrapper-content p{font-style:normal;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.1px;color:var(--dhcl-color-gray-dark);margin:20px 0}.guided-flow-step-wrapper .step-container{padding:15px;display:inline-block;width:100%;box-sizing:border-box}.guided-flow-step-wrapper-footer{text-align:center;position:absolute;width:100%;padding:0 20px;background:var(--dhcl-color-white);box-sizing:border-box;bottom:0;left:0}.guided-flow-step-wrapper-footer button{margin:15px 10px 15px 0}.guided-flow-step-wrapper-footer button.next-btn{float:right;margin:10px 0 20px}.guided-flow-step-wrapper-footer button.cancel-btn{width:190px;height:50px}@media (max-width: 419px){.guided-flow-step-wrapper-footer button{margin:10px 0 20px;width:100%}.guided-flow-step-wrapper-footer button.next-btn{float:none}.guided-flow-step-wrapper-footer button.cancel-btn{width:100%}}.guided-flow-step-wrapper div{box-sizing:border-box}@media (max-width: 420px){.guided-flow-modal{height:auto;min-height:100vh}@supports (-webkit-touch-callout: none){.guided-flow-modal{min-height:-webkit-fill-available}}}.guided-flow-modal-portal{padding:0!important;overflow:hidden}@media (max-width: 419px){.guided-flow-modal-portal{height:auto;padding:0!important;overflow:hidden;min-height:700px!important}.guided-flow-modal-portal .close-btn{margin:10px}}.guided-flow-step-wrapper h3.guided-flow-step-wrapper-header{margin-bottom:10px}.dhcl-datepicker-wrapper .dhcl-datepicker{overflow:hidden!important}.dhcl-datepicker-wrapper .dhcl-datepicker .datepicker-dialog{top:5px!important;position:relative!important}.inperson-visit-card p{white-space:normal!important}@media (max-width: 419px){.guided-flow-step-wrapper-content{max-height:calc(100vh - 115px)}}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container{margin-top:0!important}.dhcl-timepicker .scheduling-section .date-list .time-slide .time-slide-container span.week-day{margin-top:1%!important}.date-time-picker button.dhcl-timepicker-nav img{max-width:none!important}\\n\", \".guided-flow-wrapper{--dhcl-font-family: \\\"Trade Gothic Next LT Pro\\\", Helvetica, Arial, sans-serif;font-family:var(--dhcl-font-family);box-sizing:border-box;padding:0;margin:0 auto;max-width:100%;min-height:500px}.guided-flow-wrapper.has-error{min-height:auto;padding-bottom:40px;height:auto}.guided-flow-wrapper button{font-family:var(--dhcl-font-family)}.guided-flow-wrapper .back-button-container{height:40px}.guided-flow-wrapper .back-button-container .dhgf-back-btn{border:none;background:none;color:var(--dhcl-color-secondary);font-size:14px;font-weight:700;cursor:pointer;margin:10px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg{transform:translateY(1px);margin-right:3px}.guided-flow-wrapper .back-button-container .dhgf-back-btn svg path{stroke:var(--dhcl-color-secondary)}\\n\"] }]\n }], ctorParameters: () => [{ type: ProviderSearchService }, { type: EnvironmentService }, { type: SchedulingService }], propDecorators: { isReschedule: [{\n type: Input\n }], isBookAgain: [{\n type: Input\n }], showProviderPrefix: [{\n type: Input\n }], isLoggedIn: [{\n type: Input\n }], npi: [{\n type: Input\n }], environment: [{\n type: Input\n }], provider: [{\n type: Input\n }], v5Provider: [{\n type: Input\n }], showNewSchedulingApp: [{\n type: Input\n }], rescheduleData: [{\n type: Input\n }], refreshAfterReschedule: [{\n type: Input\n }], apimSubscriptionKey: [{\n type: Input\n }], providersSearchApimSubscriptionKey: [{\n type: Input\n }], clientId: [{\n type: Input\n }], clientSecret: [{\n type: Input\n }], captchaSiteKey: [{\n type: Input\n }], tenantCode: [{\n type: Input\n }], appointmentsUrl: [{\n type: Input\n }], isCaptchaEnabled: [{\n type: Input\n }], baseUrl: [{\n type: Input\n }], locationIds: [{\n type: Input\n }], appointmentTypes: [{\n type: Input\n }], isLocationAppt: [{\n type: Input\n }], mrn: [{\n type: Input\n }], patientDetail: [{\n type: Input\n }], outreachToken: [{\n type: Input\n }], handleNavigateToSchedulingSpa: [{\n type: Input\n }], selectedAppointmentSchedule: [{\n type: Input\n }], market: [{\n type: Input\n }], useLegacyAPI: [{\n type: Input\n }], embedSource: [{\n type: Input\n }], fixed: [{\n type: Input\n }], bgColor: [{\n type: Input\n }], navigateToSchedulingSpa: [{\n type: Output\n }], rescheduleSuccess: [{\n type: Output\n }], closeClicked: [{\n type: Output\n }] } });\n\nclass GuidedFlowLauncherComponent {\n windowService;\n route;\n npi = 1386755767;\n environment = Environments.DEV;\n provider;\n facets;\n primaryOffice = { supportsOnlineBooking: true };\n showNewSchedulingApp = true;\n launcherButtonText = 'Start here';\n isCaptchaEnabled = false;\n baseUrl = '';\n isLoggedIn = false;\n handleNavigateToSchedulingSpa;\n enableScheduleToAppointmentButton = true;\n market;\n useLegacyAPI = true;\n embedSource = '';\n fixed = false;\n showPatientAgeRestrictions;\n navigateToSchedulingSpa = new EventEmitter();\n showTemporarilyUnavailableCopy = false;\n showCallToScheduleCopy = false;\n showGuidedFlow = false;\n customClass;\n constructor(windowService, route) {\n this.windowService = windowService;\n this.route = route;\n }\n ngOnInit() {\n this.customClass =\n this.embedSource.toLowerCase() === Ehrs.CERNER || this.embedSource.toLowerCase() === Ehrs.EPIC\n ? 'guided-flow-modal-portal'\n : 'guided-flow-modal';\n if (this.provider) {\n let supportsOnlineBooking = false;\n this.provider.offices.forEach((office) => {\n const hasOfficeWithOnlineBooking = office.addresses.find((location) => {\n return location.supportsOnlineBooking;\n });\n if (hasOfficeWithOnlineBooking) {\n supportsOnlineBooking = true;\n }\n });\n this.showTemporarilyUnavailableCopy = this.provider.isBookOnline && !supportsOnlineBooking;\n this.showCallToScheduleCopy = !this.provider.isBookOnline;\n this.route.queryParams.subscribe(params => {\n if (params.launchGuidedFlow === 'true') {\n this.showGuidedFlow = true;\n }\n });\n }\n }\n launchGuidedFlowFn() {\n this.showGuidedFlow = true;\n const message = {\n guidedFlow: true,\n source: 'guided-flow',\n type: 'CommonSpirit.MyAppointment.ApptDetails',\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n data: 'RescheduleAppointment'\n };\n window.dispatchEvent(new CustomEvent('CommonSpirit:FindADoctor', { detail: message }));\n }\n callToScheduleHandler() {\n this.windowService.locationHref(`tel:${this.primaryOffice.phones[0]}`);\n }\n get buttonLabelText() {\n return `Schedule an appointment, ${this.launcherButtonText} with ${this.provider.displayFullName} ${this.showPatientAgeRestrictions ? 'and accepting appointments from patients ' + this.provider.patientAgeGroups + ' years of age' : ''}`;\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowLauncherComponent, deps: [{ token: WindowService }, { token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"14.0.0\", version: \"17.3.12\", type: GuidedFlowLauncherComponent, selector: \"dhgf-guided-flow-launcher\", inputs: { npi: \"npi\", environment: \"environment\", provider: \"provider\", facets: \"facets\", primaryOffice: \"primaryOffice\", showNewSchedulingApp: \"showNewSchedulingApp\", launcherButtonText: \"launcherButtonText\", isCaptchaEnabled: \"isCaptchaEnabled\", baseUrl: \"baseUrl\", isLoggedIn: \"isLoggedIn\", handleNavigateToSchedulingSpa: \"handleNavigateToSchedulingSpa\", enableScheduleToAppointmentButton: \"enableScheduleToAppointmentButton\", market: \"market\", useLegacyAPI: \"useLegacyAPI\", embedSource: \"embedSource\", fixed: \"fixed\", showPatientAgeRestrictions: \"showPatientAgeRestrictions\" }, outputs: { navigateToSchedulingSpa: \"navigateToSchedulingSpa\" }, ngImport: i0, template: \"<div class=\\\"dhgf-guided-flow-launcher\\\">\\r\\n <div class=\\\"temp-unavail-call\\\" *ngIf=\\\"showTemporarilyUnavailableCopy || showCallToScheduleCopy || !enableScheduleToAppointmentButton\\\">\\r\\n <div class=\\\"temporarily-unavailable-copy\\\">\\r\\n <div class=\\\"phone-icon\\\">\\r\\n <p class=\\\"call-copy\\\">\\r\\n <svg viewBox=\\\"0 0 16 16\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15.2309 15.4189L15.9809 12.1689C16.0622 11.8158 15.8778 11.4533 15.5465 11.3096L12.0465 9.80962C11.7403 9.67838 11.3809 9.76587 11.1715 10.0252L9.62153 11.919C7.22465 10.794 5.23089 8.82839 4.08402 6.38157L5.97777 4.8316C6.23714 4.6191 6.32465 4.26286 6.1934 3.95662L4.69339 0.456688C4.54652 0.12232 4.18402 -0.0620512 3.83089 0.0191972L0.580885 0.769182C0.243384 0.847305 -0.000366211 1.1473 -0.000366211 1.50042C-0.000366211 9.50338 6.48402 16.0001 14.4997 16.0001C14.8497 16.0001 15.1528 15.7595 15.2309 15.4189Z\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong>\\r\\n Call\\r\\n <a class=\\\"phone\\\" href=\\\"tel:{{ primaryOffice.phones[0] }}\\\"> {{ primaryOffice.phones[0] }}</a>\\r\\n to schedule an appointment\\r\\n </strong>\\r\\n </p>\\r\\n <div class=\\\"call-to-schedule\\\">\\r\\n <button class=\\\"call-btn\\\" (click)=\\\"callToScheduleHandler()\\\">\\r\\n <svg viewBox=\\\"0 0 28 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M14 28C6.26785 28 0 21.7321 0 14C0 6.26785 6.26785 0 14 0C21.7321 0 28 6.26785 28 14C28 21.7321 21.7321 28 14 28Z\\\"\\r\\n fill=\\\"#0071C2\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M20.3271 20.4914L20.9833 17.6477C21.0544 17.3387 20.8931 17.0216 20.6032 16.8958L17.5408 15.5833C17.2728 15.4685 16.9584 15.545 16.7752 15.772L15.419 17.429C13.3217 16.4446 11.5772 14.7247 10.5737 12.5838L12.2307 11.2275C12.4577 11.0416 12.5343 10.7299 12.4194 10.4619L11.1069 7.3995C10.9784 7.10692 10.6612 6.9456 10.3523 7.01669L7.50857 7.67293C7.21327 7.74129 6.99999 8.00378 6.99999 8.31276C6.99999 15.3153 12.6737 21 19.6872 21C19.9935 21 20.2587 20.7895 20.3271 20.4914Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n Call to schedule\\r\\n </button>\\r\\n </div>\\r\\n <p class=\\\"unavailable-copy\\\" *ngIf=\\\"showTemporarilyUnavailableCopy\\\">Online scheduling is temporarily unavailable</p>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n <div *ngIf=\\\"!showTemporarilyUnavailableCopy && !showCallToScheduleCopy && enableScheduleToAppointmentButton\\\">\\r\\n <button\\r\\n style=\\\"margin: 20px 0 10px 0;\\\"\\r\\n dhclButton\\r\\n buttonType=\\\"primary\\\"\\r\\n hasArrow=\\\"launcherButtonText === 'Start here'\\\"\\r\\n (click)=\\\"launchGuidedFlowFn()\\\"\\r\\n [attr.aria-label]=\\\"buttonLabelText\\\"\\r\\n >\\r\\n {{ launcherButtonText }}\\r\\n </button>\\r\\n\\r\\n <dhcl-modal\\r\\n *ngIf=\\\"showGuidedFlow\\\"\\r\\n [alignTop]=\\\"true\\\"\\r\\n [customClass]=\\\"customClass\\\"\\r\\n [closeOnOverlay]=\\\"false\\\"\\r\\n [show]=\\\"true\\\"\\r\\n (closeClicked)=\\\"showGuidedFlow = false\\\"\\r\\n >\\r\\n <dhgf-guided-flow\\r\\n *ngIf=\\\"environment\\\"\\r\\n [environment]=\\\"environment\\\"\\r\\n [provider]=\\\"provider\\\"\\r\\n [npi]=\\\"npi\\\"\\r\\n [baseUrl]=\\\"baseUrl\\\"\\r\\n [isLoggedIn]=\\\"isLoggedIn\\\"\\r\\n [showNewSchedulingApp]=\\\"showNewSchedulingApp\\\"\\r\\n [isCaptchaEnabled]=\\\"isCaptchaEnabled\\\"\\r\\n [handleNavigateToSchedulingSpa]=\\\"handleNavigateToSchedulingSpa\\\"\\r\\n (navigateToSchedulingSpa)=\\\"navigateToSchedulingSpa.emit($event)\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n [fixed]=\\\"fixed\\\"\\r\\n (closeClicked)=\\\"showGuidedFlow = false\\\"\\r\\n >\\r\\n </dhgf-guided-flow>\\r\\n </dhcl-modal>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhgf-guided-flow-launcher .phone-icon{padding-top:5px;float:left;padding-right:10px}@media (max-width: 767px){.dhgf-guided-flow-launcher .phone-icon{float:none}}@media (max-width: 374px){.dhgf-guided-flow-launcher .phone-icon{float:left}}.dhgf-guided-flow-launcher .phone-icon svg{width:16px;height:16px;fill:var(--dhcl-color-gray-dark)}.dhgf-guided-flow-launcher .call-to-schedule-copy{width:100%;float:left}.dhgf-guided-flow-launcher .call-to-schedule-copy .call-copy{font-weight:700}.dhgf-guided-flow-launcher .temp-unavail-call{width:100%;float:left;margin-top:20px}@media (max-width: 767px){.dhgf-guided-flow-launcher .temporarily-unavailable-copy{margin:0;text-align:--webkit-left;width:100%}}@media (max-width: 374px){.dhgf-guided-flow-launcher .temporarily-unavailable-copy{width:100%;text-align:unset}}.dhgf-guided-flow-launcher .temporarily-unavailable-copy .call-copy{font-family:var(--dhcl-font-family);font-size:16px;letter-spacing:.1px;line-height:22px;font-weight:400;margin:0}@media (max-width: 767px){.dhgf-guided-flow-launcher .temporarily-unavailable-copy .call-copy{display:none}}.dhgf-guided-flow-launcher .temporarily-unavailable-copy .unavailable-copy{font-size:14px}.dhgf-guided-flow-launcher .search-results-return{font-family:var(--dhcl-font-family);border:2px solid var(--dhcl-color-secondary);font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;background:var(--dhcl-color-white);color:var(--dhcl-color-secondary);border-radius:45px;width:232px;height:60px}.dhgf-guided-flow-launcher .search-results-return:focus{outline:none}@media (min-width: 768px) and (max-width: 991px){.dhgf-guided-flow-launcher .search-results-return{width:250px}}@media (max-width: 767px){.dhgf-guided-flow-launcher .search-results-return{font-size:14px;line-height:22px;width:220px;height:50px}}.dhgf-guided-flow-launcher .search-results-return svg{width:19px;height:16px;margin-right:10px;fill:none;vertical-align:text-bottom}.dhgf-guided-flow-launcher .search-results-return svg path{stroke:var(--dhcl-color-secondary)}@media (hover: hover){.dhgf-guided-flow-launcher .search-results-return:hover{color:var(--dhcl-color-secondary-dark);border:var(--dhcl-color-secondary-dark) solid 2px;cursor:pointer}.dhgf-guided-flow-launcher .search-results-return:hover svg path{stroke:var(--dhcl-color-secondary-dark)}}.dhgf-guided-flow-launcher .call-to-schedule{display:flex;align-items:center;width:100%;margin-bottom:10px;display:none}@media (max-width: 767px){.dhgf-guided-flow-launcher .call-to-schedule{display:block}}.dhgf-guided-flow-launcher .call-btn{font-size:16px;height:50px;line-height:24px;width:232px;text-align:left;font-family:var(--dhcl-font-family);border:2px solid var(--dhcl-color-secondary);font-style:normal;font-weight:700;letter-spacing:.1px;background:var(--dhcl-color-white);color:var(--dhcl-color-secondary);border-radius:45px;cursor:pointer}.dhgf-guided-flow-launcher .call-btn:focus{outline:none}@media (min-width: 768px) and (max-width: 991px){.dhgf-guided-flow-launcher .call-btn{width:250px}}@media (max-width: 767px){.dhgf-guided-flow-launcher .call-btn{font-size:14px;line-height:22px;width:220px;height:50px}}.dhgf-guided-flow-launcher .call-btn svg{width:25px;height:25px;margin-right:10px;fill:none;vertical-align:top;margin-left:10px}.dhgf-guided-flow-launcher .call-btn svg path{stroke:var(--dhcl-color-secondary)}\\n\"], dependencies: [{ kind: \"directive\", type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { kind: \"directive\", type: i2.ButtonDirective, selector: \"[dhclButton]\", inputs: [\"hasArrow\", \"hasIcon\", \"buttonType\", \"buttonSize\"] }, { kind: \"component\", type: i2.ModalComponent, selector: \"dhcl-modal\", inputs: [\"width\", \"show\", \"hasCloseBtn\", \"customClass\", \"closeOnOverlay\", \"ariaLabelId\", \"alignTop\"], outputs: [\"closeClicked\"] }, { kind: \"component\", type: GuidedFlowComponent, selector: \"dhgf-guided-flow\", inputs: [\"isReschedule\", \"isBookAgain\", \"showProviderPrefix\", \"isLoggedIn\", \"npi\", \"environment\", \"provider\", \"v5Provider\", \"showNewSchedulingApp\", \"rescheduleData\", \"refreshAfterReschedule\", \"apimSubscriptionKey\", \"providersSearchApimSubscriptionKey\", \"clientId\", \"clientSecret\", \"captchaSiteKey\", \"tenantCode\", \"appointmentsUrl\", \"isCaptchaEnabled\", \"baseUrl\", \"locationIds\", \"appointmentTypes\", \"isLocationAppt\", \"mrn\", \"patientDetail\", \"outreachToken\", \"handleNavigateToSchedulingSpa\", \"selectedAppointmentSchedule\", \"market\", \"useLegacyAPI\", \"embedSource\", \"fixed\", \"bgColor\"], outputs: [\"navigateToSchedulingSpa\", \"rescheduleSuccess\", \"closeClicked\"] }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowLauncherComponent, decorators: [{\n type: Component,\n args: [{ selector: 'dhgf-guided-flow-launcher', encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"dhgf-guided-flow-launcher\\\">\\r\\n <div class=\\\"temp-unavail-call\\\" *ngIf=\\\"showTemporarilyUnavailableCopy || showCallToScheduleCopy || !enableScheduleToAppointmentButton\\\">\\r\\n <div class=\\\"temporarily-unavailable-copy\\\">\\r\\n <div class=\\\"phone-icon\\\">\\r\\n <p class=\\\"call-copy\\\">\\r\\n <svg viewBox=\\\"0 0 16 16\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n d=\\\"M15.2309 15.4189L15.9809 12.1689C16.0622 11.8158 15.8778 11.4533 15.5465 11.3096L12.0465 9.80962C11.7403 9.67838 11.3809 9.76587 11.1715 10.0252L9.62153 11.919C7.22465 10.794 5.23089 8.82839 4.08402 6.38157L5.97777 4.8316C6.23714 4.6191 6.32465 4.26286 6.1934 3.95662L4.69339 0.456688C4.54652 0.12232 4.18402 -0.0620512 3.83089 0.0191972L0.580885 0.769182C0.243384 0.847305 -0.000366211 1.1473 -0.000366211 1.50042C-0.000366211 9.50338 6.48402 16.0001 14.4997 16.0001C14.8497 16.0001 15.1528 15.7595 15.2309 15.4189Z\\\"\\r\\n />\\r\\n </svg>\\r\\n <strong>\\r\\n Call\\r\\n <a class=\\\"phone\\\" href=\\\"tel:{{ primaryOffice.phones[0] }}\\\"> {{ primaryOffice.phones[0] }}</a>\\r\\n to schedule an appointment\\r\\n </strong>\\r\\n </p>\\r\\n <div class=\\\"call-to-schedule\\\">\\r\\n <button class=\\\"call-btn\\\" (click)=\\\"callToScheduleHandler()\\\">\\r\\n <svg viewBox=\\\"0 0 28 28\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\r\\n <path\\r\\n fill-rule=\\\"evenodd\\\"\\r\\n clip-rule=\\\"evenodd\\\"\\r\\n d=\\\"M14 28C6.26785 28 0 21.7321 0 14C0 6.26785 6.26785 0 14 0C21.7321 0 28 6.26785 28 14C28 21.7321 21.7321 28 14 28Z\\\"\\r\\n fill=\\\"#0071C2\\\"\\r\\n />\\r\\n <path\\r\\n d=\\\"M20.3271 20.4914L20.9833 17.6477C21.0544 17.3387 20.8931 17.0216 20.6032 16.8958L17.5408 15.5833C17.2728 15.4685 16.9584 15.545 16.7752 15.772L15.419 17.429C13.3217 16.4446 11.5772 14.7247 10.5737 12.5838L12.2307 11.2275C12.4577 11.0416 12.5343 10.7299 12.4194 10.4619L11.1069 7.3995C10.9784 7.10692 10.6612 6.9456 10.3523 7.01669L7.50857 7.67293C7.21327 7.74129 6.99999 8.00378 6.99999 8.31276C6.99999 15.3153 12.6737 21 19.6872 21C19.9935 21 20.2587 20.7895 20.3271 20.4914Z\\\"\\r\\n fill=\\\"white\\\"\\r\\n />\\r\\n </svg>\\r\\n Call to schedule\\r\\n </button>\\r\\n </div>\\r\\n <p class=\\\"unavailable-copy\\\" *ngIf=\\\"showTemporarilyUnavailableCopy\\\">Online scheduling is temporarily unavailable</p>\\r\\n </div>\\r\\n </div>\\r\\n </div>\\r\\n <div *ngIf=\\\"!showTemporarilyUnavailableCopy && !showCallToScheduleCopy && enableScheduleToAppointmentButton\\\">\\r\\n <button\\r\\n style=\\\"margin: 20px 0 10px 0;\\\"\\r\\n dhclButton\\r\\n buttonType=\\\"primary\\\"\\r\\n hasArrow=\\\"launcherButtonText === 'Start here'\\\"\\r\\n (click)=\\\"launchGuidedFlowFn()\\\"\\r\\n [attr.aria-label]=\\\"buttonLabelText\\\"\\r\\n >\\r\\n {{ launcherButtonText }}\\r\\n </button>\\r\\n\\r\\n <dhcl-modal\\r\\n *ngIf=\\\"showGuidedFlow\\\"\\r\\n [alignTop]=\\\"true\\\"\\r\\n [customClass]=\\\"customClass\\\"\\r\\n [closeOnOverlay]=\\\"false\\\"\\r\\n [show]=\\\"true\\\"\\r\\n (closeClicked)=\\\"showGuidedFlow = false\\\"\\r\\n >\\r\\n <dhgf-guided-flow\\r\\n *ngIf=\\\"environment\\\"\\r\\n [environment]=\\\"environment\\\"\\r\\n [provider]=\\\"provider\\\"\\r\\n [npi]=\\\"npi\\\"\\r\\n [baseUrl]=\\\"baseUrl\\\"\\r\\n [isLoggedIn]=\\\"isLoggedIn\\\"\\r\\n [showNewSchedulingApp]=\\\"showNewSchedulingApp\\\"\\r\\n [isCaptchaEnabled]=\\\"isCaptchaEnabled\\\"\\r\\n [handleNavigateToSchedulingSpa]=\\\"handleNavigateToSchedulingSpa\\\"\\r\\n (navigateToSchedulingSpa)=\\\"navigateToSchedulingSpa.emit($event)\\\"\\r\\n [market]=\\\"market\\\"\\r\\n [useLegacyAPI]=\\\"useLegacyAPI\\\"\\r\\n [embedSource]=\\\"embedSource\\\"\\r\\n [fixed]=\\\"fixed\\\"\\r\\n (closeClicked)=\\\"showGuidedFlow = false\\\"\\r\\n >\\r\\n </dhgf-guided-flow>\\r\\n </dhcl-modal>\\r\\n </div>\\r\\n</div>\\r\\n\", styles: [\".dhgf-guided-flow-launcher .phone-icon{padding-top:5px;float:left;padding-right:10px}@media (max-width: 767px){.dhgf-guided-flow-launcher .phone-icon{float:none}}@media (max-width: 374px){.dhgf-guided-flow-launcher .phone-icon{float:left}}.dhgf-guided-flow-launcher .phone-icon svg{width:16px;height:16px;fill:var(--dhcl-color-gray-dark)}.dhgf-guided-flow-launcher .call-to-schedule-copy{width:100%;float:left}.dhgf-guided-flow-launcher .call-to-schedule-copy .call-copy{font-weight:700}.dhgf-guided-flow-launcher .temp-unavail-call{width:100%;float:left;margin-top:20px}@media (max-width: 767px){.dhgf-guided-flow-launcher .temporarily-unavailable-copy{margin:0;text-align:--webkit-left;width:100%}}@media (max-width: 374px){.dhgf-guided-flow-launcher .temporarily-unavailable-copy{width:100%;text-align:unset}}.dhgf-guided-flow-launcher .temporarily-unavailable-copy .call-copy{font-family:var(--dhcl-font-family);font-size:16px;letter-spacing:.1px;line-height:22px;font-weight:400;margin:0}@media (max-width: 767px){.dhgf-guided-flow-launcher .temporarily-unavailable-copy .call-copy{display:none}}.dhgf-guided-flow-launcher .temporarily-unavailable-copy .unavailable-copy{font-size:14px}.dhgf-guided-flow-launcher .search-results-return{font-family:var(--dhcl-font-family);border:2px solid var(--dhcl-color-secondary);font-style:normal;font-weight:700;font-size:16px;line-height:24px;letter-spacing:.1px;background:var(--dhcl-color-white);color:var(--dhcl-color-secondary);border-radius:45px;width:232px;height:60px}.dhgf-guided-flow-launcher .search-results-return:focus{outline:none}@media (min-width: 768px) and (max-width: 991px){.dhgf-guided-flow-launcher .search-results-return{width:250px}}@media (max-width: 767px){.dhgf-guided-flow-launcher .search-results-return{font-size:14px;line-height:22px;width:220px;height:50px}}.dhgf-guided-flow-launcher .search-results-return svg{width:19px;height:16px;margin-right:10px;fill:none;vertical-align:text-bottom}.dhgf-guided-flow-launcher .search-results-return svg path{stroke:var(--dhcl-color-secondary)}@media (hover: hover){.dhgf-guided-flow-launcher .search-results-return:hover{color:var(--dhcl-color-secondary-dark);border:var(--dhcl-color-secondary-dark) solid 2px;cursor:pointer}.dhgf-guided-flow-launcher .search-results-return:hover svg path{stroke:var(--dhcl-color-secondary-dark)}}.dhgf-guided-flow-launcher .call-to-schedule{display:flex;align-items:center;width:100%;margin-bottom:10px;display:none}@media (max-width: 767px){.dhgf-guided-flow-launcher .call-to-schedule{display:block}}.dhgf-guided-flow-launcher .call-btn{font-size:16px;height:50px;line-height:24px;width:232px;text-align:left;font-family:var(--dhcl-font-family);border:2px solid var(--dhcl-color-secondary);font-style:normal;font-weight:700;letter-spacing:.1px;background:var(--dhcl-color-white);color:var(--dhcl-color-secondary);border-radius:45px;cursor:pointer}.dhgf-guided-flow-launcher .call-btn:focus{outline:none}@media (min-width: 768px) and (max-width: 991px){.dhgf-guided-flow-launcher .call-btn{width:250px}}@media (max-width: 767px){.dhgf-guided-flow-launcher .call-btn{font-size:14px;line-height:22px;width:220px;height:50px}}.dhgf-guided-flow-launcher .call-btn svg{width:25px;height:25px;margin-right:10px;fill:none;vertical-align:top;margin-left:10px}.dhgf-guided-flow-launcher .call-btn svg path{stroke:var(--dhcl-color-secondary)}\\n\"] }]\n }], ctorParameters: () => [{ type: WindowService }, { type: i1$2.ActivatedRoute }], propDecorators: { npi: [{\n type: Input\n }], environment: [{\n type: Input\n }], provider: [{\n type: Input\n }], facets: [{\n type: Input\n }], primaryOffice: [{\n type: Input\n }], showNewSchedulingApp: [{\n type: Input\n }], launcherButtonText: [{\n type: Input\n }], isCaptchaEnabled: [{\n type: Input\n }], baseUrl: [{\n type: Input\n }], isLoggedIn: [{\n type: Input\n }], handleNavigateToSchedulingSpa: [{\n type: Input\n }], enableScheduleToAppointmentButton: [{\n type: Input\n }], market: [{\n type: Input\n }], useLegacyAPI: [{\n type: Input\n }], embedSource: [{\n type: Input\n }], fixed: [{\n type: Input\n }], showPatientAgeRestrictions: [{\n type: Input\n }], navigateToSchedulingSpa: [{\n type: Output\n }] } });\n\nclass GuidedFlowModule {\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowModule, declarations: [GuidedFlowComponent,\n GuidedScheduleFlowComponent,\n GuidedRescheduleFlowComponent,\n Step1Component,\n Step2Component,\n InpersonVisitCardComponent,\n VideoVisitCardComponent,\n AppointmentTypeCardComponent,\n AppointmentNotConfirmedComponent,\n CallToScheduleComponent,\n FindAnotherDoctorComponent,\n SelectAppointmentTimeComponent,\n Step3Component,\n Step4Component,\n GuidedFlowLauncherComponent,\n RescheduleReasonComponent,\n RescheduleConfirmComponent,\n RescheduleErrorComponent,\n RescheduleSuccessComponent,\n CrossPortalPopupNotificationComponent,\n StepperErrorComponent], imports: [CommonModule,\n FormsModule,\n HttpClientModule,\n ButtonModule,\n ProgressBarModule,\n TextInputModule,\n DropdownModule,\n LoadingSpinnerModule,\n DatePickerModule,\n DatetimePickerModule,\n ModalModule], exports: [GuidedFlowComponent,\n GuidedScheduleFlowComponent,\n GuidedRescheduleFlowComponent,\n Step1Component,\n Step2Component,\n InpersonVisitCardComponent,\n VideoVisitCardComponent,\n AppointmentTypeCardComponent,\n CallToScheduleComponent,\n FindAnotherDoctorComponent,\n SelectAppointmentTimeComponent,\n Step3Component,\n Step4Component,\n GuidedFlowLauncherComponent,\n CrossPortalPopupNotificationComponent,\n StepperErrorComponent] });\n static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowModule, providers: [WindowService, EnvironmentService, ProviderSearchService, SchedulingService, CjaTagService], imports: [CommonModule,\n FormsModule,\n HttpClientModule,\n ButtonModule,\n ProgressBarModule,\n TextInputModule,\n DropdownModule,\n LoadingSpinnerModule,\n DatePickerModule,\n DatetimePickerModule,\n ModalModule] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"17.3.12\", ngImport: i0, type: GuidedFlowModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [\n GuidedFlowComponent,\n GuidedScheduleFlowComponent,\n GuidedRescheduleFlowComponent,\n Step1Component,\n Step2Component,\n InpersonVisitCardComponent,\n VideoVisitCardComponent,\n AppointmentTypeCardComponent,\n AppointmentNotConfirmedComponent,\n CallToScheduleComponent,\n FindAnotherDoctorComponent,\n SelectAppointmentTimeComponent,\n Step3Component,\n Step4Component,\n GuidedFlowLauncherComponent,\n RescheduleReasonComponent,\n RescheduleConfirmComponent,\n RescheduleErrorComponent,\n RescheduleSuccessComponent,\n CrossPortalPopupNotificationComponent,\n StepperErrorComponent\n ],\n providers: [WindowService, EnvironmentService, ProviderSearchService, SchedulingService, CjaTagService],\n imports: [\n CommonModule,\n FormsModule,\n HttpClientModule,\n ButtonModule,\n ProgressBarModule,\n TextInputModule,\n DropdownModule,\n LoadingSpinnerModule,\n DatePickerModule,\n DatetimePickerModule,\n ModalModule\n ],\n exports: [\n GuidedFlowComponent,\n GuidedScheduleFlowComponent,\n GuidedRescheduleFlowComponent,\n Step1Component,\n Step2Component,\n InpersonVisitCardComponent,\n VideoVisitCardComponent,\n AppointmentTypeCardComponent,\n CallToScheduleComponent,\n FindAnotherDoctorComponent,\n SelectAppointmentTimeComponent,\n Step3Component,\n Step4Component,\n GuidedFlowLauncherComponent,\n CrossPortalPopupNotificationComponent,\n StepperErrorComponent\n ]\n }]\n }] });\n\n/*\n * Public API Surface of guided-flow\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AppointmentTypeCardComponent, CallToScheduleComponent, CrossPortalPopupNotificationComponent, FindAnotherDoctorComponent, GuidedFlowComponent, GuidedFlowLauncherComponent, GuidedFlowModule, GuidedRescheduleFlowComponent, GuidedRescheduleScreen, GuidedScheduleFlowComponent, InpersonVisitCardComponent, SelectAppointmentTimeComponent, Step1Component, Step2Component, Step3Component, Step4Component, StepperErrorComponent, VideoVisitCardComponent };\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}"],"x_google_ignoreList":[81,82,120,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,282,283,284,285,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455]}