(()=>{"use strict";const e={AS:"australia_nz",AQ:"australia_nz",AU:"australia_nz",BV:"australia_nz",IO:"australia_nz",CX:"australia_nz",CC:"australia_nz",CK:"australia_nz",FJ:"australia_nz",PF:"australia_nz",TF:"australia_nz",GU:"australia_nz",HM:"australia_nz",KI:"australia_nz",MH:"australia_nz",FM:"australia_nz",NR:"australia_nz",NC:"australia_nz",NZ:"australia_nz",NU:"australia_nz",NF:"australia_nz",MP:"australia_nz",PW:"australia_nz",PG:"australia_nz",PN:"australia_nz",WS:"australia_nz",SB:"australia_nz",TK:"australia_nz",TO:"australia_nz",TV:"australia_nz",VU:"australia_nz",AI:"caribbean",AG:"caribbean",AW:"caribbean",BS:"caribbean",BB:"caribbean",BM:"caribbean",BQ:"caribbean",VG:"caribbean",KY:"caribbean",CU:"caribbean",CW:"caribbean",DM:"caribbean",DO:"caribbean",GD:"caribbean",GP:"caribbean",HT:"caribbean",JM:"caribbean",MQ:"caribbean",MS:"caribbean",PR:"caribbean",KN:"caribbean",LC:"caribbean",TT:"caribbean",VI:"caribbean",DZ:"middle_east_and_africa",AO:"middle_east_and_africa",AM:"middle_east_and_africa",BJ:"middle_east_and_africa",BW:"middle_east_and_africa",BF:"middle_east_and_africa",BI:"middle_east_and_africa",CM:"middle_east_and_africa",CV:"middle_east_and_africa",CF:"middle_east_and_africa",TD:"middle_east_and_africa",KM:"middle_east_and_africa",CG:"middle_east_and_africa",CD:"middle_east_and_africa",CI:"middle_east_and_africa",DJ:"middle_east_and_africa",GQ:"middle_east_and_africa",ER:"middle_east_and_africa",ET:"middle_east_and_africa",GA:"middle_east_and_africa",GM:"middle_east_and_africa",GH:"middle_east_and_africa",GN:"middle_east_and_africa",GW:"middle_east_and_africa",KE:"middle_east_and_africa",LS:"middle_east_and_africa",LR:"middle_east_and_africa",LY:"middle_east_and_africa",MG:"middle_east_and_africa",MW:"middle_east_and_africa",ML:"middle_east_and_africa",MR:"middle_east_and_africa",MU:"middle_east_and_africa",YT:"middle_east_and_africa",MA:"middle_east_and_africa",MZ:"middle_east_and_africa",NA:"middle_east_and_africa",NE:"middle_east_and_africa",NG:"middle_east_and_africa",RE:"middle_east_and_africa",RW:"middle_east_and_africa",ST:"middle_east_and_africa",SN:"middle_east_and_africa",SC:"middle_east_and_africa",SL:"middle_east_and_africa",SO:"middle_east_and_africa",ZA:"middle_east_and_africa",SS:"middle_east_and_africa",SD:"middle_east_and_africa",SZ:"middle_east_and_africa",TZ:"middle_east_and_africa",TG:"middle_east_and_africa",TN:"middle_east_and_africa",UG:"middle_east_and_africa",EH:"middle_east_and_africa",ZM:"middle_east_and_africa",ZW:"middle_east_and_africa",BD:"india_and_subcontinent",IN:"india_and_subcontinent",MV:"india_and_subcontinent",LK:"india_and_subcontinent",CN:"north_asia",HK:"north_asia",JP:"north_asia",MO:"north_asia",MN:"north_asia",KP:"north_asia",KR:"north_asia",TW:"north_asia",BT:"south_east_asia",BN:"south_east_asia",KH:"south_east_asia",ID:"south_east_asia",LA:"south_east_asia",MY:"south_east_asia",MM:"south_east_asia",NP:"south_east_asia",PH:"south_east_asia",SG:"south_east_asia",TH:"south_east_asia",TL:"south_east_asia",VN:"south_east_asia",AL:"central_eartern_europe",AT:"central_eartern_europe",BY:"central_eartern_europe",BG:"central_eartern_europe",CZ:"central_eartern_europe",EE:"central_eartern_europe",DE:"central_eartern_europe",HU:"central_eartern_europe",XK:"central_eartern_europe",LV:"central_eartern_europe",LI:"central_eartern_europe",LT:"central_eartern_europe",MK:"central_eartern_europe",MD:"central_eartern_europe",ME:"central_eartern_europe",PL:"central_eartern_europe",RO:"central_eartern_europe",RU:"central_eartern_europe",RS:"central_eartern_europe",SK:"central_eartern_europe",SI:"central_eartern_europe",CH:"central_eartern_europe",UA:"central_eartern_europe",AX:"nothern_europe",AC:"nothern_europe",BE:"nothern_europe",BQ:"nothern_europe",DK:"nothern_europe",DG:"nothern_europe",FK:"nothern_europe",FO:"nothern_europe",FI:"nothern_europe",GG:"nothern_europe",IS:"nothern_europe",IE:"nothern_europe",IM:"nothern_europe",JE:"nothern_europe",LU:"nothern_europe",NL:"nothern_europe",NO:"nothern_europe",SX:"nothern_europe",GS:"nothern_europe",BL:"nothern_europe",SH:"nothern_europe",MF:"nothern_europe",PM:"nothern_europe",VC:"nothern_europe",SJ:"nothern_europe",SE:"nothern_europe",TA:"nothern_europe",TC:"nothern_europe",GB:"nothern_europe",WF:"nothern_europe",AD:"southern_europe",BA:"southern_europe",IC:"southern_europe",EA:"southern_europe",HR:"southern_europe",CY:"southern_europe",FR:"southern_europe",GI:"southern_europe",GR:"southern_europe",IT:"southern_europe",MT:"southern_europe",MC:"southern_europe",PT:"southern_europe",SM:"southern_europe",ES:"southern_europe",VA:"southern_europe",AF:"middle_east_and_africa",AZ:"middle_east_and_africa",BH:"middle_east_and_africa",EG:"middle_east_and_africa",GE:"middle_east_and_africa",IR:"middle_east_and_africa",IQ:"middle_east_and_africa",IL:"middle_east_and_africa",JO:"middle_east_and_africa",KZ:"middle_east_and_africa",KW:"middle_east_and_africa",KG:"middle_east_and_africa",LB:"middle_east_and_africa",OM:"middle_east_and_africa",PK:"middle_east_and_africa",PS:"middle_east_and_africa",QA:"middle_east_and_africa",SA:"middle_east_and_africa",SY:"middle_east_and_africa",TJ:"middle_east_and_africa",TR:"middle_east_and_africa",TM:"middle_east_and_africa",AE:"middle_east_and_africa",UZ:"middle_east_and_africa",YE:"middle_east_and_africa",BZ:"central_america",CR:"central_america",SV:"central_america",GT:"central_america",HN:"central_america",NI:"central_america",PA:"central_america",CA:"north_america",GL:"north_america",MX:"north_america",UM:"north_america",US:"north_america",AR:"south_america",BO:"south_america",BR:"south_america",CL:"south_america",CO:"south_america",EC:"south_america",GF:"south_america",GY:"south_america",PY:"south_america",PE:"south_america",SR:"south_america",UY:"south_america",VE:"south_america"},a={alabama:"north_america-southeast",alaska:"north_america-west",arizona:"north_america-southwest",arkansas:"north_america-southeast",california:"north_america-west",colorado:"north_america-west",connecticut:"north_america-northeast",delaware:"north_america-northeast",florida:"north_america-southeast",georgia:"north_america-southeast",hawaii:"north_america-west",idaho:"north_america-west",illinois:"north_america-midwest",indiana:"north_america-midwest",iowa:"north_america-midwest",kansas:"north_america-midwest",kentucky:"north_america-southeast",louisiana:"north_america-southeast",maine:"north_america-northeast",maryland:"north_america-northeast",massachusetts:"north_america-northeast",michigan:"north_america-midwest",minnesota:"north_america-midwest",mississippi:"north_america-southeast",missouri:"north_america-midwest",montana:"north_america-west",nebraska:"north_america-midwest",nevada:"north_america-west","new hampshire":"north_america-northeast","new jersey":"north_america-northeast","new mexico":"north_america-southwest","new york":"north_america-northeast","north carolina":"north_america-southeast","north dakota":"north_america-midwest",ohio:"north_america-midwest",oklahoma:"north_america-southwest",oregon:"north_america-west",pennsylvania:"north_america-northeast","rhode island":"north_america-northeast","south carolina":"north_america-southeast","south dakota":"north_america-midwest",tennessee:"north_america-southeast",texas:"north_america-southwest",utah:"north_america-west",vermont:"north_america-northeast",virginia:"north_america-southeast",washington:"north_america-west","west virginia":"north_america-southeast",wisconsin:"north_america-midwest",wyoming:"north_america-west","district of columbia":"north_america-northeast"},t={AS:"Oceania",AQ:"Antarctica",AU:"Oceania",BV:"Antarctica",IO:"Asia",CX:"Asia",CC:"Asia",CK:"Oceania",FJ:"Oceania",PF:"Oceania",TF:"Antarctica",GU:"Oceania",HM:"Antarctica",KI:"Oceania",MH:"Oceania",FM:"Oceania",NR:"Oceania",NC:"Oceania",NZ:"Oceania",NU:"Oceania",NF:"Oceania",MP:"Oceania",PW:"Oceania",PG:"Oceania",PN:"Oceania",WS:"Oceania",SB:"Oceania",TK:"Oceania",TO:"Oceania",TV:"Oceania",VU:"Oceania",AI:"North America",AG:"North America",AW:"North America",BS:"North America",BB:"North America",BM:"North America",BQ:"North America",VG:"North America",KY:"North America",CU:"North America",CW:"North America",DM:"North America",DO:"North America",GD:"North America",GP:"North America",HT:"North America",JM:"North America",MQ:"North America",MS:"North America",PR:"North America",KN:"North America",LC:"North America",TT:"North America",VI:"North America",DZ:"Africa",AO:"Africa",AM:"Asia",BJ:"Africa",BW:"Africa",BF:"Africa",BI:"Africa",CM:"Africa",CV:"Africa",CF:"Africa",TD:"Africa",KM:"Africa",CG:"Africa",CD:"Africa",CI:"Africa",DJ:"Africa",GQ:"Africa",ER:"Africa",ET:"Africa",GA:"Africa",GM:"Africa",GH:"Africa",GN:"Africa",GW:"Africa",KE:"Africa",LS:"Africa",LR:"Africa",LY:"Africa",MG:"Africa",MW:"Africa",ML:"Africa",MR:"Africa",MU:"Africa",YT:"Africa",MA:"Africa",MZ:"Africa",NA:"Africa",NE:"Africa",NG:"Africa",RE:"Africa",RW:"Africa",ST:"Africa",SN:"Africa",SC:"Africa",SL:"Africa",SO:"Africa",ZA:"Africa",SS:"Africa",SD:"Africa",SZ:"Africa",TZ:"Africa",TG:"Africa",TN:"Africa",UG:"Africa",EH:"Africa",ZM:"Africa",ZW:"Africa",BD:"Asia",IN:"Asia",MV:"Asia",LK:"Asia",CN:"Asia",HK:"Asia",JP:"Asia",MO:"Asia",MN:"Asia",KP:"Asia",KR:"Asia",TW:"Asia",BT:"Asia",BN:"Asia",KH:"Asia",ID:"Asia",LA:"Asia",MY:"Asia",MM:"Asia",NP:"Asia",PH:"Asia",SG:"Asia",TH:"Asia",TL:"Asia",VN:"Asia",AL:"Europe",AT:"Europe",BY:"Europe",BG:"Europe",CZ:"Europe",EE:"Europe",DE:"Europe",HU:"Europe",XK:"Europe",LV:"Europe",LI:"Europe",LT:"Europe",MK:"Europe",MD:"Europe",ME:"Europe",PL:"Europe",RO:"Europe",RU:"Europe",RS:"Europe",SK:"Europe",SI:"Europe",CH:"Europe",UA:"Europe",AX:"Europe",AC:"Europe",BE:"Europe",BQ:"Europe",DK:"Europe",DG:"Europe",FK:"South America",FO:"Europe",FI:"Europe",GG:"Europe",IS:"Europe",IE:"Europe",IM:"Europe",JE:"Europe",LU:"Europe",NL:"Europe",NO:"Europe",SX:"Europe",GS:"Antarctica",BL:"North America",SH:"Africa",MF:"North America",PM:"North America",VC:"North America",SJ:"Europe",SE:"Europe",TA:"Europe",TC:"North America",GB:"Europe",WF:"Oceania",AD:"Europe",BA:"Europe",IC:"Europe",EA:"Europe",HR:"Europe",CY:"Asia",FR:"Europe",GI:"Europe",GR:"Europe",IT:"Europe",MT:"Europe",MC:"Europe",PT:"Europe",SM:"Europe",ES:"Europe",VA:"Europe",AF:"Asia",AZ:"Asia",BH:"Asia",EG:"Africa",GE:"Asia",IR:"Asia",IQ:"Asia",IL:"Asia",JO:"Asia",KZ:"Asia",KW:"Asia",KG:"Asia",LB:"Asia",OM:"Asia",PK:"Asia",PS:"Asia",QA:"Asia",SA:"Asia",SY:"Asia",TJ:"Asia",TR:"Europe",TM:"Asia",AE:"Asia",UZ:"Asia",YE:"Asia",BZ:"North America",CR:"North America",SV:"North America",GT:"North America",HN:"North America",NI:"North America",PA:"North America",CA:"North America",GL:"North America",MX:"North America",UM:"Oceania",US:"North America",AR:"South America",BO:"South America",BR:"South America",CL:"South America",CO:"South America",EC:"South America",GF:"South America",GY:"South America",PY:"South America",PE:"South America",SR:"South America",UY:"South America",VE:"South America"},r=e=>window.dl&&window.dl[e]?window.dl[e]:"not_found",i=(e,a=!0)=>{let t=sessionStorage.getItem(e);if(t)return a?JSON.parse(t):t},n=e=>{if(void 0!==e)return e.replace(/'/g,"").replace(/,/g," ").replace(/([\s,\t,\n])+/g," ")},s=e=>!(void 0===e||"false"===e||"string"==typeof e&&!e.trim().length);document.addEventListener("DOMContentLoaded",(function(){window.extendDl&&window.dl&&Object.assign(window.dl,window.extendDl)}));class o{constructor(e){this.config=e,this.ready=!1,this.data={}}amIReady(){return this.ready}getData(){return this.data}update(){this.ready=!0}isValid(e){return s(e)}}class c extends o{constructor(e){super(e),this.name="site",this.data={currency:this.currency(),tvs:this.tvs(),global_product:this.globalProduct(),cms:this.CMS(),galaxy_product:this.galaxyProduct(),number_of_languages:this.numberOfLanguages(),web_hostname:this.webHostname(),parent_hostname:this.parentHostname(),booking_mask_type:this.bookingMaskType(),mobile_booking_mask_type:this.mobileBookingMaskType(),be_version:this.beVersion(),be_design_features:{desktop_calendar:this.beDesignFeaturesDesktopCalendar(),lead_rate:this.beDesignFeaturesLeadRate(),results_grid_type:this.beDesignFeaturesResultsGridType(),results_filter:this.beDesignFeaturesResultsFilter(),enhancements_layout:this.beDesignFeaturesEnhancementsLayout(),prices_by:this.beDesignFeaturesPricesBy()},be_config:{enhancements:this.beConfigEnhacements()}},this.update()}currency(){let e=i("tc-cs-default");return e&&e.code?e.code:"object"==typeof window.TCPlugins&&"object"==typeof window.TCPlugins.currencySwitcher&&"N/A"!==window.TCPlugins.currencySwitcher.defaultCurrency?window.TCPlugins.currencySwitcher.defaultCurrency:void 0}tvs(){return r("tvs")}globalProduct(){return"undefined"!=typeof AmadeusHosResAnalytics?"be":r("globalProduct")}CMS(){return"galaxy"}galaxyProduct(){return r("productPurchased")}numberOfLanguages(){return r("propertyWebsiteLanguages")}webHostname(){return r("webHostname")}parentHostname(){return r("parentHostname")||"not_applicable"}bookingMaskType(){return(()=>{let e=document.querySelector("[data-booking-mask-type]");if(e)return e.dataset.bookingMaskType})()}mobileBookingMaskType(){return(()=>{let e=document.querySelector("[data-mobile-booking-mask-type]");if(e)return e.dataset.mobileBookingMaskType})()}beVersion(){let{item:e}=this.config;if(this.isValid(e.bookingEngineProvider)&&e.bookingEngineProvider.toLowerCase().includes("ihotelier"))return e.bookingEngineProvider.toLowerCase().includes("be5")?"be5":"be4"}beDesignFeaturesStepper(){}beDesignFeaturesDesktopCalendar(){let{item:e}=this.config;return e.ibe&&e.ibe.general&&e.ibe.general.months_id?e.ibe.general.months_id:"not_applicable"}beDesignFeaturesLeadRate(){let{item:e}=this.config;return e.ibe&&e.ibe.general?e.ibe.general.is_enable_rate_desktop?"enabled":"disabled":"not_applicable"}beDesignFeaturesResultsGridType(){let{item:e}=this.config;if(!e.ibe||!e.ibe.product)return"not_applicable";let{tabType:a,tabTypeValueInGridCase:t}=this.getTabTypeAndValue();return this.buildResultsGridType(a,t)}getTabTypeAndValue(){let e,a,{item:t}=this.config,{default_product_tab_id:r,rooms_tab_id:i,rates_tab_id:n,packages_tab_id:s,offers_tab_id:o}=t.ibe.product;switch(r){case 2:e="rates",a=n;break;case 3:e="packages",a=s;break;case 4:e="offers",a=o;break;default:e="rooms",a=i}return{tabType:e,tabTypeValueInGridCase:a}}buildResultsGridType(e,a){let t,{item:r}=this.config,{desktop_layout_id:i,desktop_layout_default_id:n}=r.ibe.product;switch(i){case 2:t=`${e}-grid${a}`;break;case 3:t=1===n?`${e}-list`:`${e}-grid${a}`;break;default:t=`${e}-list`}return t}beDesignFeaturesResultsFilter(){let{item:e}=this.config;return e.ibe&&e.ibe.product?this.isValid(e.ibe.product.filters_ids)?`enabled-${e.ibe.product.filters_ids}`:"disabled":"not_applicable"}beDesignFeaturesEnhancementsLayout(){let{item:e}=this.config;return e.ibe&&e.ibe.product?this.isValid(e.ibe.product.is_service_enhancements)&&0!==e.ibe.product.is_service_enhancements?3===e.ibe.product.desktop_layout_settings_id?"three_columns":"four_columns":"no_enhancement":"not_applicable"}beDesignFeaturesPricesBy(){let{item:e}=this.config,a="not_applicable";if(!e.ibe||!e.ibe.general)return a;switch(e.ibe.general.rate_display_id){case 1:a="avg_per_night";break;case 2:a="total_per_reservation";break;case 3:a=1===e.ibe.general.default_rate_display_id?"avg_night_plus_total":"total_plus_avg_night"}return a}beConfigEnhacements(){let{item:e}=this.config;return e.ibe&&e.ibe.product?1!==parseInt(e.ibe.product.is_service_enhancements)?"disabled":1!==parseInt(e.ibe.product.is_mandatory)?"enabled-not_mandatory":"enabled-mandatory":"not_applicable"}beConfigBanners(){}}class _ extends o{constructor(){super(),this.name="page",this.videosCount=(()=>{let e=document.querySelectorAll("iframe[src*=videopolis],iframe[data-src*=videopolis]"),a=document.querySelectorAll('script[type="text/template"]'),t=document.querySelectorAll("video"),r=[];return e&&e.length&&e.forEach((e=>{e?.src&&!r.includes(e.src)&&r.push(e.src)})),a&&a.length&&a.forEach((e=>{if(e.innerText.includes("videopolis")){const a=document.createElement("div");a.innerHTML=e.innerHTML;const t=a.querySelector("iframe");t?.src&&!r.includes(t?.src)&&r.push(e.src)}})),t&&t.length&&t.forEach((e=>{e?.src&&e.innerText.includes("videopolis")&&!r.includes(e?.src)&&r.push(e.src)})),r.length})(),this.data={language:this.language(),section:this.section(),subsection:this.subSection(),content_group:this.contentGroup(),url:this.url(),full_url:this.fullUrl(),header:this.header(),footer:this.footer(),template:this.template(),tvs_videos_count:this.tvsVideosCount(),tvs:this.tvs()},this.update()}language(){return window.galaxyInfo&&window.galaxyInfo.local?window.galaxyInfo.local:r("pageLanguage")}section(){return r("pageSection")}subSection(){return r("pageSubSection")}contentGroup(){return r("contentGroup")}url(){return window.location.pathname}fullUrl(){return window.location.href}header(){return(()=>{let e=document.querySelector("[data-header-name]");if(e)return e.dataset.headerName})()}footer(){return(()=>{let e=document.querySelector("[data-footer-name]");if(e)return e.dataset.footerName})()}template(){return(()=>{let e=document.querySelector("[data-theme-name]");if(e)return e.dataset.themeName})()}tvsVideosCount(){return this.videosCount}tvs(){return this.videosCount>0?"yes":"no"}}class d extends o{constructor(e){super(e),this.name="hotel",this.siteData=e.website,this.hotelData=e.item,this.data={id:this.id(),galaxy_id:this.galaxyId(),name:this.hotelName(),city:this.city(),country:this.country(),state:this.state(),continent:this.continent(),tc_region:this.tcRegion(),brand_name:this.brandName(),sub_brand_name:this.subBrandName(),star_rating:this.starRating(),property_type:this.propertyType(),bid:this.bid(),booking_engine:this.bookingEngine(),chain_id:this.chainId(),room_types_count:this.roomTypesCount(),has_gms:this.hasGMS(),gms_type:this.GMSType(),type:this.type(),brand_hotels_count:this.brandHotelsCount()},this.update()}id(){return this.isValid(this.hotelData.bookingEngineHotelId)?this.hotelData.bookingEngineHotelId.trim():"not_applicable"}galaxyId(){return this.isValid(this.hotelData.hotelId)?this.hotelData.hotelId:"not_applicable"}hotelName(){return this.isValid(this.hotelData.branding.name)?n(this.hotelData.branding.name.trim()):"not_applicable"}city(){return this.isValid(this.hotelData.location.city)?n(this.hotelData.location.city.trim()):"not_applicable"}country(){return this.isValid(this.hotelData.location.country)?n(this.hotelData.location.country.trim()):"not_applicable"}state(){return this.isValid(this.hotelData.location.state)?n(this.hotelData.location.state.trim()):"not_applicable"}continent(){return n((e=>{if(t[e])return t[e]})(this.hotelData.location.countryCode))}tcRegion(){return(({countryCode:t,state:r})=>{if("us"===t.toLowerCase().trim()){let e=r.toLowerCase().trim();if(!a[e])return;return a[e]}if(e[t])return e[t]})({...this.hotelData.location})}brandName(){return this.isValid(this.hotelData.branding.masterBrand)?n(this.hotelData.branding.masterBrand.trim()):"not_applicable"}subBrandName(){return this.isValid(this.hotelData.branding.brand)?n(this.hotelData.branding.brand.trim()):"not_applicable"}starRating(){return this.isValid(this.hotelData.rating)?parseFloat(this.hotelData.rating).toFixed(0):"not_applicable"}propertyType(){return this.isValid(this.siteData.nbHotel)&&parseInt(this.siteData.nbHotel)>1?"group_property":"independent_property"}bid(){return this.isValid(this.hotelData.bid)?0===parseInt(this.hotelData.bid)?"not_applicable":this.hotelData.bid.trim():"not_applicable"}bookingEngine(){return this.isValid(this.hotelData.bookingEngineProvider)?n(this.hotelData.bookingEngineProvider.trim()):"not_applicable"}chainId(){return this.isValid(this.hotelData.branding.chainId)?this.hotelData.branding.chainId.trim():"not_applicable"}roomTypesCount(){return this.isValid(this.hotelData.roomTypesCount)?parseInt(this.hotelData.roomTypesCount):"not_applicable"}hasGMS(){return window.gmsConfigObject?"yes":"no"}GMSType(){return"not_applicable"}type(){if(this.hotelData.isHotelInDetail)return"hotel";let e="not_applicable";if(!this.isValid(this.siteData.type))return e;switch(parseInt(this.siteData.type)){case 1:e="brand";break;case 2:e="subrand";break;case 3:e="hotel";break;case 4:e="region"}return e}brandHotelsCount(){return this.isValid(this.siteData.nbHotel)?parseInt(this.siteData.nbHotel):"not_applicable"}}class u extends o{constructor(){super(),this.name="search",this.data={},this.update()}}class l extends o{constructor(){super(),this.name="user",this.data={logged_in:this.loggedIn(),member_tier:this.memberTier()},this.update()}loggedIn(){return i("gms_profil_data")?"yes":"no"}id(){let e=i("gms_profile_id",!1);if(e)return e}hashId(){let e=i("gms_user-token");if(e&&e.value)return e.value}memberTier(){let e=i("gms_profil_data");if(e&&e.tierCode)return e.tierCode}}class h extends o{constructor(){super(),this.name="rooms",this.data=[],this.update()}}class m{constructor(e){this.rawConfig=e.config,this.config=this.standardizeConfig(),this.eventName="tc-data-feed",this.dataFeed={},this.dataFeedItems=[new c(this.config),new _,new d(this.config),new u,new l,new h]}isReadyToBePushed(){return this.dataFeedItems.every((e=>e.amIReady()))}getData(){return this.dataFeed.event=this.eventName,this.dataFeedItems.forEach((e=>{this.dataFeed[e.name]=e.getData()})),this.dataFeed}getItemData(){let{hotelInDetail:e,websiteItem:a,ibe:t}=this.rawConfig,r=a;return r.isHotelInDetail=!1,e.hasOwnProperty("bookingEngineProvider")&&s(e.bookingEngineProvider)&&(r=e,r.isHotelInDetail=!0),s(r.hotelId)?(t.ibeGeneral&&t.ibeProductDisplay&&(r.ibe={general:t.ibeGeneral.find((e=>parseInt(e.hotel_id)===parseInt(r.hotelId))),product:t.ibeProductDisplay.find((e=>parseInt(e.hotel_id)===parseInt(r.hotelId)))}),r):r}standardizeConfig(){let e=this.getItemData();return{website:this.rawConfig.website,item:e}}}const p=window.location.search;"debug"===new URLSearchParams(p).get("hos-log")&&console.info("Integrated Datalayer extension is loading"),window.dataLayer=window.dataLayer||[],document.addEventListener("DOMContentLoaded",(function(){let e=new m(window.GLXExtensions.tcIntegratedDataLayer);if(e.isReadyToBePushed()){let a=e.getData();dataLayer.push(a)}}))})();