/*! * Jagenberg sitepackage v4.0.1 (https://www.the-new-atlantic.com) * Copyright 2017-2026 Moritz Kühnel & Thomas Ruta * Licensed under the MIT license */ (($,r)=>{var s,e,f={CONTINUOUS_SCROLLING_TIMEOUT_INTERVAL:50,SCROLL_OFFSET_FRACTION:6,DATA_KEY_DDMENU_MODIFIED:"scrtabsddmenumodified",DATA_KEY_IS_MOUSEDOWN:"scrtabsismousedown",DATA_KEY_BOOTSTRAP_TAB:"bs.tab",CSS_CLASSES:{BOOTSTRAP4:"scrtabs-bootstrap4",RTL:"scrtabs-rtl",SCROLL_ARROW_CLICK_TARGET:"scrtabs-click-target",SCROLL_ARROW_DISABLE:"scrtabs-disable",SCROLL_ARROW_WITH_CLICK_TARGET:"scrtabs-with-click-target"},SLIDE_DIRECTION:{LEFT:1,RIGHT:2},EVENTS:{CLICK:"click.scrtabs",DROPDOWN_MENU_HIDE:"hide.bs.dropdown.scrtabs",DROPDOWN_MENU_SHOW:"show.bs.dropdown.scrtabs",FORCE_REFRESH:"forcerefresh.scrtabs",MOUSEDOWN:"mousedown.scrtabs",MOUSEUP:"mouseup.scrtabs",TABS_READY:"ready.scrtabs",TOUCH_END:"touchend.scrtabs",TOUCH_MOVE:"touchmove.scrtabs",TOUCH_START:"touchstart.scrtabs",WINDOW_RESIZE:"resize.scrtabs"}};function a(e){this.stc=e}function n(e){this.stc=e}function i(e){this.stc=e}function c(e){var t=this;t.$tabsContainer=e,t.instanceId=$.fn.scrollingTabs.nextInstanceId++,t.movableContainerLeftPos=0,t.scrollArrowsVisible=!1,t.scrollToTabEdge=!1,t.disableScrollArrowsOnFullyScrolled=!1,t.reverseScroll=!1,t.widthMultiplier=1,t.scrollMovement=new i(t),t.eventHandlers=new n(t),t.elementsHandler=new a(t)}s="smartresizeScrtabs",$.fn[s]=function(e,t){var a,n,i,o,t=t||f.EVENTS.WINDOW_RESIZE;return e?this.bind(t,(a=e,function(){var e=this,t=arguments;o?clearTimeout(o):i&&a.apply(e,t),o=setTimeout(function(){i||a.apply(e,t),o=null},n||100)})):this.trigger(s)},(e=a.prototype).initElements=function(e){this.setElementReferences(e),this.setEventListeners(e)},e.listenForTouchEvents=function(){var t,a,n,i=this.stc,o=i.scrollMovement,e=f.EVENTS,s=!1;i.$movableContainer.on(e.TOUCH_START,function(e){s=!0,a=i.movableContainerLeftPos,t=e.originalEvent.changedTouches[0].pageX}).on(e.TOUCH_END,function(){s=!1}).on(e.TOUCH_MOVE,function(e){s&&(e=e.originalEvent.changedTouches[0].pageX-t,i.rtl&&(e=-e),0<(n=a+e)?n=0:(e=o.getMinPos(),n li"),o.$slideLeftArrow=o.reverseScroll?t:a,o.$slideLeftArrowClickTarget=o.reverseScroll?n:i,o.$slideRightArrow=o.reverseScroll?a:t,o.$slideRightArrowClickTarget=o.reverseScroll?i:n,o.$scrollArrows=o.$slideLeftArrow.add(o.$slideRightArrow),o.$win=$(r)},e.setElementWidths=function(){var e=this.stc;e.winWidth=e.$win.width(),e.scrollArrowsCombinedWidth=e.$slideLeftArrow.outerWidth()+e.$slideRightArrow.outerWidth(),this.setFixedContainerWidth(),this.setMovableContainerWidth()},e.setEventListeners=function(e){var t=this.stc,a=t.eventHandlers,n=f.EVENTS,i=n.WINDOW_RESIZE+t.instanceId;e.enableSwiping&&this.listenForTouchEvents(),t.$slideLeftArrowClickTarget.off(".scrtabs").on(n.MOUSEDOWN,function(e){a.handleMousedownOnSlideMovContainerLeftArrow.call(a,e)}).on(n.MOUSEUP,function(e){a.handleMouseupOnSlideMovContainerLeftArrow.call(a,e)}).on(n.CLICK,function(e){a.handleClickOnSlideMovContainerLeftArrow.call(a,e)}),t.$slideRightArrowClickTarget.off(".scrtabs").on(n.MOUSEDOWN,function(e){a.handleMousedownOnSlideMovContainerRightArrow.call(a,e)}).on(n.MOUSEUP,function(e){a.handleMouseupOnSlideMovContainerRightArrow.call(a,e)}).on(n.CLICK,function(e){a.handleClickOnSlideMovContainerRightArrow.call(a,e)}),t.tabClickHandler&&t.$tabsLiCollection.find('a[data-toggle="tab"]').off(n.CLICK).on(n.CLICK,t.tabClickHandler),e.handleDelayedScrollbar&&this.listenForDelayedScrollbar(),t.$win.off(i).smartresizeScrtabs(function(e){a.handleWindowResize.call(a,e)},i),$("body").on(f.EVENTS.FORCE_REFRESH,t.elementsHandler.refreshAllElementSizes.bind(t.elementsHandler))},e.listenForDelayedScrollbar=function(){var a=document.createElement("iframe");a.id="scrtabs-scrollbar-resize-listener",a.style.cssText="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;",a.onload=function(){var e;function t(){try{$(r).trigger("resize"),e=null}catch(e){}}a.contentWindow.addEventListener("resize",function(){e&&clearTimeout(e),e=setTimeout(t,100)})},document.body.appendChild(a)},e.setFixedContainerWidth=function(){var e=this.stc,t=e.$tabsContainer.get(0).getBoundingClientRect();e.fixedContainerWidth=t.width||t.right-t.left,e.fixedContainerWidth=e.fixedContainerWidth*e.widthMultiplier,e.$fixedContainer.width(e.fixedContainerWidth)},e.setFixedContainerWidthForHiddenScrollArrows=function(){var e=this.stc;e.$fixedContainer.width(e.fixedContainerWidth)},e.setFixedContainerWidthForVisibleScrollArrows=function(){var e=this.stc;e.$fixedContainer.width(e.fixedContainerWidth-e.scrollArrowsCombinedWidth)},e.setMovableContainerWidth=function(){var a=this.stc,e=a.$tabsUl.find("> li");a.movableContainerWidth=0,e.length&&(e.each(function(){var e=$(this),t=0;a.isNavPills&&(t=parseInt(e.css("margin-left"),10)+parseInt(e.css("margin-right"),10)),a.movableContainerWidth+=e.outerWidth()+t}),a.movableContainerWidth+=1,a.movableContainerWidthe.fixedContainerWidth;t&&!e.scrollArrowsVisible?(e.$scrollArrows.show(),e.scrollArrowsVisible=!0):!t&&e.scrollArrowsVisible&&(e.$scrollArrows.hide(),e.scrollArrowsVisible=!1),e.scrollArrowsVisible?this.setFixedContainerWidthForVisibleScrollArrows():this.setFixedContainerWidthForHiddenScrollArrows()},(e=n.prototype).handleClickOnSlideMovContainerLeftArrow=function(){this.stc.scrollMovement.incrementMovableContainerLeft()},e.handleClickOnSlideMovContainerRightArrow=function(){this.stc.scrollMovement.incrementMovableContainerRight()},e.handleMousedownOnSlideMovContainerLeftArrow=function(){var e=this.stc;e.$slideLeftArrowClickTarget.data(f.DATA_KEY_IS_MOUSEDOWN,!0),e.scrollMovement.continueSlideMovableContainerLeft()},e.handleMousedownOnSlideMovContainerRightArrow=function(){var e=this.stc;e.$slideRightArrowClickTarget.data(f.DATA_KEY_IS_MOUSEDOWN,!0),e.scrollMovement.continueSlideMovableContainerRight()},e.handleMouseupOnSlideMovContainerLeftArrow=function(){this.stc.$slideLeftArrowClickTarget.data(f.DATA_KEY_IS_MOUSEDOWN,!1)},e.handleMouseupOnSlideMovContainerRightArrow=function(){this.stc.$slideRightArrowClickTarget.data(f.DATA_KEY_IS_MOUSEDOWN,!1)},e.handleWindowResize=function(){var e=this.stc,t=e.$win.width();if(t===e.winWidth)return!1;e.winWidth=t,e.elementsHandler.refreshAllElementSizes()},(e=i.prototype).continueSlideMovableContainerLeft=function(){var e=this,t=e.stc;setTimeout(function(){t.movableContainerLeftPos<=e.getMinPos()||!t.$slideLeftArrowClickTarget.data(f.DATA_KEY_IS_MOUSEDOWN)||e.incrementMovableContainerLeft()||e.continueSlideMovableContainerLeft()},f.CONTINUOUS_SCROLLING_TIMEOUT_INTERVAL)},e.continueSlideMovableContainerRight=function(){var e=this,t=e.stc;setTimeout(function(){0<=t.movableContainerLeftPos||!t.$slideRightArrowClickTarget.data(f.DATA_KEY_IS_MOUSEDOWN)||e.incrementMovableContainerRight()||e.continueSlideMovableContainerRight()},f.CONTINUOUS_SCROLLING_TIMEOUT_INTERVAL)},e.decrementMovableContainerLeftPos=function(e){var t=this.stc;t.movableContainerLeftPos-=t.fixedContainerWidth/f.SCROLL_OFFSET_FRACTION,(t.movableContainerLeftPos .nav-link.active")).length&&(e=o.parent()):e=r.$tabsUl.find("li.active"),e)&&e.length){if(o=r.$slideRightArrow.outerWidth(),a=e.outerWidth(),n=(e=e.offset().left-r.$fixedContainer.offset().left)+a,t=r.fixedContainerWidth-o,r.rtl){if(r.$slideLeftArrow.outerWidth(),e<0)return r.movableContainerLeftPos+=e,s.slideMovableContainerToLeftPos(),!0;if(t')},getNewElScrollerElementWrappingNavTabsInstance:function(e,t){var a=$('
'),n=t.leftArrowContent||'
',n=$(n),i=t.rightArrowContent||'
',i=$(i),o=$('
'),s=$('
');t.disableScrollArrowsOnFullyScrolled&&n.add(i).addClass(f.CSS_CLASSES.SCROLL_ARROW_DISABLE);return a.append(n,o.append(s.append(e)),i)},getNewElTabAnchor:o,getNewElTabContent:function(){return $('
')},getNewElTabLi:function(e,t,a){var n=a.tabLiContent||'
  • ',n=$(n),i=o(e,t).appendTo(n);e[t.disabled]?(n.addClass("disabled"),i.attr("data-toggle","")):a.forceActiveTab&&e[t.active]&&n.addClass("active");a.tabPostProcessor&&a.tabPostProcessor(n,i);return n},getNewElTabPane:function(e,t,a){var n=$('
    ').attr("id",e[t.paneId]).html(e[t.content]);a.forceActiveTab&&e[t.active]&&n.addClass("active");return n}};function o(e,t){return $('').attr("href","#"+e[t.paneId]).html(e[t.title])}var A={didTabOrderChange:function(e,a,n){var i=!1;return e.each(function(e){var t=l(a,n.paneId,$(this).data("tab")[n.paneId]);if(-1 li"),$currTabContentPanesContainer:e,$currTabContentPanes:e.find(".tab-pane")};return i=(g=t).updatedTabsArray,o=g.updatedTabsLiContent||[],s=g.updatedTabsPostProcessors||[],r=g.propNames,d=g.options,c=g.$currTabLis,u=g.$navTabs,p=(l=g.ignoreTabPanes)?null:g.$currTabContentPanesContainer,h=l?null:g.$currTabContentPanes,f=!1,i.forEach(function(e,t){var a=c.find('a[href="#'+e[r.paneId]+'"]'),n=t>=c.length;a.length||(f=!0,d.tabLiContent=o[t],d.tabPostProcessor=s[t],a=S.getNewElTabLi(e,r,d),A.storeDataOnLiEl(a,i,t),n?a.appendTo(u):a.insertBefore(c.eq(t)),l)||void 0===e[r.content]||(a=S.getNewElTabPane(e,r,d),n?a.appendTo(p):a.insertBefore(h.eq(t)))}),f&&(C=!0),a=(y=t).$currTabLis,e=y.updatedTabsArray,n=y.propNames,v=[],b=(m=y.ignoreTabPanes)?null:[],A.didTabOrderChange(a,e,n)&&(e.forEach(function(e){e=e[n.paneId];v.push(a.find('a[role="tab"][href="#'+e+'"]').parent("li")),m||b.push($("#"+e))}),y.$navTabs.append(v),m||y.$currTabContentPanesContainer.append(b),1)&&(C=!0),(C=k(t)?!0:C)&&w.initTabs(),C}function t(){var e=$(this).data("scrtabs");e&&e.scroller.scrollToActiveTab()}var u={destroy:function(){return this.each(p)},init:function(e){var u=this,p=u.length-1,h=$.extend({},$.fn.scrollingTabs.defaults,e||{});return h.tabs?u.each(function(e){var a,t,n,i,o,s,r,l,d,c=$(this);c=c,e=e li").each(function(e){A.storeDataOnLiEl($(this),n,e)}))}):u.each(function(e){m($(this).data({scrtabs:{isWrapperOnly:!0}}),h,e{let t=0,a=[];return{set:function(e){return a.push({offset:++t,ptr:e}),a[a.length-1].offset},remove:function(t){let e=a.filter(function(e){return e.offset!=t});a=e.splice(0),e=[]},closeAllButMe:function(t){temp=[],a.forEach(function(e){e.offset!=t&&e.ptr.closeOrder()})}}})();function vanillaSelectBox(e,t){if(this.instanceOffset=VSBoxCounter.set(this),this.domSelector=e,this.root=document.querySelector(e),this.main,this.button,this.title,this.isMultiple=this.root.hasAttribute("multiple"),this.multipleSize=this.isMultiple&&this.root.hasAttribute("size")?parseInt(this.root.getAttribute("size")):-1,this.drop,this.top,this.left,this.options,this.listElements,this.isDisabled=!1,this.search=!1,this.searchZone=null,this.inputBox=null,this.disabledItems=[],this.ulminWidth=140,this.ulminHeight=25,this.forbidenAttributes=["class","selected","disabled","data-text","data-value","style"],this.forbidenClasses=["active","disabled"],this.userOptions={maxWidth:500,minWidth:-1,maxHeight:400,translations:{all:"All",items:"items",selectAll:"Select All",clearAll:"Clear All"},search:!1,placeHolder:"",stayOpen:!1,disableSelectAll:!1},t){if(null!=t.maxWidth&&(this.userOptions.maxWidth=t.maxWidth),null!=t.maxWidth&&(this.userOptions.minWidth=t.minWidth),null!=t.maxHeight&&(this.userOptions.maxHeight=t.maxHeight),null!=t.translations)for(var a in t.translations)t.translations.hasOwnProperty(a)&&this.userOptions.translations[a]&&(this.userOptions.translations[a]=t.translations[a]);null!=t.placeHolder&&(this.userOptions.placeHolder=t.placeHolder),null!=t.search&&(this.search=t.search),null!=t.stayOpen&&(this.userOptions.stayOpen=t.stayOpen),null!=t.disableSelectAll&&(this.userOptions.disableSelectAll=t.disableSelectAll)}this.closeOrder=function(){var e=this;e.userOptions.stayOpen||(e.drop.style.display="none",e.search&&(e.inputBox.value="",Array.prototype.slice.call(e.listElements).forEach(function(e){e.classList.remove("hide")})))},this.getCssArray=function(e){let a=[];".vsb-main button"===e&&(a=[{key:"min-width",value:"120px"},{key:"border-radius",value:"0"},{key:"width",value:"100%"},{key:"text-align",value:"left"},{key:"z-index",value:"1"},{key:"color",value:"#333"},{key:"background",value:"white !important"},{key:"border",value:"1px solid #999 !important"},{key:"line-height",value:"20px"},{key:"font-size",value:"14px"},{key:"padding",value:"6px 12px"}]);{e=a;let t="";return e.forEach(function(e){t+=e.key+":"+e.value+";"}),t}},this.init=function(){let d=this;this.root.style.display="none";var e,t=document.getElementById("btn-group-"+d.domSelector),t=(t&&t.remove(),this.main=document.createElement("div"),this.root.parentNode.insertBefore(this.main,this.root.nextSibling),this.main.classList.add("vsb-main"),this.main.setAttribute("id","btn-group-"+this.domSelector),this.main.style.marginLeft=this.main.style.marginLeft,d.userOptions.stayOpen&&(this.main.style.minHeight=this.userOptions.maxHeight+10+"px"),d.userOptions.stayOpen?this.button=document.createElement("div"):(this.button=document.createElement("button"),t=d.getCssArray(".vsb-main button"),this.button.setAttribute("style",t)),this.button.style.maxWidth=this.userOptions.maxHeight+"px",-1!==this.userOptions.minWidth&&(this.button.style.minWidth=this.userOptions.minWidth+"px"),this.main.appendChild(this.button),this.title=document.createElement("span"),this.button.appendChild(this.title),this.title.classList.add("title"),document.createElement("span"));this.button.appendChild(t),t.classList.add("caret"),t.style.position="absolute",t.style.right="8px",t.style.marginTop="8px",d.userOptions.stayOpen&&(t.style.display="none",this.title.style.paddingLeft="20px",this.title.style.fontStyle="italic",this.title.style.verticalAlign="20%"),this.drop=document.createElement("div"),this.main.appendChild(this.drop),this.drop.classList.add("vsb-menu"),this.drop.style.zIndex=2e3-this.instanceOffset,this.ul=document.createElement("ul"),this.drop.appendChild(this.ul),this.ul.style.maxHeight=this.userOptions.maxHeight+"px",this.ul.style.minWidth=this.ulminWidth+"px",this.ul.style.minHeight=this.ulminHeight+"px",this.isMultiple&&(this.ul.classList.add("multi"),d.userOptions.disableSelectAll||((t=document.createElement("option")).setAttribute("value","all"),t.innerText=d.userOptions.translations.selectAll,this.root.insertBefore(t,this.root.hasChildNodes()?this.root.childNodes[0]:null)));let r="",l="",c=0;function a(){document.removeEventListener("click",a),d.drop.style.display="none",d.search&&(d.inputBox.value="",Array.prototype.slice.call(d.listElements).forEach(function(e){e.classList.remove("hidden-search")}))}this.search&&(this.searchZone=document.createElement("div"),this.ul.appendChild(this.searchZone),this.searchZone.classList.add("vsb-js-search-zone"),this.searchZone.style.zIndex=2001-this.instanceOffset,this.inputBox=document.createElement("input"),this.searchZone.appendChild(this.inputBox),this.inputBox.setAttribute("type","text"),this.inputBox.setAttribute("id","search_"+this.domSelector),t=this.isMultiple?"12px":"6px",e=document.createElement("p"),this.ul.appendChild(e),e.style.fontSize=t,e.innerHTML=" ",this.ul.addEventListener("scroll",function(e){var t=this.scrollTop;d.searchZone.parentNode.style.top=t+"px"})),this.options=document.querySelectorAll(this.domSelector+" > option"),Array.prototype.slice.call(this.options).forEach(function(e){var t=e.textContent,a=e.value;let n,i=(e.hasAttributes()&&(n=Array.prototype.slice.call(e.attributes).filter(function(e){return-1===d.forbidenAttributes.indexOf(e.name)})),e.getAttribute("class")),o=(i=i?i.split(" ").filter(function(e){return-1===d.forbidenClasses.indexOf(e)}):[],document.createElement("li"));var s=e.hasAttribute("selected"),e=e.hasAttribute("disabled");d.ul.appendChild(o),o.setAttribute("data-value",a),o.setAttribute("data-text",t),void 0!==n&&n.forEach(function(e){o.setAttribute(e.name,e.value)}),i.forEach(function(e){o.classList.add(e)}),s&&(c++,r+=l+t,l=",",o.classList.add("active"),d.isMultiple||(d.title.textContent=t,0!=i.length&&i.forEach(function(e){d.title.classList.add(e)}))),e&&o.classList.add("disabled"),o.appendChild(document.createTextNode(t))}),null!==document.querySelector(this.domSelector+" optgroup")&&(this.options=document.querySelectorAll(this.domSelector+" option"),t=document.querySelectorAll(this.domSelector+" optgroup"),Array.prototype.slice.call(t).forEach(function(e){var t=e.querySelectorAll("option"),a=document.createElement("li");a.classList.add("grouped-option"),a.appendChild(document.createTextNode(e.label)),d.ul.appendChild(a),Array.prototype.slice.call(t).forEach(function(e){var t=e.textContent,a=e.value;let n=e.getAttribute("class"),i=(n=n?n.split(" "):[],document.createElement("li"));e=e.hasAttribute("selected");d.ul.appendChild(i),i.setAttribute("data-value",a),i.setAttribute("data-text",t),0!=n.length&&n.forEach(function(e){i.classList.add(e)}),e&&(c++,r+=l+t,l=",",i.classList.add("active"),d.isMultiple||(d.title.textContent=t,0!=n.length&&n.forEach(function(e){d.title.classList.add(e)}))),i.appendChild(document.createTextNode(t))})})),-1!=d.multipleSize&&c>d.multipleSize&&(e=d.userOptions.translations.items||"items",r=c+" "+e),d.isMultiple&&(d.title.innerHTML=r),""!=d.userOptions.placeHolder&&""==d.title.textContent&&(d.title.textContent=d.userOptions.placeHolder),this.listElements=this.drop.querySelectorAll("li:not(.grouped-option)"),d.search&&d.inputBox.addEventListener("keyup",function(e){let t=e.target.value.toUpperCase();e=t.length;let a=0,n=0,i=null;e<2?Array.prototype.slice.call(d.listElements).forEach(function(e){"all"===e.getAttribute("data-value")?i=e:(e.classList.remove("hidden-search"),a++,n+=e.classList.contains("active"))}):Array.prototype.slice.call(d.listElements).forEach(function(e){"all"!==e.getAttribute("data-value")?-1===e.getAttribute("data-text").toUpperCase().indexOf(t)&&"all"!==e.getAttribute("data-value")?e.classList.add("hidden-search"):(a++,e.classList.remove("hidden-search"),n+=e.classList.contains("active")):i=e}),i&&(0===a?i.classList.add("disabled"):i.classList.remove("disabled"),n!==a?(i.classList.remove("active"),i.innerText=d.userOptions.translations.selectAll,i.setAttribute("data-selected","false")):(i.classList.add("active"),i.innerText=d.userOptions.translations.clearAll,i.setAttribute("data-selected","true")))}),d.userOptions.stayOpen?(d.drop.style.display="block",d.drop.style.boxShadow="none",d.drop.style.minHeight=this.userOptions.maxHeight+10+"px",d.drop.style.position="relative",d.drop.style.left="0px",d.drop.style.top="0px",d.button.style.border="none"):this.main.addEventListener("click",function(e){d.isDisabled||(d.drop.style.left=d.left+"px",d.drop.style.top=d.top+"px",d.drop.style.display="block",document.addEventListener("click",a),e.preventDefault(),e.stopPropagation(),d.userOptions.stayOpen)||VSBoxCounter.closeAllButMe(d.instanceOffset)}),this.drop.addEventListener("click",function(e){if(!d.isDisabled)if(e.target.hasAttribute("data-value")){var s,r=e.target.getAttribute("data-value"),t=e.target.getAttribute("data-text"),l=e.target.getAttribute("class");if(!l||-1==l.indexOf("disabled"))if("all"===r)e.target.hasAttribute("data-selected")&&"true"===e.target.getAttribute("data-selected")?d.setValue("none"):d.setValue("all");else{if(d.isMultiple){let t=!1,a=((t=l?-1!=l.indexOf("active"):t)?e.target.classList.remove("active"):e.target.classList.add("active"),""),n="",i=0,o=0;for(let e=0;ed.multipleSize&&(s=d.userOptions.translations.items||"items",a=i+" "+s),d.title.textContent=a,d.checkUncheckAll(),d.privateSendChange()}else d.root.value=r,d.title.textContent=t,l?d.title.setAttribute("class",l+" title"):d.title.setAttribute("class","title"),Array.prototype.slice.call(d.listElements).forEach(function(e){e.classList.remove("active")}),""!=t&&e.target.classList.add("active"),d.privateSendChange(),d.userOptions.stayOpen||a();e.preventDefault(),e.stopPropagation(),""!=d.userOptions.placeHolder&&""==d.title.textContent&&(d.title.textContent=d.userOptions.placeHolder)}}else e.preventDefault(),e.stopPropagation()})},this.init(),this.checkUncheckAll(),this.privateSendChange()}function vanillaSelectBox_type(e){return Object.prototype.toString.call(e).replace("[object ","").replace("]","").toLowerCase()}vanillaSelectBox.prototype.disableItems=function(t){let a=[];"string"==vanillaSelectBox_type(t)&&(t=t.split(",")),"array"==vanillaSelectBox_type(t)&&Array.prototype.slice.call(this.options).forEach(function(e){-1!=t.indexOf(e.value)&&(a.push(e.value),e.setAttribute("disabled",""))}),Array.prototype.slice.call(this.listElements).forEach(function(e){var t=e.getAttribute("data-value");-1!=a.indexOf(t)&&e.classList.add("disabled")})},vanillaSelectBox.prototype.enableItems=function(t){let a=[];"string"==vanillaSelectBox_type(t)&&(t=t.split(",")),"array"==vanillaSelectBox_type(t)&&Array.prototype.slice.call(this.options).forEach(function(e){-1!=t.indexOf(e.value)&&(a.push(e.value),e.removeAttribute("disabled"))}),Array.prototype.slice.call(this.listElements).forEach(function(e){-1!=a.indexOf(e.getAttribute("data-value"))&&e.classList.remove("disabled")})},vanillaSelectBox.prototype.checkUncheckAll=function(){if(this.isMultiple){let t=0,a=0,n=null;Array.prototype.slice.call(this.listElements).forEach(function(e){e.hasAttribute("data-value")&&("all"===e.getAttribute("data-value")&&(n=e),"all"===e.getAttribute("data-value")||e.classList.contains("hidden-search")||e.classList.contains("disabled")||(a++,t+=e.classList.contains("active")))}),n&&(t===a?(n.classList.add("active"),n.innerText=this.userOptions.translations.clearAll,n.setAttribute("data-selected","true")):0===t&&(n.classList.remove("active"),n.innerText=this.userOptions.translations.selectAll,n.setAttribute("data-selected","false")))}},vanillaSelectBox.prototype.setValue=function(s){var e,r=this;if(null==s||""==s)r.empty();else if(r.isMultiple){"string"==vanillaSelectBox_type(s)&&("all"===s?(s=[],Array.prototype.slice.call(r.listElements).forEach(function(e){var t;e.hasAttribute("data-value")&&"all"!==(t=e.getAttribute("data-value"))&&(e.classList.contains("hidden-search")||e.classList.contains("disabled")||s.push(e.getAttribute("data-value")),e.classList.contains("active"))&&(e.classList.contains("hidden-search")||e.classList.contains("disabled"))&&s.push(t)})):"none"===s?(s=[],Array.prototype.slice.call(r.listElements).forEach(function(e){var t;e.hasAttribute("data-value")&&"all"!==(t=e.getAttribute("data-value"))&&e.classList.contains("active")&&(e.classList.contains("hidden-search")||e.classList.contains("disabled"))&&s.push(t)})):s=s.split(","));let o=[];if("array"==vanillaSelectBox_type(s)){Array.prototype.slice.call(r.options).forEach(function(e){-1!==s.indexOf(e.value)?(e.selected=!0,o.push(e.value)):e.selected=!1});let t="",a="",n=0,i=0;Array.prototype.slice.call(r.listElements).forEach(function(e){i++,-1!=o.indexOf(e.getAttribute("data-value"))?(e.classList.add("active"),n++,t+=a+e.getAttribute("data-text"),a=","):e.classList.remove("active")}),i==n?(e=r.userOptions.translations.all||"all",t=e):-1!=r.multipleSize&&n>r.multipleSize&&(e=r.userOptions.translations.items||"items",t=n+" "+e),r.title.textContent=t,r.privateSendChange()}r.checkUncheckAll()}else{let t=!1,a="";Array.prototype.slice.call(r.listElements).forEach(function(e){e.getAttribute("data-value")==s?(e.classList.add("active"),t=!0,a=e.getAttribute("data-text")):e.classList.remove("active")}),Array.prototype.slice.call(r.options).forEach(function(e){e.value==s?(e.selected=!0,className=(className=e.getAttribute("class"))||""):e.selected=!1}),t&&(r.title.textContent=a,""!=r.userOptions.placeHolder&&""==r.title.textContent&&(r.title.textContent=r.userOptions.placeHolder),""!=className?r.title.setAttribute("class",className+" title"):r.title.setAttribute("class","title"))}},vanillaSelectBox.prototype.privateSendChange=function(){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.root.dispatchEvent(e)},vanillaSelectBox.prototype.empty=function(){Array.prototype.slice.call(this.listElements).forEach(function(e){e.classList.remove("active")}),Array.prototype.slice.call(this.options).forEach(function(e){e.selected=!1}),(this.title.textContent="")!=this.userOptions.placeHolder&&""==this.title.textContent&&(this.title.textContent=this.userOptions.placeHolder),this.checkUncheckAll(),this.privateSendChange()},vanillaSelectBox.prototype.destroy=function(){var e=document.getElementById("btn-group-"+this.domSelector);e&&(VSBoxCounter.remove(this.instanceOffset),e.remove(),this.root.style.display="inline-block")},vanillaSelectBox.prototype.disable=function(){var e=document.getElementById("btn-group-"+this.domSelector);e&&((button=e.querySelector("button"))&&button.classList.add("disabled"),this.isDisabled=!0)},vanillaSelectBox.prototype.enable=function(){var e=document.getElementById("btn-group-"+this.domSelector);e&&((button=e.querySelector("button"))&&button.classList.remove("disabled"),this.isDisabled=!1)},vanillaSelectBox.prototype.showOptions=function(){console.log(this.userOptions)},"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),$(document).ready(function(){$(".carousel-item",".show-neighbors").each(function(){var e=$(this).next();(e=e.length?e:$(this).siblings(":first")).children(":first-child").clone().appendTo($(this))}),$(window).on("load resize orientationchange",function(){$(".carousel").each(function(){var e=$(".carousel-item .item-inner-wrapper .carousel-item-body",this),t=(e.css("min-height",0),Math.max.apply(null,e.map(function(){return $(this).outerHeight()}).get()));e.css("min-height",t+"px")})});var t=$(".simple-carousel .carousel-item").length,a=$(".simple-carousel .carousel-item.active").index()+1;$(".sc-num").html(a+"/"+t),$("#simpleCarouselControls").on("slide.bs.carousel",function(e){"right"==e.direction&&(0==--a&&(a=t),$(".sc-num").html(a+"/"+t)),"left"==e.direction&&(t<++a&&(a=1),$(".sc-num").html(a+"/"+t))})});var window_height,window_width,nav_toggle,navbar_initialized=!1,offCanvas=($("html").addClass("nav-close"),{sidenav:{sidenav_visible:0},initSideNav:function(){var e;navbar_initialized||((e=$(".navbar-toggler")).on("click",function(){1==offCanvas.sidenav.sidenav_visible?($("html").removeClass("nav-open"),$("html").delay(200).addClass("nav-close"),offCanvas.sidenav.sidenav_visible=0,$("#overlay").remove(),setTimeout(function(){e.removeClass("toggled")},300)):(setTimeout(function(){e.addClass("toggled")},300),$("html,body").animate({scrollTop:0},500),$('
    ').appendTo("body").on("click",function(){$("html").removeClass("nav-open"),offCanvas.sidenav.sidenav_visible=0,$("#overlay").remove(),setTimeout(function(){e.removeClass("toggled")},300)}),$("html").delay(200).removeClass("nav-close"),$("html").addClass("nav-open"),offCanvas.sidenav.sidenav_visible=1)}),navbar_initialized=!0)}}),head=($(document).ready(function(){window_width=$(window).width(),nav_toggle=!!$("nav").hasClass("navbar-offcanvas"),(window_width<992||nav_toggle)&&offCanvas.initSideNav(),$(".navbar-nav .nav-link:not(.dropdown-toggle), .dropdown-item, .mobile-subnav a").on("click",function(){var e;$("body").hasClass("company-kampf")&&$(this).hasClass("dropdown-toggle")||$(this).hasClass("dropdown-toggle")||(e=$(".navbar-toggler"),$("html").removeClass("nav-open"),offCanvas.sidenav.sidenav_visible=0,setTimeout(function(){e.removeClass("toggled")},300))})}),$(window).resize(function(){(window_width=$(window).width())<992&&offCanvas.initSideNav(),992{function i(i){if("1"!==i.dataset.loaded&&(!(o=i).matches(".wall-loader, .social-elf-embed, .js-consent-embed, [data-consent], [data-consent-category]")||"necessary"===(o={external:"marketing",media:"marketing",maps:"marketing",youtube:"marketing",vimeo:"marketing",analytics:"statistics",statistic:"statistics",necessary:"necessary",essential:"necessary"}[o=String(o.getAttribute("data-consent-category")||o.getAttribute("data-consent")||"marketing").toLowerCase()]||o)||window.Cookiebot&&Cookiebot.consent&&Cookiebot.consent[o])){let t=i.getAttribute("data-src"),a=i.getAttribute("data-srcset"),n=i.getAttribute("data-sizes");var e,o=()=>{var e;(e=i).matches(".image-background-image, [data-bg]")||"IMG"!==e.tagName?t&&(i.style.backgroundImage=`url("${t}")`):(t&&i.setAttribute("src",t),a&&i.setAttribute("srcset",a),n&&i.setAttribute("sizes",n)),i.dataset.loaded="1",i.classList.add("lazy--loaded"),i.classList.remove("lazy")};t?((e=new Image).onload=o,e.onerror=o,e.src=t):o()}}function e(){var n=Array.from(document.querySelectorAll(".lazy, [data-src], [data-srcset]"));if("IntersectionObserver"in window){let t=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(i(e.target),t.unobserve(e.target))})},{root:null,rootMargin:"0px 0px 300px 0px",threshold:.01});n.forEach(e=>t.observe(e))}else{let e=n,t=()=>{(e=e.filter(e=>{var t=e.getBoundingClientRect();return t.top{clearTimeout(a._t),a._t=setTimeout(t,100)};window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),t()}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),$(".vertical-tabs").find(".nav-pills").attr("aria-orientation","horizontal"),$(function(){$(".nav-tabs").scrollingTabs().on("ready.scrtabs",function(){$(".tab-content").show()})}),"undefined"!=typeof powermailCondition&&powermailCondition.init(),document.addEventListener("powermailFormInitialized",function(e){console.log("Powermail form ready!",e.detail.form)}),void 0!==window.powermailCondition&&window.powermailCondition.init()})(),[]);let ytPlayers=new Map,html5Videos=(document.querySelectorAll("video.no-controls").forEach(e=>{e.removeAttribute("controls")}),Array.from(document.querySelectorAll("video"))),autoplayUnlocked=!1;function unlockAutoplay(){autoplayUnlocked||(autoplayUnlocked=!0,html5Videos.filter(shouldAutoplayVideo).filter(e=>!isManuallyStopped(e)).forEach(e=>{e.muted=!0;e=e.play();e&&e.then(()=>console.log("Autoplay durch Scroll ausgelöst")).catch(console.warn)}),window.removeEventListener("scroll",unlockAutoplay))}function isInViewport(e,t=.2){var e=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,n=e.left{isManuallyStopped(e)||(isInViewport(e,.2)?e.paused&&(e.muted=!0,e.volume=0,e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.play().catch(e=>{console.warn("Autoplay beim Scrollen fehlgeschlagen:",e)})):e.paused||(e.dataset.autoPaused="1",e.pause(),delete e.dataset.autoPaused))})}autoplayVideos.forEach(e=>{e.addEventListener("pause",function(){this.dataset.autoPaused||markManuallyStopped(this)}),e.addEventListener("play",function(){clearManuallyStopped(this),this.dataset.autoPaused=""})}),window.addEventListener("scroll",handleAutoplayVideos,{passive:!0}),window.addEventListener("resize",handleAutoplayVideos),handleAutoplayVideos(),$(window).on("scroll resize",handleVideoPlayback);let videoObserver=new IntersectionObserver(e=>{e.forEach(e=>{var t,a=e.target;if("VIDEO"===a.tagName){if(!shouldAutoplayVideo(a))return;e.isIntersecting&&.2<=e.intersectionRatio?(t=a.play())&&t.catch(e=>console.warn("Autoplay blockiert:",e)):a.pause()}ytPlayers.has(a)&&(t=ytPlayers.get(a),e.isIntersecting||"function"!=typeof t.pauseVideo||t.pauseVideo())})},{threshold:[0,.2],rootMargin:"0px 0px -10% 0px"});function extractVideoIdFromUrl(e){var t=e.match(/[?&]v=([^&#]+)/),a=e.match(/[?&]list=([^&#]+)/);return a?a[1]:t?t[1]:(a=e.match(/\/embed\/([^/?&#]+)/))&&"videoseries"!==a[1]?a[1]:null}function loadVimeoEmbeds(){document.querySelectorAll(".player.vimeo[data-src]").forEach(e=>{var t,a;e.__loaded||(a=e.getAttribute("data-src"))&&((t=document.createElement("iframe")).src=a,t.loading="lazy",t.referrerPolicy="no-referrer",(a=e.getAttribute("id"))&&(t.id=a),t.setAttribute("allow",e.getAttribute("allow")||"fullscreen"),t.setAttribute("allowfullscreen",""),t.setAttribute("frameborder",e.getAttribute("frameborder")||"0"),t.setAttribute("sandbox",e.getAttribute("sandbox")||"allow-scripts allow-same-origin allow-popups allow-forms"),t.className=e.className||"",e.replaceWith(t),e.__loaded=!0)})}function onYouTubeIframeAPIReady(){$(".embed-responsive.player[data-video-id], .player.youtube").each(function(e,t){var a=$(t);if(!ytPlayers.has(a[0])){var n=a.data(),i=a.attr("id"),o=n.src||"";let e=n.videoId;!e&&o&&(e=extractVideoIdFromUrl(o));var s=o.includes("videoseries")||e&&e.startsWith("PL"),n="1"===String(n.autoplay??"")||"true"===String(n.autoplay??"").toLowerCase()||/[?&]autoplay=1(?:&|$)/.test(o),o={height:a.height()||a.width()/16*9,width:a.width(),host:"https://www.youtube-nocookie.com",playerVars:{autoplay:n?1:0},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}};s?o.playerVars=Object.assign({},o.playerVars,{list:e}):o.videoId=e,e||s?(n=new YT.Player(i,o),ytPlayers.set(a[0],n),players.push(n)):console.warn("Kein gültiges videoId oder Playlist gefunden für Element:",t)}}),ytPlayers.forEach((e,t)=>observer.observe(t))}function onPlayerReady(e){var t,a=e?.target?.getIframe?.();a&&(t=a.getAttribute("data-autoplay")||a.dataset?.autoplay||"",a=a.getAttribute("data-src")||a.getAttribute("src")||"","1"===String(t)||"true"===String(t).toLowerCase()||/[?&]autoplay=1(?:&|$)/.test(a)?(e.target.mute(),e.target.playVideo()):"function"==typeof e.target.pauseVideo&&e.target.pauseVideo())}function onPlayerStateChange(t){t.data===YT.PlayerState.PLAYING&&players.forEach(e=>{e!==t.target&&"function"==typeof e.pauseVideo&&e.pauseVideo()}),t.data===YT.PlayerState.ENDED&&(t.target.seekTo(0),t.target.playVideo()),t.data==YT.PlayerState.PLAYING&&t.target}function gtag(){dataLayer.push(arguments)}function handleVideoPlayback(){$("video, iframe").each(function(){var e=$(this).get(0);("video"===e.tagName.toLowerCase()?shouldAutoplayVideo(e):!0===$(this).data("autoplay")||"true"===$(this).attr("data-autoplay"))&&("video"===e.tagName.toLowerCase()?wasManuallyStopped(e)||(isInViewport(e,.2)?e.play().catch(e=>console.warn("Video konnte nicht abgespielt werden:",e)):e.paused||e.pause()):"iframe"===e.tagName.toLowerCase()&&e.contentWindow&&(isInViewport(e,.2)?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")))})}function getPreferencesFromCookiebot(){var e;return window.Cookiebot?window.Cookiebot.consent?{essential:!0,external:!!Cookiebot.consent.marketing,statistics:!!Cookiebot.consent.statistics,preferences:!!Cookiebot.consent.preferences}:null:{essential:(e=JSON.parse(localStorage.getItem("cookiePreferences"))||{}).essential||!1,external:e.external||!1,statistics:e.statistics||!1}}html5Videos.forEach(e=>videoObserver.observe(e)),ytPlayers.forEach((e,t)=>videoObserver.observe(t)),window.observer=videoObserver,window.addEventListener("load",function(){document.querySelectorAll(".a11y-me-videoplayer").forEach(function(a){let n=a.querySelector("video.a11y-me-video");if(n){let t=a.querySelector(".a11y-me-ratio");if(t){let e=function(){t.classList.add("is-loaded"),n.removeEventListener("loadeddata",e),n.removeEventListener("canplay",e)};2<=n.readyState?t.classList.add("is-loaded"):(n.addEventListener("loadeddata",e),n.addEventListener("canplay",e))}var e=n.getAttribute("data-show-controls");e&&"0"!==e||new MutationObserver(function(e){e.forEach(function(e){"class"===e.attributeName&&a.classList.contains("active-controls")&&a.classList.remove("active-controls")})}).observe(a,{attributes:!0,attributeFilter:["class"]})}})},!1),window.dataLayer=window.dataLayer||[];var scrollRevealSelectors=[".section > .frame > .frame-group-container > .frame-group-inner > .frame-container",".news-teaser-el1, .news-teaser-el3, .mc-item-right, .section-header-left",".mc-item-left",".section-header-right",".background-images > div"];function cleanScrollRevealStyles(t){scrollRevealSelectors.forEach(function(e){"function"==typeof t.clean?t.clean(e):document.querySelectorAll(e).forEach(function(e){e.style.removeProperty("visibility"),e.style.removeProperty("opacity"),e.style.removeProperty("transform"),e.style.removeProperty("transition")})})}function scheduleScrollRevealUpdate(t){"function"==typeof ScrollReveal&&window.setTimeout(function(){var e=ScrollReveal();t?(cleanScrollRevealStyles(e),tp3_app._scrollRevealInitialized=!1,initScrollReveal()):"function"==typeof e.sync&&e.sync()},300)}function refreshScrollRevealAfterCookiebot(){"function"==typeof ScrollReveal&&(tp3_app._scrollRevealInitialized?window.setTimeout(function(){var e=ScrollReveal();"function"==typeof e.sync&&e.sync()},300):initScrollReveal())}function initScrollReveal(e){var t;"function"!=typeof ScrollReveal||tp3_app._scrollRevealInitialized&&!e||(t=ScrollReveal(),window.scrollReveal=t,e&&cleanScrollRevealStyles(t),t.reveal(".section > .frame > .frame-group-container > .frame-group-inner > .frame-container",{delay:150,duration:1500,viewOffset:{bottom:170}}),e={distance:"2000px",origin:"left",opacity:.125,delay:250,viewOffset:{bottom:500}},t={delay:50,distance:"0px",duration:500,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!{distance:"2000px",origin:"right",opacity:.5,delay:700,viewOffset:{bottom:250}},container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"onload",viewFactor:.2,viewOffset:{top:-100,right:0,bottom:200,left:0},afterReset:function(e){console.log(e)},afterReveal:function(e){console.log("Revealed: ",e);e=$(e).attr("class").replace("background-image","accordion-heading");$("#"+e).find(".accordion-title-link-text").delay(100).css({opacity:0,visibility:"visible"}).animate({opacity:1},200)},beforeReset:function(e){console.log(e);e=$(e).attr("class").replace("background-image","accordion-heading");$("#"+e).find(".accordion-title-link-text").delay(300).css({opacity:1,visibility:"visible"}).animate({opacity:0},200)},beforeReveal:function(e){console.log(e)}},ScrollReveal().reveal(".news-teaser-el1, .news-teaser-el3, .mc-item-right, .section-header-left",e),ScrollReveal().reveal(".mc-item-left, .section-header-right",e),ScrollReveal().reveal(".section-header-right",{delay:50,duration:1500,viewOffset:{bottom:250}}),ScrollReveal().reveal(".background-images > div",t),tp3_app._scrollRevealInitialized=!0)}function loadPowermailJS(){return new Promise((e,t)=>{var a;if("undefined"!=typeof requirejs)try{require(["powermail"],function(){e()})}catch(e){t("RequireJS powermail load error")}else window.powermailLoaded?e():((a=document.createElement("script")).src="/_assets/9eba85d2ab3114466ae8b6879f949b4c/JavaScript/Powermail/Form.min.js",a.onload=function(){window.powermailLoaded=!0,e()},a.onerror=function(){t("Script load error")},document.body.appendChild(a))})}function activatePowermailRadioAutoAdvance(e){e.find(".radio.btn.btn-default").on("click",function(){var t=$(this).find("input[type=radio]");if(0{n||($this.find(".slick-slide").width("auto!important"),t.$slides.css({height:"fit-content",maxHeight:$this.data("height")}))})}),0{var t=localStorage.getItem(e);if(!t)return null;try{var a=JSON.parse(t);return a&&"object"==typeof a&&"e"in a?Date.now()>a.e?(localStorage.removeItem(e),null):a.v:a?.v??null}catch(e){return null}})(i)&&(r().show(),t.off("hidden.bs.modal.__remember").on("hidden.bs.modal.__remember",function(){s()}))}l(),e(".btn-autoOverlay").on("click",function(e){e.preventDefault(),l()}),t.on("click",'.btn-close, [data-dismiss="modal"], [data-bs-dismiss="modal"]',function(e){s(),r().hide()}),e(document).on("click","footer .btn, footer a, [data-close-automodal]",function(){s();var e=r();t.hasClass("show")&&e.hide()})}}tp3_app.dashbordAjax=function(){if(0<$(".frame-type-panel.frame-layout-extra").length){var e;$(".frame-type-panel.frame-layout-extra").hide();document.documentElement;"true"!=Cookies.get("fullscreenModal")&&(t=$(".frame-type-panel.frame-layout-extra"),e=$(''),$("body").append(e),e.modal({keyboard:!0}),screen.width