PageSourceSearch

https://www.1und1.de/_Resources/Persistent/bbf03dfcf321e27037a7eb011e33fa80a5cda8b0/main.js?bust=4

js 1und1.de collected 2026-09-24 08:28:52 UTC 511,336 bytes, 6 lines download raw bytes

1/*!
2 * Storybook - 1&1 Shop Frontend Components v0.4.0-master-20260923.163204496
3 * @revision d9ebf55f
4 * @timestamp 1790173938980
5 */
6!function(){"use strict";let e=class Button{element;href;constructor(e){this.element=e,this.href=this.element.dataset.href,this.href&&(e.addEventListener("click",this.handleButtonClick.bind(this)),e.addEventListener("auxclick",this.handleAuxClick.bind(this)))}handleButtonClick(e){this.href&&!e.defaultPrevented&&0===e.button&&(e.metaKey||e.ctrlKey?window.open(this.href,"_blank"):e.shiftKey?window.open(this.href,"_blank","noopener"):window.location.assign(this.href))}handleAuxClick(e){this.href&&!e.defaultPrevented&&1===e.button&&window.open(this.href,"_blank")}};const t=Object.freeze(Object.defineProperty({__proto__:null,Button:e,default:class ButtonInitializer{constructor(t=document){t.querySelectorAll("[data-href]").forEach((t=>new e(t)))}}},Symbol.toStringTag,{value:"Module"}));function i(e){return null!==e.closest("[data-prevent-js]")}window.checkJsPrevention=i;const s=Object.freeze(Object.defineProperty({__proto__:null,checkJsPrevention:i},Symbol.toStringTag,{value:"Module"}));class XLABInitializer{Class;selectors;constructor(e,t){this.selectors=e,this.Class=t,this.initialize()}initialize(){document.querySelectorAll(this.selectors).forEach((e=>this.initializeClass(e)))}initializeClass(e){i(e)||new this.Class(e)}}const n=Object.freeze(Object.defineProperty({__proto__:null,XLABInitializer:XLABInitializer},Symbol.toStringTag,{value:"Module"}));class ShareButton{constructor(e){e.shareButton||(e.shareButton=this,this.shareButton=e,this.shareButton.addEventListener("click",(()=>this.handleClick())))}getShareData(){const{shareUrl:e,shareText:t,shareTitle:i}=this.shareButton.dataset;if(e||t||i)return{url:e,text:t,title:i}}getClipboardText({url:e,text:t}){return t.includes(e)?t:[t,e].join("\n")}notifyCopyToClipboard(){const e=this.shareButton.querySelector(".btn__span"),t=this.shareButton.querySelector(".icon");t?.classList.add("d-none");const i=e.textContent||"Link jetzt teilen";e.textContent="Link in Zwischenablage kopiert!",setTimeout((()=>{e.textContent=i,t?.classList.remove("d-none")}),5e3)}async handleClick(){const e=this.getShareData();if(e)try{await navigator.share(e)}catch{const t=this.getClipboardText(e);await navigator.clipboard.writeText(t),this.notifyCopyToClipboard()}}}const r=Object.freeze(Object.defineProperty({__proto__:null,ShareButton:ShareButton,default:class ShareButtonInitializer extends XLABInitializer{constructor(){super("[data-share]",ShareButton),addEventListener("async:loaded",(()=>super.initialize()))}}},Symbol.toStringTag,{value:"Module"})),o="xlab:",a=`${o}tss:play`,l=`${o}tss:pause`,c="update-hardware",d="update-heights",h="updated-heights",u="update-components",p="after-content-toggle",m="thumbnails:init",g="uniboxes:update-tariffboxes",f="uniboxes:slide-change",v="filter:updated",b="modal:init",y="[data-filter]",w="[data-filter-by]",S="[data-filter-specify]",_="[data-filter-count]",E="[data-filter-tags]",x="[data-filter-group]",k="[data-filter-hidden]",O="[data-filter-chip]",I="filter__pill",D="filter__call-out",P="active";class Filter{el;filterPillPointer;target;lastPill;currentPill;filterChipsContainer;filterOptionsContainer;selectedOption;selectedObligation;filterTags;filterGroup;filterChips;hiddenOptions;chips;activeFilters;filterStickyWrapper;filterStickySentinel;scrollAnimationIsStarted;calloutWasActive;hoverSupported;#e;#t;#i;constructor(e){this.el=e,this.filterStickyWrapper=document.querySelector(".filter-sticky-wrapper"),this.filterStickySentinel=document.querySelector(".filter-sticky-sentinel"),this.filterPillPointer=this.el.querySelector(".filter__pill--pointer"),this.target=document.querySelector(this.el.dataset.filter),this.lastPill=null,this.currentPill=null,this.filterOptionsContainer=this.el.querySelector(".filter__pills"),this.filterChipsContainer=this.el.querySelector(".filter__chips"),this.filterTags=this.target?.querySelectorAll(E)||[],this.filterGroup=this.target?.querySelectorAll(x)||[],this.filterChips=this.el.querySelectorAll(O),this.activeFilters={orFilters:new Set,andFilters:new Set,hiddenFilters:[]},this.scrollAnimationIsStarted=!1,this.calloutWasActive=!1,this.hoverSupported=!1,this.#e=document.querySelector(".navigation"),this.#t=this.#e?.getBoundingClientRect().height||0,this.registerScrolling(),this.registerHandlers(),this.updateCounts(),this.toggleSticky(),this.addResizeHandlers(),e.updateCounts=this.updateCounts.bind(this),this.checkHoverSupport()}toggleSticky(){this.filterStickyWrapper&&this.filterStickySentinel&&(this.#i=new IntersectionObserver((([e])=>{this.filterStickyWrapper.classList.toggle("stuck",!e.isIntersecting),this.setTopPosition()}),{rootMargin:`-${this.#t}px 0px 0px 0px`}),this.#i.observe(this.filterStickySentinel))}remountObserverOnResize(){const e=this.#e?.getBoundingClientRect().height||0;e!==this.#t&&(this.#t=e,this.#i.disconnect(),this.toggleSticky())}registerHandlers(){const e=this.el.querySelectorAll(w),t=this.el.querySelectorAll(S),i=this.el.querySelectorAll("."+I);if(this.hiddenOptions=this.el.querySelectorAll(k),this.chips=this.el.querySelectorAll(O),0===this.hiddenOptions.length){const e=document.createElement("input");e.setAttribute("data-filter-hidden","bestseller"),e.setAttribute("type","hidden"),this.el.querySelector(".filter__pills").appendChild(e),this.hiddenOptions=[e]}e.forEach((e=>e.addEventListener("change",this.chooseOption.bind(this)))),t.forEach((e=>e.addEventListener("change",this.chooseObligation.bind(this)))),i.forEac
6h((e=>{e.addEventListener("click",this.clickFilterPill.bind(this)),e.addEventListener("mouseenter",this.onMouseEnterFilterPill.bind(this)),e.addEventListener("focus",(e=>{e.target.matches(":focus-visible")&&this.onKeyboardEnterFilterPill(e)}))}))}registerScrolling(){this.onScrollFilterContainer(this.filterOptionsContainer),this.onScrollFilterContainer(this.filterChipsContainer),this.addContainerScrollingListener(this.filterOptionsContainer),this.addContainerScrollingListener(this.filterChipsContainer)}addResizeHandlers(){addEventListener("resize-proxy:width",(()=>{this.onScrollFilterContainer(this.filterOptionsContainer),this.onScrollFilterContainer(this.filterChipsContainer),this.currentPill&&this.hideAllCallout(),this.remountObserverOnResize()}))}addContainerScrollingListener(e){e&&e.addEventListener("scroll",(()=>{this.onScrollFilterContainer(e)}))}onMouseEnterFilterPill(e){if(!this.hoverSupported)return;const t=e.currentTarget.nextElementSibling,i=t?.children.length;t?.classList.contains("d-block")||i<2||this.clickFilterPill(e)}onKeyboardEnterFilterPill(e){const t=e.currentTarget,i=t.nextElementSibling,s=i?.children.length;if(i?.classList.contains("d-block")||s<2){if(this.lastPill=this.currentPill,this.currentPill=t,null!=this.lastPill){const e=this.lastPill.nextElementSibling;this.hideCallout(e),this.calloutWasActive=!1,this.checkIsSelectedPillActive(e,this.lastPill)}}else this.clickFilterPill(e)}clickFilterPill(e){let t="",i=!1;this.currentPill&&(this.lastPill=this.currentPill,t=this.lastPill.dataset.pillId,i="reset"===t),this.currentPill=e.currentTarget;const s=this.currentPill.dataset.pillId;if(0===this.currentPill.parentElement.querySelectorAll(".active").length&&"reset"===s)return!1;if(this.lastPill&&!i){const e=this.lastPill.nextElementSibling;this.hideAllCallout(),this.checkIsSelectedPillActive(e,this.lastPill)}if(t===s&&this.calloutWasActive)this.calloutWasActive=!1;else{if(this.addActiveClass(this.currentPill),"reset"===this.currentPill.dataset.pillId)return this.resetFilter(),!1;"wrap"!==getComputedStyle(this.filterOptionsContainer).flexWrap&&this.updateScrollPosition(this.currentPill),"mouseenter"!==e.type&&this.scrollToAnchor(s),this.registerCallout(this.currentPill,e),e.preventDefault()}}chooseOption(e){this.activeFilters.hiddenFilters=[],this.selectedOption=e.currentTarget;const t=this.selectedOption.dataset.filterBy;this.toggleOrFilter(t),this.toggleHiddenOptions(),this.executeFilterActions(),this.handleCalloutOptions(this.selectedOption),document.querySelectorAll(y).forEach((e=>{e.updateCounts()})),this.scrollToAnchor(t)}chooseObligation(e){this.selectedObligation=e.currentTarget;const t=this.selectedObligation.dataset.filterSpecify;this.toggleAndFilter(t),this.executeFilterActions(),this.handleCalloutOptions(this.selectedObligation),document.querySelectorAll(y).forEach((e=>{e.updateCounts()}))}handleCalloutOptions(e){if(this.handleMainAndSubOptions(e),this.hideAllCallout(),!this.currentPill)return;"reset"===this.currentPill.dataset.pillId||this.checkIsSelectedPillActive(this.currentPill.nextElementSibling,this.currentPill),this.currentPill=null}handleMainAndSubOptions(e){const t=[...e.parentElement.children].findIndex((t=>t===e)),i=e.parentElement,s=i.children[0],n="none"!==getComputedStyle(s.querySelector("svg")).display,r=s.clientHeight>0;if(n&&r&&(t>0&&setTimeout((()=>{s.click()})),0===t)){const e=Array.from(i.children).slice(1).filter((e=>"none"!==getComputedStyle(e.querySelector("svg")).display));setTimeout((()=>{e.forEach((e=>e.click()))}))}}hideChip(e){e.classList.add("d-none")}resetFilter(){this.chips.length?([...this.currentPill.parentElement.children].forEach((e=>{e.classList.remove(P)})),this.currentPill.classList.add(P),this.chips.forEach((e=>e.click()))):(this.el.querySelectorAll("input:checked").forEach((e=>e.click())),setTimeout((()=>{this.el.querySelectorAll("label:only-child").forEach((e=>{this.el.querySelectorAll(`[data-pill-id=${e.dataset.filterBy}].active`).forEach((e=>{e.click()}))}))})),this.el.querySelectorAll(".filter__pill.active").forEach((e=>e.classList.remove("active"))),this.el.querySelector("[data-pill-id=reset]").classList.add("active"),this.scrollToAnchor())}executeFilterActions(){this.filter(this.filterTags,"filterTags"),this.filter(this.filterGroup,"filterGroup"),this.filter(this.filterChips,"filterChip"),this.updateCounts(),this.target?.dispatchEvent(new Event(v,{bubbles:!0}))}toggleOrFilter(e){this.activeFilters.orFilters.has(e)?this.activeFilters.orFilters.delete(e):this.activeFilters.orFilters.add(e)}toggleAndFilter(e){this.activeFilters.andFilters.has(e)?this.activeFilters.andFilters.delete(e):this.activeFilters.andFilters.add(e)}toggleHiddenOptions(){this.hiddenOptions.forEach((e=>{const t=e.getAttribute("data-filter-hidden");this.activeFilters.hiddenFilters.push(t)}))}matchesFilter(e,t){if(this.isOrFilterInactive()&&this.isAndFilterInactive()&&(t.includes("filterGroup")||t.includes("filterTags")))return!0;
6if(this.isOrFilterInactive()&&this.isAndFilterInactive()&&t.includes("filterChip"))return!1;let i=!1;const s=e.dataset[t];if("filterTags"===t&&(this.isAndFilterInactive()||this.isOrFilterInactive()?this.isAndFilterInactive()&&!this.isOrFilterInactive()?i=this.matchOrFilter(s,t):!this.isAndFilterInactive()&&this.isOrFilterInactive()&&(i=this.matchAndFilter(s,t)):i=this.matchAndOrFilter(s,t)),"filterGroup"===t){(this.target?.querySelectorAll(`${E}:not(.d-none)`)||[]).forEach((e=>{e.getAttribute("data-filter-tags").includes(s)&&(i=!0)}))}if("filterChip"===t){const t=new AbortController,n=t.signal;this.activeFilters.orFilters.forEach((t=>{const r=this.selectedOption.getAttribute("data-filter-by");s.includes(t)&&r===s&&!e.activeListener&&(e.activeListener=!0,this.addFilterChipListener(e,this.selectedOption,n)),s===t&&(i=!0)})),this.activeFilters.andFilters.forEach((t=>{const r=this.selectedObligation.dataset.filterSpecify;s.includes(t)&&r===s&&!e.activeListener&&(e.activeListener=!0,this.addFilterChipListener(e,this.selectedObligation,n)),s.includes(t)&&(i=!0)})),i||(e.activeListener=!1,t.abort())}return i}addFilterChipListener(e,t,i){const s=this.currentPill;e.addEventListener("click",(i=>{i.preventDefault();const n=t.parentElement;t.click(),e.activeListener=!1,this.checkIsSelectedPillActive(n,s),this.hideChip(e)}),{once:!0,signal:i})}matchAndOrFilter(e){return!![...this.activeFilters.andFilters].some((t=>e.includes(t)))&&[...this.activeFilters.orFilters].some((t=>e.includes(t)))}matchOrFilter(e){return[...this.activeFilters.orFilters].some((t=>e.includes(t)))}matchAndFilter(e){return[...this.activeFilters.andFilters].some((t=>e.includes(t)))}isOrFilterInactive(){return!this.activeFilters.orFilters.size}isAndFilterInactive(){return!this.activeFilters.andFilters.size}filter(e,t){e.forEach((e=>{this.matchesFilter(e,t)?e.classList.remove("d-none"):e.classList.add("d-none")}));const i=this.filterOptionsContainer.querySelector('[data-pill-id="reset"]');this.isOrFilterInactive()&&this.isAndFilterInactive()?(this.addActiveClass(i),this.filterOptionsContainer.scrollTo({left:0,behavior:"smooth"})):this.removeActiveClass(i)}updateCounts(){const e=this.target?.querySelectorAll(`${E}:not(.d-none):not([data-filter-no-count])`)||[],t=this.el.querySelectorAll(_),i=e.length;t.forEach((e=>{this.updateCount(e,i)}))}updateCount(e,t){let i=e.dataset.filterCount;1!==t&&(i+="se"),e.innerHTML=i.replace("%s",t)}registerCallout(e,t){const i=e.nextElementSibling;let s;this.showCallout(i,e);const n=t=>{const r=t.target,o=r.closest("."+I),a=o?.dataset.pillId,l=e.dataset.pillId;!r.closest("."+D)&&this.isCalloutNext(i)&&(this.hideAllCallout(),this.checkIsSelectedPillActive(i,e),this.calloutWasActive=!0,document.removeEventListener("touchstart",n),document.removeEventListener("mousedown",n),s&&s.abort()),!r.closest("."+D)&&this.isCalloutNext(i)&&a!==l&&(this.currentPill=null)};document.addEventListener("touchstart",n),document.addEventListener("mousedown",n),"mouseenter"===t.type&&(s=new AbortController,this.attachMouseLeaveListeners(s))}attachMouseLeaveListeners(e){const t=this.currentPill,i=t.nextElementSibling,s=this.filterPillPointer,n=()=>t.matches(":hover")||i.matches(":hover")||s.matches(":hover"),r=()=>{e.abort(),this.calloutWasActive=!1,this.checkIsSelectedPillActive(i,t),this.hideCallout(i)};t.addEventListener("mouseleave",(()=>{n()||r()}),{signal:e.signal}),i.addEventListener("mouseleave",(()=>{n()||("none"!==getComputedStyle(i).display?r():e.abort())}),{signal:e.signal})}addActiveClass(e){e.classList.add(P)}removeActiveClass(e){e.classList.remove(P)}handleLabelKeyup(e){"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()}showCallout(e,t){if(!this.isCalloutNext(e))return;e.querySelectorAll("label").forEach((e=>{e.setAttribute("tabindex","0"),e.addEventListener("keyup",this.handleLabelKeyup)})),e.querySelectorAll(".toggle-label__radio").forEach((e=>{e.setAttribute("tabindex","-1")}));e.children.length>1?(e.classList.add("d-block"),this.updateCalloutPosition(e,t),this.scrollAnimationIsStarted||this.moveFilterPillPointer(t)):(e.querySelectorAll("input").forEach((e=>e.checked=!e.checked)),e.querySelectorAll(".toggle-label").forEach((e=>{const t=new Event("change",{bubbles:!0});e.dispatchEvent(t)})))}moveFilterPillPointer(e){const t=e.offsetWidth,i=e.getBoundingClientRect().left-e.parentElement.getBoundingClientRect().left;this.filterPillPointer.style.left=`${i+t/2}px`,this.filterPillPointer.classList.add("d-block")}updateCalloutPosition(e,t){const i=t.getBoundingClientRect(),s=t.parentElement.getBoundingClientRect(),n=i.left-s.left,r=e.getBoundingClientRect().width/2,o=t.getBoundingClientRect().width/2,a=n+o-r,l=n<=r-o,c=this.filterOptionsContainer.getBoundingClientRect().width<=n+r+o;l?(e.style.left="0",e.style.right=""):c?(e.style.left="auto",e.style.right="0"):(e.style.right="auto",e.style.left=`${a}px`)}hideAllCallout(){this.filterOptionsContainer.querySelectorAll("."+D).forEac
6h((e=>{e.classList.remove("d-block"),e.querySelectorAll("label").forEach((e=>{e.removeEventListener("keyup",this.handleLabelKeyup)}))})),this.filterPillPointer.classList.remove("d-block")}hideCallout(e){e.classList.remove("d-block"),e.querySelectorAll("label").forEach((e=>{e.removeEventListener("keyup",this.handleLabelKeyup)})),this.filterPillPointer.classList.remove("d-block")}isCalloutNext(e){return e.classList.contains(D)}onScrollFilterContainer(e){if(!e)return;const t=e.parentElement,i=e.scrollLeft,s=e.getBoundingClientRect().width,n=e.scrollWidth;t.classList.add("fade-left","fade-right"),n-i-s===0&&t.classList.remove("fade-right"),0===i&&t.classList.remove("fade-left")}updateScrollPosition(e){const t=e.getBoundingClientRect().left-e.parentElement.getBoundingClientRect().left,i=e.getBoundingClientRect().width,s=e.parentElement,n=s.offsetWidth-20;t<20&&(this.scrollAnimationIsStarted=!0,s.scrollTo({left:s.scrollLeft+t-25,behavior:"smooth"}),this.moveFilterPillPointer(e),this.scrollAnimationIsStarted=!1),t+i>n&&(this.scrollAnimationIsStarted=!0,s.scrollTo({left:t+i+25-s.offsetWidth+s.scrollLeft,behavior:"smooth"}),this.moveFilterPillPointer(e),this.scrollAnimationIsStarted=!1)}removeInitScrollDataAttr(){this.el.querySelectorAll("[data-prevent-init-scroll]").forEach((e=>{e.removeAttribute("data-prevent-init-scroll")}))}scrollToAnchor(e){if(this.el.querySelector("[data-prevent-init-scroll]"))return void this.removeInitScrollDataAttr();let t=document.querySelector(`.hardware-container__items-group[data-filter-group="${e}"]:not(.d-none)`);if(t||(t=document.querySelector(".hardware-container__items-group[data-filter-group]:not(.d-none)")),t&&this.filterStickyWrapper){const e=t.getBoundingClientRect().top+window.scrollY,i=document.querySelector("nav").getBoundingClientRect().height+this.filterStickyWrapper.getBoundingClientRect().height;window.scroll({top:e-i})}}getCombinedActiveFilter(){return[...this.activeFilters.andFilters,...this.activeFilters.orFilters]}checkIsSelectedPillActive(e,t){if(!t)return;const i=e.querySelectorAll(`${w}, ${S}`),s=this.getCombinedActiveFilter();let n=!0;i.forEach((e=>{const t=e.getAttribute("data-filter-by")||e.getAttribute("data-filter-specify");s.includes(t)&&(n=!1)})),n&&this.removeActiveClass(t)}setTopPosition(){this.filterStickyWrapper.classList.contains("stuck")?this.filterStickyWrapper.style.top=this.#t+"px":this.filterStickyWrapper.style.top=null}checkHoverSupport(){const e=window.matchMedia("(pointer:fine)");this.hoverSupported=e.matches,e.onchange=e=>{this.hoverSupported=e.matches}}}const M=Object.freeze(Object.defineProperty({__proto__:null,COUNT_SELECTOR:_,FILTER_GROUP_SELECTOR:x,FILTER_SELECTOR:y,FILTER_TAG_SELECTOR:E,Filter:Filter,HIDDEN_FILTER_SELECTOR:k,OBLIGATION_SELECTOR:S,OPTIONS_SELECTOR:w,default:class Filters{constructor(e=document){this.initializeFilter(e),addEventListener("async:loaded",(e=>{this.initializeFilter(e.target)}))}initializeFilter(e){e.querySelectorAll("[data-filter]:not([data-no-init])").forEach((e=>{if(!i(e))return new Filter(e)})),e.querySelectorAll("[data-filter][data-no-init]").forEach((e=>e.removeAttribute("data-no-init")))}}},Symbol.toStringTag,{value:"Module"}));const q=Object.freeze(Object.defineProperty({__proto__:null,default:class Login{constructor(){this.showPassword=!1,this.passwordInput=document.querySelector(".password-reveal"),this.passwordInput&&(this.trigger=document.querySelector(".password-reveal-trigger"),this.iconShow=document.querySelector(".password-reveal-icon-show"),this.iconHide=document.querySelector(".password-reveal-icon-hide"),this.initLogin())}initLogin(){this.trigger.addEventListener("click",(()=>{this.showPassword=!this.showPassword,this.iconHide.classList.toggle("d-none"),this.iconShow.classList.toggle("d-none"),this.passwordInput.type=this.showPassword?"text":"password"}))}}},Symbol.toStringTag,{value:"Module"}));class Toggle{constructor(e){e.addEventListener("keydown",(e=>{" "===e.key&&e.preventDefault()})),e.addEventListener("keyup",this.handleLabelKeyup)}handleLabelKeyup(e){"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()}}const z=Object.freeze(Object.defineProperty({__proto__:null,Toggle:Toggle,default:class ToggleInitializer{constructor(e=document){e.querySelectorAll(".toggle-label").forEach((e=>new Toggle(e)))}}},Symbol.toStringTag,{value:"Module"}));var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
vendor: 44,577 bytes, line 6
6function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F,$={exports:{}};var N=(F||(F=1,$.exports=function(){var e={d:function(t,i){for(var s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return R}});var i={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},s={classes:"",inline:!1,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:i.days,minView:i.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof e?t.querySelector(e):e}function r(){let{tagName:e="div",className:t="",innerHtml:i="",id:s="",attrs:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=document.createElement(e);return t&&r.classList.add(...t.split(" ")),s&&(r.id=s),i&&(r.innerHTML=i),n&&o(r,n),r}function o(e,t){for(let[i,s]of Object.entries(t))void 0!==s&&e.setAttribute(i,s);return e}function a(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function l(e){let t=e.getHours(),{hours:i,dayPeriod:s}=c(t);return{year:e.getFullYear(),month:e.getMonth(),fullMonth:e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,date:e.getDate(),fullDate:e.getDate()<10?"0"+e.getDate():e.getDate(),day:e.getDay(),hours:t,fullHours:d(t),hours12:i,dayPeriod:s,fullHours12:d(i),minutes:e.getMinutes(),fullMinutes:e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes()}}function c(e){return{dayPeriod:e>11?"pm":"am",hours:e%12==0?12:e%12}}function d(e){return e<10?"0"+e:e}function h(e){let t=10*Math.floor(e.getFullYear()/10);return[t,t+9]}function u(){let e=[];for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return i.forEach((t=>{if("object"==typeof t)for(let i in t)t[i]&&e.push(i);else t&&e.push(t)})),e.join(" ")}function p(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.days;if(!e||!t)return!1;let n=l(e),r=l(t);return{[i.days]:n.date===r.date&&n.month===r.month&&n.year===r.year,[i.months]:n.month===r.month&&n.year===r.year,[i.years]:n.year===r.year}[s]}function m(e,t,i){let s=f(e,!1).getTime(),n=f(t,!1).getTime();return i?s>=n:s>n}function g(e,t){return!m(e,t,!0)}function f(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=new Date(e.getTime());return"boolean"!=typeof t||t||i.setHours(0,0,0,0),i}function v(e,t,i){e.length?e.forEach((e=>{e.addEventListener(t,i)})):e.addEventListener(t,i)}function b(e,t){return!(!e||e===document||e instanceof DocumentFragment)&&(e.matches(t)?e:b(e.parentNode,t))}function y(e,t,i){return e>i?i:e<t?t:e}function w(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return i.filter((e=>e)).forEach((t=>{for(let[i,s]of Object.entries(t))if(void 0!==s&&"[object Object]"===s.toString()){let t=void 0!==e[i]?e[i].toString():void 0,n=s.toString(),r=Array.isArray(s)?[]:{};e[i]=e[i]?t!==n?r:e[i]:r,w(e[i],s)}else e[i]=s})),e}function S(e){let t=e;return e instanceof Date||("string"==typeof e&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&(e+="T00:00:00"),t=new Date(e)),isNaN(t.getTime())&&(console.log(`Unable to convert value "${e}" to Date object`),t=!1),t}function _(e){let t="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+t+")("+e+")($|<|"+t+")","g")}function E(e,t,i){return(t="symbol"==typeof(s=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var s}class C{constructor(){let{type:e,date:t,dp:i,opts:s,body:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,"focus",(()=>{this.$cell.classList.add("-focus-"),this.focused=!0})),E(this,"removeFocus",(()=>{this.$cell.classList.remove("-focus-"),this.focused=!1})),E(this,"select",(()=>{this.$cell.classList.add("-selected-"),this.selected=!0})),E(this,"removeSelect",(()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1})),E(this,"onChangeSelectedDate",(()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())})),E(this,"onChangeFocusDate",(e=>{if(!e)return void(this.focused&&this.removeFocus());let t=p(e,this.date,this.type);t?this.focus():!t&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),E(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=e,this.singleType=this.type.slice(0,-1),this.date=t,this.dp=i,this.opts=s,this.body=n,this.customData=!1,this.init()}init(){var e;let{onRenderCell:t}=this.opts;t&&(this.customData=t({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(e=this.customData)&&void 0!==e&&e.disabled&&this.dp.disableDate(this.date)}_bindDatepickerEvents(){this.dp.on(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(i.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(i.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var e;let{year:t,month:i,date:s}=l(this.date),n=(null===(e=this.customData)||void 0===e?void 0:e.attrs)||{};this.$cell=r({attrs:{"data-year":t,"data-month":i,"data-date":s,...n}}),this.$cell.adpCell=this}_getClassName(){var e;let t=new Date,{selectOtherMonths:s,selectOtherYears:n}=this.opts,{minDate:r,maxDate:o,isDateDisabled:a}=this.dp,{day:c}=l(this.date),d=this._isOutOfMinMaxRange(),h=a(this.date),m=u("air-datepicker-cell",`-${this.singleType}-`,{"-current-":p(t,this.date,this.type),"-min-date-":r&&p(r,this.date,this.type),"-max-date-":o&&p(o,this.date,this.type)}),g="";switch(this.type){case i.days:g=u({"-weekend-":this.dp.isWeekend(c),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!s||d||h});break;case i.months:g=u({"-disabled-":d});break;case i.years:g=u({"-other-decade-":this.isOtherDecade,"-disabled-":d||this.isOtherDecade&&!n})}return u(m,g,null===(e=this.customData)||void 0===e?void 0:e.classes).split(" ")}_getHtml(){var e;let{year:t,month:s,date:n}=l(this.date),{showOtherMonths:r,showOtherYears:o}=this.opts;if(null!==(e=this.customData)&&void 0!==e&&e.html)return this.customData.html;switch(this.type){case i.days:return!r&&this.isOtherMonth?"":n;case i.months:return this.dp.locale[this.opts.monthsField][s];case i.years:return!o&&this.isOtherDecade?"":t}}_isOutOfMinMaxRange(){let{minDate:e,maxDate:t}=this.dp,{type:s,date:n}=this,{month:r,year:o,date:a}=l(n),c=s===i.days,d=s===i.years,h=!!e&&new Date(o,d?e.getMonth():r,c?a:e.getDate()),u=!!t&&new Date(o,d?t.getMonth():r,c?a:t.getDate());return e&&t?g(h,e)||m(u,t):e?g(h,e):t?m(u,t):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){const{selectedDates:e,focusDate:t,rangeDateTo:i,rangeDateFrom:s}=this.dp,n=e.length;if(!n)return;let r=s,o=i;if(1===n&&t){const i=m(t,e[0]);r=i?e[0]:t,o=i?t:e[0]}let a=u({"-in-range-":r&&o&&(l=this.date,c=r,d=o,m(l,c)&&g(l,d)),"-range-from-":r&&p(this.date,r,this.type),"-range-to-":o&&p(this.date,o,this.type)});var l,c,d;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),a&&this.$cell.classList.add(...a.split(" "))}_handleSelectedStatus(){let e=this.dp._checkIfDateIsSelected(this.date,this.type);e?this.select():!e&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){p(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function x(e,t,i){return(t="symbol"==typeof(s=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var s}let k={[i.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${i.days}-"></div>`,[i.months]:`<div class="air-datepicker-body--cells -${i.months}-"></div>`,[i.years]:`<div class="air-datepicker-body--cells -${i.years}-"></div>`};const O=".air-datepicker-cell";class T{constructor(e){let{dp:t,type:s,opts:n}=e;x(this,"handleClick",(e=>{let t=e.target.closest(O).adpCell;if(t.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let i=this.dp._checkIfDateIsSelected(t.date,t.type);i?this.dp._handleAlreadySelectedDates(i,t.date):this.dp.selectDate(t.date)})),x(this,"handleDayNameClick",(e=>{let t=e.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(t),datepicker:this.dp})})),x(this,"onChangeCurrentView",(e=>{e!==this.type?this.hide():(this.show(),this.render())})),x(this,"onMouseOverCell",(e=>{let t=b(e.target,O);this.dp.setFocusDate(!!t&&t.adpCell.date)})),x(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),x(this,"onClickBody",(e=>{let{onClickDayName:t}=this.opts,i=e.target;i.closest(O)&&this.handleClick(e),t&&i.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(e)})),x(this,"onMouseDown",(e=>{this.pressed=!0;let t=b(e.target,O),i=t&&t.adpCell;p(i.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),p(i.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),x(this,"onMouseMove",(e=>{if(!this.pressed||!this.dp.isMinViewReached)return;e.preventDefault();let t=b(e.target,O),i=t&&t.adpCell,{selectedDates:s,rangeDateTo:n,rangeDateFrom:r}=this.dp;if(!i||i.isDisabled)return;let{date:o}=i;if(2===s.length){if(this.rangeFromFocused&&!m(o,n)){let{hours:e,minutes:t}=l(r);o.setHours(e),o.setMinutes(t),this.dp.rangeDateFrom=o,this.dp.replaceDate(r,o)}if(this.rangeToFocused&&!g(o,r)){let{hours:e,minutes:t}=l(n);o.setHours(e),o.setMinutes(t),this.dp.rangeDateTo=o,this.dp.replaceDate(n,o)}}})),x(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),x(this,"onChangeViewDate",((e,t)=>{if(!this.isVisible)return;let s=h(e),n=h(t);switch(this.dp.currentView){case i.days:if(p(e,t,i.months))return;break;case i.months:if(p(e,t,i.years))return;break;case i.years:if(s[0]===n[0]&&s[1]===n[1])return}this.render()})),x(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((e=>{this.$cells.appendChild(e.render())}))})),this.dp=t,this.type=s,this.opts=n,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===i.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:e,dynamicRange:t}=this.opts;v(this.$el,"mouseover",this.onMouseOverCell),v(this.$el,"mouseout",this.onMouseOutCell),v(this.$el,"click",this.onClickBody),e&&t&&(v(this.$el,"mousedown",this.onMouseDown),v(this.$el,"mousemove",this.onMouseMove),v(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(i.eventChangeViewDate,this.onChangeViewDate),this.dp.on(i.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=r({className:`air-datepicker-body -${this.type}-`,innerHtml:k[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,t="",s=this.dp.isWeekend,{onClickDayName:n}=this.opts,r=e,o=0;for(;o<7;){let e=r%7;t+=`<div class="${u("air-datepicker-body--day-name",{[i.cssClassWeekend]:s(e),"-clickable-":!!n})}" data-day-index='${e}'>${this.dp.locale.daysMin[e]}</div>`,o++,r++}return t}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(e){let{type:t,dp:i,opts:s}=this;return new C({type:t,dp:i,opts:s,date:e,body:this})}_generateCells(){T.getDatesFunction(this.type)(this.dp,(e=>{this.cells.push(this._generateCell(e))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((e=>e.destroy())),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(i.eventChangeViewDate,this.onChangeViewDate),this.dp.off(i.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(e,t){let{viewDate:i,opts:{fixedHeight:s},locale:{firstDay:n}}=e,r=a(i),{year:o,month:c}=l(i),d=new Date(o,c,1),h=new Date(o,c,r),u=d.getDay()-n,p=6-h.getDay()+n;u=u<0?u+7:u,p=p>6?p-7:p;let m=function(e,t){let{year:i,month:s,date:n}=l(e);return new Date(i,s,n-t)}(d,u),g=r+u+p,f=m.getDate(),{year:v,month:b}=l(m),y=0;s&&(g=42);const w=[];for(;y<g;){let e=new Date(v,b,f+y);t&&t(e),w.push(e),y++}return w}static getMonthsDates(e,t){let{year:i}=e.parsedViewDate,s=0,n=[];for(;s<12;){const e=new Date(i,s);n.push(e),t&&t(e),s++}return n}static getYearsDates(e,t){let i=h(e.viewDate),s=i[0]-1,n=i[1]+1,r=s,o=[];for(;r<=n;){const e=new Date(r,0);o.push(e),t&&t(e),r++}return o}static getDatesFunction(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.days;return{[i.days]:T.getDaysDates,[i.months]:T.getMonthsDates,[i.years]:T.getYearsDates}[e]}}function I(e,t,i){return(t="symbol"==typeof(s=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var s}class V{constructor(e){let{dp:t,opts:i}=e;I(this,"onClickNav",(e=>{let t=b(e.target,".air-datepicker-nav--action");if(!t)return;let i=t.dataset.action;this.dp[i]()})),I(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),I(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),I(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),I(this,"update",(()=>{let{prevHtml:e,nextHtml:t}=this.opts;this.$prev.innerHTML=e,this.$next.innerHTML=t,this._resetNavStatus(),this.render(),this.handleNavStatus()})),I(this,"renderDelay",(()=>{setTimeout(this.render)})),I(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),function(e,t){for(let i in t)t[i]?e.classList.add(i):e.classList.remove(i)}(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=t,this.opts=i,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(i.eventChangeViewDate,this.onChangeViewDate),this.dp.on(i.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(i.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(i.eventChangeTime,this.render))}destroy(){this.dp.off(i.eventChangeViewDate,this.onChangeViewDate),this.dp.off(i.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(i.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(i.eventChangeTime,this.render))}_createElement(){this.$el=r({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:e,opts:t}=this,i=t.navTitles[e.currentView];return"function"==typeof i?i(e):e.formatDate(e.viewDate,i)}handleNavStatus(){let{disableNavWhenOutOfRange:e}=this.opts,{minDate:t,maxDate:s}=this.dp;if(!t&&!s||!e)return;let{year:n,month:r}=this.dp.parsedViewDate,o=!!t&&l(t),a=!!s&&l(s);switch(this.dp.currentView){case i.days:t&&o.month>=r&&o.year>=n&&this._disableNav("prev"),s&&a.month<=r&&a.year<=n&&this._disableNav("next");break;case i.months:t&&o.year>=n&&this._disableNav("prev"),s&&a.year<=n&&this._disableNav("next");break;case i.years:{let e=h(this.dp.viewDate);t&&o.year>=e[0]&&this._disableNav("prev"),s&&a.year<=e[1]&&this._disableNav("next");break}}}_disableNav(e){n('[data-action="'+e+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){!function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];e.length?e.forEach((e=>{e.classList.remove(...i)})):e.classList.remove(...i)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:e,nextHtml:t}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${e}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${t}</div>`}get isNavIsFunction(){let{navTitles:e}=this.opts;return Object.keys(e).find((t=>"function"==typeof e[t]))}}var D={today:{content:e=>e.locale.today,onClick:e=>e.setViewDate(new Date)},clear:{content:e=>e.locale.clear,onClick:e=>e.clear()}};class H{constructor(e){let{dp:t,opts:i}=e;this.dp=t,this.opts=i,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=r({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:e}=this.opts;Array.isArray(e)||(e=[e]),e.forEach((e=>{let t=e;"string"==typeof e&&D[e]&&(t=D[e]);let i=this.createButton(t);t.onClick&&this.attachEventToButton(i,t.onClick),this.$el.appendChild(i)}))}attachEventToButton(e,t){e.addEventListener("click",(()=>{t(this.dp)}))}createButton(e){let{content:t,className:i,tagName:s="button",attrs:n={}}=e;return r({tagName:s,innerHtml:`<span tabindex='-1'>${"function"==typeof t?t(this.dp):t}</span>`,className:u("air-datepicker-button",i),attrs:n})}render(){this.generateButtons()}}function P(e,t,i){return(t="symbol"==typeof(s=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var s}class L{constructor(){let{opts:e,dp:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,"toggleTimepickerIsActive",(e=>{this.dp.timepickerIsActive=e})),P(this,"onChangeSelectedDate",(e=>{let{date:t,updateTime:i=!1}=e;t&&(this.setMinMaxTime(t),this.setCurrentTime(!!i&&t),this.addTimeToDate(t))})),P(this,"onChangeLastSelectedDate",(e=>{e&&(this.setTime(e),this.render())})),P(this,"onChangeInputRange",(e=>{let t=e.target;this[t.getAttribute("name")]=t.value,this.updateText(),this.dp.trigger(i.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),P(this,"onMouseEnterLeave",(e=>{let t=e.target.getAttribute("name"),i=this.$minutesText;"hours"===t&&(i=this.$hoursText),i.classList.toggle("-focus-")})),P(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),P(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=e,this.dp=t;let{timeFormat:s}=this.dp.locale;s&&(s.match(_("h"))||s.match(_("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(i.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let e="input";navigator.userAgent.match(/trident/gi)&&(e="change"),v(this.$ranges,e,this.onChangeInputRange),v(this.$ranges,"mouseenter",this.onMouseEnterLeave),v(this.$ranges,"mouseleave",this.onMouseEnterLeave),v(this.$ranges,"focus",this.onFocus),v(this.$ranges,"mousedown",this.onFocus),v(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=r({className:u("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(i.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:e,hours:t,displayHours:i,minutes:s,minHours:n,minMinutes:r,maxHours:o,maxMinutes:a,dayPeriod:l,opts:{hoursStep:c,minutesStep:h}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current">   <span class="air-datepicker-time--current-hours">${d(i)}</span>   <span class="air-datepicker-time--current-colon">:</span>   <span class="air-datepicker-time--current-minutes">${d(s)}</span>   `+(e?`<span class='air-datepicker-time--current-ampm'>${l}</span>`:"")+`</div><div class="air-datepicker-time--sliders">   <div class="air-datepicker-time--row">      <input type="range" name="hours" value="${t}" min="${n}" max="${o}" step="${c}"/>   </div>   <div class="air-datepicker-time--row">      <input type="range" name="minutes" value="${s}" min="${r}" max="${a}" step="${h}"/>   </div></div>`}defineDOM(){let e=e=>n(e,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")}setTime(e){this.setMinMaxTime(e),this.setCurrentTime(e)}addTimeToDate(e){e&&(e.setHours(this.hours),e.setMinutes(this.minutes))}setMinMaxTime(e){if(this.setMinMaxTimeFromOptions(),e){let{minDate:t,maxDate:i}=this.dp;t&&p(e,t)&&this.setMinTimeFromMinDate(t),i&&p(e,i)&&this.setMaxTimeFromMaxDate(i)}}setCurrentTime(e){let{hours:t,minutes:i}=e?l(e):this;this.hours=y(t,this.minHours,this.maxHours),this.minutes=y(i,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:e,minMinutes:t,maxHours:i,maxMinutes:s}=this.opts;this.minHours=y(e,0,23),this.minMinutes=y(t,0,59),this.maxHours=y(i,0,23),this.maxMinutes=y(s,0,59)}setMinTimeFromMinDate(e){let{lastSelectedDate:t}=this.dp;this.minHours=e.getHours(),t&&t.getHours()>e.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=e.getMinutes()}setMaxTimeFromMaxDate(e){let{lastSelectedDate:t}=this.dp;this.maxHours=e.getHours(),t&&t.getHours()<e.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=e.getMinutes()}updateSliders(){o(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,o(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=d(this.displayHours),this.$minutesText.innerHTML=d(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(e){this._hours=e;let{hours:t,dayPeriod:i}=c(e);this.displayHours=this.ampm?t:e,this.dayPeriod=i}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function M(e,t,i){return(t="symbol"==typeof(s=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var s}class A{constructor(e){let{dp:t,opts:i}=e;M(this,"pressedKeys",new Set),M(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],e=>e.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],e=>e.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],e=>e.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],e=>e.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],e=>e.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],e=>e.year-=10],[["Control","Shift","ArrowUp"],(e,t)=>t.up()]])),M(this,"handleHotKey",(e=>{let t=this.hotKeys.get(e),i=l(this.getInitialFocusDate());t(i,this.dp);let{year:s,month:n,date:r}=i,o=a(new Date(s,n));o<r&&(r=o);let c=this.dp.getClampedDate(new Date(s,n,r));this.dp.setFocusDate(c,{viewDateTransition:!0})})),M(this,"isHotKeyPressed",(()=>{let e=!1,t=this.pressedKeys.size,i=e=>this.pressedKeys.has(e);for(let[s]of this.hotKeys){if(e)break;if(Array.isArray(s[0]))s.forEach((n=>{e||t!==n.length||(e=n.every(i)&&s)}));else{if(t!==s.length)continue;e=s.every(i)&&s}}return e})),M(this,"isArrow",(e=>e>=37&&e<=40)),M(this,"onKeyDown",(e=>{let{key:t,which:i}=e,{dp:s,dp:{focusDate:n},opts:r}=this;this.registerKey(t);let o=this.isHotKeyPressed();if(o)return e.preventDefault(),void this.handleHotKey(o);if(this.isArrow(i))return e.preventDefault(),void this.focusNextCell(t);if("Enter"===t){if(s.currentView!==r.minView)return void s.down();if(n){let e=s._checkIfDateIsSelected(n);return void(e?s._handleAlreadySelectedDates(e,n):s.selectDate(n))}}"Escape"===t&&this.dp.hide()})),M(this,"onKeyUp",(e=>{this.removeKey(e.key)})),this.dp=t,this.opts=i,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:e}=this.dp;e.addEventListener("keydown",this.onKeyDown),e.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:e}=this.dp;e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:e,currentView:t,selectedDates:s,parsedViewDate:{year:n,month:r}}=this.dp,o=e||s[s.length-1];if(!o)switch(t){case i.days:o=new Date(n,r,(new Date).getDate());break;case i.months:o=new Date(n,r,1);break;case i.years:o=new Date(n,0,1)}return o}focusNextCell(e){let t=this.getInitialFocusDate(),{currentView:s}=this.dp,{days:n,months:r,years:o}=i,a=l(t),c=a.year,d=a.month,h=a.date;switch(e){case"ArrowLeft":s===n&&(h-=1),s===r&&(d-=1),s===o&&(c-=1);break;case"ArrowUp":s===n&&(h-=7),s===r&&(d-=3),s===o&&(c-=4);break;case"ArrowRight":s===n&&(h+=1),s===r&&(d+=1),s===o&&(c+=1);break;case"ArrowDown":s===n&&(h+=7),s===r&&(d+=3),s===o&&(c+=4)}let u=this.dp.getClampedDate(new Date(c,d,h));this.dp.setFocusDate(u,{viewDateTransition:!0})}registerKey(e){this.pressedKeys.add(e)}removeKey(e){this.pressedKeys.delete(e)}}let q={on(e,t){this.__events||(this.__events={}),this.__events[e]?this.__events[e].push(t):this.__events[e]=[t]},off(e,t){this.__events&&this.__events[e]&&(this.__events[e]=this.__events[e].filter((e=>e!==t)))},removeAllEvents(){this.__events={}},trigger(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];this.__events&&this.__events[e]&&this.__events[e].forEach((e=>{e(...i)}))}};function z(e,t,i){return(t="symbol"==typeof(s=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?s:String(s))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var s}let B="",j="",F=!1;class R{static buildGlobalContainer(e){F=!0,B=r({className:e,id:e}),n("body").appendChild(B)}constructor(e,t){var o=this;if(z(this,"viewIndexes",[i.days,i.months,i.years]),z(this,"next",(()=>{let{year:e,month:t}=this.parsedViewDate;switch(this.currentView){case i.days:this.setViewDate(new Date(e,t+1,1));break;case i.months:this.setViewDate(new Date(e+1,t,1));break;case i.years:this.setViewDate(new Date(e+10,0,1))}})),z(this,"prev",(()=>{let{year:e,month:t}=this.parsedViewDate;switch(this.currentView){case i.days:this.setViewDate(new Date(e,t-1,1));break;case i.months:this.setViewDate(new Date(e-1,t,1));break;case i.years:this.setViewDate(new Date(e-10,0,1))}})),z(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),z(this,"setPosition",(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(e=e||o.opts.position))return void(o.customHide=e({$datepicker:o.$datepicker,$target:o.$el,$pointer:o.$pointer,isViewChange:t,done:o._finishHide}));let i,s,{isMobile:n}=o.opts,r=o.$el.getBoundingClientRect(),a=o.$el.getBoundingClientRect(),l=o.$datepicker.offsetParent,c=o.$el.offsetParent,d=o.$datepicker.getBoundingClientRect(),h=e.split(" "),u=window.scrollY,p=window.scrollX,m=o.opts.offset,g=h[0],f=h[1];if(n)o.$datepicker.style.cssText="left: 50%; top: 50%";else{if(l===c&&l!==document.body&&(a={top:o.$el.offsetTop,left:o.$el.offsetLeft,width:r.width,height:o.$el.offsetHeight},u=0,p=0),l!==c&&l!==document.body){let e=l.getBoundingClientRect();a={top:r.top-e.top,left:r.left-e.left,width:r.width,height:r.height},u=0,p=0}switch(g){case"top":i=a.top-d.height-m;break;case"right":s=a.left+a.width+m;break;case"bottom":i=a.top+a.height+m;break;case"left":s=a.left-d.width-m}switch(f){case"top":i=a.top;break;case"right":s=a.left+a.width-d.width;break;case"bottom":i=a.top+a.height-d.height;break;case"left":s=a.left;break;case"center":/left|right/.test(g)?i=a.top+a.height/2-d.height/2:s=a.left+a.width/2-d.width/2}o.$datepicker.style.cssText=`left: ${s+p}px; top: ${i+u}px`}})),z(this,"_setInputValue",(()=>{let{opts:e,$altField:t,locale:{dateFormat:i}}=this,{altFieldDateFormat:s,altField:n}=e;n&&t&&(t.value=this._getInputValue(s)),this.$el.value=this._getInputValue(i)})),z(this,"_getInputValue",(e=>{let{selectedDates:t,opts:i}=this,{multipleDates:s,multipleDatesSeparator:n}=i;if(!t.length)return"";let r="function"==typeof e,o=r?e(s?t:t[0]):t.map((t=>this.formatDate(t,e)));return o=r?o:o.join(n),o})),z(this,"_checkIfDateIsSelected",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.days,s=!1;return o.selectedDates.some((i=>{let n=p(e,i,t);return s=n&&i,n})),s})),z(this,"_scheduleCallAfterTransition",(e=>{this._cancelScheduledCall(),e&&e(!1),this._onTransitionEnd=()=>{e&&e(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),z(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),z(this,"setViewDate",(e=>{if(!((e=S(e))instanceof Date))return;if(p(e,this.viewDate))return;let t=this.viewDate;this.viewDate=e;let{onChangeViewDate:s}=this.opts;if(s){let{month:e,year:t}=this.parsedViewDate;s({month:e,year:t,decade:this.curDecade})}this.trigger(i.eventChangeViewDate,e,t)})),z(this,"setFocusDate",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!e||(e=S(e))instanceof Date)&&(o.focusDate=e,o.trigger(i.eventChangeFocusDate,e,t))})),z(this,"setCurrentView",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o.viewIndexes.includes(e)){if(o.currentView=e,o.elIsInput&&o.visible&&o.setPosition(void 0,!0),o.trigger(i.eventChangeCurrentView,e),!o.views[e]){let t=o.views[e]=new T({dp:o,opts:o.opts,type:e});o.shouldUpdateDOM&&o.$content.appendChild(t.$el)}o.opts.onChangeView&&!t.silent&&o.opts.onChangeView(e)}})),z(this,"_updateLastSelectedDate",(e=>{this.lastSelectedDate=e,this.trigger(i.eventChangeLastSelectedDate,e)})),z(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:e,isMobile:t}=this.opts,i=this.$datepicker.parentNode;i&&i.removeChild(this.$datepicker),this.$el.removeEventListener(e,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),t&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0})),z(this,"update",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=w({},o.opts),{silent:n}=t;w(o.opts,e);let{timepicker:r,buttons:a,range:l,selectedDates:c,isMobile:d}=o.opts,h=o.visible||o.treatAsInline;o._createMinMaxDates(),o._limitViewDateByMaxMinDates(),o._handleLocale(),c&&(o.selectedDates=[],o.selectDate(c,{silent:n})),e.view&&o.setCurrentView(e.view,{silent:n}),o._setInputValue(),s.range&&!l?(o.rangeDateTo=!1,o.rangeDateFrom=!1):!s.range&&l&&o.selectedDates.length&&(o.rangeDateFrom=o.selectedDates[0],o.rangeDateTo=o.selectedDates[1]),s.timepicker&&!r?(h&&o.timepicker.destroy(),o.timepicker=!1,o.$timepicker.parentNode.removeChild(o.$timepicker)):!s.timepicker&&r&&o._addTimepicker(),!s.buttons&&a?o._addButtons():s.buttons&&!a?(o.buttons.destroy(),o.$buttons.parentNode.removeChild(o.$buttons)):h&&s.buttons&&a&&o.buttons.clearHtml().render(),!s.isMobile&&d?(o.treatAsInline||j||o._createMobileOverlay(),o._addMobileAttributes(),o.visible&&o._showMobileOverlay()):s.isMobile&&!d&&(o._removeMobileAttributes(),o.visible&&(j.classList.remove("-active-"),"function"!=typeof o.opts.position&&o.setPosition())),h&&(o.nav.update(),o.views[o.currentView].render(),o.currentView===i.days&&o.views[o.currentView].renderDayNames())})),z(this,"disableDate",((e,t)=>{(Array.isArray(e)?e:[e]).forEach((e=>{let i=S(e);if(!i)return;let s=t?"delete":"add";this.disabledDates[s](this.formatDate(i,"yyyy-MM-dd"));let n=this.getCell(i,this.currentViewSingular);n&&n.adpCell.render()}),[])})),z(this,"enableDate",(e=>{this.disableDate(e,!0)})),z(this,"isDateDisabled",(e=>{let t=S(e);return this.disabledDates.has(this.formatDate(t,"yyyy-MM-dd"))})),z(this,"isOtherMonth",(e=>{let{month:t}=l(e);return t!==this.parsedViewDate.month})),z(this,"isOtherYear",(e=>{let{year:t}=l(e);return t!==this.parsedViewDate.year})),z(this,"isOtherDecade",(e=>{let{year:t}=l(e),[i,s]=h(this.viewDate);return t<i||t>s})),z(this,"_onChangeSelectedDate",(e=>{let{silent:t}=e;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!t&&this._triggerOnSelect()}))})),z(this,"_onChangeFocusedDate",(function(e){let{viewDateTransition:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;let i=!1;t&&(i=o.isOtherMonth(e)||o.isOtherYear(e)||o.isOtherDecade(e)),i&&o.setViewDate(e),o.opts.onFocus&&o.opts.onFocus({datepicker:o,date:e})})),z(this,"_onChangeTime",(e=>{let{hours:t,minutes:i}=e,s=new Date,{lastSelectedDate:n,opts:{onSelect:r}}=this,o=n;n||(o=s);let a=this.getCell(o,this.currentViewSingular),l=a&&a.adpCell;l&&l.isDisabled||(o.setHours(t),o.setMinutes(i),n?(this._setInputValue(),r&&this._triggerOnSelect()):this.selectDate(o))})),z(this,"_onFocus",(e=>{this.visible||this.show()})),z(this,"_onBlur",(e=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),z(this,"_onMouseDown",(e=>{this.inFocus=!0})),z(this,"_onMouseUp",(e=>{this.inFocus=!1,this.$el.focus()})),z(this,"_onResize",(()=>{this.visible&&"function"!=typeof this.opts.position&&this.setPosition()})),z(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),z(this,"getViewDates",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.days;return T.getDatesFunction(e)(o)})),z(this,"isWeekend",(e=>this.opts.weekends.includes(e))),z(this,"getClampedDate",(e=>{let{minDate:t,maxDate:i}=this,s=e;return i&&m(e,i)?s=i:t&&g(e,t)&&(s=t),s})),this.$el=n(e),!this.$el)return;this.$datepicker=r({className:"air-datepicker"}),this.opts=w({},s,t),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:a,startDate:c}=this.opts;c||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=S(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=a,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:e,treatAsInline:t,opts:{inline:i,isMobile:s,selectedDates:r,keyboardNav:o,onlyTimepicker:a}}=this,l=n("body");(!F||F&&B&&!l.contains(B))&&!i&&this.elIsInput&&!this.$customContainer&&R.buildGlobalContainer(R.defaultGlobalContainerId),!s||j||t||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(i||this._bindEvents(),o&&!a&&(this.keyboardNav=new A({dp:this,opts:e}))),r&&this.selectDate(r,{silent:!0}),this.opts.visible&&!t&&this.show(),s&&!t&&this.$el.setAttribute("readonly",!0),t&&this._createComponents()}_createMobileOverlay(){j=r({className:"air-datepicker-overlay"}),B.appendChild(j)}_createComponents(){let{opts:e,treatAsInline:t,opts:{inline:i,buttons:s,timepicker:n,position:r,classes:o,onlyTimepicker:a,isMobile:l}}=this;this._buildBaseHtml(),this.elIsInput&&(i||this._setPositionClasses(r)),!i&&this.elIsInput||this.$datepicker.classList.add("-inline-"),o&&this.$datepicker.classList.add(...o.split(" ")),a&&this.$datepicker.classList.add("-only-timepicker-"),l&&!t&&this._addMobileAttributes(),this.views[this.currentView]=new T({dp:this,type:this.currentView,opts:e}),this.nav=new V({dp:this,opts:e}),n&&this._addTimepicker(),s&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let e in this.views)this.views[e].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){j.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){j.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:e,maxDate:t}=this.opts;this.minDate=!!e&&S(e),this.maxDate=!!t&&S(t)}_addTimepicker(){this.$timepicker=r({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new L({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=r({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new H({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(i.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(i.eventChangeFocusDate,this._onChangeFocusedDate),this.on(i.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:e}=this.opts;var t,i;this.elIsInput?e?(t=this.$datepicker,(i=this.$el).parentNode.insertBefore(t,i.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:e,dateFormat:t,firstDay:i,timepicker:s,onlyTimepicker:n,timeFormat:r,dateTimeSeparator:o}=this.opts;var a;this.locale=(a=e,JSON.parse(JSON.stringify(a))),t&&(this.locale.dateFormat=t),void 0!==r&&""!==r&&(this.locale.timeFormat=r);let{timeFormat:l}=this.locale;if(""!==i&&(this.locale.firstDay=i),s&&"function"!=typeof t){let e=l?o:"";this.locale.dateFormat=[this.locale.dateFormat,l||""].join(e)}n&&"function"!=typeof t&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(e){if("function"==typeof e)return void this.$datepicker.classList.add("-custom-position-");let t=(e=e.split(" "))[0],i=`air-datepicker -${t}-${e[1]}- -from-${t}-`;this.$datepicker.classList.add(...i.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:e,minDate:t,maxDate:i}=this;i&&m(e,i)&&this.setViewDate(i),t&&g(e,t)&&this.setViewDate(t)}formatDate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,t=arguments.length>1?arguments[1]:void 0;if(e=S(e),!(e instanceof Date))return;let i=t,s=this.locale,n=l(e),r=n.dayPeriod,o=h(e),a=R.replacer,c={T:e.getTime(),m:n.minutes,mm:n.fullMinutes,h:n.hours12,hh:n.fullHours12,H:n.hours,HH:n.fullHours,aa:r,AA:r.toUpperCase(),E:s.daysShort[n.day],EEEE:s.days[n.day],d:n.date,dd:n.fullDate,M:n.month+1,MM:n.fullMonth,MMM:s.monthsShort[n.month],MMMM:s.months[n.month],yy:n.year.toString().slice(-2),yyyy:n.year,yyyy1:o[0],yyyy2:o[1]};for(let[l,d]of Object.entries(c))i=a(i,_(l),d);return i}down(e){this._handleUpDownActions(e,"down")}up(e){this._handleUpDownActions(e,"up")}selectDate(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{currentView:n,parsedViewDate:r,selectedDates:o}=this,{updateTime:a}=s,{moveToOtherMonthsOnSelect:l,moveToOtherYearsOnSelect:c,multipleDates:d,range:h,autoClose:u,onBeforeSelect:p}=this.opts,g=o.length;if(Array.isArray(e))return e.forEach((e=>{this.selectDate(e,s)})),new Promise((e=>{setTimeout(e)}));if((e=S(e))instanceof Date){if(p&&!p({date:e,datepicker:this}))return Promise.resolve();if(n===i.days&&e.getMonth()!==r.month&&l&&(t=new Date(e.getFullYear(),e.getMonth(),1)),n===i.years&&e.getFullYear()!==r.year&&c&&(t=new Date(e.getFullYear(),0,1)),t&&this.setViewDate(t),d&&!h){if(g===d)return;this._checkIfDateIsSelected(e)||o.push(e)}else if(h)switch(g){case 1:o.push(e),this.rangeDateTo||(this.rangeDateTo=e),m(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=e),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[e],this.rangeDateFrom=e,this.rangeDateTo="";break;default:this.selectedDates=[e],this.rangeDateFrom=e}else this.selectedDates=[e];return this.trigger(i.eventChangeSelectedDate,{action:i.actionSelectDate,silent:null==s?void 0:s.silent,date:e,updateTime:a}),this._updateLastSelectedDate(e),u&&!this.timepickerIsActive&&this.visible&&(d||h?h&&1===g&&this.hide():this.hide()),new Promise((e=>{setTimeout(e)}))}}unselectDate(e){let t=this.selectedDates,s=this;
6if((e=S(e))instanceof Date)return t.some(((n,r)=>{if(p(n,e))return t.splice(r,1),s.selectedDates.length?(s.rangeDateTo="",s.rangeDateFrom=t[0],s._updateLastSelectedDate(s.selectedDates[s.selectedDates.length-1])):(s.rangeDateFrom="",s.rangeDateTo="",s._updateLastSelectedDate(!1)),this.trigger(i.eventChangeSelectedDate,{action:i.actionUnselectDate,date:e}),!0}))}replaceDate(e,t){let s=this.selectedDates.find((t=>p(t,e,this.currentView))),n=this.selectedDates.indexOf(s);n<0||p(this.selectedDates[n],t,this.currentView)||(this.selectedDates[n]=t,this.trigger(i.eventChangeSelectedDate,{action:i.actionSelectDate,date:t,updateTime:!0}),this._updateLastSelectedDate(t))}clear(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(i.eventChangeSelectedDate,{action:i.actionUnselectDate,silent:e.silent}),new Promise((e=>{setTimeout(e)}))}show(){let{onShow:e,isMobile:t}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,e&&this._scheduleCallAfterTransition(e),t&&this._showMobileOverlay()}hide(){let{onHide:e,isMobile:t}=this.opts,i=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((t=>{!this.customHide&&(t&&i||!t&&!i)&&this._finishHide(),e&&e(t)})),t&&j.classList.remove("-active-")}_triggerOnSelect(){let e=[],t=[],{selectedDates:i,locale:s,opts:{onSelect:n,multipleDates:r,range:o}}=this,a=r||o,l="function"==typeof s.dateFormat;i.length&&(e=i.map(f),t=l?r?s.dateFormat(e):e.map((e=>s.dateFormat(e))):e.map((e=>this.formatDate(e,s.dateFormat)))),n({date:a?e:e[0],formattedDate:a?t:t[0],datepicker:this})}_handleAlreadySelectedDates(e,t){let{selectedDates:i,rangeDateFrom:s,rangeDateTo:n}=this,{range:r,toggleSelected:o}=this.opts,a=i.length,l="function"==typeof o?o({datepicker:this,date:t}):o,c=Boolean(r&&1===a&&e),d=c?f(t):t;r&&!l&&(2!==a&&this.selectDate(d),2===a&&p(s,n))||(l?this.unselectDate(d):this._updateLastSelectedDate(c?d:e))}_handleUpDownActions(e,t){if(!((e=S(e||this.focusDate||this.viewDate))instanceof Date))return;let i="up"===t?this.viewIndex+1:this.viewIndex-1;i>2&&(i=2),i<0&&(i=0),this.setViewDate(new Date(e.getFullYear(),e.getMonth(),1)),this.setCurrentView(this.viewIndexes[i])}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.day;if(!((e=S(e))instanceof Date))return;let{year:s,month:n,date:r}=l(e),o=`[data-year="${s}"]`,a=`[data-month="${n}"]`,c={[i.day]:`${o}${a}[data-date="${r}"]`,[i.month]:`${o}${a}`,[i.year]:`${o}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(c[t]):void 0}_showMobileOverlay(){j.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((e,t)=>parseFloat(t)+e),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return l(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return h(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===i.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===i.days}get $container(){return this.$customContainer||B}static replacer(e,t,i){return e.replace(t,(function(e,t,s,n){return t+i+n}))}}var $;return z(R,"defaults",s),z(R,"version","3.5.3"),z(R,"defaultGlobalContainerId","air-datepicker-global-container"),$=R.prototype,Object.assign($,q),t.default}()),$.exports);const W=j(N);var G,U={};const Y=j((G||(G=1,Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0,U.default={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1}),U));function K(e,t){const i=document.createElement("button");return i.type="button",i.className=e,i.textContent=t,i}function X(e,t){const i=e.$hours,s=parseInt(i.value,10),n=parseInt(i.min,10),r=parseInt(i.max,10);i.value=Math.min(r,Math.max(n,s+t)),i.dispatchEvent(new Event("input",{bubbles:!0}))}class DateChooser{static OBSERVED_DATA_ATTRIBUTES=["data-min-date","data-max-date","data-min-date-offset-business-days","data-max-date-offset-business-days","data-max-date-offset-days"];configureDateLimits(e,t,i,s){const n=Number(t),r=Number(i),o=Number(s),a=new Date;Number.isInteger(n)&&n>=0&&(e.minDate=this.addBusinessDays(a,n)),Number.isInteger(r)&&r>=0?e.maxDate=this.addBusinessDays(a,r):Number.isInteger(o)&&o>=0&&(e.maxDate=this.addDays(a,o))}addDays(e,t){const i=new Date(e);return i.setDate(i.getDate()+t),i}addBusinessDays(e,t){const i=new Date(e);let s=t;for(;s>0;){i.setDate(i.getDate()+1);const e=i.getDay();0===e||6===e||s--}return i}parseDateFromAttribute(e){if(!e)return null;const[t,i,s]=e.split(".");return t&&i&&s?`${s}-${i}-${t}`:null}buildDynamicDateConfig(e){const t={minDate:!1,maxDate:!1},{minDate:i,maxDate:s,minDateOffsetBusinessDays:n,maxDateOffsetBusinessDays:r,maxDateOffsetDays:o}=e,a=this.parseDateFromAttribute(i);a&&(t.minDate=a);const l=this.parseDateFromAttribute(s);return l&&(t.maxDate=l),this.configureDateLimits(t,n,r,o),t}updateDateLimits(e,t){const i=this.buildDynamicDateConfig(e.dataset);t.update(i)}watchDateLimitAttributes(e,t){new MutationObserver((i=>{i.some((e=>DateChooser.OBSERVED_DATA_ATTRIBUTES.includes(e.attributeName)))&&this.updateDateLimits(e,t)})).observe(e,{attributes:!0,attributeFilter:DateChooser.OBSERVED_DATA_ATTRIBUTES})}constructor(e){const t=new Date,i=new Date(t.setFullYear(t.getFullYear()-30)),s={autoClose:!0,locale:Y,startDate:i,view:"years",navTitles:{days:"MMMM yyyy"}},n=function(e){if(!e)return null;const t=e.split(".");if(3!==t.length)return null;const i=new Date(Number(t[2]),Number(t[1])-1,Number(t[0]));return isNaN(i)?null:i}(e.value);n&&(s.selectedDates=[n],s.startDate=n,s.view="days");const{disabledDays:r,view:o,timeChooser:a,minOffsetHours:l,maxOffsetMonths:c}=e.dataset;if(Object.assign(s,this.buildDynamicDateConfig(e.dataset)),r){const e=r.split(",").map(Number);s.onRenderCell=({date:t,cellType:i})=>{if("day"===i&&e.includes(t.getDay()))return{disabled:!0}}}if(o&&(s.view=o),void 0!==a){const t=Number(l??12),i=Number(c??3),n=new Date,r=new Date(36e5*Math.ceil(n.getTime()/36e5)),o=new Date(r.getTime()+60*t*60*1e3),a=new Date;a.setMonth(a.getMonth()+i),s.autoClose=!1,s.toggleSelected=!1,s.timepicker=!0,s.dateTimeSeparator=" | ",s.timeFormat="HH:mm Uhr",s.view="days",s.minDate=o,s.maxDate=a,s.startDate=o,s.minMinutes=0,s.maxMinutes=0,s.onShow=t=>{t||function(e){const t=e.dateChooser.timepicker;if(!t)return;const i=t.$el.querySelector(".air-datepicker-time--current");
6if(!i||i.parentElement.classList.contains("adp-time-controls"))return;const s=document.createElement("div");s.className="adp-time-controls";const n=K("adp-time-btn adp-time-btn--minus","−"),r=K("adp-time-btn adp-time-btn--plus","+");i.parentNode.insertBefore(s,i),s.appendChild(n),s.appendChild(i),s.appendChild(r),n.addEventListener("click",(()=>X(t,-1))),r.addEventListener("click",(()=>X(t,1)))}(e)},s.buttons=[{content:"Bestätigen",className:"btn btn-secondary-light btn--small",onClick:e=>e.hide()}]}const d=new W(e,s);e.dateChooser=d,this.watchDateLimitAttributes(e,d)}}const Q=Object.freeze(Object.defineProperty({__proto__:null,default:class DateChooserInitializer{constructor(){document.querySelectorAll("[data-date-chooser]").forEach((e=>new DateChooser(e)))}}},Symbol.toStringTag,{value:"Module"}));const J=Object.freeze(Object.defineProperty({__proto__:null,default:class FormValidator{formButton;constructor(e=document){this.formButton=e.querySelectorAll('form [type="submit"]'),this.formButton.forEach((e=>{e.closest("[data-react-component]")||e.addEventListener("click",(e=>{const t=e.target.closest("form"),i=t.checkValidity();if(t.classList.toggle("invalid",!i),i)return;const s=t.querySelector(":invalid");if(s){const e=document.querySelector(".navigation--sticky"),t=e?e.offsetHeight:0;window.scrollTo({top:s.getBoundingClientRect().top-t-12})}}))}))}}},Symbol.toStringTag,{value:"Module"}));function Z(){const e=document.querySelector(".breakpoint"),t=window.getComputedStyle(e).getPropertyValue("display");let i="xs";return"block"===t?i="sm":"table"===t?i="ms":"flex"===t?i="md":"inline"===t?i="lg":"table-cell"===t?i="xl":"table-row"===t&&(i="xxl"),i}const ee=["xs","sm","ms","md","lg","xl","xxl"],te={from:0},ie={from:360},se={from:650,to:767},ne={from:768},re={from:1024},oe={from:1200},ae={from:1500};function le(e){window.requestAnimationFrame((()=>{e(Z())}))}function ce(e){const t=ee.indexOf(e);return ee.indexOf(Z())<t}const de=Object.freeze(Object.defineProperty({__proto__:null,default:class Searchbar{el;eventsBound=!1;constructor(e=document){this.el=e.querySelector(".searchbar"),this.el&&(window.addEventListener("resize-proxy:width",(()=>this.onBreakpointChange(Z()))),le((e=>this.onBreakpointChange(e))))}onBreakpointChange(e){["xs","sm"].includes(e)?this.unbindEvents():this.bindEvents()}bindEvents(){this.eventsBound||(this.el.querySelectorAll(".searchbar__input-opener, .searchbar__input-close").forEach((e=>e.addEventListener("click",this.toggleSearchbar))),this.eventsBound=!0)}unbindEvents(){this.eventsBound&&(this.el.querySelectorAll(".searchbar__input-opener, .searchbar__input-close").forEach((e=>e.removeEventListener("click",this.toggleSearchbar))),this.eventsBound=!1)}toggleSearchbar=()=>{event.preventDefault(),this.el.classList.toggle("searchbar--open"),this.el.querySelector('[type="text"]').focus()}}},Symbol.toStringTag,{value:"Module"}));class SearchbarNext{constructor(e){this.el=e,this.input=e.querySelector('input[name="search"]'),this.list=e.querySelector(".search__list"),this.closeBtn=e.querySelector(".search__close"),this.items=Array.from(this.list.querySelectorAll("li")),this.originalItems=[...this.items],this.createNoResultsItem(),this.bindEvents(),this.syncCloseBtn()}bindEvents(){this.input.addEventListener("input",(()=>this.onInput())),this.input.addEventListener("focus",(()=>this.onFocus())),this.input.addEventListener("keydown",(e=>this.onInputKeydown(e))),this.input.addEventListener("click",(e=>this.onInputClick(e))),this.closeBtn.addEventListener("click",(()=>this.clear())),this.items.forEach((e=>{e.setAttribute("tabindex","0"),e.addEventListener("click",(()=>this.selectItem(e))),e.addEventListener("keydown",(t=>this.onItemKeydown(t,e))),e.addEventListener("mouseenter",(()=>{this.setFocusedItem(e)}))})),document.addEventListener("click",(e=>this.onOutsideClick(e)))}onFocus(){this.skipNextFocus?this.skipNextFocus=!1:this.input.value.trim()?this.onInput():(this.resetListState(),this.items.forEach((e=>e.classList.remove("d-none"))),this.hideNoResults(),this.openList())}onInputClick(){this.input.value.trim()||this.resetListState(),this.openList()}onInput(){const e=this.input.value.toLowerCase();
6this.sortItemsByQuery(e),this.items.forEach((t=>{t.classList.toggle("d-none",Boolean(e&&!t.textContent.toLowerCase().includes(e)))})),0===this.getVisibleItems().length?this.showNoResults():this.hideNoResults(),this.openList(),this.syncCloseBtn()}onInputKeydown(e){if("Escape"===e.key)return void this.closeList();if("ArrowDown"!==e.key)return;e.preventDefault();const t=this.getVisibleItems()[0];t&&t.focus()}onItemKeydown(e,t){const i=this.getVisibleItems(),s=i.indexOf(t);if("Enter"===e.key||" "===e.key)return e.preventDefault(),void this.selectItem(t);if("Escape"===e.key)return this.closeList(),void this.input.focus();if("ArrowDown"!==e.key)"ArrowUp"===e.key&&(e.preventDefault(),0===s?this.input.focus():i[s-1].focus());else{e.preventDefault();const t=i[s+1];t&&t.focus()}}selectItem(e){this.input.value=e.textContent.trim(),this.closeList(),this.syncCloseBtn(),this.skipNextFocus=!0,this.input.focus(),this.el.dispatchEvent(new CustomEvent("searchbar:change",{bubbles:!0,detail:{value:e.dataset.value}}))}clear(){this.input.value="",this.resetListState(),this.items.forEach((e=>{e.classList.remove("d-none"),e.classList.remove("focused")})),this.hideNoResults(),this.closeList(),this.syncCloseBtn(),this.skipNextFocus=!0,this.input.focus(),this.el.dispatchEvent(new CustomEvent("searchbar:change",{bubbles:!0,detail:{value:""}}))}openList(){this.list.classList.remove("d-none")}closeList(){this.list.classList.add("d-none")}syncCloseBtn(){this.closeBtn.classList.toggle("d-none",!this.input.value)}getVisibleItems(){return this.items.filter((e=>!e.classList.contains("d-none")))}sortItemsByQuery(e){const t=e.trim(),i=[...this.items].sort(((e,i)=>{if(!t)return this.originalItems.indexOf(e)-this.originalItems.indexOf(i);const s=e.textContent.toLowerCase(),n=i.textContent.toLowerCase(),r=s.indexOf(t),o=n.indexOf(t),a=s.startsWith(t);return a!==n.startsWith(t)?a?-1:1:r!==o?r-o:s.localeCompare(n,"de")}));i.forEach((e=>{this.list.insertBefore(e,this.noResultsItem)})),this.items=i}resetListState(){this.sortItemsByQuery(""),this.items.forEach((e=>e.classList.remove("focused")))}createNoResultsItem(){this.noResultsItem=document.createElement("li"),this.noResultsItem.textContent=this.getNoResultsText(),this.noResultsItem.classList.add("d-none"),this.noResultsItem.setAttribute("tabindex","-1"),this.noResultsItem.setAttribute("aria-disabled","true"),this.list.appendChild(this.noResultsItem)}showNoResults(){this.noResultsItem.textContent=this.getNoResultsText(),this.noResultsItem.classList.remove("d-none")}hideNoResults(){this.noResultsItem.classList.add("d-none")}getNoResultsText(){const e=this.el.dataset.noResultsText?.trim();return e||"Keine Ergebnisse"}setFocusedItem(e){this.items.forEach((e=>e.classList.remove("focused"))),e.classList.add("focused")}onOutsideClick(e){this.el.contains(e.target)||this.closeList()}}const he=Object.freeze(Object.defineProperty({__proto__:null,default:class SearchbarNextInitializer{constructor(){document.querySelectorAll("[data-dropdown-search]").forEach((e=>new SearchbarNext(e)))}}},Symbol.toStringTag,{value:"Module"})),ue="select-container--ul-expanded",pe=".select-container__selectbox",me=document.querySelector(".shopping-cart-table__item-select");let ge=class Select{selectContainer;select;ul;ulOptions;button;selBox;element;elementText;boundUpdateULPosition;boundOutsideClickHandler;resizeHandler;hoveringAbove;ref;filter;filterInput;filterClose;filterNoResults;lastFocusedElement;constructor(e){this.selectContainer=e,this.selectContainer.ref=this,this.select=this.selectContainer.querySelector("select"),this.select.addEventListener("change",this.selectChanged.bind(this)),this.ul=this.selectContainer.querySelector("ul"),this.customizeUL(),this.filter=this.ul.querySelector(".select-container__filter"),this.filter&&(this.filterNoResults=this.filter.querySelector(".select-container__filter-no-results")),this.bindOptions(),this.bindFocusEvents(),this.button=this.selectContainer.querySelector("button"),this.selBox=this.selectContainer.querySelector(pe),null!=this.button&&(this.element=this.button,this.elementText=this.button),null!=this.selBox&&(this.element=this.selBox,this.element=this.selectContainer.querySelector(pe),this.elementText=this.selBox.querySelector("span")),this.filter&&(["click","keyup"].forEach((e=>{this.filter.addEventListener(e,(e=>{e.stopImmediatePropagation()}))})),this.initFilter()),this.element.addEventListener("click",this.toggleUL.bind(this)),this.element.addEventListener("keyup",(e=>{this.keyboardEvent(e)})),this.ul.addEventListener("keyup",(e=>{if(13===e.which||32===e.which){e.preventDefault(),this.ulChanged(),this.ul.blur();const t=this.ulOptions.filter((e=>e.classList.contains("focused")))[0];return t&&t.classList.remove("focused"),void this.lastFocusedElement.focus()}"Escape"===e.key&&(this.closeUL(),this.lastFocusedElement.focus()),this.changeFocus(e)})),this.boundTrapFocus=this.trapFocus.bind(this),this.ul.addEventListener("keydown",this.boundTrapFocus),this.ulOptions.forEach((e=>{e.addEventListener("mouseenter",(()=>{this.hoveringAbove=e}))})),this.selectContainer.classList.contains(ue)&&setTimeout((()=>{this.openUL(),this.boundOutsideClickHandler&&document.removeEventListener("click",this.boundOutsideClickHandler),this.resizeHandler&&window.removeEventListener("resize-proxy:width",this.resizeHandler),this.resizeHandler=this.updateULPosition.bind(this),window.addEventListener("resize-proxy:width",this.resizeHandler)}),100)}trapFocus(e){if("Tab"!==e.key)return;const t=Array.from(this.ulOptions).filter((e=>!e.classList.contains("d-none")));if(0===t.length)return;const i=t[0],s=t[t.length-1],n=document.activeElement;e.shiftKey||n!==s?e.shiftKey&&n===i&&(e.preventDefault(),s.focus()):(e.preventDefault(),i.focus())}bindFocusEvents(){this.ul.addEventListener("focusin",(e=>{this.ulOptions.forEach((e=>e.classList.remove("focused"))),e.target&&this.ul.contains(e.target)&&e.target.classList.add("focused")}))}initFilter(){this.filterInput=this.filter.querySelector("input"),this.filterClose=this.filter.querySelector(".close-icon"),this.filterInput.addEventListener("input",(e=>{e.preventDefault(),e.stopImmediatePropagation(),this.resetFilterUl(),this.filterCheckIcons()})),this.filterClose.addEventListener("click",(()=>{this.resetFilter(),this.resetFilterUl()}))}resetFilterUl(){this.ulOptions.forEach((e=>{e.classList.toggle("d-none",!(!this.filterInput.value||e.getAttribute("title").toLowerCase().includes(this.filterInput.value.toLowerCase())))}
6)),this.filterNoResults.classList.toggle("d-none",Boolean(this.ul.querySelectorAll("li:not(.d-none):not(.select-container__filter)").length))}resetFilter(){this.filterInput&&(this.filterInput.value="",this.filterCheckIcons(),this.filterNoResults.classList.add("d-none"))}filterCheckIcons(){this.filterClose.classList.toggle("d-none",!this.filterInput.value),this.filter.querySelector(".search-icon").classList.toggle("d-none",Boolean(this.filterInput.value))}bindOptions(){this.ulOptions=Array.from(this.ul.querySelectorAll("li:not(.select-container__filter)"));for(let e=0;e<this.ulOptions.length;e++)this.ulOptions[e].addEventListener("click",this.ulChanged.bind(this));this.resetFilter()}keyboardEvent(e){if("ArrowDown"!==e.key&&"Enter"!==e.key&&" "!==e.key||this.selectContainer.classList.contains(ue))return;e.preventDefault(),this.lastFocusedElement=document.activeElement,this.openUL();const t=this.getFirstValidOption();t&&(t.classList.add("focused"),t.focus())}getFirstValidOption(){return Array.from(this.ulOptions).find((e=>"dummy"!==e.dataset.value&&!e.classList.contains("d-none")))}changeFocus(e){if(!["ArrowUp","ArrowDown"].includes(e.key))return;e.preventDefault();let t=null;this.ulOptions.filter(((e,i)=>{if(e.classList.contains("focused"))return t=i,e.classList.remove("focused"),!0}));let i=0;"ArrowDown"===e.key?i=null===t||t===this.ulOptions.length-1?0:parseInt(t)+1:"ArrowUp"===e.key&&(i=0===t?this.ulOptions.length-1:t-1),this.ulOptions[i].classList.add("focused"),this.ulOptions[i].focus(),this.ulOptions[i].scrollIntoView()}selectChanged(){this.unselectOldULOption();const e=this.select.value,t=Array.from(this.ulOptions).find((t=>t.dataset.value===e));t&&(t.setAttribute("aria-selected",(!0).toString()),this.elementText.innerHTML=this.selectContainer.classList.contains("select-container--styled-sm")?t.getAttribute("title")||"":t.innerHTML.trim())}ulChanged(e){let t;this.closeUL(),this.unselectOldULOption(),e?t=e.currentTarget:(t=this.ulOptions.filter((e=>e.classList.contains("focused")))[0],t||(t=this.hoveringAbove)),t.setAttribute("aria-selected",(!0).toString());const i=t.dataset.value;this.select.querySelector(`[value="${i}"]`).selected=!0;const s=document.createEvent("CustomEvent");s.initCustomEvent("change",!0,!0,{}),this.select.dispatchEvent(s),this.select.hasAttribute("data-show-hide-select")&&window.initializedClasses.ShowHideSelect.trigger(this.select)}unselectOldULOption(){const e=this.ulOptions.filter((e=>e.hasAttribute("aria-selected")))[0];e&&e.removeAttribute("aria-selected")}updateULPosition(){const e=this.element.getBoundingClientRect().left,t=this.element.getBoundingClientRect().bottom;this.ul.style.left=e+"px",this.ul.style.top=t+"px",this.filter?this.ul.style.width=this.element.offsetWidth+"px":this.ul.style.minWidth=this.element.offsetWidth+"px",this.ul.style.position="fixed",this.ul.style.willChange="top",this.ul.style.setProperty("--button-width",this.element.offsetWidth+"px"),me&&(this.ul.style.maxHeight="210px")}toggleUL(){this.filter&&0===this.ulOptions.length||(this.selectContainer.classList.contains(ue)?this.closeUL():this.openUL())}openUL(){document.body.appendChild(this.ul),this.updateULPosition(),this.boundUpdateULPosition=this.updateULPosition.bind(this),document.addEventListener("scroll",this.boundUpdateULPosition),this.element.setAttribute("aria-expanded",(!0).toString()),this.selectContainer.classList.add(ue),this.ul.classList.add(ue),this.element.blur(),this.ul.focus(),this.boundOutsideClickHandler=this.outsideClickHandler.bind(this),document.addEventListener("click",this.boundOutsideClickHandler),this.resizeHandler&&window.removeEventListener("resize-proxy:width",this.resizeHandler),this.resizeHandler=this.closeUL.bind(this),window.addEventListener("resize-proxy:width",this.resizeHandler)}closeUL(){this.selectContainer.appendChild(this.ul),this.ul.style.minWidth="",this.ul.style.position="",this.ul.style.left="",this.ul.style.top="",this.ul.style.willChange="",this.element.removeAttribute("aria-expanded"),this.selectContainer.classList.remove(ue),this.ul.classList.remove(ue),this.ul.blur(),this.boundUpdateULPosition&&document.removeEventListener("scroll",this.boundUpdateULPosition),this.boundOutsideClickHandler&&document.removeEventListener("click",this.boundOutsideClickHandler),this.resizeHandler&&window.removeEventListener("resize-proxy:width",this.resizeHandler)}outsideClickHandler(e){e.target.closest(".select-container")!==this.selectContainer&&this.closeUL()}customizeUL(){this.selectContainer.parentElement.classList.contains("card--product-buy-price")&&this.selectContainer.parentElement.className.includes("bg-gradient")&&this.ul.classList.add("select-container__ul--styled-sm--theme-blue")}};const fe=Object.freeze(Object.defineProperty({__proto__:null,default:class SelectInitializer{constructor(e=document){e.querySelectorAll("[data-select]").forEach((e=>e.component=new ge(e)))}}},Symbol.toStringTag,{value:"Module"}));class MessageSwitch{constructor(e){this.switchButton=e;const t=this.switchButton.dataset.switchTargetId;t&&(this.switchTarget=document.getElementById(t),this.switchTarget&&this.switchButton.addEventListener("change",(()=>this.onChange())))}onChange(){this.switchTarget.disabled=!this.switchButton.checked}}const ve=Object.freeze(Object.defineProperty({__proto__:null,MessageSwitch:MessageSwitch,default:class MessageSwitchInitializer{constructor(e=document){e.querySelectorAll("[data-switch]").forEach((e=>e.messageSwitch||(e.messageSwitch=new MessageSwitch(e))))}}},Symbol.toStringTag,{value:"Module"}));class ColorChooser{constructor(e){this.element=e,this.tile=this.element.querySelectorAll(".color-chooser__tile"),this.tile.forEach((e=>{e.addEventListener("keyup",this.handleLabelKeyup)}))}handleLabelKeyup(e){"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()}}const be=Object.freeze(Object.defineProperty({__proto__:null,ColorChooser:ColorChooser,default:class ColorChooserInitializer{constructor(e=document){e.querySelectorAll(".color-chooser").forEach((e=>new ColorChooser(e)))}}},Symbol.toStringTag,{value:"Module"}));class VariantChooser{constructor(e){this.element=e,this.tile=this.element.querySelectorAll(".variant-chooser__tile"),this.tile.forEach((e=>{e.addEventListener("keyup",this.handleLabelKeyup)}))}handleLabelKeyup(e){"Enter"!==e.key&&" "!==e.key||e.currentTarget.click()}}const ye=Object.freeze(Object.defineProperty({__proto__:null,VariantChooser:VariantChooser,default:class VariantChooserInitializer{constructor(e=document){e.querySelectorAll(".variant-chooser").forEach((e=>new VariantChooser(e)))}}},Symbol.toStringTag,{value:"Module"}));class IframeOverlay{constructor(e){e.addEventListener("click",(()=>this.hide(e))),e.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.hide(e))}))}hide(e){e.classList.add("d-none")}}const we=Object.freeze(Object.defineProperty({__proto__:null,default:class IframeOverlayInitializer{constructor(e=document){e.querySelectorAll(".iframe-wrapper__overlay-image").forEach((e=>new IframeOverlay(e)))}}},Symbol.toStringTag,{value:"Module"})),Se=3e3,_e=500,Ee=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed",'[tabindex]:not
6([tabindex="-1"])',"[contenteditable]",".popover__close"],Ce="modal-lite-iframe-ios",xe={ie:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,edge12:/\bEdge\/12/,android:/Android/,iOS:/iP(ad|hone|od).*OS/,FF:/Firefox/};function Te(e){return xe[e].test(window.navigator.userAgent)}const Le=Object.freeze(Object.defineProperty({__proto__:null,isBrowser:Te},Symbol.toStringTag,{value:"Module"}));var ke="top",Ae="bottom",Oe="right",Ie="left",De="auto",Pe=[ke,Ae,Oe,Ie],Me="start",qe="end",ze="clippingParents",He="viewport",Be="popper",je="reference",Fe=Pe.reduce((function(e,t){return e.concat([t+"-"+Me,t+"-"+qe])}),[]),$e=[].concat(Pe,[De]).reduce((function(e,t){return e.concat([t,t+"-"+Me,t+"-"+qe])}),[]),Ne="beforeRead",Ve="read",Re="afterRead",We="beforeMain",Ge="main",Ue="afterMain",Ye="beforeWrite",Ke="write",Xe="afterWrite",Qe=[Ne,Ve,Re,We,Ge,Ue,Ye,Ke,Xe];function Je(e){return e?(e.nodeName||"").toLowerCase():null}function Ze(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function et(e){return e instanceof Ze(e).Element||e instanceof Element}function tt(e){return e instanceof Ze(e).HTMLElement||e instanceof HTMLElement}function it(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ze(e).ShadowRoot||e instanceof ShadowRoot)}const st={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},n=t.elements[e];tt(n)&&Je(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(e){var t=s[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],n=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});tt(s)&&Je(s)&&(Object.assign(s.style,r),Object.keys(n).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]};function nt(e){return e.split("-")[0]}var rt=Math.max,ot=Math.min,at=Math.round;function lt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(lt())}function dt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),n=1,r=1;t&&tt(e)&&(n=e.offsetWidth>0&&at(s.width)/e.offsetWidth||1,r=e.offsetHeight>0&&at(s.height)/e.offsetHeight||1);var o=(et(e)?Ze(e):window).visualViewport,a=!ct()&&i,l=(s.left+(a&&o?o.offsetLeft:0))/n,c=(s.top+(a&&o?o.offsetTop:0))/r,d=s.width/n,h=s.height/r;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function ht(e){var t=dt(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function ut(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&it(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function pt(e){return Ze(e).getComputedStyle(e)}function mt(e){return["table","td","th"].indexOf(Je(e))>=0}function gt(e){return((et(e)?e.ownerDocument:e.document)||window.document).documentElement}function ft(e){return"html"===Je(e)?e:e.assignedSlot||e.parentNode||(it(e)?e.host:null)||gt(e)}function vt(e){return tt(e)&&"fixed"!==pt(e).position?e.offsetParent:null}function bt(e){for(var t=Ze(e),i=vt(e);i&&mt(i)&&"static"===pt(i).position;)i=vt(i);return i&&("html"===Je(i)||"body"===Je(i)&&"static"===pt(i).position)?t:i||function(e){var t=/firefox/i.test(lt());if(/Trident/i.test(lt())&&tt(e)&&"fixed"===pt(e).position)return null;var i=ft(e);for(it(i)&&(i=i.host);tt(i)&&["html","body"].indexOf(Je(i))<0;){var s=pt(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}function yt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wt(e,t,i){return rt(e,ot(t,i))}function St(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _t(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const Et={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,s=e.name,n=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=nt(i.placement),l=yt(a),c=[Ie,Oe].indexOf(a)>=0?"height":"width";if(r&&o){var d=function(e,t){return St("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_t(e,Pe))}(n.padding,i),h=ht(r),u="y"===l?ke:Ie,p="y"===l?Ae:Oe,m=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],g=o[l]-i.rects.reference[l],f=bt(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,b=m/2-g/2,y=d[u],w=v-h[c]-d[p],S=v/2-h[c]/2+b,_=wt(y,S,w),E=l;i.modifiersData[s]=((t={})[E]=_,t.centerOffset=_-S,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&ut(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ct(e){return e.split("-")[1]}var xt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tt(e){var t,i=e.popper,s=e.popperRect,n=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=o.x,p=void 0===u?0:u,m=o.y,g=void 0===m?0:m,f="function"==typeof d?d({x:p,y:g}):{x:p,y:g};p=f.x,g=f.y;var v=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=Ie,w=ke,S=window;if(c){var _=bt(i),E="clientHeight",x="clientWidth";if(_===Ze(i)&&"static"!==pt(_=gt(i)).position&&"absolute"===a&&(E="scrollHeight",x="scrollWidth"),n===ke||(n===Ie||n===Oe)&&r===qe)w=Ae,g-=(h&&_===S&&S.visualVie
vendor: 5,084 bytes, line 6
6wport?S.visualViewport.height:_[E])-s.height,g*=l?1:-1;if(n===Ie||(n===ke||n===Ae)&&r===qe)y=Oe,p-=(h&&_===S&&S.visualViewport?S.visualViewport.width:_[x])-s.width,p*=l?1:-1}var k,O=Object.assign({position:a},c&&xt),I=!0===d?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:at(i*n)/n||0,y:at(s*n)/n||0}}({x:p,y:g},Ze(i)):{x:p,y:g};return p=I.x,g=I.y,l?Object.assign({},O,((k={})[w]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},O,((t={})[w]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const Lt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,n=void 0===s||s,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:nt(t.placement),variation:Ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Tt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var kt={passive:!0};const At={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=e.options,n=s.scroll,r=void 0===n||n,o=s.resize,a=void 0===o||o,l=Ze(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",i.update,kt)})),a&&l.addEventListener("resize",i.update,kt),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",i.update,kt)})),a&&l.removeEventListener("resize",i.update,kt)}},data:{}};var Ot={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ot[e]}))}var Dt={start:"end",end:"start"};function Pt(e){return e.replace(/start|end/g,(function(e){return Dt[e]}))}function Mt(e){var t=Ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(e){return dt(gt(e)).left+Mt(e).scrollLeft}function zt(e){var t=pt(e),i=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function Ht(e){return["html","body","#document"].indexOf(Je(e))>=0?e.ownerDocument.body:tt(e)&&zt(e)?e:Ht(ft(e))}function Bt(e,t){var i;void 0===t&&(t=[]);var s=Ht(e),n=s===(null==(i=e.ownerDocument)?void 0:i.body),r=Ze(s),o=n?[r].concat(r.visualViewport||[],zt(s)?s:[]):s,a=t.concat(o);return n?a:a.concat(Bt(ft(o)))}function jt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ft(e,t,i){return t===He?jt(function(e,t){var i=Ze(e),s=gt(e),n=i.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,l=0;if(n){r=n.width,o=n.height;var c=ct();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:a+qt(e),y:l}}(e,i)):et(t)?function(e,t){var i=dt(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):jt(function(e){var t,i=gt(e),s=Mt(e),n=null==(t=e.ownerDocument)?void 0:t.body,r=rt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=rt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+qt(e),l=-s.scrollTop;return"rtl"===pt(n||i).direction&&(a+=rt(i.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}(gt(e)))}function $t(e,t,i,s){var n="clippingParents"===t?function(e){var t=Bt(ft(e)),i=["absolute","fixed"].indexOf(pt(e).position)>=0&&tt(e)?bt(e):e;return et(i)?t.filter((function(e){return et(e)&&ut(e,i)&&"body"!==Je(e)})):[]}(e):[].concat(t),r=[].concat(n,[i]),o=r[0],a=r.reduce((function(t,i){var n=Ft(e,i,s);return t.top=rt(n.top,t.top),t.right=ot(n.right,t.right),t.bottom=ot(n.bottom,t.bottom),t.left=rt(n.left,t.left),t}),Ft(e,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Nt(e){var t,i=e.reference,s=e.element,n=e.placement,r=n?nt(n):null,o=n?Ct(n):null,a=i.x+i.width/2-s.width/2,l=i.y+i.height/2-s.height/2;switch(r){case ke:t={x:a,y:i.y-s.height};break;case Ae:t={x:a,y:i.y+i.height};break;case Oe:t={x:i.x+i.width,y:l};break;case Ie:t={x:i.x-s.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?yt(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case Me:t[c]=t[c]-(i[d]/2-s[d]/2);break;case qe:t[c]=t[c]+(i[d]/2-s[d]/2)}}return t}function Vt(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=void 0===s?e.placement:s,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?ze:a,c=i.rootBoundary,d=void 0===c?He:c,h=i.elementContext,u=void 0===h?Be:h,p=i.altBoundary,m=void 0!==p&&p,g=i.padding,f
vendor: 4,937 bytes, line 6
6=void 0===g?0:g,v=St("number"!=typeof f?f:_t(f,Pe)),b=u===Be?je:Be,y=e.rects.popper,w=e.elements[m?b:u],S=$t(et(w)?w:w.contextElement||gt(e.elements.popper),l,d,o),_=dt(e.elements.reference),E=Nt({reference:_,element:y,placement:n}),x=jt(Object.assign({},y,E)),k=u===Be?x:_,O={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},I=e.modifiersData.offset;if(u===Be&&I){var D=I[n];Object.keys(O).forEach((function(e){var t=[Oe,Ae].indexOf(e)>=0?1:-1,i=[ke,Ae].indexOf(e)>=0?"y":"x";O[e]+=D[i]*t}))}return O}const Rt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var n=i.mainAxis,r=void 0===n||n,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,p=i.flipVariations,m=void 0===p||p,g=i.allowedAutoPlacements,f=t.options.placement,v=nt(f),b=l||(v===f||!m?[It(f)]:function(e){if(nt(e)===De)return[];var t=It(e);return[Pt(e),t,Pt(t)]}(f)),y=[f].concat(b).reduce((function(e,i){return e.concat(nt(i)===De?function(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?$e:l,d=Ct(s),h=d?a?Fe:Fe.filter((function(e){return Ct(e)===d})):Pe,u=h.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=h);var p=u.reduce((function(t,i){return t[i]=Vt(e,{placement:i,boundary:n,rootBoundary:r,padding:o})[nt(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:i,boundary:d,rootBoundary:h,padding:c,flipVariations:m,allowedAutoPlacements:g}):i)}),[]),w=t.rects.reference,S=t.rects.popper,_=new Map,E=!0,x=y[0],k=0;k<y.length;k++){var O=y[k],I=nt(O),D=Ct(O)===Me,P=[ke,Ae].indexOf(I)>=0,M=P?"width":"height",q=Vt(t,{placement:O,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),z=P?D?Oe:Ie:D?Ae:ke;w[M]>S[M]&&(z=It(z));var B=It(z),j=[];if(r&&j.push(q[I]<=0),a&&j.push(q[z]<=0,q[B]<=0),j.every((function(e){return e}))){x=O,E=!1;break}_.set(O,j)}if(E)for(var F=function(e){var t=y.find((function(t){var i=_.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},$=m?3:1;$>0;$--){if("break"===F($))break}t.placement!==x&&(t.modifiersData[s]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Wt(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Gt(e){return[ke,Oe,Ae,Ie].some((function(t){return e[t]>=0}))}const Ut={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,o=Vt(t,{elementContext:"reference"}),a=Vt(t,{altBoundary:!0}),l=Wt(o,s),c=Wt(a,n,r),d=Gt(l),h=Gt(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}};const Yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.offset,r=void 0===n?[0,0]:n,o=$e.reduce((function(e,i){return e[i]=function(e,t,i){var s=nt(e),n=[Ie,ke].indexOf(s)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*n,[Ie,Oe].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,r),e}),{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=o}};const Kt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Nt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};const Xt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.mainAxis,r=void 0===n||n,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,p=void 0===u||u,m=i.tetherOffset,g=void 0===m?0:m,f=Vt(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),v=nt(t.placement),b=Ct(t.placement),y=!b,w=yt(v),S="x"===w?"y":"x",_=t.modifiersData.popperOffsets,E=t.rects.reference,x=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(_){if(r){var P,M="y"===w?ke:Ie,q="y"===w?Ae:Oe,z="y"===w?"height":"width",B=_[w],j=B+f[M],F=B-f[q],$=p?-x[z]/2:0,N=b===Me?E[z]:x[z],W=b===Me?-x[z]:-E[z],G=t.elements.arrow,U=p&&G?ht(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0}
6,K=Y[M],X=Y[q],Q=wt(0,E[z],U[z]),J=y?E[z]/2-$-Q-K-O.mainAxis:N-Q-K-O.mainAxis,Z=y?-E[z]/2+$+Q+X+O.mainAxis:W+Q+X+O.mainAxis,ee=t.elements.arrow&&bt(t.elements.arrow),te=ee?"y"===w?ee.clientTop||0:ee.clientLeft||0:0,ie=null!=(P=null==I?void 0:I[w])?P:0,se=B+Z-ie,ne=wt(p?ot(j,B+J-ie-te):j,B,p?rt(F,se):F);_[w]=ne,D[w]=ne-B}if(a){var re,oe="x"===w?ke:Ie,ae="x"===w?Ae:Oe,le=_[S],ce="y"===S?"height":"width",de=le+f[oe],he=le-f[ae],ue=-1!==[ke,Ie].indexOf(v),pe=null!=(re=null==I?void 0:I[S])?re:0,me=ue?de:le-E[ce]-x[ce]-pe+O.altAxis,ge=ue?le+E[ce]+x[ce]-pe-O.altAxis:he,fe=p&&ue?(be=wt(me,le,ve=ge))>ve?ve:be:wt(p?me:de,le,p?ge:he);_[S]=fe,D[S]=fe-le}var ve,be;t.modifiersData[s]=D}},requiresIfExists:["offset"]};function Qt(e,t,i){void 0===i&&(i=!1);var s,n,r=tt(t),o=tt(t)&&function(e){var t=e.getBoundingClientRect(),i=at(t.width)/e.offsetWidth||1,s=at(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),a=gt(t),l=dt(e,o,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!i)&&(("body"!==Je(t)||zt(a))&&(c=(s=t)!==Ze(s)&&tt(s)?{scrollLeft:(n=s).scrollLeft,scrollTop:n.scrollTop}:Mt(s)),tt(t)?((d=dt(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=qt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Jt(e){var t=new Map,i=new Set,s=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var s=t.get(e);s&&n(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),s}var Zt={placement:"bottom",modifiers:[],strategy:"absolute"};function ei(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ti(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,s=void 0===i?[]:i,n=t.defaultOptions,r=void 0===n?Zt:n;return function(e,t,i){void 0===i&&(i=r);var n,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var n="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},r,a.options,n),a.scrollParents={reference:et(e)?Bt(e):e.contextElement?Bt(e.contextElement):[],popper:Bt(t)};var o,c,u=function(e){var t=Jt(e);return Qe.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((o=[].concat(s,a.options.modifiers),c=o.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=u.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,s=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var r=n({state:a,name:t,instance:d,options:s}),o=function(){};l.push(r||o)}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(ei(t,i)){a.rects={reference:Qt(t,bt(i),"fixed"===a.options.strategy),popper:ht(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<a.orderedModifiers.length;s++)if(!0!==a.reset){var n=a.orderedModifiers[s],r=n.fn,o=n.options,l=void 0===o?{}:o,h=n.name;"function"==typeof r&&(a=r({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,s=-1}}},update:(n=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(n())}))}))),o}),destroy:function(){h(),c=!0}};if(!ei(e,t))return d;function h(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var ii=ti({defaultModifiers:[At,Kt,Lt,st,Yt,Rt,Xt,Et,Ut]});const si=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Ue,afterRead:Re,afterWrite:Xe,applyStyles:st,arrow:Et,auto:De,basePlacements:Pe,beforeMain:We,beforeRead:Ne,beforeWrite:Ye,bottom:Ae,clippingParents:ze,computeStyles:Lt,createPopper:ii,detectOverflow:Vt,end:qe,eventListeners:At,flip:Rt,hide:Ut,left:Ie,main:Ge,modifierPhases:Qe,offset:Yt,placements:$e,popper:Be,popperGenerator:ti,popperOffsets:Kt,preventOverflow:Xt,read:Ve,reference:je,right:Oe,start:Me,top:ke,variationPlacements:Fe,viewport:He,write:Ke},Symbol.toStringTag,{value:"Module"})),ni=new Map,ri={set(e,t,i){ni.has(e)||ni.set(e,new Map);const s=ni.get(e);s.has(t)||0===s.size?s.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,t)=>ni.has(e)&&ni.get(e).get(t)||null,remove(e,t){if(!ni.has(e))return;const i=ni.get(e);i.delete(t),0===i.size&&ni.delete(e)}},oi="transitionend",ai=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>
6`#${CSS.escape(t)}`))),e),li=e=>{e.dispatchEvent(new Event(oi))},ci=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),di=e=>ci(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(ai(e)):null,hi=e=>{if(!ci(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},ui=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),pi=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?pi(e.parentNode):null},mi=()=>{},gi=e=>{e.offsetHeight},fi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vi=[],bi=()=>"rtl"===document.documentElement.dir,yi=e=>{var t;t=()=>{const t=fi();if(t){const i=e.NAME,s=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=s,e.jQueryInterface)}},"loading"===document.readyState?(vi.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of vi)e()})),vi.push(t)):t()},wi=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,Si=(e,t,i=!0)=>{if(!i)return void wi(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),n=Number.parseFloat(i);return s||n?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let n=!1;const r=({target:i})=>{i===t&&(n=!0,t.removeEventListener(oi,r),wi(e))};t.addEventListener(oi,r),setTimeout((()=>{n||li(t)}),s)},_i=(e,t,i,s)=>{const n=e.length;let r=e.indexOf(t);return-1===r?!i&&s?e[n-1]:e[0]:(r+=i?1:-1,s&&(r=(r+n)%n),e[Math.max(0,Math.min(r,n-1))])},Ei=/[^.]*(?=\..*)\.|.*/,Ci=/\..*/,xi=/::\d+$/,Ti={};let Li=1;
vendor: 5,962 bytes, line 6
6const ki={mouseenter:"mouseover",mouseleave:"mouseout"},Ai=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Oi(e,t){return t&&`${t}::${Li++}`||e.uidEvent||Li++}function Ii(e){const t=Oi(e);return e.uidEvent=t,Ti[t]=Ti[t]||{},Ti[t]}function Di(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function Pi(e,t,i){const s="string"==typeof t,n=s?i:t||i;let r=Hi(e);return Ai.has(r)||(r=e),[s,n,r]}function Mi(e,t,i,s,n){if("string"!=typeof t||!e)return;let[r,o,a]=Pi(t,i,s);if(t in ki){o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o)}const l=Ii(e),c=l[a]||(l[a]={}),d=Di(c,o,r?i:null);if(d)return void(d.oneOff=d.oneOff&&n);const h=Oi(o,t.replace(Ei,"")),u=r?function(e,t,i){return function s(n){const r=e.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return ji(n,{delegateTarget:o}),s.oneOff&&Bi.off(e,n.type,t,i),i.apply(o,[n])}}(e,i,o):function(e,t){return function i(s){return ji(s,{delegateTarget:e}),i.oneOff&&Bi.off(e,s.type,t),t.apply(e,[s])}}(e,o);u.delegationSelector=r?i:null,u.callable=o,u.oneOff=n,u.uidEvent=h,c[h]=u,e.addEventListener(a,u,r)}function qi(e,t,i,s,n){const r=Di(t[i],s,n);r&&(e.removeEventListener(i,r,Boolean(n)),delete t[i][r.uidEvent])}function zi(e,t,i,s){const n=t[i]||{};for(const[r,o]of Object.entries(n))r.includes(s)&&qi(e,t,i,o.callable,o.delegationSelector)}function Hi(e){return e=e.replace(Ci,""),ki[e]||e}const Bi={on(e,t,i,s){Mi(e,t,i,s,!1)},one(e,t,i,s){Mi(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[n,r,o]=Pi(t,i,s),a=o!==t,l=Ii(e),c=l[o]||{},d=t.startsWith(".");if(void 0===r){if(d)for(const i of Object.keys(l))zi(e,l,i,t.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(xi,"");a&&!t.includes(n)||qi(e,l,o,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;qi(e,l,o,r,n?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=fi();let n=null,r=!0,o=!0,a=!1;t!==Hi(t)&&s&&(n=s.Event(t,i),s(e).trigger(n),r=!n.isPropagationStopped(),o=!n.isImmediatePropagationStopped(),a=n.isDefaultPrevented());const l=ji(new Event(t,{bubbles:r,cancelable:!0}),i);return a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function ji(e,t={}){for(const[s,n]of Object.entries(t))try{e[s]=n}catch(i){Object.defineProperty(e,s,{configurable:!0,get:()=>n})}return e}function Fi(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function $i(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const Ni={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${$i(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${$i(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Fi(e.dataset[s])}return t},getDataAttribute:(e,t)=>Fi(e.getAttribute(`data-bs-${$i(t)}`))};class Config{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=ci(t)?Ni.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...ci(t)?Ni.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,n]of Object.entries(t)){const t=e[s],r=ci(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${n}".`)}var i}}class BaseComponent extends Config{constructor(e,t){super(),(e=di(e))&&(this._element=e,this._config=this._getConfig(t),ri.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ri.remove(this._element,this.constructor.DATA_KEY),Bi.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Si(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ri.get(di(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Vi=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>ai(e))).join(","):null},Ri={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>
6[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!ui(e)&&hi(e)))},getSelectorFromElement(e){const t=Vi(e);return t&&Ri.findOne(t)?t:null},getElementFromSelector(e){const t=Vi(e);return t?Ri.findOne(t):null},getMultipleElementsFromSelector(e){const t=Vi(e);return t?Ri.find(t):[]}},Wi=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;Bi.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),ui(this))return;const n=Ri.getElementFromSelector(this)||this.closest(`.${s}`);e.getOrCreateInstance(n)[t]()}))},Gi=".bs.alert",Ui=`close${Gi}`,Yi=`closed${Gi}`;class Alert extends BaseComponent{static get NAME(){return"alert"}close(){if(Bi.trigger(this._element,Ui).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),Bi.trigger(this._element,Yi),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Alert.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Wi(Alert,"close"),yi(Alert);const Ki='[data-bs-toggle="button"]';class Button extends BaseComponent{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=Button.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}Bi.on(document,"click.bs.button.data-api",Ki,(e=>{e.preventDefault();const t=e.target.closest(Ki);Button.getOrCreateInstance(t).toggle()})),yi(Button);const Xi=".bs.swipe",Qi=`touchstart${Xi}`,Ji=`touchmove${Xi}`,Zi=`touchend${Xi}`,es=`pointerdown${Xi}`,ts=`pointerup${Xi}`,is={endCallback:null,leftCallback:null,rightCallback:null},ss={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Swipe extends Config{constructor(e,t){super(),this._element=e,e&&Swipe.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return is}static get DefaultType(){return ss}static get NAME(){return"swipe"}dispose(){Bi.off(this._element,Xi)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),wi(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&wi(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Bi.on(this._element,es,(e=>this._start(e))),Bi.on(this._element,ts,(e=>this._end(e))),this._element.classList.add("pointer-event")):(Bi.on(this._element,Qi,(e=>this._start(e))),Bi.on(this._element,Ji,(e=>this._move(e))),Bi.on(this._element,Zi,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ns=".bs.carousel",rs=".data-api",os="ArrowLeft",as="ArrowRight",ls="next",cs="prev",ds="left",hs="right",us=`slide${ns}`,ps=`slid${ns}`,ms=`keydown${ns}`,gs=`mouseenter${ns}`,fs=`mouseleave${ns}`,vs=`dragstart${ns}`,bs=`load${ns}${rs}`,ys=`click${ns}${rs}`,ws="carousel",Ss="active",_s=".active",Es=".carousel-item",Cs=_s+Es,xs={[os]:hs,[as]:ds},Ts={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ls={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Carousel extends BaseComponent{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ri.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ws&&this.cycle()}static get Default(){return Ts}static get DefaultType(){return Ls}static get NAME(){return"carousel"}next(){this._slide(ls)}nextWhenVisible(){!document.hidden&&hi(this._element)&&this.next()}prev(){this._slide(cs)}pause(){this._isSliding&&li(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Bi.one(this._element,ps,
6(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void Bi.one(this._element,ps,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?ls:cs;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Bi.on(this._element,ms,(e=>this._keydown(e))),"hover"===this._config.pause&&(Bi.on(this._element,gs,(()=>this.pause())),Bi.on(this._element,fs,(()=>this._maybeEnableCycle()))),this._config.touch&&Swipe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of Ri.find(".carousel-item img",this._element))Bi.on(t,vs,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(ds)),rightCallback:()=>this._slide(this._directionToOrder(hs)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Swipe(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=xs[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Ri.findOne(_s,this._indicatorsElement);t.classList.remove(Ss),t.removeAttribute("aria-current");const i=Ri.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(Ss),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),s=e===ls,n=t||_i(this._getItems(),i,s,this._config.wrap);if(n===i)return;const r=this._getItemIndex(n),o=t=>Bi.trigger(this._element,t,{relatedTarget:n,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:r});if(o(us).defaultPrevented)return;if(!i||!n)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),gi(n),i.classList.add(l),n.classList.add(l);this._queueCallback((()=>{n.classList.remove(l,c),n.classList.add(Ss),i.classList.remove(Ss,c,l),this._isSliding=!1,o(ps)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Ri.findOne(Cs,this._element)}_getItems(){return Ri.find(Es,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return bi()?e===ds?cs:ls:e===ds?ls:cs}_orderToDirection(e){return bi()?e===cs?ds:hs:e===cs?hs:ds}static jQueryInterface(e){return this.each((function(){const t=Carousel.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}Bi.on(document,ys,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Ri.getElementFromSelector(this);if(!t||!t.classList.contains(ws))return;e.preventDefault();const i=Carousel.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===Ni.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),Bi.on(window,bs,(()=>{const e=Ri.find('[data-bs-ride="carousel"]');for(const t of e)Carousel.getOrCreateInstance(t)})),yi(Carousel);const ks=".bs.collapse",As=`show${ks}`,Os=`shown${ks}`,Is=`hide${ks}`,Ds=`hidden${ks}`,Ps=`click${ks}.data-api`,Ms="show",qs="collapse",zs="collapsing",Hs=`:scope .${qs} .${qs}`,Bs='[data-bs-toggle="collapse"]',js={parent:null,toggle:!0},Fs={parent:"(null|element)",toggle:"boolean"};let $s=class Collapse2 extends BaseComponent{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=Ri.find(Bs);for(const s of i){const e=Ri.getSelectorFromElement(s),t=Ri.find(e).filter((e=>e===this._element));null!==e&&t.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return js}static get DefaultType(){return Fs}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];
6if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Collapse2.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(Bi.trigger(this._element,As).defaultPrevented)return;for(const s of e)s.hide();const t=this._getDimension();this._element.classList.remove(qs),this._element.classList.add(zs),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(zs),this._element.classList.add(qs,Ms),this._element.style[t]="",Bi.trigger(this._element,Os)}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Bi.trigger(this._element,Is).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,gi(this._element),this._element.classList.add(zs),this._element.classList.remove(qs,Ms);for(const t of this._triggerArray){const e=Ri.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(zs),this._element.classList.add(qs),Bi.trigger(this._element,Ds)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ms)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=di(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Bs);for(const t of e){const e=Ri.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Ri.find(Hs,this._config.parent);return Ri.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=Collapse2.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}};Bi.on(document,Ps,Bs,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of Ri.getMultipleElementsFromSelector(this))$s.getOrCreateInstance(t,{toggle:!1}).toggle()})),yi($s);const Ns="dropdown",Vs=".bs.dropdown",Rs=".data-api",Ws="ArrowUp",Gs="ArrowDown",Us=`hide${Vs}`,Ys=`hidden${Vs}`,Ks=`show${Vs}`,Xs=`shown${Vs}`,Qs=`click${Vs}${Rs}`,Js=`keydown${Vs}${Rs}`,Zs=`keyup${Vs}${Rs}`,en="show",tn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',sn=`${tn}.${en}`,nn=".dropdown-menu",rn=bi()?"top-end":"top-start",on=bi()?"top-start":"top-end",an=bi()?"bottom-end":"bottom-start",ln=bi()?"bottom-start":"bottom-end",cn=bi()?"left-start":"right-start",dn=bi()?"right-start":"left-start",hn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},un={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Dropdown extends BaseComponent{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Ri.next(this._element,nn)[0]||Ri.prev(this._element,nn)[0]||Ri.findOne(nn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return hn}static get DefaultType(){return un}static get NAME(){return Ns}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ui(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Bi.trigger(this._element,Ks,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
6navbar-nav"))for(const e of[].concat(...document.body.children))Bi.on(e,"mouseover",mi);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(en),this._element.classList.add(en),Bi.trigger(this._element,Xs,e)}}hide(){if(ui(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Bi.trigger(this._element,Us,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Bi.off(e,"mouseover",mi);this._popper&&this._popper.destroy(),this._menu.classList.remove(en),this._element.classList.remove(en),this._element.setAttribute("aria-expanded","false"),Ni.removeDataAttribute(this._menu,"popper"),Bi.trigger(this._element,Ys,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!ci(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ns.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===si)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:ci(this._config.reference)?e=di(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=ii(e,this._menu,t)}_isShown(){return this._menu.classList.contains(en)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return cn;if(e.classList.contains("dropstart"))return dn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?on:rn:t?ln:an}
6_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Ni.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...wi(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const i=Ri.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>hi(e)));i.length&&_i(i,t,e===Gs,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Dropdown.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Ri.find(sn);for(const i of t){const t=Dropdown.getInstance(i);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),n=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&&!n||"outside"===t._config.autoClose&&n)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:t._element};"click"===e.type&&(r.clickEvent=e),t._completeHide(r)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,s=[Ws,Gs].includes(e.key);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(tn)?this:Ri.prev(this,tn)[0]||Ri.next(this,tn)[0]||Ri.findOne(tn,e.delegateTarget.parentNode),r=Dropdown.getOrCreateInstance(n);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),n.focus())}}Bi.on(document,Js,tn,Dropdown.dataApiKeydownHandler),Bi.on(document,Js,nn,Dropdown.dataApiKeydownHandler),Bi.on(document,Qs,Dropdown.clearMenus),Bi.on(document,Zs,Dropdown.clearMenus),Bi.on(document,Qs,tn,(function(e){e.preventDefault(),Dropdown.getOrCreateInstance(this).toggle()})),yi(Dropdown);const pn="backdrop",mn="show",gn=`mousedown.bs.${pn}`,fn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},vn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Backdrop extends Config{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return fn}static get DefaultType(){return vn}static get NAME(){return pn}show(e){if(!this._config.isVisible)return void wi(e);this._append();const t=this._getElement();this._config.isAnimated&&gi(t),t.classList.add(mn),this._emulateAnimation((()=>{wi(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation((()=>{this.dispose(),wi(e)}))):wi(e)}dispose(){this._isAppended&&(Bi.off(this._element,gn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=di(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Bi.on(e,gn,(()=>{wi(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Si(e,this._getElement(),this._config.isAnimated)}}const bn=".bs.focustrap",yn=`focusin${bn}`,wn=`keydown.tab${bn}`,Sn="backward",_n={autofocus:!0,trapElement:null},En={autofocus:"boolean",trapElement:"element"};class FocusTrap extends Config{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return _n}static get DefaultType(){return En}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Bi.off(document,bn),Bi.on(document,yn,(e=>this._handleFocusin(e))),Bi.on(document,wn,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Bi.off(document,bn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=Ri.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===Sn?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Sn:"forward")}}const Cn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",xn=".sticky-top",Tn="padding-right",Ln="margin-right";class ScrollBarHelper{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Tn,(t=>t+e)),this._setElementAttributes(Cn,Tn,(t=>t+e)),this._setElementAttributes(xn,Ln,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Tn),this._resetElementAttributes(Cn,Tn),this._resetElementAttributes(xn,Ln)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const n=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(n))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&Ni.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=Ni.getDataAttribute(e,t);null!==i?(Ni.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}
6_applyManipulationCallback(e,t){if(ci(e))t(e);else for(const i of Ri.find(e,this._element))t(i)}}const kn=".bs.modal",An=`hide${kn}`,On=`hidePrevented${kn}`,In=`hidden${kn}`,Dn=`show${kn}`,Pn=`shown${kn}`,Mn=`resize${kn}`,qn=`click.dismiss${kn}`,zn=`mousedown.dismiss${kn}`,Hn=`keydown.dismiss${kn}`,Bn=`click${kn}.data-api`,jn="modal-open",Fn="show",$n="modal-static",Nn={backdrop:!0,focus:!0,keyboard:!0},Vn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Modal extends BaseComponent{constructor(e,t){super(e,t),this._dialog=Ri.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ScrollBarHelper,this._addEventListeners()}static get Default(){return Nn}static get DefaultType(){return Vn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;Bi.trigger(this._element,Dn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(jn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;Bi.trigger(this._element,An).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Fn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){Bi.off(window,kn),Bi.off(this._dialog,kn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Backdrop({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Ri.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),gi(this._element),this._element.classList.add(Fn);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Bi.trigger(this._element,Pn,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){Bi.on(this._element,Hn,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),Bi.on(window,Mn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),Bi.on(this._element,zn,(e=>{Bi.one(this._element,qn,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(jn),this._resetAdjustments(),this._scrollBar.reset(),Bi.trigger(this._element,In)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Bi.trigger(this._element,On).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains($n)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add($n),this._queueCallback((()=>{this._element.classList.remove($n),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=bi()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=bi()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=Modal.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method n
6amed "${e}"`);i[e](t)}}))}}Bi.on(document,Bn,'[data-bs-toggle="modal"]',(function(e){const t=Ri.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Bi.one(t,Dn,(e=>{e.defaultPrevented||Bi.one(t,In,(()=>{hi(this)&&this.focus()}))}));const i=Ri.findOne(".modal.show");i&&Modal.getInstance(i).hide();Modal.getOrCreateInstance(t).toggle(this)})),Wi(Modal),yi(Modal);const Rn=".bs.offcanvas",Wn=".data-api",Gn=`load${Rn}${Wn}`,Un="show",Yn="showing",Kn="hiding",Xn=".offcanvas.show",Qn=`show${Rn}`,Jn=`shown${Rn}`,Zn=`hide${Rn}`,er=`hidePrevented${Rn}`,tr=`hidden${Rn}`,ir=`resize${Rn}`,sr=`click${Rn}${Wn}`,nr=`keydown.dismiss${Rn}`,rr={backdrop:!0,keyboard:!0,scroll:!1},or={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Offcanvas extends BaseComponent{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return rr}static get DefaultType(){return or}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(Bi.trigger(this._element,Qn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ScrollBarHelper).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Yn);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Un),this._element.classList.remove(Yn),Bi.trigger(this._element,Jn,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(Bi.trigger(this._element,Zn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Kn),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Un,Kn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ScrollBarHelper).reset(),Bi.trigger(this._element,tr)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Backdrop({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():Bi.trigger(this._element,er)}:null})}_initializeFocusTrap(){return new FocusTrap({trapElement:this._element})}_addEventListeners(){Bi.on(this._element,nr,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():Bi.trigger(this._element,er))}))}static jQueryInterface(e){return this.each((function(){const t=Offcanvas.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Bi.on(document,sr,'[data-bs-toggle="offcanvas"]',(function(e){const t=Ri.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),ui(this))return;Bi.one(t,tr,(()=>{hi(this)&&this.focus()}));const i=Ri.findOne(Xn);i&&i!==t&&Offcanvas.getInstance(i).hide();Offcanvas.getOrCreateInstance(t).toggle(this)})),Bi.on(window,Gn,(()=>{for(const e of Ri.find(Xn))Offcanvas.getOrCreateInstance(e).show()})),Bi.on(window,ir,(()=>{for(const e of Ri.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Offcanvas.getOrCreateInstance(e).hide()})),Wi(Offcanvas),yi(Offcanvas);const ar={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},lr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),cr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,dr=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!lr.has(i)||Boolean(cr.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))};const hr={allowList:ar,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ur={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},pr={entry:"(string|element|function|null)",selector:"(string|element)"};class TemplateFactory extends Config{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return hr}static get DefaultType(){return ur}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>
vendor: 4,665 bytes, line 6
6this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,n]of Object.entries(this._config.content))this._setContent(e,n,s);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},pr)}_setContent(e,t,i){const s=Ri.findOne(i,e);s&&((t=this._resolvePossibleFunction(t))?ci(t)?this._putElementInTemplate(di(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const s=(new window.DOMParser).parseFromString(e,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const r of n){const e=r.nodeName.toLowerCase();if(!Object.keys(t).includes(e)){r.remove();continue}const i=[].concat(...r.attributes),s=[].concat(t["*"]||[],t[e]||[]);for(const t of i)dr(t,s)||r.removeAttribute(t.nodeName)}return s.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return wi(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const mr=new Set(["sanitize","allowList","sanitizeFn"]),gr="fade",fr="show",vr=".tooltip-inner",br=".modal",yr="hide.bs.modal",wr="hover",Sr="focus",_r={AUTO:"auto",TOP:"top",RIGHT:bi()?"left":"right",BOTTOM:"bottom",LEFT:bi()?"right":"left"},Er={allowList:ar,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Cr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let xr=class Tooltip2 extends BaseComponent{constructor(e,t){if(void 0===si)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Er}static get DefaultType(){return Cr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Bi.off(this._element.closest(br),yr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=Bi.trigger(this._element,this.constructor.eventName("show")),t=(pi(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),Bi.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(fr),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))Bi.on(n,"mouseover",mi);this._queueCallback((()=>{Bi.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}
6hide(){if(!this._isShown())return;if(Bi.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(fr),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Bi.off(e,"mouseover",mi);this._activeTrigger.click=!1,this._activeTrigger[Sr]=!1,this._activeTrigger[wr]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Bi.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(gr,fr),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(gr),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new TemplateFactory({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[vr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(gr)}_isShown(){return this.tip&&this.tip.classList.contains(fr)}_createPopper(e){const t=wi(this._config.placement,[this,e,this._element]),i=_r[t.toUpperCase()];return ii(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return wi(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...wi(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)Bi.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===wr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===wr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Bi.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Sr:wr]=!0,t._enter()})),Bi.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Sr:wr]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},Bi.on(this._element.closest(br),yr,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Ni.getDataAttributes(this._element);for(const i of Object.keys(t))mr.has(i)&&delete t[i];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:di(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,i]of Object.entries(this._config))this.constructor.Default[t]!==i&&(e[t]=i);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=Tooltip2.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method n
6amed "${e}"`);t[e]()}}))}};yi(xr);const Tr=".popover-header",Lr=".popover-body",kr={...xr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ar={...xr.DefaultType,content:"(null|string|element|function)"};class Popover extends xr{static get Default(){return kr}static get DefaultType(){return Ar}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Tr]:this._getTitle(),[Lr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=Popover.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}yi(Popover);const Or=".bs.scrollspy",Ir=`activate${Or}`,Dr=`click${Or}`,Pr=`load${Or}.data-api`,Mr="active",qr="[href]",zr=".nav-link",Hr=`${zr}, .nav-item > ${zr}, .list-group-item`,Br={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},jr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ScrollSpy extends BaseComponent{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Br}static get DefaultType(){return jr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=di(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Bi.off(this._config.target,Dr),Bi.on(this._config.target,Dr,qr,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&e){if(i(r),!s)return}else n||e||i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ri.find(qr,this._config.target);for(const t of e){if(!t.hash||ui(t))continue;const e=Ri.findOne(decodeURI(t.hash),this._element);hi(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Mr),this._activateParents(e),Bi.trigger(this._element,Ir,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Ri.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Mr);else for(const t of Ri.parents(e,".nav, .list-group"))for(const e of Ri.prev(t,Hr))e.classList.add(Mr)}_clearActiveClass(e){e.classList.remove(Mr);const t=Ri.find(`${qr}.${Mr}`,e);for(const i of t)i.classList.remove(Mr)}static jQueryInterface(e){return this.each((function(){const t=ScrollSpy.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
6amed "${e}"`);t[e]()}}))}}Bi.on(window,Pr,(()=>{for(const e of Ri.find('[data-bs-spy="scroll"]'))ScrollSpy.getOrCreateInstance(e)})),yi(ScrollSpy);const Fr=".bs.tab",$r=`hide${Fr}`,Nr=`hidden${Fr}`,Vr=`show${Fr}`,Rr=`shown${Fr}`,Wr=`click${Fr}`,Gr=`keydown${Fr}`,Ur=`load${Fr}`,Yr="ArrowLeft",Kr="ArrowRight",Xr="ArrowUp",Qr="ArrowDown",Jr="Home",Zr="End",eo="active",to="fade",io="show",so=".dropdown-toggle",no=`:not(${so})`,ro='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',oo=`${`.nav-link${no}, .list-group-item${no}, [role="tab"]${no}`}, ${ro}`,ao=`.${eo}[data-bs-toggle="tab"], .${eo}[data-bs-toggle="pill"], .${eo}[data-bs-toggle="list"]`;class Tab extends BaseComponent{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Bi.on(this._element,Gr,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?Bi.trigger(t,$r,{relatedTarget:e}):null;Bi.trigger(e,Vr,{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(eo),this._activate(Ri.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Bi.trigger(e,Rr,{relatedTarget:t})):e.classList.add(io)}),e,e.classList.contains(to))}_deactivate(e,t){if(!e)return;e.classList.remove(eo),e.blur(),this._deactivate(Ri.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Bi.trigger(e,Nr,{relatedTarget:t})):e.classList.remove(io)}),e,e.classList.contains(to))}_keydown(e){if(![Yr,Kr,Xr,Qr,Jr,Zr].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!ui(e)));let i;if([Jr,Zr].includes(e.key))i=t[e.key===Jr?0:t.length-1];else{const s=[Kr,Qr].includes(e.key);i=_i(t,e.target,s,!0)}i&&(i.focus({preventScroll:!0}),Tab.getOrCreateInstance(i).show())}_getChildren(){return Ri.find(oo,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Ri.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const s=(e,s)=>{const n=Ri.findOne(e,i);n&&n.classList.toggle(s,t)};s(so,eo),s(".dropdown-menu",io),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(eo)}_getInnerElement(e){return e.matches(oo)?e:Ri.findOne(oo,e)}
6_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Tab.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Bi.on(document,Wr,ro,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),ui(this)||Tab.getOrCreateInstance(this).show()})),Bi.on(window,Ur,(()=>{for(const e of Ri.find(ao))Tab.getOrCreateInstance(e)})),yi(Tab);const lo=".bs.toast",co=`mouseover${lo}`,ho=`mouseout${lo}`,uo=`focusin${lo}`,po=`focusout${lo}`,mo=`hide${lo}`,go=`hidden${lo}`,fo=`show${lo}`,vo=`shown${lo}`,bo="hide",yo="show",wo="showing",So={animation:"boolean",autohide:"boolean",delay:"number"},_o={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return _o}static get DefaultType(){return So}static get NAME(){return"toast"}show(){if(Bi.trigger(this._element,fo).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(bo),gi(this._element),this._element.classList.add(yo,wo),this._queueCallback((()=>{this._element.classList.remove(wo),Bi.trigger(this._element,vo),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(Bi.trigger(this._element,mo).defaultPrevented)return;this._element.classList.add(wo),this._queueCallback((()=>{this._element.classList.add(bo),this._element.classList.remove(wo,yo),Bi.trigger(this._element,go)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(yo),super.dispose()}isShown(){return this._element.classList.contains(yo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){Bi.on(this._element,co,(e=>this._onInteraction(e,!0))),Bi.on(this._element,ho,(e=>this._onInteraction(e,!1))),Bi.on(this._element,uo,(e=>this._onInteraction(e,!0))),Bi.on(this._element,po,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=Toast.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Wi(Toast),yi(Toast);class ModalLite{modal;toggle;closers;controller;constructor(e){this.toggle=e,this.modal=document.querySelector(this.toggle.getAttribute("data-target")),this.modal&&(document.body.appendChild(this.modal),this.toggle.addEventListener("click",(e=>this.showModal(e))),this.toggle.addEventListener("keypress",(e=>{"Enter"!==e.key&&" "!==e.key||this.showModal(e)})),this.boundTrapFocus=e=>this.trapFocus(e),this.boundHandleEscape=e=>this.handleEscape(e),this.boundTrapFocusOutside=e=>{this.modal.contains(e.target)||requestAnimationFrame((()=>{this.firstFocusableElement.focus()}))},this.boundTrapFocusRecovery=()=>{"iframe-trap"===document.activeElement.id&&this.closers[0].focus()},this.modal.addEventListener("click",(e=>{e.target.classList?.contains("modal-lite")&&this.closers&&this.closers[0]?.click()})),window.addEventListener("message",(e=>{"closeLightbox"===e.data&&this.hideModal()})))}trapFocus=e=>{if("Tab"===e.key)return e.shiftKey&&document.activeElement===this.firstFocusableElement?(e.preventDefault(),void this.lastFocusableElement.focus()):void(e.shiftKey||document.activeElement!==this.lastFocusableElement||(e.preventDefault(),this.firstFocusableElement.focus()))};handleEscape(e){"Escape"!==e.key&&"Esc"!==e.key||this.hideModal()}showModal(e){e.preventDefault(),e.stopPropagation(),this.initializeIframe(),this.lastFocusedElement=document.activeElement,this.controller=new AbortController;const t=this.controller.signal;this.closers=this.modal.querySelectorAll('[data-dismiss="modal-lite"]'),this.closers.forEac
6h((e=>{e.addEventListener("click",(()=>this.hideModal()),{signal:t}),e.addEventListener("keypress",(e=>{"Enter"!==e.key&&" "!==e.key||(this.hideModal(),e.preventDefault())}))})),this.modal.classList.add("modal-lite--shown"),document.body.classList.add("modal-shown"),document.body.dispatchEvent(new Event(d,{bubbles:!0})),this.focusableElements=this.modal.querySelectorAll(Ee.join(",")),this.firstFocusableElement=this.focusableElements[0],this.lastFocusableElement=this.focusableElements[this.focusableElements.length-1],this.modal.addEventListener("keydown",this.boundTrapFocus),document.addEventListener("keydown",this.boundHandleEscape),document.addEventListener("focusin",this.boundTrapFocusOutside),this.iframeTrap&&this.iframeTrap.addEventListener("focus",this.boundTrapFocusRecovery),this.closers[0]?(this.closers[0].tabIndex=0,this.closers[0].ariaHidden="false",!["xs","sm","ms","md"].indexOf(Z())<=0&&this.closers[0].focus()):requestAnimationFrame((()=>{!["xs","sm","ms","md"].indexOf(Z())<=0&&this.firstFocusableElement.focus()})),document.querySelectorAll('[data-bs-toggle="popover"]').forEach((e=>{Popover.getInstance(e).hide()}))}hideModal(){this.controller?.abort(),this.modal.classList.remove("modal-lite--shown"),this.lastFocusedElement&&this.lastFocusedElement.focus(),void 0!==this.closers&&this.closers.length>0&&(this.closers[0].ariaHidden="true"),this.modal.removeEventListener("keydown",this.boundTrapFocus),document.removeEventListener("keydown",this.boundHandleEscape),document.removeEventListener("focusin",this.boundTrapFocusOutside),this.iframeTrap&&this.iframeTrap.removeEventListener("focus",this.boundTrapFocusRecovery),document.querySelector(".modal-lite--shown")||document.body.classList.remove("modal-shown");const e=this.modal.querySelector("iframe");e&&(e.src="about:blank")}initializeIframe(){if(!this.toggle.getAttribute("data-iframe"))return void this.modal.classList.add("modal-lite-iframe-none");const e=this.modal.querySelector(".modal-lite__content-body"),t=document.createElement("iframe");t.id="modal-lite-iframe",t.className="modal-lite-iframe",t.src=this.toggle.getAttribute("data-iframe");const i=document.createElement("div");i.className="iframe-wrapper",Te("iOS")&&i.classList.add("is-ios"),this.iframeTrap=document.createElement("div"),this.iframeTrap.tabIndex=0,this.iframeTrap.id="iframe-trap",i.appendChild(t),e.innerHTML="",e.appendChild(i),e.appendChild(this.iframeTrap)}}const Eo=Object.freeze(Object.defineProperty({__proto__:null,default:class ModalLiteInitializer{constructor(){if(this.initModals(),addEventListener("async:loaded",(e=>this.initModals(e.target))),addEventListener(b,(e=>this.initModals(e.target))),Te("iOS"))try{window.parent.document.querySelectorAll(".modal-lite-iframe").forEach((e=>{const t=e.contentDocument||e.contentWindow&&e.contentWindow.document;t?.querySelector("html")?.classList.add(Ce),t?.querySelector("body")?.classList.add(Ce)}))}catch(e){console.warn(e)}}initModals(e=document){e.querySelectorAll('[data-toggle="modal-lite"]').forEach((e=>new ModalLite(e)))}}},Symbol.toStringTag,{value:"Module"}));function Co(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)e[s]=i[s]}return e}var xo=function e(t,i){function s(e,s,n){if("undefined"!=typeof document){"number"==typeof(n=Co({},i,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var o in n)n[o]&&(r+="; "+o,!0!==n[o]&&(r+="="+n[o].split(";")[0]));return document.cookie=e+"="+t.write(s,e)+r}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],s={},n=0;n<i.length;n++){var r=i[n].split("="),o=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(s[a]=t.read(o,a),e===a)break}catch(l){}}return e?s[e]:s}},remove:function(e,t){s(e,"",Co({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Co({},this.attributes,t))},withConverter:function(t){return e(Co({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
6URIComponent)}},{path:"/"});const To=()=>void 0!==window.utag;class Overlay{constructor(e){var t;this.overlay=e,(t=this.overlay,new Promise((e=>{t.dataset.waitForConsent&&"false"!==t.dataset.waitForConsent||e();const i=()=>{const t=Date.now(),s=setInterval((()=>{const n=Date.now()-t>2e3&&!To(),r=To()&&window.utag.gdpr.getConsentState();(n||r)&&(clearInterval(s),removeEventListener("DOMContentLoaded",i),e())}),250)};addEventListener("DOMContentLoaded",i)}))).then((()=>this.initializeOverlay()))}initializeOverlay(){dispatchEvent(new Event(l));const{alwaysShow:e,autocloseMilliseconds:t,cookieName:i,cookieExpiration:s}=this.overlay.dataset;this.alwaysShow="string"==typeof e&&"false"!==e,this.autocloseMilliseconds=t&&parseInt(t),this.cookieName=i,this.cookieExpiration=s,this.autocloseTimeout=null,this.alwaysShow?this.showOverlay():void 0!==this.cookieName&&void 0!==this.cookieExpiration?void 0===xo.get(this.cookieName)&&this.showOverlay():this.showOverlay(),void 0===this.autocloseMilliseconds||this.alwaysShow||(this.autocloseTimeout=setTimeout((()=>this.closeOverlay()),this.autocloseMilliseconds)),this.overlay.addEventListener("click",(e=>{this.closeOverlay(e)}))}showOverlay(){this.overlay.classList.remove("d-none"),this.overlay.classList.add("fade-in")}closeOverlay(e){if(void 0!==e&&"modal-lite"===e.target?.dataset?.toggle)return;void 0!==this.cookieName&&void 0!==this.cookieExpiration&&xo.set(this.cookieName,1,{expires:parseInt(this.cookieExpiration)}),this.autocloseTimeout&&clearTimeout(this.autocloseTimeout),this.overlay.classList.add("fade-out");let t=window.getComputedStyle(this.overlay).animationDuration;t=t.substring(0,t.length-1);setTimeout((()=>{this.overlay.classList.add("d-none"),document.body.dispatchEvent(new Event("overlay.close")),dispatchEvent(new Event(a))}),1e3*t)}}const Lo=Object.freeze(Object.defineProperty({__proto__:null,default:class OverlayInitializer extends XLABInitializer{constructor(){super("[data-overlay]",Overlay),addEventListener("async:loaded",(()=>super.initialize()))}}},Symbol.toStringTag,{value:"Module"}));class PopoverInitializer{constructor(e=document){this.registerHandlers(e),this.boundTrapFocus=e=>this.trapFocus(e),addEventListener("async:loaded",(e=>this.registerHandlers(e.target))),addEventListener(u,(e=>this.registerHandlers(e.target)))}trapFocus=e=>{if("Tab"===e.key)return e.shiftKey&&document.activeElement===this.firstFocusableElement?(e.preventDefault(),void this.lastFocusableElement.focus()):void(e.shiftKey||document.activeElement!==this.lastFocusableElement||(e.preventDefault(),this.firstFocusableElement.focus()))};registerHandlers(e){e.querySelectorAll('[data-bs-toggle="popover"]').forEach((e=>{if(e.initialized)return;let t;e.initialized=!0;const i={html:!0,container:"body",boundary:"window",sanitize:!1};i.container=e.closest(".navigation__e3")||i.container,e.closest(".roaming-center")&&(i.customClass="roaming-center-popover");const s=t=>{let i=("P"===e.parentElement.nodeName?e.parentElement:e).nextElementSibling;for(;i;){if(i.hasAttribute(t))return i;i=i.nextElementSibling}};if(!e.title&&!e.dataset.bsTitle){const t=e.dataset.title||s("data-popover-title")?.innerHTML.trim();t&&(i.title=t)}if(!e.dataset.bsContent){const t=e.dataset.content||s("data-popover-content")?.innerHTML.trim();t&&(i.content=t)}e.addEventListener("click",(e=>{e.preventDefault()}));const n=new Popover(e,i);e.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.lastFocusedElement=document.activeElement,n.toggle())})),e.addEventListener("inserted.bs.popover",(()=>{if(window.innerWidth>1920&&e.closest(".tariffbox-wrapper")){const e=document.querySelector("div.popover");e&&(e.style.marginLeft=(1935-window.innerWidth)/2+"px")}window.innerWidth>1400&&e.classList.contains("popover-extended")&&(document.querySelector("div.popover").style.maxWidth="30vw")})),e.addEventListener("shown.bs.popover",(()=>{e.closest("[data-top-stage-slider-autoplay]")&&dispatchEvent(new Event(l)),t=new AbortController;const i=document.querySelector("div.popover");this.focusableElements=i.querySelectorAll(Ee.join(",")),this.focusableElements.forEac
6h((e=>{e.tabIndex=0})),this.firstFocusableElement=this.focusableElements[0],this.lastFocusableElement=this.focusableElements[this.focusableElements.length-1],this.firstFocusableElement?.focus(),i&&i.dispatchEvent(new Event(b,{bubbles:!0}));const s=()=>{this.lastFocusedElement&&this.lastFocusedElement.focus(),n.hide(),t.abort()};i.addEventListener("keydown",this.boundTrapFocus,{signal:t.signal}),window.addEventListener("scroll",s,{signal:t.signal}),window.addEventListener("resize-proxy:width",s,{signal:t.signal}),document.querySelectorAll(".popover__close").forEach((e=>{e.addEventListener("click",s,{signal:t.signal}),e.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||s()}),{signal:t.signal})})),window.addEventListener("click",(e=>{e.target?.closest(".popover")||s()}),{signal:t.signal}),document.addEventListener("keydown",(e=>{"Escape"!==e.key&&"Esc"!==e.key||s()}),{signal:t.signal})})),e.addEventListener("hidden.bs.popover",(()=>{t.abort(),e.closest("[data-top-stage-slider-autoplay]")&&dispatchEvent(new Event(a))}))}))}}const ko=Object.freeze(Object.defineProperty({__proto__:null,default:PopoverInitializer},Symbol.toStringTag,{value:"Module"}));class EnvironmentService{getCurrent(){let e="production";const t=window.location.hostname;return t.includes("localhost")&&(e="development"),t.includes("patternlab.shopservice")&&(e="staging1"),t.includes("accshmwcngxbsdeva01")&&(e="staging2"),t.includes("pre-dsl.1und1")&&(e="staging3"),t.includes("pre-mobile.1und1")&&(e="staging4"),t.includes("pre-www.1und1")&&(e="staging5"),e}}class ServiceCard{serviceCardContainer;svgContainer;animated;urlCheckInterval;url;constructor(e){this.initServiceCardAnimation(e)}initServiceCardAnimation(e){this.serviceCardContainer=e,this.svgContainer=this.serviceCardContainer.getElementsByTagName("object")[0],this.animated=!1,this.svgContainer.addEventListener("load",(()=>this.playAnimation())),this.urlCheckInterval=setInterval(this.setDataUrls.bind(this),20)}playAnimation(){const e=this.svgContainer.contentDocument;["xs","sm","ms"].indexOf(Z())>=0&&e?.defaultView.KeyshapeJS&&!this.animated&&this.runAnimation()}runAnimation(){const e=this.svgContainer.contentDocument.ks,t=e.timelines()[0];this.animated=!0,"running"!==t.state()&&t.time(0),e.globalPlay(),setTimeout((()=>{this.animated=!0}),1e3)}setDataUrls(){this.url=this.svgContainer.getAttribute("data"),this.url&&(this.svgContainer.setAttribute("data",this.url),this.svgContainer.style.display="block",this.checkCors(),clearInterval(this.urlCheckInterval))}async checkCors(){const e=window.location.hostname;if(!this.isUrlAbsolute(this.url))return!1;if(!this.url.includes(e)){const e=await fetch(this.getScTankUrl(),{cache:"no-store"});if(!e.ok)return;const t=await e.text(),i=(new DOMParser).parseFromString(t,"text/html");this.swapSVGs(i)}}isUrlAbsolute(e){return new RegExp("^(?:[a-z]+:)?//","i").test(e)}getScTankUrl(){const e=window.location.hostname;let t=window.location.pathname;const i=new EnvironmentService,s="https://www.1und1.de/2ffdda33e9abea2932b9d73518ffa84d?lightbox=true",n="https://dsl.1und1.de/835c78bb72b2de455156efd1fa7c652e?lightbox=true",r="https://mobile.1und1.de/c9ed4a144e28359affacf82ad71e3c70?lightbox=true";let o="patterns/03-pages-04-shared-pages-sc-animation-tank/03-pages-04-shared-pages-sc-animation-tank.rendered.html";return"production"===i.getCurrent()&&(e.includes("www.1und1.de")&&(o=s),e.includes("dsl.1und1.de")&&(o=n),e.includes("mobile.1und1.de")&&(o=r)),"staging3"===i.getCurrent()?o=n.replace("https://","https://pre-"):"staging4"===i.getCurrent()?o=r.replace("https://","https://pre-"):"staging5"===i.getCurrent()&&(o=s.replace("https://","https://pre-")),"staging1"!==i.getCurrent()&&"staging2"!==i.getCurrent()||(t=t.substring(0,t.indexOf("patterns")),o="https://"+e+t+o),"development"===i.getCurrent()&&(o="/"+o),o}swapSVGs(e){const t=this.url.substring(this.url.lastIndexOf("/")+1,this.url.indexOf(".svg")+4),i=e.querySelector('object[data*="'+t+'"]'),s=i?.getAttribute("data");if(!s)return;let n="?global=paused";s?.indexOf("deso")>=0&&(n="");const r=s+n;this.svgContainer.setAttribute("data",r),this.svgContainer.addEventListener("load",(()=>this.playAnimation()))}}const Ao=Object.freeze(Object.defineProperty({__proto__:null,ServiceCard:ServiceCard,default:class ServiceCardInitializer{constructor(e=document){e.querySelectorAll(".service-card, .top-stage__service-card-animation").forEach((e=>new ServiceCard(e)))}}},Symbol.toStringTag,{value:"Module"}));class SkipMenu{constructor(e){this.trigger=e,this.initSkipMenu()}initSkipMenu(){this.trigger.addEventListener("click",(function(){const e=this.getAttribute("href").slice(1),t=document.getElementById(e);t&&setTimeout((()=>
6{if("search"===e){const e=document.querySelector(".searchbar");return e&&!e.classList.contains("searchbar--open")&&e.classList.add("searchbar--open"),void t.focus()}t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus(),t.addEventListener("blur",(()=>{"-1"===t.getAttribute("tabindex")&&t.removeAttribute("tabindex")}),{once:!0})}),0)}))}}const Oo=Object.freeze(Object.defineProperty({__proto__:null,SkipMenu:SkipMenu,default:class SkipMenuInitializer{constructor(e=document){e.querySelectorAll("a.skip-menu-content").forEach((e=>new SkipMenu(e)))}}},Symbol.toStringTag,{value:"Module"})),Io="sticky-top-wrapper",Do="--stuck";class StickyTopWrapper{#s;#n;#e;#t;#i;#r;constructor(e){this.#s=e,this.#n=document.getElementById("sticky-top-wrapper-dock"),this.#n&&(this.#e=document.querySelector(".navigation"),this.#t=this.#e?.getBoundingClientRect().height||0,this.toggleSticky(),this.remountObserverOnResize())}toggleSticky(){this.#i=new IntersectionObserver((([e])=>{e.isIntersecting?(this.#s.classList.remove(Io+Do),this.#s.style.top=null):(this.#s.style.top=this.#t+"px",this.#s.classList.add(Io+Do))}),{rootMargin:`-${this.#t}px 0px 0px 0px`}),this.#i.observe(this.#n)}remountObserverOnResize(){this.#r=new AbortController,window.addEventListener("resize-proxy:width",(()=>{const e=this.#e?.getBoundingClientRect().height||0;e!==this.#t&&(this.#t=e,this.#i.disconnect(),this.toggleSticky())}),{signal:this.#r.signal})}destroyObserver(){this.#i.disconnect(),this.#r.abort()}}const Po=Object.freeze(Object.defineProperty({__proto__:null,StickyTopWrapper:StickyTopWrapper,default:class StickyTopWrappers{#o=[];constructor(e=document){this.initializeStickyTopWrappers(e)}initializeStickyTopWrappers(e){e.querySelectorAll(`.${Io}`).forEach((e=>this.#o.push(new StickyTopWrapper(e))))}destroyObservers(){this.#o.forEach((e=>e.destroyObserver()))}}},Symbol.toStringTag,{value:"Module"}));class Strike{strikeContainer;strike;constructor(e){this.strikeContainer=e,this.strike=document.createElement("div"),this.strike.className="strike background--"+this.strikeContainer.dataset.strike,this.strikeContainer.insertBefore(this.strike,this.strikeContainer.firstChild),setTimeout((()=>{this.setStrike()}),50),addEventListener("resize-proxy:width",(()=>this.setStrike())),addEventListener(h,(()=>this.setStrike())),addEventListener("strike:recalculate",(()=>this.setStrike()))}setStrike(){this.strikeContainer.classList.remove("position-relative");const e=getComputedStyle(this.strikeContainer).position;"relative"!==e&&"absolute"!==e&&this.strikeContainer.classList.add("position-relative");const t=this.strikeContainer.offsetHeight,i=this.strikeContainer.offsetWidth,s=Math.sqrt(Math.pow(t,2)+Math.pow(i,2)),n=180*Math.asin(t/s)/Math.PI;this.strike.setAttribute("style","width: "+s+"px;transform: translate(-50%, -50%) rotate("+-.5*n+"deg)")}}const Mo=Object.freeze(Object.defineProperty({__proto__:null,Strike:Strike,default:class StrikeInitializer{constructor(e=document){e.querySelectorAll("[data-strike]").forEach((e=>new Strike(e)))}}},Symbol.toStringTag,{value:"Module"})),qo="data-trindicator",zo="data-trindicator-focus";class TrindicatorItem{trindicator;triangle;latestTrindicator;constructor(e){this.trindicator=e,this.triangle=this.trindicator.querySelector(".trindicator__triangle"),this.latestTrindicator=document.querySelector(`[${zo}="initial"]`);const t=this.trindicator.getAttribute(qo),i=document.querySelectorAll(`[data-trindicator-trigger="${t}"]`);this.setPosition(),addEventListener("resize-proxy:width",(()=>this.setPosition())),i.forEach((e=>{e.addEventListener("click",(e=>{this.latestTrindicator=e.currentTarget.closest(`[${zo}]`),this.setPosition()}))}))}setPosition(){const e=this.trindicator.parentNode;if(e.style.display="none",!this.latestTrindicator||!this.triangle)return;if(this.latestTrindicator.classList.contains("swiper-slide"))return;e.style.display="block";const t=this.latestTrindicator.getBoundingClientRect(),i=t.left+t.width/2;this.triangle.style.left=i+"px"}}const Ho=Object.freeze(Object.defineProperty({__proto__:null,default:class TrindicatorInitializer{constructor(){document.querySelectorAll(`[${qo}]`).forEach((e=>new TrindicatorItem(e)))}}},Symbol.toStringTag,{value:"Module"}));function Bo(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function jo(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((i=>{void 0===e[i]?e[i]=t[i]:Bo(t[i])&&Bo(e[i])&&Object.keys(t[i]).length>0&&jo(e[i],t[i])}))}const Fo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function $o(){const e="undefined"!=typeof document?document:{};return jo(e,Fo),e}const No={document:Fo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
6,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Vo(){const e="undefined"!=typeof window?window:{};return jo(e,No),e}function Ro(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function Wo(){return Date.now()}function Go(e,t){void 0===t&&(t="x");const i=Vo();let s,n,r;const o=function(e){const t=Vo();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new i.WebKitCSSMatrix("none"===n?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===t&&(n=i.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function Uo(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Yo(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const n=s<0||arguments.length<=s?void 0:arguments[s];if(null!=n&&(i=n,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const i=Object.keys(Object(n)).filter((e=>t.indexOf(e)<0));for(let t=0,s=i.length;t<s;t+=1){const s=i[t],r=Object.getOwnPropertyDescriptor(n,s);void 0!==r&&r.enumerable&&(Uo(e[s])&&Uo(n[s])?n[s].__swiper__?e[s]=n[s]:Yo(e[s],n[s]):!Uo(e[s])&&Uo(n[s])?(e[s]={},n[s].__swiper__?e[s]=n[s]:Yo(e[s],n[s])):e[s]=n[s])}}}var i;return e}function Ko(e,t,i){e.style.setProperty(t,i)}function Xo(e){let{swiper:t,targetPosition:i,side:s}=e;const n=Vo(),r=-t.translate;let o,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const c=i>r?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{o=(new Date).getTime(),null===a&&(a=o);const e=Math.max(Math.min((o-a)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let u=r+c*(i-r);if(d(u,i)&&(u=i),t.wrapperEl.scrollTo({[s]:u}),d(u,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:u})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(h)};h()}function Qo(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function Jo(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function Zo(e){try{return void console.warn(e)}catch(t){}}function ea(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),i}function ta(e,t){return Vo().getComputedStyle(e,null).getPropertyValue(t)}function ia(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function sa(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function na(e,t){t&&e.addEventListener("transitionend",(function i(s){s.target===e&&(t.call(e,s),e.removeEventListener("transitionend",i))}))}function ra(e,t,i){const s=Vo();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function oa(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let aa,la,ca;function da(){return aa||(aa=function(){const e=Vo(),t=$o();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),aa}function ha(e){return void 0===e&&(e={}),la||(la=function(e){let{userAgent:t}=void 0===e?{}:e;const i=da(),s=Vo(),n=s.navigator.platform,r=t||s.navigator.userAgent,o={ios:!1,android:!1},a=s.screen.width,l=s.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const h=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n;let m="MacIntel"===n;return!d&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!p&&(o.os="android",o.android=!0),(d||u||h)&&(o.os="ios",o.ios=!0),o}(e)),la}
6function ua(){return ca||(ca=function(){const e=Vo(),t=ha();let i=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));i=e<16||16===e&&s<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=s();return{isSafari:i||r,needPerspectiveFix:i,need3dFix:r||n&&t.ios,isWebView:n}}()),ca}var pa={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)})),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];t.apply(s,r)}return n.__emitterProxy=t,s.on(e,n,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],i=r.slice(1,r.length),s=e):(t=r[0].events,i=r[0].data,s=r[0].context||e),i.unshift(s);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(s,i)}))})),e}};const ma=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const ga=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},fa=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},va=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,r=[i-t];return r.push(...Array.from({length:t}).map(((e,t)=>i+s+t))),void e.slides.forEach(((t,i)=>{r.includes(t.column)&&fa(e,i)}))}const r=n+s-1;if(e.params.rewind||e.params.loop)for(let o=n-t;o<=r+t;o+=1){const t=(o%i+i)%i;(t<n||t>r)&&fa(e,t)}else for(let o=Math.max(n-t,0);o<=Math.min(r+t,i-1);o+=1)o!==n&&(o>r||o<n)&&fa(e,o)};function ba(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;const{activeIndex:r,previousIndex:o}=t;let a=s;if(a||(a=r>o?"next":r<o?"prev":"reset"),t.emit(`transition${n}`),i&&r!==o){if("reset"===a)return void t.emit(`slideResetTransition${n}`);t.emit(`slideChangeTransition${n}`),"next"===a?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`)}}function ya(e,t,i){const s=Vo(),{params:n}=e,r=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return!r||!(i<=o||i>=s.innerWidth-o)||"prevent"===r&&(t.preventDefault(),!0)}function wa(e){const t=this,i=$o();let s=e;s.originalEvent&&(s=s.originalEvent);const n=t.touchEventsData;if("pointerdown"===s.type){if(null!==n.pointerId&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else"touchstart"===s.type&&1===s.targetTouches.length&&(n.touchId=s.targetTouches[0].identifier);if("touchstart"===s.type)return void ya(t,s,s.targetTouches[0].pageX);const{params:r,touches:o,enabled:a}=t;if(!a)return;if(!r.simulateTouch&&"mouse"===s.pointerType)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=s.target;if("wrapper"===r.touchEventsTarget&&!t.wrapperEl.contains(l))return;if("which"in s&&3===s.which)return;if("button"in s&&s.button>0)return;if(n.isTouched&&n.isMoved)return;
vendor: 4,086 bytes, line 6
6const c=!!r.noSwipingClass&&""!==r.noSwipingClass,d=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&d&&(l=d[0]);const h=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,u=!(!s.target||!s.target.shadowRoot);if(r.noSwiping&&(u?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===$o()||i===Vo())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(h,l):l.closest(h)))return void(t.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const p=o.currentX,m=o.currentY;if(!ya(t,s,p))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,n.touchStartTime=Wo(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let g=!0;l.matches(n.focusableElements)&&(g=!1,"SELECT"===l.nodeName&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const f=g&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!f||l.isContentEditable||s.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function Sa(e){const t=$o(),i=this,s=i.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:a}=i;if(!a)return;if(!n.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==s.touchId)return;if(c.pointerId!==s.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].filter((e=>e.identifier===s.touchId))[0],!l||l.identifier!==s.touchId)return}else l=c;if(!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",c));const d=l.pageX,h=l.pageY;if(c.preventedByNestedSwiper)return r.startX=d,void(r.startY=h);if(!i.allowTouchMove)return c.target.matches(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(r,{startX:d,startY:h,currentX:d,currentY:h}),s.touchStartTime=Wo()));if(n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(h<r.startY&&i.translate<=i.maxTranslate()||h>r.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(d<r.startX&&i.translate<=i.maxTranslate()||d>r.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&c.target===t.activeElement&&c.target.matches(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);s.allowTouchCallbacks&&i.emit("touchMove",c),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=h;const u=r.currentX-r.startX,p=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(u**2+p**2)<i.params.threshold)return;if(void 0===s.isScrolling){let e;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:u*u+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,s.isScrolling=i.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",c),void 0===s.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(s.startMoving=!0)),s.isScrolling||"touchmove"===c.type&&s.preventTouchMoveFromPointerMove)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation();let m=i.isHorizontal()?u:p,g=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),r.diff=m,m*=n.touchRatio,o&&(m=-m,g=-g);const f=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";const v=i.params.loop&&!n.cssMode,b="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!s.isMoved){if(v&&b&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});
vendor: 1,840 bytes, line 6
6i.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)}if((new Date).getTime(),s.isMoved&&s.allowThresholdMove&&f!==i.touchesDirection&&v&&b&&Math.abs(m)>=1)return Object.assign(r,{startX:d,startY:h,currentX:d,currentY:h,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,void(s.startTranslate=s.currentTranslate);i.emit("sliderMove",c),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let y=!0,w=n.resistanceRatio;if(n.touchReleaseOnEdges&&(w=0),m>0?(v&&b&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(y=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**w))):m<0&&(v&&b&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===n.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(y=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-m)**w))),y&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),n.threshold>0){if(!(Math.abs(m)>n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);
vendor: 10,432 bytes, line 6
6if(!s.allowThresholdMove)return s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function _a(e){const t=this,i=t.touchEventsData;let s,n=e;n.originalEvent&&(n=n.originalEvent);if("touchend"===n.type||"touchcancel"===n.type){if(s=[...n.changedTouches].filter((e=>e.identifier===i.touchId))[0],!s||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(n.pointerId!==i.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)){if(!(["pointercancel","contextmenu"].includes(n.type)&&(t.browser.isSafari||t.browser.isWebView)))return}i.pointerId=null,i.touchId=null;const{params:r,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!r.simulateTouch&&"mouse"===n.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&r.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);r.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=Wo(),h=d-i.touchStartTime;if(t.allowClick){const e=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(e&&e[0]||n.target,e),t.emit("tap click",n),h<300&&d-i.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Wo(),Ro((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===o.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=r.followFinger?a?t.translate:-t.translate:-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});const p=u>=-t.maxTranslate()&&!t.params.loop;let m=0,g=t.slidesSizesGrid[0];for(let w=0;w<l.length;w+=w<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=w<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[w+e]?(p||u>=l[w]&&u<l[w+e])&&(m=w,g=l[w+e]-l[w]):(p||u>=l[w])&&(m=w,g=l[l.length-1]-l[l.length-2])}let f=null,v=null;r.rewind&&(t.isBeginning?v=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const b=(u-l[m])/g,y=m<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?f:m+y):t.slideTo(m)),"prev"===t.swipeDirection&&(b>1-r.longSwipesRatio?t.slideTo(m+y):null!==v&&b<0&&Math.abs(b)>r.longSwipesRatio?t.slideTo(v):t.slideTo(m))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(n.target===t.navigation.nextEl||n.target===t.navigation.prevEl)?n.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==f?f:m+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:m))}}function Ea(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Ca(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function xa(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();n=0===r?0:(e.translate-e.minTranslate())/r,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Ta(e){const t=this;ga(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function La(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ka=(e,t)=>{const i=$o(),{params:s,el:n,wrapperEl:r,device:o}=e,a=!!s.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",e.onTouchStart,{passive:!1}),n[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",e.onClick,!0),s.cssMode&&r[l]("scroll",e.onScroll),s.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ea,!0):e[c]("observerUpdate",Ea,!0),n[l]("load",e.onLoad,{capture:!0})};const Aa=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Oa={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ia(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(!0===e[s]&&(e[s]={enabled:!0}),"navigation"===s&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),s in e&&"enabled"in n?("object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),Yo(t,i)):Yo(t,i)):Yo(t,i)}}const Da={eventsEmitter:pa,update:{updateSize:function(){const e=this;let t,i;const s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(ta(s,"padding-left")||0,10)-parseInt(ta(s,"padding-right")||0,10),i=i-parseInt(ta(s,"padding-top")||0,10)-parseInt(ta(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:s,slidesEl:n,size:r,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=Jo(n,`.${e.params.slideClass}, swiper-slide`),h=l?e.virtual.slides.length:d.length;let u=[];const p=[],m=[];let g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(e));let f=i.slidesOffsetAfter;"function"==typeof f&&(f=i.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=i.spaceBetween,w=-g,S=0,_=0;if(void 0===r)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*r:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach((e=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(Ko(s,"--swiper-centered-offset-before",""),Ko(s,"--swiper-centered-offset-after",""));const E=i.grid&&i.grid.rows>1&&e.grid;let x;E?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const k="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let O=0;O<h;O+=1){let s;if(x=0,d[O]&&(s=d[O]),E&&e.grid.updateSlide(O,s,d),!d[O]||"none"!==ta(s,"dis
6play")){if("auto"===i.slidesPerView){k&&(d[O].style[e.getDirectionLabel("width")]="");const n=getComputedStyle(s),r=s.style.transform,o=s.style.webkitTransform;if(r&&(s.style.transform="none"),o&&(s.style.webkitTransform="none"),i.roundLengths)x=e.isHorizontal()?ra(s,"width"):ra(s,"height");else{const e=t(n,"width"),i=t(n,"padding-left"),r=t(n,"padding-right"),o=t(n,"margin-left"),a=t(n,"margin-right"),l=n.getPropertyValue("box-sizing");if(l&&"border-box"===l)x=e+o+a;else{const{clientWidth:t,offsetWidth:n}=s;x=e+i+r+o+a+(n-t)}}r&&(s.style.transform=r),o&&(s.style.webkitTransform=o),i.roundLengths&&(x=Math.floor(x))}else x=(r-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(x=Math.floor(x)),d[O]&&(d[O].style[e.getDirectionLabel("width")]=`${x}px`);d[O]&&(d[O].swiperSlideSize=x),m.push(x),i.centeredSlides?(w=w+x/2+S/2+y,0===S&&0!==O&&(w=w-r/2-y),0===O&&(w=w-r/2-y),Math.abs(w)<.001&&(w=0),i.roundLengths&&(w=Math.floor(w)),_%i.slidesPerGroup===0&&u.push(w),p.push(w)):(i.roundLengths&&(w=Math.floor(w)),(_-Math.min(e.params.slidesPerGroupSkip,_))%e.params.slidesPerGroup===0&&u.push(w),p.push(w),w=w+x+y),e.virtualSize+=x+y,S=x,_+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+f,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&(s.style.width=`${e.virtualSize+y}px`),i.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),E&&e.grid.updateWrapperSize(x,u),!i.centeredSlides){const t=[];for(let s=0;s<u.length;s+=1){let n=u[s];i.roundLengths&&(n=Math.floor(n)),u[s]<=e.virtualSize-r&&t.push(n)}u=t,Math.floor(e.virtualSize-r)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-r)}if(l&&i.loop){const t=m[0]+y;if(i.slidesPerGroup>1){const s=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),n=t*i.slidesPerGroup;for(let e=0;e<s;e+=1)u.push(u[u.length-1]+n)}for(let s=0;s<e.virtual.slidesBefore+e.virtual.slidesAfter;s+=1)1===i.slidesPerGroup&&u.push(u[u.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==y){const t=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");d.filter(((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1)).forEach((e=>{e.style[t]=`${y}px`}))}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(y||0)})),e-=y;const t=e-r;u=u.map((e=>e<=0?-g:e>t?t+f:e))}if(i.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(y||0)})),e-=y,e<r){const t=(r-e)/2;u.forEach(((e,i)=>{u[i]=e-t})),p.forEach(((e,i)=>{p[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ko(s,"--swiper-centered-offset-before",-u[0]+"px"),Ko(s,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(h!==c&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,s=e.el.classList.contains(t);h<=i.maxBackfaceHiddenSlides?s||e.el.classList.add(t):s&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{i.push(e)}));else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const e=t.activeIndex+n;if(e>t.slides.length&&!s)break;i.push(o(e))}else i.push(o(t.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const e=i[n].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:s,rtlTranslate:n,snapGrid:r}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;
vendor: 4,619 bytes, line 6
6n&&(o=e),s.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=i.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let l=0;l<s.length;l+=1){const e=s[l];let c=e.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=s[0].swiperSlideOffset);const d=(o+(i.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+a),h=(o-r[0]+(i.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+a),u=-(o-c),p=u+t.slidesSizesGrid[l],m=u>=0&&u<=t.size-t.slidesSizesGrid[l];(u>=0&&u<t.size-1||p>1&&p<=t.size||u<=0&&p>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(l),s[l].classList.add(i.slideVisibleClass)),m&&s[l].classList.add(i.slideFullyVisibleClass),e.progress=n?-d:d,e.originalProgress=n?-h:h}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=t;const l=r,c=o;if(0===s)n=0,r=!0,o=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;r=i||n<=0,o=a||n>=1,i&&(n=0),a&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],r=t.slidesGrid[s],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=n?(l-n)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(t,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:n}=e,r=e.virtual&&i.virtual.enabled,o=e.grid&&i.grid&&i.grid.rows>1,a=e=>Jo(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(i.loop){let t=n-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=t.filter((e=>e.column===n))[0],d=t.filter((e=>e.column===n+1))[0],c=t.filter((e=>e.column===n-1))[0]):l=t[n];l&&(o||(d=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=t[0]),c=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{ma(e,e===l,i.slideActiveClass),ma(e,e===d,i.slideNextClass),ma(e,e===c,i.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:n,activeIndex:r,realIndex:o,snapIndex:a}=t;let l,c=e;const d=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let r=0;r<t.length;r+=1)void 0!==t[r+1]?s>=t[r]&&s<t[r+1]-(t[r+1]-t[r])/2?n=r:s>=t[r]&&s<t[r+1]&&(n=r+1):s>=t[r]&&(n=r);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(t)),s.indexOf(i)>=0)l=s.indexOf(i);else{const e=Math.min(n.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c===r&&!t.params.loop)return void(l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const h=t.grid&&n.grid&&n.grid.rows>1;let u;if(t.virtual&&n.virtual.enabled&&n.loop)u=d(c);else if(h){const e=t.slides.filter((e=>e.column===c))[0];let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),u=Math.floor(i/n.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):c}else u=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:u,previousIndex:r,activeIndex:c}),t.initialized&&va(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,s=i.params;let n=e.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&t&&t.length>
61&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!n&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(n=e)}));let r,o=!1;if(n)for(let a=0;a<i.slides.length;a+=1)if(i.slides[a]===n){o=!0,r=a;break}if(!n||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=r,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let r=Go(n,e);return r+=this.cssOverflowAdjustment(),i&&(r=-r),r||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,wrapperEl:r,progress:o}=i;let a,l=0,c=0;i.isHorizontal()?l=s?-e:e:c=e,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,n.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:n.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=i.maxTranslate()-i.minTranslate();a=0===d?0:(e-i.minTranslate())/d,a!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=s&&e>l?l:s&&e<c?c:e,r.updateProgress(d),o.cssMode){const e=r.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return Xo({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(d),i&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),i&&(r.emit("beforeTransitionStart",t,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,i&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),ba({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),ba({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:h,rtlTranslate:u,wrapperEl:p,enabled:m}=r;if(!m&&!s&&!n||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,o);let f=g+Math.floor((o-g)/r.params.slidesPerGroup);f>=l.length&&(f=l.length-1);const v=-l[f];if(a.normalizeSlideIndex)for(let y=0;y<c.length;y+=1){const e=-Math.floor(100*v),t=Math.floor(100*c[y]),i=Math.floor(100*c[y+1]);void 0!==c[y+1]?e>=t&&e<i-(i-t)/2?o=y:e>=t&&e<i&&(o=y+1):e>=t&&(o=y)}if(r.initialized&&o!==h){if(!r.allowSlideNext&&(u?v>r.translate&&v>r.minTranslate():v<r.translate&&v<r.minTranslate()))return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(h||0)!==o)return!1}let b;if(o!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),b=o>h?"next":o<h?"prev":"reset",u&&-v===r.translate||!u&&v===r.translate)return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(v),"reset"!==b&&(r.transitionStart(i,b),r.transitionEnd(i,b)),!1;
6if(a.cssMode){const e=r.isHorizontal(),i=u?v:-v;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),t&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=i}))):p[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}))}else{if(!r.support.smoothScroll)return Xo({swiper:r,targetPosition:i,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,s),r.transitionStart(i,b),0===t?r.transitionEnd(i,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){if(void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e){e=parseInt(e,10)}const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o+=n.virtual.slidesBefore;else{let e;if(r){const t=o*n.params.grid.rows;e=n.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=n.getSlideIndexByData(o);const t=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params;let a=n.params.slidesPerView;"auto"===a?a=n.slidesPerViewDynamic():(a=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&a%2==0&&(a+=1));let l=t-e<a;if(i&&(l=l||e<Math.ceil(a/2)),s&&i&&"auto"!==n.params.slidesPerView&&!r&&(l=!1),l){const s=i?e<n.activeIndex?"prev":"next":e-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:s,slideTo:!0,activeSlideIndex:"next"===s?e+1:e-t+1,slideRealIndex:"next"===s?n.realIndex:void 0})}if(r){const e=o*n.params.grid.rows;o=n.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}
6else o=n.getSlideIndexByData(o)}return requestAnimationFrame((()=>{n.slideTo(o,t,i,s)})),n},slideNext:function(e,t,i){void 0===t&&(t=!0);const s=this,{enabled:n,params:r,animating:o}=s;if(!n||s.destroyed)return s;void 0===e&&(e=s.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<r.slidesPerGroupSkip?1:a,c=s.virtual&&r.virtual.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{s.slideTo(s.activeIndex+l,e,t,i)})),!0}return r.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const s=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function h(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=h(a?s.translate:-s.translate),p=r.map((e=>h(e)));let m=r[p.indexOf(u)-1];if(void 0===m&&n.cssMode){let e;r.forEach(((t,i)=>{u>=t&&(e=i)})),void 0!==e&&(m=r[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=o.indexOf(m),g<0&&(g=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(g=g-s.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame((()=>{s.slideTo(g,e,t,i)})),!0):s.slideTo(g,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);const s=this;if(!s.destroyed)return void 0===e&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const e=n.snapGrid[a];l-e>(n.snapGrid[a+1]-e)*s&&(r+=n.params.slidesPerGroup)}else{const e=n.snapGrid[a-1];l-e<=(n.snapGrid[a]-e)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,r=e.clickedIndex;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-s/2||r>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),r=e.getSlideIndex(Jo(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),Ro((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-s?(e.loopFix(),r=e.getSlideIndex(Jo(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),Ro((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}},loop:{loopCreate:function(e){const t=this,{params:i,slidesEl:s}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const n=()=>{Jo(s,`.${i.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(r?i.grid.rows:1),a=t.slides.length%o!==0,l=r&&t.slides.length%i.grid.rows!==0,c=e=>{for(let s=0;s<e;s+=1){const e=t.isElement?ea("swiper-slide",[i.slideBlankClass]):ea("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(e)}};if(a){if(i.loopAddBlankSlides){c(o-t.slides.length%o),t.recalcSlides(),t.updateSlides()}else Zo("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else if(l){if(i.loopAddBlankSlides){c(i.grid.rows-t.slides.length%i.grid.rows),t.recalcSlides(),t.updateSlides()}else Zo("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may 
6not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else n();t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:r,byController:o,byMousewheel:a}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:h,slidesEl:u,params:p}=l,{centeredSlides:m}=p;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return i&&(p.centeredSlides||0!==l.snapIndex?p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=h,void l.emit("loopFix");let g=p.slidesPerView;"auto"===g?g=l.slidesPerViewDynamic():(g=Math.ceil(parseFloat(p.slidesPerView,10)),m&&g%2==0&&(g+=1));const f=p.slidesPerGroupAuto?g:p.slidesPerGroup;let v=f;v%f!==0&&(v+=f-v%f),v+=p.loopAdditionalSlides,l.loopedSlides=v;const b=l.grid&&p.grid&&p.grid.rows>1;c.length<g+v?Zo("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===p.grid.fill&&Zo("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const y=[],w=[];let S=l.activeIndex;void 0===r?r=l.getSlideIndex(c.filter((e=>e.classList.contains(p.slideActiveClass)))[0]):S=r;const _="next"===s||!s,E="prev"===s||!s;let x=0,k=0;const O=b?Math.ceil(c.length/p.grid.rows):c.length,I=(b?c[r].column:r)+(m&&void 0===n?-g/2+.5:0);if(I<v){x=Math.max(v-I,f);for(let e=0;e<v-I;e+=1){const t=e-Math.floor(e/O)*O;if(b){const e=O-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&y.push(t)}else y.push(O-t-1)}}else if(I+g>O-v){k=Math.max(I-(O-2*v),f);for(let e=0;e<k;e+=1){const t=e-Math.floor(e/O)*O;b?c.forEach(((e,i)=>{e.column===t&&w.push(i)})):w.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),E&&y.forEach((e=>{c[e].swiperLoopMoveDOM=!0,u.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),_&&w.forEach((e=>{c[e].swiperLoopMoveDOM=!0,u.append(c[e]),c[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():b&&(y.length>0&&E||w.length>0&&_)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),p.watchSlidesProgress&&l.updateSlidesOffset(),i)if(y.length>0&&E){if(void 0===t){const e=l.slidesGrid[S],t=l.slidesGrid[S+x]-e;a?l.setTranslate(l.translate-t):(l.slideTo(S+Math.ceil(x),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(n){const e=b?y.length/p.grid.rows:y.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(w.length>0&&_)if(void 0===t){const e=l.slidesGrid[S],t=l.slidesGrid[S-k]-e;a?l.setTranslate(l.translate-t):(l.slideTo(S-k,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=b?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=h,l.controller&&l.controller.control&&!o){const e={slideRealIndex:t,direction:s,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&i})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&i})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}
vendor: 14,930 bytes, line 6
6)),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),s.forEach((e=>{i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}},grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=wa.bind(e),e.onTouchMove=Sa.bind(e),e.onTouchEnd=_a.bind(e),e.onDocumentTouchStart=La.bind(e),t.cssMode&&(e.onScroll=xa.bind(e)),e.onClick=Ca.bind(e),e.onLoad=Ta.bind(e),ka(e,"on")},detachEvents:function(){ka(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:s,el:n}=e,r=s.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const a=(o in r?r[o]:void 0)||e.originalParams,l=Aa(e,s),c=Aa(e,a),d=e.params.grabCursor,h=a.grabCursor,u=s.enabled;l&&!c?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(n.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&"column"===a.grid.fill||!a.grid.fill&&"column"===s.grid.fill)&&n.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!h?e.unsetGrabCursor():!d&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===a[t])return;const i=s[t]&&s[t].enabled,n=a[t]&&a[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()}));const p=a.direction&&a.direction!==s.direction,m=s.loop&&(a.slidesPerView!==s.slidesPerView||p),g=s.loop;p&&i&&e.changeDirection(),Yo(e.params,a);const f=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!f?e.disable():!u&&f&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",a),i&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&v?(e.loopCreate(t),e.updateSlides()):g&&!v&&e.loopDestroy()),e.emit("breakpoint",a)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const n=Vo(),r="window"===t?n.innerHeight:i.clientHeight,o=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let a=0;a<o.length;a+=1){const{point:e,value:r}=o[a];"window"===t?n.matchMedia(`(min-width: ${r}px)`).matches&&(s=e):r<=i.clientWidth&&(s=e)}return s||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,el:n,device:r}=e,o=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),n.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},Pa={};let Ma=class Swiper2{constructor(){let e,t;for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?t=s[0]:[e,t]=s,t||(t={}),t=Yo({},t),e&&!t.el&&(t.el=e);const r=$o();if(t.el&&"string"==typeof t.el&&r.querySelectorAll(t.el).length>1){const e=[];return r.querySelectorAll(t.el).forEach((i=>{const s=Yo({},t,{el:i});e.push(new Swiper2(s))})),e}const o=this;o.__swiper__=!0,o.support=da(),o.device=ha({userAgent:t.userAgent}),o.browser=ua(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const a={};o.modules.forEach((e=>{e({params:t,swiper:o,extendParams:Ia(t,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const l=Yo({},Oa,a);return o.params=Yo({},l,Pa,t),o.originalParams=Yo({},o.params),o.passedParams=Yo({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,s=ia(Jo(t,`.${i.slideClass}, swiper-slide`)[0]);return ia(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Jo(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*e+s;i.translateTo(n,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[a]?Math.ceil(s[a].swiperSlideSize):0;for(let i=a+1;i<s.length;i+=1)s[i]&&!e&&(t+=Math.ceil(s[i].swiperSlideSize),l+=1,t>o&&(e=!0));for(let i=a-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let c=a+1;c<s.length;c+=1){(t?n[c]+r[c]-n[a]<o:n[c]-n[a]<o)&&(l+=1)}else for(let c=a-1;c>=0;c-=1){n[a]-n[c]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&ga(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(t.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(s())}return Jo(i,s())[0]})();return!n&&t.params.createElements&&(n=ea("div",t.params.wrapperClass),i.append(n),Jo(i,`.${t.params.slideClass}`).forEach((e=>{n.append(e)}))),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===ta(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===ta(i,"direction")),wrongRTL:"-webkit-box"===ta(n,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach((e=>{e.complete?ga(t,e):e.addEventListener("load",(e=>{ga(t,e.target)}))})),va(t),t.initialized=!0,va(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,el:n,wrapperEl:r,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttribute("style"),r.removeAttribute("style"),o&&o.length&&o.forEach((e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(i){}try{delete t[e]}catch(i){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){Yo(Pa,e)}static get extendedDefaults(){return Pa}static get defaults(){return Oa}static installModule(e){Swiper2.prototype.__modules__||(Swiper2.prototype.__modules__=[]);const t=Swiper2.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Swiper2.installModule(e))),Swiper2):(Swiper2.installModule(e),Swiper2)}};function qa(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach((n=>{if(!i[n]&&!0===i.auto){let r=Jo(e.el,`.${s[n]}`)[0];r||(r=ea("div",s[n]),r.className=s[n],e.el.append(r)),i[n]=r,t[n]=r}})),i}function za(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function r(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function o(e,i){const s=t.params.navigation;(e=oa(e)).forEach((e=>{e&&(e.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass))}))}function a(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return o(i,!1),void o(e,!1);o(i,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=qa(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=r(e.nextEl),s=r(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:s}),i=oa(i),s=oa(s);const n=(i,s)=>{i&&i.addEventListener("click","next"===s?c:l),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};
6i.forEach((e=>n(e,"next"))),s.forEach((e=>n(e,"prev")))}function h(){let{nextEl:e,prevEl:i}=t.navigation;e=oa(e),i=oa(i);const s=(e,i)=>{e.removeEventListener("click","next"===i?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>s(e,"next"))),i.forEach((e=>s(e,"prev")))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},s("init",(()=>{!1===t.params.navigation.enabled?u():(d(),a())})),s("toEdge fromEdge lock unlock",(()=>{a()})),s("destroy",(()=>{h()})),s("enable disable",(()=>{let{nextEl:e,prevEl:i}=t.navigation;e=oa(e),i=oa(i),t.enabled?a():[...e,...i].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),s("click",((e,i)=>{let{nextEl:s,prevEl:r}=t.navigation;s=oa(s),r=oa(r);const o=i.target;if(t.params.navigation.hideOnClick&&!r.includes(o)&&!s.includes(o)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===o||t.pagination.el.contains(o)))return;let e;s.length?e=s[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),[...s,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},disable:u,update:a,init:d,destroy:h})}function Ha(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ba(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r="swiper-pagination";let o;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,i){const{bulletActiveClass:s}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${s}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${s}-${i}-${i}`))}function d(e){const i=e.target.closest(Ha(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const s=ia(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===s)return;t.slideToLoop(s)}else t.slideTo(s)}function h(){const e=t.rtl,i=t.params.pagination;if(l())return;let s,r,d=t.pagination.el;d=oa(d);const h=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(h/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,s=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(s=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,s=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let l,h,u;if(i.dynamicBullets&&(o=ra(n[0],t.isHorizontal()?"width":"height"),d.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=o*(i.dynamicMainBullets+4)+"px"})),i.dynamicMainBullets>1&&void 0!==r&&(a+=s-(r||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),l=Math.max(s-a,0),h=l+(Math.min(n.length,i.dynamicMainBullets)-1),u=(h+l)/2),n.forEac
6h((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),d.length>1)n.forEach((e=>{const n=ia(e);n===s?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(n>=l&&n<=h&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===l&&c(e,"prev"),n===h&&c(e,"next"))}));else{const e=n[s];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&n.forEach(((e,t)=>{e.setAttribute("part",t===s?"bullet-active":"bullet")})),i.dynamicBullets){const e=n[l],t=n[h];for(let s=l;s<=h;s+=1)n[s]&&n[s].classList.add(...`${i.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),r=(o*s-o)/2-u*o,a=e?"right":"left";n.forEach((e=>{e.style[t.isHorizontal()?a:"top"]=`${r}px`}))}}d.forEach(((e,r)=>{if("fraction"===i.type&&(e.querySelectorAll(Ha(i.currentClass)).forEach((e=>{e.textContent=i.formatFractionCurrent(s+1)})),e.querySelectorAll(Ha(i.totalClass)).forEach((e=>{e.textContent=i.formatFractionTotal(u)}))),"progressbar"===i.type){let n;n=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(s+1)/u;let o=1,a=1;"horizontal"===n?o=r:a=r,e.querySelectorAll(Ha(i.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===i.type&&i.renderCustom?(e.innerHTML=i.renderCustom(t,s+1,u),0===r&&n("paginationRender",e)):(0===r&&n("paginationRender",e),n("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)}))}function u(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let s=t.pagination.el;s=oa(s);let r="";if("bullets"===e.type){let s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)e.renderBullet?r+=e.renderBullet.call(t,i,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],s.forEach((i=>{"custom"!==e.type&&(i.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(Ha(e.bulletClass)))})),"custom"!==e.type&&n("paginationRender",s[0])}function p(){t.params.pagination=qa(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),i||"string"!=typeof e.el||(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(e.el)],i.length>1&&(i=i.filter((e=>sa(e,".swiper")[0]===t.el))[0])),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=oa(i),i.forEach((i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",d),t.enabled||i.classList.add(e.lockClass)})))}function m(){const e=t.params.pagination;if(l())return;let i=t.pagination.el;
6i&&(i=oa(i),i.forEach((i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",d))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}s("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;i=oa(i),i.forEach((i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),s("init",(()=>{!1===t.params.pagination.enabled?g():(p(),u(),h())})),s("activeIndexChange",(()=>{void 0===t.snapIndex&&h()})),s("snapIndexChange",(()=>{h()})),s("snapGridLengthChange",(()=>{u(),h()})),s("destroy",(()=>{m()})),s("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=oa(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),s("lock unlock",(()=>{h()})),s("click",((e,i)=>{const s=i.target,r=oa(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!s.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=oa(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),m()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=oa(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),p(),u(),h()},disable:g,render:u,update:h,init:p,destroy:m})}function ja(e){let{swiper:t,extendParams:i,on:s}=e;function n(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)i=e+t>>1,s[i]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},s("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){const e=document.querySelector(t.params.controller.control);if(e&&e.swiper)t.controller.control=e.swiper;else if(e){const i=s=>{t.controller.control=s.detail[0],t.update(),e.removeEventListener("init",i)};e.addEventListener("init",i)}}else t.controller.control=t.params.controller.control})),s("update",(()=>{r()})),s("resize",(()=>{r()})),s("observerUpdate",(()=>{r()})),s("setTranslate",((e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(i,s)})),s("setTransition",((e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(i,s)})),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let r,o;const a=t.constructor;function l(e){if(e.destroyed)return;const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid)}(e),o=-t.controller.spline.interpolate(-i)),o&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),o=(i-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(o=e.maxTranslate()-o),e.updateProgress(o),e.setTranslate(o,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let t=0;t<s.length;t+=1)s[t]!==i&&s[t]instanceof a&&l(s[t]);else s instanceof a&&i!==s&&l(s)},setTransition:function(e,i){const s=t.constructor,n=t.controller.control;let r;function o(i){i.destroyed||(i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&Ro((()=>{i.updateAutoHeight()})),na(i.wrapperEl,(()=>{n&&i.transitionEnd()}))))}if(Array.isArray(n))for(r=0;r<n.length;r+=1)n[r]!==i&&n[r]instanceof s&&o(n[r]);else n instanceof s&&i!==n&&o(n)}})}function Fa(e){let{swiper:t,extendParams:i,on:s}=e;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let n,r,o=null,a=(new Date).getTime();function l(e){const t=o;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}
6function c(e){(e=oa(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function d(e){(e=oa(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function h(e,t){(e=oa(e)).forEach((e=>{e.setAttribute("role",t)}))}function u(e,t){(e=oa(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function p(e,t){(e=oa(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function m(e){(e=oa(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function g(e){(e=oa(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function f(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,s=e.target;if(!t.pagination||!t.pagination.el||s!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(Ha(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=oa(t.navigation.prevEl);oa(t.navigation.nextEl).includes(s)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(i.lastSlideMessage):l(i.nextSlideMessage)),e.includes(s)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(i.firstSlideMessage):l(i.prevSlideMessage))}t.pagination&&s.matches(Ha(t.params.pagination.bulletClass))&&s.click()}}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function b(){return v()&&t.params.pagination.clickable}const y=(e,t,i)=>{c(e),"BUTTON"!==e.tagName&&(h(e,"button"),e.addEventListener("keydown",f)),p(e,i),function(e,t){(e=oa(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},w=e=>{r&&r!==e.target&&!r.contains(e.target)&&(n=!0),t.a11y.clicked=!0},S=()=>{n=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},_=e=>{a=(new Date).getTime()},E=e=>{if(t.a11y.clicked)return;if((new Date).getTime()-a<100)return;const i=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!i||!t.slides.includes(i))return;r=i;const s=t.slides.indexOf(i)===t.activeIndex,o=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||o||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{n||(t.slideTo(t.slides.indexOf(i),0),n=!1)})))},x=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&u(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&h(t.slides,e.slideRole);const i=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((s,n)=>{const r=t.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):n;p(s,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,i))}))},k=()=>{const e=t.params.a11y;t.el.append(o);const i=t.el;e.containerRoleDescriptionMessage&&u(i,e.containerRoleDescriptionMessage),e.containerMessage&&p(i,e.containerMessage);const s=t.wrapperEl,n=e.id||s.getAttribute("id")||`swiper-wrapper-${r=16,"x".repeat(r).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var r;const a=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;l=n,oa(s).forEach((e=>{e.setAttribute("id",l)})),function(e,t){(e=oa(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(s,a),x();let{nextEl:c,prevEl:d}=t.navigation?t.navigation:{};if(c=oa(c),d=oa(d),c&&c.forEach((t=>y(t,n,e.nextSlideMessage))),d&&d.forEach((t=>y(t,n,e.prevSlideMessage))),b()){oa(t.pagination.el).forEach((e=>{e.addEventListener("keydown",f)}))}$o().addEventListener("visibilitychange",_),t.el.addEventListener("focus",E,!0),t.el.addEventListener("focus",E,!0),t.el.addEventListener("pointerdown",w,!0),t.el.addEventListener("pointerup",S,!0)};s("beforeInit",(()=>{o=ea("span",t.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")})),s("afterInit",(()=>{t.params.a11y.enabled&&k()})),s("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&x()})),s("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:i}=t.navigation;i&&(t.isBeginning?(m(i),d(i)):(g(i),c(i))),e&&(t.isEnd?(m(e),d(e)):(g(e),c(e)))}()})),s("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;
6v()&&t.pagination.bullets.forEach((i=>{t.params.pagination.clickable&&(c(i),t.params.pagination.renderBullet||(h(i,"button"),p(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,ia(i)+1)))),i.matches(Ha(t.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")}))}()})),s("destroy",(()=>{t.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:e,prevEl:i}=t.navigation?t.navigation:{};e=oa(e),i=oa(i),e&&e.forEach((e=>e.removeEventListener("keydown",f))),i&&i.forEach((e=>e.removeEventListener("keydown",f))),b()&&oa(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",f)}));$o().removeEventListener("visibilitychange",_),t.el.removeEventListener("focus",E,!0),t.el.removeEventListener("pointerdown",w,!0),t.el.removeEventListener("pointerup",S,!0)}()}))}function $a(e){let{swiper:t,extendParams:i,emit:s,on:n}=e,r=!1;const o=$o(),a=Vo();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,i){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter((e=>e.getAttribute("data-hash")===i))[0];if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(Jo(t.slidesEl,`.${t.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const l=()=>{s("hashChange");const e=o.location.hash.replace("#",""),i=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(i?i.getAttribute("data-hash"):"")){const i=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===i||Number.isNaN(i))return;t.slideTo(i)}},c=()=>{if(!r||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],i=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${i}`||""),s("hashSet")):(o.location.hash=i||"",s("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;r=!0;const e=o.location.hash.replace("#","");if(e){const i=0,s=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(s||0,i,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&a.addEventListener("hashchange",l)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&a.removeEventListener("hashchange",l)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&c()})),n("slideChange",(()=>{r&&t.params.cssMode&&c()}))}function Na(e){let t,i,{swiper:s,extendParams:n,on:r,emit:o,params:a}=e;s.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,d,h,u,p,m,g,f=a&&a.autoplay?a.autoplay.delay:3e3,v=a&&a.autoplay?a.autoplay.delay:3e3,b=(new Date).getTime();function y(e){s&&!s.destroyed&&s.wrapperEl&&e.target===s.wrapperEl&&(s.wrapperEl.removeEventListener("transitionend",y),g||k())}const w=()=>{if(s.destroyed||!s.autoplay.running)return;s.autoplay.paused?c=!0:c&&(v=l,c=!1);const e=s.autoplay.paused?l:b+v-(new Date).getTime();s.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/f),i=requestAnimationFrame((()=>{w()}))},S=e=>{if(s.destroyed||!s.autoplay.running)return;cancelAnimationFrame(i),w();let n=void 0===e?s.params.autoplay.delay:e;f=s.params.autoplay.delay,v=s.params.autoplay.delay;const r=(()=>{let e;if(e=s.virtual&&s.params.virtual.enabled?s.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:s.slides[s.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(n=r,f=r,v=r),l=n;const a=s.params.speed,c=()=>{s&&!s.destroyed&&(s.params.autoplay.reverseDirection?!s.isBeginning||s.params.loop||s.params.rewind?(s.slidePrev(a,!0,!0),o("autoplay")):s.params.autoplay.stopOnLastSlide||(s.slideTo(s.slides.length-1,a,!0,!0),o("autoplay")):!s.isEnd||s.params.loop||s.params.rewind?(s.slideNext(a,!0,!0),o("autoplay")):s.params.autoplay.stopOnLastSlide||(s.slideTo(0,a,!0,!0),o("autoplay")),s.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{S()}))))};return n>0?(clearTimeout(t),t=setTimeout((()=>{c()}),n)):requestAnimationFrame((()=>{c()})),n},_=()=>{b=(new Date).getTime(),s.autoplay.running=!0,S(),o("autoplayStart")},E=()=>
6{s.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),o("autoplayStop")},x=(e,i)=>{if(s.destroyed||!s.autoplay.running)return;clearTimeout(t),e||(m=!0);const n=()=>{o("autoplayPause"),s.params.autoplay.waitForTransition?s.wrapperEl.addEventListener("transitionend",y):k()};if(s.autoplay.paused=!0,i)return p&&(l=s.params.autoplay.delay),p=!1,void n();const r=l||s.params.autoplay.delay;l=r-((new Date).getTime()-b),s.isEnd&&l<0&&!s.params.loop||(l<0&&(l=0),n())},k=()=>{s.isEnd&&l<0&&!s.params.loop||s.destroyed||!s.autoplay.running||(b=(new Date).getTime(),m?(m=!1,S(l)):S(),s.autoplay.paused=!1,o("autoplayResume"))},O=()=>{if(s.destroyed||!s.autoplay.running)return;const e=$o();"hidden"===e.visibilityState&&(m=!0,x(!0)),"visible"===e.visibilityState&&k()},I=e=>{"mouse"===e.pointerType&&(m=!0,g=!0,s.animating||s.autoplay.paused||x(!0))},D=e=>{"mouse"===e.pointerType&&(g=!1,s.autoplay.paused&&k())};r("init",(()=>{s.params.autoplay.enabled&&(s.params.autoplay.pauseOnMouseEnter&&(s.el.addEventListener("pointerenter",I),s.el.addEventListener("pointerleave",D)),$o().addEventListener("visibilitychange",O),_())})),r("destroy",(()=>{s.el.removeEventListener("pointerenter",I),s.el.removeEventListener("pointerleave",D),$o().removeEventListener("visibilitychange",O),s.autoplay.running&&E()})),r("_freeModeStaticRelease",(()=>{(h||m)&&k()})),r("_freeModeNoMomentumRelease",(()=>{s.params.autoplay.disableOnInteraction?E():x(!0,!0)})),r("beforeTransitionStart",((e,t,i)=>{!s.destroyed&&s.autoplay.running&&(i||!s.params.autoplay.disableOnInteraction?x(!0,!0):E())})),r("sliderFirstMove",(()=>{!s.destroyed&&s.autoplay.running&&(s.params.autoplay.disableOnInteraction?E():(d=!0,h=!1,m=!1,u=setTimeout((()=>{m=!0,h=!0,x(!0)}),200)))})),r("touchEnd",(()=>{if(!s.destroyed&&s.autoplay.running&&d){if(clearTimeout(u),clearTimeout(t),s.params.autoplay.disableOnInteraction)return h=!1,void(d=!1);h&&s.params.cssMode&&k(),h=!1,d=!1}})),r("slideChange",(()=>{!s.destroyed&&s.autoplay.running&&(p=!0)})),Object.assign(s.autoplay,{start:_,stop:E,pause:x,resume:k})}function Va(e){const t=this,{params:i,slidesEl:s}=t;i.loop&&t.loopDestroy();const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.append(t.children[0]),t.innerHTML=""}else s.append(e)};if("object"==typeof e&&"length"in e)for(let r=0;r<e.length;r+=1)e[r]&&n(e[r]);else n(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update()}function Ra(e){const t=this,{params:i,activeIndex:s,slidesEl:n}=t;i.loop&&t.loopDestroy();let r=s+1;const o=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,n.prepend(t.children[0]),t.innerHTML=""}else n.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&o(e[t]);r=s+e.length}else o(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),t.slideTo(r,0,!1)}function Wa(e,t){const i=this,{params:s,activeIndex:n,slidesEl:r}=i;let o=n;s.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const a=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=a)return void i.appendSlide(t);let l=o>e?o+1:o;const c=[];for(let d=a-1;d>=e;d-=1){const e=i.slides[d];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);l=o>e?o+t.length:o}else r.append(t);for(let d=0;d<c.length;d+=1)r.append(c[d]);i.recalcSlides(),s.loop&&i.loopCreate(),s.observer&&!i.isElement||i.update(),s.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function Ga(e){const t=this,{params:i,activeIndex:s}=t;let n=s;i.loop&&(n-=t.loopedSlides,t.loopDestroy());let r,o=n;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)r=e[i],t.slides[r]&&t.slides[r].remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<o&&(o-=1),o=Math.max(o,0);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function Ua(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function Ya(e){let{swiper:t}=e;Object.assign(t,{appendSlide:Va.bind(t),prependSlide:Ra.bind(t),addSlide:Wa.bind(t),removeSlide:Ga.bind(t),removeAllSlides:Ua.bind(t)})}function Ka(e,t){const i=Qo(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function Xa(e){let{swiper:t,extendParams:i,on:s}=e;i({fadeEffect:{crossFade:!1}});!function(e){const{effect:t,swiper:i,on:s,setTranslate:n,setTransition:r,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=e;let d;s("beforeInit",(()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),s("setTranslate",(()=>{i.params.effect===t&&n()})),s("setTransition",((e,s)=>{i.params.effect===t&&r(s)})),s("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;
6i.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),s("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame((()=>{d&&i.slides&&i.slides.length&&(n(),d=!1)})))}))}({effect:"fade",swiper:t,on:s,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i<e.length;i+=1){const e=t.slides[i];let s=-e.swiperSlideOffset;t.params.virtualTranslate||(s-=t.translate);let n=0;t.isHorizontal()||(n=s,s=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),o=Ka(0,e);o.style.opacity=r,o.style.transform=`translate3d(${s}px, ${n}px, 0px)`}},setTransition:e=>{const i=t.slides.map((e=>Qo(e)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`})),function(e){let{swiper:t,duration:i,transformElements:s}=e;const{activeIndex:n}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=s,e.forEach((e=>{na(e,(()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}({swiper:t,duration:e,transformElements:i})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}Object.keys(Da).forEach((e=>{Object.keys(Da[e]).forEach((t=>{Ma.prototype[t]=Da[e][t]}))})),Ma.use([function(e){let{swiper:t,on:i,emit:s}=e;const n=Vo();let r=null,o=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(r=new ResizeObserver((e=>{o=n.requestAnimationFrame((()=>{const{width:i,height:s}=t;let n=i,r=s;e.forEach((e=>{let{contentBoxSize:i,contentRect:s,target:o}=e;o&&o!==t.el||(n=s?s.width:(i[0]||i).inlineSize,r=s?s.height:(i[0]||i).blockSize)})),n===i&&r===s||a()}))})),r.observe(t.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",l))})),i("destroy",(()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r=[],o=Vo(),a=function(e,i){void 0===i&&(i={});const s=new(o.MutationObserver||o.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void n("observerUpdate",e[0]);const i=function(){n("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)}));s.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),r.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=sa(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),s("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);class Swiper extends Ma{constructor(e,t){t.modules?t.modules.push(Fa):t.modules=[Fa],t.a11y||(t.a11y={firstSlideMessage:"Dies ist der erste Slide",lastSlideMessage:"Dies ist der letzte Slide",nextSlideMessage:"Nächster Slide",paginationBulletMessage:"Gehe zu Slide {{index}}",prevSlideMessage:"Vorheriger Slide",slideLabelMessage:"Slide {{index}} von {{slidesLength}}"}),super(e,t)}}function Qa({swiper:e,on:t,off:i}){let s,n,r=!1;const o=()=>{window.innerWidth<oe.from||e.params.slidesPerView<e.slides.length?a():l()};e.on("init",(()=>{s=e.navigation.prevEl instanceof Array?e.navigation.prevEl[0]:e.navigation.prevEl,n=e.navigation.nextEl instanceof Array?e.navigation.nextEl[0]:e.navigation.nextEl,o(),e.on("breakpoint",o),r&&null!==e.params.initialSlide&&void 0!==e.params.initialSlide&&e.params.initialSlide!==e.activeIndex&&e.slideToForced(e.params.initialSlide)}));const a=()=>{r||(e.params.navigation.disabledClass="swiper-button-dummy",s?.addEventListener("click",d),n?.addEventListener("click",h),t("touchEnd",p),t("slideChange",m),t("beforeResize",v),t("resize",b),t("destroy",l),r=!0)},l=()=>{r&&(e.params.navigation.disabledClass=e.originalParams.navigation.disabledClass,s?.removeEventListener("click",d),n?.removeEventListener("click",h),i("touchEnd",p),i("slideChange",m),i("beforeResize",v),i("resize",b),r=!1)},c=e.slideTo;e.slideTo=(...t)=>{r||c.call(e,...t)},e.slideToForced=(t,i)=>{if(t===e.activeIndex||t<0||t>=e.slides.length)return;const s=t-e.activeIndex;e.allowSlidePrev=!0,e.allowSlideNext=!0;const n=c.call(e,t);(!n||n&&t!==e.activeIndex)&&(e.activeIndex=t,e.realIndex=t,e.updateSlidesClasses(),e.emit("slideChange"),0===t?e.allowSlideNext=!1:t===e.slides.length-1&&(e.allowSlidePrev=!1)),i&&u(s)};const d=()=>{e.slideToForced(e.activeIndex-1,!0)},h=()=>{e.slideToForced(e.activeIndex+1,!0)},u=t=>{e.params.monkeyPunchController?.control?.forEach((e=>e.swiper?.slideToForced(e.swiper.activeIndex+t)))},p=e=>{if(e.touchEventsData.isScrolling)return;const t=e.touches.startX,i=e.touches.currentX;i>t?d():i<t&&h()},m=e=>{r?(0===e.activeIndex?s?.classList.add("d-none"):s?.classList.remove("d-none"),e.activeIndex===e.slides.length-1?n?.classList.add("d-none"):n?.classList.remove("d-none")):e.navigation.update()};let g=!0,f=!0;const v=()=>{g=e.allowSlidePrev,f=e.allowSlideNext},b=()=>{e.allowSlidePrev=g,e.allowSlideNext=f;const t=e.activeIndex;w((()=>{e.destroyed||(c.call(e,t,0,!1),e.activeIndex!==t&&e.slideToForced(t),m(e))}))};let y;const w=e=>{y&&(clearTimeout(y),y=0),y=setTimeout(e,200)}}const Ja="[data-top-stage-slider]",Za=Ja+":not(.swiper-initialized)",el=".swiper-pagination-bullet";class TopStageSlider{constructor(e){this.element=e,this.initCarousel(),addEventListener(a,(()=>{this.swiper.autoplay?.start()})),addEventListener(l,(()=>{this.swiper.autoplay?.stop()}))}getBooleanAttribute(e){return"string"==typeof this.element.dataset["topStageSlider"+e.charAt(0).toUpperCase()+e.slice(1)]}initCarousel(){const e=this.element.querySelectorAll(".swiper-slide").length>1,t=this.getBooleanAttribute("autoplay")&&e,i=!this.getBooleanAttribute("HideDesoDots"),s=this.getBooleanAttribute("arrows")&&e,n=!this.getBooleanAttribute("HideMosoDots"),r=this.getBooleanAttribute("MosoSingleSlide"),o=this.getBooleanAttribute("DesoSingleSlide"),a=void 0!==this.element.dataset.sliderFade,l=this.getBooleanAttribute("HashNavigation"),c=parseInt(this.element.dataset.sliderSpeed)||300,d=void 0!==this.element.dataset.sliderObserver;if(r&&o||!e)return new Swiper(this.element,{enabled:!1,touchStartPreventDefault:!1});const h=[];t&&h.push(Na),(n||i)&&e&&(this.addPaginationElements(),h.push(Ba)),s&&(this.addNavigationElements(),h.push(za)),a&&h.push(Xa),l&&h.push($a),this.swiper=new Swiper(this.element,{speed:c,loop:!0,modules:h,effect:a?"fade":"slide",fadeEffect:a?{crossFade:!0}:void 0,runCallbacksOnInit:!1,observer:d,touchStartPreventDefault:!1,autoplay:t&&{delay:4e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},hashNavigation:!!l&&{watchState:!0},pagination:(i||n)&&{el:".swiper-pagination",clickable:!0,bulletElement:"a"},navigation:s&&{enabled:!1,nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{767:{navigation:{enabled:!0},allowTouchMove:!a,preventClicks:!a}},on:{afterInit:e=>{setTimeout((()=>{0===e.activeIndex&&this.playAnimations(e),this.pauseOnCookieLayer()}),0),this.disableKeyboardFocus(),this.initializeTracking()},realIndexChange:e=>this.resetAnimations(e),observerUpdate:(e,t)=>
6this.fixSlidesIndex(e,t)}})}disableKeyboardFocus(){this.element.querySelectorAll(el).forEach((e=>{e.tabIndex=-1}))}initializeTracking(){this.element.querySelectorAll(el).forEach(((e,t)=>{e.href="#",e.dataset.linkid=`topstage_pos${t} :: indicator :: topstage change indicator click`,e.dataset.linktarget="samepage"}))}fixSlidesIndex(e,t){t.target.classList.contains("swiper-wrapper")&&(t.removedNodes.length>0||t.addedNodes.length>0)&&(e.loopDestroy(),e.loopCreate()),this.disableKeyboardFocus()}addPaginationElements(){const e=document.createElement("div");e.classList.add("swiper-pagination"),this.element.appendChild(e)}addNavigationElements(){const e=document.createElement("div"),t=document.createElement("div");e.classList.add("swiper-button-prev"),t.classList.add("swiper-button-next"),this.element.appendChild(e),this.element.appendChild(t)}playAnimations(e){e.slides[e.activeIndex].firstElementChild.getAnimations({subtree:!0}).forEach((e=>{e.play()}))}pauseAnimations(e){e.slides[e.activeIndex].firstElementChild.getAnimations({subtree:!0}).forEach((e=>{e.pause()}))}resetAnimations(e){const t=e.slides[e.activeIndex];t?.firstElementChild.getAnimations({subtree:!0}).forEach((e=>{"paused"!==e.playState&&(e.playbackRate=-1,e.finish()),setTimeout((()=>{e.playbackRate=1,e.play()}),700)})),this.disableKeyboardFocus()}pauseOnCookieLayer(){const e=e=>{document.querySelectorAll(e).forEach((e=>{e.addEventListener("click",(()=>{this.playAnimations(this.swiper),this.swiper.autoplay?.start()}))}))};var t;(t="#__tealiumGDPRcpPrefs",new Promise((e=>{document.querySelector(t)?e():xo.get("CONSENTMGR")||new MutationObserver(((i,s)=>{document.querySelectorAll(t).forEach((()=>{s.disconnect(),e()}))})).observe(document.documentElement,{childList:!0,subtree:!0})}))).then((()=>{this.pauseAnimations(this.swiper),this.swiper.autoplay?.stop(),e("#__tealiumGDPRcpPrefs button")}))}}const tl=Object.freeze(Object.defineProperty({__proto__:null,SLIDER_SELECTOR:Ja,TopStageSlider:TopStageSlider,default:class TopStageSliderInitializer{constructor(e=document){this.initializeSliders(e),this.removeInitPrevention(e)}initializeSliders(e){e.querySelectorAll(Za+":not([data-no-init])").forEach((e=>new TopStageSlider(e)))}removeInitPrevention(e){e.querySelectorAll(Za+"[data-no-init]").forEach((e=>e.removeAttribute("data-no-init")))}}},Symbol.toStringTag,{value:"Module"})),il="[data-uniboxes]",sl="[data-uniboxes-slider]",nl="[data-uniboxes-slider-item]",rl="[data-unibox-head]";class UniboxesSlider{swiper;uniboxes;uniboxesSlider;mainWrapper;thumbnailContainer;items;infobox;itemsPerBreakpoint;prevArrow;nextArrow;slidesPerView;constructor(e){this.uniboxes=e,this.uniboxesSlider=e.querySelector(".swiper"),this.swiper=this.uniboxesSlider.swiper,this.mainWrapper=this.uniboxes.parentElement,this.isInRoamingCenter=Boolean(this.uniboxes.closest(".roaming-center")),this.items=this.getItems(),this.infobox=this.uniboxes.querySelector(".infobox"),this.sliderContainer=this.uniboxes.closest(il),this.slidesPerView=parseInt(this.uniboxes.dataset.slidesPerView),this.isPlansVariant=Boolean(this.uniboxesSlider.querySelector(".tariffbox--plans")),this.sliderGroup=this.uniboxes.dataset.sliderGroup,this.itemsPerBreakpoint={xs:this.getSlidesPerView(),sm:this.getSlidesPerView(),ms:this.getSlidesPerView(),md:this.getSlidesPerView("md"),lg:this.getSlidesPerView("lg"),xl:this.getSlidesPerView("xl"),xxl:this.getSlidesPerView("xxl")},this.initCarousel(),document.addEventListener(h,(()=>this.setArrowPosition())),window.addEventListener("resize",(()=>{this.swiper||this.onResize()}))}get isLoop(){return Boolean("true"===this.uniboxes.getAttribute("data-swiper-loop"))}getSlidersToControl(){return[...document.querySelectorAll(`[data-slider-group=${this.sliderGroup}] .swiper`)].filter((e=>e!==this.uniboxesSlider))}getSlidesPerView(e){switch(e){case"md":return this.isPlansVariant&&this.slidesPerView||2;case"lg":return this.isPlansVariant?this.slidesPerView||2:3;case"xl":return this.isPlansVariant?this.slidesPerView||2:this.infobox?this.slidesPerView||3:5;case"xxl":return this.isPlansVariant||this.infobox?this.slidesPerView||3:5;default:return 1}}getFirstSlide(){if(window.innerWidth>=re.from){const e=this.uniboxes.querySelector(".swiper-start-deso");if(e)return e}return this.uniboxes.querySelector(".swiper-start")}shouldStartSlider(e){const t=window.innerWidth,i={MoSo:[te.from,se.from-1],TaSo:[se.from,re.from-1],DeSo:[re.from,oe.from-1]};for(const s of e){const e=i[s];if(e&&t>=e[0]&&t<=e[1])return!1}return!0}initCarousel(){if(this.uniboxes.closest("[class$=--without-slider]"))return;
6const e=(this.uniboxes.dataset.noSlider||"").split(",").map((e=>e.trim()));if(!this.shouldStartSlider(e))return void this.sliderContainer.classList.add("swiper-disabled");if(this.swiper){if(this.swiper.slides.length>0)return void this.swiper.update();this.swiper.destroy(),this.swiper=null}const t=[...this.uniboxes.querySelectorAll(".swiper-slide")].indexOf(this.getFirstSlide());this.prevArrow=this.createArrow("prev"),this.uniboxes.prepend(this.prevArrow),this.nextArrow=this.createArrow("next"),this.uniboxes.append(this.nextArrow);const i=[za];this.isPlansVariant||i.push(Qa),this.swiper=new Swiper(this.uniboxesSlider,{modules:i,createElements:!0,centeredSlides:!0,centeredSlidesBounds:!0,resistanceRatio:this.isLoop?.85:0,touchRatio:.6,threshold:0,shortSwipes:!0,longSwipesRatio:.1,longSwipesMs:350,rewind:this.isLoop,initialSlide:t,touchStartPreventDefault:!1,spaceBetween:this.isPlansVariant&&this.items.length>2?12:0,navigation:{prevEl:this.prevArrow,nextEl:this.nextArrow,disabledClass:"d-none"},...this.sliderGroup&&{monkeyPunchController:{control:this.getSlidersToControl()}},slidesPerView:this.itemsPerBreakpoint.xs,breakpoints:{[ne.from]:{slidesPerView:Math.min(this.items.length,this.itemsPerBreakpoint.md),centeredSlides:!1},[re.from]:{slidesPerView:Math.min(this.items.length,this.itemsPerBreakpoint.lg),centeredSlides:!0},[oe.from]:{slidesPerView:Math.min(this.items.length,this.itemsPerBreakpoint.xl),centeredSlides:!1},[ae.from]:{slidesPerView:Math.min(this.items.length,this.itemsPerBreakpoint.xxl),centeredSlides:this.isPlansVariant}},on:{slideChangeTransitionEnd:()=>{this.uniboxes.dispatchEvent(new CustomEvent(f)),this.syncTopStageSlider()},resize:()=>{this.onResize()}}}),this.initializeThumbnails(),this.swiper.on("breakpoint",(()=>this.onBreakpoint())),this.onBreakpoint(),this.setArrowPosition()}syncTopStageSlider(){if(!this.swiper)return;const e=this.swiper.slides[this.swiper.activeIndex].dataset.syncGroup;if(!e)return;const t=document.querySelector(`${Ja} [data-sync-group=${e}]`);if(!t)return;const i=t.closest(Ja)?.swiper;if(!i)return;const s=i.slides.indexOf(t);i.slideTo(s)}initializeThumbnails(){if(this.items.length<=1)return!1;this.thumbnailContainer=this.uniboxes.closest(il).querySelector(".thumbnail-container"),this.setThumbnailVisibility(),this.thumbnailContainer?.dispatchEvent(new CustomEvent(m,{detail:this.swiper}))}setThumbnailVisibility(){if(!this.thumbnailContainer)return;const e=!this.isSliderBreakpoint();this.thumbnailContainer.style.display=e?"none":"block"}getItems(){return this.isInRoamingCenter?this.uniboxes.querySelectorAll(`${nl}:not([hidden])`):this.uniboxes.querySelectorAll(nl)}isSliderBreakpoint(){return(this.isInRoamingCenter?this.getItems():this.items).length>this.itemsPerBreakpoint[Z()]}onBreakpoint(){const e=this.isSliderBreakpoint();this.prevArrow&&this.nextArrow&&(this.prevArrow.style.display=e?"":"none",this.nextArrow.style.display=e?"":"none"),e?(this.sliderContainer.classList.remove("swiper-disabled"),this.swiper&&this.swiper.enable()):(this.sliderContainer.classList.add("swiper-disabled"),this.swiper&&this.swiper.disable()),this.setThumbnailVisibility(),document.body.dispatchEvent(new CustomEvent(g))}createArrow(e){const t=this.uniboxes.querySelector(`.unibox-nav-${e}`);if(t)return t;const i=document.createElement("div");i.classList.add(`unibox-nav-${e}`);const s=document.createElement("div");return s.classList.add(`swiper-button-${e}`),i.appendChild(s),i}setArrowPosition(){if(!this.prevArrow||!this.nextArrow)return;const e=this.mainWrapper.querySelectorAll(rl).filter((e=>!e.closest(".d-none")));let t=e[0];if(e.slice(1).forEach((e=>{e.offsetHeight<t.offsetHeight&&(t=e)})),!t)return;const i=t.querySelector("img");if(i&&!i.complete)return void i.addEventListener("load",(()=>this.setArrowPosition()));const{top:s}=this.uniboxesSlider.getBoundingClientRect(),{bottom:n}=t.getBoundingClientRect(),r=Boolean(this.uniboxesSlider.querySelector(".tariffbox--hw-configuration"))?n-s-70:(n-s)/2-70;this.prevArrow.children[0].style.top=`${r}px`,this.nextArrow.children[0].style.top=`${r}px`}onResize(){const e=this.uniboxes?.dataset?.noSlider?.trim()||"",t=e?e.split(",").map((e=>
6e.trim())).filter(Boolean):[];this.shouldStartSlider(t)&&this.isSliderBreakpoint()?this.swiper||(this.sliderContainer.classList.remove("swiper-disabled"),this.initCarousel()):(this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null,this.setThumbnailVisibility(),this.onBreakpoint()),this.sliderContainer.classList.add("swiper-disabled"))}}const ol=Object.freeze(Object.defineProperty({__proto__:null,UNIBOXES:il,UNIBOX_HEAD:rl,UNIBOX_SLIDER:sl,UNIBOX_SLIDER_ITEM:nl,UniboxesSlider:UniboxesSlider,default:class UniboxesSliderInitializer{constructor(e=document){this.initializeSliders(e),addEventListener("async:loaded",(e=>this.initializeSliders(e.target)))}initializeSliders(e=document){e.querySelectorAll(sl+":not([data-no-init])").forEach((e=>new UniboxesSlider(e))),e.querySelectorAll(sl+"[data-no-init]").forEach((e=>e.removeAttribute("data-no-init")))}}},Symbol.toStringTag,{value:"Module"}));class UniboxHalo{uniboxHalo;uniboxHaloText;uniboxes;uniboxesSlider;unibox;constructor(e){this.uniboxHalo=e,this.uniboxHaloText=this.uniboxHalo.querySelector(".unibox-halo__text"),this.uniboxHalo.classList.contains("unibox-halo--basic")||this.uniboxHalo.classList.contains("unibox-halo--single")||(this.uniboxes=this.uniboxHalo.closest(il),this.uniboxesSlider=this.uniboxes?.querySelector(sl),this.unibox=this.uniboxHalo.closest(nl),this.initHalo(),this.uniboxesSlider?.addEventListener(f,(()=>{this.setWidth(),this.centerHaloText()})),addEventListener(h,(()=>this.setHeight())),addEventListener(u,(()=>{this.setHeight(),this.setWidth(),this.centerHaloText()})),addEventListener("resize-proxy:width",(()=>this.initHalo())),addEventListener("async:loaded",(()=>this.initHalo())))}isElementVisible(e){return!(!e||e.hasAttribute("hidden"))&&(null!==e.offsetParent||e.offsetWidth>0)}initHalo(){this.centerHaloText(),this.setWidth(),this.uniboxesSlider?.classList.contains("swiper-initialized")||(this.setHeight(),setTimeout((()=>{this.setHeight(),this.setWidth(),this.centerHaloText()}),200))}getVisibleHeadHeight(e){if(!this.isElementVisible(e))return 0;const t=Array.from(e.querySelectorAll(rl)).find((e=>!e.closest(".d-none")));return t?.offsetHeight||0}setHeight(){let e=this.unibox?.querySelector(rl)?.offsetHeight;if(!e)return;let t=0;const i=".tariffbox__hardware",s=this.uniboxes?.querySelectorAll(i).length;let n=this.unibox.nextElementSibling;for(;n;){const t=this.getVisibleHeadHeight(n);if(t&&t<e&&(e=t),n.hasAttribute("data-halo-stop"))break;n=n.nextElementSibling}s&&(t=Math.abs(parseInt(window.getComputedStyle(document.querySelector(i),":before").getPropertyValue("height")))),this.uniboxes&&this.uniboxes.querySelector(".tariffbox__hardware")&&(this.uniboxes.querySelector(".tariffbox--basic")||this.uniboxes.querySelector(".tariffbox--lowlight"))&&(t-=1),t<=0&&s&&(t=100);const r=Math.abs(parseInt(window.getComputedStyle(this.uniboxHalo).top,10));this.uniboxHalo.style.height=`${r+(t||0)+e}px`}setWidth(){let e=this.unibox?.offsetWidth;if(!e)return;const t=2*parseInt(window.getComputedStyle(this.uniboxHalo).left,10);let i=this.unibox.nextElementSibling;for(;i&&!i.matches("[data-halo-stop] + div");)this.isElementVisible(i)&&(e+=i.offsetWidth),i=i.nextElementSibling;this.uniboxHalo.style.width=e-t+"px"}centerHaloText(){if(!this.uniboxes)return;const{left:e,right:t}=this.uniboxes.getBoundingClientRect(),{left:i,right:s}=this.uniboxHalo.getBoundingClientRect(),n=Math.max(e,i),r=Math.min(t,s)-n,o=Math.max(0,e-i);s>300&&(this.uniboxHaloText.style.width=`${r}px`,this.uniboxHaloText.style.marginLeft=`${o}px`)}}const al=Object.freeze(Object.defineProperty({__proto__:null,UniboxHalo:UniboxHalo,default:class UniboxHaloInitializer{constructor(e=document){this.initializeHalo(e),addEventListener("async:loaded",(e=>{this.initializeHalo(e.target)})),addEventListener("uniboxes:destroyed",(e=>{this.initializeHalo(e.target)}))}initializeHalo(e){e.querySelectorAll("[data-unibox-halo]").forEach((e=>new UniboxHalo(e)))}}},Symbol.toStringTag,{value:"Module"})),ll="data-lazy-video",cl="["+ll+"]",dl="lazy-video--preview";let hl=!1;const ul=[];window.onYouTubeIframeAPIReady=function(){hl=!1,ul.forEach((e=>e()))};class LazyVideo{element;playerElement;player;constructor(e){e.dataset.videoid&&(this.element=e,this.player=null,this.playerElement=document.createElement("div"),this.element.appendChild(this.playerElement),this.element.addEventListener("click",this.clickHandler.bind(this)),this.element.lazyVideoInstance=this)}initPlayer(){const e=this.element.getAttribute(ll);"youtube"===e?this.initializeYoutubePlayer():"vimeo"===e&&this.initializeVimeoPlayer()}initializeVimeoPlayer(){this.element.insertAdjacentHTML("beforeend",`<iframe src="https://player.vimeo.com/video/${this.element.dataset.videoid}?autoplay=1"\n      allow="autoplay; fullscreen"\n      allowfullscreen style="width: 100%; height: 100%;"></iframe>`),this.element.classList.remove(dl)}initializeYoutubePlayer(){!function(){if(hl||window.YT)return;hl=!0;const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}();const{videoid:e,autoplay:t,controls:i,disablekb:s}=this.element.dataset,n={height:"100%",width:"100%",videoId:e,host:"https://www.youtube-nocookie.com",playerVars:{autoplay:t,controls:i,rel:0,disablekb:s},events:{onStateChange:this.onPlayerStateChange.bind(this)}};this.getQueryParameter("oiv")&&(n.playerVars.start=Math.ceil(this.getStart((new Date).getTime()))),window.YT?(this.player=new window.YT.Player(this.playerElement,n),this.element.classList.remove(dl)):ul.push((()=>{this.player=new window.YT.Player(this.playerElement,n),this.element.classList.remove(dl)}))}resetPlayer(e){this.player&&(this.player.stopVideo?.(),this.player.destroy?.(),this.player=null),this.element.dataset.videoid=e,this.element.classList.add(dl)}getStart(e){const t=[this.getTimeDate(9,0),this.getTimeDate(10,30),this.getTimeDate(12,30),this.getTimeDate(14,30),this.getTimeDate(17,0),this.getTimeDate(19,0),this.getTimeDate(20,30)];let i=t[t.length-1];return t.forEach((t=>{e>t&&(i=t)})),(e-i)/1e3}getTimeDate(e,t){const i=new Date;return i.setHours(e,t,0,0),i.getTime()}startPlayer(){this.player?(this.element.dataset.autoplay&&this.player.playVideo(),this.element.classList.remove(dl)):this.initPlayer()}getQueryParameter(e){return new URL(window.location.href.toString()).searchParams.get(e)}clickHandler(e){e.preventDefault(),this.startPlayer(),this.element.removeEventListener("click",this.clickHandler)}onPlayerStateChange(e){if(e.data===window.YT.PlayerState.ENDED){this.element.classList.add(dl);const e=this.element.querySelector("iframe");e&&document.dispatchEvent(new CustomEvent("videoFinished",{detail:{iframe:e}})),this.player.seekTo(0),this.player.stopVideo(),this.element.addEventListener("click",this.clickHandler.bind(this))}}}const pl=Object.freeze(Object.defineProperty({__proto__:null,LazyVideo:LazyVideo,default:class LazyVideoInitializer{constructor(e=document){e.querySelectorAll(cl).forEach((e=>new LazyVideo(e)))}}},Symbol.toStringTag,{value:"Module"})),ml=".amount";class Amount{amountSelect;btnAdd;btnRemove;amountEl;currentAmount;maxAmount;select;element;constructor(e){this.element=e,this.amountSelect=e.querySelector(".amount__select"),this.btnAdd=e.querySelector(".amount__select-plus"),this.btnRemove=e.querySelector(".amount__select-minus"),this.amountEl=e.querySelector(".amount__select-number"),this.currentAmount=Number(this.amountEl.innerHTML),this.maxAmount=Number(e.querySelector(".amount__select").dataset.maxAmount),this.btnAdd.addEventListener("click",(()=>{this.handleAmountChange(1)})),this.btnAdd.addEventListener("keyup",(e=>{("Enter"===e.key||" "===e.key&&e.target===this.btnAdd)&&this.handleAmountChange(1)})),this.btnRemove.addEventListener("keyup",(e=>{"Enter"!==e.key&&" "!==e.key||this.handleAmountChange(-1)})),this.btnRemove.addEventListener("click",(()=>{this.handleAmountChange(-1)})),this.handleAmountChange(0),this.updateAmountChange(this.currentAmount)}handleAmountChange(e){const t=this.currentAmount+e;t<1||t>this.maxAmount||(document.querySelectorAll(ml).forEach((e=>{e.component&&e.component.updateAmountChange(t)}
6)),this.btnAdd.setAttribute("aria-label",`Anzahl: ${t}`),this.btnRemove.setAttribute("aria-label",`Anzahl: ${t}`),this.notifyChange(t))}notifyChange(e){document.dispatchEvent(new CustomEvent("amountChanged",{detail:{amount:e}}))}updateAmountChange(e){this.currentAmount=e,this.amountEl.innerHTML=this.currentAmount.toString();const t="amount__select-disabled";this.btnAdd.classList.toggle(t,e>=this.maxAmount),this.btnRemove.classList.toggle(t,e<=1)}}const gl=Object.freeze(Object.defineProperty({__proto__:null,Amount:Amount,default:class AmountInitializer{constructor(e=document){e.querySelectorAll(ml).forEach((e=>e.component=new Amount(e)))}}},Symbol.toStringTag,{value:"Module"}));class AnimationContainer{threshold;constructor(e){const t=document.documentElement.clientHeight;e.animate([{opacity:0}],{duration:500}).onfinish=function(){e.style.opacity="0"};const i=(t-(["xs","sm"].includes(Z())?48:96))/t/100;this.threshold=.2-i;const s={root:null,rootMargin:"0px",threshold:this.threshold};new IntersectionObserver(this.animationCallback.bind(this),s).observe(e)}animationCallback(e,t){e.forEach((e=>{const i=e.target;e.isIntersecting&&e.intersectionRatio>=this.threshold&&(i.animate([{opacity:0},{opacity:1}],{duration:500,easing:"ease-out"}).onfinish=function(){i.style.opacity="1",i.style.transform="translateY(0px)"},t.unobserve(i),dispatchEvent(new Event("refresh-content-tab",{bubbles:!0})))}))}}const fl=Object.freeze(Object.defineProperty({__proto__:null,AnimationContainer:AnimationContainer,default:class AnimationContainerInitializer{constructor(e=document){this.initializeComponent(e),addEventListener("async:loaded",(()=>this.initializeComponent(e)))}initializeComponent(e=document){e.querySelectorAll("[data-animation-container]").forEach((e=>new AnimationContainer(e)))}}},Symbol.toStringTag,{value:"Module"})),vl=".benefits__item-container",bl="input.toggle-label__radio",yl=".benefits__show-more",wl=".benefits__close",Sl=".color-chooser__tile",_l="benefits__item-container--inactive",El="benefits__item--highlight",Cl="benefits__item-container--highlight",xl="d-none";class BenefitsItemSelector{constructor(e){this.container=e,this.items=[...e.querySelectorAll("li")],this.hasMultipleItems=this.items.length>1,this.lastActiveColorChooser=null,this.highlightContainers(document),this.refreshAll(document),e.querySelectorAll(bl).forEach((e=>{e.addEventListener("change",(e=>this.onRadio(e)))})),e.querySelectorAll(Sl).forEach((e=>{e.addEventListener("click",(e=>this.onColorSelect(e)))})),this.hasMultipleItems&&(e.querySelector(yl)?.addEventListener("click",(e=>this.show(e))),e.querySelector(wl)?.addEventListener("click",(e=>this.close(e)))),this.items.forEach((e=>{this.toggleColorChoosersInItem(e),this.updateImageFromColorChooser(e)})),this.activateGroup(),this.sync()}highlightContainers(e){e.querySelectorAll(vl).forEach((e=>{const t=e.querySelector("input.toggle-label__radio:checked");e.classList.toggle(Cl,Boolean(t))}))}refreshAll(e){e.querySelectorAll(vl).forEach((e=>{e.benefitsItemSelector?.sync()}))}onRadio(e){"radio"===e.target.type&&e.target.checked&&(this.highlight(e.target),this.activateGroup(),this.highlightContainers(this.container.ownerDocument),this.refreshAll(this.container.ownerDocument))}onColorSelect(e){const t=e.currentTarget.closest("li");this.lastActiveColorChooser=e.currentTarget.closest(".color-chooser"),this.toggleColorChoosersInItem(t)}toggleColorChoosersInItem(e){const t=e.querySelectorAll(".color-chooser");if(t.length<=1)return;const i=t[0],s=Array.from(i.querySelectorAll('input[type="radio"]')).findIndex((e=>e.checked));if(-1===s)return;let n=null;Array.from(t).slice(1).forEach(((e,t)=>{const i=t===s;e.classList.toggle(xl,!i),i&&(n=e)}));const r=e.closest("[data-hardware-select]"),o=r?.hardwareSelect;o&&n&&(o.lastClickedColorChooser=n,o.updateVariantAvailability())}updateImageFromColorChooser(e){if(!this.lastActiveColorChooser)return;const t=e.querySelector(".benefits__image img");if(!t)return;const i=this.lastActiveColorChooser.querySelector('.color-chooser:not(.color-chooser--case):not(.d-none) input[type="radio"]:checked');if(i){const e=this.getImageSourceFromRadio(i);e&&(t.src=e)}}getImageSourceFromRadio(e){for(const t of e.attributes)if(t.name.startsWith("data-lavender-")||t.name.startsWith("data-front")||t.name.startsWith("data-back"))return t.value;return null}highlight(e){const t=e.closest("li");
6this.items.forEach((e=>e.classList.remove(El))),t?.classList.add(El)}updateList(){if(!this.hasMultipleItems)return void this.items.forEach((e=>e.classList.remove(xl)));const e=this.container.classList.contains(_l);if(this.items.forEach((t=>{t.classList.toggle(xl,e)})),e){const e=this.items.find((e=>e.classList.contains(El)))||this.items[0];e?.classList.remove(xl)}}updateButtons(){if(!this.hasMultipleItems)return;const e=this.container.classList.contains(_l);this.container.querySelector(yl)?.classList.toggle(xl,!e),this.container.querySelector(wl)?.classList.toggle(xl,e)}show(e){e.preventDefault(),this.activateGroup(),this.container.classList.remove(_l),this.updateList(),this.updateButtons(),document.body.dispatchEvent(new CustomEvent("strike:recalculate",{bubbles:!0}))}close(e){e.preventDefault(),this.container.classList.add(_l),this.updateList(),this.updateButtons()}activateGroup(){this.container.ownerDocument.querySelectorAll(vl).forEach((e=>{if(e===this.container)return;const t=e.benefitsItemSelector;t?.hasMultipleItems&&(e.classList.add(_l),t.updateList(),t.updateButtons())}))}sync(){this.updateList(),this.updateButtons()}}const Tl=Object.freeze(Object.defineProperty({__proto__:null,BenefitsItemSelector:BenefitsItemSelector,default:class BenefitsItemSelectorInitializer{constructor(e=document){e.querySelectorAll(vl).forEach((e=>{e.benefitsItemSelector||(e.benefitsItemSelector=new BenefitsItemSelector(e))}))}}},Symbol.toStringTag,{value:"Module"}));class BraceletConfiguratorPreview{#a;#l;constructor(e=document){this.#a=e,this.#l=e.querySelector("img")}updateImage(e){const t=e.trim(),i=this.#a.querySelector(`[src="${t}"]`);if(i)this.#l.classList.add("fade-out"),i.classList.remove("fade-out"),this.#l=i;else{const e=this.#l;this.#l=document.createElement("img"),this.#l.loading="lazy",this.#l.src=t,e.after(this.#l),this.#l.addEventListener("load",(()=>{e.classList.add("fade-out")}))}}}const Ll=Object.freeze(Object.defineProperty({__proto__:null,BraceletConfiguratorPreview:BraceletConfiguratorPreview,default:class BraceletConfiguratorPreviewInitializer{constructor(e=document){e.querySelectorAll(".bracelet-configurator-preview").forEach((e=>{e.braceletConfiguratorPreview=new BraceletConfiguratorPreview(e)}))}}},Symbol.toStringTag,{value:"Module"}));class BraceletConfiguratorSlider{#a;#c;#d;#h;constructor(e=document){this.#a=e,this.#c=e.querySelector(".swiper"),this.#h=e.querySelectorAll(".swiper-slide"),this.#d=this.#u(),this.#p()}#u(){return new Swiper(this.#c,{modules:[za,Ya],loop:!0,slidesPerView:1,createElements:!0,watchOverflow:!0,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}})}#p(){this.#a.addEventListener(v,(()=>{this.#d.params.loop=!1,this.#d.removeAllSlides(),this.#d.appendSlide(this.#h.filter((e=>!e.classList.contains("d-none")))),this.#d.params.loop=!0,this.#d.update(),this.#d.navigation.update()}))}onSlideChange(e){this.#d.on("realIndexChange",(()=>{const t=this.getCurrentSlideImagePath();t&&e(t)}))}getCurrentSlideImagePath(){const e=this.#d.slides[this.#d.activeIndex];return e?e.dataset.fullImage:null}}const kl=Object.freeze(Object.defineProperty({__proto__:null,BraceletConfiguratorSlider:BraceletConfiguratorSlider,default:class BraceletConfiguratorSliderInitializer{constructor(e=document){e.querySelectorAll(".bracelet-configurator-slider").forEach((e=>{e.braceletConfiguratorSlider=new BraceletConfiguratorSlider(e)}))}}},Symbol.toStringTag,{value:"Module"})),Al="countdown__image--show",Ol="countdown__image--hide",Il="countdown__text-wrapper--changed",Dl='[data-countdown-position="static"]';let Pl=class Countdown{countdown;wrapperEl;staticEl;changeEl;daysDiff;currentDate;animationInterval;fakeDateNow;staticText;type;isAnimated;constructor(e){this.countdown=e,this.daysDiff=null,this.currentDate=null,this.fakeDateNow=this.countdown.dataset.countdownNow,this.animationInterval=null,this.staticText=null,this.isAnimated=!1,this.type="text",this.wrapperEl=null,this.staticEl=null,this.changeEl=null;const t=document.querySelector("#appContainer iframe");t&&t.contentWindow.document.body.classList.contains("cms-stop-countdown")||(this.initCountdown(),window.addEventListener("resize-proxy:width",(()=>{this.countdown.dataset.countdownNow!==this.fakeDateNow&&(this.fakeDateNow=this.countdown.dataset.countdownNow,this.initCountdown()),this.isAnimated&&"text"===this.type&&this.setWrapperDimensions()})))}initCountdown(){this.getCurrentDate(),this.getDaysDiff(),this.countdown.hasAttribute("data-countdown-animated")?(this.isAnimated=!0,this.initAnimation()):this.initStatic()}getCurrentDate(){const e=window._1und1datalayer&&window._1und1datalayer[1]?.tech?.servertimestamp?window._1und1datalayer[1].tech.servertimestamp:null;this.currentDate=new Date(e||this.fakeDateNow||Date.now())}getDaysDiff(){const e=new Date(this.countdown.dataset.countdown),t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),i=Date.UTC(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate());this.daysDiff=Math.round((t-i)/864e5)}initAnimation(){"image"===this.countdown.dataset.countdownType?(this.t
6ype="image",this.setAnimatedImage()):this.setAnimatedText()}initStatic(){"image"===this.countdown.dataset.countdownType?this.setStaticImage():this.setStaticText()}setStaticText(){const e=this.getChangeText();e&&(this.countdown.textContent=e)}setAnimatedText(){const e=this.getChangeText(this.isAnimated=!0);this.staticText||(this.staticText=this.countdown.innerText.trim());const t=this.getIcon()?" "+this.getIcon().outerHTML:"";this.countdown.innerHTML=`\n      <span class="countdown__text-wrapper">\n        <span class="countdown__text-static">\n          <span class="countdown__text-static-content">\n            ${this.staticText}\n          </span>\n\n          ${t}\n        </span>\n        <span class="countdown__text-change">\n          <span class="countdown__text-change-content">\n            ${e}\n          </span>\n\n          ${t}\n        </span>\n      </span>`,this.wrapperEl=this.countdown.getElementsByClassName("countdown__text-wrapper")[0],this.staticEl=this.countdown.getElementsByClassName("countdown__text-static")[0],this.changeEl=this.countdown.getElementsByClassName("countdown__text-change")[0],this.setWrapperDimensions(),setTimeout((()=>{this.setWrapperDimensions()}),500),clearInterval(this.animationInterval),this.wrapperEl.classList.remove(Il),this.animationInterval=setInterval((()=>{setTimeout((()=>null),100),this.wrapperEl.classList.toggle(Il)}),3200)}setStaticImage(){const e=this.countdown.querySelectorAll(Dl),t=!!e.length&&e[0],i=this.getChangeImage();i&&t&&(i.style.opacity="1",t.style.opacity="0")}setAnimatedImage(){const e=this.countdown.querySelectorAll(Dl),t=!!e.length&&e[0],i=this.getChangeImage();clearInterval(this.animationInterval),this.countdown.querySelectorAll("."+Al)[0]&&this.countdown.querySelectorAll("."+Ol)[0]&&(this.countdown.querySelectorAll("."+Al)[0].classList.remove(Al),this.countdown.querySelectorAll("."+Ol)[0].classList.remove(Ol)),i&&t&&(i.classList.add(Al),this.animationInterval=setInterval((()=>{setTimeout((()=>null),100),t.classList.toggle(Ol)}),3200))}getChangeText(e=!1){let t=10;e&&(t=this.daysDiff);const i=""!==this.countdown.dataset.countdownTextRelative&&this.countdown.dataset.countdownTextRelative,s=""!==this.countdown.dataset.countdownTextTomorrow&&this.countdown.dataset.countdownTextTomorrow,n=""!==this.countdown.dataset.countdownTextToday&&this.countdown.dataset.countdownTextToday,r=""!==this.countdown.dataset.countdownTextYesterday&&this.countdown.dataset.countdownTextYesterday;let o=null;return 0===this.daysDiff&&n?o=n:1===this.daysDiff&&s?o=s.replace(/%d/gi,this.daysDiff.toString()):this.daysDiff>1&&this.daysDiff<=t&&i?o=i.replace(/%d/gi,this.daysDiff.toString()):this.daysDiff<0&&r&&(o=r.replace(/%d/gi,this.daysDiff.toString())),o}getChangeImage(){const e=this.countdown.querySelectorAll('[data-countdown-position="7"]'),t=this.countdown.querySelectorAll('[data-countdown-position="6"]'),i=this.countdown.querySelectorAll('[data-countdown-position="5"]'),s=this.countdown.querySelectorAll('[data-countdown-position="4"]'),n=this.countdown.querySelectorAll('[data-countdown-position="3"]'),r=this.countdown.querySelectorAll('[data-countdown-position="2"]'),o=this.countdown.querySelectorAll('[data-countdown-position="1"]'),a=this.countdown.querySelectorAll('[data-countdown-position="0"]'),l=this.countdown.querySelectorAll('[data-countdown-position="-1"]'),c=[];c[7]=e.length?e[0]:null,c[6]=t.length?t[0]:null,c[5]=i.length?i[0]:null,c[4]=s.length?s[0]:null,c[3]=n.length?n[0]:null,c[2]=r.length?r[0]:null,c[1]=o.length?o[0]:null,c[0]=a.length?a[0]:null,c[8]=l.length?l[0]:null;let d=null;return this.daysDiff>=0&&this.daysDiff<=7&&c[this.daysDiff]?d=c[this.daysDiff]:this.daysDiff<0&&c[8]&&(d=c[8]),d}getIcon(){return this.countdown.querySelectorAll(".icon")[0]}setWrapperDimensions(){if(!this.wrapperEl||!this.staticEl||!this.changeEl)return!1;if(this.wrapperEl.closest(".hardware-box__promo-item-element"))return!1;this.staticEl.style.whiteSpace="nowrap",this.changeEl.style.whiteSpace="nowrap";let e=this.staticEl.querySelectorAll(".countdown__text-static-content")[0].offsetWidth+1;let t=this.changeEl.querySelectorAll(".countdown__text-change-content")[0].offsetWidth+1;const i=!!this.wrapperEl.querySelectorAll(".icon")[0]&&this.wrapperEl.querySelectorAll(".icon")[0].getBoundingClientRect();i&&(e+=i.width+7,t+=i.width+7),this.staticEl.style.whiteSpace="normal",this.changeEl.style.whiteSpace="normal",this.wrapperEl.style.width=t>e?t+"px":e+"px"}};const Ml=Object.freeze(Object.defineProperty({__proto__:null,Countdown:Pl,default:class CountdownInitializer{elements;countdowns;constructor(){this.elements=document.querySelectorAll("[data-countdown]"),this.elements&&(this.countdowns=this.elements.map((e=>new Pl(e))))}}},Symbol.toStringTag,{value:"Module"}));class Contact{constructor(e){this.contact=e,this.trigger=this.contact.querySelector(".contact-bubble__trigger"),this.welcomeBubble=this.contact.querySelector(".contact-bubble__welcome"),this.triggerDots=this.contact.querySelector(".contact-bubble__trigger-dots"),this.contents=this.contact.querySelectorAll(".contact-bubble__content"),this.icons=this.contact.querySelectorAll(".contact-bubble__icon-text"),this.btnOne=this.contact.querySelector(".btn-one"),this.ones=this.contact.querySelectorAll(".contact-bubble__one"),this.welcomeAnimationDone=document.cookie.includes("contactWelcomeAnimationDone=true"),this.initContact(),this.welcomeAnimationDone||this.attachWelcomeCloseClickHandlers(),this.animateContent(),this.btnOne&&this.attachBtnOneRemovalHandler()}initContact(){this.welcomeAnimationDone&&(this.triggerDots.classList.add("d-none"),this.welcomeBubble.classList.add("d-none"),this.ones.forEac
6h((e=>{e.classList.add("no-animation-delay")}))),this.welcomeAnimationDone||setTimeout((()=>{window.isStorybook?document.cookie="contactWelcomeAnimationDone=true":(document.cookie="contactWelcomeAnimationDone=true;domain=.1und1.de",document.cookie="contactWelcomeAnimationDone=true;domain=.1und1.cloud"),this.welcomeBubble.addEventListener("animationend",(()=>{this.welcomeAnimationDone=!0}))}),300),this.trigger.addEventListener("click",(()=>{const e=this.contact.querySelector("picture"),t=this.contact.querySelector(".contact-bubble__trigger-close"),i=this.contact.querySelector(".contact-bubble__trigger .contact-bubble__one"),s=this.contact.querySelector(".contact-bubble__icons");i.classList.add("d-none"),this.triggerDots.classList.add("d-none"),e.classList.toggle("d-none"),t.classList.toggle("d-none"),this.icons.forEach((e=>{e.classList.remove("bg-secondary-100"),e.classList.remove("bg-gray-100")})),this.icons[0].click(),e.classList.contains("d-none")?(s.classList.remove("end-animation"),s.classList.add("start-animation")):(s.classList.add("end-animation"),s.classList.remove("start-animation")),s.classList.contains("end-animation")&&this.contents.forEach((e=>{e.classList.add("end-animation"),e.classList.remove("start-animation")}))}))}attachWelcomeCloseClickHandlers(){this.welcomeBubble.addEventListener("click",(()=>{this.welcomeBubble.classList.add("d-none")})),this.trigger.addEventListener("click",(()=>{this.welcomeBubble.classList.contains("d-none")||this.welcomeBubble.classList.add("d-none")}),{once:!0})}animateContent(){this.icons.forEach((e=>{e.addEventListener("click",(()=>{e.classList.contains("disabled")?e.classList.toggle("bg-gray-100"):e.classList.toggle("bg-secondary-100"),this.icons.forEach((t=>{t!=e&&(t.classList.contains("bg-secondary-100")?t.classList.remove("bg-secondary-100"):t.classList.remove("bg-gray-100"))})),this.contents.forEach((t=>{const i=e.dataset.group,s=t.dataset.group;i==s&&(t.classList.toggle("end-animation"),t.classList.toggle("start-animation")),i!=s&&(t.classList.add("end-animation"),t.classList.remove("start-animation"))}))}))}))}attachBtnOneRemovalHandler(){this.btnOne.addEventListener("click",(()=>{this.btnOne.classList.remove("btn-one"),this.ones.forEach((e=>{e.classList.add("d-none")}))}))}}const ql=Object.freeze(Object.defineProperty({__proto__:null,Contact:Contact,default:class ContactBubble{constructor(){this.initContact()}initContact(){const e=document.querySelector(".contact-bubble");e&&new Contact(e)}}},Symbol.toStringTag,{value:"Module"}));class ContactPaletteItem{contactPaletteItem;contactElementName;scopedCheckClosing;toggleExpandersHandler;closeExpandersHandler;clickInitialized;hoverInitialized;isTrackingStarted;timeout;constructor(e){this.contactPaletteItem=e,this.contactElementName=e.classList.contains("contact-palette-chat")?"contact-palette-phone":"contact-palette-chat",this.scopedCheckClosing=this.checkClosing.bind(this),this.toggleExpandersHandler=this.toggleExpanders.bind(this),this.closeExpandersHandler=this.closeExpanders.bind(this),this.clickInitialized=!1,this.hoverInitialized=!1,this.initContactPaletteItem(),addEventListener("resize-proxy:width",(()=>this.initContactPaletteItem())),["md","lg","xl","xxl"].indexOf(Z())>=0&&(this.checkForOpen(),location.pathname.includes("kosten")&&this.checkForOpenCheckout())}initContactPaletteItem(){if(["xs","sm","ms","md"].indexOf(Z())>=0){if(this.clickInitialized)return;this.contactPaletteItem.removeEventListener("mouseenter",this.toggleExpandersHandler),this.contactPaletteItem.removeEventListener("mouseleave",this.closeExpandersHandler),this.hoverInitialized=!1,this.contactPaletteItem.addEventListener("click",this.toggleExpandersHandler),this.clickInitialized=!0}else{if(this.hoverInitialized)return;this.contactPaletteItem.removeEventListener("click",this.toggleExpandersHandler),this.clickInitialized=!1,this.contactPaletteItem.addEventListener("mouseenter",this.toggleExpandersHandler),this.contactPaletteItem.addEventListener("mouseleave",this.closeExpandersHandler),this.hoverInitialized=!0}}openAndCloseToggle(){const e=document.querySelector(".contact-palette").dataset.open;setTimeout((()=>{const t=this.contactPaletteItem.parentElement.querySelector(`.contact-palette-${e}`);t.classList.add("hover"),setTimeout((()=>{t.classList.remove("hover")}),6e3)}),6e3)}checkForOpenCheckout(){document.cookie.indexOf("contactOpenCheckOut=true")<0&&(document.cookie="contactOpenCheckOut=true;domain=.1und1.de",this.openAndCloseToggle())}checkForOpen(){document.cookie.indexOf("contactOpen=true")<0&&(window.isStorybook?document.cookie="contactOpen=true":document.cookie="contactOpen=true;domain=.1und1.de",this.openAndCloseToggle())}initTracking(e){e?this.startTracking():(clearTimeout(this.timeout),this.timeout=setTimeout((()=>{this.startTracking()}),4e3))}startTracking(){this.isTrackingStarted=!0,document.dispatchEvent(new CustomEvent(`${this.contactElementName}_open`))}stopTracking(){clearTimeout(this.timeout),this.isTrackingStarted&&(this.isTrackingStarted=!1,document.dispatchEvent(new CustomEvent(`${this.contactElementName}_closed`)))}
6toggleExpanders(e){"mouseenter"===e.type?(this.contactPaletteItem.classList.add("hover"),this.contactPaletteItem.parentElement.classList.add("hover"),this.initTracking(!1)):(this.contactPaletteItem.classList.toggle("hover"),this.contactPaletteItem.parentElement.classList.toggle("hover"),this.contactPaletteItem.classList.contains("hover")?this.initTracking(!0):e.target.closest("a")||this.stopTracking()),this.contactPaletteItem.classList.contains("hover")?this.addCloseListener():this.removeCloseListener()}closeExpanders(){this.removeCloseListener(),this.contactPaletteItem.classList.remove("hover"),this.contactPaletteItem.parentElement.classList.remove("hover"),this.stopTracking()}checkClosing(e){this.contactPaletteItem.classList.contains("hover")&&e.target.closest(".contact-palette__tray")!==this.contactPaletteItem&&this.closeExpanders()}addCloseListener(){addEventListener("click",this.scopedCheckClosing)}removeCloseListener(){removeEventListener("click",this.scopedCheckClosing)}}const zl=Object.freeze(Object.defineProperty({__proto__:null,default:class ContactPaletteItemInitializer{constructor(){document.querySelectorAll(".contact-palette__tray").forEach((e=>new ContactPaletteItem(e)))}}},Symbol.toStringTag,{value:"Module"})),Hl=".content-tab";class ContentTab{element;tabContainer;tabList;tabItems;slider;wrapper;activeItem;ctabIdParam;constructor(e){this.element=e,this.tabContainer=e.querySelector("[data-tab-slider]"),this.ctabIdParam=new URLSearchParams(location.search).get("ctab"),this.tabList=this.tabContainer.querySelector(Hl+"__tab-list"),this.tabItems=this.tabList.querySelectorAll("li"),this.slider=this.tabContainer.querySelector(Hl+"__active-slider"),this.wrapper=this.tabContainer.querySelector(Hl+"__wrapper"),this.activeItem=this.getActiveItem(),this.initContentTab(),this.toggleMonths(),this.isTabSliderActive()&&this.toggleArrows(),addEventListener("resize-proxy:width",(()=>this.refreshContentTab())),addEventListener("refresh-content-tab",(()=>this.refreshContentTab()))}toggleMonths(){const e=this.activeItem?.dataset.hardwareMonthsTrigger;e&&document.querySelectorAll(".hardware-box").forEach((t=>{t.style.display="none",e==t.getAttribute("data-hardware-months")&&(t.style.display="flex")}))}initContentTab(){this.tabItems.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const i=this.activeItem?.dataset.contentToggleTrigger;if(i!==e.dataset.contentToggleTrigger){const i=t.currentTarget,{width:s,height:n}=e.getBoundingClientRect(),r=i.offsetLeft;this.slider&&Object.assign(this.slider.style,{width:`${Math.floor(s)}px`,height:`${Math.floor(n)}px`,left:`${r}px`}),this.setTabItemActive(e),this.scrollToTab(e)}this.toggleMonths()})),e.addEventListener("keypress",(t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.triggerTab(e.dataset.contentToggleTrigger))}))})),this.ctabIdParam?this.triggerTab(this.ctabIdParam):this.setActiveSliderPosition(this.activeItem),this.element.addEventListener(p,(()=>{this.element.dispatchEvent(new Event(u,{bubbles:!0})),this.element.dispatchEvent(new Event(d,{bubbles:!0}))})),this.wrapper.addEventListener("scroll",this.scrollTabs.bind(this))}scrollTabs(){this.toggleArrows()}isTabSliderActive(){return this.isSliderOutLeft()||this.isSliderOutRight()}isSliderOutLeft(){return this.wrapper.scrollLeft>0}isSliderOutRight(){return this.wrapper.scrollLeft+this.wrapper.clientWidth<Math.floor(this.wrapper.scrollWidth)}getActiveItem(){return this.tabList.querySelector(".active")}setActiveSliderPosition(e){e&&setTimeout((()=>{const t=e.clientWidth,i=e.clientHeight,s=e.offsetLeft;this.slider&&Object.assign(this.slider.style,{width:`${t}px`,height:`${i}px`,left:`${s}px`})}),300)}toggleArrows(){this.element.classList.contains("content-tab--bubble")||(this.isElementScrollable(this.wrapper)?(this.tabContainer.classList.toggle("content-tab__tab-container--show-left",this.isSliderOutLeft()),this.tabContainer.classList.toggle("content-tab__tab-container--show-right",this.isSliderOutRight())):this.tabContainer.classList.remove("content-tab__tab-container--show-left","content-tab__tab-container--show-right"))}scrollToTab(e){this.wrapper.scrollLeft=e.offsetLeft}setTabItemActive(e){if(this.element.classList.contains("content-tab--marketing")&&(this.tabItems.forEac
6h((e=>e.classList.add("btn--small"))),e.classList.remove("btn--small")),this.tabItems.forEach((e=>e.classList.remove("active"))),e.classList.add("active"),e.classList.contains("content-tab__tab-list-speech")){const t=e.getAttribute("data-content-toggle-trigger");this.element.querySelector(`[data-content-toggle-trigger='${t}']`).classList.add("active")}this.activeItem=e}isElementScrollable(e){return e.scrollWidth>e.clientWidth}triggerTab(e){this.tabItems.forEach((t=>{const i=t.dataset.contentToggleTrigger;e===i&&setTimeout((()=>{t.click(),this.scrollToTab(t)}),200)}))}refreshContentTab(){const e=this.getActiveItem();this.setActiveSliderPosition(e),this.toggleArrows()}}const Bl=Object.freeze(Object.defineProperty({__proto__:null,default:class ContentTabInitializer{constructor(e=document){this.initializeComponent(e),addEventListener("async:loaded",(()=>{this.initializeComponent(e)}))}initializeComponent(e=document){e.querySelectorAll(Hl).forEach((e=>e.component||(e.component=new ContentTab(e))))}}},Symbol.toStringTag,{value:"Module"}));class Countdown{countdown;date;templateNode;constructor(e){this.countdown=e,this.templateNode=e.querySelector(".countdown-sticky__template"),this.date=this.countdown.dataset.countdownDate,this.initCountdown()}initCountdown(){const e=new Date(this.countdown.dataset.countdownDate),t=setInterval((()=>{const i=(new Date).getTime(),s=e-i,n=Math.floor(s/864e5),r=Math.floor(s%864e5/36e5),o=Math.floor(s%36e5/6e4),a=Math.floor(s%6e4/1e3),l=(e,t)=>String(e).padStart(t,"0");this.templateNode.innerHTML=n>1?`<span class='countdown-sticky__number'>${l(n,2)}</span> Tage\n          <span class='countdown-sticky__number'>${l(r,2)}</span> Std.\n          <span class='countdown-sticky__number'>${l(o,2)}</span> Min.\n          <span class='countdown-sticky__number'>${l(a,2)}</span> Sek.`:`<span class='countdown-sticky__number'>${n}</span> Tag\n          <span class='countdown-sticky__number'>${r}</span> Std.\n          <span class='countdown-sticky__number'>${o}</span> Min.\n          <span class='countdown-sticky__number'>${a}</span> Sek.`,s<0&&(clearInterval(t),this.countdown.style.display="none")}),1e3)}}const jl=Object.freeze(Object.defineProperty({__proto__:null,Countdown:Countdown,default:class CountdownSticky{elements;countdowns;constructor(){this.initCountdown()}initCountdown(){this.elements=document.querySelectorAll("[data-countdown-date]"),this.elements&&(this.countdowns=this.elements.map((e=>new Countdown(e))))}}},Symbol.toStringTag,{value:"Module"})),Fl=".countdown-timer";class CountdownTimer{element;timerElement;timerInMilliseconds;storageKey;timeToEnd;interval;constructor(e){this.element=e,this.timerElement=e.querySelector(`${Fl}__timer`),this.timerInMilliseconds=60*parseInt(e.dataset.countdownTimer)*1e3,this.storageKey=this.element.getAttribute("id")?this.element.id:Fl.slice(1),this.initialize()}initialize(){this.setTimeToEnd(),this.renderTimer(),this.startCountdown()}setTimeToEnd(){this.timeToEnd=parseInt(sessionStorage.getItem(this.storageKey))||(new Date).getTime()+this.timerInMilliseconds,sessionStorage.getItem(this.storageKey)||sessionStorage.setItem(this.storageKey,this.timeToEnd.toString())}clearTimeToEnd(){this.interval&&clearInterval(this.interval),sessionStorage.removeItem(this.storageKey)}renderTimer(){const e=(new Date).toString(),t=this.timeToEnd-Date.parse(e),i=Math.floor(t/1e3%60),s=Math.floor(t/1e3/60%60);if(s<=0&&i<0)return this.clearTimeToEnd(),void(this.timerElement.textContent="0:00");this.timerElement.textContent=`${s}:${i.toString().padStart(2,"0")}`}startCountdown(){this.interval=setInterval((()=>this.renderTimer()),200)}}const $l=Object.freeze(Object.defineProperty({__proto__:null,default:class CountdownTimerInitializer extends XLABInitializer{constructor(){super(Fl,CountdownTimer)}}},Symbol.toStringTag,{value:"Module"})),Nl={ssc:{xs:3,sm:3,ms:3,md:3,lg:3,xl:5,xxl:7},bsc:{xs:2,sm:2,ms:3,md:3,lg:3,xl:3,xxl:5},equipment:{xs:3,sm:3,ms:3,md:3,lg:5,xl:5,xxl:5},videos:{xs:2,sm:2,ms:2,md:4,lg:4,xl:4,xxl:4}},Vl=Object.freeze(Object.defineProperty({__proto__:null,slidesToShowPerBreakpoint:Nl},Symbol.toStringTag,{value:"Module"})),Rl={ssc:{modules:[za],loop:!0,centeredSlides:!0,slidesPerView:Nl.ssc.xs,createElements:!0,watchOverflow:!0,centeredSlidesB
6ounds:!0,touchStartPreventDefault:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{0:{slidesPerView:Nl.ssc.xs,centeredSlides:!0},1200:{slidesPerView:Nl.ssc.xl,centeredSlides:!0},1500:{slidesPerView:Nl.ssc.xxl,centeredSlides:!0}}},bsc:{modules:[za],loop:!0,centeredSlides:!1,createElements:!0,slidesPerView:Nl.bsc.xs,watchOverflow:!0,centeredSlidesBounds:!0,touchStartPreventDefault:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{0:{slidesPerView:Nl.bsc.xs,centeredSlides:!1},650:{slidesPerView:Nl.bsc.xl,centeredSlides:!0},1500:{slidesPerView:Nl.bsc.xxl,centeredSlides:!0}}},equipment:{modules:[za,Ya],loop:!0,centeredSlides:!0,createElements:!0,slidesPerView:Nl.equipment.xs,loopAdditionalSlides:1,watchOverflow:!0,centeredSlidesBounds:!0,touchStartPreventDefault:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{0:{slidesPerView:Nl.equipment.xs,centeredSlides:!0},1023:{slidesPerView:Nl.equipment.xl,centeredSlides:!0}}},videos:{modules:[za,Ya],loop:!0,centeredSlides:!1,createElements:!0,slidesPerView:Nl.videos.xs,watchOverflow:!0,centeredSlidesBounds:!0,touchStartPreventDefault:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{0:{slidesPerView:Nl.videos.xs,centeredSlides:!1},1023:{slidesPerView:Nl.videos.xl,centeredSlides:!1}}}},Wl=Object.freeze(Object.defineProperty({__proto__:null,configs:Rl},Symbol.toStringTag,{value:"Module"})),Gl="device";class DeviceSlider{element;swiper;sectionElement;items;swiperSlides;isEquipment;isNotAnimated;isAnimationPrepared;isObserverAttached;currentBreakpoint;config;constructor(e){this.element=e,this.sectionElement=document.querySelector(".device-slider-section"),this.items=this.element.querySelectorAll("[data-device-slider-item]"),this.swiperSlides=this.element.querySelectorAll(".device-slider .swiper-slide"),this.isEquipment="equipment"===this.element.dataset[Gl],this.isNotAnimated="no-animation"===this.element.dataset.animated,this.currentBreakpoint=Z(),this.isAnimationPrepared=!1,this.isObserverAttached=!1;const t=window.innerHeight-this.element.getBoundingClientRect().height/2;new Waypoint({element:this.element,handler:()=>{this.animateSlider()},offset:t}),addEventListener("resize-proxy:width",(()=>{const e=Z();e===this.currentBreakpoint?this.setMosoStickyContainer():this.currentBreakpoint=e})),this.initCarousel()}initCarousel(){this.config={...this.getConfig()},this.updateBreakpoints(this.config,this.items.length),this.arrowTemplate(),this.swiper=new Swiper(this.element.querySelector(".swiper"),this.config),addEventListener(v,(()=>{this.swiper.removeAllSlides();const e=[];this.items.forEach((t=>{if(!t.classList.contains("d-none")){const i=document.createElement("div");i.classList.add("swiper-slide"),i.appendChild(t),e.push(i)}})),this.swiper.addSlide(0,e),this.isSliderBreakpoint()?(this.element.classList.remove("slider-disabled"),this.swiper.slideToLoop(Number(this.swiper.slides.find((e=>e.classList.contains("swiper-slide-active"))).dataset.swiperSlideIndex))):this.element.classList.add("slider-disabled"),this.swiper.clickedSlide=null,this.updateBreakpoints(this.swiper.params,e.length),this.swiper.update()})),this.sectionElement&&(this.swiper.on("realIndexChange",(()=>this.updatePreview())),this.swiper.on("click",(()=>this.onSlideClick())),this.swiper.on("lock",(()=>this.element.classList.add("slider-disabled"))),this.swiper.on("unlock",(()=>{this.element.classList.remove("slider-disabled"),setTimeout((()=>this.updatePreview()))})),this.swiper.slideToLoop(0),this.updatePreview()),this.isNotAnimated?(this.isAnimationPrepared=!0,this.showSlider()):this.prepareAnimation(),this.swiper.on("breakpoint",(()=>this.onBreakpointChange())),addEventListener(u,(()=>this.refresh()))}getConfig(){return Rl[this.element.dataset[Gl]]||{}}updateBreakpoints(e,t){const i=this.getConfig(),s=Nl[this.element.dataset[Gl]][Z()];t<=s?(e.slidesPerView=t,e.centeredSlides=!1,e.centeredSlidesBounds=!1):(e.slidesPerView=s,e.centeredSlides=!0,t-e.slidesPerView===1&&(e.centeredSlidesB
6ounds=!0));for(const n in i.breakpoints)t<=i.breakpoints[n].slidesPerView?(e.breakpoints[n].slidesPerView=t,e.breakpoints[n].centeredSlides=!1):(e.breakpoints[n].slidesPerView=i.breakpoints[n].slidesPerView,e.breakpoints[n].centeredSlides=i.breakpoints[n].centeredSlides,t-e.breakpoints[n].slidesPerView===1&&(e.centeredSlidesBounds=!0))}prepareAnimation(){if(["xxl"].indexOf(Z())>=0&&!this.isAnimationPrepared&&this.isVisible()&&this.isOutOfView()){const e=this.element.querySelector(".swiper-slide-active .device-slider__item .device-slider__text");e&&(e.style.opacity="0"),this.element.style.opacity="0";const t=this.element.querySelectorAll(".swiper-slide-active .device-slider__item"),i=t[0].querySelector("img").getBoundingClientRect().width,s=i*t.length+24*(t.length-1);let n=window.innerWidth/2-s/2;const r=i+24;t.forEach((e=>{const t=e.querySelector("img"),s=t.getBoundingClientRect().left,o=n-s-i/2;t.style.transform="translateX("+o+"px)",n+=r})),this.isAnimationPrepared=!0}}animateSlider(){if(this.isAnimationPrepared){const e=getComputedStyle(this.element).transitionDuration,t=1e3*parseFloat(e);this.element.style.opacity="1";const i=this.element.querySelector(".swiper-slide-active .device-slider__item img");i&&(i.style.transform="translateX(-50%)"),setTimeout((()=>{const e=this.element.querySelector(".swiper-slide-active .device-slider__item .device-slider__text");e&&(e.style.opacity="1")}),t)}}showSlider(){this.element.querySelector(".swiper-slide-active .device-slider__item img").style.transform="translateX(-50%)",this.element.querySelector(".swiper-slide-active .device-slider__item .device-slider__text").style.opacity="1",this.element.style.opacity="1"}isVisible(){const e=this.element.closest(".content-tab__panel");return!e||!e.classList.contains("d-none")}isOutOfView(){return this.element.getBoundingClientRect().top+window.scrollY>window.innerHeight}getActiveColor(){const e=this.getCurrentSlide().querySelector(".device-slider__item-color").textContent;document.querySelector(".device-details__color").innerHTML=e}getActiveMaterial(){const e=this.getCurrentSlide().firstElementChild.dataset.filterTags,t=document.querySelector(".device-details__material"),i=e.split(" ")[0];document.querySelectorAll("[data-pill-id]").forEach((e=>{e.dataset.pillId===i&&(t.innerHTML=e.innerText)}))}getActiveImage(){const e=this.getCurrentSlide().firstElementChild,t=e.dataset.image,i=document.querySelector(".left-image img"),s=document.querySelectorAll(".device-slider-section__details [data-buttonid]"),n=e.dataset.buttonid;i.src=t,s.forEach((e=>{e.dataset.buttonid===n?e.classList.remove("d-none"):e.classList.add("d-none")}))}setMosoStickyContainer(){const e=document.querySelector(".left-image"),t=document.querySelector(".device-slider-section__details"),i=document.querySelector(".moso-sticky-container");if(i&&(["xs","sm","ms"].includes(Z())?(i.appendChild(e),i.appendChild(t)):(i.after(e),i.after(t))),this.isObserverAttached)return;const s=new IntersectionObserver((([e])=>i.classList.toggle("is-sticky",e.intersectionRatio<.45)),{threshold:[.45]});this.sectionElement?.previousElementSibling&&(s.observe(this.sectionElement.previousElementSibling),this.isObserverAttached=!0)}getCurrentSlide(){return this.swiper.isLocked&&this.swiper.clickedSlide?this.swiper.clickedSlide:this.swiper.slides[this.swiper.activeIndex]}updatePreview(){this.swiper.slides.length&&(this.getActiveColor(),this.getActiveMaterial(),this.getActiveImage(),this.setMosoStickyContainer(),this.updateSelectedSlide())}updateSelectedSlide(){this.swiper.slides.find((e=>e.classList.contains("selected-slide")))?.classList.remove("selected-slide"),this.getCurrentSlide()?.classList.add("selected-slide")}onSlideClick(){if(this.swiper.isLocked){if(this.swiper.clickedSlide.classList.contains("selected-slide"))return;this.updatePreview()}else this.swiper.slideToLoop(Number(this.swiper.clickedSlide.dataset.swiperSlideIndex),300)}onBreakpointChange(){new PopoverInitializer(this.element)}arrowTemplate(){const e=document.createElement("div");e.classList.add("swiper-button-prev"),this.element.prepend(e);const t=document.createElement("div");t.classList.add("swiper-button-next"),this.element.append(t)}refresh(){setTimeout((()=>
6{null!==this.element.offsetParent&&this.swiper.update()}),300)}isSliderBreakpoint(){return this.swiper.slides.length>Nl[this.element.dataset[Gl]][Z()]}}const Ul=Object.freeze(Object.defineProperty({__proto__:null,DeviceSlider:DeviceSlider,default:class DeviceSliderInitializer{sliders;constructor(e=document){const t=e.querySelectorAll("[data-device-slider]");this.sliders=t.map((e=>new DeviceSlider(e)))}}},Symbol.toStringTag,{value:"Module"}));class FxReflection{wrapper;reflection;constructor(e){this.element=e,this.wrapper=this.wrapElement(),this.reflection=this.createReflection(),this.wrapper.appendChild(this.reflection);const t=new MutationObserver((()=>this.updateReflection()));addEventListener("resize-proxy:width",(()=>this.updateReflection())),t.observe(e,{attributeFilter:["src"],attributes:!0,subtree:!0})}wrapElement(){const e=document.createElement("div");return e.dataset.fxReflection=this.element.dataset.fxReflection,delete this.element.dataset.fxReflection,this.element.parentElement.insertBefore(e,this.element),e.appendChild(this.element),e.className=this.element.className,e.style.position="relative",e.fxReflection=this,e}createReflection(){const e=this.element.cloneNode(!0),t=getComputedStyle(this.element),i=parseInt(t.marginBottom),s="none"===t.transform?"":t.transform;return e.style.position="absolute",e.style.top=2*i+"px",e.style.left="0",e.style.transform=`${s} rotateX(180deg)`.trimStart(),e.style.transformOrigin="bottom right",e.style.maskImage="linear-gradient(transparent calc(100% - 30px), rgba(0,0,0,0.3) 100%)",e.style.maskPosition=`0 ${i}px`,e.style.maskRepeat="no-repeat",e.style.pointerEvents="none",e}updateReflection(){this.wrapper.removeChild(this.reflection),this.reflection=this.createReflection(),this.wrapper.appendChild(this.reflection)}}const Yl=Object.freeze(Object.defineProperty({__proto__:null,FxReflection:FxReflection,default:class FxReflectionInitializer{constructor(e=document){e.querySelectorAll("[data-fx-reflection]").forEach((e=>{e.component||(e.component=new FxReflection(e))}))}}},Symbol.toStringTag,{value:"Module"})),Kl=".hardware-box__technical-details-header",Xl=".hardware-box__technical-details-content",Ql=".hardware-box",Jl="is-hidden",Zl="is-active",ec="radio-click-event";class HardwareBox{constructor(e){this.element=e,this.currentBreakpoint=Z(),this.radio=e.querySelector(".hardware-box__radio-popover input"),this.technicalDetails=e.querySelector(".hardware-box__technical-details-container"),this.technicalDetails?.addEventListener("click",(()=>{this.toggleDetails()})),this.radio&&(this.radio.addEventListener("change",(()=>document.dispatchEvent(new CustomEvent(ec,{detail:this})))),document.addEventListener(ec,(e=>{e.detail!==this&&(this.radio.checked=!1)}))),document.querySelectorAll(".filter__pill, .filter__chip").forEach((e=>e.addEventListener("click",(()=>{this.hideDetails()})))),addEventListener("resize-proxy:width",(()=>this.handleResize()))}handleResize(){const e=Z();this.currentBreakpoint!==e&&(this.hideDetails(),this.currentBreakpoint=e)}hideDetails(){document.querySelectorAll(Xl).forEach((e=>{e.classList.add(Jl)})),document.querySelectorAll(Kl).forEach((e=>{e.classList.remove(Zl),e.classList.add(Jl)})),document.querySelectorAll(Kl).forEach((e=>e.classList.add(Zl))),document.querySelectorAll(Xl).forEach((e=>{e.style.height="0"}))}toggleDetails(){let e=1;["xl","xxl"].includes(this.currentBreakpoint)?e=3:["ms","md","lg"].includes(this.currentBreakpoint)&&(e=2);const t=this.element.closest(".hardware-container__items-group"),i=this.element.closest(`${Ql}:not(.d-none)`),s=t||i,n=t?Array.from(i.parentNode.children).filter((e=>e.matches(Ql)&&!e.classList.contains("d-none"))).indexOf(i):Array.from(document.querySelectorAll(`${Ql}:not(.d-none)`)).indexOf(i),r=Array.from(s.querySelectorAll(Kl)).filter((e=>{const t=e.parentElement?.parentElement;return!t?.classList.contains("d-none")})).length,o=n-n%e,a=Math.min(r,o+e),l=[];for(let d=o;d<a;d++){const e=Array.from(s.querySelectorAll(Kl)).filter((e=>!e.parentElement?.parentElement?.classList.contains("d-none")))[d],t=e?.nextElementSibling;t&&l.push(t)}const c=this.getEqualHeights(l);this.toggleCollapse(l,c)}getEqualHeights(e){return e.map((e=>{let t=0;if(e.classList.contains("is-hidden")){const i=window.getComputedStyle(e),s=i.display,n=i.position,r=i.visibility;e.style.visibility="hidden",e.style.display="block",e.style.height="auto",t=e.offsetHeight+18,e.style.display=s,e.style.position=n,e.style.visibility=r,e.style.height=0}return t})).sort(((e,t)=>e-t)).slice(-1)[0]}toggleCollapse(e,t){e.forEach((e=>{e.classList.contains("is-hidden")?(e.style.height=`${t}px`,e.style.transition=`height ${_e}ms`):(e.style.height="0",e.style.transition=`height ${_e}ms`),e.previousElementSibling?.classList.toggle(Zl),e.classList.toggle(Jl)}))}}const tc=Object.freeze(Object.defineProperty({__proto__:null,HardwareBox:HardwareBox,default:class HardwareBoxInitializer{constructor(e=document){this.initHardwareBox(e)}initHardwareBox(e){e.querySelectorAll(Ql).forEach((e=>new HardwareBox(e)))}}},Symbol.toStringTag,{value:"Module"})),ic=".image-gallery",sc=`${ic}__main-image img`,nc=`${ic}__tile`,rc="--selected",oc=nc.substring(1)+rc;class ImageGallery{mainImage;tiles;selectedTile;constructor(e){e.imageGallery||(e.imageGallery=this,this.mainImage=e.querySelector(`${sc}:not(.image-gallery__gadget--left img):not(.energy-label img)`),this.tiles=e.querySelectorAll(nc),this.selectedTile=e.querySelector(nc+rc),this.initPreviewTiles())}initPreviewTiles(){const e=e=>{this.selectedTile!==e&&(this.deselectCurrentTile(),this.selectTile(e),this.updateMainImage())};
6this.tiles.forEach((t=>{t.addEventListener("click",(()=>{e(t)})),t.addEventListener("keyup",(i=>{"Enter"!==i.key&&" "!==i.key||e(t)}))}))}deselectCurrentTile(){this.selectedTile.classList.remove(oc)}selectTile(e){this.selectedTile=e,this.selectedTile.classList.add(oc)}updateMainImage(){const{src:e,dataset:{view:t}}=this.selectedTile.querySelector("img");this.mainImage.src=e,t&&(this.mainImage.dataset.view=t)}}const ac=Object.freeze(Object.defineProperty({__proto__:null,TILE_SELECTED_MODIFIER:rc,TILE_SELECTOR:nc,default:class ImageGalleryInitializer{constructor(e=document){this.init(e),addEventListener("async:loaded",(()=>this.init())),addEventListener(u,(()=>this.init()))}init(e=document){e.querySelectorAll(".image-gallery").forEach((e=>new ImageGallery(e)))}}},Symbol.toStringTag,{value:"Module"}));class LogoSlider{element;swiperElement;autoplay;autoplaySpeed;swiper;constructor(e){this.element=e,this.swiperElement=e.querySelector(".swiper"),this.autoplay=this.element.hasAttribute("data-autoplay"),this.autoplaySpeed=parseInt(this.element.getAttribute("data-autoplay-speed"),10)||3e3,this.initSwipper()}initSwipper(){if(this.swiper||this.swiperElement.classList.contains("swiper-initialized"))return;const e=[3,4,5,6];if(this.element.getAttribute("data-show-deso-count")){const t=Number(this.element.dataset.showDesoCount);t>6&&(e[3]=t)}const t=this.createArrow("prev"),i=this.createArrow("next");this.element.prepend(t),this.element.append(i),this.swiper=new Swiper(this.swiperElement,{modules:[za,Na],slidesPerView:e[0],slidesPerGroup:e[0],spaceBetween:12,autoplay:!!this.autoplay&&{delay:this.autoplaySpeed},speed:500,createElements:!0,centerInsufficientSlides:!0,touchStartPreventDefault:!1,navigation:{prevEl:t,nextEl:i},breakpoints:{[se.from]:{slidesPerView:e[1],slidesPerGroup:1},[re.from]:{slidesPerView:e[2],slidesPerGroup:1},[oe.from]:{slidesPerView:e[3],slidesPerGroup:1}}}),this.swiper.on("breakpoint",this.onBreakpointChange.bind(this))}onBreakpointChange(){new PopoverInitializer(this.element)}createArrow(e){const t=document.createElement("div");return t.classList.add(`swiper-button-${e}`),t}}const lc=Object.freeze(Object.defineProperty({__proto__:null,LogoSlider:LogoSlider,default:class LogoSliderInitializer{constructor(e=document){this.initializeSliders(e),addEventListener("async:loaded",(e=>{this.initializeSliders(e.target)}))}initializeSliders(e){e.querySelectorAll("[data-logo-slider]:not([data-no-init])").forEach((e=>new LogoSlider(e))),e.querySelectorAll("[data-logo-slider][data-no-init]").forEach((e=>e.removeAttribute("data-no-init")))}}},Symbol.toStringTag,{value:"Module"}));const cc=Object.freeze(Object.defineProperty({__proto__:null,default:class MiniShoppingCart{constructor(){this.toggle=document.querySelector("[data-mini-shopping-cart-toggle]"),this.toggle&&(this.miniShoppingCart=document.querySelector("[data-mini-shopping-cart]"),this.overlay=document.createElement("div"),this.overlay.classList.add("mini-shopping-cart__layer"),this.initializeEventListeners())}initializeEventListeners(){this.toggle.addEventListener("click",this.toggleVisibility.bind(this)),this.overlay.addEventListener("click",this.toggleVisibility.bind(this))}toggleVisibility(){this.toggle.classList.contains("btn--active")?this.closeMiniCart():this.openMiniCart()}openMiniCart(){document.body.appendChild(this.overlay),this.miniShoppingCart.classList.add("mini-shopping-cart--visible"),this.toggle.classList.add("btn--active")}closeMiniCart(){this.overlay.parentNode.removeChild(this.overlay),this.miniShoppingCart.classList.remove("mini-shopping-cart--visible"),this.toggle.classList.remove("btn--active")}}},Symbol.toStringTag,{value:"Module"}));class OptionChooser{optionChooserItems;constructor(e){e.optionChooser||(e.optionChooser=this,this.toggleExpanderTrigger=e.querySelector('[data-trigger="expander"]'),this.toggleExpanderTrigger&&(this.expanderContent=e.querySelector(".option-chooser__expander"),this.topPriceAndButton=e.querySelector(".option-chooser__bottom-right"),this.toggleExpander()))}toggleExpander(){this.toggleExpanderTrigger.addEventListener("click",(()=>{this.expanderContent.classList.remove("d-none"),this.topPriceAndButton.remove()}))}}const dc=Object.freeze(Object.defineProperty({__proto__:null,default:class OptionChooserInitializer{constructor(e=document){this.init(e),addEventListener("async:loaded",(()=>this.init()))}init(e=document){e.querySelectorAll(".option-chooser").forEach((e=>new OptionChooser(e)))}}},Symbol.toStringTag,{value:"Module"}));class Parallax{domElement;background;visual;domElementHeight;
6viewportHeight;backgroundHeight;backgroundOverflow;visualHeight;elementAnimationBoundary;threshold;observerOptions;observer;rect;constructor(e){this.domElement=e,window.addEventListener("load",this.init()),window.addEventListener("resize-proxy:width",(()=>this.init()))}init(){this.background=this.domElement.querySelector('[data-animation="parallax-background"] img'),this.visual=this.domElement.querySelector('[data-animation="parallax-visual"] img'),Promise.all([this.getPromise(this.visual),this.getPromise(this.background)]).then((()=>{if(this.domElementHeight=this.domElement.offsetHeight,this.viewportHeight=window.innerHeight,this.viewportHeight<=1.1*this.domElementHeight)return!1;this.initParallax()}))}getPromise(e){return new Promise((t=>{e.complete?t():e.addEventListener("load",(()=>{t()}))}))}initParallax(){this.threshold=1,this.backgroundHeight=this.background.offsetHeight,this.backgroundOverflow=this.domElementHeight-this.backgroundHeight,this.visualHeight=.8*this.visual.offsetHeight,this.rect=this.domElement.getBoundingClientRect(),this.elementAnimationBoundary=this.viewportHeight/2-this.rect.height/2,this.rect.top>this.elementAnimationBoundary&&this.updateParallaxPosition(this.backgroundOverflow,this.visualHeight),this.animationHandler=this.animationHandler.bind(this),"IntersectionObserver"in window?(this.observerOptions={threshold:this.threshold},this.observer=new IntersectionObserver(this.observerCallback.bind(this),this.observerOptions),this.observer.observe(this.domElement)):window.addEventListener("scroll",this.animationHandler),setTimeout((()=>{window.dispatchEvent(new CustomEvent("scroll"))}),250)}updateParallaxPosition(e,t){this.background.style.transform="translate3d(0, "+e+"px, 0)",this.visual.style.transform="translate3d(0, "+t+"px, 0)"}observerCallback(e){e.forEach((e=>{e.isIntersecting&&e.intersectionRatio===this.threshold?window.addEventListener("scroll",this.animationHandler):window.removeEventListener("scroll",this.animationHandler)}))}animationHandler(){const e=this.domElement.getBoundingClientRect(),t=this.elementAnimationBoundary/(e.top-this.elementAnimationBoundary),i=this.visualHeight/t,s=this.backgroundOverflow/t;e.top>=this.elementAnimationBoundary&&e.bottom<=this.viewportHeight?this.updateParallaxPosition(s,i):e.top<this.elementAnimationBoundary?this.updateParallaxPosition(0,0):this.updateParallaxPosition(this.backgroundOverflow,this.visualHeight)}}const hc=Object.freeze(Object.defineProperty({__proto__:null,Parallax:Parallax,default:class ParallaxInitializer{constructor(e=document){this.initializeParallaxElements(e)}initializeParallaxElements(e){e.querySelectorAll("[data-parallax-container]").forEach((e=>new Parallax(e)))}}},Symbol.toStringTag,{value:"Module"}));class PriceBox{#m;#g;#f;constructor(e){this.#m=e,this.#g=e.querySelector(".price"),this.#f=e.querySelector(".price__digits"),this.init()}init(){const e=this.#f.textContent.replace(",","").length;e>3?this.#g.classList.add("price-box--round__four-digits"):3===e?this.#g.classList.add("price-box--round__three-digits"):2===e&&this.#g.classList.add("price-box--round__two-digits")}}const uc=Object.freeze(Object.defineProperty({__proto__:null,PriceBox:PriceBox,default:class PriceBoxInitializer{constructor(e=document){addEventListener("async:loaded",(e=>{this.init(e.target)})),this.init(e)}init(e=document){e.querySelectorAll(".price-box--round, .price-box--round-medium, .price-box--round-medium-plus").forEach((e=>new PriceBox(e)))}}},Symbol.toStringTag,{value:"Module"})),pc=".quick-entries",mc=pc+"-arrows",gc=mc+"--icon-left",fc=mc+"--icon-right";class QuickEntries{container;quickEntries;quickEntriesArrowsWrapper;constructor(e){this.container=e;const t=this.container.parentElement.querySelector(gc),i=this.container.parentElement.querySelector(fc),s=this.container.querySelector(pc+"__wrapper");this.quickEntries=s.querySelectorAll(".quick-entry"),this.quickEntriesArrowsWrapper=this.container.parentElement.querySelector(mc),this.toggleArrows(),addEventListener("resize-proxy:width",(()=>{this.toggleArrows()})),this.container.addEventListener("scroll",(()=>this.toggleArrows())),t?.addEventListener("click",(()=>this.scrollContainer("left"))),i?.addEventListener("click",(()=>this.scrollContainer("right")))}scrollContainer(e){const t="left"===e?-120:120;this.container.scrollLeft+=t}isSliderOutLeft(){return this.container.scrollLeft>parseInt(getComputedStyle(document.documentElement).paddingLeft,10)}isSliderOutRight(){const e=this.container.scrollLeft,t=parseInt(getComputedStyle(document.documentElement).paddingRight,10);return e+this.container.offsetWidth+t<Math.floor(this.container.scrollWidth)}toggleArrows(){const e=mc.slice(1),t=[...this.quickEntries].some((e=>!this.isElementInViewport(e))),i=t&&this.isSliderOutLeft(),s=t&&this.isSliderOutRight();this.quickEntriesArrowsWrapper?.classList.toggle(e+"--show-left",i),this.quickEntriesArrowsWrapper?.classList.toggle(e+"--show-right",s)}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}}const vc=Object.freeze(Object.defineProperty({__proto__:null,default:class QuickEntriesInitializer{constructor(e=document){e.querySelectorAll(pc).forEac
6h((e=>new QuickEntries(e)))}}},Symbol.toStringTag,{value:"Module"}));class QuickLinks{element;selectedQuickLink;constructor(e){this.element=e,this.selectedQuickLink=e.querySelector(".quick-link--selected")||e.querySelector(".quick-link"),this.createArrows(),this.initCarousel()}initCarousel(){new Swiper(this.element,{modules:[za],navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},createElements:!0,slidesPerView:3,spaceBetween:12,touchStartPreventDefault:!1,breakpoints:{0:{slidesPerView:3},650:{slidesPerView:5},1024:{slidesPerView:7}},on:{click:e=>{this.selectQuickLink(e)}}})}selectQuickLink(e){e.clickedSlide&&(this.selectedQuickLink.classList.remove("quick-link--selected"),this.selectedQuickLink=e.clickedSlide.firstElementChild,this.selectedQuickLink.classList.add("quick-link--selected"),e.clickedSlide=null)}createArrows(){[{dir:"prev",icon:"arrow-soft-left"},{dir:"next",icon:"arrow-soft-right"}].forEach((({dir:e,icon:t})=>{const i=document.createElement("div");i.classList.add(`swiper-button-${e}`),i.innerHTML=`<svg viewBox="0 0 100 100" class="icon icon--large">\n              <use href="#${t}"></use>\n            </svg>`,this.element.appendChild(i)}))}}const bc=Object.freeze(Object.defineProperty({__proto__:null,QuickLinks:QuickLinks,default:class QuickLinksInitializer{constructor(e=document){this.initializeSliders(e)}initializeSliders(e){e.querySelectorAll(".quick-links-slider:not(.swiper-initialized)").forEach((e=>new QuickLinks(e)))}}},Symbol.toStringTag,{value:"Module"}));const yc=Object.freeze(Object.defineProperty({__proto__:null,default:class ShoppingCart{toggle;constructor(){this.toggle=document.querySelectorAll(".shopping-cart-table--variant-b__item-expander span"),this.toggle&&this.initializeEventListeners()}initializeEventListeners(){for(let e=0,t=this.toggle.length;e<t;e++)this.toggle[e].addEventListener("click",this.toggleExpander.bind(this))}toggleExpander(e){const t="span"===e.target.tagName.toLowerCase()?e.target:e.target.closest("span"),i=t.closest(".shopping-cart-table--variant-b__item").getAttribute("data-article-id"),s=document.querySelector('.shopping-cart-table--variant-b__expand-content[data-article-id="'+i+'"] .shopping-cart-table--variant-b__item-content');t.classList.toggle("open"),s.classList.toggle("open")}}},Symbol.toStringTag,{value:"Module"})),wc=".sticky-contact";class StickyContact{element;tabs;trackingNamespace;focusElement;openTimeout;closeTimeout;constructor(e){this.element=e,this.tabs=e.querySelectorAll(`${wc}__item`),this.trackingNamespace="contact-palette",this.focusElement=this.element.querySelector(`[data-key="${this.element.dataset.open||"phone"}"]`),this.initialize()}
6initialize(){this.tabs.forEach((e=>{e.querySelector(`${wc}__tab`).addEventListener("click",(()=>{clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout),this.toggleTab(e)}));e.querySelector(`${wc}__content .close`).addEventListener("click",(()=>{clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout),this.closeTabs()}))})),["xs","sm","ms"].indexOf(Z())>=0&&(this.checkForOpen(),location.pathname.includes("kosten")&&this.checkForOpenCheckout())}openAndCloseToggle(){this.openTimeout=setTimeout((()=>{this.toggleTab(this.focusElement),this.closeTimeout=setTimeout((()=>{this.toggleTab(this.focusElement)}),6e3)}),6e3)}checkForOpenCheckout(){document.cookie.indexOf("contactOpenCheckOut=true")<0&&(document.cookie="contactOpenCheckOut=true;domain=.1und1.de",this.openAndCloseToggle())}checkForOpen(){document.cookie.indexOf("contactOpen=true")<0&&(window.isStorybook?document.cookie="contactOpen=true":document.cookie="contactOpen=true;domain=.1und1.de",this.openAndCloseToggle())}toggleTab(e){e.classList.contains("active")?this.closeTab(e):(this.closeTabs(),this.openTab(e))}openTab(e){e.classList.add("active"),this.startTracking(e.dataset.key,"open")}closeTab(e){e.classList.remove("active"),this.stopTracking(e.dataset.key,"closed")}
6closeTabs(){this.tabs.forEach((e=>{e.classList.contains("active")&&this.closeTab(e)}))}startTracking(e,t){this.dispatchTrackingEvent(e,t,!0)}stopTracking(e,t){this.dispatchTrackingEvent(e,t)}dispatchTrackingEvent(e,t,i){const s=()=>{document.dispatchEvent(new CustomEvent(`contact-palette-${e}_${t}`))};i?setTimeout(s,500):s()}}const Sc=Object.freeze(Object.defineProperty({__proto__:null,SELECTOR:wc,default:class StickyContactInitializer extends XLABInitializer{constructor(){super(wc,StickyContact)}}},Symbol.toStringTag,{value:"Module"}));var _c,Ec;var Cc=function(){if(Ec)return _c;Ec=1;var e="Expected a function",t=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,n=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof B&&B&&B.Object===Object&&B,a="object"==typeof self&&self&&self.Object===Object&&self,l=o||a||Function("return this")(),c=Object.prototype.toString,d=Math.max,h=Math.min,u=function(){return l.Date.now()};function p(t,i,s){var n,r,o,a,l,c,p=0,f=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError(e);function y(e){var i=n,s=r;return n=r=void 0,p=e,a=t.apply(s,i)}function w(e){var t=e-c;return void 0===c||t>=i||t<0||v&&e-p>=o}function S(){var e=u();if(w(e))return _(e);l=setTimeout(S,function(e){var t=i-(e-c);return v?h(t,o-(e-p)):t}(e))}function _(e){return l=void 0,b&&n?y(e):(n=r=void 0,a)}function E(){var e=u(),t=w(e);if(n=arguments,r=this,c=e,t){if(void 0===l)return function(e){return p=e,l=setTimeout(S,i),f?y(e):a}(c);if(v)return l=setTimeout(S,i),y(c)}return void 0===l&&(l=setTimeout(S,i)),a}return i=g(i)||0,m(s)&&(f=!!s.leading,o=(v="maxWait"in s)?d(g(s.maxWait)||0,i):o,b="trailing"in s?!!s.trailing:b),E.cancel=function(){void 0!==l&&clearTimeout(l),p=0,n=c=r=l=void 0},E.flush=function(){return void 0===l?a:_(u())},E}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(m(e)){var o="function"==typeof e.valueOf?e.valueOf():e;e=m(o)?o+"":o}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var a=s.test(e);return a||n.test(e)?r(e.slice(2),a?2:8):i.test(e)?NaN:+e}return _c=function(t,i,s){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError(e);return m(s)&&(n="leading"in s?!!s.leading:n,r="trailing"in s?!!s.trailing:r),p(t,i,{leading:n,maxWait:i,trailing:r})}}();const xc=j(Cc),Tc="navigation--sticky",Lc=document.querySelector(".header .navigation");const kc=Object.freeze(Object.defineProperty({__proto__:null,default:class StickyHeader{constructor(){Lc&&this.initializeStickyHeader()}initializeStickyHeader(){document.addEventListener("scroll",xc(this.scrollHandler.bind(this),50)),addEventListener("resize-proxy:width",xc(this.scrollHandler.bind(this),50))}scrollHandler(){const e=window.scrollY,t=document.querySelector("header.header").getBoundingClientRect().top+window.scrollY;let i=t;["lg","xl","xxl"].includes(Z())&&(i=t-Lc.clientHeight),e>=t?this.makeSticky():e<=i&&this.makeUnSticky()}makeSticky(){Lc.classList.add(Tc),document.body.style.paddingTop=["lg","xl","xxl"].includes(Z())?Lc.clientHeight+"px":"0"}makeUnSticky(){["lg","xl","xxl"].includes(Z())&&(document.body.style.paddingTop="0"),Lc.classList.remove(Tc)}}},Symbol.toStringTag,{value:"Module"}));const Ac=Object.freeze(Object.defineProperty({__proto__:null,default:class StickySectionHeader{constructor(){this.initializeOnMobile(),this.initializeStickyHeader()}initializeStickyHeader(){const e=xc(this.initializeOnMobile.bind(this),100);window.addEventListener("resize-proxy:width",e)}initializeOnMobile(){if(-1===["xs","sm"].indexOf(Z()))return!1;this.initSectionWaypoints()}initSectionWaypoints(){const e=document.querySelector("[data-sticky-element]");if(!e)return!1;const t=e.querySelector("span"),i=document.querySelector("[data-sticky-end]"),s=document.querySelectorAll("[data-sticky-text]");s.length>0&&new Waypoint({element:s[0],handler:t=>{"down"===t&&e.classList.remove("is-hidden"),"up"===t&&e.classList.add("is-hidden")}}),i&&new Waypoint({element:i,handler:t=>{"down"===t&&e.classList.add("is-hidden"),"up"===t&&e.classList.remove("is-hidden")},offset:"0"});for(const n of s)new Waypoint({element:n,handler:e=>{if("down"===e){const e=n.dataset.stickyText;t.innerHTML=e}},offset:"30%"}),new Waypoint({element:n,handler:e=>{if("up"===e){const e=n.dataset.stickyText;t.innerHTML=e}},offset:"-50%"})}}},Symbol.toStringTag,{value:"Module"}));class ProgressBar{container;arrowsElement;arrowLeftElement;arrowRightElement;maxScroll;containerHeight;leftEnd;rightEnd;timeout;constructor(e){this.container=e,this.arrowsElement=this.container.querySelector(".progress-bar__arrows"),this.arrowLeftElement=this.container.querySelector(".progress-bar__arrow--left"),this.arrowRightElement=this.container.querySelector(".progress-bar__arrow--right"),this.container.addEventListener("mouseenter",this.focused.bind(this)),this.container.addEventListener("touchstart",this.focused.bind(this)),this.container.addEventListener("mouseleave",this.blurred.bind(this)),this.container.addEventListener("touchend",this.blurred.bind(this));const t=setInterval((()=>{this.container.offsetHeight>0&&(this.containerHeight=parseInt(getComputedStyle(this.container).height,10),clearInterval(t))}),200);this.init(),addEventListener("resize-proxy:width",(()=>{this.toggleClasses(),this.init()})),this.arrowLeftElement?.addEventListener("click",(()=>this.scrollContainer(-80))),this.arrowRightElement?.addEventListener("click",(()=>this.scrollContainer(80)))}init(){this.adjustHeight(),this.calculateValues();let e=this.container.scrollLeft;this.calculateMasks(e),this.container.addEventListener("scroll",(()=>{e=this.container.scrollLeft,this.calculateMasks(e)})),this.centerActiveItem()}adjustHeight(){if(!isNaN(this.containerHeight)&&this.containerHeight!==this.container.clientHeight){const e=this.container.offsetHeight-this.container.clientHeight;this.container.style.height=`${this.containerHeight+e}px`}}calculateValues(){const e=this.container.scrollWidth,t=this.container.offsetWidth;this.maxScroll=e-t,this.leftEnd=24,this.rightEnd=this.maxScroll-this.leftEnd}calculateMasks(e){let t=0,i=0;e<=this.leftEnd&&(t=this.calculateOpacity(0,this.leftEnd,e,!0)),(e>=this.rightEnd||0===this.maxScroll)&&(i=this.calculateOpacity(this.rightEnd,this.maxScroll,e)),this.toggleClasses(t,i)}calculateOpacity(e,t,i,s=!1){let n=1;return 0!==t&&i>e&&i<t&&(n=100/(t-e)*(i-e)/100,s&&(n=1-n)),n}centerActiveItem(){const e=this.container.querySelector(".progress-bar__item--active"),t=e.querySelector("a"),i=e.offsetLeft-this.container.offsetWidth/2+t.offsetWidth/2;this.container.scrollTo({left:i})}toggleClasses(e,t){const i={none:"d-none",arrowLeft:"progress-bar__arrows--show-left",arrowRight:"progress-bar__arrows--show-right",arrowsBoth:["progress-bar__arrows--show-left","progress-bar__arrows--show-right"]};0===e&&0===t&&this.maxScroll>0?(this.arrowRightElement?.classList.remove(i.none),this.arrowLeftElement?.classList.remove(i.none),this.arrowsElement?.classList.add(...i.arrowsBoth)):0===this.maxScroll?(this.arrowRightElement?.classList.add(i.none),this.arrowLeftElement?.classList.add(i.none),this.arrowsElement?.classList.remove(...i.arrowsBoth)):e>0&&0===t?(this.arrowsElement?.classList.add(i.arrowRight),this.arrowsElement?.classList.remove(i.arrowLeft),this.arrowLeftElement?.classList.add(i.none),this.arrowRightElement?.classList.remove(i.none)):0===e&&t>0?(this.arrowsElement?.classList.add(i.arrowLeft),this.arrowsElement?.classList.remove(i.arrowRight),this.arrowLeftElement?.classList.remove(i.none),this.arrowRightElement?.classList.add(i.none)):(this.arrowsElement?.classList.remove(...i.arrowsBoth),this.arrowLeftElement?.classList.add(i.none))}blurred(){this.timeout=setTimeout(this.centerActiveItem.bind(this),3e3)}focused(){clearTimeout(this.timeout)}scrollContainer(e){this.container.scrollBy({left:e,behavior:"smooth"})}}const Oc=Object.freeze(Object.defineProperty({__proto__:null,default:class ProgressBarInitializer{constructor(e=document){e.querySelectorAll(".progress-bar").forEach((e=>new ProgressBar(e)))}}},Symbol.toStringTag,{value:"Module"}));class SectionNavigation{navigation;sections;naviSections;naviSectionIds;constructor(){this.navigation=document.querySelector("[data-section-navigation]"),this.navigation&&(this.initializeSections(),window.addEventListener("resize-proxy",this.resizeHandler.bind(this)),["xs","sm","ms","md","lg","xl"].indexOf(Z())>=0||this.updateTopPosition(SectionNavigation.getBottomOfArrows()))}static getBottomOfArrows(){const e=document.querySelector(".swiper-button-prev");return e?e.getBoundingClientRect().top+window.scrollY+e.scrollHeight:window.innerHeight/2}updateTopPosition(e){this.navigation.style.top=e+"px"}initializeSections(){this.sections=document.querySelectorAll("[data-section-navigation-section]"),this.naviSections=this.navigation.querySelectorAll("[data-scroll-to]"),this.naviSectionIds=[];for(let e=0;e<this.naviSections.length;e++){const t=this.naviSections[e].dataset.scrollTo;this.naviSectionIds.push(t.substring(1))}for(let e=0;e<this.sections.length;e++)this.naviSectionIds.includes(this.sections[e].id)&&(new Waypoint({element:this.sections[e],handler:t=>{"up"!==t&&this.updateActiveItem(this.sections[e].id)},offset:"50%"}),new Waypoint({element:this.sections[e],handler:t=>{"down"!==t&&this.updateActiveItem(this.sections[e].id)},offset:"-30%"}))}updateActiveItem(e){this.navigation.querySelector(".section-navigation__item--active")?.classList.remove("section-navigation__item--active"),this.navigation.querySelector('[data-scroll-to="#'+e+'"]').parentElement.classList.add("section-navigation__item--active")}resizeHandler(){Waypoint.refreshAll(),["xs","sm","ms","md","lg","xl"].indexOf(Z())>=0||this.updateTopPosition(SectionNavigation.getBottomOfArrows())}}const Ic=Object.freeze(Object.defineProperty({__proto__:null,default:SectionNavigation},Symbol.toStringTag,{value:"Module"})),Dc="subnavigation-bk";class SubNavigationBk{subNavigationBk;subNavigationSpacer;subNavigationBkItems;wrapper;header;constructor(e){this.subNavigationBk=e,this.header=e.parentElement.querySelector("header"),this.subNavigationSpacer=e.parentElement.querySelector(".subnavigation-bk-spacer"),this.subNavigationBkItems=e.querySelectorAll(".subnavigation-bk__items"),this.wrapper=e.querySelector(".subnavigation-bk__item-wrapper"),this.initSubNavigationBk()}initSubNavigationBk(){this.subNavigationBk.querySelector("."+Dc+"__select-flyout-button")?.addEventListener("click",(()=>{this.toggleFlyout(),this.calculateArrowPos()})),addEventListener("resize-proxy:width",(()=>{this.calculateArrowPos(),this.toggleLeftRightArrow(),this.setSubNavigationStyle()}
6)),addEventListener("scroll",(()=>this.setSubNavigationStyle())),setTimeout((()=>{dispatchEvent(new Event("resize-proxy:width",{bubbles:!0}))}),0),this.wrapper.addEventListener("scroll",(()=>this.toggleLeftRightArrow()))}setSubNavigationStyle(){if(0===window.scrollY)this.subNavigationBk.style.position="relative",this.subNavigationSpacer.style.display="none";else if(this.header&&0!==this.header.clientHeight){const e=this.subNavigationBk.getBoundingClientRect().height;this.subNavigationBk.style.position="absolute",this.subNavigationSpacer.style.marginBottom=`${e}px`,this.subNavigationSpacer.style.display="block"}}toggleFlyout(){this.subNavigationBk.querySelector("."+Dc+"__groups")?.classList.toggle("d-block"),this.subNavigationBk.querySelector(".icon")?.classList.toggle("icon-expanded")}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}isSliderOutLeft(){return this.wrapper.scrollLeft>0}isSliderOutRight(){return this.wrapper.scrollLeft+this.wrapper.clientWidth<Math.floor(this.wrapper.scrollWidth)}calculateArrowPos(){const e=this.subNavigationBk.querySelector(".subnavigation-bk__select-flyout-button")?.offsetWidth,t=this.subNavigationBk.querySelector(".arrow-up");t&&void 0!==e&&(t.style.left=e/2+"px")}toggleLeftRightArrow(){let e=!1;this.subNavigationBk.querySelectorAll(".subnavigation-bk__item").forEach((t=>{this.isElementInViewport(t)||(e=!0)})),e?this.subNavigationBkItems.forEach((e=>{e.classList.toggle("subnavigation-bk__items--show-left",this.isSliderOutLeft()),e.classList.toggle("subnavigation-bk__items--show-right",this.isSliderOutRight())})):this.subNavigationBkItems.forEach((e=>{e.classList.remove("subnavigation-bk__items--show-left","subnavigation-bk__items--show-right")}))}}const Pc=Object.freeze(Object.defineProperty({__proto__:null,default:class SubNavigationBkInitializer{constructor(e=document){this.mapSubNavigationBk(e),addEventListener("async:loaded",(e=>{this.mapSubNavigationBk(e.target)}))}mapSubNavigationBk(e){e.querySelectorAll("."+Dc).forEach((e=>new SubNavigationBk(e)))}}},Symbol.toStringTag,{value:"Module"}));class TariffboxConfigurator{checkboxList;constructor(e){this.checkboxList=e.querySelectorAll('[type="checkbox"]'),this.checkboxList.length<1||this.registerHandlers()}registerHandlers(){for(const e of this.checkboxList)e.addEventListener("change",(()=>{const e=new CustomEvent("tariffbox:changed",{detail:{checkboxStates:this.getCheckboxObject()}});document.dispatchEvent(e)}))}getCheckboxObject(){const e={};for(let t=0;t<this.checkboxList.length;t++){const i=this.checkboxList[t].name,s=this.checkboxList[t].checked;e[i]=s}return e}}const Mc=Object.freeze(Object.defineProperty({__proto__:null,TariffboxConfigurator:TariffboxConfigurator,default:class TariffboxConfiguratorInitilizer{constructor(e=document){e.querySelectorAll(".tariffbox-configurator").forEach((e=>new TariffboxConfigurator(e)))}}},Symbol.toStringTag,{value:"Module"}));const qc=Object.freeze(Object.defineProperty({__proto__:null,default:class TariffboxHeadAction{constructor(){document.querySelectorAll(il).forEach((e=>{e.querySelector(".tariffbox__head-action")&&e.classList.add("tariffboxes--with-highlight")}))}}},Symbol.toStringTag,{value:"Module"}));class TariffboxToggle{tariffToggle;constructor(e){this.tariffToggle=e,this.initTariffToggle()}initTariffToggle(){const e=this.tariffToggle.querySelectorAll(".toggle-label");if(e.length<=1)return;const t=this.tariffToggle.closest(".tariffbox");e.forEach((e=>e.addEventListener("click",(i=>{if(i.target.closest("[data-bs-toggle=popover]"))return;const s=i.currentTarget,n=s.closest(".toggle-box");let r=n?Array.from(n.parentNode.children).indexOf(n):Array.from(s.parentNode.children).indexOf(s);if(!n){const t=e.parentNode.children,i=t[0]===e?t[1]:t[0];i?.classList.contains("toggle-label")||r--}const o=!i.pointerType;this.toggleTariff(t,r,o)}))))}toggleTariff(e,t,i){if(!e)return;const s=e.parentElement.querySelectorAll(".tariffbox");s.forEach((e=>{e.classList.add("d-none"),e.querySelectorAll(".tariffbox-toggle .toggle-label input").forEach((e=>{e.checked=e.defaultChecked}))}));const n=s[t];n&&(n.classList.remove("d-none"),n.querySelector(".toggle-label:has(input:checked)")?.focus(),i||document.activeElement?.blur()),document.body.dispatchEvent(new Event(u,{bubbles:!0})),document.body.dispatchEvent(new Event(d,{bubbles:!0}))}}const zc=Object.freeze(Object.defineProperty({__proto__:null,TariffboxToggle:TariffboxToggle,default:class TariffboxToggleInitializer{constructor(e=document){this.initializeToggle(e),addEventListener("async:loaded",(e=>{this.initializeToggle(e.target)}))}initializeToggle(e){e.querySelectorAll("[data-tariffbox-toggle]:not([data-no-init])").forEach((e=>new TariffboxToggle(e))),e.querySelectorAll("[data-tariffbox-toggle][data-no-init]").forEach((e=>e.removeAttribute("data-no-init")))}}},Symbol.toStringTag,{value:"Module"}));class TextAutowidth{element;container;mutationObserver;resizeHandler;intersectionObserver;constructor(e){this.element=e,this.container=e.closest(".text-autowidth__wrapper"),this.initialize()}initialize(){this.fitTextToWidth(),this.bindEvents()}fitTextToWidth(){const e=this.container.offsetWidth;let t=1,i=200,s=t;for(;i-t>.1;){const n=(t+i)/2;this.element.style.fontSize=`${n}px`,this.element.scrollWidth<=e?(s=n,t=n):i=n}e>0&&(this.element.style.fontSize=`${s.toFixed(2)}px`)}bindEvents(){this.resizeHandler=()=>this.fitTextToWidth(),window.addEventListener("resize-proxy:width",this.resizeHandler),this.mutationObserver=new MutationObserver((()=>this.fitTextToWidth())),this.mutationObserver.observe(this.element,{childList:!0,characterData:!0,subtree:!0}),this.intersectionObserver=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.fitTextToWidth()}))}),{threshold:.01}),this.intersectionObserver.observe(this.element)}}const Hc=Object.freeze(Object.defineProperty({__proto__:null,default:class TextAutowidthInitializer{constructor(e=document){this.init(e),addEventListener("DOMContentLoaded",(()=>this.init()))}init(e=document){e.querySelectorAll(".text-autowidth--fontsize").forEach((e=>e.textAutowidthComponent||(e.textAutowidthComponent=new TextAutowidth(e))))}}},Symbol.toStringTag,{value:"Module"}));class EventListenerManager{#v;
6constructor(){this.#v=new AbortController}add(e,t,i,s={}){e.addEventListener(t,i,{...s,signal:this.#v.signal})}abortAll(){this.#v.abort(),this.#v=new AbortController}}const Bc="[data-thumbnail-container]";class ThumbnailContainer{element;wrapper;slider;isStickyVariant;stickyListenersInitialized;thumbnails;numThumbnails;halos;scrollbarShown;basicHalo;singleHalo;thumbnailsInitialized;eventListenerManager;activeThumbnailIndex;skipScrollAnimation;slideTo;get hasLoopPreview(){return this.element.classList.contains("thumbnail-container--loop-preview")}constructor(e){if(this.element=e,this.eventListenerManager=new EventListenerManager,this.wrapper=this.element.querySelector(".thumbnail-container__wrapper"),this.slider=this.element.querySelector(".thumbnail-container__content"),this.isStickyVariant=this.element.classList.contains("thumbnail-container--sticky"),this.stickyListenersInitialized=!1,this.isBubbleVariant=Boolean(this.slider.querySelector(".thumbnail--bubble")||this.element.closest(il)?.querySelector(".tariffbox .thumbnail--bubble")),this.element.addEventListener(m,(e=>this.initThumbnails(e))),this.initStickyShadow(),this.isBubbleVariant)return;const t=this.element.querySelector(".thumbnail-container--icon-left"),i=this.element.querySelector(".thumbnail-container--icon-right");this.initThumbnailContainer(),this.wrapper.addEventListener("scroll",(()=>{this.onScrollThumbnails()})),t.addEventListener("click",(()=>this.scrollContainer(-120))),i.addEventListener("click",(()=>this.scrollContainer(120)))}initThumbnails(e){this.thumbnailsInitialized&&(this.eventListenerManager.abortAll(),this.stickyListenersInitialized=!1,this.initStickyShadow()),this.connectThumbnailsToSwiper(e.detail),this.initThumbnailContainer(),this.thumbnailsInitialized=!0}connectThumbnailsToSwiper(e){const t=e.params.loop&&e.slideToLoop?t=>e.slideToLoop(t):e.slideToForced||(t=>e.slideTo(t));this.connectThumbnails(e.el.querySelectorAll(".swiper-slide"),t),e.on("slideChange",(()=>this.updateThumbnails(e))),this.updateThumbnails(e)}connectThumbnails(e,t){const i=[...this.element.querySelectorAll(".thumbnail:not(.thumbnail--loop-clone)")];0===i.length&&e.forEach((e=>{const t=e.querySelector(":not(.d-none) .thumbnail").cloneNode(!0);this.element.querySelector(".thumbnail-container__thumbnails").append(t),i.push(t)})),i.forEach(((e,i)=>{this.eventListenerManager.add(e,"click",(()=>{t(i,!0)}))})),this.slideTo=t}getActiveThumbnailIndex(e,t){let i;return i=e.params.loop&&"number"==typeof e.realIndex?e.realIndex:e.activeIndex,(i%t+t)%t}updateThumbnails(e){const t=this.element.querySelectorAll(".thumbnail:not(.thumbnail--loop-clone)");if(0===t.length)return;const i=this.getActiveThumbnailIndex(e,t.length);t.forEach(((e,t)=>e.classList.toggle("thumbnail--active",t===i))),this.hasLoopPreview&&(this.skipScrollAnimation=this.isWrapTransition(this.activeThumbnailIndex,i,t.length)),this.activeThumbnailIndex=i,this.scrollThumbnails()}isWrapTransition(e,t,i){if(void 0===e||void 0===t||e===t||i<3)return!1;const s=Math.abs(t-e);return i-s<s}initThumbnailContainer(){if(this.isBubbleVariant)return;if(this.thumbnails=this.slider.querySelectorAll(".thumbnail:not(.thumbnail--loop-clone)"),this.numThumbn
6ails=this.thumbnails.length,!this.numThumbnails)return;this.halos=new Array(this.numThumbnails);const e=this.slider.querySelector(".thumbnail-container__halos");this.scrollbarShown=!1;for(let t=0;t<this.numThumbnails;t++){const e=this.thumbnails[t].querySelector(".thumbnail__halo")?.cloneNode(!0);e&&(this.halos[t]=e)}if(0!==this.halos.length){e.innerHTML="";for(let t=this.halos.length-1;t>=0;t--)this.halos[t]&&e.insertBefore(this.halos[t],e.firstChild);this.resizeContainer(),setTimeout((()=>{this.resizeContainer()}),300),this.eventListenerManager.add(window,"resize-proxy:width",(()=>this.resizeContainer())),this.eventListenerManager.add(window,u,(()=>this.resizeContainer())),this.eventListenerManager.add(window,p,(()=>this.resizeContainer())),this.scrollThumbnails(),e?.dispatchEvent(new Event(b,{bubbles:!0}))}}initStickyShadow(){this.isStickyVariant&&!this.stickyListenersInitialized&&(this.stickyListenersInitialized=!0,this.eventListenerManager.add(window,"scroll",(()=>this.updateStickyState()),{passive:!0}),this.eventListenerManager.add(window,"resize",(()=>this.updateStickyState()),{passive:!0}),this.updateStickyState())}updateStickyState(){const e=parseFloat(getComputedStyle(this.element).top)||0,t=this.element.getBoundingClientRect().top,i=window.scrollY>0&&t<=e+1;this.element.classList.toggle("is-stuck",i)}onScrollThumbnails(){const e=this.wrapper,t=e.scrollLeft,i=getComputedStyle(e),s=e.clientWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight),n=e.scrollWidth,r=Math.round(n-t-s);this.element.classList.add("thumbnail-container--show-left","thumbnail-container--show-right"),20===r&&this.element.classList.remove("thumbnail-container--show-right"),0===t&&this.element.classList.remove("thumbnail-container--show-left")}scrollThumbnails(){if(!this.scrollbarShown||this.isBubbleVariant)return;const e=this.wrapper.querySelectorAll(".thumbnail--active"),t=e[e.length-1];if(!t)return;const i=getComputedStyle(t),s=t.clientWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight),n=getComputedStyle(this.wrapper),r=parseInt(n.paddingLeft,10)||0,o=this.wrapper.clientWidth-r-parseInt(n.paddingRight,10),a=this.wrapper.scrollLeft+r,l=this.wrapper.scrollLeft-r,c=t.offsetLeft-r-(o-s)/2;if(this.skipScrollAnimation){const e=this.wrapper.style.scrollBehavior;this.wrapper.style.scrollBehavior="auto",this.wrapper.scrollLeft=c,this.wrapper.style.scrollBehavior=e,this.skipScrollAnimation=!1}else this.wrapper.scrollLeft=c;this.element.classList.toggle("thumbnail-container--show-left",l>0),this.element.classList.toggle("thumbnail-container--show-right",a+o<Math.floor(this.slider.clientWidth-parseInt(getComputedStyle(this.slider).paddingRight,10)))}scrollContainer(e){this.wrapper.scrollLeft+=e}resizeContainer(){const e=parseInt(getComputedStyle(this.thumbnails[0]).paddingLeft,10)+parseInt(getComputedStyle(this.thumbnails[0]).paddingRight,10);let t=0,i=0;for(let a=0;
6a<this.numThumbnails;a++){const s=this.thumbnails[a];t=s.querySelector(".thumbnail__content")?.offsetWidth||0,i=Math.max(i,t+e)}const s=this.wrapper.clientWidth-parseInt(getComputedStyle(this.wrapper).paddingLeft,10)-parseInt(getComputedStyle(this.wrapper).paddingRight,10);let n=s;this.numThumbnails>4?(n=i*this.numThumbnails+e*this.numThumbnails,n>s&&(this.scrollbarShown=!0),this.slider.classList.add("thumbnail-container__content--long")):this.slider.style.width=s+"px";let r=0,o=0;if(this.hasLoopPreview?({leading:r,trailing:o}=this.updateLoopClones(s)):this.slider.querySelector(".thumbnail-container__thumbnails")?.querySelectorAll(".thumbnail--loop-clone").forEach((e=>e.remove())),this.numThumbnails>4&&(this.slider.style.minWidth=n+r+o+"px"),this.onScrollThumbnails(),this.basicHalo=this.slider.querySelectorAll(".thumbnail__halo--basic"),this.singleHalo=this.slider.querySelectorAll(".thumbnail__halo--single"),this.basicHalo.length){const e=this.slider.querySelector(".thumbnail--basic").offsetWidth;this.basicHalo.forEach((t=>{t.style.flex=`0 0 ${e+1}px`,t.style.maxWidth=`${e+1}px`}))}if(this.singleHalo.length){const e=this.slider.querySelector(".thumbnail--single").offsetWidth;this.singleHalo.forEach((t=>{t.style.flex=`0 0 ${e+1}px`,t.style.maxWidth=e-1+"px"}))}this.setHaloOffset(),this.scrollThumbnails()}updateLoopClones(e){const t=this.slider.querySelector(".thumbnail-container__thumbnails");if(!t)return{leading:0,trailing:0};if(t.querySelectorAll(".thumbnail--loop-clone").forEach((e=>e.remove())),!this.scrollbarShown||!this.thumbnails?.length)return{leading:0,trailing:0};const i=[...this.thumbnails],s=Math.ceil(e/2),n=(e,t)=>{const i=e.cloneNode(!0);return i.classList.add("thumbnail--loop-clone"),i.classList.remove("thumbnail--active"),i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex","-1"),this.slideTo&&this.eventListenerManager.add(i,"click",(()=>{this.slideTo(t,!0)})),i};let r=0;for(let a=i.length-1;r<s;a=(a-1+i.length)%i.length){const e=n(i[a],a);t.prepend(e),r+=e.offsetWidth}let o=0;for(let a=0;o<s;a=(a+1)%i.length){const e=n(i[a],a);t.append(e),o+=e.offsetWidth}return{leading:r,trailing:o}}getOffsetRight(e){const t=e.offsetLeft,i=e.offsetWidth;return(e.offsetParent?.offsetWidth||0)-(t+i)}setMarginRight(e){const t=Array.from(this.thumbnails).find((e=>e.hasAttribute("data-halo-stop")));if(!t)return;const i=Array.from(this.thumbnails).indexOf(t),s=this.getOffsetRight(this.thumbnails[i])-1;e.style.marginRight=`${s}px`}setMarginLeft(e,t){e.style.marginLeft=`${t}px`}setHaloOffset(){for(let e=0;e<this.halos.length;e++){const t=this.halos[e];if(!t)continue;const i=t.classList.contains("thumbnail__halo--basic"),s=t.classList.contains("thumbnail__halo--single"),n=this.basicHalo.length>0,r=this.singleHalo.length>0;i||s||n||r?n&&r||!i&&!s?this.setMarginLeft(t,0):n||r?this.setMarginLeft(t,this.thumbnails[e].offsetLeft):i?this.setMarginLeft(t,this.thumbnails[e].offsetLeft-this.basicHalo[0].offsetWidth):s&&this.setMarginLeft(t,this.thumbnails[e].offsetLeft-this.singleHalo[0].offsetWidth):this.setMarginLeft(t,this.thumbnails[e].offsetLeft),i||s||this.setMarginRight(t)}}}const jc=Object.freeze(Object.defineProperty({__proto__:null,THUMBNAILCONTAINER_SELECTOR:Bc,ThumbnailContainer:ThumbnailContainer,default:class ThumbnailContainerInitializer{constructor(e=document){this.initializeThumbnails(e),addEventListener("async:loaded",(e=>{this.initializeThumbnails(e.target)}))}initializeThumbnails(e){e.querySelectorAll(Bc).forEach((e=>{e.component||(e.component=new ThumbnailContainer(e))}))}}},Symbol.toStringTag,{value:"Module"}));class Tile{tileMiddleSelector;tileTopSelector;constructor(e){this.tileMiddleSelector=e.querySelector(".tile__middle"),this.tileTopSelector=e.querySelector(".tile__top p"),this.TileSetMiddleMarginTop(),addEventListener("resize-proxy:width",(()=>this.TileSetMiddleMarginTop()))}TileSetMiddleMarginTop(){if(!this.tileMiddleSelector)return;let e=0;["lg","xl","xxl"].includes(Z())&&this.tileTopSelector&&(e=parseInt(window.getComputedStyle(this.tileTopSelector).marginBottom,10)+this.tileTopSelector.offsetHeight),this.tileMiddleSelector.style.marginTop=`-${e}px`}}const Fc=Object.freeze(Object.defineProperty({__proto__:null,Tile:Tile,default:class TileInitializer{constructor(e=document){e.querySelectorAll(".tile--is-double").forEach((e=>new Tile(e)))}}},Symbol.toStringTag,{value:"Module"})),$c=".anchor-pills",Nc="sticky-top-wrapper--stuck";class AnchorPills{el;stickyWrapper;nav;
6navHeight;sectionObserver;mutationObserver;pills;sections;constructor(e){this.el=e,this.stickyWrapper=this.el.closest(".sticky-top-wrapper"),this.nav=document.querySelector(".navigation"),this.pills=Array.from(this.el.querySelectorAll(".anchor-pills__pill")),this.sections=[],0!==this.pills.length&&(this.navHeight=this.nav?.getBoundingClientRect().height||0,this.addResizeHandlers(),this.initializeSectionObserver(),this.addPillClickHandlers(),this.observeStickyState())}remountObserverOnResize(){const e=this.nav?.getBoundingClientRect().height||0;e!==this.navHeight&&(this.navHeight=e,this.sectionObserver&&this.sectionObserver.disconnect(),this.initializeSectionObserver())}addResizeHandlers(){addEventListener("resize-proxy:width",(()=>{this.remountObserverOnResize()}))}observeStickyState(){this.stickyWrapper&&(this.mutationObserver=new MutationObserver((e=>{e.forEach((e=>{if("attributes"===e.type&&"class"===e.attributeName){this.stickyWrapper.classList.contains(Nc)?this.activateFirstPillIfNeeded():this.pills.forEach((e=>{e.classList.remove("active")}))}}))})),this.mutationObserver.observe(this.stickyWrapper,{attributes:!0,attributeFilter:["class"]}))}activateFirstPillIfNeeded(){this.pills.some((e=>e.classList.contains("active")))||this.pills[0].classList.add("active")}initializeSectionObserver(){if(this.pills.forEach((e=>{const t=this.getSectionIdFromPill(e);if(t){const i=document.querySelector(`[id="${t}"]`);i&&this.sections.push({id:t,element:i,pill:e})}})),0===this.sections.length)return;const e={root:null,rootMargin:`-${this.navHeight+150}px 0px -300px 0px`,threshold:[0,.1,.5,1]};let t=null;this.sectionObserver=new IntersectionObserver((e=>{const i=e.filter((e=>e.isIntersecting)).sort(((e,t)=>t.intersectionRatio-e.intersectionRatio));if(i.length>0){const e=i[0].target.id;t!==e&&(t=e,this.updateActivePill(e))}}),e),this.sections.forEach((({element:e})=>{this.sectionObserver.observe(e)}))}getSectionIdFromPill(e){return e.getAttribute("data-pill-id")}updateActivePill(e){if(this.pills.forEach((e=>{e.classList.remove("active")})),this.stickyWrapper?.classList.contains(Nc)){const t=this.sections.find((t=>t.id===e));t&&t.pill.classList.add("active")}}scrollToSection(e){const t=this.getSectionIdFromPill(e);if(!t)return;const i=document.querySelector(`[id="${t}"]`);if(!i)return;let s=0;this.nav&&(s+=this.nav.getBoundingClientRect().height),this.stickyWrapper&&(s+=this.stickyWrapper.getBoundingClientRect().height);const n=i.getBoundingClientRect().top,r=window.scrollY+n-s;window.scrollTo({top:r,behavior:"smooth"})}addPillClickHandlers(){this.pills.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault(),this.scrollToSection(e)})),e.addEventListener("keyup",(t=>{"Enter"===t.key&&(t.preventDefault(),this.scrollToSection(e))}))}))}}const Vc=Object.freeze(Object.defineProperty({__proto__:null,ANCHOR_PILLS_SELECTOR:$c,AnchorPills:AnchorPills,default:class AnchorPillsInitializer{constructor(e=document){this.initializeAnchorPills(e),addEventListener("async:loaded",(e=>{this.initializeAnchorPills(e.target)}))}initializeAnchorPills(e){e.querySelectorAll($c).forEach((e=>{if(!i(e))return new AnchorPills(e)}))}}},Symbol.toStringTag,{value:"Module"}));class BraceletConfigurator{constructor(e=document){const t=e.querySelector(".bracelet-configurator-slider").braceletConfiguratorSlider,i=e.querySelector(".bracelet-configurator-preview").braceletConfiguratorPreview;i.updateImage(t.getCurrentSlideImagePath()),t.onSlideChange((e=>i.updateImage(e)))}}const Rc=Object.freeze(Object.defineProperty({__proto__:null,BraceletConfigurator:BraceletConfigurator,default:class BraceletConfiguratorInitializer{constructor(e=document){e.querySelectorAll(".bracelet-configurator").forEach((e=>{e.braceletConfigurator=new BraceletConfigurator(e)}))}}},Symbol.toStringTag,{value:"Module"}));class CardAccordionDeck{element;collapseToggles;constructor(e){this.element=e,this.collapseToggles=this.element.querySelectorAll('[data-bs-toggle="collapse"]'),this.init(),window.addEventListener("resize-proxy:width",(()=>{this.init()}))}init(){["xs","sm","ms","md"].indexOf(Z())>=0?this.enableAccordion():this.disableAccordion(),this.element.classList.remove("d-lg-none")}
6enableAccordion(){this.collapseToggles.forEach((e=>{e.dataset.bsToggle="collapse"}))}disableAccordion(){this.collapseToggles.forEach((e=>{e.dataset.bsToggle=""}))}}const Wc=Object.freeze(Object.defineProperty({__proto__:null,default:class CardAccordionDecks{constructor(e=document){e.querySelectorAll("[data-card-accordion-deck]").forEach((e=>new CardAccordionDeck(e)))}}},Symbol.toStringTag,{value:"Module"}));class CardGridSlider{container;grid;cards;loop;isMobile;swiper;prevArrow;nextArrow;thumbnailContainer;constructor(e){e.cardGridSlider||(e.cardGridSlider=this,this.container=e,this.grid=this.container.querySelector(".card-grid"),this.cards=this.container.querySelectorAll("div:has(> .card)"),this.loop="false"!==this.container.dataset.cardGridLoop,this.isMobile=ce("md"),this.thumbnailContainer=this.container.parentElement.querySelector(".thumbnail-container"),this.isMobile&&this.initSlider(),addEventListener("resize-proxy:width",(()=>this.onResize())))}initSlider(){this.grid.classList.remove("row"),this.grid.classList.add("swiper-wrapper"),this.cards.forEach((e=>e.classList.add("swiper-slide"))),this.createArrows(),this.swiper=new Swiper(this.container,{modules:[za],loop:this.loop,centeredSlides:this.loop,slidesPerView:this.loop?"auto":1,spaceBetween:16,navigation:{prevEl:this.prevArrow,nextEl:this.nextArrow,disabledClass:"d-none"}}),this.initThumbnails()}initThumbnails(){this.thumbnailContainer&&(this.thumbnailContainer.classList.toggle("thumbnail-container--loop-preview",this.loop),this.thumbnailContainer.style.display="block",this.thumbnailContainer.dispatchEvent(new CustomEvent(m,{detail:this.swiper})))}destroySlider(){this.swiper.disable(),this.swiper.destroy(),this.grid.classList.add("row"),this.grid.classList.remove("swiper-wrapper"),this.cards.forEach((e=>e.classList.remove("swiper-slide"))),this.thumbnailContainer&&(this.thumbnailContainer.style.display="none")}createArrows(){if(this.prevArrow&&this.nextArrow)return;const e=document.createElement("div");e.classList.add("swiper-button-prev"),this.prevArrow=e;const t=document.createElement("div");t.classList.add("swiper-button-next"),this.nextArrow=t,this.container.parentElement.prepend(this.prevArrow),this.container.parentElement.append(this.nextArrow)}onResize(){const e=ce("md");e!==this.isMobile&&(this.isMobile=e,this.isMobile?this.initSlider():this.destroySlider())}}const Gc=Object.freeze(Object.defineProperty({__proto__:null,CardGridSlider:CardGridSlider,default:class CardGridSliderInitializer{constructor(e=document){this.initializeSliders(e)}initializeSliders(e=document){e.querySelectorAll("[data-card-grid-slider]").forEach((e=>new CardGridSlider(e)))}}},Symbol.toStringTag,{value:"Module"}));class CardGrid{domElement;threshold;triggerClass;constructor(e){this.domElement=e,this.threshold=.5,this.triggerClass="animated";const t=this.domElement.querySelector(".d-flex");this.domElement.classList.remove(this.triggerClass),new IntersectionObserver(this.animationCallback.bind(this),{threshold:this.threshold}).observe(t)}animationCallback(e,t){e.forEach((e=>{const i=e.target;e.isIntersecting&&e.intersectionRatio>=this.threshold&&(this.domElement.classList.add(this.triggerClass),t.unobserve(i))}))}}const Uc=Object.freeze(Object.defineProperty({__proto__:null,CardGrid:CardGrid,default:class CardGridInitializer{handler;constructor(e=document){this.initializeAnimation(e),this.handler=e=>{this.initializeAnimation(e.target)},addEventListener("async:loaded",this.handler)}initializeAnimation(e=document){e.querySelectorAll("[data-card-animation]").forEach((e=>new CardGrid(e)))}}},Symbol.toStringTag,{value:"Module"}));class ProductCardGrid{constructor(e){e.querySelectorAll(".card--product-buy-price").length&&e.children.length!==e.querySelectorAll(".card--product-no-configurator").length&&this.adjustCards(e)}adjustCards(e){const t=[...e.children],i=Math.round(e.clientWidth/t[0].clientWidth);if(i)for(;t.length;){const e=t.splice(0,i),s=e.some((e=>e.querySelector(".color-chooser")||e.querySelector(".variant-chooser")));e.forEach((e=>{e.querySelector(".card--product-buy-price").classList.toggle("card--product-no-configurator",!s)}))}}}const Yc=Object.freeze(Object.defineProperty({__proto__:null,ProductCardGrid:ProductCardGrid,default:class ProductCardGridInitializer{constructor(e=document){this.initializeProductCardGrid(e),addEventListener("async:loaded",(e=>this.initializeProductCardGrid(e.target))),addEventListener("resize-proxy:width",(()=>this.initializeProductCardGrid(e)))}initializeProductCardGrid(e=document){e.querySelectorAll(".card-grid").forEach((e=>{new ProductCardGrid(e)}))}}},Symbol.toStringTag,{value:"Module"})),Kc={slidesToShowAndScroll:3,sliderSetting:{infinite:!1}};class ContentSlider{contentSlider;contentSwiper;constructor(e){this.contentSlider=e,this.initContentSlider()}getSettings(){const e=this.contentSlider.dataset?.contentAttr;return e?{...Kc,...JSON.parse(e)}:Kc}
6initContentSlider(){if(this.contentSwiper)return;const e=this.getSettings(),t=parseFloat(e.slidesToShowAndScroll),i=e.sliderSetting,s=this.createArrow("prev"),n=this.createArrow("next");this.contentSlider.parentElement.prepend(s),this.contentSlider.parentElement.append(n),this.contentSwiper=new Swiper(this.contentSlider,{modules:[za],createElements:!0,slidesPerView:1,slidesPerGroup:1,watchOverflow:!0,loop:i.infinite,touchStartPreventDefault:!1,navigation:{prevEl:s,nextEl:n},breakpoints:{[ne.from]:{slidesPerView:0===t?1:t-1,slidesPerGroup:0===t?1:t-1},[re.from]:{slidesPerView:t,slidesPerGroup:t}}}),new PopoverInitializer(this.contentSlider),this.contentSwiper.on("breakpoint",(()=>this.onBreakpointChange())),addEventListener(u,(()=>this.onUpdateComponents()))}createArrow(e){const t=document.createElement("div");return t.classList.add(`swiper-button-${e}`),t}onUpdateComponents(){this.contentSwiper.update()}onBreakpointChange(){new PopoverInitializer(this.contentSlider)}}const Xc=Object.freeze(Object.defineProperty({__proto__:null,ContentSlider:ContentSlider,default:class ContentSliderInitializer{constructor(e=document){this.initializeSliders(e),addEventListener("async:loaded",(e=>{this.initializeSliders(e.target)}))}initializeSliders(e=document){e.querySelectorAll("[data-content-slider]:not(.swiper-initialized)").forEach((e=>new ContentSlider(e)))}}},Symbol.toStringTag,{value:"Module"}));class FunnelTeaserContainer{row;constructor(e){this.row=e,this.originalOrder=Array.from(e.children),le((e=>{["xs","sm"].includes(e)||this.onBreakpointChange(e)})),window.addEventListener("resize-proxy:width",(()=>{this.onBreakpointChange(Z())}))}onBreakpointChange(e){const t=["xs","sm"].includes(e);this.applySort(!t)}applySort(e){if(!e)return void this.row.append(...this.originalOrder);const t=this.originalOrder.filter((e=>e.classList.contains("funnel-teaser--small")));this.row.append(...t)}}const Qc=Object.freeze(Object.defineProperty({__proto__:null,FunnelTeaserContainer:FunnelTeaserContainer,default:class FunnelTeaserContainerInitializer{constructor(e=document){this.initializeContainers(e)}initializeContainers(e){e.querySelectorAll(".funnel-teaser-container > .row").forEach((e=>new FunnelTeaserContainer(e)))}}},Symbol.toStringTag,{value:"Module"}));class HardwareChecker{selectBrand;selectModel;checkButton;constructor(e){this.init(e)}init(e){this.selectBrand=e.querySelector("[data-select-brand]"),this.selectModel=e.querySelector("[data-select-model]"),this.checkButton=e.querySelector(".btn");const t=e.dataset.url,i=e.dataset.phones&&JSON.parse(e.dataset.phones);this.selectModel.parentElement.classList.add("disabled"),this.selectBrand.addEventListener("change",(()=>{const e=this.selectBrand.options[this.selectBrand.selectedIndex].value;this.checkButton.classList.add("disabled"),i?this.handleResponse(i[e]):fetch(t+(t.includes("?")?"&":"?")+`manufacturer=${e}`,{method:"get"}).then((e=>e.json())).then((e=>this.handleResponse(e)))})),this.selectModel.addEventListener("change",(()=>{this.checkButton.classList.remove("disabled")}))}handleResponse(e){const t=this.selectModel.querySelector("[disabled]"),i=this.selectModel.parentNode.querySelector(".select-container__selectbox > span"),s=this.selectModel.parentNode.querySelector(".select-container__ul"),n=this.selectModel.closest("[data-select]").ref;this.selectModel.parentElement.classList.remove("disabled"),i.innerHTML=t.text,this.selectModel.innerHTML="",s.querySelectorAll("li:not(.select-container__filter)").forEach((e=>{e.remove()})),this.selectModel.appendChild(t),this.selectModel.selectedIndex=0,e.forEach((e=>{this.selectModel.insertAdjacentHTML("beforeend",`<option value="${e.id}">${e.name}</option>`),s.insertAdjacentHTML("beforeend",`<li role="option" data-value="${e.id}" title="${e.name}" tabindex="-1">${e.name}</li>`)})),n&&n.bindOptions()}}const Jc=Object.freeze(Object.defineProperty({__proto__:null,HardwareChecker:HardwareChecker,default:class HardwareCheckerInitializer{constructor(e=document){e.querySelectorAll(".hwchecker").map((e=>new HardwareChecker(e)))}}},Symbol.toStringTag,{value:"Module"}));class HwSlider{container;isMobile;swiper;prevArrow;nextArrow;showMoreButtons;constructor(e){e.hwSlider||(e.hwSlider=this,this.container=e,this.isMobile=ce("lg"),this.showMoreButtons=this.container.querySelectorAll("[data-show-more-button]"),this.initShowMoreButtons(),this.isMobile&&this.initSlider(),addEventListener("resize-proxy:width",(()=>this.onResize())))}initSlider(){this.createArrows(),this.swiper=new Swiper(this.container,{modules:[za,Ba],createElements:!0,spaceBetween:12,autoHeight:!0,pagination:{enabled:!0,clickable:!0},navigation:{prevEl:this.prevArrow,nextEl:this.nextArrow,disabledClass:"d-none"},on:{afterInit:e=>{this.container.parentElement.querySelector(Bc).dispatchEvent(new CustomEvent(m,{detail:e}))}}})}destroySlider(){this.swiper.disable(),this.swiper.destroy()}createArrows(){if(this.prevArrow&&this.nextArrow)return;const e=document.createElement("div");e.classList.add("swiper-button-prev"),this.prevArrow=e;const t=document.createElement("div");t.classList.add("swiper-button-next"),this.nextArrow=t,this.container.parentElement.prepe
6nd(this.prevArrow),this.container.parentElement.append(this.nextArrow)}onResize(){const e=ce("lg");e!==this.isMobile&&(this.isMobile=e,this.isMobile?this.initSlider():this.destroySlider())}initShowMoreButtons(){this.showMoreButtons.forEach((e=>{e.addEventListener("click",(()=>{const t=[...e.parentElement.querySelectorAll(".col:has(.hardware-box)")].filter((e=>"none"===getComputedStyle(e).display));t.length<4&&(e.disabled=!0),[...t].slice(0,3).forEach((e=>{e.classList.add("d-block")})),this.swiper.updateAutoHeight()}))}))}}const Zc=Object.freeze(Object.defineProperty({__proto__:null,HwSlider:HwSlider,default:class HwSliderInitializer extends XLABInitializer{constructor(){super("[data-hardware-slider]",HwSlider),addEventListener("async:loaded",(()=>super.initialize()))}}},Symbol.toStringTag,{value:"Module"})),ed=".hw-comparison__devices-wrapper",td=".hw-comparison__device",id=".hw-comparison__accordion";class HwComparison{hwComparison;constructor(e){this.hwComparison=e,this.initHwComparison()}initHwComparison(){addEventListener("resize-proxy:width",(()=>
6{this.hwComparison.querySelectorAll(id+", "+ed).forEach((e=>{e.dispatchEvent(new Event("scroll"))}))})),this.hwComparison.querySelectorAll(id+", "+ed).forEach((e=>{e.addEventListener("scroll",(e=>{this.scrollDevicesAndTable(e.target)}))})),this.hwComparison.querySelectorAll("select").forEach((e=>{e.addEventListener("change",(e=>{const t=e.target.closest(td);this.toggleSelectInput(t)}))})),this.toggleSelectInput(),setTimeout((()=>{dispatchEvent(new Event("resize-proxy:width",{bubbles:!0}))}),0)}scrollDevicesAndTable(e){const t=e.scrollLeft;let i=parseInt(window.getComputedStyle(this.hwComparison.querySelector(".hw-comparison__accordion-head")).padding);i*=2;const s=this.hwComparison.querySelector(id),n=getComputedStyle(s),r=s.clientWidth-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-i;if(e.classList.contains("hw-comparison__devices-wrapper"))s.scrollLeft=t;else{if(!e.classList.contains("hw-comparison__accordion"))return!1;this.hwComparison.querySelector(ed).scrollLeft=t}this.hwComparison.querySelectorAll(id+"-title span").forEach((e=>{e.style.left=`${t}px`})),this.hwComparison.querySelectorAll(".hw-comparison__table-row-title").forEach((e=>{e.style.left=`${t}px`})),this.hwComparison.querySelectorAll(id+"-arrow").forEach((e=>{e.style.left=`${r}px`}))}toggleSelectInput(e){(e=e?[e]:this.hwComparison.querySelectorAll(td)).forEach((e=>{const t=e.querySelector(".select-first"),i=e.querySelector(".select-second");"none"===t.value?this.hideSelect(i):this.showSelect(i)}))}hideSelect(e){e.setAttribute("disabled","true"),e.selectedIndex=0,e.nextElementSibling.querySelector("span").textContent="Modell"}showSelect(e){e.removeAttribute("disabled")}}const sd=Object.freeze(Object.defineProperty({__proto__:null,default:class HwComparisonInitializer{constructor(e=document){this.mapHwComparison(e),addEventListener("async:loaded",(e=>{this.mapHwComparison(e.target)}))}mapHwComparison(e){e.querySelectorAll(".hw-comparison").forEach((e=>new HwComparison(e)))}}},Symbol.toStringTag,{value:"Module"})),nd={box:".content-box--requires-selection",radio:"input.toggle-label__radio",radioExclude:".color-chooser",errorTarget:".benefits__item-container"},rd={error:"benefits__item-container--invalid-selection",errorText:"benefits__validation-message"};class changePriceBasedOnRadio{constructor(e){this.hwdConfigurator=e,this.hwdConfiguratorWatchSelected="true",this.hwdConfiguratorBudSelected="true",this.hwdMonthlyPrice=this.hwdConfigurator.querySelector(".hwd-monthly-price"),this.imageGallery=this.hwdConfigurator.querySelector(".image-gallery"),this.nav=document.querySelector(".navigation"),this.sectionHeadline=this.hwdConfigurator.querySelector(".section-headline"),this.backgroundOverlay=this.imageGallery.querySelector(".image-gallary__background-overlay"),this.mainImageContainer=this.imageGallery.querySelector(".image-gallery__main-image"),this.priceClone=this.hwdConfigurator.querySelector(".hwd-monthly-price.hwd-monthly-price--stuck.text-center.d-none"),this.configurations=this.hwdConfigurator.querySelector(".hwd-configurator__configurations"),this.hwdPhone=this.hwdConfigurator.querySelector(".hwd-configurator-phone"),this.scrollHandlerActive=!1,this.fullWidthScrollHandlerActive=!1,this.priceCloneCreated=!1,this.priceWasVisible=!1,this.isAnimating=!1,this.pendingState=null,this.animationTimeout=null,this.currentAnimationHandler=null,this.currentBreakpoint=Z(),this.hasSelectedArticleRadio=e=>this.getArticleRadios(e).some((e=>e.checked)),this.initPriceVariantToggles(),this.initRequiredSelectionValidation(),this.setUrlParamForStandalonePrice(),addEventListener("resize-proxy:width",(()=>{this.onBreakpointChange(Z())})),this.onBreakpointChange(Z())}getNavHeight(){return this.nav?.getBoundingClientRect().height||0}updateSectionHeadlineMargin(e){this.sectionHeadline&&(this.sectionHeadline.style.marginTop=null==e?"":e+"px")}onBreakpointChange(e){this.currentBreakpoint=e;const t=this.hwdConfigurator.classList.contains("hwd-configurator--full-width");["md","lg","xl","xxl"].includes(e)?t?this.showPriceCloneStuck():(this.cleanupStuckState(),this.hwdPhonetuck()):(this.registerScrollHandler(),this.removeHwdPhonestuck())}hwdPhonetuck(){if(this.hwdPhone){this.hwdPhone.classList.add("hwd-configurator--sticky");const e=this.sectionHeadline?.clientHeight||0;if(this.configurations.style.marginTop=e+12+"px",this.nav){const e=this.getNavHeight();this.hwdPhone.style.top=e+"px"}}}removeHwdPhonestuck(){this.hwdPhone&&(this.hwdPhone.classList.remove("hwd-configurator--sticky"),this.configurations.style.marginTop="unset",this.hwdPhone.style.top="")}showPriceCloneStuck(){if(!this.hwdConfigurator.classList.contains("hwd-configurator--full-width")||!this.priceClone)return;this.priceClone.classList.add("hwd-monthly-price--stuck");const e=this.getNavHeight();this.priceClone.style.setProperty("--top-position",`${e}px`),this.priceClone.style.top=`${e}px`,this.priceCloneCreated||(this.copyButtonToPrice(),this.priceCloneCreated=!0),this.registerScrollHandlerForFullWidth()}showPriceClone(){if(this.priceClone){this.priceClone.classList.add("hwd-monthly-price--stuck"),this.priceClone.classList.remove("d-none");const e=this.priceClone.offsetHeight;this.updateSectionHeadlineMargin(e)}}registerScrollHandler(e=!1){if(e?this.fullWidthScrollHandlerActive:this.scrollHandlerActive)return;e?this.fullWidthScrollHandlerActive=!0:this.scrollHandlerActive=!0;const t=this.hwdMonthlyPrice;if(!t)return;const i=this.getNavHeight();let s=null,n=!1;const r=()=>{null===s&&(s=t.getBoundingClientRect().top+window.scrollY-i);const r=window.scrollY>=s;r&&!n?(n=!0,e?this.showPriceClone():this.requestStateChange("stuck")):!r&&n&&(n=!1,e||this.requestStateChange("unstuck"))};this[e?"onFullWidthScrollHandler":"onScrollHandler"]=r,window.addEventListener("scroll",r,{passive:!0})}registerScrollHandlerForFullWidth(){this.registerScrollHandler(!0)}requestStateChange(e){this.isAnimating?this.pendingState=e:(this.cleanupAnimationListeners(),"stuck"===e?this.addStuckState():this.removeStuckState())}cleanupAnimationListeners(){this.currentAnimationHandler&&(this.imageGallery.removeEventListener("animationend",this.currentAnimationHandler),this.currentAnimationHandler=null),this.animationTimeout&&(clearTimeout(this.animationTimeout),this.animationTimeout=null)}setupAnimationEndHandler(){this.cleanupAnimationListeners(),this.currentAnimationHandler=()=>{this.onAnimationComplete()},this.imageGallery.addEventListener("animationend",this.currentAnimationHandler,{once:!0}),this.animationTimeout=setTimeout((()=>{this.onAnimationComplete()}),600)}onAnimationComplete(){if(this.cleanupAnimationListeners(),this.isAnimating=!1,null!==this.pendingState){const e=this.pendingState;this.pendingState=null,this.requestStateChange(e)}}addStuckState(){this.isAnimating=!0,this.imageGallery.classList.remove("slide-out"),this.backgroundOverlay&&this.backgroundOverlay.classList.remove("slide-out");const e=this.imageGallery.offsetHeight,t=this.getNavHeight();if(this.priceCloneCreated||(this.copyButtonToPrice(),this.priceCloneCreated=!0),this.backgroundOverlay&&(this.backgroundOverlay.style.height=140+t+"px",this.backgroundOverlay.style.zIndex="1",this.backgroundOverlay.classList.add("slide-in")),this.updateSectionHeadlineMargin(90),this.imageGallery.classList.remove("slide-out"),this.priceClone.classList.remove("d-none"),this.priceClone.classList.remove("slide-out"),this.priceClone.classList.remove("slide-in"),this.priceClone.classList.remove("slide-in-visible"),this.imageGallery.classList.add("image-gallery--stuck"),this.imageGallery.classList.add("slide-in"),this.priceClone){this.priceClone.classList.add("hwd-monthly-price--stuck"),this.imageGallery.style.setProperty("--gallery-top",`${t}px`),this.priceClone.style.setProperty("--gallery-top",`${t}px`);const i=t+140;if(this.priceClone.style.setProperty("--price-top",`${i}px`),this.priceWasVisible?this.priceClone.classList.add("slide-in-visible"):(this.priceClone.classList.add("slide-in"),this.priceWasVisible=!0),!this.imageGallery.parentNode.querySelector('[style*="visibility: hidden"]')){const t=document.createElement("div");t.style.height=e+"px",t.style.visibility="hidden",this.imageGallery.parentNode.insertBefore(t,this.imageGallery.nextSibling)}}this.setupAnimationEndHandler()}removeStuckState(){this.isAnimating=!0,this.imageGallery.classList.remove("slide-in"),this.backgroundOverlay&&this.backgroundOverlay.classList.remove("slide-in");const e=this.getNavHeight();if(this.mainImageContainer&&!this.imageGallery.parentNode.querySelector(".main-image--stuck-clone")&&this.imageGallery.classList.contains("image-gallery--stuck")){const t=this.mainImageContainer.cloneNode(!0);t.classList.add("image-gallery-copy","main-image--stuck-clone"),t.style.setProperty("--gallery-top",`${e}px`),this.imageGallery.nextSibling?this.imageGallery.parentNode.insertBefore(t,this.imageGallery.nextSibling):this.imageGallery.parentNode.appendChild(t),t.addEventListener("animationend",(()=>{t.remove()}),{once:!0})}this.priceClone&&(this.priceClone.classList.remove("slide-in"),this.priceClone.classList.add("slide-out")),this.imageGallery.classList.add("slide-out"),this.imageGallery.classList.remove("image-gallery--stuck");const t=this.imageGallery.parentNode?.querySelector('[style*="visibility: hidden"]');t&&t.remove(),this.backgroundOverlay&&(this.backgroundOverlay.style.zIndex="11",this.backgroundOverlay.style.transition="height 0.5s ease-out",this.backgroundOverlay.style.height=e+"px",this.backgroundOverlay.classList.add("slide-out")),this.imageGallery.style.removeProperty("--gallery-top"),this.setupAnimationEndHandler()}copyButtonToPrice(){if(!this.priceClone)return;const e=this.priceClone.querySelector(".hwd-monthly-price__content");
6if(!e)return;const t=this.hwdConfigurator.querySelector("add-to-cart-button");if(t&&!e.querySelector("add-to-cart-button")){const i=t.cloneNode(!0);e.appendChild(i)}}cleanupStuckState(){this.onScrollHandler&&(window.removeEventListener("scroll",this.onScrollHandler,{passive:!0}),this.onScrollHandler=null,this.scrollHandlerActive=!1),this.onFullWidthScrollHandler&&(window.removeEventListener("scroll",this.onFullWidthScrollHandler,{passive:!0}),this.onFullWidthScrollHandler=null,this.fullWidthScrollHandlerActive=!1),this.priceClone&&(this.priceClone.classList.add("d-none"),this.priceCloneCreated=!1),this.updateSectionHeadlineMargin(null),this.imageGallery&&this.imageGallery.classList.remove("image-gallery--stuck"),this.backgroundOverlay.style.height="0px"}updateVariantVariables(e,t){"watchBuds-watch-radio"===e?this.hwdConfiguratorWatchSelected=t:"watchBuds-buds-radio"===e&&(this.hwdConfiguratorBudSelected=t)}showHideSideImageHeadline(e){const t="true"===e,i=document.querySelector("[data-hwd-buds-visibility-toggle-true]"),s=document.querySelector("[data-hwd-buds-visibility-toggle-false]");i&&i.classList.toggle("d-none",!t),s&&s.classList.toggle("d-none",t)}changePriceBasedOnVariant(e){const t=e.name||"",i=e.getAttribute("data-hwd-price-variant-toggle")||"false";"radio-incentive"===t&&this.showHideSideImageHeadline(i),this.updateVariantVariables(t,i);const s=new URLSearchParams(window.location.search),n="true"===e.dataset.hwdPriceVariantToggle?"false":"true";s.set("standalonePrice",n),history.replaceState({},"",`${window.location.pathname}?${s.toString()}`)}initPriceVariantToggles(){this.hwdConfigurator.querySelectorAll("[data-hwd-price-variant-toggle]").forEach((e=>{e.addEventListener("change",(()=>{e.checked&&this.changePriceBasedOnVariant(e)}))}))}setUrlParamForStandalonePrice(){const e=new URLSearchParams(window.location.search);if(!e.has("standalonePrice"))return;const t="true"===e.get("standalonePrice")?"false":"true",i=this.hwdConfigurator.querySelector(`[data-hwd-price-variant-toggle="${t}"]`);i&&(i.checked=!0,this.changePriceBasedOnVariant(i))}initRequiredSelectionValidation(){const e=this.hwdConfigurator.querySelectorAll(nd.box);e.length&&(e.forEach((e=>{this.getArticleRadios(e).forEach((t=>{t.addEventListener("change",(()=>{this.hasSelectedArticleRadio(e)&&this.clearSelectionError(e)}))}))})),this.hwdConfigurator.addEventListener("click",(t=>{if(!t.target.closest("[data-validate-accessory-selection], add-to-cart-button"))return;const i=Array.from(e).find((e=>this.validateSelectionBox(e)));if(i){if(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!["md","lg","xl","xxl"].includes(this.currentBreakpoint)){const e=this.getNavHeight(),t=240,s=i.getBoundingClientRect().top+window.scrollY-e-t;window.scrollTo({top:s,behavior:"smooth"})}return!1}}),!0))}getArticleRadios(e){return Array.from(e.querySelectorAll(nd.radio)).filter((e=>!e.closest(nd.radioExclude)))}validateSelectionBox(e){if(this.hasSelectedArticleRadio(e))return this.clearSelectionError(e),!1;if(e.querySelectorAll(nd.errorTarget).forEach((e=>{e.classList.add(rd.error)})),!e.nextElementSibling?.classList.contains(rd.errorText)){const t=document.createElement("p");t.className=rd.errorText,t.textContent="Bitte wählen Sie Ihren 1&1 Vorteil.",e.insertAdjacentElement("afterend",t)}return!0}clearSelectionError(e){e.querySelectorAll(nd.errorTarget).forEach((e=>{e.classList.remove(rd.error)}));const t=e.nextElementSibling;t?.classList.contains(rd.errorText)&&t.remove()}}const od=Object.freeze(Object.defineProperty({__proto__:null,changePriceBasedOnRadio:changePriceBasedOnRadio,default:class HwdConfiguratorInitializer{constructor(e=document){e.querySelectorAll(".hwd-configurator").forEach((e=>e.component=new changePriceBasedOnRadio(e)))}}},Symbol.toStringTag,{value:"Module"}));class ImageTextAnimation{threshold;triggerClass;constructor(e){const t=this.getPaddingTopValue(e);this.threshold=.5,this.triggerClass="animated",e.classList.remove(this.triggerClass);const i={root:null,rootMargin:"0px 0px -"+t,threshold:this.threshold};new IntersectionObserver(this.animationCallback.bind(this),i).observe(e)}getPaddingTopValue(e){const t=e.querySelector(".row");return window.getComputedStyle(t).paddingTop}animationCallback(e,t){e.forEach((e=>{const i=e.target;e.isIntersecting&&e.intersectionRatio>=this.threshold&&(i.classList.add(this.triggerClass),t.unobserve(i))}))}}const ad=Object.freeze(Object.defineProperty({__proto__:null,ImageTextAnimation:ImageTextAnimation,default:class ImageTextAnimationInitializer{constructor(e=document){this.initializeComponent(e),addEventListener("async:loaded",(()=>{this.initializeComponent(e)}))}initializeComponent(e){e.querySelectorAll("[data-image-text-animation-container]").forEach((e=>new ImageTextAnimation(e)))}}},Symbol.toStringTag,{value:"Module"}));class MarketingBoxLanguageToggle{constructor(e){const t=e.querySelectorAll("[data-language-toggle]"),i=e.querySelectorAll("[data-language]");t.forEach((e=>{e.addEventListener("click",(()=>{const t=e.getAttribute("data-language-toggle");
6i.forEach((e=>{e.getAttribute("data-language")===t?e.classList.remove("d-none"):e.classList.add("d-none")}))}))}))}}const ld=Object.freeze(Object.defineProperty({__proto__:null,MarketingBoxLanguageToggle:MarketingBoxLanguageToggle,default:class MarketingBoxLanguageToggleInitializer{constructor(e=document){e.querySelectorAll(".marketing-box:has([data-language-toggle])").forEach((e=>new MarketingBoxLanguageToggle(e)))}}},Symbol.toStringTag,{value:"Module"}));class MarketingBox{element;textContainer;bgImageContainer;constructor(e){this.element=e,this.textContainer=this.element.querySelector(".marketing-box__text"),this.bgImageContainer=this.element.querySelector(".marketing-box__background"),this.calcHeight(),this.refreshDesoBackgroundImage(),setTimeout((()=>{this.calcHeight()}),300),addEventListener("resize-proxy:width",(()=>{this.calcHeight(),this.refreshDesoBackgroundImage()})),addEventListener(u,(()=>this.calcHeight()))}refreshDesoBackgroundImage(){if(!this.bgImageContainer)return;const e=this.bgImageContainer.querySelector("img");e&&(["xl","xxl"].indexOf(Z())>=0?(e.style.display="none",this.bgImageContainer.style.backgroundImage="url("+e.src+")",this.bgImageContainer.style.backgroundPosition="center",this.bgImageContainer.style.backgroundSize="auto 100%",this.bgImageContainer.style.backgroundRepeat="no-repeat"):(this.bgImageContainer.style.background="none",e.style.display="initial"))}calcHeight(){if(["xl","xxl"].indexOf(Z())>=0){const e=getComputedStyle(this.element),t=parseInt(e.paddingTop,10),i=parseInt(e.paddingBottom,10),s=2*parseInt(getComputedStyle(this.textContainer).bottom,10),n=this.textContainer.clientHeight+t+i+s;this.element.style.height=n+"px"}else this.element.style.removeProperty("height")}}const cd=Object.freeze(Object.defineProperty({__proto__:null,MarketingBox:MarketingBox,default:class MarketingBoxInitializer{constructor(e=document){this.initMarketingBoxes(e)}initMarketingBoxes(e){e.querySelectorAll(".marketing-box").forEach((e=>new MarketingBox(e)))}}},Symbol.toStringTag,{value:"Module"})),dd="navigation__e2--expanded",hd="navigation__e2-item--expanded",ud=".navigation__e3";const pd=Object.freeze(Object.defineProperty({__proto__:null,default:class Navigation{constructor(e=document){if(this.el=e.querySelector("[data-navigation]"),!this.el)return;this.e2=this.el.querySelector(".navigation__e2"),this.meta=this.el.querySelector(".navigation__meta"),this.miniShoppingCartToggle=this.el.querySelector("[data-mini-shopping-cart-toggle]"),this.accountButton=this.el.querySelector(".navigation__account");if(navigator.userAgent.toLowerCase().includes("firefox")&&this.applyFirefoxBehavior(),addEventListener("resize-proxy:width",(()=>{this.onBreakpointChange(Z()),this.handleInfoBanner()})),this.handleInfoBanner(),le((e=>{this.onBreakpointChange(e)})),this.loginFlyout=this.el.querySelector(".card--login"),this.loginFlyout){this.loginFlyout.querySelectorAll('input[type="text"]').forEach((e=>{e.addEventListener("focus",(()=>{this.loginFlyout.classList.add("d-block")})),e.addEventListener("blur",(()=>{this.loginFlyout.classList.remove("d-block")}))}))}this.e2?.querySelectorAll("[data-bs-toggle=popover]").forEach((e=>{e.closest(ud).addEventListener("mouseleave",(()=>{(function(e){const t=ee.indexOf(e);return ee.indexOf(Z())>t})("md")&&Popover.getInstance(e).hide()})),e.addEventListener("inserted.bs.popover",(()=>{ce("lg")&&document.body.append(document.querySelector(".popover"))}))})),document.addEventListener("click",(e=>{if(e.target.closest(".navigation__e2-item--with-items-no-hover a")){e.preventDefault();const t=e.target.closest(".navigation__e2-item--with-items-no-hover").querySelector(ud);t&&!t.classList.contains("d-block")&&(document.querySelectorAll(".navigation__e2-item--with-items-no-hover "+ud).forEach((e=>{e.classList.remove("d-block")})),t.classList.add("d-block"))}})),document.addEventListener("click",(e=>{if(e.target.closest(".navigation__e2-item--with-items-no-hover .navigation__e4-list div")){const t=e.target.closest(".navigation__e4-list div").children[0];t.closest(ud).querySelectorAll(".navigation__e3-item").forEach((e=>{void 0!==e.dataset.navid&&(e.style.display="none"),e.dataset.navid===t.dataset.navid&&(e.style.display="block")}))}}))}setPointerEvents(e){this.e2.style.pointerEvents=e}applyFirefoxBehavior(){this.e2&&(this.setPointerEvents("none"),window.addEventListener("mousemove",(()=>{this.setPointerEvents("auto")}),{once:!0}))}onBreakpointChange(e){this.unbindEvents(),["lg","xl","xxl"].includes(e)?(this.handleNavigationClosed(),this.bindDesktopEvents(),this.checkE2ItemPositions()):this.bindEvents()}handleNavigationOpened(){this.el.classList.add("navigation--expanded"),document.documentElement.classList.add("noscroll"),document.body.classList.add("noscroll"),this.miniShoppingCartToggle?.classList.contains("btn--active")&&this.miniShoppingCartToggle.click(),this.el.style.overflowX="hidden",this.e2?.classList.add("d-block"),this.meta?.classList.add("d-block")}handleNavigationClosed(){this.e2?.classList.remove(dd),this.el.classList.remove(dd),this.el.classList.contains("navigation__login--show")&&(this.loginFlyout.classList.remove("card--login-show"),this.el.classList.remove("navigation__login--show"),this.el.querySelector(ud).classList.remove("opacity-0"),this.el.querySelector(".navigation__e2-closebutton").classList.remove("opacity-0"));(this.e2?.querySelectorAll(`.${hd}
6`)||[]).forEach((e=>e.classList.remove(hd))),this.el.classList.remove("navigation--expanded"),document.documentElement.classList.remove("noscroll"),document.body.classList.remove("noscroll"),setTimeout((()=>{this.el.removeAttribute("style"),this.e2?.classList.remove("d-block"),this.meta?.classList.remove("d-block")}),Se/10)}checkE2ItemPositions(){const e=this.e2?.querySelectorAll(".navigation__e2-item");if(!e?.length)return;const t=this.el.querySelector(".navigation__main-wrap").getBoundingClientRect(),i=t.left+t.width/2;e.forEach((e=>{const t=e.getBoundingClientRect();t.left+t.width/2<i?e.classList.add("flyout--left"):e.classList.add("flyout--right")}))}bindEvents(){if(this.controller)return;this.controller=new AbortController;const e=this.controller.signal;this.el.addEventListener("click",(e=>{e.target.closest(".navigation__menubutton")&&(e.preventDefault(),this.el.classList.contains("navigation--expanded")||this.el.classList.contains("navigation__login--show")?this.handleNavigationClosed():this.handleNavigationOpened())}),{signal:e}),this.el.addEventListener("click",(e=>{e.target.closest(".navigation__e2-closebutton")&&(e.preventDefault(),this.e2?.classList.remove(dd),this.el.classList.remove(dd),this.e2?.querySelectorAll(`.${hd}`).forEach((e=>{e.classList.remove(hd)})))}),{signal:e}),ce("lg")&&null!=this.accountButton&&this.accountButton.addEventListener("click",(()=>{this.el.classList.add("navigation__login--show"),this.loginFlyout.classList.add("card--login-show"),this.el.querySelector(ud).classList.add("opacity-0"),this.el.querySelector(".navigation__e2-closebutton").classList.add("opacity-0")}),{signal:e}),this.el.addEventListener("click",(e=>{if(e.target.closest(".navigation__e2-item--with-items > a")){e.preventDefault();const t=e.target.closest(".navigation__e2-item");if(t.classList.contains(hd))return;this.e2?.classList.add(dd),this.el.classList.add(dd),this.e2?.querySelectorAll(`.${hd}`).forEach((e=>{e.classList.remove(hd)})),t.classList.add(hd)}}),{signal:e})}bindDesktopEvents(){if(this.controller)return;this.controller=new AbortController;const e=this.controller.signal;null!=this.accountButton&&(this.accountButton.addEventListener("focus",(()=>{this.loginFlyout.classList.add("card--login-show")}),{signal:e}),this.accountButton.addEventListener("focusout",(()=>{requestAnimationFrame((()=>{this.loginFlyout.contains(document.activeElement)||this.loginFlyout.classList.remove("card--login-show")}))}),{signal:e}),this.loginFlyout?.addEventListener("focusout",(()=>{requestAnimationFrame((()=>{this.loginFlyout.contains(document.activeElement)||this.loginFlyout.classList.remove("card--login-show")}))}),{signal:e}))}handleInfoBanner(){if(document.querySelector(".m1und1nav__infoBanner"))if(["xs","sm","ms","md"].indexOf(Z())>=0){const e=document.querySelector(".m1und1nav__infoBanner").getBoundingClientRect().height;document.querySelector(".subnavigation-bk__select-flyout-button").style.marginTop=e+12+"px"}else document.querySelector(".subnavigation-bk__select-flyout-button").style.marginTop="unset"}unbindEvents(){this.controller&&(this.controller.abort(),this.controller=null)}}},Symbol.toStringTag,{value:"Module"}));class OptionsGrid{constructor(e){this.optionsGrid=e,this.currentBreakpoint=null,this.optionListPosition=null,this.optionListSelected=null,this.handlersInitialized=!1,this.tiles=null,this.optionList=null,this.registerHandlers(),addEventListener("async:loaded",(e=>this.registerHandlers(e.target))),le((e=>{this.setCurrentBreakpoint(e)})),addEventListener("resize-proxy:width",(()=>{this.slideUpOptionList((()=>{this.optionList.classList.remove("open"),this.removalAllPointers()})),this.setCurrentBreakpoint(Z())}))}registerHandlers(e){this.handlersInitialized||(this.handlersInitialized=!0,e&&(e.hasAttribute("data-toggle")||e.classList.contains("popover"))||(this.tiles=this.optionsGrid.querySelectorAll(".options-grid__tile"),this.tiles.forEach(((e,t)=>{e.setAttribute("data-position",t);const i=e.nextElementSibling;e.addEventListener("click",(s=>{if(!(s.target.closest('[data-toggle="modal-lite"]')||s.target.closest('[data-action="addToCart"]')||e.classList.contains("no-features")))if(this.calculateOptionListPosition(t),null===this.optionList&&(this.optionList=i),this.optionListSelected===t)if(this.optionList.classList.contains("open"))this.slideUpOptionList((()=>{this.removalAllPointers(),this.optionList.classList.remove("open")}));else{const t=this.optionListPosition-1;this.optionsGrid.querySelector('[data-position="'+t+'"]')?.insertAdjacentElement("afterend",this.optionList),e.classList.add("options-grid__tile--pointer"),this.optionList.classList.add("open"),this.slideDownOptionList((()=>{this.scrollTo()}))}else this.optionListSelected=t,this.slideUpOptionList((()=>{this.removalAllPointers(),this.optionList.classList.remove("open"),this.optionList=i;const t=this.optionListPosition-1;this.optionsGrid.querySelector('[data-position="'+t+'"]')?.insertAdjacentElement("afterend",this.optionList),e.classList.add("options-grid__tile--pointer"),this.optionList.classList.add("open"),this.slideDownOptionList((()=>{this.scrollTo()}))}))})),i.querySelector(".list-closer")?.addEventListener("click",(()=>{this.slideUpOptionList((()=>{this.removalAllPointers(),this.optionList.classList.remove("open")}))}
6))}))))}setCurrentBreakpoint(e){this.currentBreakpoint=e}calculateOptionListPosition(e){if(document.querySelector(".options-grid__tile--fullwidth"))this.optionListPosition=e+1;else switch(this.currentBreakpoint){case"xs":case"sm":this.optionListPosition=e+1;break;case"ms":case"md":this.setOptionListPosition(e,2);break;case"lg":this.setOptionListPosition(e,3);break;default:this.setOptionListPosition(e,4)}}setOptionListPosition(e,t){const i=this.tiles.length,s=e+1,n=s%t===0?0:t;if(this.optionListPosition=s-s%t+n,this.optionListPosition-1>=i)this.optionListPosition=i;else{if(this.tiles[0].classList.contains("options-grid__tile--highlight")){if(s<=i-i%t+t&&s>=i-i%t)return void(this.optionListPosition=i);this.optionListPosition--,s%t===0&&(this.optionListPosition+=t)}this.optionListPosition===i&&!this.tiles[e].classList.contains("options-grid__tile--highlight")&&this.tiles[i-1].classList.contains("options-grid__tile--highlight")&&this.optionListPosition--}}scrollTo(){if(["md","lg","xl","xxl"].includes(this.currentBreakpoint))return;const e=document.querySelectorAll(".navigation, .navigation--bk")[0]?.offsetHeight||0,t=this.optionList.getBoundingClientRect().top+window.scrollY-(e+4);window.scrollTo({top:t,behavior:"smooth"})}slideUpOptionList(e=null){this.optionList&&(this.optionList.style.display="none",this.optionList.style.height="auto",e&&e())}slideDownOptionList(e=null){if(this.optionList){this.optionList.style.display="block";const t=this.optionList.offsetHeight;this.optionList.style.height="0",this.optionList.addEventListener("transitionend",(()=>{this.optionList.style.height="auto",e&&e()}),{once:!0}),setTimeout((()=>{this.optionList.style.height=t+"px"}))}}removalAllPointers(){this.optionsGrid.querySelectorAll(".options-grid__tile--pointer").forEach((e=>{e.classList.remove("options-grid__tile--pointer")}))}}const md=Object.freeze(Object.defineProperty({__proto__:null,OptionsGrid:OptionsGrid,default:class OptionsGridInitializer extends XLABInitializer{constructor(){super(".options-grid",OptionsGrid)}}},Symbol.toStringTag,{value:"Module"}));class OptionsSliderGrid{constructor(e){if(e.optionsSliderGrid)return;e.optionsSliderGrid=this;const t=e.querySelector("[data-options-grid-container-main-row]");if(!t)return;const i=e.querySelectorAll("[data-collapse-ref] > .row");addEventListener("resize-proxy:width",(()=>{this.adjustCards(t),i.forEach((e=>{e.checkVisibility()&&this.adjustCards(e)}))})),i.forEach((e=>{e.checkVisibility()&&this.adjustCards(e),["shown.bs.collapse","hidden.bs.collapse"].forEach((i=>{e.parentElement.addEventListener(i,(()=>{setTimeout((()=>{this.adjustCards(t),this.adjustCards(e)}))}))}))})),this.adjustCards(t)}adjustCards(e){const t=[...e.children].filter((e=>e.checkVisibility()&&!e.classList.contains("collapse")&&!e.querySelector(".options__sub-headline")));if(!t.length)return;const i={};t.forEach((e=>{const t=e.getBoundingClientRect().top;t in i?i[t].push(e):i[t]=[e]}));for(const s of Object.values(i)){const e=s.some((e=>e.querySelector(".color-chooser")||e.querySelector(".variant-chooser")));let t;const i=s.some((e=>{const i=e.querySelector(".price-box");if(i)return t=i.offsetHeight,!0}));s.forEach((s=>{s.querySelector(".card--product-buy-price").classList.toggle("card--product-no-configurator",!e);const n=s.querySelector(".card-product-footer__price, .card__no-charge");n&&(n.style.height=i?`${t}px`:"")}))}}}const gd=Object.freeze(Object.defineProperty({__proto__:null,OptionsSliderGrid:OptionsSliderGrid,default:class OptionsSliderGridInitializer{constructor(e=document){this.initializeOptionsSliderGrid(e),addEventListener("async:loaded",(e=>this.initializeOptionsSliderGrid(e.target)))}initializeOptionsSliderGrid(e=document){e.querySelectorAll(".options").forEach((e=>{new OptionsSliderGrid(e)}))}}},Symbol.toStringTag,{value:"Module"}));class OptionsSlider{constructor(e){new Swiper(e,{modules:[za,Ba],createElements:!0,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:{enabled:!0,clickable:!0}})}}const fd=Object.freeze(Object.defineProperty({__proto__:null,default:class OptionsSliderInitializer{constructor(e=document){this.initializeSliders(e),addEventListener("async:loaded",(e=>{this.initializeSliders(e.target)}))}initializeSliders(e){e.querySelectorAll("[data-options-slider]:not(.swiper-initialized)").forEach((e=>new OptionsSlider(e)))}}},Symbol.toStringTag,{value:"Module"}));class PreviewSlider{container;initialSlide;constructor(e){this.container=e;const t=Boolean(e.closest(".preview-slider-section--empfehlen"));t&&(this.initialSlide=this.getInitialSlide()),new Swiper(e,{modules:[za,Ba],createElements:!0,...t&&{initialSlide:this.initialSlide},breakpoints:{0:{slidesPerView:1},[ne.from]:{slidesPerView:3,centeredSlides:!t}},centeredSlides:!0,loop:!0,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},pagination:{enabled:!0,clickable:!0,bulletElement:"a"},on:{afterInit:()=>{this.initializeTracking()}}})}getInitialSlide(){const e=this.container.querySelectorAll(".swiper-slide").length;return Math.floor(e/2)}initializeTracking(){this.container.querySelectorAll(".swiper-pagination-bullet").forEach(((e,t)=>{e.href="#",e.dataset.linkid=`previewslider_pos${t} :: indicator :: preview slider change indicator click`,e.dataset.linktarget="samepage"}))}}const vd=Object.freeze(Object.defineProperty({__proto__:null,default:class PreviewSliderInitializer{constructor(e=document){this.initializeSliders(e),addEventListener("async:loaded",(e=>{this.initializeSliders(e.target)}))}initializeSliders(e){e.querySelectorAll("[data-preview-slider]:not(.swiper-initialized)").forEach((e=>new PreviewSlider(e)))}}},Symbol.toStringTag,{value:"Module"}));const bd=Object.freeze(Object.defineProperty({__proto__:null,default:class RoamingCenter{constructor(){if(this.el=document.querySelector(".roaming-center"),!this.el)return;this.dateRow=this.el.querySelector(".roaming-center__date-row"),this.radios=this.el.querySelectorAll('input[type="radio"][name="activation"]'),this.tariffTables=this.el.querySelectorAll("[data-package-zone]");const e=this.el.querySelector('input[type="radio"][name="activation"]:checked');this.activeActivation=e?e.value:"now",this.activeZone="",this.radios.forEach((e=>{e.addEventListener("change",(e=>this.onRadioChange(e)))})),this.el.addEventListener("searchbar:change",(e=>this.onCountryChange(e))),this.filterTables()}filterTables(){const e=[];
6this.tariffTables.forEach((t=>{const i=t.dataset.packageZone===this.activeZone,s=t.dataset.activation===this.activeActivation;t.hidden=!(i&&s),t.hidden||e.push(t)})),this.syncVisibleSwipers(e)}syncVisibleSwipers(e){0!==e.length?requestAnimationFrame((()=>{e.forEach((e=>{const t=e.querySelector(".swiper")?.swiper;if(!t)return;this.relayoutSwiper(t);const i=this.getStartSlideIndex(e);i<0||("function"==typeof t.slideToForced?t.slideToForced(i):t.slideTo(i,0))})),this.dispatchHeightUpdate()})):this.dispatchHeightUpdate()}relayoutSwiper(e){e.updateSize(),e.updateSlides(),e.updateProgress(),e.update(),e.navigation?.update()}getStartSlideIndex(e){const t=[...e.querySelectorAll(".swiper-slide")],i=e.querySelector(".swiper-start")||e.querySelector(".tariffbox--highlight")?.closest(".swiper-slide");return t.indexOf(i)}dispatchHeightUpdate(){document.body.dispatchEvent(new Event(d,{bubbles:!0}))}onRadioChange(e){this.activeActivation=e.target.value,"date"===this.activeActivation?this.dateRow.classList.remove("d-none"):this.dateRow.classList.add("d-none"),this.filterTables()}onCountryChange(e){this.activeZone=e.detail.value,this.filterTables()}}},Symbol.toStringTag,{value:"Module"}));class TariffDetailsAccordion{constructor(e){document.querySelector(".pdfviewer__object")&&document.querySelectorAll(".pdfviewer").forEach((e=>{e.remove()})),this.toggle=e,this.container=this.toggle.parentNode,this.recalcHeight(),this.toggle.addEventListener("click",(()=>{this.toggleVisiblity()}))}toggleVisiblity(){this.container.style.height=this.container.scrollHeight+"px",this.container.classList.contains("collapsed")?this.expand():this.collapse(),window.setTimeout((()=>{parent.postMessage(document.body.offsetHeight,"*")}),301)}expand(){this.container.classList.remove("collapsed"),["xs","sm","ms"].indexOf(Z())>=0?this.container.style.height=this.container.scrollHeight+"px":this.container.style.height=this.container.scrollHeight+40+"px"}recalcHeight(){if(this.container.classList.contains("collapsed"))this.container.style.height=this.toggle.scrollHeight+1+"px";else{const e=["xs","sm","ms"].indexOf(Z())>=0?0:40;this.container.style.height=this.container.scrollHeight+e+"px"}}collapse(){this.container.classList.add("collapsed"),this.container.style.height=this.toggle.scrollHeight+1+"px"}}const yd=Object.freeze(Object.defineProperty({__proto__:null,default:class TariffDetailsAccordions{initializedToggles;constructor(){this.initializedToggles=[],document.querySelectorAll(".tariff-detail__table tr:first-of-type, .tariff-detail__table .tariff-detail__tr:first-of-type").forEach((e=>this.initializedToggles.push(new TariffDetailsAccordion(e)))),window.addEventListener("load",(()=>{requestAnimationFrame((()=>{this.initialExpandOnIframe()}))})),window.addEventListener("resize-proxy:width",this.initialExpandOnIframe.bind(this))}initialExpandOnIframe(){this.initializedToggles.forEach((e=>e.recalcHeight()))}}},Symbol.toStringTag,{value:"Module"})),wd={name:"atoms/form-elements/switch",checked:!1,label:"Mit 1&1 TV",toggleContent:{src:"/images/component/content-tab/tariff-pill-infobox.svg",classes:"img-fluid",alt:"1&1 TV",title:"1&1 TV"}},Sd="-iptv";let _d=0;const Ed=Object.freeze(Object.defineProperty({__proto__:null,addIptvToggleToTariffs:(e=[])=>e.map((e=>e?.tariffboxBody?.pattern?{...e,tariffboxBody:{...e.tariffboxBody,pattern:e.tariffboxBody.pattern.map((e=>{if("molecules/content-box/content-box"!==e?.name||!Array.isArray(e.contents))return e;const t=e.contents.some((e=>"atoms/form-elements/controls"===e?.name&&"radio"===e?.type)),i=e.contents.some((e=>"atoms/form-elements/switch"===e?.name));return!t||i?e:{...e,contents:[...e.contents.map((e=>"atoms/form-elements/controls"===e?.name&&"radio"===e?.type&&e?.inputName&&!e.inputName.endsWith(Sd)?{...e,inputName:`${e.inputName}${Sd}`}:"molecules/price/price"===e?.name&&e.price?{name:"molecules/price/price-toggle",price:e.price,active:wd.checked,activePrice:{...e.price,euros:e.price.euros+5}}:e)),{...wd,id:"iptv-switch-"+ ++_d}]}}))}}:e)),withPromoVisibility:(e=[],t=!1)=>t?e:e.map((e=>e?.tariffboxBody?.pattern?{...e,tariffboxBody:{...e.tariffboxBody,pattern:e.tariffboxBody.pattern.map((e=>"molecules/content-box/content-box"===e?.name&&Array.isArray(e.contents)?{...e,contents:e.contents.filter((e=>
6"atoms/text-with-bg/text-with-bg"!==e?.name))}:e))}}:e))},Symbol.toStringTag,{value:"Module"})),Cd=".tariffboxes";class Tariffboxes{container;constructor(e){this.container=e,document.body.addEventListener(g,this.addSpaceToTariffbox),this.initImageGalleriesSync()}addSpaceToTariffbox(){const e=[],t=[];if(document.querySelectorAll('.tariffbox[data-tariff-category="KOMBI_DSL"]').forEach((t=>{e.push(t)})),document.querySelectorAll('.thumbnail[data-tariff-category="KOMBI_DSL"]').forEach((e=>{t.push(e)})),e.length&&t.length){const i=Z();["lg","xl","xxl"].includes(i)&&e[e.length-1].classList.add("tariffboxKombiDsl"),["xs","sm","ms","md"].includes(i)&&t[t.length-1].classList.add("thumbnailKombiDsl")}}initImageGalleriesSync(){this.container.querySelectorAll(nc).forEach((e=>{e.addEventListener("click",(()=>{const t=e.dataset.index;this.container.querySelectorAll(`${nc}[data-index="${t}"]:not(${nc}${rc})`).forEach((e=>e.click()))}))}))}}const xd=Object.freeze(Object.defineProperty({__proto__:null,TARIFFBOXES_SLIDER:Cd,Tariffboxes:Tariffboxes,default:class TariffboxesInitilizer{constructor(e=document){e.querySelectorAll(Cd).forEach((e=>new Tariffboxes(e)))}}},Symbol.toStringTag,{value:"Module"})),Td=".toggle-label__radio",Ld='.switch .form-check-input[role="switch"]',kd="contract-toggled";class TariffboxContentToggle{constructor(e){this.tariffboxWrapper=e,this.tariffboxes=e.querySelectorAll(".tariffbox--plans"),this.state={isIptvActive:!1,selectedTariffId:null},this.initTariffboxContentToggle(),document.body.addEventListener(h,this.updateHeaderExtensionHeight.bind(this)),e.querySelectorAll(".tariffbox-plans-toggle__button").forEach((e=>{e.addEventListener("click",(()=>this.toggleContract()))})),e.addEventListener(kd,(({detail:e})=>{e.tariffboxWrapper!==this.tariffboxWrapper&&this.toggleContract(!0)}))}initTariffboxContentToggle(){this.tariffboxes.forEach((e=>{e.querySelectorAll(".content-box:not(.content-box--tariffbox-header-extension)").forEach((t=>{if(!this.getTariffIdFromBox(t))return;t.querySelectorAll('[data-bs-toggle="popover"]').forEach((e=>{e.addEventListener("click",(e=>e.stopPropagation()))}));const i=t.querySelector(Td);i&&i.addEventListener("change",(i=>{i.target.checked&&this.toggleTariffboxes(e,t)}))})),e.querySelectorAll(`.tariffbox-toggle .toggle-label ${Td}`).forEach((t=>{t.addEventListener("change",(i=>{i.target.checked&&this.toggleTariffboxes(e,t.closest(".toggle-label"))}))})),e.querySelectorAll(Ld).forEach((t=>{t.addEventListener("change",(()=>{this.onIptvSwitchChange(e,t)}))}))})),this.state.selectedTariffId=this.getSelectedTariffId(),this.state.isIptvActive=this.getInitialIptvActive(),this.syncIptvState()}getInitialIptvActive(){return[...this.tariffboxWrapper.querySelectorAll(Ld)].some((e=>e.checked))}getTariffIdFromBox(e){return e?.querySelector(Td)?.getAttribute("value")}getSelectedTariffId(e=this.tariffboxWrapper){const t=e.querySelector("[data-tariffid]:not(.d-none):not(.tariffbox--hidden-contract)");return t?t.getAttribute("data-tariffid"):null}onIptvSwitchChange(e,t){const i=t.closest(".content-box"),s=this.getTariffIdFromBox(i);if(!s)return;this.state.isIptvActive=t.checked;this.getSelectedTariffId()===s?(this.state.selectedTariffId=s,this.syncIptvState(),e.dispatchEvent(new CustomEvent(d,{bubbles:!0,detail:{immediate:!0}}))):this.toggleTariffboxes(e,i)}syncIptvState(){const e=this.state.selectedTariffId||this.getSelectedTariffId();this.tariffboxWrapper.querySelectorAll(Ld).forEach((t=>{const i=t.closest(".content-box"),s=this.getTariffIdFromBox(i),n=i?.closest("[data-tariffid]"),r=n&&!n.classList.contains("d-none")&&!n.classList.contains("tariffbox--hidden-contract");t.checked=Boolean(this.state.isIptvActive&&r&&s===e),i?.toggleAttribute("data-equal-heights-exclude",t.checked),this.syncPriceToggle(i,t.checked)}))}syncPriceToggle(e,t){e&&(e.querySelectorAll(".price-toggle__price--default").forEach((e=>e.classList.toggle("d-none",t))),e.querySelectorAll(".price-toggle__price--active").forEach((e=>e.classList.toggle("d-none",!t))))}toggleTariffboxes(e,t){const i=this.getTariffIdFromBox(t);if(!i)return;this.state.selectedTariffId=i;this.tariffboxWrapper.querySelectorAll("[data-tariffid]:not(.tariffbox--hidden-contract)").forEach((e=>{const t=e.getAttribute("data-tariffid");if(t===i){e.classList.remove("d-none");e.querySelectorAll(`input.toggle-label__radio[value="${t}"]`).forEach((e=>{e.checked=!0}))}else e.classList.add("d-none")})),this.syncIptvState(),e.dispatchEvent(new Event(d,{bubbles:!0}))}
6toggleContract(e){this.tariffboxes.forEach((e=>{e.classList.toggle("tariffbox--hidden-contract")})),this.state.selectedTariffId=this.getSelectedTariffId(),this.syncIptvState(),e||this.syncContracts(),this.tariffboxWrapper.dispatchEvent(new Event(d,{bubbles:!0}))}syncContracts(){this.tariffboxWrapper.closest(Cd)?.querySelectorAll(".tariffbox-wrapper").forEach((e=>{e.dispatchEvent(new CustomEvent(kd,{detail:{tariffboxWrapper:this.tariffboxWrapper}}))}))}updateHeaderExtensionHeight(){this.tariffboxes.forEach((e=>{const t=e.querySelector(".tariffbox__body");if(!t)return;const i=parseFloat(window.getComputedStyle(t).rowGap)||0;e.querySelectorAll(".content-box--tariffbox-header-extension.equal-heights-initialized").forEach((e=>{const t=(parseFloat(e.style.height)||0)+i;e.style.height=`${t}px`}))}))}}const Ad=Object.freeze(Object.defineProperty({__proto__:null,TariffboxContentToggle:TariffboxContentToggle,default:class TariffboxContentToggleInitializer{constructor(e=document){e.querySelectorAll(".tariffbox-wrapper").forEach((e=>new TariffboxContentToggle(e)))}}},Symbol.toStringTag,{value:"Module"})),Od="data-relocation-activation-date-initialized";let Id=!1;class RelocationActivationDate{root;radios;dateInput;temporaryInternetField;temporaryInternetInput;temporaryInternetDetails;minimalDaysNote;orderAsapController;cta;boundUpdateState;constructor(e){this.root=e,this.radios=Array.from(this.root.querySelectorAll('input[name="relocation-activation-date"]')),this.dateInput=this.root.querySelector('input[name="activation-date"]'),this.cta=this.root.querySelector(".v-check__relocation-activation-date-cta"),this.dateInput&&this.cta&&0!==this.radios.length&&(this.temporaryInternetField=this.root.querySelector(".v-check__relocation-temporary-internet-field"),this.temporaryInternetInput=this.temporaryInternetField?.querySelector('input[type="checkbox"]'),this.temporaryInternetDetails=this.root.querySelector(".v-check__relocation-temporary-internet-details"),this.minimalDaysNote=this.root.querySelector(".v-check__relocation-activation-date-minimal-date-note"),this.orderAsapController=this.root.querySelector("[data-relocation-order-asap-controller]"),this.boundUpdateState=this.updateState.bind(this),this.registerEvents(),this.bindDatepickerSelectionHandler(),this.updateState())}registerEvents(){this.root.addEventListener("change",this.boundUpdateState),this.root.addEventListener("input",this.boundUpdateState)}bindDatepickerSelectionHandler(e=20){const t=this.dateInput.dateChooser;t?this.attachDatepickerOnSelectHandler(t):e<=0||this.scheduleDatepickerSelectionHandlerRetry(e-1)}scheduleDatepickerSelectionHandlerRetry(e){setTimeout((()=>{this.bindDatepickerSelectionHandler(e)}),100)}attachDatepickerOnSelectHandler(e){const t=e.opts?.onSelect;e.update({onSelect:(...e)=>{"function"==typeof t&&t(...e),this.updateState()}})}updateState(){const e=this.isPreferredDateSelected(),t=this.getSelectedDate(),i=null!==t,s=!!i&&this.isLessThanMinimalDate(t),n=e&&(!i||s);this.toggleTemporaryInternet(!e||!s),this.toggleMinimalDaysNote(e&&s),this.toggleOrderAsapController(!e),this.setCtaDisabled(n)}toggleOrderAsapController(e){this.orderAsapController&&this.orderAsapController.classList.toggle("v-check__order-asap-controller--hidden",!e)}isPreferredDateSelected(){const e=this.radios.find((e=>e.checked));return"preferred-date"===e?.value}toggleTemporaryInternet(e){this.temporaryInternetField&&this.temporaryInternetField.classList.toggle("v-check__relocation-temporary-internet-field--hidden",!e),this.temporaryInternetDetails&&this.temporaryInternetDetails.classList.toggle("v-check__relocation-temporary-internet-details--hidden",!e),!e&&this.temporaryInternetInput&&(this.temporaryInternetInput.checked=!1,this.temporaryInternetInput.dispatchEvent(new Event("change")))}toggleMinimalDaysNote(e){this.minimalDaysNote&&this.minimalDaysNote.classList.toggle("v-check__relocation-activation-date-minimal-date-note--visible",e)}setCtaDisabled(e){this.cta.disabled=e}getSelectedDate(){const e=this.parseDate(this.dateInput.value);if(null!==e)return e;const t=this.dateInput.dateChooser?.selectedDates?.[0];return t instanceof Date?new Date(t):null}getDateParts(e){return e.includes(".")?e.split("."):e.includes("/")?e.split("/"):e.split("-")}
6getDayMonthYear(e,t){return t.includes("-")&&4===e[0].length?{year:Number(e[0]),month:Number(e[1]),day:Number(e[2])}:{day:Number(e[0]),month:Number(e[1]),year:Number(e[2])}}parseDate(e){if(!e)return null;const t=e.trim(),i=this.getDateParts(t);if(3!==i.length)return null;const{day:s,month:n,year:r}=this.getDayMonthYear(i,t);if(!Number.isInteger(s)||!Number.isInteger(n)||!Number.isInteger(r))return null;const o=new Date(r,n-1,s);return o.getFullYear()!==r||o.getMonth()!==n-1||o.getDate()!==s?null:o}isLessThanMinimalDate(e){const t=new Date;t.setHours(0,0,0,0);const i=new Date(e);i.setHours(0,0,0,0);const s=Math.floor((i.getTime()-t.getTime())/864e5),n=this.getBusinessDayDifference(t,i);return s<=10||n<=14}getBusinessDayDifference(e,t){if(t<=e)return 0;const i=new Date(e);let s=0;for(;i<t;){i.setDate(i.getDate()+1);const e=i.getDay();0===e||6===e||s++}return s}}const Dd=Object.freeze(Object.defineProperty({__proto__:null,RelocationActivationDate:RelocationActivationDate,default:class RelocationActivationDateInitializer{constructor(e=document){this.initialize(e),Id||(addEventListener("async:loaded",(e=>{this.initialize(e.target)})),Id=!0)}initialize(e){e.querySelectorAll("[data-relocation-activation-date]").forEach((e=>{e.hasAttribute(Od)||(e.setAttribute(Od,"true"),new RelocationActivationDate(e))}))}}},Symbol.toStringTag,{value:"Module"})),Pd=".video-link";class VideoSlider{constructor(e=document){const t=document.querySelector(".device-slider__video");t&&(t.style.opacity="1");const i=document.querySelector(".swiper-slide");i&&i.classList.add("active-video");e.querySelectorAll(`${Pd} a`).forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault(),this.updateVideoAndSlider(e);const i=document.querySelector(".lazy-video"),s=document.querySelector(".navigation");if(i){const e=s?.offsetHeight||0,t=i.getBoundingClientRect().top+window.pageYOffset-e;window.scrollTo({top:t,behavior:"smooth"})}}))}));e.querySelectorAll(".device-slider__item").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const i=t.currentTarget,s=i.getAttribute("data-video-id");if(e.querySelector(".active-video")?.classList.remove("active-video"),i.parentElement.classList.add("active-video"),s){const e=document.querySelector(`${Pd}[data-video-id="${s}"] a`);this.updateVideoAndSlider(e)}}))}))}updateVideoAndSlider(e){const t=e.parentElement.getAttribute("data-video-id"),i=document.querySelector(".lazy-video img");if(i){i.setAttribute("src",`https://img.youtube.com/vi/${t}/maxresdefault.jpg`);const s=e.parentElement.getAttribute("data-video-title"),n=e.parentElement.getAttribute("data-video-duration");s&&i.parentElement.setAttribute("data-title",s),n&&i.parentElement.setAttribute("data-duration",n)}const s=document.querySelector(".lazy-video");if(s){const e=s.lazyVideoInstance;e&&e.resetPlayer(t)}document.querySelectorAll(".device-slider__item").forEach((e=>{e.parentElement.classList.remove("active-video");e.getAttribute("data-video-id")===t&&e.parentElement.classList.add("active-video")}))}}const Md=Object.freeze(Object.defineProperty({__proto__:null,VideoSlider:VideoSlider,default:class VideoSliders{constructor(){this.initializeVideoSlider(),window.addEventListener("async:loaded",(()=>{this.initializeVideoSlider()}))}initializeVideoSlider(){document.querySelectorAll(".video-slider").forEach((()=>new VideoSlider))}}},Symbol.toStringTag,{value:"Module"}));class WatchConfigurator{constructor(e){const t=e.querySelector("[data-watch-configurator-watches-slider]"),i=e.querySelector("[data-watch-configurator-configurations-slider]"),s=new Swiper(i,{modules:[Xa],effect:"fade",enabled:!1,fadeEffect:{crossFade:!0}});new Swiper(t,{modules:[za,ja],navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},controller:{control:s}})}}const qd=Object.freeze(Object.defineProperty({__proto__:null,default:class WatchConfiguratorInitializer{constructor(e=document){e.querySelectorAll(".watch-configurator").forEach((e=>new WatchConfigurator(e)))}}},Symbol.toStringTag,{value:"Module"}));class WatchSlider{element;watchSliderSection;thumbnails;visualSlider;visualSwiper;detailSlider;detailSwiper;isInfinite;slidesToShowPerBreakpoint;sliderCommonConfig;borderItem;constructor(e,t){e.hasAttribute("data-no-init")&&!t||(this.element=e,this.borderItem=this.element.querySelector(".watch-slider__item-border"),this.watchSliderSection=this.element.closest(".watch-slider__section"),this.thumbnails=this.watchSliderSection?.querySelectorAll(".thumbnail-container .thumbnail"),this.visualSlider=this.element.querySelector("[data-watch-slider-visuals]"),this.detailSlider=this.element.querySelector("[data-watch-slider-details]"),this.isInfinite="true"===this.element.getAttribute("data-sli
6der-setting-infinite"),this.slidesToShowPerBreakpoint={xs:1,md:2,lg:3,xl:4,xxl:4},this.sliderCommonConfig=this.getSliderCommonConfig(),addEventListener(v,(e=>{e.target===this.element&&this.updateSliders()})),this.initCarousel(),this.element.querySelectorAll(".watch-slider-visual__img > img").forEach((e=>e.removeAttribute("loading"))))}initCarousel(){this.initVisualSlider(),this.initDetailSlider(),this.connectSliders(),this.initThumbnails(),window.addEventListener(u,this.updateSliders.bind(this))}connectSliders(){this.visualSwiper.controller.control=this.detailSwiper,this.detailSwiper.controller.control=this.visualSwiper}thumbnailsAvailable(){return!!(this.watchSliderSection&&this.thumbnails?.length>0)&&[...this.thumbnails].some((e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length))}initThumbnails(){this.thumbnailsAvailable()&&this.element.parentElement.querySelector(".thumbnail-container").dispatchEvent(new CustomEvent(m,{detail:this.visualSwiper}))}initVisualSlider(){this.visualSwiper&&(this.visualSwiper.destroy(),this.visualSwiper.slideTo=()=>null,this.visualSwiper=void 0,this.element.querySelectorAll(".swiper-button-prev, .swiper-button-next").forEach((e=>e.remove())));const e=this.createArrow("prev"),t=this.createArrow("next");this.visualSlider.parentElement.prepend(e),this.visualSlider.parentElement.append(t),this.visualSwiper=new Swiper(this.visualSlider,{...this.sliderCommonConfig,modules:[za,ja],navigation:{prevEl:e,nextEl:t}}),this.visualSwiper.on("breakpoint",(()=>this.reinitCarousel())),this.visualSwiper.on("slideChange",(e=>this.borderColorSwitch(e))),this.isInfinite&&this.visualSwiper.on("transitionEnd",(e=>{window.innerWidth<=se.to&&e.loopFix()}))}initDetailSlider(){this.detailSwiper&&(this.detailSwiper.destroy(),this.detailSwiper.slideTo=()=>null,this.detailSwiper=void 0);const e={};this.shouldUseFade()&&(e.effect="fade",e.fadeEffect={crossFade:!0}),this.detailSwiper=new Swiper(this.detailSlider,{...this.sliderCommonConfig,...e,modules:[ja,Xa]})}createArrow(e){const t=document.createElement("div");return t.classList.add(`swiper-button-${e}`),t}updateSliders(){this.visualSwiper?.update(),this.detailSwiper?.update()}reinitCarousel(){("fade"===this.detailSwiper.params.effect!==this.shouldUseFade()||this.isInfinite)&&requestAnimationFrame((()=>this.initCarousel()))}shouldUseFade(){return window.innerWidth<=se.to}borderColorSwitch(e){e.slides[e.activeIndex].classList.contains("watch-slider-visual--selected")?this.borderItem.classList.add("watch-slider__item-border--secondary"):this.borderItem.classList.remove("watch-slider__item-border--secondary")}getInitialSlide(){const e=this.visualSlider.querySelector(".slide-start");return e?[...e.parentNode.children].indexOf(e):0}getSliderCommonConfig(){return{createElements:!0,initialSlide:this.getInitialSlide(),loop:this.isInfinite,slidesPerView:this.slidesToShowPerBreakpoint.xs,centeredSlides:!0,simulateTouch:!0,spaceBetween:32,touchStartPreventDefault:!1,breakpoints:{[ie.from]:{slidesPerView:this.slidesToShowPerBreakpoint.xs,simulateTouch:!0,centeredSlides:!0,spaceBetween:42},[se.from]:{slidesPerView:this.slidesToShowPerBreakpoint.xs,simulateTouch:!0,centeredSlides:!0,spaceBetween:46},[ne.from]:{slidesPerView:this.slidesToShowPerBreakpoint.md,simulateTouch:!1,centeredSlides:!1},[re.from]:{slidesPerView:this.slidesToShowPerBreakpoint.lg,simulateTouch:!1,centeredSlides:!1},[oe.from]:{slidesPerView:this.slidesToShowPerBreakpoint.xl,simulateTouch:!1,centeredSlides:!1}}}}}const zd=Object.freeze(Object.defineProperty({__proto__:null,WatchSlider:WatchSlider,default:class WatchSliderInitializer{sliders;constructor(e=document){this.initializeSliders(e),addEventListener("async:loaded",(e=>{this.initializeSliders(e.target,!0)}))}initializeSliders(e,t=!1){const i=e.querySelectorAll("[data-watch-slider]");this.sliders=i.map((e=>new WatchSlider(e,t)))}}},Symbol.toStringTag,{value:"Module"}));const Hd=Object.freeze(Object.defineProperty({__proto__:null,default:class AddToBasket{notification;timeout;constructor(){this.notification=document.querySelector(".cart-notification")}setInactive(){this.notification.classList.remove("active")}setActive(){this.notification.classList.remove("active"),this.notification.classList.add("active"),this.timeout=window.setTimeout(this.setInactive.bind(this),2e3)}}},Symbol.toStringTag,{value:"Module"}));const Bd=Object.freeze(Object.defineProperty({__proto__:null,fadeIn:function(e,t){e.classList.add("fade-in"),setTimeout((()=>{e.classList.remove("fade-in")}),t)},fadeOut:function(e,t){e.classList.add("fade-out"),setTimeout((()=>{e.classList.remove("fade-out")}),t)}},Symbol.toStringTag,{value:"Module"}));const jd=Object.freeze(Object.defineProperty({__proto__:null,default:class ChangeableText{constructor(e=document){e.querySelectorAll("[data-changeable]").forEach((e=>{this.setChangeableText(e)}
6))}setChangeableText(e){const t=e.querySelectorAll("[data-changeable-text]"),i=e.dataset.changeable;let s=!0;t.forEach((e=>{s?(e.classList.add("d-block"),s=!1):e.classList.add("d-none")})),setInterval((()=>{this.changeText(t)}),parseInt(i))}changeText(e){e.forEach((e=>{e.classList.contains("d-block")?(e.classList.remove("d-block"),e.classList.add("d-none")):(e.classList.remove("d-none"),e.classList.add("d-block"))}))}}},Symbol.toStringTag,{value:"Module"}));const Fd=Object.freeze(Object.defineProperty({__proto__:null,default:class Collapse{constructor(){document.querySelectorAll('[data-bs-toggle="collapse"]').forEach((e=>{e.addEventListener("click",(e=>{const t=e.currentTarget;setTimeout((()=>{document.body.dispatchEvent(new Event(d,{bubbles:!0})),setTimeout((()=>{const e=t.getBoundingClientRect().top+window.scrollY-document.querySelector("header .navigation")?.offsetHeight;e<window.scrollY&&window.scrollTo({top:e,behavior:"smooth"})}),300)}),0)}))}))}}},Symbol.toStringTag,{value:"Module"})),$d="data-content-toggle",Nd="["+$d+"]",Vd=$d+"-trigger",Rd="["+Vd+"]",Wd=$d+"-group",Gd=$d+"-order";class ContentToggle{toggleParent;toggleTrigger;toggleItems;observer;constructor(e){this.toggleTrigger=e,this.toggleParent=e.closest("[data-content-toggle-parent]"),this.toggleParent?this.toggleItems=this.toggleParent.querySelectorAll(Nd):this.toggleItems=document.querySelectorAll(Nd),matchMedia("(prefers-reduced-motion: reduce)")?.matches&&this.toggleItems.forEach((e=>e.classList.remove("fade","show"))),this.toggleTrigger.addEventListener("click",this.toggleContent.bind(this)),this.toggleTrigger.addEventListener("change",this.toggleContent.bind(this)),"IntersectionObserver"in window&&(this.observer=new IntersectionObserver(this.loadToggleImageContent.bind(this)),this.observer.observe(e))}loadToggleImageContent(e,t){e.forEach((e=>{const i=e.target;if(e.isIntersecting&&e.intersectionRatio>=0){const e=`[data-content-toggle="${i.dataset.contentToggleTrigger}"]`;document.querySelectorAll("picture"+e+" img, img"+e).forEach((e=>e.removeAttribute("loading"))),t.unobserve(i)}}))}getSibling(e,t){const i=e.parentElement.querySelectorAll(t);for(const s of i)if(s!=e)return s}hideElement(e){if(e.classList.contains("fade"))return new Promise((t=>{e.classList.contains("show")?(e.classList.remove("show"),e.addEventListener("transitionend",(()=>{e.classList.add("d-none"),t()}),{once:!0})):t()}));e.classList.add("d-none")}showElement(e){if(e.classList.contains("fade"))return new Promise((t=>{e.classList.contains("d-none")?(e.classList.remove("d-none"),setTimeout((()=>{e.classList.add("show"),t()}))):t()}));e.classList.remove("d-none")}toggleContent(e){const t=e.currentTarget,i=t.getAttribute(Wd),s="change"===e.type?t.value:t.getAttribute(Vd),n=parseInt(t.getAttribute(Gd),10),r=[],o=[];this.toggleItems.forEach((e=>{if((!i||e.getAttribute(Wd)===i)&&"dummy"!==s){const t=this.getSibling(e.parentElement,"select")?.getAttribute(Gd),i=!!t&&parseInt(t,10),a=-1===e.getAttribute($d).indexOf(s);i&&n?n<i&&(a?o.push(e):r.push(e)):a?o.push(e):r.push(e)}})),Promise.all(o.map(this.hideElement.bind(this))).then((()=>{Promise.all(r.map(this.showElement.bind(this))).then((()=>{t.dispatchEvent(new CustomEvent(p,{bubbles:!0}))}))}))}}const Ud=Object.freeze(Object.defineProperty({__proto__:null,TOGGLE_ORDER:Gd,default:class ContentToggles{constructor(e=document){this.initializeComponent(e),addEventListener("async:loaded",(()=>{this.initializeComponent(e)}))}initializeComponent(e=document){e.querySelectorAll(Rd).forEach((e=>e.component||(e.component=new ContentToggle(e))))}}},Symbol.toStringTag,{value:"Module"}));class DependingSelects{container;selects;selectIndex;constructor(e){this.container=e,this.selects=this.container.querySelectorAll("select"),this.selects.length<=1||this.selects.forEach((e=>{e.addEventListener("change",(e=>{this.resetValue(e)}))}))}resetValue(e){const t=e.currentTarget;this.selectIndex=parseInt(t.getAttribute(Gd),10)||null,this.selectIndex&&this.selects.forEach((e=>{const t=parseInt(e.getAttribute(Gd),10);if(this.selectIndex>=t)return;const i=e.querySelector("option"),s=i.disabled;
6s&&(i.disabled=!1),i.selected=!0;const n=document.createEvent("CustomEvent");n.initCustomEvent("change",!0,!0,{}),e.dispatchEvent(n),s&&(i.disabled=!0)}))}}const Yd=Object.freeze(Object.defineProperty({__proto__:null,default:class DependingSelectsInitializer{constructor(){document.querySelectorAll("[data-depending-selects]").forEach((e=>new DependingSelects(e)))}}},Symbol.toStringTag,{value:"Module"})),Kd="[data-hardware-select], [data-watch-slider]",Xd="[data-tariff]",Qd="[data-color]",Jd="[data-storage]",Zd="variantChooser",eh="lavender",th=["front","back","side"];class HardwareSelectHandler{domElement;domAttribute;tariffs;colors;storages;variants;titleElement;selectedTariff;selectedColor;selectedStorage;selectedVariants;availabilities;lastClickedColorChooser;constructor(e){if(!e.hardwareSelect&&(this.domElement=e,this.domElement.hardwareSelect=this,this.domAttribute=this.domElement.getAttribute("data-hardware-select"),this.tariffs=Array.from(this.domElement.querySelectorAll(Xd)),this.colors=Array.from(this.domElement.querySelectorAll(".color-chooser "+Qd)).filter((e=>this.belongsToThisHandler(e))),this.storages=Array.from(this.domElement.querySelectorAll(".variant-chooser "+Jd)).filter((e=>this.belongsToThisHandler(e))),this.variants=this.getVariants(),this.titleElement=this.domElement.querySelector("[data-title]"),this.availabilities=this.getAvailabilities(),this.domElement.hasAttribute("data-hardware-select-no-events")||(this.tariffs.forEach((e=>e.addEventListener("change",this.selectionChanged.bind(this)))),this.colors.forEach((e=>{e.addEventListener("change",this.onColorClicked.bind(this)),e.addEventListener("change",this.selectionChanged.bind(this))}
6)),this.storages.forEach((e=>{e.addEventListener("change",this.onStorageChanged.bind(this)),e.addEventListener("change",this.selectionChanged.bind(this))})),this.variants.forEach((e=>e.element.addEventListener("change",this.selectionChanged.bind(this))))),this.colors.length>0||this.variants.length>0||this.storages.length>0)){this.initializeColorDisplayNames();null!==this.domElement.querySelector(".variant-chooser")&&this.updateColorVisibilityByStorage(),this.readSelectedValues(),this.updateVariantAvailability(),setTimeout((()=>{this.dispatchUpdate()}),0)}}belongsToThisHandler(e){const t=e.closest(Kd);return t?.getAttribute("data-hardware-select")===this.domAttribute}dispatchUpdate(){document.body.dispatchEvent(new CustomEvent(c,{bubbles:!0,detail:{tariffId:this.selectedTariff?.value,hardwareId:this.domElement.dataset.hardwareSelect,title:this.titleElement?.dataset.title,images:this.getImages(this.selectedColor),colorId:this.selectedColor?.value,storageId:this.selectedStorage?.value,variants:this.selectedVariants}}))}getImages(e){if(!e)return;e.closest(".color-chooser--case")&&(e=e.closest("li").querySelector('.color-chooser:not(.color-chooser--case):not(.d-none) input[type="radio"]:checked'));const t=e?Object.keys(e.dataset).filter((e=>e.startsWith(eh))).map((t=>({view:t.substring(8).toLowerCase(),imagePath:e.dataset[t]}))):[];return th.forEach((e=>{t.some((t=>t.view===e))||t.push({view:e,imagePath:null})})),t}readSelectedValues(){this.selectedTariff=this.domElement.querySelector(Xd+":checked")||this.selectedTariff,this.selectedColor=this.domElement.querySelector(Qd+":checked")||this.selectedColor,this.selectedStorage=this.domElement.querySelector(".variant-chooser "+Jd+":checked")||this.selectedStorage,this.selectedStorage&&this.setVariantLabel(this.selectedStorage),this.selectedVariants=this.getSelectedVariants()||this.selectedVariants,this.selectedVariants&&this.selectedVariants.forEac
6h((e=>this.setVariantLabel(e.element)))}selectionChanged(e){this.readSelectedValues(),this.updateVariantAvailability(),e?.noUpdate||!1===e?.isTrusted||(this.dispatchUpdate(),this.updateURL(),document.body.dispatchEvent(new CustomEvent("strike:recalculate",{bubbles:!0})))}setVariantLabel(e){const t=e.closest(".variant-chooser"),i=e.closest(".variant-chooser__tile");if(!t||!i)return;const s=i.querySelector(".variant-chooser__display")?.textContent||i.textContent,n=t.querySelector(".variant-chooser__name-display");n&&(n.innerHTML=s)}onColorClicked(e){const t=e.target;t&&t.matches('input[type="radio"][data-color]')&&(this.lastClickedColorChooser=t.closest(".color-chooser"),this.updateDisplayNameForChooser(this.lastClickedColorChooser,t),this.updateStorageVisibilityByColor())}onStorageChanged(e){const t=e.target;t&&t.matches('input[type="radio"][data-storage]')&&this.updateColorVisibilityByStorage()}updateColorVisibilityByStorage(){const e=this.domElement.querySelector(".variant-chooser input[data-storage]:checked");if(!e)return;const t=e.dataset.storage,i=this.domElement.querySelectorAll(".color-chooser:not(.d-none):not(.color-chooser--case) input[data-color][data-storage]"),s=e.dataset.color;
6i.forEach((e=>{const i=e.closest(".color-chooser__tile");if(!i)return;e.dataset.storage===t?(i.classList.remove("d-none"),e.classList.remove("d-none"),e.value!==s||e.checked||(e.checked=!0)):(i.classList.add("d-none"),e.classList.add("d-none"),e.checked&&(e.checked=!1))}));const n=Array.from(this.domElement.querySelectorAll(".color-chooser input[data-color]:not(.d-none)"));!n.some((e=>e.checked))&&n.length>0&&(n[0].checked=!0,this.updateDisplayNameForChooser(n[0].closest(".color-chooser"),n[0]),this.lastClickedColorChooser=n[0].closest(".color-chooser"))}updateStorageVisibilityByColor(){const e=this.domElement.querySelector(".color-chooser:not(.color-chooser--case) input[data-storage]:checked");if(!e)return;const t=e.dataset.color,i=this.domElement.querySelectorAll(".variant-chooser input[data-color][data-storage]"),s=e.dataset.storage;i.forEach((e=>{const i=e.closest(".variant-chooser__tile");if(!i)return;e.dataset.color===t?(i.classList.remove("d-none"),e.classList.remove("d-none"),e.value!==s||e.checked||(e.checked=!0)):(i.classList.add("d-none"),e.classList.add("d-none"),e.checked&&(e.checked=!1))}));const n=Array.from(this.domElement.querySelectorAll(".variant-chooser input[data-color]:not(.d-none)"));!n.some((e=>e.checked))&&n.length>0&&(n[0].checked=!0,this.lastClickedColorChooser=e.closest(".color-chooser"))}initializeColorDisplayNames(){const e=this.domElement.querySelectorAll(".color-chooser");e.forEach((e=>{const t=e.querySelector('input[type="radio"]:checked')||e.querySelector('input[type="radio"]');t&&(t.checked=!0,this.updateDisplayNameForChooser(e,t))}));const t=Array.from(e).filter((e=>{if(e.classList.contains("d-none"))return!1;const t=e.querySelector('input[type="radio"]:checked');return t&&t.dataset.color}));if(t.length>0)this.lastClickedColorChooser=t[t.length-1];else{const t=Array.from(e).findLast((e=>!e.classList.contains("d-none")));t&&(this.lastClickedColorChooser=t)}}updateDisplayNameForChooser(e,t){const i=e.querySelector(".color-chooser__name-display");i&&t.dataset.displayName&&(i.innerHTML=t.dataset.displayName)}resetAvailabilityShown(){this.availabilities.forEach((e=>{e.removeAttribute("data-availability-shown")}))}updateVariantAvailability(){const e=[...this.storages,...this.variants.map((e=>e.element))];this.resetAvailabilityShown(),this.matchVariants(e),this.executeFallbackForVariants(this.storages),this.executeFallbackForVariantChooser()}matchVariants(e){const t=this.getColorPrefixForAvailability(),i=null!==this.domElement.querySelector(".variant-chooser");let s=this.domElement.querySelector(".color-chooser:not(.color-chooser--case):not(.d-none) input[data-color]:checked:not(.d-none)");if(s||(s=this.domElement.querySelector(".color-chooser:not(.color-chooser--case):not(.d-none) input[data-color]:checked")),s||(s=this.domElement.querySelector(".color-chooser:not(.color-chooser--case):not(.d-none) input[data-color]")),s){const e=s.value+"."+(s.dataset.storage||"0");Array.from(this.availabilities).forEach((t=>{t.getAttribute("data-variantid").endsWith(e)?(t.classList.remove("d-none"),t.setAttribute("data-availability-shown","true")):(t.classList.add("d-none"),t.setAttribute("data-availability-shown","false"))}))}if(!i)return;e.filter((e=>{if(e.classList.contains("d-none"))return!1;const t=e.closest(".variant-chooser__tile");return!t||!t.classList.contains("d-none")})).forEach((e=>{const i=e.value;this.availabilities.length>0&&Array.from(this.availabilities).some((e=>{const s=e.getAttribute("data-variantid");return t?s.endsWith(t+i):s.endsWith("."+i)}))?(e.disabled=!1,this.setAvailability(e,t,!0)):this.availabilities.length>0&&(e.disabled=!0,e.checked=!1,this.setAvailability(e,t,!1))}))}getColorPrefixForAvailability(){let e=this.lastClickedColorChooser||this.domElement.querySelector(".color-chooser:not(.d-none):not(.color-chooser--case)");if(!e)return null;e.classList.contains("color-chooser--case")&&(e=e.closest("li").querySelector(".color-chooser:not(.color-chooser--case):not(.d-none)"));const t=e.querySelector('input[type="radio"]:checked');if(!t)return null;const i=t.value,s="."+i+".",n=i+".";for(const r of this.availabilities){const e=r.getAttribute("data-variantid"),t=e.indexOf(s);if(-1!==t){return e.substring(0,t+s.length)}if(e.startsWith(n))return n}return null}setAvailability(e,t,i){const s=e.value,n=e.checked;
6this.availabilities.forEach((e=>{const r=e.getAttribute("data-variantid");(t?r===t+s:r.endsWith("."+s))&&(i&&n?e.classList.remove("d-none"):i||e.classList.add("d-none"),t&&e.setAttribute("data-availability-shown",i&&n?"true":"false"))}))}getSelectedVariants(){return this.getVariantInputs(!0).map((e=>({type:Object.keys(e.dataset).find((e=>e.includes(Zd))).replace("variantChooser","").toLowerCase(),element:e})))}getVariants(){return this.getVariantInputs(!1).map((e=>({type:Object.keys(e.dataset).find((e=>e.includes(Zd))).toLowerCase(),element:e})))}getVariantInputs(e){return Array.from(this.domElement.querySelectorAll("input")).filter((t=>{const i=Object.keys(t.dataset).some((e=>e.includes(Zd)));return e?i&&t.checked&&!t.disabled:i}))}getAvailabilities(){return this.domElement.querySelectorAll("[data-variantid]")}executeFallbackForVariantChooser(){this.domElement.querySelectorAll(".variant-chooser").forEach((e=>{this.executeFallbackForVariants(Array.from(e.querySelectorAll("input")))}))}executeFallbackForVariants(e){if(!e.some((e=>e.checked)))for(const t of e)if(!t.disabled){t.click();break}}updateURL(){const e=this.selectedColor?.value,t=this.selectedStorage?.value;if(!e||!t)return;const i=new URLSearchParams(location.search);i.set("color",e),i.set("size",t),history.replaceState(null,"","?"+i.toString())}}const ih=Object.freeze(Object.defineProperty({__proto__:null,HardwareSelectHandler:HardwareSelectHandler,default:class HardwareSelectHandlers{constructor(e=document){const t=(e,t=!1)=>{e.querySelectorAll(Kd).forEach((e=>{e.hasAttribute("data-no-init")&&!t||new HardwareSelectHandler(e)}))};t(e),addEventListener("async:loaded",(()=>{setTimeout((()=>{t(document,!0)}),0)}))}}},Symbol.toStringTag,{value:"Module"}));class HardwareSelectbox extends HardwareSelectHandler{constructor(e){super(e),this.domElement.querySelector("select").addEventListener("change",(e=>{this.hardwareObject.hardwareId=e.currentTarget.value,this.selectionChanged(e)}))}}const sh=Object.freeze(Object.defineProperty({__proto__:null,default:class HardwareSelectboxes{constructor(e=document){e.querySelectorAll("[data-hardware-selectbox]").forEach((e=>new HardwareSelectbox(e)))}}},Symbol.toStringTag,{value:"Module"}));class HardwareTitle{constructor(e){document.body.addEventListener(c,(t=>{e.innerHTML=t.detail?.title}))}}const nh=Object.freeze(Object.defineProperty({__proto__:null,HardwareTitle:HardwareTitle,default:class HardwareTitleInitializer{constructor(e=document){e.querySelectorAll("[data-hardware-title]").forEach((e=>new HardwareTitle(e)))}}},Symbol.toStringTag,{value:"Module"}));const rh="[data-hardware-update]",oh=rh+" "+rh,ah="[data-image] img";class HardwareUpdateHandler{constructor(e){this.domElement=e;const t=this.domElement.querySelector(rh);if(t&&(this.goodieUpdater=new HardwareUpdateHandler(t)),this.hardwareIds=[],""!==this.domElement.dataset.hardwareUpdate)try{this.hardwareIds=JSON.parse(this.domElement.dataset.hardwareUpdate)}catch(i){this.hardwareIds.push(this.domElement.dataset.hardwareUpdate)}document.body.addEventListener(c,(({detail:e})=>{let t=function(e){let t=[];const i={size:3,connectivity:4};return e.tariffId&&t.push(e.tariffId),e.hardwareId&&t.push(e.hardwareId),e.colorId&&t.push(e.colorId),e.storageId&&t.push(e.storageId),e.variants.forEac
6h((e=>{const s=e.type;t[i[s]]=e.element.value})),t=t.filter((e=>e)),t.join(".")}(e);this.hardwareIds.length>0&&!this.hardwareIds.includes(e.hardwareId)||(this.goodieUpdater&&(t+=this.goodieUpdater.getCurrentVariantId()),this.updateImages(e),this.updateVariants(t),this.updateSelections(e),this.domElement.dispatchEvent(new CustomEvent(u),{bubbles:!0}))}))}updateSelection(e,t,i,s,n,r){if(e[t]){const o=this.domElement.querySelector(`[${i}][value="${e[t]}"]`);if(!o)return;const a=o.closest(s),l=a?.querySelector(n);if(l&&!o.checked){const e=o.parentElement.querySelector(r);e&&(l.innerHTML=e);const t=o.closest("[data-hardware-update]");t&&t.hardwareSelect.selectionChanged({noUpdate:!0})}}}updateSelections(e){this.updateSelection(e,"colorId","data-color",".color-chooser",".color-chooser__name-display",".color-chooser__name"),this.updateSelection(e,"storageId","data-storage",".variant-chooser",".variant-chooser__name-display",".variant-chooser__display")}getCurrentVariantId(){const e=this.domElement.querySelector("[data-color]:checked")||this.domElement.querySelector("[data-color]");return e?"."+this.domElement.dataset.hardwareUpdate+"."+e.value:""}updateImages(e){const t=this.findElements(ah);if(t.length){let i;e.images.forEach((function(e){"front"===e.view&&(i=e)})),i&&t.forEach((e=>{const t=e.getAttribute("data-view");"shadow"!==t&&"no-replace"!==t&&e.setAttribute("src",i.imagePath)})),e.images.forEach((e=>{this.findElements(ah+`[data-view="${e.view}"]`).forEach((t=>{t.setAttribute("src",e.imagePath)}))}))}}findElements(e){const t=this.domElement.querySelectorAll(e);if(this.goodieUpdater){const i=Array.from(this.goodieUpdater.domElement.querySelectorAll(e));return Array.from(t).filter((e=>!i.includes(e)))}return t}updateVariants(e){this.domElement.querySelectorAll("[data-variantid]").forEach((t=>{if(t.hasAttribute("data-availability-shown"))"true"===t.dataset.availabilityShown?t.classList.remove("d-none"):t.classList.add("d-none");else{let s;try{s=JSON.parse(t.dataset.variantid)}catch(i){s=[t.dataset.variantid]}s.includes(e)?t.classList.remove("d-none"):t.classList.add("d-none")}}))}}const lh=Object.freeze(Object.defineProperty({__proto__:null,default:class HardwareUpdateHandlers{constructor(e=document){const t=[],i=e=>{const i=e.querySelectorAll(oh);e.querySelectorAll(rh).filter((e=>!i.includes(e))).forEach((e=>
6{t.includes(e)||(new HardwareUpdateHandler(e),t.push(e))}))};i(e),addEventListener("async:loaded",(()=>{setTimeout((()=>{i(document)}),0)}))}}},Symbol.toStringTag,{value:"Module"}));try{const e=document.querySelector("[data-close-lightbox]");e&&e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),window.parent.postMessage("closeLightbox","*")})),(location.search.includes("lightbox")||(location.href.includes("localhost")||location.href.includes("patternlab"))&&window.parent!==window&&window.frameElement.classList.contains("modal-lite-iframe"))&&document.body.classList.add("in-modal-lite")}catch(Fh){console.error(Fh)}const ch=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function dh(e,t,i=!1){let s;return function(){const n=this,r=arguments;const o=i&&!s;clearTimeout(s),s=setTimeout((function(){s=null,i||e.apply(n,r)}),t),o&&e.apply(n,r)}}class ResizeProxy{previousSizes;constructor(){this.previousSizes={width:null,height:null},this.updateWindowSize(),window.addEventListener("resize",this.debouncedResizeHandler(),{passive:!0})}static triggerResize(e=""){const t=document.createEvent("CustomEvent"),i="resize-proxy"+("width"===e||"height"===e?":"+e:"");t.initCustomEvent(i,!0,!0,{}),window.dispatchEvent(t)}debouncedResizeHandler(){return dh(this.resizeHandler.bind(this),250)}resizeHandler(){const e=window.innerWidth,t=window.innerHeight;this.previousSizes.width!==e&&ResizeProxy.triggerResize("width"),this.previousSizes.height!==t&&ResizeProxy.triggerResize("height"),ResizeProxy.triggerResize(),this.updateWindowSize()}updateWindowSize(){requestAnimationFrame((()=>{this.previousSizes.width=window.innerWidth,this.previousSizes.height=window.innerHeight}))}}const hh=Object.freeze(Object.defineProperty({__proto__:null,default:ResizeProxy},Symbol.toStringTag,{value:"Module"})),uh={height:"0px",marginTop:"0px",paddingTop:"0px",marginBottom:"0px",paddingBottom:"0px"},ph=(e,t={overflow:"",transition:"",height:"",marginTop:"",paddingTop:"",marginBottom:"",paddingBottom:""})=>Object.assign(e.style,t),mh=(e,t,i)=>new Promise((s=>{ph(e,t),setTimeout((()=>{e.style.transition="all 400ms",ph(e,i)}));const n=()=>{e.removeEventListener("transitionend",n),e.style.overflow="",e.style.transition="",ph(e),s()};e.addEventListener("transitionend",n)}));async function gh(e){const t=e.classList.contains("d-none");e.classList.remove("d-none");const i=getComputedStyle(e),s={height:`${e.clientHeight}px`,marginTop:i.marginTop,paddingTop:i.paddingTop,marginBottom:i.marginBottom,paddingBottom:i.paddingBottom};e.style.overflow="hidden",t?await mh(e,uh,s):(await mh(e,s,uh),e.classList.add("d-none"))}const fh=Object.freeze(Object.defineProperty({__proto__:null,slideToggle:gh},Symbol.toStringTag,{value:"Module"}));class MarketingBoxExtension{constructor(e){const t=document.querySelector("#"+e.dataset.bsTarget),i=document.querySelectorAll(`[data-bs-target="${e.dataset.bsTarget}"]`);e.addEventListener("mouseenter",(()=>t.querySelectorAll("[loading=lazy]").forEach((e=>e.loading="eager"))),{once:!0}),t.classList.add("d-none"),e.addEventListener("click",(()=>{ResizeProxy.triggerResize("width"),i.forEach((e=>e.classList.toggle("open"))),dispatchEvent(new Event(u,{bubbles:!0})),gh(t).then((()=>ResizeProxy.triggerResize()))}))}}const vh=Object.freeze(Object.defineProperty({__proto__:null,MarketingBoxExtension:MarketingBoxExtension,default:class MarketingBoxExtensionInitializer{constructor(e=document){this.initMarketingBoxExtensions(e)}initMarketingBoxExtensions(e){e.querySelectorAll(".marketing-box__extension-trigger").forEach((e=>new MarketingBoxExtension(e)))}}},Symbol.toStringTag,{value:"Module"}));class ScrollTo{el;header;scrollElement;scrollElementId;constructor(e){this.el=e,this.el.closest(".content-tab")?.querySelector(".tariffboxes")||(this.scrollElementId=this.el.dataset.scrollTo||this.el.getAttribute("href"),this.scrollElement=document.querySelector(this.scrollElementId),this.scrollElement&&(this.header=document.querySelector(".navigation"),this.el.addEventListener("mouseenter",(()=>this.onMouseEnter()),{once:!0}),this.el.addEventListener("click",(e=>this.onClick(e)))))}onMouseEnter(){const e=this.getScrollHeight();document.querySelectorAll("[loading=lazy]").forEach((t=>{!t.complete&&t.getBoundingClientRect().top<e&&(t.loading="eager")}))}onClick(e){if(this.el.closest("."+Ce))return!1;dispatchEvent(new Event("scroll:animating",{bubbles:!0})),this.scrollWithListener(this.getScrollHeight()),e.preventDefault()}scrollWithListener(e){window.scrollTo({top:e,behavior:"smooth"}),window.addEventListener("scrollend",(()=>{const t=this.getScrollHeight();t-e>20&&(e=t,this.scrollWithListener(t))}),{once:!0})}getScrollHeight(){const e=this.header?this.header.scrollHeight:0;return window.scrollY+this.scrollElement.getBoundingClientRect().top-e}}const bh=Object.freeze(Object.defineProperty({__proto__:null,ScrollTo:ScrollTo,default:class ScrollToInitializer{constructor(){this.initialize(),window.addEventListener("async:loaded",(()=>{this.initialize()}))}initialize(){document.querySelectorAll('[data-scroll-to], a[href^="#"]:not([href="#"])').forEach((e=>{new ScrollTo(e)}))}}},Symbol.toStringTag,{value:"Module"}));const yh=Object.freeze(Object.defineProperty({__proto__:null,default:class ScrollTop{constructor(){this.initialize(),addEventListener("async:loaded",(()=>{this.initialize()}))}initialize(){document.querySelectorAll("[data-scroll-top]").forEach((e=>{e.addEventListener("click",(()=>scrollTo({top:0,behavior:"smooth"}
6)))}))}}},Symbol.toStringTag,{value:"Module"}));class Select{select;targets;constructor(e){this.select=e,this.targets=document.querySelectorAll(e.dataset.showHideSelect),this.select.addEventListener("change",this.changed.bind(this))}changed(){const e=this.select.options[this.select.selectedIndex];e.hasAttribute("data-show")&&this.show(),e.hasAttribute("data-hide")&&this.hide()}show(){for(let e=0;e<this.targets.length;e++)this.targets[e].classList.remove("d-none")}hide(){for(let e=0;e<this.targets.length;e++)this.targets[e].classList.add("d-none")}}const wh=Object.freeze(Object.defineProperty({__proto__:null,default:class ShowHideSelect{selects;constructor(){this.selects=document.querySelectorAll("[data-show-hide-select]"),this.selects=this.selects.map((e=>new Select(e)))}trigger(e){this.selects.filter((t=>e===t.select))[0].changed()}}},Symbol.toStringTag,{value:"Module"})),Sh="[data-show-more-trigger]",_h="[data-show-more-body]";class ShowMore{group;trigger;triggers;bodies;constructor(e){if("true"!==e.dataset.isInitialized){if(e.dataset.isInitialized="true",this.group=e.dataset.showMoreGroup,this.group){const t='[data-show-more-group="'+this.group+'"]';this.trigger=e.querySelector(Sh),this.triggers=document.querySelectorAll(t+" "+Sh),this.bodies=document.querySelectorAll(t+" "+_h)}else this.triggers=e.querySelectorAll(Sh),this.bodies=e.querySelectorAll(_h),this.trigger=this.triggers[0];this.registerHandlers()}}registerHandlers(){let e=this.trigger,t="click";const i=this.trigger.tagName&&"label"===this.trigger.tagName.toLowerCase();i&&(e=this.trigger.querySelector("input"),t="change");const s=()=>{this.triggers.forEach((e=>{const t=e.classList.toggle("is-active");if(e.ariaExpanded="true"!==e.ariaExpanded,i){const i=e.querySelector("input");i&&(i.checked=t)}if(e.dataset.toggleText){const t=e.dataset.toggleText,i=e.innerText;e.innerText=t,e.dataset.toggleText=i}})),this.handelOpenAndClosing()};e.addEventListener(t,(e=>{e.stopPropagation(),s()})),e.addEventListener("keyup",(e=>{"Enter"!==e.key&&" "!==e.key||s()}))}handelOpenAndClosing(){this.bodies.forEach((e=>{const t=e.querySelectorAll("a");e.classList.toggle("is-hidden")?t.forEach((e=>{e.setAttribute("tabindex","-1")})):t.forEach((e=>{e.removeAttribute("tabindex")}))}))}}const Eh=Object.freeze(Object.defineProperty({__proto__:null,ShowMore:ShowMore,default:class ShowMoreInitializer{constructor(e=document){this.init(e),window.addEventListener("async:loaded",(e=>this.init(e.target)))}init(e){e.querySelectorAll("[data-show-more]").forEach((e=>new ShowMore(e)))}}},Symbol.toStringTag,{value:"Module"}));const Ch=Object.freeze(Object.defineProperty({__proto__:null,default:class StringPolyfill{constructor(){String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t})}}},Symbol.toStringTag,{value:"Module"}));class ToggleFeatures{triggers;targets;constructor(e){this.triggers=e.querySelectorAll("[data-toggle-features-trigger]"),this.targets=e.querySelectorAll("[data-toggle-features-body]"),this.registerHandlers()}toggleTargetsVisibility(){this.targets.forEach((e=>{e.classList.toggle("is-hidden")}))}registerHandlers(){0!==this.triggers.length&&this.triggers.forEach((e=>{e.addEventListener("click",(t=>{if(t.stopPropagation(),e.classList.toggle("is-active"),!e.dataset.toggleText)return;const i=e.dataset.toggleText,s=e.innerText;e.innerText=i,e.dataset.toggleText=s,this.toggleTargetsVisibility()}))}))}}const xh=Object.freeze(Object.defineProperty({__proto__:null,ToggleFeatures:ToggleFeatures,default:class ToggleFeaturesInitializer{constructor(e=document){this.init(e),addEventListener("async:loaded",(({target:e})=>this.init(e)))}init(e){e.querySelectorAll("[data-toggle-features]").forEach((e=>new ToggleFeatures(e)))}}},Symbol.toStringTag,{value:"Module"}));const Th=Object.freeze(Object.defineProperty({__proto__:null,default:class Tooltip{constructor(){this.registerHandlers()}registerHandlers(){document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach((e=>new xr(e,{trigger:"hover"})))}}},Symbol.toStringTag,{value:"Module"})),Lh="data-value-value",kh="["+Lh+"]",Ah="data-value-target",Oh="["+Ah+"]";class Value{element;target;value;constructor(e){this.element=e,this.target=e.getAttribute(Ah),this.value=e.getAttribute(Lh),this.element.addEventListener("click",(()=>{document.querySelectorAll(this.target).forEach((e=>{e.value=this.value}))}))}}const Ih=Object.freeze(Object.defineProperty({__proto__:null,Value:Value,default:class ValueInitializer{constructor(e=document){e.querySelectorAll(kh+Oh).forEac
6h((e=>new Value(e)))}}},Symbol.toStringTag,{value:"Module"}));NodeList.prototype.map=Array.prototype.map,NodeList.prototype.filter=Array.prototype.filter,NodeList.prototype.includes=Array.prototype.includes;const Dh=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ph=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Mh="data-equal-heights",qh=Mh+"-exclude-breakpoints",zh=Mh+"-exclude",Hh="equal-heights-initialized";!function(){function e(s){if(!s)throw new Error("No options passed to Waypoint constructor");if(!s.element)throw new Error("No element option passed to Waypoint constructor");if(!s.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=e.Adapter.extend({},e.defaults,s),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=s.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,t+=1}var t=0,i={};e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){var t=[];for(var s in i)t.push(i[s]);for(var n=0,r=t.length;r>n;n++)t[n][e]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){for(var t in e.Context.refreshAll(),i)i[t].enabled=!0;return this},e.refreshAll=function(){e.Context.refreshAll()},e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=e}(),function(){function e(e){window.setTimeout(e,1e3/60)}function t(e){this.element=e,this.Adapter=n.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,s[e.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new t(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,s={},n=window.Waypoint,r=window.onload;t.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},t.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;e&&t&&!i&&(this.adapter.off(".waypoints"),delete s[this.key])},t.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,n.requestAnimationFrame(e))}))},t.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",(function(){(!t.didScroll||n.isTouch)&&(t.didScroll=!0,n.requestAnimationFrame(e))}))},t.prototype.handleResize=function(){n.Context.refreshAll()},t.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in t){var s=t[i],n=s.newScroll>s.oldScroll?s.forward:s.backward;for(var r in this.waypoints[i]){var o=this.waypoints[i][r];if(null!==o.triggerPoint){var a=s.oldScroll<o.triggerPoint,l=s.newScroll>=o.triggerPoint;(a&&l||!a&&!l)&&(o.queueTrigger(n),e[o.group.id]=o.group)}}}for(var c in e)e[c].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}}
6,t.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var s=0,n=e.length;n>s;s++)e[s].destroy()},t.prototype.refresh=function(){var e,t=this.element==this.element.window,i=t?void 0:this.adapter.offset(),s={};for(var r in this.handleScroll(),e={horizontal:{contextOffset:t?0:i.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:i.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var o=e[r];for(var a in this.waypoints[r]){var l,c,d,h,u=this.waypoints[r][a],p=u.options.offset,m=u.triggerPoint,g=0,f=null==m;u.element!==u.element.window&&(g=u.adapter.offset()[o.offsetProp]),"function"==typeof p?p=p.apply(u):"string"==typeof p&&(p=parseFloat(p),u.options.offset.indexOf("%")>-1&&(p=Math.ceil(o.contextDimension*p/100))),l=o.contextScroll-o.contextOffset,u.triggerPoint=Math.floor(g+l-p),c=m<o.oldScroll,d=u.triggerPoint>=o.oldScroll,h=!c&&!d,!f&&(c&&d)?(u.queueTrigger(o.backward),s[u.group.id]=u.group):(!f&&h||f&&o.oldScroll>=u.triggerPoint)&&(u.queueTrigger(o.forward),s[u.group.id]=u.group)}}return n.requestAnimationFrame((function(){for(var e in s)s[e].flushTriggers()})),this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var e in s)s[e].refresh()},t.findByElement=function(e){return s[e.waypointContextKey]},window.onload=function(){r&&r(),t.refreshAll()},n.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},n.Context=t}(),function(){function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}function i(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),s[this.axis][this.name]=this}var s={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(e){this.waypoints.push(e)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var s=this.triggerQueues[i],n="up"===i||"left"===i;s.sort(n?t:e);for(var r=0,o=s.length;o>r;r+=1){var a=s[r];(a.options.continuous||r===s.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(t){this.waypoints.sort(e);var i=n.Adapter.inArray(t,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(t){this.waypoints.sort(e);var i=n.Adapter.inArray(t,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},i.prototype.remove=function(e){var t=n.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(e){return s[e.axis][e.name]||new i(e)},n.Group=i}(),function(){function e(e){return e===e.window}function t(t){return e(t)?t:t.defaultView}function i(e){this.element=e,this.handlers={}}var s=window.Waypoint;i.prototype.innerHeight=function(){return e(this.element)?this.element.innerHeight:this.element.clientHeight},i.prototype.innerWidth=function(){return e(this.element)?this.element.innerWidth:this.element.clientWidth},i.prototype.off=function(e,t){function i(e,t,i){for(var s=0,n=t.length-1;n>s;s++){var r=t[s];i&&i!==r||e.removeEventListener(r)}}var s=e.split("."),n=s[0],r=s[1],o=this.element;if(r&&this.handlers[r]&&n)i(o,this.handlers[r][n],t),this.handlers[r][n]=[];else if(n)for(var a in this.handlers)i(o,this.handlers[a][n]||[],t),this.handlers[a][n]=[];else if(r&&this.handlers[r]){for(var l in this.handlers[r])i(o,this.handlers[r][l],t);this.handlers[r]={}}},i.prototype.offset=function(){if(!this.element.ownerDocument)return null;var e=this.element.ownerDocument.documentElement,i=t(this.element.ownerDocument),s={top:0,left:0};return this.element.getBoundingClientRect&&(s=this.element.getBoundingClientRect()),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}},i.prototype.on=function(e,t){var i=e.split("."),s=i[0],n=i[1]||"__default",r=this.handlers[n]=this.handlers[n]||{};(r[s]=r[s]||[]).push(t),this.element.addEventListener(s,t)},i.prototype.outerHeight=function(t){var i,s=this.innerHeight();return t&&!e(this.element)&&(i=window.getComputedStyle(this.element),s+=parseInt(i.marginTop,10),s+=parseInt(i.marginBottom,10)),s},i.prototype.outerWidth=function(t){var i,s=this.innerWidth();return t&&!e(this.element)&&(i=window.getComputedStyle(this.element),s+=parseInt(i.marginLeft,10),s+=parseInt(i.marginRight,10)),s},i.prototype.scrollLeft=function(){var e=t(this.element);return e?e.pageXOffset:this.element.scrollLeft},i.prototype.scrollTop=function(){var e=t(this.element);return e?e.pageYOffset:this.element.scrollTop},i.extend=function(){function e(e,t){if("object"==typeof e&&"object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}for(var t=Array.prototype.slice.call(arguments),i=1,s=t.length;s>i;i++)e(t[0],t[i]);return t[0]},i.inArray=function(e,t,i){return null==t?-1:t.indexOf(e,i)},i.isEmptyObject=function(e){for(var t in e)return!1;return!0}
6,s.adapters.push({name:"noframework",Adapter:i}),s.Adapter=i}();const Bh=Object.assign({"/src/components/atoms/buttons/button.js":t,"/src/components/atoms/buttons/share-button.js":r,"/src/components/atoms/filter/filter.script.js":M,"/src/components/atoms/form-elements/central-login.js":q,"/src/components/atoms/form-elements/controls.js":z,"/src/components/atoms/form-elements/dateChooser.js":Q,"/src/components/atoms/form-elements/form-validator.js":J,"/src/components/atoms/form-elements/searchbar.js":de,"/src/components/atoms/form-elements/searchbarNext.script.js":he,"/src/components/atoms/form-elements/select.js":fe,"/src/components/atoms/form-elements/switch.js":ve,"/src/components/atoms/hardwarebox-elements/color-chooser.js":be,"/src/components/atoms/hardwarebox-elements/variant-chooser.js":ye,"/src/components/atoms/iframe/iframe.js":we,"/src/components/atoms/overlays/modal-lite.js":Eo,"/src/components/atoms/overlays/overlay.script.js":Lo,"/src/components/atoms/overlays/popover.script.js":ko,"/src/components/atoms/service-card/service-card.js":Ao,"/src/components/atoms/skip-menu/skip-menu.js":Oo,"/src/components/atoms/sticky-top-wrapper/sticky-top-wrapper.js":Po,"/src/components/atoms/strike/strike.script.js":Mo,"/src/components/atoms/trindicator/trindicator.script.js":Ho,"/src/components/atoms/unibox-halo/unibox-halo.js":al,"/src/components/atoms/videos/lazy-video.js":pl,"/src/components/molecules/amount/amount.js":gl,"/src/components/molecules/animation-container/animation-container.js":fl,"/src/components/molecules/benefits/benefits.js":Tl,"/src/components/molecules/bracelet-configurator-preview/bracelet-configurator-preview.js":Ll,"/src/components/molecules/bracelet-configurator-slider/bracelet-configurator-slider.js":kl,"/src/components/molecules/campaign-countdown/campaign-countdown.js":Ml,"/src/components/molecules/contact-bubble/contact-bubble.js":ql,"/src/components/molecules/contact-palette/contact-palette-item.js":zl,"/src/components/molecules/content-tab/content-tab.js":Bl,"/src/components/molecules/countdown-sticky/countdown-sticky.js":jl,"/src/components/molecules/countdown-timer/countdown-timer.js":$l,"/src/components/molecules/device-slider/device-slider-breakpoints.js":Vl,"/src/components/molecules/device-slider/device-slider-configs.js":Wl,"/src/components/molecules/device-slider/device-slider.js":Ul,"/src/components/molecules/fx-reflection/fx-reflection.js":Yl,"/src/components/molecules/hardware-box/hardware-box.js":tc,"/src/components/molecules/image-gallery/image-gallery.js":ac,"/src/components/molecules/logo-slider/logo-slider.js":lc,"/src/components/molecules/mini-shopping-cart/mini-shopping-cart.js":cc,"/src/components/molecules/option-chooser/option-chooser.js":dc,"/src/components/molecules/parallax/parallax.js":hc,"/src/components/molecules/price-box/price-box.js":uc,"/src/components/molecules/quick-entries/quick-entries.js":vc,"/src/components/molecules/quick-links/quick-links.js":bc,"/src/components/molecules/shopping-cart-items/shopping-cart-table.js":yc,"/src/components/molecules/sticky-elements/sticky-contact.js":Sc,"/src/components/molecules/sticky-elements/sticky-header.js":kc,"/src/components/molecules/sticky-elements/sticky-section-header.js":Ac,"/src/components/molecules/subnavigation/progress-bar.js":Oc,"/src/components/molecules/subnavigation/section-navigation.script.js":Ic,"/src/components/molecules/subnavigation/subnavigation-bk.js":Pc,"/src/components/molecules/tariffbox-elements/tariffbox-configurator.script.js":Mc,"/src/components/molecules/tariffbox-elements/tariffbox-head-action.script.js":qc,"/src/components/molecules/tariffbox-elements/tariffbox-toggle.js":zc,"/src/components/molecules/text-autowidth/text-autowidth.js":Hc,"/src/components/molecules/thumbnail-container/thumbnail-container.js":jc,"/src/components/molecules/tile/tile.script.js":Fc,"/src/components/organisms/anchor-pills-section/anchor-pills-section.js":Vc,"/src/components/organisms/bracelet-configurator/bracelet-configurator.js":Rc,"/src/components/organisms/card-decks/card-accordion-deck.script.js":Wc,"/src/components/organisms/card-grid/card-grid-slider.js":Gc,"/src/components/organisms/card-grid/card-grid.script.js":Uc,"/src/components/organisms/card-grid/product-card-grid.js":Yc,"/src/components/organisms/content-slider/content-slider.script.js":Xc,"/src/components/organisms/funnel-teaser-container/funnel-teaser-container.js":Qc,"/src/components/organisms/hardware-checker/hardware-checker.js":Jc,"/src/components/organisms/hardware-slider/hardware-slider.js":Zc,"/src/components/organisms/hw-comparison/hw-comparison.js":sd,"/src/components/organisms/hwd-configurator/hwd-configurator.js":od,"/src/components/organisms/image-text-animation/image-text-animation.js":ad,"/src/components/organisms/marketing-box/marketing-box-language-toggle.js":ld,"/src/components/organisms/marketing-box/marketing-box.js":cd,"/src/components/organisms/navigation/_navigation.js":pd,"/src/components/organisms/options-grid
6/options-grid.js":md,"/src/components/organisms/options-slider/options-slider-grid.js":gd,"/src/components/organisms/options-slider/options-slider.js":fd,"/src/components/organisms/preview-slider/preview-slider.js":vd,"/src/components/organisms/roaming-center/roaming-center.script.js":bd,"/src/components/organisms/tariff-details/tariff-details-accordion.js":yd,"/src/components/organisms/tariffbox/tariffbox-plans-story-helpers.js":Ed,"/src/components/organisms/tariffbox/tariffbox.js":Ad,"/src/components/organisms/tariffboxes/tariffboxes.script.js":xd,"/src/components/organisms/top-stage-slider/top-stage-slider.js":tl,"/src/components/organisms/v-check/relocation-activation-date.script.js":Dd,"/src/components/organisms/video-slider/video-slider.script.js":Md,"/src/components/organisms/watch-configurator/watch-configurator.js":qd,"/src/components/organisms/watch-slider/watch-slider.script.js":zd,"/src/js/common/add-to-basket.js":Hd,"/src/js/common/animation.js":Bd,"/src/js/common/changeable-text.js":jd,"/src/js/common/collapse.js":Fd,"/src/js/common/content-toggle.js":Ud,"/src/js/common/depending-selects.js":Yd,"/src/js/common/hardware-select-handler.js":ih,"/src/js/common/hardware-selectbox.js":sh,"/src/js/common/hardware-title.js":nh,"/src/js/common/hardware-update-handler.js":lh,"/src/js/common/is-browser.js":Le,"/src/js/common/lightbox.js":ch,"/src/js/common/marketing-box-extension.js":vh,"/src/js/common/prevent.js":s,"/src/js/common/resize-proxy.js":hh,"/src/js/common/scroll-to.js":bh,"/src/js/common/scroll-top.js":yh,"/src/js/common/show-hide-select.js":wh,"/src/js/common/show-more.js":Eh,"/src/js/common/slideToggle.js":fh,"/src/js/common/string-polyfill.js":Ch,"/src/js/common/toggle-tariff-features.js":xh,"/src/js/common/tooltip.js":Th,"/src/js/common/uniboxes-slider.js":ol,"/src/js/common/value.js":Ih,"/src/js/core_ext/NodeList.js":Dh,"/src/js/core_ext/index.js":Ph,"/src/js/xlab-initializer.js":n}),jh=Object.values(Bh);jh.push({default:class EqualHeights{groups;constructor(){this.groups={},document.querySelectorAll(`[${Mh}] img`).forEach((e=>{e.addEventListener("load",this.debounceUpdate())})),window.addEventListener("resize-proxy:width",this.debounceUpdate()),document.body.addEventListener(d,(e=>e.detail?.immediate?this.updateHeights():this.debounceUpdate()())),addEventListener("async:loaded",(e=>{this.getElements(e.target),this.updateHeights()})),this.getElements(),this.updateHeights()}debounceUpdate(){return dh(this.updateHeights.bind(this),25)}getElements(e=document){e.querySelectorAll(`[${Mh}]:not(.${Hh})`).forEach((e=>{if("absolute"!==window.getComputedStyle(e).position){e.classList.add(Hh);const t=e.getAttribute(Mh);this.groups[t]?this.groups[t].push(e):this.groups[t]=[e]}}))}updateHeights(){const e=Z();Object.values(this.groups).reverse().forEach((t=>{const i=t.filter((e=>e.hasAttribute(zh))),s=t.filter((e=>!i.includes(e))),n=this.getMaxHeight(s.length?s:t);t.forEach((t=>{const s=t.getAttribute(qh)?.split(" ");if(s?.indexOf(e)>=0)return void(t.style.height="");if(i.includes(t))return void(t.style.height="");(parseFloat(window.getComputedStyle(t).height)||0)!==n&&(t.style.height=n+"px")}))})),document.body.dispatchEvent(new Event(h,{bubbles:!0}))}getMaxHeight(e){const t=e.map((e=>e.closest(".collapse:not(.show)"))).filter(Boolean);t.forEach((e=>e.classList.add("show")));const i=Math.max(...e.map((e=>(e.style.height="",e.clientHeight))));return t.forEach((e=>e.classList.remove("show"))),i}}}),window.initializedClasses={},window.XLAB_COMPONENTS={};for(let Nh=0;Nh<jh.length;Nh++)try{const e=jh[Nh]?.default;if(!e?.toString().startsWith("class"))continue;window.initializedClasses[e.name]=new e,window.XLAB_COMPONENTS[e.name]=e}catch($h){console.error("Error:",$h)}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.